Skip to content

Commit 943ca1e

Browse files
feat: Automated regeneration of bigtableadmin v2 client (googleapis#23231)
Auto-created at 2025-05-25 09:26:16 +0000 using the toys pull request generator.
1 parent a9e5f33 commit 943ca1e

File tree

3 files changed

+108
-3
lines changed

3 files changed

+108
-3
lines changed

generated/google-apis-bigtableadmin_v2/CHANGELOG.md

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

3+
### v0.71.0 (2025-05-25)
4+
5+
* Regenerated from discovery document revision 20250512
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.70.0 (2025-05-11)
49

510
* Regenerated from discovery document revision 20250430

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module BigtableadminV2
1818
# Version of the google-apis-bigtableadmin_v2 gem
19-
GEM_VERSION = "0.70.0"
19+
GEM_VERSION = "0.71.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,76 @@ def initialize
5151
@batch_path = 'batch'
5252
end
5353

54+
# Starts asynchronous cancellation on a long-running operation. The server makes
55+
# a best effort to cancel the operation, but success is not guaranteed. If the
56+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
57+
# Clients can use Operations.GetOperation or other methods to check whether the
58+
# cancellation succeeded or whether the operation completed despite cancellation.
59+
# On successful cancellation, the operation is not deleted; instead, it becomes
60+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
61+
# , corresponding to `Code.CANCELLED`.
62+
# @param [String] name
63+
# The name of the operation resource to be cancelled.
64+
# @param [String] fields
65+
# Selector specifying which fields to include in a partial response.
66+
# @param [String] quota_user
67+
# Available to use for quota purposes for server-side applications. Can be any
68+
# arbitrary string assigned to a user, but should not exceed 40 characters.
69+
# @param [Google::Apis::RequestOptions] options
70+
# Request-specific options
71+
#
72+
# @yield [result, err] Result & error if block supplied
73+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
74+
# @yieldparam err [StandardError] error object if request failed
75+
#
76+
# @return [Google::Apis::BigtableadminV2::Empty]
77+
#
78+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80+
# @raise [Google::Apis::AuthorizationError] Authorization is required
81+
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
82+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
83+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
84+
command.response_class = Google::Apis::BigtableadminV2::Empty
85+
command.params['name'] = name unless name.nil?
86+
command.query['fields'] = fields unless fields.nil?
87+
command.query['quotaUser'] = quota_user unless quota_user.nil?
88+
execute_or_queue_command(command, &block)
89+
end
90+
91+
# Deletes a long-running operation. This method indicates that the client is no
92+
# longer interested in the operation result. It does not cancel the operation.
93+
# If the server doesn't support this method, it returns `google.rpc.Code.
94+
# UNIMPLEMENTED`.
95+
# @param [String] name
96+
# The name of the operation resource to be deleted.
97+
# @param [String] fields
98+
# Selector specifying which fields to include in a partial response.
99+
# @param [String] quota_user
100+
# Available to use for quota purposes for server-side applications. Can be any
101+
# arbitrary string assigned to a user, but should not exceed 40 characters.
102+
# @param [Google::Apis::RequestOptions] options
103+
# Request-specific options
104+
#
105+
# @yield [result, err] Result & error if block supplied
106+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
107+
# @yieldparam err [StandardError] error object if request failed
108+
#
109+
# @return [Google::Apis::BigtableadminV2::Empty]
110+
#
111+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113+
# @raise [Google::Apis::AuthorizationError] Authorization is required
114+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
115+
command = make_simple_command(:delete, 'v2/{+name}', options)
116+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
117+
command.response_class = Google::Apis::BigtableadminV2::Empty
118+
command.params['name'] = name unless name.nil?
119+
command.query['fields'] = fields unless fields.nil?
120+
command.query['quotaUser'] = quota_user unless quota_user.nil?
121+
execute_or_queue_command(command, &block)
122+
end
123+
54124
# Gets the latest state of a long-running operation. Clients can use this method
55125
# to poll the operation result at intervals as recommended by the API service.
56126
# @param [String] name
@@ -2695,6 +2765,36 @@ def test_authorized_view_iam_permissions(resource, test_iam_permissions_request_
26952765
execute_or_queue_command(command, &block)
26962766
end
26972767

2768+
# Gets information about a location.
2769+
# @param [String] name
2770+
# Resource name for the location.
2771+
# @param [String] fields
2772+
# Selector specifying which fields to include in a partial response.
2773+
# @param [String] quota_user
2774+
# Available to use for quota purposes for server-side applications. Can be any
2775+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2776+
# @param [Google::Apis::RequestOptions] options
2777+
# Request-specific options
2778+
#
2779+
# @yield [result, err] Result & error if block supplied
2780+
# @yieldparam result [Google::Apis::BigtableadminV2::Location] parsed result object
2781+
# @yieldparam err [StandardError] error object if request failed
2782+
#
2783+
# @return [Google::Apis::BigtableadminV2::Location]
2784+
#
2785+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2786+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2787+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2788+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
2789+
command = make_simple_command(:get, 'v2/{+name}', options)
2790+
command.response_representation = Google::Apis::BigtableadminV2::Location::Representation
2791+
command.response_class = Google::Apis::BigtableadminV2::Location
2792+
command.params['name'] = name unless name.nil?
2793+
command.query['fields'] = fields unless fields.nil?
2794+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2795+
execute_or_queue_command(command, &block)
2796+
end
2797+
26982798
# Lists information about the supported locations for this service.
26992799
# @param [String] name
27002800
# The resource that owns the locations collection, if applicable.

0 commit comments

Comments
 (0)