Class: Google::Apis::PhotoslibraryV1::BatchCreateMediaItemsRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PhotoslibraryV1::BatchCreateMediaItemsRequest
 
- 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 create one or more media items in a user's Google Photos library.
If an albumid is specified, the media items are also added to
that album. albumPosition is optional and can only be specified
if an albumId is set.
Instance Attribute Summary collapse
- 
  
    
      #album_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifier of the album where the media item(s) will be added. 
- 
  
    
      #album_position  ⇒ Google::Apis::PhotoslibraryV1::AlbumPosition 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Specifies a position in an album. 
- 
  
    
      #new_media_items  ⇒ Array<Google::Apis::PhotoslibraryV1::NewMediaItem> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    List of media items to be created. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BatchCreateMediaItemsRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of BatchCreateMediaItemsRequest. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BatchCreateMediaItemsRequest
Returns a new instance of BatchCreateMediaItemsRequest
| 195 196 197 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 195 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#album_id ⇒ String
Identifier of the album where the media item(s) will be added. They will
also be added to the user's library. This is an optional field.
Corresponds to the JSON property albumId
| 183 184 185 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 183 def album_id @album_id end | 
#album_position ⇒ Google::Apis::PhotoslibraryV1::AlbumPosition
Specifies a position in an album.
Corresponds to the JSON property albumPosition
| 188 189 190 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 188 def album_position @album_position end | 
#new_media_items ⇒ Array<Google::Apis::PhotoslibraryV1::NewMediaItem>
List of media items to be created.
Corresponds to the JSON property newMediaItems
| 193 194 195 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 193 def new_media_items @new_media_items end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 200 201 202 203 204 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 200 def update!(**args) @album_id = args[:album_id] if args.key?(:album_id) @album_position = args[:album_position] if args.key?(:album_position) @new_media_items = args[:new_media_items] if args.key?(:new_media_items) end |