Class: Google::Apis::DocsV1::PositionedObject

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PositionedObject

Returns a new instance of PositionedObject



3320
3321
3322
# File 'generated/google/apis/docs_v1/classes.rb', line 3320

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

Instance Attribute Details

#object_id_propString

The ID of this positioned object. Corresponds to the JSON property objectId

Returns:

  • (String)


3295
3296
3297
# File 'generated/google/apis/docs_v1/classes.rb', line 3295

def object_id_prop
  @object_id_prop
end

#positioned_object_propertiesGoogle::Apis::DocsV1::PositionedObjectProperties

Properties of a PositionedObject. Corresponds to the JSON property positionedObjectProperties



3300
3301
3302
# File 'generated/google/apis/docs_v1/classes.rb', line 3300

def positioned_object_properties
  @positioned_object_properties
end

#suggested_deletion_idsArray<String>

The suggested deletion IDs. If empty, then there are no suggested deletions of this content. Corresponds to the JSON property suggestedDeletionIds

Returns:

  • (Array<String>)


3306
3307
3308
# File 'generated/google/apis/docs_v1/classes.rb', line 3306

def suggested_deletion_ids
  @suggested_deletion_ids
end

#suggested_insertion_idString

The suggested insertion ID. If empty, then this is not a suggested insertion. Corresponds to the JSON property suggestedInsertionId

Returns:

  • (String)


3312
3313
3314
# File 'generated/google/apis/docs_v1/classes.rb', line 3312

def suggested_insertion_id
  @suggested_insertion_id
end

#suggested_positioned_object_properties_changesHash<String,Google::Apis::DocsV1::SuggestedPositionedObjectProperties>

The suggested changes to the positioned object properties, keyed by suggestion ID. Corresponds to the JSON property suggestedPositionedObjectPropertiesChanges



3318
3319
3320
# File 'generated/google/apis/docs_v1/classes.rb', line 3318

def suggested_positioned_object_properties_changes
  @suggested_positioned_object_properties_changes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3325
3326
3327
3328
3329
3330
3331
# File 'generated/google/apis/docs_v1/classes.rb', line 3325

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