Class: Google::Apis::GamesV1::ResolveSnapshotHeadResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::ResolveSnapshotHeadResponse
- 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
-
#snapshot ⇒ Google::Apis::GamesV1::SnapshotExtended
A snapshot represents a saved game state referred to using the developer- provided snapshot_name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResolveSnapshotHeadResponse
constructor
A new instance of ResolveSnapshotHeadResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResolveSnapshotHeadResponse
Returns a new instance of ResolveSnapshotHeadResponse.
2356 2357 2358 |
# File 'lib/google/apis/games_v1/classes.rb', line 2356 def initialize(**args) update!(**args) end |
Instance Attribute Details
#snapshot ⇒ Google::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
2354 2355 2356 |
# File 'lib/google/apis/games_v1/classes.rb', line 2354 def snapshot @snapshot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2361 2362 2363 |
# File 'lib/google/apis/games_v1/classes.rb', line 2361 def update!(**args) @snapshot = args[:snapshot] if args.key?(:snapshot) end |