@@ -132,6 +132,41 @@ def set_catalog_iam_policy(resource, set_iam_policy_request_object = nil, fields
132132 execute_or_queue_command ( command , &block )
133133 end
134134
135+ # Tests the IAM permissions for the specified catalog.
136+ # @param [String] resource
137+ # REQUIRED: The resource for which the policy detail is being requested. See [
138+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
139+ # appropriate value for this field.
140+ # @param [Google::Apis::BiglakeV1::TestIamPermissionsRequest] test_iam_permissions_request_object
141+ # @param [String] fields
142+ # Selector specifying which fields to include in a partial response.
143+ # @param [String] quota_user
144+ # Available to use for quota purposes for server-side applications. Can be any
145+ # arbitrary string assigned to a user, but should not exceed 40 characters.
146+ # @param [Google::Apis::RequestOptions] options
147+ # Request-specific options
148+ #
149+ # @yield [result, err] Result & error if block supplied
150+ # @yieldparam result [Google::Apis::BiglakeV1::TestIamPermissionsResponse] parsed result object
151+ # @yieldparam err [StandardError] error object if request failed
152+ #
153+ # @return [Google::Apis::BiglakeV1::TestIamPermissionsResponse]
154+ #
155+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157+ # @raise [Google::Apis::AuthorizationError] Authorization is required
158+ def test_catalog_iam_permissions ( resource , test_iam_permissions_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
159+ command = make_simple_command ( :post , 'v1/{+resource}:testIamPermissions' , options )
160+ command . request_representation = Google ::Apis ::BiglakeV1 ::TestIamPermissionsRequest ::Representation
161+ command . request_object = test_iam_permissions_request_object
162+ command . response_representation = Google ::Apis ::BiglakeV1 ::TestIamPermissionsResponse ::Representation
163+ command . response_class = Google ::Apis ::BiglakeV1 ::TestIamPermissionsResponse
164+ command . params [ 'resource' ] = resource unless resource . nil?
165+ command . query [ 'fields' ] = fields unless fields . nil?
166+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
167+ execute_or_queue_command ( command , &block )
168+ end
169+
135170 # Gets the IAM policy for the specified Catalog.
136171 # @param [String] resource
137172 # REQUIRED: The resource for which the policy is being requested. See [Resource
@@ -211,6 +246,155 @@ def set_namespace_iam_policy(resource, set_iam_policy_request_object = nil, fiel
211246 execute_or_queue_command ( command , &block )
212247 end
213248
249+ # Tests the IAM permissions for the specified namespace.
250+ # @param [String] resource
251+ # REQUIRED: The resource for which the policy detail is being requested. See [
252+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
253+ # appropriate value for this field.
254+ # @param [Google::Apis::BiglakeV1::TestIamPermissionsRequest] test_iam_permissions_request_object
255+ # @param [String] fields
256+ # Selector specifying which fields to include in a partial response.
257+ # @param [String] quota_user
258+ # Available to use for quota purposes for server-side applications. Can be any
259+ # arbitrary string assigned to a user, but should not exceed 40 characters.
260+ # @param [Google::Apis::RequestOptions] options
261+ # Request-specific options
262+ #
263+ # @yield [result, err] Result & error if block supplied
264+ # @yieldparam result [Google::Apis::BiglakeV1::TestIamPermissionsResponse] parsed result object
265+ # @yieldparam err [StandardError] error object if request failed
266+ #
267+ # @return [Google::Apis::BiglakeV1::TestIamPermissionsResponse]
268+ #
269+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271+ # @raise [Google::Apis::AuthorizationError] Authorization is required
272+ def test_namespace_iam_permissions ( resource , test_iam_permissions_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
273+ command = make_simple_command ( :post , 'v1/{+resource}:testIamPermissions' , options )
274+ command . request_representation = Google ::Apis ::BiglakeV1 ::TestIamPermissionsRequest ::Representation
275+ command . request_object = test_iam_permissions_request_object
276+ command . response_representation = Google ::Apis ::BiglakeV1 ::TestIamPermissionsResponse ::Representation
277+ command . response_class = Google ::Apis ::BiglakeV1 ::TestIamPermissionsResponse
278+ command . params [ 'resource' ] = resource unless resource . nil?
279+ command . query [ 'fields' ] = fields unless fields . nil?
280+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
281+ execute_or_queue_command ( command , &block )
282+ end
283+
284+ # Gets the IAM policy for the specified Catalog.
285+ # @param [String] resource
286+ # REQUIRED: The resource for which the policy is being requested. See [Resource
287+ # names](https://cloud.google.com/apis/design/resource_names) for the
288+ # appropriate value for this field.
289+ # @param [Fixnum] options_requested_policy_version
290+ # Optional. The maximum policy version that will be used to format the policy.
291+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
292+ # rejected. Requests for policies with any conditional role bindings must
293+ # specify version 3. Policies with no conditional role bindings may specify any
294+ # valid value or leave the field unset. The policy in the response might use the
295+ # policy version that you specified, or it might use a lower policy version. For
296+ # example, if you specify version 3, but the policy has no conditional role
297+ # bindings, the response uses version 1. To learn which resources support
298+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
299+ # google.com/iam/help/conditions/resource-policies).
300+ # @param [String] fields
301+ # Selector specifying which fields to include in a partial response.
302+ # @param [String] quota_user
303+ # Available to use for quota purposes for server-side applications. Can be any
304+ # arbitrary string assigned to a user, but should not exceed 40 characters.
305+ # @param [Google::Apis::RequestOptions] options
306+ # Request-specific options
307+ #
308+ # @yield [result, err] Result & error if block supplied
309+ # @yieldparam result [Google::Apis::BiglakeV1::Policy] parsed result object
310+ # @yieldparam err [StandardError] error object if request failed
311+ #
312+ # @return [Google::Apis::BiglakeV1::Policy]
313+ #
314+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316+ # @raise [Google::Apis::AuthorizationError] Authorization is required
317+ def get_project_catalog_namespace_table_iam_policy ( resource , options_requested_policy_version : nil , fields : nil , quota_user : nil , options : nil , &block )
318+ command = make_simple_command ( :get , 'v1/{+resource}:getIamPolicy' , options )
319+ command . response_representation = Google ::Apis ::BiglakeV1 ::Policy ::Representation
320+ command . response_class = Google ::Apis ::BiglakeV1 ::Policy
321+ command . params [ 'resource' ] = resource unless resource . nil?
322+ command . query [ 'options.requestedPolicyVersion' ] = options_requested_policy_version unless options_requested_policy_version . nil?
323+ command . query [ 'fields' ] = fields unless fields . nil?
324+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
325+ execute_or_queue_command ( command , &block )
326+ end
327+
328+ # Sets the IAM policy for the specified catalog.
329+ # @param [String] resource
330+ # REQUIRED: The resource for which the policy is being specified. See [Resource
331+ # names](https://cloud.google.com/apis/design/resource_names) for the
332+ # appropriate value for this field.
333+ # @param [Google::Apis::BiglakeV1::SetIamPolicyRequest] set_iam_policy_request_object
334+ # @param [String] fields
335+ # Selector specifying which fields to include in a partial response.
336+ # @param [String] quota_user
337+ # Available to use for quota purposes for server-side applications. Can be any
338+ # arbitrary string assigned to a user, but should not exceed 40 characters.
339+ # @param [Google::Apis::RequestOptions] options
340+ # Request-specific options
341+ #
342+ # @yield [result, err] Result & error if block supplied
343+ # @yieldparam result [Google::Apis::BiglakeV1::Policy] parsed result object
344+ # @yieldparam err [StandardError] error object if request failed
345+ #
346+ # @return [Google::Apis::BiglakeV1::Policy]
347+ #
348+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
349+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
350+ # @raise [Google::Apis::AuthorizationError] Authorization is required
351+ def set_table_iam_policy ( resource , set_iam_policy_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
352+ command = make_simple_command ( :post , 'v1/{+resource}:setIamPolicy' , options )
353+ command . request_representation = Google ::Apis ::BiglakeV1 ::SetIamPolicyRequest ::Representation
354+ command . request_object = set_iam_policy_request_object
355+ command . response_representation = Google ::Apis ::BiglakeV1 ::Policy ::Representation
356+ command . response_class = Google ::Apis ::BiglakeV1 ::Policy
357+ command . params [ 'resource' ] = resource unless resource . nil?
358+ command . query [ 'fields' ] = fields unless fields . nil?
359+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
360+ execute_or_queue_command ( command , &block )
361+ end
362+
363+ # Tests the IAM permissions for the specified table.
364+ # @param [String] resource
365+ # REQUIRED: The resource for which the policy detail is being requested. See [
366+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
367+ # appropriate value for this field.
368+ # @param [Google::Apis::BiglakeV1::TestIamPermissionsRequest] test_iam_permissions_request_object
369+ # @param [String] fields
370+ # Selector specifying which fields to include in a partial response.
371+ # @param [String] quota_user
372+ # Available to use for quota purposes for server-side applications. Can be any
373+ # arbitrary string assigned to a user, but should not exceed 40 characters.
374+ # @param [Google::Apis::RequestOptions] options
375+ # Request-specific options
376+ #
377+ # @yield [result, err] Result & error if block supplied
378+ # @yieldparam result [Google::Apis::BiglakeV1::TestIamPermissionsResponse] parsed result object
379+ # @yieldparam err [StandardError] error object if request failed
380+ #
381+ # @return [Google::Apis::BiglakeV1::TestIamPermissionsResponse]
382+ #
383+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385+ # @raise [Google::Apis::AuthorizationError] Authorization is required
386+ def test_table_iam_permissions ( resource , test_iam_permissions_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
387+ command = make_simple_command ( :post , 'v1/{+resource}:testIamPermissions' , options )
388+ command . request_representation = Google ::Apis ::BiglakeV1 ::TestIamPermissionsRequest ::Representation
389+ command . request_object = test_iam_permissions_request_object
390+ command . response_representation = Google ::Apis ::BiglakeV1 ::TestIamPermissionsResponse ::Representation
391+ command . response_class = Google ::Apis ::BiglakeV1 ::TestIamPermissionsResponse
392+ command . params [ 'resource' ] = resource unless resource . nil?
393+ command . query [ 'fields' ] = fields unless fields . nil?
394+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
395+ execute_or_queue_command ( command , &block )
396+ end
397+
214398 # Creates a new catalog.
215399 # @param [String] parent
216400 # Required. The parent resource where this catalog will be created. Format:
0 commit comments