google-apis-games_v1 0.26.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af63cd3f3f2727c457c4a22b2c52dc37163d58d3ffa31f3886f9402ac9a22eb3
4
- data.tar.gz: 0fbec18ca4b66eaf40ec6b65576cee5360998bc62f2f5c12fa6bc165bb947ccc
3
+ metadata.gz: 7747e1ed0f6b33ac82f00ec2639c8b6868b1c075dc919969282473555537f96f
4
+ data.tar.gz: 10a188b47181af4c09f46c53022915dd310a7f5a21d1c080d190bec09c2ce4fc
5
5
  SHA512:
6
- metadata.gz: da16194dbab334e018001a73918082922cd3541cb5e895ac4c1e0665edfc9e12e6fdaf7ada193c7520c4afeaa1c977e93eec0a1789cc40a8cb3fb654c1085485
7
- data.tar.gz: 87487e03839e99b62bfe786897fb6f60c2984265a146bc9e7fb15798264189009f7ab7226d2c1f49f9f753bac6b89a521508ebfc8b38ed78bb18f32db9d75604
6
+ metadata.gz: 0607f479381abbd4836803e5b8c330b5d7a5d7469dc7da155db8ff433ff5bfb34ac469e7ca33a31e06a3f6b5b081110aed7bec3a87c81628da4c0dbb58f3e1c3
7
+ data.tar.gz: 81b04886bb7a9dc57ec927ad633bf7ba8a0bad271cb1d415ddd4e110559687d45892c3d9a241f89cf886a6308002ae0ad41fe10574072bb26e849709eaaa6b11
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-games_v1
2
2
 
3
+ ### v0.28.0 (2024-07-25)
4
+
5
+ * Regenerated from discovery document revision 20240701
6
+
7
+ ### v0.27.0 (2024-06-23)
8
+
9
+ * Regenerated from discovery document revision 20240618
10
+
3
11
  ### v0.26.0 (2024-06-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20240529
@@ -1057,10 +1057,10 @@ module Google
1057
1057
  # @return [String]
1058
1058
  attr_accessor :application_id
1059
1059
 
1060
- # Recall token data.
1061
- # Corresponds to the JSON property `token`
1062
- # @return [Array<Google::Apis::GamesV1::RecallToken>]
1063
- attr_accessor :token
1060
+ # Recall token data returned from RetrievePlayerTokens RPC
1061
+ # Corresponds to the JSON property `recallToken`
1062
+ # @return [Google::Apis::GamesV1::RecallToken]
1063
+ attr_accessor :recall_token
1064
1064
 
1065
1065
  def initialize(**args)
1066
1066
  update!(**args)
@@ -1069,7 +1069,7 @@ module Google
1069
1069
  # Update properties of this object
1070
1070
  def update!(**args)
1071
1071
  @application_id = args[:application_id] if args.key?(:application_id)
1072
- @token = args[:token] if args.key?(:token)
1072
+ @recall_token = args[:recall_token] if args.key?(:recall_token)
1073
1073
  end
1074
1074
  end
1075
1075
 
@@ -1131,6 +1131,44 @@ module Google
1131
1131
  end
1132
1132
  end
1133
1133
 
1134
+ # Response for the GeneratePlayGroupingApiToken RPC.
1135
+ class GeneratePlayGroupingApiTokenResponse
1136
+ include Google::Apis::Core::Hashable
1137
+
1138
+ # Token data returned from GeneratePlayGroupingApiToken RPC.
1139
+ # Corresponds to the JSON property `token`
1140
+ # @return [Google::Apis::GamesV1::PlayGroupingApiToken]
1141
+ attr_accessor :token
1142
+
1143
+ def initialize(**args)
1144
+ update!(**args)
1145
+ end
1146
+
1147
+ # Update properties of this object
1148
+ def update!(**args)
1149
+ @token = args[:token] if args.key?(:token)
1150
+ end
1151
+ end
1152
+
1153
+ # Response for the GenerateRecallPlayGroupingApiToken RPC.
1154
+ class GenerateRecallPlayGroupingApiTokenResponse
1155
+ include Google::Apis::Core::Hashable
1156
+
1157
+ # Token data returned from GeneratePlayGroupingApiToken RPC.
1158
+ # Corresponds to the JSON property `token`
1159
+ # @return [Google::Apis::GamesV1::PlayGroupingApiToken]
1160
+ attr_accessor :token
1161
+
1162
+ def initialize(**args)
1163
+ update!(**args)
1164
+ end
1165
+
1166
+ # Update properties of this object
1167
+ def update!(**args)
1168
+ @token = args[:token] if args.key?(:token)
1169
+ end
1170
+ end
1171
+
1134
1172
  # Response message for GetMultipleApplicationPlayerIds rpc.
