Class: Google::Apis::SheetsV4::AddConditionalFormatRuleRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::AddConditionalFormatRuleRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb
Overview
Adds a new conditional format rule at the given index. All subsequent rules' indexes are incremented.
Instance Attribute Summary collapse
-
#index ⇒ Fixnum
The zero-based index where the rule should be inserted.
-
#rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddConditionalFormatRuleRequest
constructor
A new instance of AddConditionalFormatRuleRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AddConditionalFormatRuleRequest
Returns a new instance of AddConditionalFormatRuleRequest
637 638 639 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 637 def initialize(**args) update!(**args) end |
Instance Attribute Details
#index ⇒ Fixnum
The zero-based index where the rule should be inserted.
Corresponds to the JSON property index
635 636 637 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 635 def index @index end |
#rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Corresponds to the JSON property rule
630 631 632 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 630 def rule @rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
642 643 644 645 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 642 def update!(**args) @rule = args[:rule] if args.key?(:rule) @index = args[:index] if args.key?(:index) end |