Class: Google::Apis::PhotoslibraryV1::ShareInfo
- Inherits:
-
Object
- Object
- Google::Apis::PhotoslibraryV1::ShareInfo
- 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
-
#share_token ⇒ String
A token which can be used to join this shared album on behalf of other users via the API.
-
#shareable_url ⇒ String
A link to the album that's now shared on the Google Photos website and app.
-
#shared_album_options ⇒ Google::Apis::PhotoslibraryV1::SharedAlbumOptions
Options that control the sharing of an album.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShareInfo
constructor
A new instance of ShareInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_token ⇒ String
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
1126 1127 1128 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1126 def share_token @share_token end |
#shareable_url ⇒ String
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
1133 1134 1135 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1133 def shareable_url @shareable_url end |
#shared_album_options ⇒ Google::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 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 |