google-apis-games_v1 0.20.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6fba9f51f3ab25458b218d1374f29ddcddfade893afd571850d3a27655ffc9e
4
- data.tar.gz: 651c9c389a52dfaaa51e4f8a40a8fdb2915660ff9a7cffe5eaaf54de10d84bf2
3
+ metadata.gz: 994d183dabd3982333223db5bf62cc306d653db3b7d14e18da6abd6a282b0467
4
+ data.tar.gz: 343e9168ca479158fde03cfc1184882ff98159a57d9fc25a9455fe46966f3c36
5
5
  SHA512:
6
- metadata.gz: 219db66f2719d63441ef1155bb8b8e31a664f4a862cd1e9de1c1723fa729a4ecf77cf84e0297c9a71be669306854b1276f9f514f0df90be67f7dde5423d5106d
7
- data.tar.gz: b6313f31f29275d5c35c11b6caebad96a73f1335ad40dee8999ee586a7a45267276bba4b49dabcfed349fd714667b0fcffcee42eae866b1bd504c1b114b47b05
6
+ metadata.gz: 92d98812644c9683d4133553d1dc4a1aeb8cc38e5176887b62758b3520f87ab24ddb8ff5a273f7d0d24eb26919dedeea052bb1e701a7464efce4dd1f76f19e6c
7
+ data.tar.gz: 0bb2a78764319d269a2d4fe41111d2f4ee6fea4d87fb1a7bbfd230f8681fc4c9a11a18b4063703742710887cd75c5e9f042f106e1a5e003002316299dd220ed1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-games_v1
2
2
 
3
+ ### v0.22.0 (2024-01-23)
4
+
5
+ * Regenerated using generator version 0.13.0
6
+
7
+ ### v0.21.0 (2023-09-03)
8
+
9
+ * Regenerated from discovery document revision 20230823
10
+
3
11
  ### v0.20.0 (2023-08-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20230822
@@ -1624,6 +1624,86 @@ module Google
1624
1624
  end
1625
1625
  end
1626
1626
 
1627
+ # Request to link an in-game account with a PGS principal (encoded in the
1628
+ # session id).
1629
+ class LinkPersonaRequest
1630
+ include Google::Apis::Core::Hashable
1631
+
1632
+ # Required. Cardinality constraint to observe when linking a persona to a player
1633
+ # in the scope of a game.
1634
+ # Corresponds to the JSON property `cardinalityConstraint`
1635
+ # @return [String]
1636
+ attr_accessor :cardinality_constraint
1637
+
1638
+ # Required. Resolution policy to apply when the linking of a persona to a player
1639
+ # would result in violating the specified cardinality constraint.
1640
+ # Corresponds to the JSON property `conflictingLinksResolutionPolicy`
1641
+ # @return [String]
1642
+ attr_accessor :conflicting_links_resolution_policy
1643
+
1644
+ # Input only. Optional expiration time.
1645
+ # Corresponds to the JSON property `expireTime`
1646
+ # @return [String]
1647
+ attr_accessor :expire_time
1648
+
1649
+ # Required. Stable identifier of the in-game account. Please refrain from re-
1650
+ # using the same persona for different games.
1651
+ # Corresponds to the JSON property `persona`
1652
+ # @return [String]
1653
+ attr_accessor :persona
1654
+
1655
+ # Required. Opaque server-generated string that encodes all the necessary
1656
+ # information to identify the PGS player / Google user and application.
1657
+ # Corresponds to the JSON property `sessionId`
1658
+ # @return [String]
1659
+ attr_accessor :session_id
1660
+
1661
+ # Required. Value of the token to create. Opaque to Play Games and assumed to be
1662
+ # non-stable (encrypted with key rotation).
1663
+ # Corresponds to the JSON property `token`
1664
+ # @return [String]
1665
+ attr_accessor :token
1666
+
1667
+ # Input only. Optional time-to-live.
1668
+ # Corresponds to the JSON property `ttl`
1669
+ # @return [String]
1670
+ attr_accessor :ttl
1671
+
1672
+ def initialize(**args)
1673
+ update!(**args)
1674
+ end
1675
+
1676
+ # Update properties of this object
1677
+ def update!(**args)
1678
+ @cardinality_constraint = args[:cardinality_constraint] if args.key?(:cardinality_constraint)
1679
+ @conflicting_links_resolution_policy = args[:conflicting_links_resolution_policy] if args.key?(:conflicting_links_resolution_policy)
1680
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1681
+ @persona = args[:persona] if args.key?(:persona)
1682
+ @session_id = args[:session_id] if args.key?(:session_id)
1683
+ @token = args[:token] if args.key?(:token)
1684
+ @ttl = args[:ttl] if args.key?(:ttl)
1685
+ end
1686
+ end
1687
+
1688
+ # Outcome of a persona linking attempt.
1689
+ class LinkPersonaResponse
1690
+ include Google::Apis::Core::Hashable
1691
+
1692
+ # Output only. State of a persona linking attempt.
1693
+ # Corresponds to the JSON property `state`
1694
+ # @return [String]
1695
+ attr_accessor :state
1696
+
1697
+ def initialize(**args)
1698
+ update!(**args)
1699
+ end
1700
+
1701
+ # Update properties of this object
1702
+ def update!(**args)
1703
+ @state = args[:state] if args.key?(:state)
1704
+ end
1705
+ end
1706
+
1627
1707
  # The metagame config resource
