Class: Google::Apis::PhotoslibraryV1::AddEnrichmentToAlbumRequest

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

Overview

Request to add an enrichment to a specific album at a specific position.

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

Returns a new instance of AddEnrichmentToAlbumRequest



40
41
42
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 40

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

Instance Attribute Details

#album_positionGoogle::Apis::PhotoslibraryV1::AlbumPosition

Specifies a position in an album. Corresponds to the JSON property albumPosition



32
33
34
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 32

def album_position
  @album_position
end

#new_enrichment_itemGoogle::Apis::PhotoslibraryV1::NewEnrichmentItem

A new enrichment item to be added to an album, used by the AddEnrichmentToAlbum call. Corresponds to the JSON property newEnrichmentItem



38
39
40
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 38

def new_enrichment_item
  @new_enrichment_item
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45
46
47
48
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 45

def update!(**args)
  @album_position = args[:album_position] if args.key?(:album_position)
  @new_enrichment_item = args[:new_enrichment_item] if args.key?(:new_enrichment_item)
end