Class: Google::Apis::GamesV1::ResolveSnapshotHeadRequest

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

Request for ResolveSnapshotHead RPC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResolveSnapshotHeadRequest

Returns a new instance of ResolveSnapshotHeadRequest.



2329
2330
2331
# File 'lib/google/apis/games_v1/classes.rb', line 2329

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

Instance Attribute Details

#max_conflicts_per_snapshotFixnum

The maximum number of SnapshotRevision resources for conflictingRevisions to return per SnapshotExtended resource in the response. For any response, the actual number of resources returned may be less than specified by maxConflictsPerSnapshot. The value provided should be greater or equal to 0. If no value is provided, the server will use a sensible default. Corresponds to the JSON property maxConflictsPerSnapshot

Returns:

  • (Fixnum)


2320
2321
2322
# File 'lib/google/apis/games_v1/classes.rb', line 2320

def max_conflicts_per_snapshot
  @max_conflicts_per_snapshot
end

#resolution_policyString

Required. The automatic resolution policy. All conflicts are resolved in chronological order, starting from the/ least recent. If the comparison metric is equal for the tentative head and the conflict, the head wins. Corresponds to the JSON property resolutionPolicy

Returns:

  • (String)


2327
2328
2329
# File 'lib/google/apis/games_v1/classes.rb', line 2327

def resolution_policy
  @resolution_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2334
2335
2336
2337
# File 'lib/google/apis/games_v1/classes.rb', line 2334

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