Skip to content

Commit 3d1cf8a

Browse files
feat: Automated regeneration of dataportability v1beta client (googleapis#22020)
Auto-created at 2025-03-09 10:24:12 +0000 using the toys pull request generator.
1 parent d563f0a commit 3d1cf8a

File tree

6 files changed

+110
-2
lines changed

6 files changed

+110
-2
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144632,6 +144632,12 @@
144632144632
"/dataportability:v1/quotaUser": quota_user
144633144633
"/dataportability:v1beta/CancelPortabilityArchiveRequest": cancel_portability_archive_request
144634144634
"/dataportability:v1beta/CancelPortabilityArchiveResponse": cancel_portability_archive_response
144635+
"/dataportability:v1beta/CheckAccessTypeRequest": check_access_type_request
144636+
"/dataportability:v1beta/CheckAccessTypeResponse": check_access_type_response
144637+
"/dataportability:v1beta/CheckAccessTypeResponse/oneTimeResources": one_time_resources
144638+
"/dataportability:v1beta/CheckAccessTypeResponse/oneTimeResources/one_time_resource": one_time_resource
144639+
"/dataportability:v1beta/CheckAccessTypeResponse/timeBasedResources": time_based_resources
144640+
"/dataportability:v1beta/CheckAccessTypeResponse/timeBasedResources/time_based_resource": time_based_resource
144635144641
"/dataportability:v1beta/Empty": empty
144636144642
"/dataportability:v1beta/InitiatePortabilityArchiveRequest": initiate_portability_archive_request
144637144643
"/dataportability:v1beta/InitiatePortabilityArchiveRequest/endTime": end_time
@@ -144652,6 +144658,7 @@
144652144658
"/dataportability:v1beta/RetryPortabilityArchiveRequest": retry_portability_archive_request
144653144659
"/dataportability:v1beta/RetryPortabilityArchiveResponse": retry_portability_archive_response
144654144660
"/dataportability:v1beta/RetryPortabilityArchiveResponse/archiveJobId": archive_job_id
144661+
"/dataportability:v1beta/dataportability.accessType.check": check_access_type
144655144662
"/dataportability:v1beta/dataportability.archiveJobs.cancel": cancel_archive_job_portability_archive
144656144663
"/dataportability:v1beta/dataportability.archiveJobs.cancel/name": name
144657144664
"/dataportability:v1beta/dataportability.archiveJobs.getPortabilityArchiveState": get_archive_job_portability_archive_state

generated/google-apis-dataportability_v1beta/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-dataportability_v1beta
22

3+
### v0.12.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250305
6+
37
### v0.11.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250212

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,47 @@ def update!(**args)
4848
end
4949
end
5050

51+
# Request to check the token's access type. All required information is derived
52+
# from the attached OAuth token.
53+
class CheckAccessTypeRequest
54+
include Google::Apis::Core::Hashable
55+
56+
def initialize(**args)
57+
update!(**args)
58+
end
59+
60+
# Update properties of this object
61+
def update!(**args)
62+
end
63+
end
64+
65+
# Response to checking the token's access type.
66+
class CheckAccessTypeResponse
67+
include Google::Apis::Core::Hashable
68+
69+
# Jobs initiated with this token will be one-time if any requested resources
70+
# have one-time access.
71+
# Corresponds to the JSON property `oneTimeResources`
72+
# @return [Array<String>]
73+
attr_accessor :one_time_resources
74+
75+
# Jobs initiated with this token will be time-based if all requested resources
76+
# have time-based access.
77+
# Corresponds to the JSON property `timeBasedResources`
78+
# @return [Array<String>]
79+
attr_accessor :time_based_resources
80+
81+
def initialize(**args)
82+
update!(**args)
83+
end
84+
85+
# Update properties of this object
86+
def update!(**args)
87+
@one_time_resources = args[:one_time_resources] if args.key?(:one_time_resources)
88+
@time_based_resources = args[:time_based_resources] if args.key?(:time_based_resources)
89+
end
90+
end
91+
5192
# A generic empty message that you can re-use to avoid defining duplicated empty
5293
# messages in your APIs. A typical example is to use it as the request or the
5394
# response type of an API method. For instance: service Foo ` rpc Bar(google.

generated/google-apis-dataportability_v1beta/lib/google/apis/dataportability_v1beta/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 DataportabilityV1beta
1818
# Version of the google-apis-dataportability_v1beta gem
19-
GEM_VERSION = "0.11.0"
19+
GEM_VERSION = "0.12.0"
2020

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

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

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
3434
include Google::Apis::Core::JsonObjectSupport
3535
end
3636

37+
class CheckAccessTypeRequest
38+
class Representation < Google::Apis::Core::JsonRepresentation; end
39+
40+
include Google::Apis::Core::JsonObjectSupport
41+
end
42+
43+
class CheckAccessTypeResponse
44+
class Representation < Google::Apis::Core::JsonRepresentation; end
45+
46+
include Google::Apis::Core::JsonObjectSupport
47+
end
48+
3749
class Empty
3850
class Representation < Google::Apis::Core::JsonRepresentation; end
3951

@@ -88,6 +100,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
88100
end
89101
end
90102

103+
class CheckAccessTypeRequest
104+
# @private
105+
class Representation < Google::Apis::Core::JsonRepresentation
106+
end
107+
end
108+
109+
class CheckAccessTypeResponse
110+
# @private
111+
class Representation < Google::Apis::Core::JsonRepresentation
112+
collection :one_time_resources, as: 'oneTimeResources'
113+
collection :time_based_resources, as: 'timeBasedResources'
114+
end
115+
end
116+
91117
class Empty
92118
# @private
93119
class Representation < Google::Apis::Core::JsonRepresentation

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

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

57+
# Gets the access type of the token.
58+
# @param [Google::Apis::DataportabilityV1beta::CheckAccessTypeRequest] check_access_type_request_object
59+
# @param [String] fields
60+
# Selector specifying which fields to include in a partial response.
61+
# @param [String] quota_user
62+
# Available to use for quota purposes for server-side applications. Can be any
63+
# arbitrary string assigned to a user, but should not exceed 40 characters.
64+
# @param [Google::Apis::RequestOptions] options
65+
# Request-specific options
66+
#
67+
# @yield [result, err] Result & error if block supplied
68+
# @yieldparam result [Google::Apis::DataportabilityV1beta::CheckAccessTypeResponse] parsed result object
69+
# @yieldparam err [StandardError] error object if request failed
70+
#
71+
# @return [Google::Apis::DataportabilityV1beta::CheckAccessTypeResponse]
72+
#
73+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75+
# @raise [Google::Apis::AuthorizationError] Authorization is required
76+
def check_access_type(check_access_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77+
command = make_simple_command(:post, 'v1beta/accessType:check', options)
78+
command.request_representation = Google::Apis::DataportabilityV1beta::CheckAccessTypeRequest::Representation
79+
command.request_object = check_access_type_request_object
80+
command.response_representation = Google::Apis::DataportabilityV1beta::CheckAccessTypeResponse::Representation
81+
command.response_class = Google::Apis::DataportabilityV1beta::CheckAccessTypeResponse
82+
command.query['fields'] = fields unless fields.nil?
83+
command.query['quotaUser'] = quota_user unless quota_user.nil?
84+
execute_or_queue_command(command, &block)
85+
end
86+
5787
# Cancels a Portability Archive job.
5888
# @param [String] name
5989
# Required. The Archive job ID you're canceling. This is returned by the

0 commit comments

Comments
 (0)