Class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest

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

Update an embedded object's position (such as a moving or resizing a chart or image).

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) ⇒ UpdateEmbeddedObjectPositionRequest

Returns a new instance of UpdateEmbeddedObjectPositionRequest



2059
2060
2061
# File 'generated/google/apis/sheets_v4/classes.rb', line 2059

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

Instance Attribute Details

#fieldsString

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

Returns:

  • (String)


2057
2058
2059
# File 'generated/google/apis/sheets_v4/classes.rb', line 2057

def fields
  @fields
end

#new_positionGoogle::Apis::SheetsV4::EmbeddedObjectPosition

The position of an embedded object such as a chart. Corresponds to the JSON property newPosition



2046
2047
2048
# File 'generated/google/apis/sheets_v4/classes.rb', line 2046

def new_position
  @new_position
end

#object_id_propFixnum

The ID of the object to moved. Corresponds to the JSON property objectId

Returns:

  • (Fixnum)


2041
2042
2043
# File 'generated/google/apis/sheets_v4/classes.rb', line 2041

def object_id_prop
  @object_id_prop
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2064
2065
2066
2067
2068
# File 'generated/google/apis/sheets_v4/classes.rb', line 2064

def update!(**args)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @new_position = args[:new_position] if args.key?(:new_position)
  @fields = args[:fields] if args.key?(:fields)
end