class Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest
Updates a conditional format rule at the given index, or moves a conditional format rule to another index.
Attributes
index[RW]
The zero-based index of the rule that should be replaced or moved. Corresponds to the JSON property `index` @return [Fixnum]
new_index[RW]
The zero-based new index the rule should end up at. Corresponds to the JSON property `newIndex` @return [Fixnum]
rule[RW]
A rule describing a conditional format. Corresponds to the JSON property `rule` @return [Google::Apis::SheetsV4::ConditionalFormatRule]
sheet_id[RW]
The sheet of the rule to move. Required if new_index
is set, unused otherwise. Corresponds to the JSON property `sheetId` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 10409 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/sheets_v4/classes.rb, line 10414 def update!(**args) @index = args[:index] if args.key?(:index) @new_index = args[:new_index] if args.key?(:new_index) @rule = args[:rule] if args.key?(:rule) @sheet_id = args[:sheet_id] if args.key?(:sheet_id) end