1628
1708
  class MetagameConfig
1629
1709
  include Google::Apis::Core::Hashable
@@ -2358,6 +2438,99 @@ module Google
2358
2438
  end
2359
2439
  end
2360
2440
 
2441
+ # Recall token data returned from RetrievePlayerTokens RPC
2442
+ class RecallToken
2443
+ include Google::Apis::Core::Hashable
2444
+
2445
+ # Optional. Optional expiration time of the token
2446
+ # Corresponds to the JSON property `expireTime`
2447
+ # @return [String]
2448
+ attr_accessor :expire_time
2449
+
2450
+ # Required. Whether the persona identified by the token is linked to multiple
2451
+ # PGS Players
2452
+ # Corresponds to the JSON property `multiPlayerPersona`
2453
+ # @return [Boolean]
2454
+ attr_accessor :multi_player_persona
2455
+ alias_method :multi_player_persona?, :multi_player_persona
2456
+
2457
+ # Required. Value of the Recall token as it is provided by the client via
2458
+ # LinkPersona RPC
2459
+ # Corresponds to the JSON property `token`
2460
+ # @return [String]
2461
+ attr_accessor :token
2462
+
2463
+ def initialize(**args)
2464
+ update!(**args)
2465
+ end
2466
+
2467
+ # Update properties of this object
2468
+ def update!(**args)
2469
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
2470
+ @multi_player_persona = args[:multi_player_persona] if args.key?(:multi_player_persona)
2471
+ @token = args[:token] if args.key?(:token)
2472
+ end
2473
+ end
2474
+
2475
+ # Request to remove all Recall tokens associated with a persona for an app.
2476
+ class ResetPersonaRequest
2477
+ include Google::Apis::Core::Hashable
2478
+
2479
+ # Value of the 'persona' field as it was provided by the client in LinkPersona
2480
+ # RPC
2481
+ # Corresponds to the JSON property `persona`
2482
+ # @return [String]
2483
+ attr_accessor :persona
2484
+
2485
+ def initialize(**args)
2486
+ update!(**args)
2487
+ end
2488
+
2489
+ # Update properties of this object
2490
+ def update!(**args)
2491
+ @persona = args[:persona] if args.key?(:persona)
2492
+ end
2493
+ end
2494
+
2495
+ # Response for the ResetPersona RPC
2496
+ class ResetPersonaResponse
2497
+ include Google::Apis::Core::Hashable
2498
+
2499
+ # Required. Whether any tokens were unlinked as a result of this request.
2500
+ # Corresponds to the JSON property `unlinked`
2501
+ # @return [Boolean]
2502
+ attr_accessor :unlinked
2503
+ alias_method :unlinked?, :unlinked
2504
+
2505
+ def initialize(**args)
2506
+ update!(**args)
2507
+ end
2508
+
2509
+ # Update properties of this object
2510
+ def update!(**args)
2511
+ @unlinked = args[:unlinked] if args.key?(:unlinked)
2512
+ end
2513
+ end
2514
+
2515
+ # Response for the RetrievePlayerTokens RPC
2516
+ class RetrievePlayerTokensResponse
2517
+ include Google::Apis::Core::Hashable
2518
+
2519
+ # Required. Recall tokens associated with the requested PGS Player principal
2520
+ # Corresponds to the JSON property `tokens`
2521
+ # @return [Array<Google::Apis::GamesV1::RecallToken>]
2522
+ attr_accessor :tokens
2523
+
2524
+ def initialize(**args)
2525
+ update!(**args)
2526
+ end
2527
+
2528
+ # Update properties of this object
2529
+ def update!(**args)
2530
+ @tokens = args[:tokens] if args.key?(:tokens)
2531
+ end
2532
+ end
2533
+
2361
2534
  # A third party checking a revision response.
2362
2535
  class CheckRevisionResponse
