Class: Google::Apis::SheetsV4::UpdateChartSpecRequest

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

Updates a chart's specifications. (This does not move or resize a chart. To move or resize a chart, use UpdateEmbeddedObjectPositionRequest.)

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

Returns a new instance of UpdateChartSpecRequest.



9990
9991
9992
# File 'generated/google/apis/sheets_v4/classes.rb', line 9990

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

Instance Attribute Details

#chart_idFixnum

The ID of the chart to update. Corresponds to the JSON property chartId

Returns:

  • (Fixnum)


9983
9984
9985
# File 'generated/google/apis/sheets_v4/classes.rb', line 9983

def chart_id
  @chart_id
end

#specGoogle::Apis::SheetsV4::ChartSpec

The specifications of a chart. Corresponds to the JSON property spec



9988
9989
9990
# File 'generated/google/apis/sheets_v4/classes.rb', line 9988

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9995
9996
9997
9998
# File 'generated/google/apis/sheets_v4/classes.rb', line 9995

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