Class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse

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

The result of updating a conditional format rule.

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) ⇒ UpdateConditionalFormatRuleResponse

Returns a new instance of UpdateConditionalFormatRuleResponse.



1280
1281
1282
# File 'generated/google/apis/sheets_v4/classes.rb', line 1280

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

Instance Attribute Details

#new_indexFixnum

The index of the new rule. Corresponds to the JSON property newIndex

Returns:

  • (Fixnum)


1278
1279
1280
# File 'generated/google/apis/sheets_v4/classes.rb', line 1278

def new_index
  @new_index
end

#new_ruleGoogle::Apis::SheetsV4::ConditionalFormatRule

A rule describing a conditional format. Corresponds to the JSON property newRule



1268
1269
1270
# File 'generated/google/apis/sheets_v4/classes.rb', line 1268

def new_rule
  @new_rule
end

#old_indexFixnum

The old index of the rule. Not set if a rule was replaced (because it is the same as new_index). Corresponds to the JSON property oldIndex

Returns:

  • (Fixnum)


1263
1264
1265
# File 'generated/google/apis/sheets_v4/classes.rb', line 1263

def old_index
  @old_index
end

#old_ruleGoogle::Apis::SheetsV4::ConditionalFormatRule

A rule describing a conditional format. Corresponds to the JSON property oldRule



1273
1274
1275
# File 'generated/google/apis/sheets_v4/classes.rb', line 1273

def old_rule
  @old_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1285
1286
1287
1288
1289
1290
# File 'generated/google/apis/sheets_v4/classes.rb', line 1285

def update!(**args)
  @old_index = args[:old_index] if args.key?(:old_index)
  @new_rule = args[:new_rule] if args.key?(:new_rule)
  @old_rule = args[:old_rule] if args.key?(:old_rule)
  @new_index = args[:new_index] if args.key?(:new_index)
end