1135
1173
  class GetMultipleApplicationPlayerIdsResponse
1136
1174
  include Google::Apis::Core::Hashable
@@ -1762,6 +1800,25 @@ module Google
1762
1800
  end
1763
1801
  end
1764
1802
 
1803
+ # Token data returned from GeneratePlayGroupingApiToken RPC.
1804
+ class PlayGroupingApiToken
1805
+ include Google::Apis::Core::Hashable
1806
+
1807
+ # Value of the token.
1808
+ # Corresponds to the JSON property `tokenValue`
1809
+ # @return [String]
1810
+ attr_accessor :token_value
1811
+
1812
+ def initialize(**args)
1813
+ update!(**args)
1814
+ end
1815
+
1816
+ # Update properties of this object
1817
+ def update!(**args)
1818
+ @token_value = args[:token_value] if args.key?(:token_value)
1819
+ end
1820
+ end
1821
+
1765
1822
  # A Player resource.
1766
1823
  class Player
1767
1824
  include Google::Apis::Core::Hashable
@@ -2542,10 +2599,10 @@ module Google
2542
2599
  class RetrieveDeveloperGamesLastPlayerTokenResponse
2543
2600
  include Google::Apis::Core::Hashable
2544
2601
 
2545
- # Recall token data returned from RetrievePlayerTokens RPC
2546
- # Corresponds to the JSON property `token`
2547
- # @return [Google::Apis::GamesV1::RecallToken]
2548
- attr_accessor :token
2602
+ # Recall tokens for a game.
2603
+ # Corresponds to the JSON property `gamePlayerToken`
2604
+ # @return [Google::Apis::GamesV1::GamePlayerToken]
2605
+ attr_accessor :game_player_token
2549
2606
 
2550
2607
  def initialize(**args)
2551
2608
  update!(**args)
@@ -2553,7 +2610,7 @@ module Google
2553
2610
 
2554
2611
  # Update properties of this object
2555
2612
  def update!(**args)
2556
- @token = args[:token] if args.key?(:token)
2613
+ @game_player_token = args[:game_player_token] if args.key?(:game_player_token)
2557
2614
  end
2558
2615
  end
2559
2616
 
@@ -2564,9 +2621,9 @@ module Google
2564
2621
  # The requested applications along with the recall tokens for the player. If the
2565
2622
  # player does not have recall tokens for an application, that application is not
2566
2623
  # included in the response.
2567
- # Corresponds to the JSON property `applicationRecallTokens`
2624
+ # Corresponds to the JSON property `gamePlayerTokens`
2568
2625
  # @return [Array<Google::Apis::GamesV1::GamePlayerToken>]
2569
- attr_accessor :application_recall_tokens
2626
+ attr_accessor :game_player_tokens
2570
2627
 
2571
2628
  def initialize(**args)
2572
2629
  update!(**args)
@@ -2574,7 +2631,7 @@ module Google
2574
2631
 
2575
2632
  # Update properties of this object
2576
2633
  def update!(**args)
2577
- @application_recall_tokens = args[:application_recall_tokens] if args.key?(:application_recall_tokens)
2634
+ @game_player_tokens = args[:game_player_tokens] if args.key?(:game_player_tokens)
2578
2635
  end
2579
2636
  end
