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

Inherits:
Object
  • Object
show all
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

Response for ResolveSnapshotHead RPC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResolveSnapshotHeadResponse

Returns a new instance of ResolveSnapshotHeadResponse.



2346
2347
2348
# File 'lib/google/apis/games_v1/classes.rb', line 2346

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_name. 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



2344
2345
2346
# File 'lib/google/apis/games_v1/classes.rb', line 2344

def snapshot
  @snapshot
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2351
2352
2353
# File 'lib/google/apis/games_v1/classes.rb', line 2351

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