google-apis-playintegrity_v1 0.31.0 → 0.32.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/playintegrity_v1/classes.rb +114 -0
- data/lib/google/apis/playintegrity_v1/gem_version.rb +3 -3
- data/lib/google/apis/playintegrity_v1/representations.rb +71 -0
- data/lib/google/apis/playintegrity_v1/service.rb +33 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61842f70b1a3c33f13280b8d385b3a58417b5f51a6bbc83fc546acced605f25f
|
4
|
+
data.tar.gz: 6aa3c0664aa3b4b3db7d09462ece7c78463bf27d8a1953e1517cb0cb54e34835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5372de685f65f9f3db23a94469ef96adfc091add272a2f312b9bf4c99899a3863ccb1800468f3501821ac1e4a46abc4521eaed41a1de559bb1baa116380d83b0
|
7
|
+
data.tar.gz: 43cbbb8553e06c52300365edab20a85aa0b48cd34ef7ae06b93838017c6aa6cd4e153b55d2a7d480a80b7d98906b41f5b4ef427b51aae3964988fd25cbac3f24
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-playintegrity_v1
|
2
2
|
|
3
|
+
### v0.32.0 (2025-05-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250514
|
6
|
+
* Regenerated using generator version 0.17.0
|
7
|
+
|
3
8
|
### v0.31.0 (2025-02-26)
|
4
9
|
|
5
10
|
* 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
|
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,82 @@ module Google
|
|
293
331
|
end
|
294
332
|
end
|
295
333
|
|
334
|
+
# Contains the device attestation information.
|
335
|
+
class PcDeviceIntegrity
|
336
|
+
include Google::Apis::Core::Hashable
|
337
|
+
|
338
|
+
# Details about the integrity of the device the app is running on.
|
339
|
+
# Corresponds to the JSON property `deviceRecognitionVerdict`
|
340
|
+
# @return [Array<String>]
|
341
|
+
attr_accessor :device_recognition_verdict
|
342
|
+
|
343
|
+
def initialize(**args)
|
344
|
+
update!(**args)
|
345
|
+
end
|
346
|
+
|
347
|
+
# Update properties of this object
|
348
|
+
def update!(**args)
|
349
|
+
@device_recognition_verdict = args[:device_recognition_verdict] if args.key?(:device_recognition_verdict)
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
# Contains the integrity request information.
|
354
|
+
class PcRequestDetails
|
355
|
+
include Google::Apis::Core::Hashable
|
356
|
+
|
357
|
+
# Request hash that was provided in the request.
|
358
|
+
# Corresponds to the JSON property `requestHash`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :request_hash
|
361
|
+
|
362
|
+
# Required. Application package name this attestation was requested for. Note:
|
363
|
+
# This field makes no guarantees or promises on the caller integrity.
|
364
|
+
# Corresponds to the JSON property `requestPackageName`
|
365
|
+
# @return [String]
|
366
|
+
attr_accessor :request_package_name
|
367
|
+
|
368
|
+
# Required. Timestamp, of the integrity application request.
|
369
|
+
# Corresponds to the JSON property `requestTime`
|
370
|
+
# @return [String]
|
371
|
+
attr_accessor :request_time
|
372
|
+
|
373
|
+
def initialize(**args)
|
374
|
+
update!(**args)
|
375
|
+
end
|
376
|
+
|
377
|
+
# Update properties of this object
|
378
|
+
def update!(**args)
|
379
|
+
@request_hash = args[:request_hash] if args.key?(:request_hash)
|
380
|
+
@request_package_name = args[:request_package_name] if args.key?(:request_package_name)
|
381
|
+
@request_time = args[:request_time] if args.key?(:request_time)
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
# Contains PC device attestation details.
|
386
|
+
class PcTokenPayloadExternal
|
387
|
+
include Google::Apis::Core::Hashable
|
388
|
+
|
389
|
+
# Contains the device attestation information.
|
390
|
+
# Corresponds to the JSON property `deviceIntegrity`
|
391
|
+
# @return [Google::Apis::PlayintegrityV1::PcDeviceIntegrity]
|
392
|
+
attr_accessor :device_integrity
|
393
|
+
|
394
|
+
# Contains the integrity request information.
|
395
|
+
# Corresponds to the JSON property `requestDetails`
|
396
|
+
# @return [Google::Apis::PlayintegrityV1::PcRequestDetails]
|
397
|
+
attr_accessor :request_details
|
398
|
+
|
399
|
+
def initialize(**args)
|
400
|
+
update!(**args)
|
401
|
+
end
|
402
|
+
|
403
|
+
# Update properties of this object
|
404
|
+
def update!(**args)
|
405
|
+
@device_integrity = args[:device_integrity] if args.key?(:device_integrity)
|
406
|
+
@request_details = args[:request_details] if args.key?(:request_details)
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
296
410
|
# Recent device activity can help developers identify devices that have
|
297
411
|
# exhibited hyperactive attestation activity, which could be a sign of an attack
|
298
412
|
# 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.
|
19
|
+
GEM_VERSION = "0.32.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.17.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250514"
|
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,24 @@ module Google
|
|
82
94
|
include Google::Apis::Core::JsonObjectSupport
|
83
95
|
end
|
84
96
|
|
97
|
+
class PcDeviceIntegrity
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class PcRequestDetails
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class PcTokenPayloadExternal
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
85
115
|
class RecentDeviceActivity
|
86
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
117
|
|
@@ -178,6 +208,21 @@ module Google
|
|
178
208
|
end
|
179
209
|
end
|
180
210
|
|
211
|
+
class DecodePcIntegrityTokenRequest
|
212
|
+
# @private
|
213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
214
|
+
property :integrity_token, as: 'integrityToken'
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
class DecodePcIntegrityTokenResponse
|
219
|
+
# @private
|
220
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
221
|
+
property :token_payload_external, as: 'tokenPayloadExternal', class: Google::Apis::PlayintegrityV1::PcTokenPayloadExternal, decorator: Google::Apis::PlayintegrityV1::PcTokenPayloadExternal::Representation
|
222
|
+
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
181
226
|
class DeviceAttributes
|
182
227
|
# @private
|
183
228
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -218,6 +263,32 @@ module Google
|
|
218
263
|
end
|
219
264
|
end
|
220
265
|
|
266
|
+
class PcDeviceIntegrity
|
267
|
+
# @private
|
268
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
+
collection :device_recognition_verdict, as: 'deviceRecognitionVerdict'
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
class PcRequestDetails
|
274
|
+
# @private
|
275
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
276
|
+
property :request_hash, as: 'requestHash'
|
277
|
+
property :request_package_name, as: 'requestPackageName'
|
278
|
+
property :request_time, as: 'requestTime'
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
class PcTokenPayloadExternal
|
283
|
+
# @private
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
285
|
+
property :device_integrity, as: 'deviceIntegrity', class: Google::Apis::PlayintegrityV1::PcDeviceIntegrity, decorator: Google::Apis::PlayintegrityV1::PcDeviceIntegrity::Representation
|
286
|
+
|
287
|
+
property :request_details, as: 'requestDetails', class: Google::Apis::PlayintegrityV1::PcRequestDetails, decorator: Google::Apis::PlayintegrityV1::PcRequestDetails::Representation
|
288
|
+
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
221
292
|
class RecentDeviceActivity
|
222
293
|
# @private
|
223
294
|
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.
|
4
|
+
version: 0.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-playintegrity_v1/v0.32.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: '
|
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.
|
76
|
+
rubygems_version: 3.6.8
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Google Play Integrity API V1
|
79
79
|
test_files: []
|