google-apis-games_v1 0.18.0 → 0.19.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: b3c3f633fe8f2175f0a1df3e374a0bc98cc37271ec868850fdfebbb06a6e3575
4
- data.tar.gz: e66c04edae4f310ba67a0df146f76b0731f1dc424e9aeb8dfc5a93413b076725
3
+ metadata.gz: '009f60844bd43b6bad918ee464e1127c5760f68b7587197cc7f176c9b7f3fa84'
4
+ data.tar.gz: 8e56980dc49dec24dab718ac95e7464ea23a4eafa92ab7ea492c5ffccfa0f0be
5
5
  SHA512:
6
- metadata.gz: 3de242be30b441b79c2bbb329deaea712ca843d03a537e9be459776b49542422363acdbdb0811c1b44d4bbac4b5dcea19651aaa25b13d10593479a52ce0263f6
7
- data.tar.gz: 84d188adec69047262440cd1b175a46bedcb3424be376d38ddb85834d20d1b7e230d056b32492db9c3195c04991211ee7f40e68aff2688cc12b3ddc8ac523298
6
+ metadata.gz: 328c73b1eac6adcb7430f0b71a2da6b48f42049bd69ddd3c67c96b71fda8982dd45ddfc9e7fb048e6a444f312caa9e33d6f726b109b458c4354fd260b1848f37
7
+ data.tar.gz: f787488e3c88d3449b7d32dd62ade8bfe9a17b9666ead9b3b8e167688e59d49f17032beb42b01959fa20992b3f100f1d0146adc24179639b4c0beb4bcb77b3c1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-games_v1
2
2
 
3
+ ### v0.19.0 (2023-03-26)
4
+
5
+ * Regenerated from discovery document revision 20230310
6
+
3
7
  ### v0.18.0 (2023-02-26)
4
8
 
5
9
  * Regenerated using generator version 0.12.0
@@ -547,6 +547,31 @@ module Google
547
547
  end
548
548
  end
549
549
 
550
+ # Primary scoped player identifier for an application.
551
+ class ApplicationPlayerId
552
+ include Google::Apis::Core::Hashable
553
+
554
+ # The application that this player identifier is for.
555
+ # Corresponds to the JSON property `applicationId`
556
+ # @return [String]
557
+ attr_accessor :application_id
558
+
559
+ # The player identifier for the application.
560
+ # Corresponds to the JSON property `playerId`
561
+ # @return [String]
562
+ attr_accessor :player_id
563
+
564
+ def initialize(**args)
565
+ update!(**args)
566
+ end
567
+
568
+ # Update properties of this object
569
+ def update!(**args)
570
+ @application_id = args[:application_id] if args.key?(:application_id)
571
+ @player_id = args[:player_id] if args.key?(:player_id)
572
+ end
573
+ end
574
+
550
575
  # A third party application verification response resource.
551
576
  class ApplicationVerifyResponse
552
577
  include Google::Apis::Core::Hashable
@@ -1081,6 +1106,27 @@ module Google
1081
1106
  end
1082
1107
  end
1083
1108
 
1109
+ # Response message for GetMultipleApplicationPlayerIds rpc.
1110
+ class GetMultipleApplicationPlayerIdsResponse
1111
+ include Google::Apis::Core::Hashable
1112
+
1113
+ # Output only. The requested applications along with the scoped ids for tha
1114
+ # player, if that player has an id for the application. If not, the application
1115
+ # is not included in the response.
1116
+ # Corresponds to the JSON property `playerIds`
1117
+ # @return [Array<Google::Apis::GamesV1::ApplicationPlayerId>]
1118
+ attr_accessor :player_ids
1119
+
1120
+ def initialize(**args)
1121
+ update!(**args)
1122
+ end
1123
+
1124
+ # Update properties of this object
1125
+ def update!(**args)
1126
+ @player_ids = args[:player_ids] if args.key?(:player_ids)
1127
+ end
1128
+ end
1129
+
1084
1130
  # An image asset object.
1085
1131
  class ImageAsset
1086
1132
  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.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220525"
25
+ REVISION = "20230310"
26
26
  end
27
27
  end
28
28
  end
@@ -94,6 +94,12 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
+ class ApplicationPlayerId
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
97
103
  class ApplicationVerifyResponse
98
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
105
 
@@ -190,6 +196,12 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class GetMultipleApplicationPlayerIdsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
193
205
  class ImageAsset
194
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
207
 
@@ -531,6 +543,14 @@ module Google
531
543
  end
532
544
  end
533
545
 
546
+ class ApplicationPlayerId
547
+ # @private
548
+ class Representation < Google::Apis::Core::JsonRepresentation
549
+ property :application_id, as: 'applicationId'
550
+ property :player_id, as: 'playerId'
551
+ end
552
+ end
553
+
534
554
  class ApplicationVerifyResponse
535
555
  # @private
536
556
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -688,6 +708,14 @@ module Google
688
708
  end
689
709
  end
690
710
 
711
+ class GetMultipleApplicationPlayerIdsResponse
712
+ # @private
713
+ class Representation < Google::Apis::Core::JsonRepresentation
714
+ collection :player_ids, as: 'playerIds', class: Google::Apis::GamesV1::ApplicationPlayerId, decorator: Google::Apis::GamesV1::ApplicationPlayerId::Representation
715
+
716
+ end
717
+ end
718
+
691
719
  class ImageAsset
692
720
  # @private
693
721
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -723,6 +723,40 @@ module Google
723
723
  execute_or_queue_command(command, &block)
724
724
  end
725
725
 
726
+ # Get the application player ids for the currently authenticated player across
727
+ # all requested games by the same developer as the calling application. This
728
+ # will only return ids for players that actually have an id (scoped or otherwise)
729
+ # with that game.
730
+ # @param [Array<String>, String] application_ids
731
+ # Required. The application IDs from the Google Play developer console for the
732
+ # games to return scoped ids for.
733
+ # @param [String] fields
734
+ # Selector specifying which fields to include in a partial response.
735
+ # @param [String] quota_user
736
+ # Available to use for quota purposes for server-side applications. Can be any
737
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
738
+ # @param [Google::Apis::RequestOptions] options
739
+ # Request-specific options
740
+ #
741
+ # @yield [result, err] Result & error if block supplied
742
+ # @yieldparam result [Google::Apis::GamesV1::GetMultipleApplicationPlayerIdsResponse] parsed result object
743
+ # @yieldparam err [StandardError] error object if request failed
744
+ #
745
+ # @return [Google::Apis::GamesV1::GetMultipleApplicationPlayerIdsResponse]
746
+ #
747
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
748
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
749
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
750
+ def get_player_multiple_application_player_ids(application_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
751
+ command = make_simple_command(:get, 'games/v1/players/me/multipleApplicationPlayerIds', options)
752
+ command.response_representation = Google::Apis::GamesV1::GetMultipleApplicationPlayerIdsResponse::Representation
753
+ command.response_class = Google::Apis::GamesV1::GetMultipleApplicationPlayerIdsResponse
754
+ command.query['applicationIds'] = application_ids unless application_ids.nil?
755
+ command.query['fields'] = fields unless fields.nil?
756
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
757
+ execute_or_queue_command(command, &block)
758
+ end
759
+
726
760
  # Retrieves scoped player identifiers for currently authenticated user.
727
761
  # @param [String] fields
728
762
  # Selector specifying which fields to include in a partial response.
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.18.0
4
+ version: 0.19.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: 2023-02-26 00:00:00.000000000 Z
11
+ date: 2023-03-26 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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.19.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: []