Class: Google::Apis::GamesV1::SnapshotDataResource
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::SnapshotDataResource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb
Overview
Identifies a snapshot data resource. The data is provided by the game.
Instance Attribute Summary collapse
-
#content_hash ⇒ String
Output only.
-
#download_url ⇒ String
Output only.
-
#resource_id ⇒ String
The ID of the blob resource.
-
#size ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SnapshotDataResource
constructor
A new instance of SnapshotDataResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SnapshotDataResource
Returns a new instance of SnapshotDataResource.
2625 2626 2627 |
# File 'lib/google/apis/games_v1/classes.rb', line 2625 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_hash ⇒ String
Output only. Hash-like weak identifier of the uploaded blob bytes, consistent
per player per application. The content hash for a given resource will not
change if the binary data hasn't changed. Except in very rare circumstances,
the content_hash for matching binary data will be the same within a given
player and application.
Corresponds to the JSON property contentHash
2600 2601 2602 |
# File 'lib/google/apis/games_v1/classes.rb', line 2600 def content_hash @content_hash end |
#download_url ⇒ String
Output only. A URL that the client can use to download the blob. May vary
across requests, and only guaranteed to be valid for a short time after it is
returned.
Corresponds to the JSON property downloadUrl
2607 2608 2609 |
# File 'lib/google/apis/games_v1/classes.rb', line 2607 def download_url @download_url end |
#resource_id ⇒ String
The ID of the blob resource. It's guaranteed that if two IDs are equal then
the contents are equal as well. It's not guaranteed that two identical blobs
coming from separate uploads have the same resource ID. The resource ID can
only be used within the application, user and resource type it was originally
returned for. For example, it's not possible to use SnapshotDataResource's
resource ID as the resource_id of a SnapshotCoverImageResource, even if the
blob is a valid image file.
Corresponds to the JSON property resourceId
2618 2619 2620 |
# File 'lib/google/apis/games_v1/classes.rb', line 2618 def resource_id @resource_id end |
#size ⇒ Fixnum
Output only. Size of the saved game blob in bytes.
Corresponds to the JSON property size
2623 2624 2625 |
# File 'lib/google/apis/games_v1/classes.rb', line 2623 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2630 2631 2632 2633 2634 2635 |
# File 'lib/google/apis/games_v1/classes.rb', line 2630 def update!(**args) @content_hash = args[:content_hash] if args.key?(:content_hash) @download_url = args[:download_url] if args.key?(:download_url) @resource_id = args[:resource_id] if args.key?(:resource_id) @size = args[:size] if args.key?(:size) end |