2580
2637
 
@@ -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.26.0"
19
+ GEM_VERSION = "0.28.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240529"
25
+ REVISION = "20240701"
26
26
  end
27
27
  end
28
28
  end
@@ -202,6 +202,18 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
+ class GeneratePlayGroupingApiTokenResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class GenerateRecallPlayGroupingApiTokenResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class GetMultipleApplicationPlayerIdsResponse
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -286,6 +298,12 @@ module Google
286
298
  include Google::Apis::Core::JsonObjectSupport
287
299
  end
288
300
 
301
+ class PlayGroupingApiToken
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
289
307
  class Player
290
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
309
 
@@ -761,7 +779,7 @@ module Google
761
779
  # @private
762
780
  class Representation < Google::Apis::Core::JsonRepresentation
763
781
  property :application_id, as: 'applicationId'
764
- collection :token, as: 'token', class: Google::Apis::GamesV1::RecallToken, decorator: Google::Apis::GamesV1::RecallToken::Representation
782
+ property :recall_token, as: 'recallToken', class: Google::Apis::GamesV1::RecallToken, decorator: Google::Apis::GamesV1::RecallToken::Representation
765
783
 
766
784
  end
767
785
  end
@@ -783,6 +801,22 @@ module Google
783
801
  end
784
802
  end
785
803
 
804
+ class GeneratePlayGroupingApiTokenResponse
805
+ # @private
806
+ class Representation < Google::Apis::Core::JsonRepresentation
807
+ property :token, as: 'token', class: Google::Apis::GamesV1::PlayGroupingApiToken, decorator: Google::Apis::GamesV1::PlayGroupingApiToken::Representation
808
+
809
+ end
810
+ end
811
+
812
+ class GenerateRecallPlayGroupingApiTokenResponse
813
+ # @private
814
+ class Representation < Google::Apis::Core::JsonRepresentation
815
+ property :token, as: 'token', class: Google::Apis::GamesV1::PlayGroupingApiToken, decorator: Google::Apis::GamesV1::PlayGroupingApiToken::Representation
816
+
817
+ end
818
+ end
819
+
786
820
  class GetMultipleApplicationPlayerIdsResponse
787
821
  # @private
788
822
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -945,6 +979,13 @@ module Google
945
979
  end
946
980
  end
947
981
 
982
+ class PlayGroupingApiToken
983
+ # @private
984
+ class Representation < Google::Apis::Core::JsonRepresentation
985
+ property :token_value, as: 'tokenValue'
986
+ end
987
+ end
988
+
948
989
  class Player
949
990
  # @private
950
991
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1160,7 +1201,7 @@ module Google
1160
1201
  class RetrieveDeveloperGamesLastPlayerTokenResponse
1161
1202
  # @private
1162
1203
  class Representation < Google::Apis::Core::JsonRepresentation
1163
- property :token, as: 'token', class: Google::Apis::GamesV1::RecallToken, decorator: Google::Apis::GamesV1::RecallToken::Representation
1204
+ property :game_player_token, as: 'gamePlayerToken', class: Google::Apis::GamesV1::GamePlayerToken, decorator: Google::Apis::GamesV1::GamePlayerToken::Representation
1164
1205
 
1165
1206
  end
1166
1207
  end
@@ -1168,7 +1209,7 @@ module Google
1168
1209
  class RetrieveGamesPlayerTokensResponse
1169
1210
  # @private
1170
1211
  class Representation < Google::Apis::Core::JsonRepresentation
1171
- collection :application_recall_tokens, as: 'applicationRecallTokens', class: Google::Apis::GamesV1::GamePlayerToken, decorator: Google::Apis::GamesV1::GamePlayerToken::Representation
1212
+ collection :game_player_tokens, as: 'gamePlayerTokens', class: Google::Apis::GamesV1::GamePlayerToken, decorator: Google::Apis::GamesV1::GamePlayerToken::Representation
1172
1213
 
1173
1214
  end
1174
1215
  end
