google-apis-games_v1 0.12.0 → 0.13.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: 98f702361b37f2c49c236f76ab3ea4c9ab9020b3f1ea4fc309c2572d3b9021ea
|
4
|
+
data.tar.gz: 5eba46cde4b2146a008a5b1f6d26585ed59ec47c7718e09e1739452e66a0014f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a604eb94d89f18e9af2b0c1574483b7ce99715894891f8d59dba6127f2de40c8eefa1b3a9134946bad9f158dbe3e21def9a543a43d7c18a93cf9c8361064f1a8
|
7
|
+
data.tar.gz: 8f60ca97f03754ee7c92e781b596d21ad7899cd0883a597ac0c87fb7f6b4b47b3e9276097b1df3ed1733bc22e1e62b18b9287d0daaa22e1bd021993d544fd0d5
|
data/CHANGELOG.md
CHANGED
@@ -2345,6 +2345,35 @@ module Google
|
|
2345
2345
|
end
|
2346
2346
|
end
|
2347
2347
|
|
2348
|
+
# Scoped player identifiers.
|
2349
|
+
class ScopedPlayerIds
|
2350
|
+
include Google::Apis::Core::Hashable
|
2351
|
+
|
2352
|
+
# Identifier of the player across all games of the given developer. Every player
|
2353
|
+
# has the same developer_player_key in all games of one developer. Developer
|
2354
|
+
# player key changes for the game if the game is transferred to another
|
2355
|
+
# developer. Note that game_player_id will stay unchanged.
|
2356
|
+
# Corresponds to the JSON property `developerPlayerKey`
|
2357
|
+
# @return [String]
|
2358
|
+
attr_accessor :developer_player_key
|
2359
|
+
|
2360
|
+
# Game-scoped player identifier. This is the same id that is returned in
|
2361
|
+
# GetPlayer game_player_id field.
|
2362
|
+
# Corresponds to the JSON property `gamePlayerId`
|
2363
|
+
# @return [String]
|
2364
|
+
attr_accessor :game_player_id
|
2365
|
+
|
2366
|
+
def initialize(**args)
|
2367
|
+
update!(**args)
|
2368
|
+
end
|
2369
|
+
|
2370
|
+
# Update properties of this object
|
2371
|
+
def update!(**args)
|
2372
|
+
@developer_player_key = args[:developer_player_key] if args.key?(:developer_player_key)
|
2373
|
+
@game_player_id = args[:game_player_id] if args.key?(:game_player_id)
|
2374
|
+
end
|
2375
|
+
end
|
2376
|
+
|
2348
2377
|
# A request to submit a score to leaderboards.
|
2349
2378
|
class ScoreSubmission
|
2350
2379
|
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.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220525"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -358,6 +358,12 @@ module Google
|
|
358
358
|
include Google::Apis::Core::JsonObjectSupport
|
359
359
|
end
|
360
360
|
|
361
|
+
class ScopedPlayerIds
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
361
367
|
class ScoreSubmission
|
362
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
369
|
|
@@ -1014,6 +1020,14 @@ module Google
|
|
1014
1020
|
end
|
1015
1021
|
end
|
1016
1022
|
|
1023
|
+
class ScopedPlayerIds
|
1024
|
+
# @private
|
1025
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1026
|
+
property :developer_player_key, as: 'developerPlayerKey'
|
1027
|
+
property :game_player_id, as: 'gamePlayerId'
|
1028
|
+
end
|
1029
|
+
end
|
1030
|
+
|
1017
1031
|
class ScoreSubmission
|
1018
1032
|
# @private
|
1019
1033
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -723,6 +723,33 @@ module Google
|
|
723
723
|
execute_or_queue_command(command, &block)
|
724
724
|
end
|
725
725
|
|
726
|
+
# Retrieves scoped player identifiers for currently authenticated user.
|
727
|
+
# @param [String] fields
|
728
|
+
# Selector specifying which fields to include in a partial response.
|
729
|
+
# @param [String] quota_user
|
730
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
731
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
732
|
+
# @param [Google::Apis::RequestOptions] options
|
733
|
+
# Request-specific options
|
734
|
+
#
|
735
|
+
# @yield [result, err] Result & error if block supplied
|
736
|
+
# @yieldparam result [Google::Apis::GamesV1::ScopedPlayerIds] parsed result object
|
737
|
+
# @yieldparam err [StandardError] error object if request failed
|
738
|
+
#
|
739
|
+
# @return [Google::Apis::GamesV1::ScopedPlayerIds]
|
740
|
+
#
|
741
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
742
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
743
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
744
|
+
def get_player_scoped_player_ids(fields: nil, quota_user: nil, options: nil, &block)
|
745
|
+
command = make_simple_command(:get, 'games/v1/players/me/scopedIds', options)
|
746
|
+
command.response_representation = Google::Apis::GamesV1::ScopedPlayerIds::Representation
|
747
|
+
command.response_class = Google::Apis::GamesV1::ScopedPlayerIds
|
748
|
+
command.query['fields'] = fields unless fields.nil?
|
749
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
750
|
+
execute_or_queue_command(command, &block)
|
751
|
+
end
|
752
|
+
|
726
753
|
# Get the collection of players for the currently authenticated user.
|
727
754
|
# @param [String] collection
|
728
755
|
# Collection of players being retrieved
|
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.13.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: 2022-
|
11
|
+
date: 2022-06-13 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.
|
19
|
+
version: '0.5'
|
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.
|
29
|
+
version: '0.5'
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.13.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.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Play Game Services V1
|