class Google::Apis::GamesV1::Snapshot

This is a JSON template for an snapshot object.

Attributes

cover_image[RW]

This is a JSON template for an image of a snapshot. Corresponds to the JSON property `coverImage` @return [Google::Apis::GamesV1::SnapshotImage]

description[RW]

The description of this snapshot. Corresponds to the JSON property `description` @return [String]

drive_id[RW]

The ID of the file underlying this snapshot in the Drive API. Only present if the snapshot is a view on a Drive file and the file is owned by the caller. Corresponds to the JSON property `driveId` @return [String]

duration_millis[RW]

The duration associated with this snapshot, in millis. Corresponds to the JSON property `durationMillis` @return [String]

id[RW]

The ID of the snapshot. Corresponds to the JSON property `id` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#snapshot. Corresponds to the JSON property `kind` @return [String]

last_modified_millis[RW]

The timestamp (in millis since Unix epoch) of the last modification to this snapshot. Corresponds to the JSON property `lastModifiedMillis` @return [String]

progress_value[RW]

The progress value (64-bit integer set by developer) associated with this snapshot. Corresponds to the JSON property `progressValue` @return [String]

title[RW]

The title of this snapshot. Corresponds to the JSON property `title` @return [String]

type[RW]

The type of this snapshot. Possible values are:

  • “SAVE_GAME” - A snapshot representing a save game.

Corresponds to the JSON property `type` @return [String]

unique_name[RW]

The unique name provided when the snapshot was created. Corresponds to the JSON property `uniqueName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 3932
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 3937
def update!(**args)
  @cover_image = args[:cover_image] if args.key?(:cover_image)
  @description = args[:description] if args.key?(:description)
  @drive_id = args[:drive_id] if args.key?(:drive_id)
  @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis)
  @progress_value = args[:progress_value] if args.key?(:progress_value)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
  @unique_name = args[:unique_name] if args.key?(:unique_name)
end