Class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest
- 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
Update an embedded object's position (such as a moving or resizing a chart or image).
Instance Attribute Summary collapse
-
#fields ⇒ String
The fields of OverlayPosition that should be updated when setting a new position.
-
#new_position ⇒ Google::Apis::SheetsV4::EmbeddedObjectPosition
The position of an embedded object such as a chart.
-
#object_id_prop ⇒ Fixnum
The ID of the object to moved.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateEmbeddedObjectPositionRequest
constructor
A new instance of UpdateEmbeddedObjectPositionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateEmbeddedObjectPositionRequest
Returns a new instance of UpdateEmbeddedObjectPositionRequest
5547 5548 5549 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5547 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ String
The fields of OverlayPosition
that should be updated when setting a new position. Used only if
newPosition.overlayPosition
is set, in which case at least one field must
be specified. The root newPosition.overlayPosition
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
5535 5536 5537 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5535 def fields @fields end |
#new_position ⇒ Google::Apis::SheetsV4::EmbeddedObjectPosition
The position of an embedded object such as a chart.
Corresponds to the JSON property newPosition
5545 5546 5547 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5545 def new_position @new_position end |
#object_id_prop ⇒ Fixnum
The ID of the object to moved.
Corresponds to the JSON property objectId
5540 5541 5542 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5540 def object_id_prop @object_id_prop end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5552 5553 5554 5555 5556 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5552 def update!(**args) @fields = args[:fields] if args.key?(:fields) @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) @new_position = args[:new_position] if args.key?(:new_position) end |