Class: Google::Apis::GamesV1::ResolveSnapshotHeadResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb

Overview

Response for ResolveSnapshotHead RPC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResolveSnapshotHeadResponse

Returns a new instance of ResolveSnapshotHeadResponse.



2376
2377
2378
# File 'generated/google/apis/games_v1/classes.rb', line 2376

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

Instance Attribute Details

#snapshotGoogle::Apis::GamesV1::SnapshotExtended

A snapshot represents a saved game state referred to using the developer- provided snapshot_id (think of it as a file's path). The set of attributes and binary data for a specific state is called a revision. Each revision is itself immutable, and referred to by a snapshot_revision_id. At any time, a snapshot has a "head" revision, and updates are made against that revision. If a snapshot update is received that isn't against the current head revision, then instead of changing the head revision it will result in a conflicting revision that must be specifically resolved. Corresponds to the JSON property snapshot



2374
2375
2376
# File 'generated/google/apis/games_v1/classes.rb', line 2374

def snapshot
  @snapshot
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2381
2382
2383
# File 'generated/google/apis/games_v1/classes.rb', line 2381

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