2363
2536
  include Google::Apis::Core::Hashable
@@ -2721,6 +2894,61 @@ module Google
2721
2894
  @total_spend_next_28_days = args[:total_spend_next_28_days] if args.key?(:total_spend_next_28_days)
2722
2895
  end
2723
2896
  end
2897
+
2898
+ # Request to remove a Recall token linking PGS principal and an in-game account
2899
+ class UnlinkPersonaRequest
2900
+ include Google::Apis::Core::Hashable
2901
+
2902
+ # Value of the 'persona' field as it was provided by the client in LinkPersona
2903
+ # RPC
2904
+ # Corresponds to the JSON property `persona`
2905
+ # @return [String]
2906
+ attr_accessor :persona
2907
+
2908
+ # Required. Opaque server-generated string that encodes all the necessary
2909
+ # information to identify the PGS player / Google user and application.
2910
+ # Corresponds to the JSON property `sessionId`
2911
+ # @return [String]
2912
+ attr_accessor :session_id
2913
+
2914
+ # Value of the Recall token as it was provided by the client in LinkPersona RPC
2915
+ # Corresponds to the JSON property `token`
2916
+ # @return [String]
2917
+ attr_accessor :token
2918
+
2919
+ def initialize(**args)
2920
+ update!(**args)
2921
+ end
2922
+
2923
+ # Update properties of this object
2924
+ def update!(**args)
2925
+ @persona = args[:persona] if args.key?(:persona)
2926
+ @session_id = args[:session_id] if args.key?(:session_id)
2927
+ @token = args[:token] if args.key?(:token)
2928
+ end
2929
+ end
2930
+
2931
+ # Response for the UnlinkPersona RPC
2932
+ class UnlinkPersonaResponse
2933
+ include Google::Apis::Core::Hashable
2934
+
2935
+ # Required. Whether a Recall token specified by the request was deleted. Can be '
2936
+ # false' when there were no Recall tokens satisfied the criteria from the
2937
+ # request.
2938
+ # Corresponds to the JSON property `unlinked`
2939
+ # @return [Boolean]
2940
+ attr_accessor :unlinked
2941
+ alias_method :unlinked?, :unlinked
2942
+
2943
+ def initialize(**args)
2944
+ update!(**args)
2945
+ end
2946
+
2947
+ # Update properties of this object
2948
+ def update!(**args)
2949
+ @unlinked = args[:unlinked] if args.key?(:unlinked)
2950
+ end
2951
+ end
2724
2952
  end
2725
2953
  end
2726
2954
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GamesV1
18
18
  # Version of the google-apis-games_v1 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230822"
25
+ REVISION = "20230823"
26
26
  end
27
27
  end
28
28
  end
@@ -262,6 +262,18 @@ module Google
262
262
  include Google::Apis::Core::JsonObjectSupport
263
263
  end
264
264
 
265
+ class LinkPersonaRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class LinkPersonaResponse
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
265
277
  class MetagameConfig
266
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
279
 
@@ -364,6 +376,30 @@ module Google
364
376
  include Google::Apis::Core::JsonObjectSupport
365
377
  end
366
378
 
379
+ class RecallToken
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
385
+ class ResetPersonaRequest
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
391
+ class ResetPersonaResponse
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
397
+ class RetrievePlayerTokensResponse
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
367
403
  class CheckRevisionResponse
368
404
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
405
 
@@ -406,6 +442,18 @@ module Google
406
442
  include Google::Apis::Core::JsonObjectSupport
407
443
  end
408
444
 
445
+ class UnlinkPersonaRequest
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
451
+ class UnlinkPersonaResponse
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
409
457
  class AchievementDefinition
410
458
  # @private
411
459
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -840,6 +888,26 @@ module Google
840
888
  end
841
889
  end
842
890
 
891
+ class LinkPersonaRequest
892
+ # @private
893
+ class Representation < Google::Apis::Core::JsonRepresentation
894
+ property :cardinality_constraint, as: 'cardinalityConstraint'
895
+ property :conflicting_links_resolution_policy, as: 'conflictingLinksResolutionPolicy'
896
+ property :expire_time, as: 'expireTime'
897
+ property :persona, as: 'persona'
898
+ property :session_id, as: 'sessionId'
899
+ property :token, as: 'token'
900
+ property :ttl, as: 'ttl'
901
+ end
902
+ end
903
+
904
+ class LinkPersonaResponse
905
+ # @private
906
+ class Representation < Google::Apis::Core::JsonRepresentation
907
+ property :state, as: 'state'
908
+ end
909
+ end
910
+
843
911
  class MetagameConfig
