Class: Google::Apis::SheetsV4::UpdateSlicerSpecRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::UpdateSlicerSpecRequest
- 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 slicer’s specifications. (This does not move or resize a slicer. To move or resize a slicer use UpdateEmbeddedObjectPositionRequest.
Instance Attribute Summary collapse
-
#fields ⇒ String
The fields that should be updated.
-
#slicer_id ⇒ Fixnum
The id of the slicer to update.
-
#spec ⇒ Google::Apis::SheetsV4::SlicerSpec
The specifications of a slicer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateSlicerSpecRequest
constructor
A new instance of UpdateSlicerSpecRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateSlicerSpecRequest
Returns a new instance of UpdateSlicerSpecRequest.
11025 11026 11027 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 11025 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ String
The fields that should be updated. At least one field must be specified.
The root SlicerSpec
is implied and should not be specified. A single "*"
can be used as short-hand for listing every field.
Corresponds to the JSON property
fields`
11013 11014 11015 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 11013 def fields @fields end |
#slicer_id ⇒ Fixnum
The id of the slicer to update.
Corresponds to the JSON property slicerId
11018 11019 11020 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 11018 def slicer_id @slicer_id end |
#spec ⇒ Google::Apis::SheetsV4::SlicerSpec
The specifications of a slicer.
Corresponds to the JSON property spec
11023 11024 11025 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 11023 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11030 11031 11032 11033 11034 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 11030 def update!(**args) @fields = args[:fields] if args.key?(:fields) @slicer_id = args[:slicer_id] if args.key?(:slicer_id) @spec = args[:spec] if args.key?(:spec) end |