Class: Google::Apis::SlidesV1::UpdateShapePropertiesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb

Overview

Update the properties of a Shape.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateShapePropertiesRequest

Returns a new instance of UpdateShapePropertiesRequest.



4653
4654
4655
# File 'generated/google/apis/slides_v1/classes.rb', line 4653

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 shapeProperties is implied and should not be specified. A single "*" can be used as short-hand for listing every field. For example to update the shape background solid fill color, set fields to "shapeBackgroundFill. solidFill.color". To reset a property to its default value, include its field name in the field mask but leave the field itself unset. Corresponds to the JSON property fields

Returns:

  • (String)


4636
4637
4638
# File 'generated/google/apis/slides_v1/classes.rb', line 4636

def fields
  @fields
end

#object_id_propString

The object ID of the shape the updates are applied to. Corresponds to the JSON property objectId

Returns:

  • (String)


4641
4642
4643
# File 'generated/google/apis/slides_v1/classes.rb', line 4641

def object_id_prop
  @object_id_prop
end

#shape_propertiesGoogle::Apis::SlidesV1::ShapeProperties

The properties of a Shape. If the shape is a placeholder shape as determined by the placeholder field, then these properties may be inherited from a parent placeholder shape. Determining the rendered value of the property depends on the corresponding property_state field value. Any text autofit settings on the shape are automatically deactivated by requests that can impact how text fits in the shape. Corresponds to the JSON property shapeProperties



4651
4652
4653
# File 'generated/google/apis/slides_v1/classes.rb', line 4651

def shape_properties
  @shape_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4658
4659
4660
4661
4662
# File 'generated/google/apis/slides_v1/classes.rb', line 4658

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