844
912
  # @private
845
913
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1039,6 +1107,37 @@ module Google
1039
1107
  end
1040
1108
  end
1041
1109
 
1110
+ class RecallToken
1111
+ # @private
1112
+ class Representation < Google::Apis::Core::JsonRepresentation
1113
+ property :expire_time, as: 'expireTime'
1114
+ property :multi_player_persona, as: 'multiPlayerPersona'
1115
+ property :token, as: 'token'
1116
+ end
1117
+ end
1118
+
1119
+ class ResetPersonaRequest
1120
+ # @private
1121
+ class Representation < Google::Apis::Core::JsonRepresentation
1122
+ property :persona, as: 'persona'
1123
+ end
1124
+ end
1125
+
1126
+ class ResetPersonaResponse
1127
+ # @private
1128
+ class Representation < Google::Apis::Core::JsonRepresentation
1129
+ property :unlinked, as: 'unlinked'
1130
+ end
1131
+ end
1132
+
1133
+ class RetrievePlayerTokensResponse
1134
+ # @private
1135
+ class Representation < Google::Apis::Core::JsonRepresentation
1136
+ collection :tokens, as: 'tokens', class: Google::Apis::GamesV1::RecallToken, decorator: Google::Apis::GamesV1::RecallToken::Representation
1137
+
1138
+ end
1139
+ end
1140
+
1042
1141
  class CheckRevisionResponse
1043
1142
  # @private
1044
1143
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1122,6 +1221,22 @@ module Google
1122
1221
  property :total_spend_next_28_days, as: 'total_spend_next_28_days'
1123
1222
  end
1124
1223
  end
1224
+
1225
+ class UnlinkPersonaRequest
1226
+ # @private
1227
+ class Representation < Google::Apis::Core::JsonRepresentation
1228
+ property :persona, as: 'persona'
1229
+ property :session_id, as: 'sessionId'
1230
+ property :token, as: 'token'
1231
+ end
1232
+ end
1233
+
1234
+ class UnlinkPersonaResponse
1235
+ # @private
1236
+ class Representation < Google::Apis::Core::JsonRepresentation
1237
+ property :unlinked, as: 'unlinked'
1238
+ end
1239
+ end
1125
1240
  end
1126
1241
  end
1127
1242
  end
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://developers.google.com/games/
35
35
  class GamesService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://games.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://games.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-games_v1',
49
51
  client_version: Google::Apis::GamesV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -825,6 +827,133 @@ module Google
825
827
  execute_or_queue_command(command, &block)
826
828
  end
827
829
 
