google-apis-dataplex_v1 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -122,6 +122,801 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Gets the access control policy for a resource. Returns an empty policy if the
126
+ # resource exists and does not have a policy set.
127
+ # @param [String] resource
128
+ # REQUIRED: The resource for which the policy is being requested. See Resource
129
+ # names (https://cloud.google.com/apis/design/resource_names) for the
130
+ # appropriate value for this field.
131
+ # @param [Fixnum] options_requested_policy_version
132
+ # Optional. The maximum policy version that will be used to format the policy.
133
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
134
+ # rejected.Requests for policies with any conditional role bindings must specify
135
+ # version 3. Policies with no conditional role bindings may specify any valid
136
+ # value or leave the field unset.The policy in the response might use the policy
137
+ # version that you specified, or it might use a lower policy version. For
138
+ # example, if you specify version 3, but the policy has no conditional role
139
+ # bindings, the response uses version 1.To learn which resources support
140
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
141
+ # google.com/iam/help/conditions/resource-policies).
142
+ # @param [String] fields
143
+ # Selector specifying which fields to include in a partial response.
144
+ # @param [String] quota_user
145
+ # Available to use for quota purposes for server-side applications. Can be any
146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
147
+ # @param [Google::Apis::RequestOptions] options
148
+ # Request-specific options
149
+ #
150
+ # @yield [result, err] Result & error if block supplied
151
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
152
+ # @yieldparam err [StandardError] error object if request failed
153
+ #
154
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
155
+ #
156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
159
+ def get_project_location_data_attribute_binding_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
160
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
161
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
162
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
163
+ command.params['resource'] = resource unless resource.nil?
164
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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
+
170
+ # Sets the access control policy on the specified resource. Replaces any
171
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
172
+ # errors.
173
+ # @param [String] resource
174
+ # REQUIRED: The resource for which the policy is being specified. See Resource
175
+ # names (https://cloud.google.com/apis/design/resource_names) for the
176
+ # appropriate value for this field.
177
+ # @param [Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
+ # @param [Google::Apis::RequestOptions] options
184
+ # Request-specific options
185
+ #
186
+ # @yield [result, err] Result & error if block supplied
187
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
188
+ # @yieldparam err [StandardError] error object if request failed
189
+ #
190
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
191
+ #
192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
195
+ def set_project_location_data_attribute_binding_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
196
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
197
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest::Representation
198
+ command.request_object = google_iam_v1_set_iam_policy_request_object
199
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
200
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
201
+ command.params['resource'] = resource unless resource.nil?
202
+ command.query['fields'] = fields unless fields.nil?
203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
204
+ execute_or_queue_command(command, &block)
205
+ end
206
+
207
+ # Returns permissions that a caller has on the specified resource. If the
208
+ # resource does not exist, this will return an empty set of permissions, not a
209
+ # NOT_FOUND error.Note: This operation is designed to be used for building
210
+ # permission-aware UIs and command-line tools, not for authorization checking.
211
+ # This operation may "fail open" without warning.
212
+ # @param [String] resource
213
+ # REQUIRED: The resource for which the policy detail is being requested. See
214
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
215
+ # appropriate value for this field.
216
+ # @param [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
217
+ # @param [String] fields
218
+ # Selector specifying which fields to include in a partial response.
219
+ # @param [String] quota_user
220
+ # Available to use for quota purposes for server-side applications. Can be any
221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
222
+ # @param [Google::Apis::RequestOptions] options
223
+ # Request-specific options
224
+ #
225
+ # @yield [result, err] Result & error if block supplied
226
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
227
+ # @yieldparam err [StandardError] error object if request failed
228
+ #
229
+ # @return [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse]
230
+ #
231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
234
+ def test_project_location_data_attribute_binding_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
235
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
236
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest::Representation
237
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
238
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse::Representation
239
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse
240
+ command.params['resource'] = resource unless resource.nil?
241
+ command.query['fields'] = fields unless fields.nil?
242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
243
+ execute_or_queue_command(command, &block)
244
+ end
245
+
246
+ # Creates a dataScan resource.
247
+ # @param [String] parent
248
+ # Required. The resource name of the parent location: projects/`project`/
249
+ # locations/`location_id` where `project` refers to a project_id or
250
+ # project_number and location_id refers to a GCP region.
251
+ # @param [Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan] google_cloud_dataplex_v1_data_scan_object
252
+ # @param [String] data_scan_id
253
+ # Required. DataScan identifier. * Must contain only lowercase letters, numbers
254
+ # and hyphens. * Must start with a letter. * Must end with a number or a letter.
255
+ # * Must be between 1-63 characters. * Must be unique within the customer
256
+ # project / location.
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleLongrunningOperation] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::DataplexV1::GoogleLongrunningOperation]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def create_project_location_data_scan(parent, google_cloud_dataplex_v1_data_scan_object = nil, data_scan_id: nil, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:post, 'v1/{+parent}/dataScans', options)
276
+ command.request_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan::Representation
277
+ command.request_object = google_cloud_dataplex_v1_data_scan_object
278
+ command.response_representation = Google::Apis::DataplexV1::GoogleLongrunningOperation::Representation
279
+ command.response_class = Google::Apis::DataplexV1::GoogleLongrunningOperation
280
+ command.params['parent'] = parent unless parent.nil?
281
+ command.query['dataScanId'] = data_scan_id unless data_scan_id.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
284
+ execute_or_queue_command(command, &block)
285
+ end
286
+
287
+ # Delete the dataScan resource.
288
+ # @param [String] name
289
+ # Required. The resource name of the dataScan: projects/`project`/locations/`
290
+ # location_id`/dataScans/`data_scan_id` where `project` refers to a project_id
291
+ # or project_number and location_id refers to a GCP region.
292
+ # @param [String] fields
293
+ # Selector specifying which fields to include in a partial response.
294
+ # @param [String] quota_user
295
+ # Available to use for quota purposes for server-side applications. Can be any
296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
297
+ # @param [Google::Apis::RequestOptions] options
298
+ # Request-specific options
299
+ #
300
+ # @yield [result, err] Result & error if block supplied
301
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleLongrunningOperation] parsed result object
302
+ # @yieldparam err [StandardError] error object if request failed
303
+ #
304
+ # @return [Google::Apis::DataplexV1::GoogleLongrunningOperation]
305
+ #
306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
309
+ def delete_project_location_data_scan(name, fields: nil, quota_user: nil, options: nil, &block)
310
+ command = make_simple_command(:delete, 'v1/{+name}', options)
311
+ command.response_representation = Google::Apis::DataplexV1::GoogleLongrunningOperation::Representation
312
+ command.response_class = Google::Apis::DataplexV1::GoogleLongrunningOperation
313
+ command.params['name'] = name unless name.nil?
314
+ command.query['fields'] = fields unless fields.nil?
315
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
316
+ execute_or_queue_command(command, &block)
317
+ end
318
+
319
+ # Get dataScan resource.
320
+ # @param [String] name
321
+ # Required. The resource name of the dataScan: projects/`project`/locations/`
322
+ # location_id`/dataScans/`data_scan_id` where `project` refers to a project_id
323
+ # or project_number and location_id refers to a GCP region.
324
+ # @param [String] view
325
+ # Optional. Used to select the subset of DataScan information to return.
326
+ # Defaults to BASIC.
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [String] quota_user
330
+ # Available to use for quota purposes for server-side applications. Can be any
331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [Google::Apis::RequestOptions] options
333
+ # Request-specific options
334
+ #
335
+ # @yield [result, err] Result & error if block supplied
336
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan]
340
+ #
341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
344
+ def get_project_location_data_scan(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
345
+ command = make_simple_command(:get, 'v1/{+name}', options)
346
+ command.response_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan::Representation
347
+ command.response_class = Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan
348
+ command.params['name'] = name unless name.nil?
349
+ command.query['view'] = view unless view.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Gets the access control policy for a resource. Returns an empty policy if the
356
+ # resource exists and does not have a policy set.
357
+ # @param [String] resource
358
+ # REQUIRED: The resource for which the policy is being requested. See Resource
359
+ # names (https://cloud.google.com/apis/design/resource_names) for the
360
+ # appropriate value for this field.
361
+ # @param [Fixnum] options_requested_policy_version
362
+ # Optional. The maximum policy version that will be used to format the policy.
363
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
364
+ # rejected.Requests for policies with any conditional role bindings must specify
365
+ # version 3. Policies with no conditional role bindings may specify any valid
366
+ # value or leave the field unset.The policy in the response might use the policy
367
+ # version that you specified, or it might use a lower policy version. For
368
+ # example, if you specify version 3, but the policy has no conditional role
369
+ # bindings, the response uses version 1.To learn which resources support
370
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
371
+ # google.com/iam/help/conditions/resource-policies).
372
+ # @param [String] fields
373
+ # Selector specifying which fields to include in a partial response.
374
+ # @param [String] quota_user
375
+ # Available to use for quota purposes for server-side applications. Can be any
376
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
377
+ # @param [Google::Apis::RequestOptions] options
378
+ # Request-specific options
379
+ #
380
+ # @yield [result, err] Result & error if block supplied
381
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
382
+ # @yieldparam err [StandardError] error object if request failed
383
+ #
384
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
385
+ #
386
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
387
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
388
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
389
+ def get_project_location_data_scan_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
390
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
391
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
392
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
393
+ command.params['resource'] = resource unless resource.nil?
394
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
395
+ command.query['fields'] = fields unless fields.nil?
396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
397
+ execute_or_queue_command(command, &block)
398
+ end
399
+
400
+ # Lists dataScans.
401
+ # @param [String] parent
402
+ # Required. projects/`project`/locations/`location_id` where `project` refers to
403
+ # a project_id or project_number and location_id refers to a GCP region.
404
+ # @param [String] filter
405
+ # Optional. Filter request.
406
+ # @param [String] order_by
407
+ # Optional. Order by fields (name or create_time) for the result. If not
408
+ # specified, the ordering is undefined.
409
+ # @param [Fixnum] page_size
410
+ # Optional. Maximum number of dataScans to return. The service may return fewer
411
+ # than this value. If unspecified, at most 10 scans will be returned. The
412
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
413
+ # @param [String] page_token
414
+ # Optional. Page token received from a previous ListDataScans call. Provide this
415
+ # to retrieve the subsequent page. When paginating, all other parameters
416
+ # provided to ListDataScans must match the call that provided the page token.
417
+ # @param [String] fields
418
+ # Selector specifying which fields to include in a partial response.
419
+ # @param [String] quota_user
420
+ # Available to use for quota purposes for server-side applications. Can be any
421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
422
+ # @param [Google::Apis::RequestOptions] options
423
+ # Request-specific options
424
+ #
425
+ # @yield [result, err] Result & error if block supplied
426
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleCloudDataplexV1ListDataScansResponse] parsed result object
427
+ # @yieldparam err [StandardError] error object if request failed
428
+ #
429
+ # @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1ListDataScansResponse]
430
+ #
431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
434
+ def list_project_location_data_scans(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
435
+ command = make_simple_command(:get, 'v1/{+parent}/dataScans', options)
436
+ command.response_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1ListDataScansResponse::Representation
437
+ command.response_class = Google::Apis::DataplexV1::GoogleCloudDataplexV1ListDataScansResponse
438
+ command.params['parent'] = parent unless parent.nil?
439
+ command.query['filter'] = filter unless filter.nil?
440
+ command.query['orderBy'] = order_by unless order_by.nil?
441
+ command.query['pageSize'] = page_size unless page_size.nil?
442
+ command.query['pageToken'] = page_token unless page_token.nil?
443
+ command.query['fields'] = fields unless fields.nil?
444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
445
+ execute_or_queue_command(command, &block)
446
+ end
447
+
448
+ # Update the dataScan resource.
449
+ # @param [String] name
450
+ # Output only. The relative resource name of the scan, of the form: projects/`
451
+ # project`/locations/`location_id`/dataScans/`datascan_id`. where `project`
452
+ # refers to a project_id or project_number and location_id refers to a GCP
453
+ # region.
454
+ # @param [Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan] google_cloud_dataplex_v1_data_scan_object
455
+ # @param [String] update_mask
456
+ # Required. Mask of fields to update.
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
459
+ # @param [String] quota_user
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleLongrunningOperation] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::DataplexV1::GoogleLongrunningOperation]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def patch_project_location_data_scan(name, google_cloud_dataplex_v1_data_scan_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:patch, 'v1/{+name}', options)
476
+ command.request_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan::Representation
477
+ command.request_object = google_cloud_dataplex_v1_data_scan_object
478
+ command.response_representation = Google::Apis::DataplexV1::GoogleLongrunningOperation::Representation
479
+ command.response_class = Google::Apis::DataplexV1::GoogleLongrunningOperation
480
+ command.params['name'] = name unless name.nil?
481
+ command.query['updateMask'] = update_mask unless update_mask.nil?
482
+ command.query['fields'] = fields unless fields.nil?
483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
484
+ execute_or_queue_command(command, &block)
485
+ end
486
+
487
+ # Run an on demand execution of a DataScan.
488
+ # @param [String] name
489
+ # Required. The resource name of the DataScan: projects/`project`/locations/`
490
+ # location_id`/dataScans/`data_scan_id`. where `project` refers to a project_id
491
+ # or project_number and location_id refers to a GCP region. Only on-demand
492
+ # DataScans are allowed.
493
+ # @param [Google::Apis::DataplexV1::GoogleCloudDataplexV1RunDataScanRequest] google_cloud_dataplex_v1_run_data_scan_request_object
494
+ # @param [String] fields
495
+ # Selector specifying which fields to include in a partial response.
496
+ # @param [String] quota_user
497
+ # Available to use for quota purposes for server-side applications. Can be any
498
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
499
+ # @param [Google::Apis::RequestOptions] options
500
+ # Request-specific options
501
+ #
502
+ # @yield [result, err] Result & error if block supplied
503
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleCloudDataplexV1RunDataScanResponse] parsed result object
504
+ # @yieldparam err [StandardError] error object if request failed
505
+ #
506
+ # @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1RunDataScanResponse]
507
+ #
508
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
509
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
510
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
511
+ def run_project_location_data_scan(name, google_cloud_dataplex_v1_run_data_scan_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
512
+ command = make_simple_command(:post, 'v1/{+name}:run', options)
513
+ command.request_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1RunDataScanRequest::Representation
514
+ command.request_object = google_cloud_dataplex_v1_run_data_scan_request_object
515
+ command.response_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1RunDataScanResponse::Representation
516
+ command.response_class = Google::Apis::DataplexV1::GoogleCloudDataplexV1RunDataScanResponse
517
+ command.params['name'] = name unless name.nil?
518
+ command.query['fields'] = fields unless fields.nil?
519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
520
+ execute_or_queue_command(command, &block)
521
+ end
522
+
523
+ # Sets the access control policy on the specified resource. Replaces any
524
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
525
+ # errors.
526
+ # @param [String] resource
527
+ # REQUIRED: The resource for which the policy is being specified. See Resource
528
+ # names (https://cloud.google.com/apis/design/resource_names) for the
529
+ # appropriate value for this field.
530
+ # @param [Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
531
+ # @param [String] fields
532
+ # Selector specifying which fields to include in a partial response.
533
+ # @param [String] quota_user
534
+ # Available to use for quota purposes for server-side applications. Can be any
535
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
536
+ # @param [Google::Apis::RequestOptions] options
537
+ # Request-specific options
538
+ #
539
+ # @yield [result, err] Result & error if block supplied
540
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
541
+ # @yieldparam err [StandardError] error object if request failed
542
+ #
543
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
544
+ #
545
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
546
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
547
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
548
+ def set_project_location_data_scan_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
549
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
550
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest::Representation
551
+ command.request_object = google_iam_v1_set_iam_policy_request_object
552
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
553
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
554
+ command.params['resource'] = resource unless resource.nil?
555
+ command.query['fields'] = fields unless fields.nil?
556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
557
+ execute_or_queue_command(command, &block)
558
+ end
559
+
560
+ # Returns permissions that a caller has on the specified resource. If the
561
+ # resource does not exist, this will return an empty set of permissions, not a
562
+ # NOT_FOUND error.Note: This operation is designed to be used for building
563
+ # permission-aware UIs and command-line tools, not for authorization checking.
564
+ # This operation may "fail open" without warning.
565
+ # @param [String] resource
566
+ # REQUIRED: The resource for which the policy detail is being requested. See
567
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
568
+ # appropriate value for this field.
569
+ # @param [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def test_project_location_data_scan_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
589
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest::Representation
590
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
591
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse::Representation
592
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse
593
+ command.params['resource'] = resource unless resource.nil?
594
+ command.query['fields'] = fields unless fields.nil?
595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
596
+ execute_or_queue_command(command, &block)
597
+ end
598
+
599
+ # Get DataScanJob resource.
600
+ # @param [String] name
601
+ # Required. The resource name of the DataScanJob: projects/`project`/locations/`
602
+ # location_id`/dataScans/`data_scan_id`/dataScanJobs/`data_scan_job_id` where `
603
+ # project` refers to a project_id or project_number and location_id refers to a
604
+ # GCP region.
605
+ # @param [String] view
606
+ # Optional. Used to select the subset of DataScan information to return.
607
+ # Defaults to BASIC.
608
+ # @param [String] fields
609
+ # Selector specifying which fields to include in a partial response.
610
+ # @param [String] quota_user
611
+ # Available to use for quota purposes for server-side applications. Can be any
612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
613
+ # @param [Google::Apis::RequestOptions] options
614
+ # Request-specific options
615
+ #
616
+ # @yield [result, err] Result & error if block supplied
617
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanJob] parsed result object
618
+ # @yieldparam err [StandardError] error object if request failed
619
+ #
620
+ # @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanJob]
621
+ #
622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
625
+ def get_project_location_data_scan_job(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
626
+ command = make_simple_command(:get, 'v1/{+name}', options)
627
+ command.response_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanJob::Representation
628
+ command.response_class = Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanJob
629
+ command.params['name'] = name unless name.nil?
630
+ command.query['view'] = view unless view.nil?
631
+ command.query['fields'] = fields unless fields.nil?
632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
633
+ execute_or_queue_command(command, &block)
634
+ end
635
+
636
+ # Lists DataScanJobs under the given dataScan.
637
+ # @param [String] parent
638
+ # Required. The resource name of the parent environment: projects/`project`/
639
+ # locations/`location_id`/dataScans/`data_scan_id` where `project` refers to a
640
+ # project_id or project_number and location_id refers to a GCP region.
641
+ # @param [Fixnum] page_size
642
+ # Optional. Maximum number of DataScanJobs to return. The service may return
643
+ # fewer than this value. If unspecified, at most 10 DataScanJobs will be
644
+ # returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
645
+ # @param [String] page_token
646
+ # Optional. Page token received from a previous ListDataScanJobs call. Provide
647
+ # this to retrieve the subsequent page. When paginating, all other parameters
648
+ # provided to ListDataScanJobs must match the call that provided the page token.
649
+ # @param [String] fields
650
+ # Selector specifying which fields to include in a partial response.
651
+ # @param [String] quota_user
652
+ # Available to use for quota purposes for server-side applications. Can be any
653
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
654
+ # @param [Google::Apis::RequestOptions] options
655
+ # Request-specific options
656
+ #
657
+ # @yield [result, err] Result & error if block supplied
658
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleCloudDataplexV1ListDataScanJobsResponse] parsed result object
659
+ # @yieldparam err [StandardError] error object if request failed
660
+ #
661
+ # @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1ListDataScanJobsResponse]
662
+ #
663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
666
+ def list_project_location_data_scan_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
667
+ command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
668
+ command.response_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1ListDataScanJobsResponse::Representation
669
+ command.response_class = Google::Apis::DataplexV1::GoogleCloudDataplexV1ListDataScanJobsResponse
670
+ command.params['parent'] = parent unless parent.nil?
671
+ command.query['pageSize'] = page_size unless page_size.nil?
672
+ command.query['pageToken'] = page_token unless page_token.nil?
673
+ command.query['fields'] = fields unless fields.nil?
674
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
675
+ execute_or_queue_command(command, &block)
676
+ end
677
+
678
+ # Gets the access control policy for a resource. Returns an empty policy if the
679
+ # resource exists and does not have a policy set.
680
+ # @param [String] resource
681
+ # REQUIRED: The resource for which the policy is being requested. See Resource
682
+ # names (https://cloud.google.com/apis/design/resource_names) for the
683
+ # appropriate value for this field.
684
+ # @param [Fixnum] options_requested_policy_version
685
+ # Optional. The maximum policy version that will be used to format the policy.
686
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
687
+ # rejected.Requests for policies with any conditional role bindings must specify
688
+ # version 3. Policies with no conditional role bindings may specify any valid
689
+ # value or leave the field unset.The policy in the response might use the policy
690
+ # version that you specified, or it might use a lower policy version. For
691
+ # example, if you specify version 3, but the policy has no conditional role
692
+ # bindings, the response uses version 1.To learn which resources support
693
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
694
+ # google.com/iam/help/conditions/resource-policies).
695
+ # @param [String] fields
696
+ # Selector specifying which fields to include in a partial response.
697
+ # @param [String] quota_user
698
+ # Available to use for quota purposes for server-side applications. Can be any
699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
700
+ # @param [Google::Apis::RequestOptions] options
701
+ # Request-specific options
702
+ #
703
+ # @yield [result, err] Result & error if block supplied
704
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
705
+ # @yieldparam err [StandardError] error object if request failed
706
+ #
707
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
708
+ #
709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
712
+ def get_project_location_data_taxonomy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
713
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
714
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
715
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
716
+ command.params['resource'] = resource unless resource.nil?
717
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
718
+ command.query['fields'] = fields unless fields.nil?
719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
720
+ execute_or_queue_command(command, &block)
721
+ end
722
+
723
+ # Sets the access control policy on the specified resource. Replaces any
724
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
725
+ # errors.
726
+ # @param [String] resource
727
+ # REQUIRED: The resource for which the policy is being specified. See Resource
728
+ # names (https://cloud.google.com/apis/design/resource_names) for the
729
+ # appropriate value for this field.
730
+ # @param [Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
731
+ # @param [String] fields
732
+ # Selector specifying which fields to include in a partial response.
733
+ # @param [String] quota_user
734
+ # Available to use for quota purposes for server-side applications. Can be any
735
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
736
+ # @param [Google::Apis::RequestOptions] options
737
+ # Request-specific options
738
+ #
739
+ # @yield [result, err] Result & error if block supplied
740
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
741
+ # @yieldparam err [StandardError] error object if request failed
742
+ #
743
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
744
+ #
745
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
746
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
747
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
748
+ def set_project_location_data_taxonomy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
749
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
750
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest::Representation
751
+ command.request_object = google_iam_v1_set_iam_policy_request_object
752
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
753
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
754
+ command.params['resource'] = resource unless resource.nil?
755
+ command.query['fields'] = fields unless fields.nil?
756
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
757
+ execute_or_queue_command(command, &block)
758
+ end
759
+
760
+ # Returns permissions that a caller has on the specified resource. If the
761
+ # resource does not exist, this will return an empty set of permissions, not a
762
+ # NOT_FOUND error.Note: This operation is designed to be used for building
763
+ # permission-aware UIs and command-line tools, not for authorization checking.
764
+ # This operation may "fail open" without warning.
765
+ # @param [String] resource
766
+ # REQUIRED: The resource for which the policy detail is being requested. See
767
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
768
+ # appropriate value for this field.
769
+ # @param [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
770
+ # @param [String] fields
771
+ # Selector specifying which fields to include in a partial response.
772
+ # @param [String] quota_user
773
+ # Available to use for quota purposes for server-side applications. Can be any
774
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
775
+ # @param [Google::Apis::RequestOptions] options
776
+ # Request-specific options
777
+ #
778
+ # @yield [result, err] Result & error if block supplied
779
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
780
+ # @yieldparam err [StandardError] error object if request failed
781
+ #
782
+ # @return [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse]
783
+ #
784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
787
+ def test_project_location_data_taxonomy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
788
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
789
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest::Representation
790
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
791
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse::Representation
792
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse
793
+ command.params['resource'] = resource unless resource.nil?
794
+ command.query['fields'] = fields unless fields.nil?
795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
796
+ execute_or_queue_command(command, &block)
797
+ end
798
+
799
+ # Gets the access control policy for a resource. Returns an empty policy if the
800
+ # resource exists and does not have a policy set.
801
+ # @param [String] resource
802
+ # REQUIRED: The resource for which the policy is being requested. See Resource
803
+ # names (https://cloud.google.com/apis/design/resource_names) for the
804
+ # appropriate value for this field.
805
+ # @param [Fixnum] options_requested_policy_version
806
+ # Optional. The maximum policy version that will be used to format the policy.
807
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
808
+ # rejected.Requests for policies with any conditional role bindings must specify
809
+ # version 3. Policies with no conditional role bindings may specify any valid
810
+ # value or leave the field unset.The policy in the response might use the policy
811
+ # version that you specified, or it might use a lower policy version. For
812
+ # example, if you specify version 3, but the policy has no conditional role
813
+ # bindings, the response uses version 1.To learn which resources support
814
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
815
+ # google.com/iam/help/conditions/resource-policies).
816
+ # @param [String] fields
817
+ # Selector specifying which fields to include in a partial response.
818
+ # @param [String] quota_user
819
+ # Available to use for quota purposes for server-side applications. Can be any
820
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
821
+ # @param [Google::Apis::RequestOptions] options
822
+ # Request-specific options
823
+ #
824
+ # @yield [result, err] Result & error if block supplied
825
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
826
+ # @yieldparam err [StandardError] error object if request failed
827
+ #
828
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
829
+ #
830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
833
+ def get_project_location_data_taxonomy_attribute_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
834
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
835
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
836
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
837
+ command.params['resource'] = resource unless resource.nil?
838
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
839
+ command.query['fields'] = fields unless fields.nil?
840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
841
+ execute_or_queue_command(command, &block)
842
+ end
843
+
844
+ # Sets the access control policy on the specified resource. Replaces any
845
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
846
+ # errors.
847
+ # @param [String] resource
848
+ # REQUIRED: The resource for which the policy is being specified. See Resource
849
+ # names (https://cloud.google.com/apis/design/resource_names) for the
850
+ # appropriate value for this field.
851
+ # @param [Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
852
+ # @param [String] fields
853
+ # Selector specifying which fields to include in a partial response.
854
+ # @param [String] quota_user
855
+ # Available to use for quota purposes for server-side applications. Can be any
856
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
857
+ # @param [Google::Apis::RequestOptions] options
858
+ # Request-specific options
859
+ #
860
+ # @yield [result, err] Result & error if block supplied
861
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
862
+ # @yieldparam err [StandardError] error object if request failed
863
+ #
864
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
865
+ #
866
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
867
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
868
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
869
+ def set_project_location_data_taxonomy_attribute_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
870
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
871
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest::Representation
872
+ command.request_object = google_iam_v1_set_iam_policy_request_object
873
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
874
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
875
+ command.params['resource'] = resource unless resource.nil?
876
+ command.query['fields'] = fields unless fields.nil?
877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
878
+ execute_or_queue_command(command, &block)
879
+ end
880
+
881
+ # Returns permissions that a caller has on the specified resource. If the
882
+ # resource does not exist, this will return an empty set of permissions, not a
883
+ # NOT_FOUND error.Note: This operation is designed to be used for building
884
+ # permission-aware UIs and command-line tools, not for authorization checking.
885
+ # This operation may "fail open" without warning.
886
+ # @param [String] resource
887
+ # REQUIRED: The resource for which the policy detail is being requested. See
888
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
889
+ # appropriate value for this field.
890
+ # @param [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
891
+ # @param [String] fields
892
+ # Selector specifying which fields to include in a partial response.
893
+ # @param [String] quota_user
894
+ # Available to use for quota purposes for server-side applications. Can be any
895
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
896
+ # @param [Google::Apis::RequestOptions] options
897
+ # Request-specific options
898
+ #
899
+ # @yield [result, err] Result & error if block supplied
900
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
901
+ # @yieldparam err [StandardError] error object if request failed
902
+ #
903
+ # @return [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse]
904
+ #
905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
908
+ def test_project_location_data_taxonomy_attribute_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
909
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
910
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest::Representation
911
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
912
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse::Representation
913
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse
914
+ command.params['resource'] = resource unless resource.nil?
915
+ command.query['fields'] = fields unless fields.nil?
916
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
917
+ execute_or_queue_command(command, &block)
918
+ end
919
+
125
920
  # Creates a lake resource.
126
921
  # @param [String] parent
127
922
  # Required. The resource name of the lake location, of the form: projects/`