Skip to content

Commit 2ff7df7

Browse files
feat: Automated regeneration of bigtableadmin v2 client (#24662)
Auto-created at 2025-10-19 09:48:17 +0000 using the toys pull request generator.
1 parent 2f7d15d commit 2ff7df7

File tree

3 files changed

+110
-3
lines changed

3 files changed

+110
-3
lines changed

generated/google-apis-bigtableadmin_v2/CHANGELOG.md

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

3-
### v0.79.0 (2025-10-12)
3+
### v0.79.0 (2025-10-19)
44

5-
* Regenerated from discovery document revision 20251004
5+
* Regenerated from discovery document revision 20251012
66

77
### v0.78.0 (2025-09-21)
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module BigtableadminV2
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2819,6 +2819,42 @@ def get_project_instance_table_schema_bundle(name, fields: nil, quota_user: nil,
28192819
execute_or_queue_command(command, &block)
28202820
end
28212821

2822+
# Gets the access control policy for a Bigtable resource. Returns an empty
2823+
# policy if the resource exists but does not have a policy set.
2824+
# @param [String] resource
2825+
# REQUIRED: The resource for which the policy is being requested. See [Resource
2826+
# names](https://cloud.google.com/apis/design/resource_names) for the
2827+
# appropriate value for this field.
2828+
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
2829+
# @param [String] fields
2830+
# Selector specifying which fields to include in a partial response.
2831+
# @param [String] quota_user
2832+
# Available to use for quota purposes for server-side applications. Can be any
2833+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2834+
# @param [Google::Apis::RequestOptions] options
2835+
# Request-specific options
2836+
#
2837+
# @yield [result, err] Result & error if block supplied
2838+
# @yieldparam result [Google::Apis::BigtableadminV2::Policy] parsed result object
2839+
# @yieldparam err [StandardError] error object if request failed
2840+
#
2841+
# @return [Google::Apis::BigtableadminV2::Policy]
2842+
#
2843+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2844+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2845+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2846+
def get_schema_bundle_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2847+
command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
2848+
command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation
2849+
command.request_object = get_iam_policy_request_object
2850+
command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
2851+
command.response_class = Google::Apis::BigtableadminV2::Policy
2852+
command.params['resource'] = resource unless resource.nil?
2853+
command.query['fields'] = fields unless fields.nil?
2854+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2855+
execute_or_queue_command(command, &block)
2856+
end
2857+
28222858
# Lists all schema bundles associated with the specified table.
28232859
# @param [String] parent
28242860
# Required. The parent, which owns this collection of schema bundles. Values are
@@ -2908,6 +2944,77 @@ def patch_project_instance_table_schema_bundle(name, schema_bundle_object = nil,
29082944
execute_or_queue_command(command, &block)
29092945
end
29102946

2947+
# Sets the access control policy on a Bigtable resource. Replaces any existing
2948+
# policy.
2949+
# @param [String] resource
2950+
# REQUIRED: The resource for which the policy is being specified. See [Resource
2951+
# names](https://cloud.google.com/apis/design/resource_names) for the
2952+
# appropriate value for this field.
2953+
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
2954+
# @param [String] fields
2955+
# Selector specifying which fields to include in a partial response.
2956+
# @param [String] quota_user
2957+
# Available to use for quota purposes for server-side applications. Can be any
2958+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2959+
# @param [Google::Apis::RequestOptions] options
2960+
# Request-specific options
2961+
#
2962+
# @yield [result, err] Result & error if block supplied
2963+
# @yieldparam result [Google::Apis::BigtableadminV2::Policy] parsed result object
2964+
# @yieldparam err [StandardError] error object if request failed
2965+
#
2966+
# @return [Google::Apis::BigtableadminV2::Policy]
2967+
#
2968+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2969+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2970+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2971+
def set_schema_bundle_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2972+
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
2973+
command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation
2974+
command.request_object = set_iam_policy_request_object
2975+
command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
2976+
command.response_class = Google::Apis::BigtableadminV2::Policy
2977+
command.params['resource'] = resource unless resource.nil?
2978+
command.query['fields'] = fields unless fields.nil?
2979+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2980+
execute_or_queue_command(command, &block)
2981+
end
2982+
2983+
# Returns permissions that the caller has on the specified Bigtable resource.
2984+
# @param [String] resource
2985+
# REQUIRED: The resource for which the policy detail is being requested. See [
2986+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
2987+
# appropriate value for this field.
2988+
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
2989+
# @param [String] fields
2990+
# Selector specifying which fields to include in a partial response.
2991+
# @param [String] quota_user
2992+
# Available to use for quota purposes for server-side applications. Can be any
2993+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2994+
# @param [Google::Apis::RequestOptions] options
2995+
# Request-specific options
2996+
#
2997+
# @yield [result, err] Result & error if block supplied
2998+
# @yieldparam result [Google::Apis::BigtableadminV2::TestIamPermissionsResponse] parsed result object
2999+
# @yieldparam err [StandardError] error object if request failed
3000+
#
3001+
# @return [Google::Apis::BigtableadminV2::TestIamPermissionsResponse]
3002+
#
3003+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3004+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3005+
# @raise [Google::Apis::AuthorizationError] Authorization is required
3006+
def test_schema_bundle_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3007+
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
3008+
command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation
3009+
command.request_object = test_iam_permissions_request_object
3010+
command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation
3011+
command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse
3012+
command.params['resource'] = resource unless resource.nil?
3013+
command.query['fields'] = fields unless fields.nil?
3014+
command.query['quotaUser'] = quota_user unless quota_user.nil?
3015+
execute_or_queue_command(command, &block)
3016+
end
3017+
29113018
# Lists information about the supported locations for this service.
29123019
# @param [String] name
29133020
# The resource that owns the locations collection, if applicable.

0 commit comments

Comments
 (0)