Class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest
- 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
Updates a conditional format rule at the given index, or moves a conditional format rule to another index.
Instance Attribute Summary collapse
-
#index ⇒ Fixnum
The zero-based index of the rule that should be replaced or moved.
-
#new_index ⇒ Fixnum
The zero-based new index the rule should end up at.
-
#rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
-
#sheet_id ⇒ Fixnum
The sheet of the rule to move.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateConditionalFormatRuleRequest
constructor
A new instance of UpdateConditionalFormatRuleRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateConditionalFormatRuleRequest
Returns a new instance of UpdateConditionalFormatRuleRequest
9549 9550 9551 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9549 def initialize(**args) update!(**args) end |
Instance Attribute Details
#index ⇒ Fixnum
The zero-based index of the rule that should be replaced or moved.
Corresponds to the JSON property index
9531 9532 9533 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9531 def index @index end |
#new_index ⇒ Fixnum
The zero-based new index the rule should end up at.
Corresponds to the JSON property newIndex
9536 9537 9538 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9536 def new_index @new_index end |
#rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Corresponds to the JSON property rule
9541 9542 9543 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9541 def rule @rule end |
#sheet_id ⇒ Fixnum
The sheet of the rule to move. Required if new_index is set,
unused otherwise.
Corresponds to the JSON property sheetId
9547 9548 9549 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9547 def sheet_id @sheet_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9554 9555 9556 9557 9558 9559 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9554 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 |