Class: Google::Apis::PhotoslibraryV1::ShareInfo

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

Information about albums that are shared. Note that this information is only included if the album was created by you and you have the sharing scope.

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

Returns a new instance of ShareInfo



1140
1141
1142
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1140

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

Instance Attribute Details

#share_tokenString

A token which can be used to join this shared album on behalf of other users via the API. Corresponds to the JSON property shareToken

Returns:

  • (String)


1126
1127
1128
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1126

def share_token
  @share_token
end

#shareable_urlString

A link to the album that's now shared on the Google Photos website and app. Anyone with the link can access this shared album and see all of the items present in the album. Corresponds to the JSON property shareableUrl

Returns:

  • (String)


1133
1134
1135
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1133

def shareable_url
  @shareable_url
end

#shared_album_optionsGoogle::Apis::PhotoslibraryV1::SharedAlbumOptions

Options that control the sharing of an album. Corresponds to the JSON property sharedAlbumOptions



1138
1139
1140
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1138

def shared_album_options
  @shared_album_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1145
1146
1147
1148
1149
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1145

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