830
+ # Associate the PGS Player principal encoded in the provided recall session id
831
+ # with an in-game account
832
+ # @param [Google::Apis::GamesV1::LinkPersonaRequest] link_persona_request_object
833
+ # @param [String] fields
834
+ # Selector specifying which fields to include in a partial response.
835
+ # @param [String] quota_user
836
+ # Available to use for quota purposes for server-side applications. Can be any
837
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
838
+ # @param [Google::Apis::RequestOptions] options
839
+ # Request-specific options
840
+ #
841
+ # @yield [result, err] Result & error if block supplied
842
+ # @yieldparam result [Google::Apis::GamesV1::LinkPersonaResponse] parsed result object
843
+ # @yieldparam err [StandardError] error object if request failed
844
+ #
845
+ # @return [Google::Apis::GamesV1::LinkPersonaResponse]
846
+ #
847
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
848
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
849
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
850
+ def link_recall_persona(link_persona_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
851
+ command = make_simple_command(:post, 'games/v1/recall:linkPersona', options)
852
+ command.request_representation = Google::Apis::GamesV1::LinkPersonaRequest::Representation
853
+ command.request_object = link_persona_request_object
854
+ command.response_representation = Google::Apis::GamesV1::LinkPersonaResponse::Representation
855
+ command.response_class = Google::Apis::GamesV1::LinkPersonaResponse
856
+ command.query['fields'] = fields unless fields.nil?
857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
858
+ execute_or_queue_command(command, &block)
859
+ end
860
+
861
+ # Delete all Recall tokens linking the given persona to any player (with or
862
+ # without a profile).
863
+ # @param [Google::Apis::GamesV1::ResetPersonaRequest] reset_persona_request_object
864
+ # @param [String] fields
865
+ # Selector specifying which fields to include in a partial response.
866
+ # @param [String] quota_user
867
+ # Available to use for quota purposes for server-side applications. Can be any
868
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
869
+ # @param [Google::Apis::RequestOptions] options
870
+ # Request-specific options
871
+ #
872
+ # @yield [result, err] Result & error if block supplied
873
+ # @yieldparam result [Google::Apis::GamesV1::ResetPersonaResponse] parsed result object
874
+ # @yieldparam err [StandardError] error object if request failed
875
+ #
876
+ # @return [Google::Apis::GamesV1::ResetPersonaResponse]
877
+ #
878
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
879
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
880
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
881
+ def reset_recall_persona(reset_persona_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
882
+ command = make_simple_command(:post, 'games/v1/recall:resetPersona', options)
883
+ command.request_representation = Google::Apis::GamesV1::ResetPersonaRequest::Representation
884
+ command.request_object = reset_persona_request_object
885
+ command.response_representation = Google::Apis::GamesV1::ResetPersonaResponse::Representation
886
+ command.response_class = Google::Apis::GamesV1::ResetPersonaResponse
887
+ command.query['fields'] = fields unless fields.nil?
888
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
889
+ execute_or_queue_command(command, &block)
890
+ end
891
+
892
+ # Retrieve all Recall tokens associated with the PGS Player principal encoded in
893
+ # the provided recall session id. The API is only available for users that have
894
+ # active PGS Player profile.
895
+ # @param [String] session_id
896
+ # Required. Opaque server-generated string that encodes all the necessary
897
+ # information to identify the PGS player / Google user and application.
898
+ # @param [String] fields
899
+ # Selector specifying which fields to include in a partial response.
900
+ # @param [String] quota_user
901
+ # Available to use for quota purposes for server-side applications. Can be any
902
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
903
+ # @param [Google::Apis::RequestOptions] options
904
+ # Request-specific options
905
+ #
906
+ # @yield [result, err] Result & error if block supplied
907
+ # @yieldparam result [Google::Apis::GamesV1::RetrievePlayerTokensResponse] parsed result object
908
+ # @yieldparam err [StandardError] error object if request failed
909
+ #
910
+ # @return [Google::Apis::GamesV1::RetrievePlayerTokensResponse]
911
+ #
912
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
915
+ def retrieve_recall_tokens(session_id, fields: nil, quota_user: nil, options: nil, &block)
916
+ command = make_simple_command(:get, 'games/v1/recall/tokens/{sessionId}', options)
917
+ command.response_representation = Google::Apis::GamesV1::RetrievePlayerTokensResponse::Representation
918
+ command.response_class = Google::Apis::GamesV1::RetrievePlayerTokensResponse
919
+ command.params['sessionId'] = session_id unless session_id.nil?
920
+ command.query['fields'] = fields unless fields.nil?
921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
922
+ execute_or_queue_command(command, &block)
923
+ end
924
+
925
+ # Delete a Recall token linking the PGS Player principal identified by the
926
+ # Recall session and an in-game account identified either by the 'persona' or by
927
+ # the token value.
928
+ # @param [Google::Apis::GamesV1::UnlinkPersonaRequest] unlink_persona_request_object
929
+ # @param [String] fields
930
+ # Selector specifying which fields to include in a partial response.
931
+ # @param [String] quota_user
932
+ # Available to use for quota purposes for server-side applications. Can be any
933
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
934
+ # @param [Google::Apis::RequestOptions] options
935
+ # Request-specific options
936
+ #
937
+ # @yield [result, err] Result & error if block supplied
938
+ # @yieldparam result [Google::Apis::GamesV1::UnlinkPersonaResponse] parsed result object
939
+ # @yieldparam err [StandardError] error object if request failed
940
+ #
941
+ # @return [Google::Apis::GamesV1::UnlinkPersonaResponse]
942
+ #
943
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
944
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
945
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
946
+ def unlink_recall_persona(unlink_persona_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
947
+ command = make_simple_command(:post, 'games/v1/recall:unlinkPersona', options)
948
+ command.request_representation = Google::Apis::GamesV1::UnlinkPersonaRequest::Representation
949
+ command.request_object = unlink_persona_request_object
950
+ command.response_representation = Google::Apis::GamesV1::UnlinkPersonaResponse::Representation
951
+ command.response_class = Google::Apis::GamesV1::UnlinkPersonaResponse
952
+ command.query['fields'] = fields unless fields.nil?
953
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
954
+ execute_or_queue_command(command, &block)
955
+ end
956
+
828
957
  # Checks whether the games client is out of date.
829
958
  # @param [String] client_revision
830
959
  # Required. The revision of the client SDK used by your application. Format: `[
@@ -30,6 +30,9 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
+ # View and manage your Google Play Developer account
34
+ AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
35
+
33
36
  # See, create, and delete its own configuration data in your Google Drive
34
37
  AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
35
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-games_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-games_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-games_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Play Game Services V1