Class: Google::Apis::SheetsV4::UpdateSlicerSpecRequest

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 slicer's specifications. (This does not move or resize a slicer. To move or resize a slicer 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) ⇒ UpdateSlicerSpecRequest

Returns a new instance of UpdateSlicerSpecRequest.



11368
11369
11370
# File 'generated/google/apis/sheets_v4/classes.rb', line 11368

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

Instance Attribute Details

#fieldsString

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 propertyfields`

Returns:

  • (String)


11356
11357
11358
# File 'generated/google/apis/sheets_v4/classes.rb', line 11356

def fields
  @fields
end

#slicer_idFixnum

The id of the slicer to update. Corresponds to the JSON property slicerId

Returns:

  • (Fixnum)


11361
11362
11363
# File 'generated/google/apis/sheets_v4/classes.rb', line 11361

def slicer_id
  @slicer_id
end

#specGoogle::Apis::SheetsV4::SlicerSpec

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



11366
11367
11368
# File 'generated/google/apis/sheets_v4/classes.rb', line 11366

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11373
11374
11375
11376
11377
# File 'generated/google/apis/sheets_v4/classes.rb', line 11373

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