Class: Google::Apis::SheetsV4::UpdateChartSpecRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SheetsV4::UpdateChartSpecRequest
 
- 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
- 
  
    
      #chart_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the chart to update. 
- 
  
    
      #spec  ⇒ Google::Apis::SheetsV4::ChartSpec 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The specifications of a chart. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UpdateChartSpecRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of UpdateChartSpecRequest. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateChartSpecRequest
Returns a new instance of UpdateChartSpecRequest
| 9211 9212 9213 | # File 'generated/google/apis/sheets_v4/classes.rb', line 9211 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#chart_id ⇒ Fixnum
The ID of the chart to update.
Corresponds to the JSON property chartId
| 9204 9205 9206 | # File 'generated/google/apis/sheets_v4/classes.rb', line 9204 def chart_id @chart_id end | 
#spec ⇒ Google::Apis::SheetsV4::ChartSpec
The specifications of a chart.
Corresponds to the JSON property spec
| 9209 9210 9211 | # File 'generated/google/apis/sheets_v4/classes.rb', line 9209 def spec @spec end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 9216 9217 9218 9219 | # File 'generated/google/apis/sheets_v4/classes.rb', line 9216 def update!(**args) @chart_id = args[:chart_id] if args.key?(:chart_id) @spec = args[:spec] if args.key?(:spec) end |