Class: Google::Apis::PhotoslibraryV1::SimpleMediaItem
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PhotoslibraryV1::SimpleMediaItem
 
- 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
- 
  
    
      #upload_token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Token identifying the media bytes which have been uploaded to Google. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ SimpleMediaItem 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SimpleMediaItem. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_token ⇒ String
Token identifying the media bytes which have been uploaded to Google.
Corresponds to the JSON property uploadToken
| 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 |