google-apis-playintegrity_v1 0.31.0 → 0.33.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: 97af76aff999b22afefe7840143a3050e35fcd38a556ab806bfa9282954cdb7d
4
- data.tar.gz: 204a35c9bf49390515f5b3c52b15af9b3f806c4278e1f21102f4f4a788df1d13
3
+ metadata.gz: 70e86e95ad5aa2f9fde6ee22f7be6a412927bcedb121c3811f69618be721e685
4
+ data.tar.gz: 52a3efc5893b9d5e46a86424532267fcdebaa7d093429a1a6f052d8fcc8f3fc6
5
5
  SHA512:
6
- metadata.gz: 1df19d506bf05a422207b710c1c495548d646b58508b3895ce2977d9280c790d1196a0dc0a8ac4310ad0c30e185908f2410ce154127d52e1fa54ecd876d6b0a9
7
- data.tar.gz: a903807812331d8bae10a6bd2e6629f131e59d3f4daaac14b27b11d2f6bc01a446f284fdcf2bc15bfe7971e5bac74066a2c3c71b5275fc659a6dc2a632e648dd
6
+ metadata.gz: 3e2efd89a85df84aca44bdf957fd5901848d079750ac2ce2440a1325e34cd6317fc77749548c71ca4f103e9b5faa9579788ec4fe5e0690d2e1a19983831f3891
7
+ data.tar.gz: 82e496468ea52dbda0e4044aa8d210a8780745b40d7fd9ba34e316bf121ba065a9e5a1880a6042c6bda14f77b461157a8538a678bf248184e607f1ba48f1f04c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-playintegrity_v1
2
2
 
3
+ ### v0.33.0 (2025-08-24)
4
+
5
+ * Regenerated from discovery document revision 20250818
6
+ * Regenerated using generator version 0.18.0
7
+
8
+ ### v0.32.0 (2025-05-18)
9
+
10
+ * Regenerated from discovery document revision 20250514
11
+ * Regenerated using generator version 0.17.0
12
+
3
13
  ### v0.31.0 (2025-02-26)
4
14
 
5
15
  * Regenerated from discovery document revision 20250223
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://developer.android.com/google/play/integrity)
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -169,6 +169,44 @@ module Google
169
169
  end
170
170
  end
171
171
 
172
+ # Request to decode the PC integrity token.
173
+ class DecodePcIntegrityTokenRequest
174
+ include Google::Apis::Core::Hashable
175
+
176
+ # Encoded integrity token.
177
+ # Corresponds to the JSON property `integrityToken`
178
+ # @return [String]
179
+ attr_accessor :integrity_token
180
+
181
+ def initialize(**args)
182
+ update!(**args)
183
+ end
184
+
185
+ # Update properties of this object
186
+ def update!(**args)
187
+ @integrity_token = args[:integrity_token] if args.key?(:integrity_token)
188
+ end
189
+ end
190
+
191
+ # Response containing the decoded PC integrity payload.
192
+ class DecodePcIntegrityTokenResponse
193
+ include Google::Apis::Core::Hashable
194
+
195
+ # Contains PC device attestation details.
196
+ # Corresponds to the JSON property `tokenPayloadExternal`
197
+ # @return [Google::Apis::PlayintegrityV1::PcTokenPayloadExternal]
198
+ attr_accessor :token_payload_external
199
+
200
+ def initialize(**args)
201
+ update!(**args)
202
+ end
203
+
204
+ # Update properties of this object
205
+ def update!(**args)
206
+ @token_payload_external = args[:token_payload_external] if args.key?(:token_payload_external)
207
+ end
208
+ end
209
+
172
210
  # Contains information about the device for which the integrity token was
173
211
  # generated, e.g. Android SDK version.
174
212
  class DeviceAttributes
@@ -293,6 +331,110 @@ module Google
293
331
  end
294
332
  end
295
333
 
334
+ # Contains the account information such as the licensing status for the user in
335
+ # the scope.
336
+ class PcAccountDetails
337
+ include Google::Apis::Core::Hashable
338
+
339
+ # Required. Details about the licensing status of the user for the app in the
340
+ # scope.
341
+ # Corresponds to the JSON property `appLicensingVerdict`
342
+ # @return [String]
343
+ attr_accessor :app_licensing_verdict
344
+
345
+ def initialize(**args)
346
+ update!(**args)
347
+ end
348
+
349
+ # Update properties of this object
350
+ def update!(**args)
351
+ @app_licensing_verdict = args[:app_licensing_verdict] if args.key?(:app_licensing_verdict)
352
+ end
353
+ end
354
+
355
+ # Contains the device attestation information.
356
+ class PcDeviceIntegrity
357
+ include Google::Apis::Core::Hashable
358
+
359
+ # Details about the integrity of the device the app is running on.
360
+ # Corresponds to the JSON property `deviceRecognitionVerdict`
361
+ # @return [Array<String>]
362
+ attr_accessor :device_recognition_verdict
363
+
364
+ def initialize(**args)
365
+ update!(**args)
366
+ end
367
+
368
+ # Update properties of this object
369
+ def update!(**args)
370
+ @device_recognition_verdict = args[:device_recognition_verdict] if args.key?(:device_recognition_verdict)
371
+ end
372
+ end
373
+
374
+ # Contains the integrity request information.
375
+ class PcRequestDetails
376
+ include Google::Apis::Core::Hashable
377
+
378
+ # Request hash that was provided in the request.
379
+ # Corresponds to the JSON property `requestHash`
380
+ # @return [String]
381
+ attr_accessor :request_hash
382
+
383
+ # Required. Application package name this attestation was requested for. Note:
384
+ # This field makes no guarantees or promises on the caller integrity.
385
+ # Corresponds to the JSON property `requestPackageName`
386
+ # @return [String]
387
+ attr_accessor :request_package_name
388
+
389
+ # Required. Timestamp, of the integrity application request.
390
+ # Corresponds to the JSON property `requestTime`
391
+ # @return [String]
392
+ attr_accessor :request_time
393
+
394
+ def initialize(**args)
395
+ update!(**args)
396
+ end
397
+
398
+ # Update properties of this object
399
+ def update!(**args)
400
+ @request_hash = args[:request_hash] if args.key?(:request_hash)
401
+ @request_package_name = args[:request_package_name] if args.key?(:request_package_name)
402
+ @request_time = args[:request_time] if args.key?(:request_time)
403
+ end
404
+ end
405
+
406
+ # Contains PC device attestation details.
407
+ class PcTokenPayloadExternal
408
+ include Google::Apis::Core::Hashable
409
+
410
+ # Contains the account information such as the licensing status for the user in
411
+ # the scope.
412
+ # Corresponds to the JSON property `accountDetails`
413
+ # @return [Google::Apis::PlayintegrityV1::PcAccountDetails]
414
+ attr_accessor :account_details
415
+
416
+ # Contains the device attestation information.
417
+ # Corresponds to the JSON property `deviceIntegrity`
418
+ # @return [Google::Apis::PlayintegrityV1::PcDeviceIntegrity]
419
+ attr_accessor :device_integrity
420
+
421
+ # Contains the integrity request information.
422
+ # Corresponds to the JSON property `requestDetails`
423
+ # @return [Google::Apis::PlayintegrityV1::PcRequestDetails]
424
+ attr_accessor :request_details
425
+
426
+ def initialize(**args)
427
+ update!(**args)
428
+ end
429
+
430
+ # Update properties of this object
431
+ def update!(**args)
432
+ @account_details = args[:account_details] if args.key?(:account_details)
433
+ @device_integrity = args[:device_integrity] if args.key?(:device_integrity)
434
+ @request_details = args[:request_details] if args.key?(:request_details)
435
+ end
436
+ end
437
+
296
438
  # Recent device activity can help developers identify devices that have
297
439
  # exhibited hyperactive attestation activity, which could be a sign of an attack
298
440
  # or token farming.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PlayintegrityV1
18
18
  # Version of the google-apis-playintegrity_v1 gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250223"
25
+ REVISION = "20250818"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,18 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class DecodePcIntegrityTokenRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DecodePcIntegrityTokenResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class DeviceAttributes
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -82,6 +94,30 @@ module Google
82
94
  include Google::Apis::Core::JsonObjectSupport
83
95
  end
84
96
 
97
+ class PcAccountDetails
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class PcDeviceIntegrity
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class PcRequestDetails
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class PcTokenPayloadExternal
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
85
121
  class RecentDeviceActivity
86
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
123
 
@@ -178,6 +214,21 @@ module Google
178
214
  end
