MCPcopy Create free account
hub / github.com/openclaw/gogcli / BuildAddRequest

Function BuildAddRequest

internal/sheetsconditional/conditional.go:54–76  ·  view source on GitHub ↗
(
	gridRange *sheets.GridRange,
	conditionType string,
	values []*sheets.ConditionValue,
	format *sheets.CellFormat,
	index int64,
)

Source from the content-addressed store, hash-verified

52}
53
54func BuildAddRequest(
55 gridRange *sheets.GridRange,
56 conditionType string,
57 values []*sheets.ConditionValue,
58 format *sheets.CellFormat,
59 index int64,
60) *sheets.Request {
61 return &sheets.Request{
62 AddConditionalFormatRule: &sheets.AddConditionalFormatRuleRequest{
63 Rule: &sheets.ConditionalFormatRule{
64 BooleanRule: &sheets.BooleanRule{
65 Condition: &sheets.BooleanCondition{
66 Type: conditionType,
67 Values: values,
68 },
69 Format: format,
70 },
71 Ranges: []*sheets.GridRange{gridRange},
72 },
73 Index: index,
74 },
75 }
76}
77
78func RuleItems(spreadsheet *sheets.Spreadsheet, onlySheet string) []RuleItem {
79 items := make([]RuleItem, 0)

Callers 2

RunMethod · 0.92
TestBuildAddRequestFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestBuildAddRequestFunction · 0.56