google-apis-games_v1 0.18.0 → 0.20.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: b6fba9f51f3ab25458b218d1374f29ddcddfade893afd571850d3a27655ffc9e
4
+ data.tar.gz: 651c9c389a52dfaaa51e4f8a40a8fdb2915660ff9a7cffe5eaaf54de10d84bf2
5
5
  SHA512:
6
- metadata.gz: 3de242be30b441b79c2bbb329deaea712ca843d03a537e9be459776b49542422363acdbdb0811c1b44d4bbac4b5dcea19651aaa25b13d10593479a52ce0263f6
7
- data.tar.gz: 84d188adec69047262440cd1b175a46bedcb3424be376d38ddb85834d20d1b7e230d056b32492db9c3195c04991211ee7f40e68aff2688cc12b3ddc8ac523298
6
+ metadata.gz: 219db66f2719d63441ef1155bb8b8e31a664f4a862cd1e9de1c1723fa729a4ecf77cf84e0297c9a71be669306854b1276f9f514f0df90be67f7dde5423d5106d
7
+ data.tar.gz: b6313f31f29275d5c35c11b6caebad96a73f1335ad40dee8999ee586a7a45267276bba4b49dabcfed349fd714667b0fcffcee42eae866b1bd504c1b114b47b05
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-games_v1
2
2
 
3
+ ### v0.20.0 (2023-08-27)
4
+
5
+ * Regenerated from discovery document revision 20230822
6
+
7
+ ### v0.19.0 (2023-03-26)
8
+
9
+ * Regenerated from discovery document revision 20230310
10
+
3
11
  ### v0.18.0 (2023-02-26)
4
12
 
5
13
  * 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.20.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 = "20230822"
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
@@ -93,7 +93,7 @@ module Google
93
93
  # @param [String] achievement_id
94
94
  # The ID of the achievement used by this method.
95
95
  # @param [Fixnum] steps_to_increment
96
- # The number of steps to increment.
96
+ # Required. The number of steps to increment.
97
97
  # @param [Fixnum] request_id
98
98
  # A randomly generated numeric ID for each request specified by the caller. This
99
99
  # number is used at the server to ensure that the request is handled correctly
@@ -212,7 +212,7 @@ module Google
212
212
  # @param [String] achievement_id
213
213
  # The ID of the achievement used by this method.
214
214
  # @param [Fixnum] steps
215
- # The minimum value to set the steps to.
215
+ # Required. The minimum value to set the steps to.
216
216
  # @param [String] fields
217
217
  # Selector specifying which fields to include in a partial response.
218
218
  # @param [String] quota_user
@@ -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.
@@ -793,7 +827,7 @@ module Google
793
827
 
794
828
  # Checks whether the games client is out of date.
795
829
  # @param [String] client_revision
796
- # The revision of the client SDK used by your application. Format: `[
830
+ # Required. The revision of the client SDK used by your application. Format: `[
797
831
  # PLATFORM_TYPE]:[VERSION_NUMBER]`. Possible values of `PLATFORM_TYPE` are: * `
798
832
  # ANDROID` - Client is running the Android SDK. * `IOS` - Client is running the
799
833
  # iOS SDK. * `WEB_APP` - Client is running as a Web App.
@@ -887,7 +921,7 @@ module Google
887
921
  # @param [String] collection
888
922
  # The collection of scores you're requesting.
889
923
  # @param [String] time_span
890
- # The time span for the scores and ranks you're requesting.
924
+ # Required. The time span for the scores and ranks you're requesting.
891
925
  # @param [String] language
892
926
  # The preferred language to use for strings returned by this method.
893
927
  # @param [Fixnum] max_results
@@ -934,7 +968,7 @@ module Google
934
968
  # @param [String] collection
935
969
  # The collection of scores you're requesting.
936
970
  # @param [String] time_span
937
- # The time span for the scores and ranks you're requesting.
971
+ # Required. The time span for the scores and ranks you're requesting.
938
972
  # @param [String] language
939
973
  # The preferred language to use for strings returned by this method.
940
974
  # @param [Fixnum] max_results
@@ -989,12 +1023,12 @@ module Google
989
1023
  # @param [String] leaderboard_id
990
1024
  # The ID of the leaderboard.
991
1025
  # @param [Fixnum] score
992
- # The score you're submitting. The submitted score is ignored if it is worse
993
- # than a previously submitted score, where worse depends on the leaderboard sort
994
- # order. The meaning of the score value depends on the leaderboard format type.
995
- # For fixed-point, the score represents the raw value. For time, the score
996
- # represents elapsed time in milliseconds. For currency, the score represents a
997
- # value in micro units.
1026
+ # Required. The score you're submitting. The submitted score is ignored if it is
1027
+ # worse than a previously submitted score, where worse depends on the
1028
+ # leaderboard sort order. The meaning of the score value depends on the
1029
+ # leaderboard format type. For fixed-point, the score represents the raw value.
1030
+ # For time, the score represents elapsed time in milliseconds. For currency, the
1031
+ # score represents a value in micro units.
998
1032
  # @param [String] language
999
1033
  # The preferred language to use for strings returned by this method.
1000
1034
  # @param [String] score_tag
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.20.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-08-27 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.20.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.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Play Game Services V1