Class: Google::Apis::DocsV1::InlineObject

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

Overview

An object that appears inline with text. An InlineObject contains an EmbeddedObject such as an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InlineObject

Returns a new instance of InlineObject.



2210
2211
2212
# File 'lib/google/apis/docs_v1/classes.rb', line 2210

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

Instance Attribute Details

#inline_object_propertiesGoogle::Apis::DocsV1::InlineObjectProperties

Properties of an InlineObject. Corresponds to the JSON property inlineObjectProperties



2187
2188
2189
# File 'lib/google/apis/docs_v1/classes.rb', line 2187

def inline_object_properties
  @inline_object_properties
end

#object_id_propString

The ID of this inline object. Can be used to update an object’s properties. Corresponds to the JSON property objectId

Returns:

  • (String)


2192
2193
2194
# File 'lib/google/apis/docs_v1/classes.rb', line 2192

def object_id_prop
  @object_id_prop
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>)


2198
2199
2200
# File 'lib/google/apis/docs_v1/classes.rb', line 2198

def suggested_deletion_ids
  @suggested_deletion_ids
end

#suggested_inline_object_properties_changesHash<String,Google::Apis::DocsV1::SuggestedInlineObjectProperties>

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



2203
2204
2205
# File 'lib/google/apis/docs_v1/classes.rb', line 2203

def suggested_inline_object_properties_changes
  @suggested_inline_object_properties_changes
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)


2208
2209
2210
# File 'lib/google/apis/docs_v1/classes.rb', line 2208

def suggested_insertion_id
  @suggested_insertion_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2215
2216
2217
2218
2219
2220
2221
# File 'lib/google/apis/docs_v1/classes.rb', line 2215

def update!(**args)
  @inline_object_properties = args[:inline_object_properties] if args.key?(:inline_object_properties)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @suggested_deletion_ids = args[:suggested_deletion_ids] if args.key?(:suggested_deletion_ids)
  @suggested_inline_object_properties_changes = args[:suggested_inline_object_properties_changes] if args.key?(:suggested_inline_object_properties_changes)
  @suggested_insertion_id = args[:suggested_insertion_id] if args.key?(:suggested_insertion_id)
end