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

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

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

Constructor Details

#initialize(**args) ⇒ UpdateChartSpecRequest

Returns a new instance of UpdateChartSpecRequest.



10556
10557
10558
# File 'lib/google/apis/sheets_v4/classes.rb', line 10556

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)


10549
10550
10551
# File 'lib/google/apis/sheets_v4/classes.rb', line 10549

def chart_id
  @chart_id
end

#specGoogle::Apis::SheetsV4::ChartSpec

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



10554
10555
10556
# File 'lib/google/apis/sheets_v4/classes.rb', line 10554

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10561
10562
10563
10564
# File 'lib/google/apis/sheets_v4/classes.rb', line 10561

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