google-apis-playintegrity_v1 0.26.0 → 0.27.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0384c12675b1546794e5796019780a9a6726bb8d949437ccf13f2e09adfeb67f'
|
4
|
+
data.tar.gz: c8531947d5b9d7b5822b01fa7f8adf2a1d9055ed56151bfcf8264ed965f4dc9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 386bccb861b2c80e1f3c900560a7ab7024cfc5b3bbde72c8bd1da2f0333b5c7962fcf239fa4f40a40b4132c4f2336bf6e5d5da2c99ed3a848aa9790f84d65e42
|
7
|
+
data.tar.gz: 18308d347019ba774deec809e4b6dc3522d7a79770cf5309d2b47c3b237d1ceedb5ecfe031ca53723a088221ede45253035d7a7a8824b98071547fa545a2658b
|
data/CHANGELOG.md
CHANGED
@@ -371,6 +371,80 @@ module Google
|
|
371
371
|
@testing_details = args[:testing_details] if args.key?(:testing_details)
|
372
372
|
end
|
373
373
|
end
|
374
|
+
|
375
|
+
# Contains the recall bits values.
|
376
|
+
class Values
|
377
|
+
include Google::Apis::Core::Hashable
|
378
|
+
|
379
|
+
# Required. First recall bit value.
|
380
|
+
# Corresponds to the JSON property `bitFirst`
|
381
|
+
# @return [Boolean]
|
382
|
+
attr_accessor :bit_first
|
383
|
+
alias_method :bit_first?, :bit_first
|
384
|
+
|
385
|
+
# Required. Second recall bit value.
|
386
|
+
# Corresponds to the JSON property `bitSecond`
|
387
|
+
# @return [Boolean]
|
388
|
+
attr_accessor :bit_second
|
389
|
+
alias_method :bit_second?, :bit_second
|
390
|
+
|
391
|
+
# Required. Third recall bit value.
|
392
|
+
# Corresponds to the JSON property `bitThird`
|
393
|
+
# @return [Boolean]
|
394
|
+
attr_accessor :bit_third
|
395
|
+
alias_method :bit_third?, :bit_third
|
396
|
+
|
397
|
+
def initialize(**args)
|
398
|
+
update!(**args)
|
399
|
+
end
|
400
|
+
|
401
|
+
# Update properties of this object
|
402
|
+
def update!(**args)
|
403
|
+
@bit_first = args[:bit_first] if args.key?(:bit_first)
|
404
|
+
@bit_second = args[:bit_second] if args.key?(:bit_second)
|
405
|
+
@bit_third = args[:bit_third] if args.key?(:bit_third)
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
409
|
+
# Request to write device recall bits.
|
410
|
+
class WriteDeviceRecallRequest
|
411
|
+
include Google::Apis::Core::Hashable
|
412
|
+
|
413
|
+
# Required. Integrity token obtained from calling Play Integrity API. Note that
|
414
|
+
# the integrity token contains the existing device recall bits. The write will
|
415
|
+
# only succeed if those bits in the integrity token are up to date.
|
416
|
+
# Corresponds to the JSON property `integrityToken`
|
417
|
+
# @return [String]
|
418
|
+
attr_accessor :integrity_token
|
419
|
+
|
420
|
+
# Contains the recall bits values.
|
421
|
+
# Corresponds to the JSON property `newValues`
|
422
|
+
# @return [Google::Apis::PlayintegrityV1::Values]
|
423
|
+
attr_accessor :new_values
|
424
|
+
|
425
|
+
def initialize(**args)
|
426
|
+
update!(**args)
|
427
|
+
end
|
428
|
+
|
429
|
+
# Update properties of this object
|
430
|
+
def update!(**args)
|
431
|
+
@integrity_token = args[:integrity_token] if args.key?(:integrity_token)
|
432
|
+
@new_values = args[:new_values] if args.key?(:new_values)
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
436
|
+
# Response for the Write Device Recall action. Currently empty.
|
437
|
+
class WriteDeviceRecallResponse
|
438
|
+
include Google::Apis::Core::Hashable
|
439
|
+
|
440
|
+
def initialize(**args)
|
441
|
+
update!(**args)
|
442
|
+
end
|
443
|
+
|
444
|
+
# Update properties of this object
|
445
|
+
def update!(**args)
|
446
|
+
end
|
447
|
+
end
|
374
448
|
end
|
375
449
|
end
|
376
450
|
end
|
@@ -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.27.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240711"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -94,6 +94,24 @@ module Google
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
95
95
|
end
|
96
96
|
|
97
|
+
class Values
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class WriteDeviceRecallRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class WriteDeviceRecallResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
97
115
|
class AccountActivity
|
98
116
|
# @private
|
99
117
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -203,6 +221,30 @@ module Google
|
|
203
221
|
|
204
222
|
end
|
205
223
|
end
|
224
|
+
|
225
|
+
class Values
|
226
|
+
# @private
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
228
|
+
property :bit_first, as: 'bitFirst'
|
229
|
+
property :bit_second, as: 'bitSecond'
|
230
|
+
property :bit_third, as: 'bitThird'
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
class WriteDeviceRecallRequest
|
235
|
+
# @private
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
+
property :integrity_token, as: 'integrityToken'
|
238
|
+
property :new_values, as: 'newValues', class: Google::Apis::PlayintegrityV1::Values, decorator: Google::Apis::PlayintegrityV1::Values::Representation
|
239
|
+
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
class WriteDeviceRecallResponse
|
244
|
+
# @private
|
245
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
246
|
+
end
|
247
|
+
end
|
206
248
|
end
|
207
249
|
end
|
208
250
|
end
|
@@ -54,6 +54,41 @@ module Google
|
|
54
54
|
@batch_path = 'batch'
|
55
55
|
end
|
56
56
|
|
57
|
+
# Writes recall bits for the device where Play Integrity API token is obtained.
|
58
|
+
# The endpoint is available to select Play partners in an early access program (
|
59
|
+
# EAP).
|
60
|
+
# @param [String] package_name
|
61
|
+
# Required. Package name of the app the attached integrity token belongs to.
|
62
|
+
# @param [Google::Apis::PlayintegrityV1::WriteDeviceRecallRequest] write_device_recall_request_object
|
63
|
+
# @param [String] fields
|
64
|
+
# Selector specifying which fields to include in a partial response.
|
65
|
+
# @param [String] quota_user
|
66
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
+
# @param [Google::Apis::RequestOptions] options
|
69
|
+
# Request-specific options
|
70
|
+
#
|
71
|
+
# @yield [result, err] Result & error if block supplied
|
72
|
+
# @yieldparam result [Google::Apis::PlayintegrityV1::WriteDeviceRecallResponse] parsed result object
|
73
|
+
# @yieldparam err [StandardError] error object if request failed
|
74
|
+
#
|
75
|
+
# @return [Google::Apis::PlayintegrityV1::WriteDeviceRecallResponse]
|
76
|
+
#
|
77
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
+
def write_device_recall(package_name, write_device_recall_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
command = make_simple_command(:post, 'v1/{+packageName}/deviceRecall:write', options)
|
82
|
+
command.request_representation = Google::Apis::PlayintegrityV1::WriteDeviceRecallRequest::Representation
|
83
|
+
command.request_object = write_device_recall_request_object
|
84
|
+
command.response_representation = Google::Apis::PlayintegrityV1::WriteDeviceRecallResponse::Representation
|
85
|
+
command.response_class = Google::Apis::PlayintegrityV1::WriteDeviceRecallResponse
|
86
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
87
|
+
command.query['fields'] = fields unless fields.nil?
|
88
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
89
|
+
execute_or_queue_command(command, &block)
|
90
|
+
end
|
91
|
+
|
57
92
|
# Decodes the integrity token and returns the token payload.
|
58
93
|
# @param [String] package_name
|
59
94
|
# Package name of the app the attached integrity token belongs to.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.27.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: 2024-
|
11
|
+
date: 2024-07-25 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-playintegrity_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-playintegrity_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-playintegrity_v1/v0.27.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-playintegrity_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|