google-apis-games_v1 0.33.0 → 0.34.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: 1b64e3cdedf69d80418733cc20b83b1c24adbd14d7ad200c4176fbbf71a0e3dc
4
- data.tar.gz: d175d60204fc7bae39a4f90c1ec82d52b665ea4bc0656e86b924f25558ac1022
3
+ metadata.gz: a503d6a7f25021ba8d03f58a761bfe1f888861c32dcd78fcfd17cb6818f18a5c
4
+ data.tar.gz: 7b84ddac1306a752a9525a2d7930d6a91ef3c46a4c950488c308010ae85160ee
5
5
  SHA512:
6
- metadata.gz: 22cc9ce4fde0b36e72ce5a5db755567f3e452df489d9d4987009b2ce4f3112204047f228fc92445e278b1c1b5b7252b7f0809557a98c9b0ca8fb3924115fd8f6
7
- data.tar.gz: b7d26f8b71e9a9fc3cee991b73958260dd9cabb732231734eba83b0383ef6b7ec26ce5a6aca11d2167e65e015d56a0efd3cfd15cc8cc7e268625b16ba1bb7d72
6
+ metadata.gz: f2dd2d1d3db453367b77909d8432feedcd9a258d750af6017b475995b618df4ad8904fe39bcc277e2950fc9127cac133adb01c1ef26c06b32bf212ce4142f24e
7
+ data.tar.gz: c332e7758992ef6c06a24ec0dd784c257acdcbbfc221a89176838244f6d3fc0a7f2980dcf98c47f0f4e76fc9edf7e18faa18a8c292d8b8beafd707ec792722ea
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-games_v1
2
2
 
3
+ ### v0.34.0 (2026-08-16)
4
+
5
+ * Regenerated from discovery document revision 20260730
6
+
3
7
  ### v0.33.0 (2026-06-14)
4
8
 
5
9
  * Regenerated using generator version 0.19.0
@@ -611,6 +611,73 @@ module Google
611
611
  end
612
612
  end
613
613
 
614
+ # Request message for PlayerGameEvents.BatchRecordEvents Next ID: 7
615
+ class BatchRecordEventsRequest
616
+ include Google::Apis::Core::Hashable
617
+
618
+ # Optional. The DroidGuard blob generated by the client. This is used to detect
619
+ # abuse signals from the devices
620
+ # Corresponds to the JSON property `droidGuardBlob`
621
+ # @return [String]
622
+ attr_accessor :droid_guard_blob
623
+
624
+ # Required. A list of player game events to be recorded. Maximum of 30 events
625
+ # per batch request.
626
+ # Corresponds to the JSON property `events`
627
+ # @return [Array<Google::Apis::GamesV1::PlayerGameEvent>]
628
+ attr_accessor :events
629
+
630
+ # Required. Application package name (e.g., "com.example.game").
631
+ # Corresponds to the JSON property `packageName`
632
+ # @return [String]
633
+ attr_accessor :package_name
634
+
635
+ # Required. The time from the client when this specific batch of events was
636
+ # submitted.
637
+ # Corresponds to the JSON property `requestTime`
638
+ # @return [String]
639
+ attr_accessor :request_time
640
+
641
+ # Optional. The salt used to generate content binding for the DroidGuard blob.
642
+ # This is used to prevent replay attacks.
643
+ # Corresponds to the JSON property `salt`
644
+ # @return [String]
645
+ attr_accessor :salt
646
+
647
+ def initialize(**args)
648
+ update!(**args)
649
+ end
650
+
651
+ # Update properties of this object
652
+ def update!(**args)
653
+ @droid_guard_blob = args[:droid_guard_blob] if args.key?(:droid_guard_blob)
654
+ @events = args[:events] if args.key?(:events)
655
+ @package_name = args[:package_name] if args.key?(:package_name)
656
+ @request_time = args[:request_time] if args.key?(:request_time)
657
+ @salt = args[:salt] if args.key?(:salt)
658
+ end
659
+ end
660
+
661
+ # A successful response indicates that the batch of events has been processed.
662
+ class BatchRecordEventsResponse
663
+ include Google::Apis::Core::Hashable
664
+
665
+ # Map of failed events, keyed by their zero-based index in `
666
+ # BatchRecordEventsRequest.events`. Omitted keys indicate successful recording.
667
+ # Corresponds to the JSON property `failedRequests`
668
+ # @return [Hash<String,Google::Apis::GamesV1::Status>]
669
+ attr_accessor :failed_requests
670
+
671
+ def initialize(**args)
672
+ update!(**args)
673
+ end
674
+
675
+ # Update properties of this object
676
+ def update!(**args)
677
+ @failed_requests = args[:failed_requests] if args.key?(:failed_requests)
678
+ end
679
+ end
680
+
614
681
  # Data related to individual game categories.
