GoogleApi.Games.V1.Model.SnapshotDataResource (google_api_games v0.21.0) View Source

Identifies a snapshot data resource. The data is provided by the game.

Attributes

  • contentHash (type: String.t, default: nil) - 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.
  • downloadUrl (type: String.t, default: nil) - 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.
  • resourceId (type: String.t, default: nil) - 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.
  • size (type: String.t, default: nil) - Output only. Size of the saved game blob in bytes.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Games.V1.Model.SnapshotDataResource{
  contentHash: String.t(),
  downloadUrl: String.t(),
  resourceId: String.t(),
  size: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.