google-apis-games_v1 0.26.0 → 0.27.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 600cf09e2fb7df8e89e99b7ddf932dc2636b4928e26ef4df6d0a8963f1806cf5
|
4
|
+
data.tar.gz: c1075af08207ed4b53225ce12ced60f3a5ce117005def0cdb3b2024f46303bbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a54de6b8feafc8ccc6498115fef4614b9467b9611dc92ecde059bfca2e115e2851806dab1a5e1b3679d0bf192c329758f14a01fc9fa9c88db826d63671235101
|
7
|
+
data.tar.gz: f761cb076f699c569b7b930fc86dff49cecb5f1ac48983a31dd3df90fa9bbdea35f4f05da9d444d734371a78ff8766e18e1fd0fd3c427b8f889cc9ec1c0feb03
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.27.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 = "
|
25
|
+
REVISION = "20240618"
|
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
|
|
@@ -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
|
@@ -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.
|
4
|
+
version: 0.27.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-
|
11
|
+
date: 2024-06-23 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.27.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: []
|