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

Inherits:
Object
  • Object
show all
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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeleteConditionalFormatRuleRequest

Returns a new instance of DeleteConditionalFormatRuleRequest.



2977
2978
2979
# File 'generated/google/apis/sheets_v4/classes.rb', line 2977

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)


2975
2976
2977
# File 'generated/google/apis/sheets_v4/classes.rb', line 2975

def index
  @index
end

#sheet_idFixnum

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

Returns:

  • (Fixnum)


2970
2971
2972
# File 'generated/google/apis/sheets_v4/classes.rb', line 2970

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2982
2983
2984
2985
# File 'generated/google/apis/sheets_v4/classes.rb', line 2982

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