Skip to content

Commit c2d0ad0

Browse files
feat: Automated regeneration of playintegrity v1 client (#19968)
Auto-created at 2024-07-25 20:55:56 +0000 using the toys pull request generator.
1 parent 971d138 commit c2d0ad0

File tree

6 files changed

+167
-2
lines changed

6 files changed

+167
-2
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267904,10 +267904,20 @@
267904267904
"/playintegrity:v1/TokenPayloadExternal/testingDetails": testing_details
267905267905
"/playintegrity:v1/UserRemediationDetails": user_remediation_details
267906267906
"/playintegrity:v1/UserRemediationDetails/remediation": remediation
267907+
"/playintegrity:v1/Values": values
267908+
"/playintegrity:v1/Values/bitFirst": bit_first
267909+
"/playintegrity:v1/Values/bitSecond": bit_second
267910+
"/playintegrity:v1/Values/bitThird": bit_third
267911+
"/playintegrity:v1/WriteDeviceRecallRequest": write_device_recall_request
267912+
"/playintegrity:v1/WriteDeviceRecallRequest/integrityToken": integrity_token
267913+
"/playintegrity:v1/WriteDeviceRecallRequest/newValues": new_values
267914+
"/playintegrity:v1/WriteDeviceRecallResponse": write_device_recall_response
267907267915
"/playintegrity:v1/fields": fields
267908267916
"/playintegrity:v1/key": key
267909267917
"/playintegrity:v1/playintegrity.decodeIntegrityToken": decode_integrity_token
267910267918
"/playintegrity:v1/playintegrity.decodeIntegrityToken/packageName": package_name
267919+
"/playintegrity:v1/playintegrity.deviceRecall.write": write_device_recall
267920+
"/playintegrity:v1/playintegrity.deviceRecall.write/packageName": package_name
267911267921
"/playintegrity:v1/quotaUser": quota_user
267912267922
"/playmoviespartner:v1/Avail": avail
267913267923
"/playmoviespartner:v1/Avail/altId": alt_id

generated/google-apis-playintegrity_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-playintegrity_v1
22

3+
### v0.27.0 (2024-07-25)
4+
5+
* Regenerated from discovery document revision 20240711
6+
37
### v0.26.0 (2024-05-19)
48

59
* Regenerated from discovery document revision 20240508

generated/google-apis-playintegrity_v1/lib/google/apis/playintegrity_v1/classes.rb

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,80 @@ def update!(**args)
371371
@testing_details = args[:testing_details] if args.key?(:testing_details)
372372
end
373373
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
374448
end
375449
end
376450
end

generated/google-apis-playintegrity_v1/lib/google/apis/playintegrity_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module PlayintegrityV1
1818
# Version of the google-apis-playintegrity_v1 gem
19-
GEM_VERSION = "0.26.0"
19+
GEM_VERSION = "0.27.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240508"
25+
REVISION = "20240711"
2626
end
2727
end
2828
end

generated/google-apis-playintegrity_v1/lib/google/apis/playintegrity_v1/representations.rb

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
9494
include Google::Apis::Core::JsonObjectSupport
9595
end
9696

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+
97115
class AccountActivity
98116
# @private
99117
class Representation < Google::Apis::Core::JsonRepresentation
@@ -203,6 +221,30 @@ class Representation < Google::Apis::Core::JsonRepresentation
203221

204222
end
205223
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
206248
end
207249
end
208250
end

generated/google-apis-playintegrity_v1/lib/google/apis/playintegrity_v1/service.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,41 @@ def initialize
5454
@batch_path = 'batch'
5555
end
5656

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+
5792
# Decodes the integrity token and returns the token payload.
5893
# @param [String] package_name
5994
# Package name of the app the attached integrity token belongs to.

0 commit comments

Comments
 (0)