Class: Google::Apis::PhotoslibraryV1::SimpleMediaItem

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

A simple media item to be created in Google Photos via an upload token.

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

Returns a new instance of SimpleMediaItem



1190
1191
1192
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1190

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

Instance Attribute Details

#upload_tokenString

Token identifying the media bytes which have been uploaded to Google. Corresponds to the JSON property uploadToken

Returns:

  • (String)


1188
1189
1190
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1188

def upload_token
  @upload_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1195
1196
1197
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1195

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