179
215
  end
180
216
 
217
+ class DecodePcIntegrityTokenRequest
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :integrity_token, as: 'integrityToken'
221
+ end
222
+ end
223
+
224
+ class DecodePcIntegrityTokenResponse
225
+ # @private
226
+ class Representation < Google::Apis::Core::JsonRepresentation
227
+ property :token_payload_external, as: 'tokenPayloadExternal', class: Google::Apis::PlayintegrityV1::PcTokenPayloadExternal, decorator: Google::Apis::PlayintegrityV1::PcTokenPayloadExternal::Representation
228
+
229
+ end
230
+ end
231
+
181
232
  class DeviceAttributes
182
233
  # @private
183
234
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -218,6 +269,41 @@ module Google
218
269
  end
219
270
  end
220
271
 
272
+ class PcAccountDetails
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ property :app_licensing_verdict, as: 'appLicensingVerdict'
276
+ end
277
+ end
278
+
279
+ class PcDeviceIntegrity
280
+ # @private
281
+ class Representation < Google::Apis::Core::JsonRepresentation
282
+ collection :device_recognition_verdict, as: 'deviceRecognitionVerdict'
283
+ end
284
+ end
285
+
286
+ class PcRequestDetails
287
+ # @private
288
+ class Representation < Google::Apis::Core::JsonRepresentation
289
+ property :request_hash, as: 'requestHash'
290
+ property :request_package_name, as: 'requestPackageName'
291
+ property :request_time, as: 'requestTime'
292
+ end
293
+ end
294
+
295
+ class PcTokenPayloadExternal
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :account_details, as: 'accountDetails', class: Google::Apis::PlayintegrityV1::PcAccountDetails, decorator: Google::Apis::PlayintegrityV1::PcAccountDetails::Representation
299
+
300
+ property :device_integrity, as: 'deviceIntegrity', class: Google::Apis::PlayintegrityV1::PcDeviceIntegrity, decorator: Google::Apis::PlayintegrityV1::PcDeviceIntegrity::Representation
301
+
302
+ property :request_details, as: 'requestDetails', class: Google::Apis::PlayintegrityV1::PcRequestDetails, decorator: Google::Apis::PlayintegrityV1::PcRequestDetails::Representation
303
+
304
+ end
305
+ end
306
+
221
307
  class RecentDeviceActivity
222
308
  # @private
223
309
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -121,6 +121,39 @@ module Google
121
121
  command.query['quotaUser'] = quota_user unless quota_user.nil?
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
+
125
+ # Decodes the PC integrity token and returns the PC token payload.
126
+ # @param [String] package_name
127
+ # Package name of the app the attached integrity token belongs to.
128
+ # @param [Google::Apis::PlayintegrityV1::DecodePcIntegrityTokenRequest] decode_pc_integrity_token_request_object
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [Google::Apis::RequestOptions] options
135
+ # Request-specific options
136
+ #
137
+ # @yield [result, err] Result & error if block supplied
138
+ # @yieldparam result [Google::Apis::PlayintegrityV1::DecodePcIntegrityTokenResponse] parsed result object
139
+ # @yieldparam err [StandardError] error object if request failed
140
+ #
141
+ # @return [Google::Apis::PlayintegrityV1::DecodePcIntegrityTokenResponse]
142
+ #
143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
146
+ def decode_pc_integrity_token(package_name, decode_pc_integrity_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
147
+ command = make_simple_command(:post, 'v1/{+packageName}:decodePcIntegrityToken', options)
148
+ command.request_representation = Google::Apis::PlayintegrityV1::DecodePcIntegrityTokenRequest::Representation
149
+ command.request_object = decode_pc_integrity_token_request_object
150
+ command.response_representation = Google::Apis::PlayintegrityV1::DecodePcIntegrityTokenResponse::Representation
151
+ command.response_class = Google::Apis::PlayintegrityV1::DecodePcIntegrityTokenResponse
152
+ command.params['packageName'] = package_name unless package_name.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
124
157
 
125
158
  protected
126
159
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-playintegrity_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -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-playintegrity_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-playintegrity_v1/v0.31.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-playintegrity_v1/v0.33.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-playintegrity_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '2.7'
69
+ version: '3.1'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.5
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Google Play Integrity API V1
79
79
  test_files: []