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

Constructor Details

#initialize(**args) ⇒ UpdateConditionalFormatRuleResponse

Returns a new instance of UpdateConditionalFormatRuleResponse.



10420
10421
10422
# File 'generated/google/apis/sheets_v4/classes.rb', line 10420

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)


10402
10403
10404
# File 'generated/google/apis/sheets_v4/classes.rb', line 10402

def new_index
  @new_index
end

#new_ruleGoogle::Apis::SheetsV4::ConditionalFormatRule

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



10407
10408
10409
# File 'generated/google/apis/sheets_v4/classes.rb', line 10407

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)


10413
10414
10415
# File 'generated/google/apis/sheets_v4/classes.rb', line 10413

def old_index
  @old_index
end

#old_ruleGoogle::Apis::SheetsV4::ConditionalFormatRule

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



10418
10419
10420
# File 'generated/google/apis/sheets_v4/classes.rb', line 10418

def old_rule
  @old_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10425
10426
10427
10428
10429
10430
# File 'generated/google/apis/sheets_v4/classes.rb', line 10425

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