class Google::Apis::SheetsV4::AddConditionalFormatRuleRequest

Adds a new conditional format rule at the given index. All subsequent rules' indexes are incremented.

Attributes

index[RW]

The zero-based index where the rule should be inserted. Corresponds to the JSON property `index` @return [Fixnum]

rule[RW]

A rule describing a conditional format. Corresponds to the JSON property `rule` @return [Google::Apis::SheetsV4::ConditionalFormatRule]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 116
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 121
def update!(**args)
  @index = args[:index] if args.key?(:index)
  @rule = args[:rule] if args.key?(:rule)
end