615
682
  class Category
616
683
  include Google::Apis::Core::Hashable
@@ -2158,6 +2225,50 @@ module Google
2158
2225
  end
2159
2226
  end
2160
2227
 
2228
+ # A representation of a single player game event triggered by a player's event
2229
+ # in a game. This might be completing a level, unlocking an item, or finishing a
2230
+ # match.
2231
+ class PlayerGameEvent
2232
+ include Google::Apis::Core::Hashable
2233
+
2234
+ # Required. A unique client-generated UUID for this specific event instance.
2235
+ # Used for server-side idempotency and deduplication. Submitting an event with a
2236
+ # previously recorded event_id for the same player will be ignored.
2237
+ # Corresponds to the JSON property `eventId`
2238
+ # @return [String]
2239
+ attr_accessor :event_id
2240
+
2241
+ # Required. Client-defined name of the event (e.g., "run_completed", "level_up").
2242
+ # Maximum length: 100 characters.
2243
+ # Corresponds to the JSON property `eventName`
2244
+ # @return [String]
2245
+ attr_accessor :event_name
2246
+
2247
+ # Optional. Key-value properties providing details about the event. - Maximum
2248
+ # number of properties: 25. - Property key maximum length: 100 characters. -
2249
+ # String values within PropertyValue maximum length: 1024 characters.
2250
+ # Corresponds to the JSON property `eventProperties`
2251
+ # @return [Hash<String,Google::Apis::GamesV1::PropertyValue>]
2252
+ attr_accessor :event_properties
2253
+
2254
+ # Required. The time from the client when this specific event was performed.
2255
+ # Corresponds to the JSON property `eventTime`
2256
+ # @return [String]
2257
+ attr_accessor :event_time
2258
+
2259
+ def initialize(**args)
2260
+ update!(**args)
2261
+ end
2262
+
2263
+ # Update properties of this object
2264
+ def update!(**args)
2265
+ @event_id = args[:event_id] if args.key?(:event_id)
2266
+ @event_name = args[:event_name] if args.key?(:event_name)
2267
+ @event_properties = args[:event_properties] if args.key?(:event_properties)
2268
+ @event_time = args[:event_time] if args.key?(:event_time)
2269
+ end
2270
+ end
2271
+
2161
2272
  # A player leaderboard score object.
2162
2273
  class PlayerLeaderboardScore
2163
2274
  include Google::Apis::Core::Hashable
@@ -2526,6 +2637,56 @@ module Google
2526
2637
  end
2527
2638
  end
2528
2639
 
2640
+ # Wrapper for the value.
2641
+ class PropertyValue
2642
+ include Google::Apis::Core::Hashable
2643
+
2644
+ # A boolean value.
2645
+ # Corresponds to the JSON property `boolValue`
2646
+ # @return [Boolean]
2647
+ attr_accessor :bool_value
2648
+ alias_method :bool_value?, :bool_value
2649
+
2650
+ # A double value.
2651
+ # Corresponds to the JSON property `doubleValue`
2652
+ # @return [Float]
2653
+ attr_accessor :double_value
2654
+
2655
+ # A duration value.
2656
+ # Corresponds to the JSON property `durationValue`
2657
+ # @return [String]
2658
+ attr_accessor :duration_value
2659
+
2660
+ # An integer value.
2661
+ # Corresponds to the JSON property `intValue`
2662
+ # @return [Fixnum]
2663
+ attr_accessor :int_value
2664
+
2665
+ # A string value.
2666
+ # Corresponds to the JSON property `stringValue`
2667
+ # @return [String]
2668
+ attr_accessor :string_value
2669
+
2670
+ # A timestamp value.
2671
+ # Corresponds to the JSON property `timestampValue`
2672
+ # @return [String]
2673
+ attr_accessor :timestamp_value
2674
+
2675
+ def initialize(**args)
2676
+ update!(**args)
2677
+ end
2678
+
2679
+ # Update properties of this object
2680
+ def update!(**args)
2681
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
2682
+ @double_value = args[:double_value] if args.key?(:double_value)
2683
+ @duration_value = args[:duration_value] if args.key?(:duration_value)
2684
+ @int_value = args[:int_value] if args.key?(:int_value)
2685
+ @string_value = args[:string_value] if args.key?(:string_value)
2686
+ @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
2687
+ end
2688
+ end
2689
+
2529
2690
  # Recall token data returned from RetrievePlayerTokens RPC
2530
2691
  class RecallToken
2531
2692
  include Google::Apis::Core::Hashable
@@ -3024,6 +3185,45 @@ module Google
3024
3185
  end
3025
3186
  end
3026
3187
 
3188
+ # The `Status` type defines a logical error model that is suitable for different
3189
+ # programming environments, including REST APIs and RPC APIs. It is used by [
3190
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
3191
+ # data: error code, error message, and error details. You can find out more
3192
+ # about this error model and how to work with it in the [API Design Guide](https:
3193
+ # //cloud.google.com/apis/design/errors).
3194
+ class Status
3195
+ include Google::Apis::Core::Hashable
3196
+
3197
+ # The status code, which should be an enum value of google.rpc.Code.
3198
+ # Corresponds to the JSON property `code`
3199
+ # @return [Fixnum]
3200
+ attr_accessor :code
3201
+
3202
+ # A list of messages that carry the error details. There is a common set of
3203
+ # message types for APIs to use.
3204
+ # Corresponds to the JSON property `details`
3205
+ # @return [Array<Hash<String,Object>>]
3206
+ attr_accessor :details
3207
+
3208
+ # A developer-facing error message, which should be in English. Any user-facing
3209
+ # error message should be localized and sent in the google.rpc.Status.details
3210
+ # field, or localized by the client.
3211
+ # Corresponds to the JSON property `message`
3212
+ # @return [String]
3213
+ attr_accessor :message
3214
+
3215
+ def initialize(**args)
3216
+ update!(**args)
3217
+ end
3218
+
3219
+ # Update properties of this object
3220
+ def update!(**args)
3221
+ @code = args[:code] if args.key?(:code)
3222
+ @details = args[:details] if args.key?(:details)
3223
+ @message = args[:message] if args.key?(:message)
3224
+ end
3225
+ end
3226
+
3027
3227
  # Request to remove a Recall token linking PGS principal and an in-game account
3028
3228
  class UnlinkPersonaRequest
3029
3229
  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.33.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260416"
25
+ REVISION = "20260730"
26
26
  end
27
27
  end
28
28
  end
@@ -106,6 +106,18 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class BatchRecordEventsRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class BatchRecordEventsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
109
121
  class Category
110
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
123
 
@@ -346,6 +358,12 @@ module Google
346
358
  include Google::Apis::Core::JsonObjectSupport
347
359
  end
348
360
 
361
+ class PlayerGameEvent
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
349
367
  class PlayerLeaderboardScore
350
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
369
 
@@ -400,6 +418,12 @@ module Google
400
418
  include Google::Apis::Core::JsonObjectSupport
401
419
  end
402
420
 
421
+ class PropertyValue
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
403
427
  class RecallToken
404
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
429
 
@@ -478,6 +502,12 @@ module Google
478
502
  include Google::Apis::Core::JsonObjectSupport
479
503
  end
480
504
 
505
+ class Status
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ include Google::Apis::Core::JsonObjectSupport
509
+ end
510
+
481
511
  class UnlinkPersonaRequest
482
512
  class Representation < Google::Apis::Core::JsonRepresentation; end
483
513
 
@@ -645,6 +675,26 @@ module Google
645
675
  end
646
676
  end
647
677
 
678
+ class BatchRecordEventsRequest
679
+ # @private
680
+ class Representation < Google::Apis::Core::JsonRepresentation
681
+ property :droid_guard_blob, as: 'droidGuardBlob'
682
+ collection :events, as: 'events', class: Google::Apis::GamesV1::PlayerGameEvent, decorator: Google::Apis::GamesV1::PlayerGameEvent::Representation
683
+
684
+ property :package_name, as: 'packageName'
685
+ property :request_time, as: 'requestTime'
686
+ property :salt, as: 'salt'
687
+ end
688
+ end
689
+
690
+ class BatchRecordEventsResponse
691
+ # @private
692
+ class Representation < Google::Apis::Core::JsonRepresentation
693
+ hash :failed_requests, as: 'failedRequests', class: Google::Apis::GamesV1::Status, decorator: Google::Apis::GamesV1::Status::Representation
694
+
695
+ end
696
+ end
697
+
648
698
  class Category
