google-apis-games_v1 0.10.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
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-games_v1
|
2
2
|
|
3
|
+
### v0.13.0 (2022-06-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220525
|
6
|
+
|
7
|
+
### v0.12.0 (2022-04-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220330
|
10
|
+
|
11
|
+
### v0.11.0 (2022-03-24)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220317
|
14
|
+
* Regenerated using generator version 0.4.1
|
15
|
+
|
3
16
|
### v0.10.0 (2021-12-14)
|
4
17
|
|
5
18
|
* Unspecified changes
|
@@ -1646,6 +1646,11 @@ module Google
|
|
1646
1646
|
# @return [String]
|
1647
1647
|
attr_accessor :friend_status
|
1648
1648
|
|
1649
|
+
# Per-application unique player identifier.
|
1650
|
+
# Corresponds to the JSON property `gamePlayerId`
|
1651
|
+
# @return [String]
|
1652
|
+
attr_accessor :game_player_id
|
1653
|
+
|
1649
1654
|
# Uniquely identifies the type of this resource. Value is always the fixed
|
1650
1655
|
# string `games#player`
|
1651
1656
|
# Corresponds to the JSON property `kind`
|
@@ -1692,6 +1697,7 @@ module Google
|
|
1692
1697
|
@display_name = args[:display_name] if args.key?(:display_name)
|
1693
1698
|
@experience_info = args[:experience_info] if args.key?(:experience_info)
|
1694
1699
|
@friend_status = args[:friend_status] if args.key?(:friend_status)
|
1700
|
+
@game_player_id = args[:game_player_id] if args.key?(:game_player_id)
|
1695
1701
|
@kind = args[:kind] if args.key?(:kind)
|
1696
1702
|
@name = args[:name] if args.key?(:name)
|
1697
1703
|
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
|
@@ -2339,6 +2345,35 @@ module Google
|
|
2339
2345
|
end
|
2340
2346
|
end
|
2341
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
|
+
|
2342
2377
|
# A request to submit a score to leaderboards.
|
2343
2378
|
class ScoreSubmission
|
2344
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
|
-
GENERATOR_VERSION = "0.4.
|
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
|
|
@@ -826,6 +832,7 @@ module Google
|
|
826
832
|
property :experience_info, as: 'experienceInfo', class: Google::Apis::GamesV1::PlayerExperienceInfo, decorator: Google::Apis::GamesV1::PlayerExperienceInfo::Representation
|
827
833
|
|
828
834
|
property :friend_status, as: 'friendStatus'
|
835
|
+
property :game_player_id, as: 'gamePlayerId'
|
829
836
|
property :kind, as: 'kind'
|
830
837
|
property :name, as: 'name', class: Google::Apis::GamesV1::Player::Name, decorator: Google::Apis::GamesV1::Player::Name::Representation
|
831
838
|
|
@@ -1013,6 +1020,14 @@ module Google
|
|
1013
1020
|
end
|
1014
1021
|
end
|
1015
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
|
+
|
1016
1031
|
class ScoreSubmission
|
1017
1032
|
# @private
|
1018
1033
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -690,6 +690,10 @@ module Google
|
|
690
690
|
# s ID.
|
691
691
|
# @param [String] language
|
692
692
|
# The preferred language to use for strings returned by this method.
|
693
|
+
# @param [String] player_id_consistency_token
|
694
|
+
# Consistency token of the player id. The call returns a 'not found' result when
|
695
|
+
# the token is present and invalid. Empty value is ignored. See also
|
696
|
+
# GlobalPlayerIdConsistencyTokenProto
|
693
697
|
# @param [String] fields
|
694
698
|
# Selector specifying which fields to include in a partial response.
|
695
699
|
# @param [String] quota_user
|
@@ -707,12 +711,40 @@ module Google
|
|
707
711
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
708
712
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
709
713
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
710
|
-
def get_player(player_id, language: nil, fields: nil, quota_user: nil, options: nil, &block)
|
714
|
+
def get_player(player_id, language: nil, player_id_consistency_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
711
715
|
command = make_simple_command(:get, 'games/v1/players/{playerId}', options)
|
712
716
|
command.response_representation = Google::Apis::GamesV1::Player::Representation
|
713
717
|
command.response_class = Google::Apis::GamesV1::Player
|
714
718
|
command.params['playerId'] = player_id unless player_id.nil?
|
715
719
|
command.query['language'] = language unless language.nil?
|
720
|
+
command.query['playerIdConsistencyToken'] = player_id_consistency_token unless player_id_consistency_token.nil?
|
721
|
+
command.query['fields'] = fields unless fields.nil?
|
722
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
723
|
+
execute_or_queue_command(command, &block)
|
724
|
+
end
|
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
|
716
748
|
command.query['fields'] = fields unless fields.nil?
|
717
749
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
718
750
|
execute_or_queue_command(command, &block)
|
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
|