Class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb

Overview

Deletes a conditional format rule at the given index. All subsequent rules' indexes are decremented.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeleteConditionalFormatRuleRequest

Returns a new instance of DeleteConditionalFormatRuleRequest.



4512
4513
4514
# File 'lib/google/apis/sheets_v4/classes.rb', line 4512

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#indexFixnum

The zero-based index of the rule to be deleted. Corresponds to the JSON property index

Returns:

  • (Fixnum)


4505
4506
4507
# File 'lib/google/apis/sheets_v4/classes.rb', line 4505

def index
  @index
end

#sheet_idFixnum

The sheet the rule is being deleted from. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)


4510
4511
4512
# File 'lib/google/apis/sheets_v4/classes.rb', line 4510

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4517
4518
4519
4520
# File 'lib/google/apis/sheets_v4/classes.rb', line 4517

def update!(**args)
  @index = args[:index] if args.key?(:index)
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
end