Class: Google::Apis::PhotoslibraryV1::JoinSharedAlbumRequest

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 join a shared album on behalf of the user. This uses a shareToken which can be acquired via the shareAlbum or listSharedAlbums calls.

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

Returns a new instance of JoinSharedAlbumRequest



511
512
513
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 511

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

Instance Attribute Details

#share_tokenString

Token indicating the shared album to join on behalf of the user. Corresponds to the JSON property shareToken

Returns:

  • (String)


509
510
511
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 509

def share_token
  @share_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 516

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