Class: Google::Apis::GamesV1::LinkPersonaRequest

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 to link an in-game account with a PGS principal (encoded in the session id).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LinkPersonaRequest

Returns a new instance of LinkPersonaRequest.



1735
1736
1737
# File 'lib/google/apis/games_v1/classes.rb', line 1735

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

Instance Attribute Details

#cardinality_constraintString

Required. Cardinality constraint to observe when linking a persona to a player in the scope of a game. Corresponds to the JSON property cardinalityConstraint

Returns:

  • (String)


1699
1700
1701
# File 'lib/google/apis/games_v1/classes.rb', line 1699

def cardinality_constraint
  @cardinality_constraint
end

Required. Resolution policy to apply when the linking of a persona to a player would result in violating the specified cardinality constraint. Corresponds to the JSON property conflictingLinksResolutionPolicy

Returns:

  • (String)


1705
1706
1707
# File 'lib/google/apis/games_v1/classes.rb', line 1705

def conflicting_links_resolution_policy
  @conflicting_links_resolution_policy
end

#expire_timeString

Input only. Optional expiration time. Corresponds to the JSON property expireTime

Returns:

  • (String)


1710
1711
1712
# File 'lib/google/apis/games_v1/classes.rb', line 1710

def expire_time
  @expire_time
end

#personaString

Required. Stable identifier of the in-game account. Please refrain from re- using the same persona for different games. Corresponds to the JSON property persona

Returns:

  • (String)


1716
1717
1718
# File 'lib/google/apis/games_v1/classes.rb', line 1716

def persona
  @persona
end

#session_idString

Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application. Corresponds to the JSON property sessionId

Returns:

  • (String)


1722
1723
1724
# File 'lib/google/apis/games_v1/classes.rb', line 1722

def session_id
  @session_id
end

#tokenString

Required. Value of the token to create. Opaque to Play Games and assumed to be non-stable (encrypted with key rotation). Corresponds to the JSON property token

Returns:

  • (String)


1728
1729
1730
# File 'lib/google/apis/games_v1/classes.rb', line 1728

def token
  @token
end

#ttlString

Input only. Optional time-to-live. Corresponds to the JSON property ttl

Returns:

  • (String)


1733
1734
1735
# File 'lib/google/apis/games_v1/classes.rb', line 1733

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1740
1741
1742
1743
1744
1745
1746
1747
1748
# File 'lib/google/apis/games_v1/classes.rb', line 1740

def update!(**args)
  @cardinality_constraint = args[:cardinality_constraint] if args.key?(:cardinality_constraint)
  @conflicting_links_resolution_policy = args[:conflicting_links_resolution_policy] if args.key?(:conflicting_links_resolution_policy)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @persona = args[:persona] if args.key?(:persona)
  @session_id = args[:session_id] if args.key?(:session_id)
  @token = args[:token] if args.key?(:token)
  @ttl = args[:ttl] if args.key?(:ttl)
end