Class: Google::Apis::DocsV1::PositionedObject
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::PositionedObject
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
An object that is tethered to a Paragraph and positioned relative to the beginning of the paragraph. A PositionedObject contains an EmbeddedObject such as an image.
Instance Attribute Summary collapse
-
#object_id_prop ⇒ String
The ID of this positioned object.
-
#positioned_object_properties ⇒ Google::Apis::DocsV1::PositionedObjectProperties
Properties of a PositionedObject.
-
#suggested_deletion_ids ⇒ Array<String>
The suggested deletion IDs.
-
#suggested_insertion_id ⇒ String
The suggested insertion ID.
-
#suggested_positioned_object_properties_changes ⇒ Hash<String,Google::Apis::DocsV1::SuggestedPositionedObjectProperties>
The suggested changes to the positioned object properties, keyed by suggestion ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PositionedObject
constructor
A new instance of PositionedObject.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PositionedObject
Returns a new instance of PositionedObject.
3727 3728 3729 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#object_id_prop ⇒ String
The ID of this positioned object.
Corresponds to the JSON property objectId
3702 3703 3704 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3702 def object_id_prop @object_id_prop end |
#positioned_object_properties ⇒ Google::Apis::DocsV1::PositionedObjectProperties
Properties of a PositionedObject.
Corresponds to the JSON property positionedObjectProperties
3707 3708 3709 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3707 def positioned_object_properties @positioned_object_properties end |
#suggested_deletion_ids ⇒ Array<String>
The suggested deletion IDs. If empty, then there are no suggested deletions
of this content.
Corresponds to the JSON property suggestedDeletionIds
3713 3714 3715 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3713 def suggested_deletion_ids @suggested_deletion_ids end |
#suggested_insertion_id ⇒ String
The suggested insertion ID. If empty, then this is not a suggested
insertion.
Corresponds to the JSON property suggestedInsertionId
3719 3720 3721 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3719 def suggested_insertion_id @suggested_insertion_id end |
#suggested_positioned_object_properties_changes ⇒ Hash<String,Google::Apis::DocsV1::SuggestedPositionedObjectProperties>
The suggested changes to the positioned object properties, keyed by
suggestion ID.
Corresponds to the JSON property suggestedPositionedObjectPropertiesChanges
3725 3726 3727 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3725 def suggested_positioned_object_properties_changes @suggested_positioned_object_properties_changes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3732 3733 3734 3735 3736 3737 3738 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3732 def update!(**args) @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) @positioned_object_properties = args[:positioned_object_properties] if args.key?(:positioned_object_properties) @suggested_deletion_ids = args[:suggested_deletion_ids] if args.key?(:suggested_deletion_ids) @suggested_insertion_id = args[:suggested_insertion_id] if args.key?(:suggested_insertion_id) @suggested_positioned_object_properties_changes = args[:suggested_positioned_object_properties_changes] if args.key?(:suggested_positioned_object_properties_changes) end |