@@ -52,6 +52,86 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # Generates a Play Grouping API token for the PGS user identified by the
56
+ # attached credential.
57
+ # @param [String] package_name
58
+ # Required. App package name to generate the token for (e.g. com.example.mygame).
59
+ # @param [String] persona
60
+ # Required. Persona to associate with the token. Persona is a developer-provided
61
+ # stable identifier of the user. Must be deterministically generated (e.g. as a
62
+ # one-way hash) from the user account ID and user profile ID (if the app has the
63
+ # concept), according to the developer's own user identity system.
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::GamesV1::GeneratePlayGroupingApiTokenResponse] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::GamesV1::GeneratePlayGroupingApiTokenResponse]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def generate_accesstoken_play_grouping_api_token(package_name: nil, persona: nil, fields: nil, quota_user: nil, options: nil, &block)
82
+ command = make_simple_command(:post, 'games/v1/accesstokens/generatePlayGroupingApiToken', options)
83
+ command.response_representation = Google::Apis::GamesV1::GeneratePlayGroupingApiTokenResponse::Representation
84
+ command.response_class = Google::Apis::GamesV1::GeneratePlayGroupingApiTokenResponse
85
+ command.query['packageName'] = package_name unless package_name.nil?
86
+ command.query['persona'] = persona unless persona.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Generates a Play Grouping API token for the PGS user identified by the Recall
93
+ # session ID provided in the request.
94
+ # @param [String] package_name
95
+ # Required. App package name to generate the token for (e.g. com.example.mygame).
96
+ # @param [String] persona
97
+ # Required. Persona to associate with the token. Persona is a developer-provided
98
+ # stable identifier of the user. Must be deterministically generated (e.g. as a
99
+ # one-way hash) from the user account ID and user profile ID (if the app has the
100
+ # concept), according to the developer's own user identity system.
101
+ # @param [String] recall_session_id
102
+ # Required. Opaque server-generated string that encodes all the necessary
103
+ # information to identify the PGS player / Google user and application. See
104
+ # https://developer.android.com/games/pgs/recall/recall-setup on how to
105
+ # integrate with Recall and get session ID.
106
+ # @param [String] fields
107
+ # Selector specifying which fields to include in a partial response.
108
+ # @param [String] quota_user
109
+ # Available to use for quota purposes for server-side applications. Can be any
110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
111
+ # @param [Google::Apis::RequestOptions] options
112
+ # Request-specific options
113
+ #
114
+ # @yield [result, err] Result & error if block supplied
115
+ # @yieldparam result [Google::Apis::GamesV1::GenerateRecallPlayGroupingApiTokenResponse] parsed result object
116
+ # @yieldparam err [StandardError] error object if request failed
117
+ #
118
+ # @return [Google::Apis::GamesV1::GenerateRecallPlayGroupingApiTokenResponse]
119
+ #
120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
123
+ def generate_accesstoken_recall_play_grouping_api_token(package_name: nil, persona: nil, recall_session_id: nil, fields: nil, quota_user: nil, options: nil, &block)
124
+ command = make_simple_command(:post, 'games/v1/accesstokens/generateRecallPlayGroupingApiToken', options)
125
+ command.response_representation = Google::Apis::GamesV1::GenerateRecallPlayGroupingApiTokenResponse::Representation
126
+ command.response_class = Google::Apis::GamesV1::GenerateRecallPlayGroupingApiTokenResponse
127
+ command.query['packageName'] = package_name unless package_name.nil?
128
+ command.query['persona'] = persona unless persona.nil?
129
+ command.query['recallSessionId'] = recall_session_id unless recall_session_id.nil?
130
+ command.query['fields'] = fields unless fields.nil?
131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
132
+ execute_or_queue_command(command, &block)
133
+ end
134
+
55
135
  # Lists all the achievement definitions for your application.
56
136
  # @param [String] language
57
137
  # The preferred language to use for strings returned by this method.
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.26.0
4
+ version: 0.28.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: 2024-06-09 00:00:00.000000000 Z
11
+ date: 2024-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.28.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: []