649
699
  # @private
650
700
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1074,6 +1124,17 @@ module Google
1074
1124
  end
1075
1125
  end
1076
1126
 
1127
+ class PlayerGameEvent
1128
+ # @private
1129
+ class Representation < Google::Apis::Core::JsonRepresentation
1130
+ property :event_id, as: 'eventId'
1131
+ property :event_name, as: 'eventName'
1132
+ hash :event_properties, as: 'eventProperties', class: Google::Apis::GamesV1::PropertyValue, decorator: Google::Apis::GamesV1::PropertyValue::Representation
1133
+
1134
+ property :event_time, as: 'eventTime'
1135
+ end
1136
+ end
1137
+
1077
1138
  class PlayerLeaderboardScore
1078
1139
  # @private
1079
1140
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1176,6 +1237,18 @@ module Google
1176
1237
  end
1177
1238
  end
1178
1239
 
1240
+ class PropertyValue
1241
+ # @private
1242
+ class Representation < Google::Apis::Core::JsonRepresentation
1243
+ property :bool_value, as: 'boolValue'
1244
+ property :double_value, as: 'doubleValue'
1245
+ property :duration_value, as: 'durationValue'
1246
+ property :int_value, :numeric_string => true, as: 'intValue'
1247
+ property :string_value, as: 'stringValue'
1248
+ property :timestamp_value, as: 'timestampValue'
1249
+ end
1250
+ end
1251
+
1179
1252
  class RecallToken
1180
1253
  # @private
1181
1254
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1307,6 +1380,15 @@ module Google
1307
1380
  end
1308
1381
  end
1309
1382
 
1383
+ class Status
1384
+ # @private
1385
+ class Representation < Google::Apis::Core::JsonRepresentation
1386
+ property :code, as: 'code'
1387
+ collection :details, as: 'details'
1388
+ property :message, as: 'message'
1389
+ end
1390
+ end
1391
+
1310
1392
  class UnlinkPersonaRequest
1311
1393
  # @private
1312
1394
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -765,6 +765,40 @@ module Google
765
765
  execute_or_queue_command(command, &block)
766
766
  end
767
767
 
768
+ # Records a batch of player game events for a specific player. This method
769
+ # allows sending multiple events in a single request.
770
+ # @param [String] player_id
771
+ # Required. The player ID of the player that performed the events.
772
+ # @param [Google::Apis::GamesV1::BatchRecordEventsRequest] batch_record_events_request_object
773
+ # @param [String] fields
774
+ # Selector specifying which fields to include in a partial response.
775
+ # @param [String] quota_user
776
+ # Available to use for quota purposes for server-side applications. Can be any
777
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
778
+ # @param [Google::Apis::RequestOptions] options
779
+ # Request-specific options
780
+ #
781
+ # @yield [result, err] Result & error if block supplied
782
+ # @yieldparam result [Google::Apis::GamesV1::BatchRecordEventsResponse] parsed result object
783
+ # @yieldparam err [StandardError] error object if request failed
784
+ #
785
+ # @return [Google::Apis::GamesV1::BatchRecordEventsResponse]
786
+ #
787
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
788
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
789
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
790
+ def batch_player_game_event_record_events(player_id, batch_record_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
791
+ command = make_simple_command(:post, 'games/v1/players/{playerId}/gameEvents:batchRecordEvents', options)
792
+ command.request_representation = Google::Apis::GamesV1::BatchRecordEventsRequest::Representation
793
+ command.request_object = batch_record_events_request_object
794
+ command.response_representation = Google::Apis::GamesV1::BatchRecordEventsResponse::Representation
795
+ command.response_class = Google::Apis::GamesV1::BatchRecordEventsResponse
796
+ command.params['playerId'] = player_id unless player_id.nil?
797
+ command.query['fields'] = fields unless fields.nil?
798
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
799
+ execute_or_queue_command(command, &block)
800
+ end
801
+
768
802
  # Retrieves the Player resource with the given ID. To retrieve the player for
769
803
  # the currently authenticated user, set `playerId` to `me`.
770
804
  # @param [String] player_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-games_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-games_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.33.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.34.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-games_v1
62
62
  rdoc_options: []
63
63
  require_paths: