google-apis-games_v1 0.11.0 → 0.14.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: '08b86fc80d6098cf3a8bde01fad891bd665814e3891542bfdaf22916305aa9b8'
4
- data.tar.gz: ce149bd83490946ba243e435282aa935b7bce0745025b446f155b33db32db4ea
3
+ metadata.gz: 53d7b09ea269482cd5bdca13f822833ff5f4919096c45ce5cbdcaecd5984b3f2
4
+ data.tar.gz: 6c259b54c7e9779b32f4aa8bf6e0238bed4ae41de96c70cd0ec51acf326b16ce
5
5
  SHA512:
6
- metadata.gz: 2930e386080aa138715c633b6168ef862a3eb5c216fc4a3b126d0411511f3fa1639ecbb6eb82066163ef0dd927f30bfe2a1f7100099cf8995465631e67061281
7
- data.tar.gz: 22974d2e7c3b4fecb22a0c46bfa7c806660a8bdf33f0e90908ad1e3f961184c87b481ee191b53db87e57ab9e5a2c9ed9189f6141a8e054641ed560a01cca9559
6
+ metadata.gz: b31cf692aef647c4e2c6814f68b6d49ddecbbd4635a3c34c1db4e5744dc4568cd97b25cfca8c805787056b1133884eb5ed10e9125bc372a79ed8a925d66c9358
7
+ data.tar.gz: b0bb66827b00a05d80b548ff6ae5015ad7f58d3b7471d2055602f06be03698431b6aa51f15bbed81fc2b31cbf2128bc21c27c6c6457d4182c0cbfbb7767295a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-games_v1
2
2
 
3
+ ### v0.14.0 (2022-06-21)
4
+
5
+ * Regenerated using generator version 0.7.0
6
+
7
+ ### v0.13.0 (2022-06-02)
8
+
9
+ * Regenerated from discovery document revision 20220525
10
+
11
+ ### v0.12.0 (2022-04-06)
12
+
13
+ * Regenerated from discovery document revision 20220330
14
+
3
15
  ### v0.11.0 (2022-03-24)
4
16
 
5
17
  * Regenerated from discovery document revision 20220317
@@ -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.11.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220317"
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
@@ -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.11.0
4
+ version: 0.14.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-06-27 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.4'
19
+ version: '0.6'
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.4'
29
+ version: '0.6'
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.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.14.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.5
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