google-cloud-dataform-v1beta1 0.14.1 → 0.16.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +5 -5
  4. data/lib/google/cloud/dataform/v1beta1/bindings_override.rb +0 -57
  5. data/lib/google/cloud/dataform/v1beta1/dataform/client.rb +2189 -49
  6. data/lib/google/cloud/dataform/v1beta1/dataform/operations.rb +843 -0
  7. data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +59 -0
  8. data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +2065 -66
  9. data/lib/google/cloud/dataform/v1beta1/dataform/rest/operations.rb +927 -0
  10. data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +1782 -482
  11. data/lib/google/cloud/dataform/v1beta1/dataform/rest.rb +1 -0
  12. data/lib/google/cloud/dataform/v1beta1/dataform.rb +1 -0
  13. data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +48 -28
  14. data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +56 -0
  15. data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
  16. data/lib/google/longrunning/bindings_override.rb +71 -0
  17. data/lib/google/longrunning/operations/client.rb +954 -0
  18. data/lib/google/longrunning/operations/credentials.rb +40 -0
  19. data/lib/google/longrunning/operations/operations.rb +839 -0
  20. data/lib/google/longrunning/operations/rest/client.rb +777 -0
  21. data/lib/google/longrunning/operations/rest/operations.rb +923 -0
  22. data/lib/google/longrunning/operations/rest/service_stub.rb +322 -0
  23. data/lib/google/longrunning/operations/rest.rb +57 -0
  24. data/lib/google/longrunning/operations.rb +59 -0
  25. data/lib/google/longrunning/rest.rb +34 -0
  26. data/lib/google/longrunning.rb +41 -0
  27. data/lib/google-cloud-dataform-v1beta1.rb +1 -0
  28. data/proto_docs/google/api/client.rb +149 -29
  29. data/proto_docs/google/cloud/dataform/v1beta1/dataform.rb +870 -9
  30. data/proto_docs/google/longrunning/operations.rb +191 -0
  31. metadata +32 -4
@@ -149,6 +149,13 @@ module Google
149
149
  @quota_project_id = @config.quota_project
150
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
151
 
152
+ @operations_client = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Operations.new do |config|
153
+ config.credentials = credentials
154
+ config.quota_project = @quota_project_id
155
+ config.endpoint = @config.endpoint
156
+ config.universe_domain = @config.universe_domain
157
+ end
158
+
152
159
  @dataform_stub = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::ServiceStub.new(
153
160
  endpoint: @config.endpoint,
154
161
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
@@ -157,59 +164,1446 @@ module Google
157
164
  logger: @config.logger
158
165
  )
159
166
 
160
- @dataform_stub.logger(stub: true)&.info do |entry|
161
- entry.set_system_name
162
- entry.set_service
163
- entry.message = "Created client for #{entry.service}"
164
- entry.set_credentials_fields credentials
165
- entry.set "customEndpoint", @config.endpoint if @config.endpoint
166
- entry.set "defaultTimeout", @config.timeout if @config.timeout
167
- entry.set "quotaProject", @quota_project_id if @quota_project_id
168
- end
167
+ @dataform_stub.logger(stub: true)&.info do |entry|
168
+ entry.set_system_name
169
+ entry.set_service
170
+ entry.message = "Created client for #{entry.service}"
171
+ entry.set_credentials_fields credentials
172
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
173
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
174
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
175
+ end
176
+
177
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
178
+ config.credentials = credentials
179
+ config.quota_project = @quota_project_id
180
+ config.endpoint = @dataform_stub.endpoint
181
+ config.universe_domain = @dataform_stub.universe_domain
182
+ config.bindings_override = @config.bindings_override
183
+ config.logger = @dataform_stub.logger if config.respond_to? :logger=
184
+ end
185
+
186
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
187
+ config.credentials = credentials
188
+ config.quota_project = @quota_project_id
189
+ config.endpoint = @dataform_stub.endpoint
190
+ config.universe_domain = @dataform_stub.universe_domain
191
+ config.logger = @dataform_stub.logger if config.respond_to? :logger=
192
+ end
193
+ end
194
+
195
+ ##
196
+ # Get the associated client for long-running operations.
197
+ #
198
+ # @return [::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Operations]
199
+ #
200
+ attr_reader :operations_client
201
+
202
+ ##
203
+ # Get the associated client for mix-in of the Locations.
204
+ #
205
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
206
+ #
207
+ attr_reader :location_client
208
+
209
+ ##
210
+ # Get the associated client for mix-in of the IAMPolicy.
211
+ #
212
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
213
+ #
214
+ attr_reader :iam_policy_client
215
+
216
+ ##
217
+ # The logger used for request/response debug logging.
218
+ #
219
+ # @return [Logger]
220
+ #
221
+ def logger
222
+ @dataform_stub.logger
223
+ end
224
+
225
+ # Service calls
226
+
227
+ ##
228
+ # Fetches a single TeamFolder.
229
+ #
230
+ # @overload get_team_folder(request, options = nil)
231
+ # Pass arguments to `get_team_folder` via a request object, either of type
232
+ # {::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest} or an equivalent Hash.
233
+ #
234
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest, ::Hash]
235
+ # A request object representing the call parameters. Required. To specify no
236
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
237
+ # @param options [::Gapic::CallOptions, ::Hash]
238
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
239
+ #
240
+ # @overload get_team_folder(name: nil)
241
+ # Pass arguments to `get_team_folder` via keyword arguments. Note that at
242
+ # least one keyword argument is required. To specify no parameters, or to keep all
243
+ # the default parameter values, pass an empty Hash as a request object (see above).
244
+ #
245
+ # @param name [::String]
246
+ # Required. The TeamFolder's name.
247
+ # @yield [result, operation] Access the result along with the TransportOperation object
248
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::TeamFolder]
249
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
250
+ #
251
+ # @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
252
+ #
253
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
254
+ #
255
+ # @example Basic example
256
+ # require "google/cloud/dataform/v1beta1"
257
+ #
258
+ # # Create a client object. The client can be reused for multiple calls.
259
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
260
+ #
261
+ # # Create a request. To set request fields, pass in keyword arguments.
262
+ # request = Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest.new
263
+ #
264
+ # # Call the get_team_folder method.
265
+ # result = client.get_team_folder request
266
+ #
267
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
268
+ # p result
269
+ #
270
+ def get_team_folder request, options = nil
271
+ raise ::ArgumentError, "request must be provided" if request.nil?
272
+
273
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest
274
+
275
+ # Converts hash and nil to an options object
276
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
277
+
278
+ # Customize the options with defaults
279
+ call_metadata = @config.rpcs.get_team_folder.metadata.to_h
280
+
281
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
282
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
283
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
284
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
285
+ transports_version_send: [:rest]
286
+
287
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
288
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
289
+
290
+ options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout,
291
+ metadata: call_metadata,
292
+ retry_policy: @config.rpcs.get_team_folder.retry_policy
293
+
294
+ options.apply_defaults timeout: @config.timeout,
295
+ metadata: @config.metadata,
296
+ retry_policy: @config.retry_policy
297
+
298
+ @dataform_stub.get_team_folder request, options do |result, operation|
299
+ yield result, operation if block_given?
300
+ end
301
+ rescue ::Gapic::Rest::Error => e
302
+ raise ::Google::Cloud::Error.from_error(e)
303
+ end
304
+
305
+ ##
306
+ # Creates a new TeamFolder in a given project and location.
307
+ #
308
+ # @overload create_team_folder(request, options = nil)
309
+ # Pass arguments to `create_team_folder` via a request object, either of type
310
+ # {::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest} or an equivalent Hash.
311
+ #
312
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest, ::Hash]
313
+ # A request object representing the call parameters. Required. To specify no
314
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
315
+ # @param options [::Gapic::CallOptions, ::Hash]
316
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
317
+ #
318
+ # @overload create_team_folder(parent: nil, team_folder: nil, team_folder_id: nil)
319
+ # Pass arguments to `create_team_folder` via keyword arguments. Note that at
320
+ # least one keyword argument is required. To specify no parameters, or to keep all
321
+ # the default parameter values, pass an empty Hash as a request object (see above).
322
+ #
323
+ # @param parent [::String]
324
+ # Required. The location in which to create the TeamFolder. Must be in the
325
+ # format `projects/*/locations/*`.
326
+ # @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
327
+ # Required. The TeamFolder to create.
328
+ # @param team_folder_id [::String]
329
+ # Deprecated: This field is not used. The resource name is generated
330
+ # automatically.
331
+ # The ID to use for the TeamFolder, which will become the final component of
332
+ # the TeamFolder's resource name.
333
+ # @yield [result, operation] Access the result along with the TransportOperation object
334
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::TeamFolder]
335
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
336
+ #
337
+ # @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
338
+ #
339
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
340
+ #
341
+ # @example Basic example
342
+ # require "google/cloud/dataform/v1beta1"
343
+ #
344
+ # # Create a client object. The client can be reused for multiple calls.
345
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
346
+ #
347
+ # # Create a request. To set request fields, pass in keyword arguments.
348
+ # request = Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest.new
349
+ #
350
+ # # Call the create_team_folder method.
351
+ # result = client.create_team_folder request
352
+ #
353
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
354
+ # p result
355
+ #
356
+ def create_team_folder request, options = nil
357
+ raise ::ArgumentError, "request must be provided" if request.nil?
358
+
359
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest
360
+
361
+ # Converts hash and nil to an options object
362
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
363
+
364
+ # Customize the options with defaults
365
+ call_metadata = @config.rpcs.create_team_folder.metadata.to_h
366
+
367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
368
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
369
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
370
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
371
+ transports_version_send: [:rest]
372
+
373
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
374
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
375
+
376
+ options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout,
377
+ metadata: call_metadata,
378
+ retry_policy: @config.rpcs.create_team_folder.retry_policy
379
+
380
+ options.apply_defaults timeout: @config.timeout,
381
+ metadata: @config.metadata,
382
+ retry_policy: @config.retry_policy
383
+
384
+ @dataform_stub.create_team_folder request, options do |result, operation|
385
+ yield result, operation if block_given?
386
+ end
387
+ rescue ::Gapic::Rest::Error => e
388
+ raise ::Google::Cloud::Error.from_error(e)
389
+ end
390
+
391
+ ##
392
+ # Updates a single TeamFolder.
393
+ #
394
+ # @overload update_team_folder(request, options = nil)
395
+ # Pass arguments to `update_team_folder` via a request object, either of type
396
+ # {::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest} or an equivalent Hash.
397
+ #
398
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest, ::Hash]
399
+ # A request object representing the call parameters. Required. To specify no
400
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
401
+ # @param options [::Gapic::CallOptions, ::Hash]
402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
403
+ #
404
+ # @overload update_team_folder(update_mask: nil, team_folder: nil)
405
+ # Pass arguments to `update_team_folder` via keyword arguments. Note that at
406
+ # least one keyword argument is required. To specify no parameters, or to keep all
407
+ # the default parameter values, pass an empty Hash as a request object (see above).
408
+ #
409
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
410
+ # Optional. Specifies the fields to be updated in the Folder. If left unset,
411
+ # all fields will be updated.
412
+ # @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
413
+ # Required. The updated TeamFolder.
414
+ # @yield [result, operation] Access the result along with the TransportOperation object
415
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::TeamFolder]
416
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
417
+ #
418
+ # @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
419
+ #
420
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
421
+ #
422
+ # @example Basic example
423
+ # require "google/cloud/dataform/v1beta1"
424
+ #
425
+ # # Create a client object. The client can be reused for multiple calls.
426
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
427
+ #
428
+ # # Create a request. To set request fields, pass in keyword arguments.
429
+ # request = Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest.new
430
+ #
431
+ # # Call the update_team_folder method.
432
+ # result = client.update_team_folder request
433
+ #
434
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
435
+ # p result
436
+ #
437
+ def update_team_folder request, options = nil
438
+ raise ::ArgumentError, "request must be provided" if request.nil?
439
+
440
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest
441
+
442
+ # Converts hash and nil to an options object
443
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
444
+
445
+ # Customize the options with defaults
446
+ call_metadata = @config.rpcs.update_team_folder.metadata.to_h
447
+
448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
449
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
450
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
451
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
452
+ transports_version_send: [:rest]
453
+
454
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
455
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
456
+
457
+ options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout,
458
+ metadata: call_metadata,
459
+ retry_policy: @config.rpcs.update_team_folder.retry_policy
460
+
461
+ options.apply_defaults timeout: @config.timeout,
462
+ metadata: @config.metadata,
463
+ retry_policy: @config.retry_policy
464
+
465
+ @dataform_stub.update_team_folder request, options do |result, operation|
466
+ yield result, operation if block_given?
467
+ end
468
+ rescue ::Gapic::Rest::Error => e
469
+ raise ::Google::Cloud::Error.from_error(e)
470
+ end
471
+
472
+ ##
473
+ # Deletes a single TeamFolder.
474
+ #
475
+ # @overload delete_team_folder(request, options = nil)
476
+ # Pass arguments to `delete_team_folder` via a request object, either of type
477
+ # {::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest} or an equivalent Hash.
478
+ #
479
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest, ::Hash]
480
+ # A request object representing the call parameters. Required. To specify no
481
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
482
+ # @param options [::Gapic::CallOptions, ::Hash]
483
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
484
+ #
485
+ # @overload delete_team_folder(name: nil)
486
+ # Pass arguments to `delete_team_folder` via keyword arguments. Note that at
487
+ # least one keyword argument is required. To specify no parameters, or to keep all
488
+ # the default parameter values, pass an empty Hash as a request object (see above).
489
+ #
490
+ # @param name [::String]
491
+ # Required. The TeamFolder's name.
492
+ # @yield [result, operation] Access the result along with the TransportOperation object
493
+ # @yieldparam result [::Google::Protobuf::Empty]
494
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
495
+ #
496
+ # @return [::Google::Protobuf::Empty]
497
+ #
498
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
499
+ #
500
+ # @example Basic example
501
+ # require "google/cloud/dataform/v1beta1"
502
+ #
503
+ # # Create a client object. The client can be reused for multiple calls.
504
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
505
+ #
506
+ # # Create a request. To set request fields, pass in keyword arguments.
507
+ # request = Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest.new
508
+ #
509
+ # # Call the delete_team_folder method.
510
+ # result = client.delete_team_folder request
511
+ #
512
+ # # The returned object is of type Google::Protobuf::Empty.
513
+ # p result
514
+ #
515
+ def delete_team_folder request, options = nil
516
+ raise ::ArgumentError, "request must be provided" if request.nil?
517
+
518
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest
519
+
520
+ # Converts hash and nil to an options object
521
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
522
+
523
+ # Customize the options with defaults
524
+ call_metadata = @config.rpcs.delete_team_folder.metadata.to_h
525
+
526
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
527
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
528
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
529
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
530
+ transports_version_send: [:rest]
531
+
532
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
533
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
+
535
+ options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout,
536
+ metadata: call_metadata,
537
+ retry_policy: @config.rpcs.delete_team_folder.retry_policy
538
+
539
+ options.apply_defaults timeout: @config.timeout,
540
+ metadata: @config.metadata,
541
+ retry_policy: @config.retry_policy
542
+
543
+ @dataform_stub.delete_team_folder request, options do |result, operation|
544
+ yield result, operation if block_given?
545
+ end
546
+ rescue ::Gapic::Rest::Error => e
547
+ raise ::Google::Cloud::Error.from_error(e)
548
+ end
549
+
550
+ ##
551
+ # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
552
+ # ReleaseConfigs, and WorkflowConfigs).
553
+ #
554
+ # @overload delete_team_folder_tree(request, options = nil)
555
+ # Pass arguments to `delete_team_folder_tree` via a request object, either of type
556
+ # {::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest} or an equivalent Hash.
557
+ #
558
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest, ::Hash]
559
+ # A request object representing the call parameters. Required. To specify no
560
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
561
+ # @param options [::Gapic::CallOptions, ::Hash]
562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
563
+ #
564
+ # @overload delete_team_folder_tree(name: nil, force: nil)
565
+ # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at
566
+ # least one keyword argument is required. To specify no parameters, or to keep all
567
+ # the default parameter values, pass an empty Hash as a request object (see above).
568
+ #
569
+ # @param name [::String]
570
+ # Required. The TeamFolder's name.
571
+ # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder}
572
+ # @param force [::Boolean]
573
+ # Optional. If `false` (default): The operation will fail if any
574
+ # Repository within the folder hierarchy has associated Release Configs or
575
+ # Workflow Configs.
576
+ #
577
+ # If `true`: The operation will attempt to delete everything, including any
578
+ # Release Configs and Workflow Configs linked to Repositories within the
579
+ # folder hierarchy. This permanently removes schedules and resources.
580
+ # @yield [result, operation] Access the result along with the TransportOperation object
581
+ # @yieldparam result [::Gapic::Operation]
582
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
583
+ #
584
+ # @return [::Gapic::Operation]
585
+ #
586
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
587
+ #
588
+ # @example Basic example
589
+ # require "google/cloud/dataform/v1beta1"
590
+ #
591
+ # # Create a client object. The client can be reused for multiple calls.
592
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
593
+ #
594
+ # # Create a request. To set request fields, pass in keyword arguments.
595
+ # request = Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest.new
596
+ #
597
+ # # Call the delete_team_folder_tree method.
598
+ # result = client.delete_team_folder_tree request
599
+ #
600
+ # # The returned object is of type Gapic::Operation. You can use it to
601
+ # # check the status of an operation, cancel it, or wait for results.
602
+ # # Here is how to wait for a response.
603
+ # result.wait_until_done! timeout: 60
604
+ # if result.response?
605
+ # p result.response
606
+ # else
607
+ # puts "No response received."
608
+ # end
609
+ #
610
+ def delete_team_folder_tree request, options = nil
611
+ raise ::ArgumentError, "request must be provided" if request.nil?
612
+
613
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest
614
+
615
+ # Converts hash and nil to an options object
616
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
617
+
618
+ # Customize the options with defaults
619
+ call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h
620
+
621
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
622
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
623
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
624
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
625
+ transports_version_send: [:rest]
626
+
627
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
628
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
629
+
630
+ options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout,
631
+ metadata: call_metadata,
632
+ retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy
633
+
634
+ options.apply_defaults timeout: @config.timeout,
635
+ metadata: @config.metadata,
636
+ retry_policy: @config.retry_policy
637
+
638
+ @dataform_stub.delete_team_folder_tree request, options do |result, operation|
639
+ result = ::Gapic::Operation.new result, @operations_client, options: options
640
+ yield result, operation if block_given?
641
+ throw :response, result
642
+ end
643
+ rescue ::Gapic::Rest::Error => e
644
+ raise ::Google::Cloud::Error.from_error(e)
645
+ end
646
+
647
+ ##
648
+ # Returns the contents of a given TeamFolder.
649
+ #
650
+ # @overload query_team_folder_contents(request, options = nil)
651
+ # Pass arguments to `query_team_folder_contents` via a request object, either of type
652
+ # {::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest} or an equivalent Hash.
653
+ #
654
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest, ::Hash]
655
+ # A request object representing the call parameters. Required. To specify no
656
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
657
+ # @param options [::Gapic::CallOptions, ::Hash]
658
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
659
+ #
660
+ # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
661
+ # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at
662
+ # least one keyword argument is required. To specify no parameters, or to keep all
663
+ # the default parameter values, pass an empty Hash as a request object (see above).
664
+ #
665
+ # @param team_folder [::String]
666
+ # Required. Resource name of the TeamFolder to list contents for.
667
+ # Format: `projects/*/locations/*/teamFolders/*`.
668
+ # @param page_size [::Integer]
669
+ # Optional. Maximum number of paths to return. The server may return fewer
670
+ # items than requested. If unspecified, the server will pick an appropriate
671
+ # default.
672
+ # @param page_token [::String]
673
+ # Optional. Page token received from a previous `QueryTeamFolderContents`
674
+ # call. Provide this to retrieve the subsequent page.
675
+ #
676
+ # When paginating, all other parameters provided to
677
+ # `QueryTeamFolderContents`, with the exception of `page_size`, must match
678
+ # the call that provided the page token.
679
+ # @param order_by [::String]
680
+ # Optional. Field to additionally sort results by.
681
+ # Will order Folders before Repositories, and then by `order_by` in ascending
682
+ # order. Supported keywords: `display_name` (default), `create_time`,
683
+ # last_modified_time.
684
+ # Examples:
685
+ #
686
+ # * `orderBy="display_name"`
687
+ # * `orderBy="display_name desc"`
688
+ # @param filter [::String]
689
+ # Optional. Optional filtering for the returned list. Filtering is currently
690
+ # only supported on the `display_name` field.
691
+ #
692
+ # Example:
693
+ #
694
+ # * `filter="display_name="MyFolder""`
695
+ # @yield [result, operation] Access the result along with the TransportOperation object
696
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
697
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
698
+ #
699
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
700
+ #
701
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
702
+ #
703
+ # @example Basic example
704
+ # require "google/cloud/dataform/v1beta1"
705
+ #
706
+ # # Create a client object. The client can be reused for multiple calls.
707
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
708
+ #
709
+ # # Create a request. To set request fields, pass in keyword arguments.
710
+ # request = Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest.new
711
+ #
712
+ # # Call the query_team_folder_contents method.
713
+ # result = client.query_team_folder_contents request
714
+ #
715
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
716
+ # # over elements, and API calls will be issued to fetch pages as needed.
717
+ # result.each do |item|
718
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry.
719
+ # p item
720
+ # end
721
+ #
722
+ def query_team_folder_contents request, options = nil
723
+ raise ::ArgumentError, "request must be provided" if request.nil?
724
+
725
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest
726
+
727
+ # Converts hash and nil to an options object
728
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
729
+
730
+ # Customize the options with defaults
731
+ call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h
732
+
733
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
734
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
735
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
736
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
737
+ transports_version_send: [:rest]
738
+
739
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
740
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
741
+
742
+ options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout,
743
+ metadata: call_metadata,
744
+ retry_policy: @config.rpcs.query_team_folder_contents.retry_policy
745
+
746
+ options.apply_defaults timeout: @config.timeout,
747
+ metadata: @config.metadata,
748
+ retry_policy: @config.retry_policy
749
+
750
+ @dataform_stub.query_team_folder_contents request, options do |result, operation|
751
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options
752
+ yield result, operation if block_given?
753
+ throw :response, result
754
+ end
755
+ rescue ::Gapic::Rest::Error => e
756
+ raise ::Google::Cloud::Error.from_error(e)
757
+ end
758
+
759
+ ##
760
+ # Returns all TeamFolders in a given location that the caller has access to
761
+ # and match the provided filter.
762
+ #
763
+ # @overload search_team_folders(request, options = nil)
764
+ # Pass arguments to `search_team_folders` via a request object, either of type
765
+ # {::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest} or an equivalent Hash.
766
+ #
767
+ # @param request [::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest, ::Hash]
768
+ # A request object representing the call parameters. Required. To specify no
769
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
770
+ # @param options [::Gapic::CallOptions, ::Hash]
771
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
772
+ #
773
+ # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
774
+ # Pass arguments to `search_team_folders` via keyword arguments. Note that at
775
+ # least one keyword argument is required. To specify no parameters, or to keep all
776
+ # the default parameter values, pass an empty Hash as a request object (see above).
777
+ #
778
+ # @param location [::String]
779
+ # Required. Location in which to query TeamFolders.
780
+ # Format: `projects/*/locations/*`.
781
+ # @param page_size [::Integer]
782
+ # Optional. Maximum number of `TeamFolders` to return. The server may return
783
+ # fewer items than requested. If unspecified, the server will pick a default
784
+ # of `page_size` = 50.
785
+ # @param page_token [::String]
786
+ # Optional. Page token received from a previous `SearchTeamFolders` call.
787
+ # Provide this to retrieve the subsequent page.
788
+ #
789
+ # When paginating, all other parameters provided to
790
+ # `SearchTeamFolders`, with the exception of `page_size`, must
791
+ # match the call that provided the page token.
792
+ # @param order_by [::String]
793
+ # Optional. Field to additionally sort results by.
794
+ # Supported keywords: `display_name` (default), `create_time`,
795
+ # `last_modified_time`. Examples:
796
+ #
797
+ # * `orderBy="display_name"`
798
+ # * `orderBy="display_name desc"`
799
+ # @param filter [::String]
800
+ # Optional. Optional filtering for the returned list. Filtering is currently
801
+ # only supported on the `display_name` field.
802
+ #
803
+ # Example:
804
+ #
805
+ # * `filter="display_name="MyFolder""`
806
+ # @yield [result, operation] Access the result along with the TransportOperation object
807
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
808
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
809
+ #
810
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
811
+ #
812
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
813
+ #
814
+ # @example Basic example
815
+ # require "google/cloud/dataform/v1beta1"
816
+ #
817
+ # # Create a client object. The client can be reused for multiple calls.
818
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
819
+ #
820
+ # # Create a request. To set request fields, pass in keyword arguments.
821
+ # request = Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest.new
822
+ #
823
+ # # Call the search_team_folders method.
824
+ # result = client.search_team_folders request
825
+ #
826
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
827
+ # # over elements, and API calls will be issued to fetch pages as needed.
828
+ # result.each do |item|
829
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult.
830
+ # p item
831
+ # end
832
+ #
833
+ def search_team_folders request, options = nil
834
+ raise ::ArgumentError, "request must be provided" if request.nil?
835
+
836
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest
837
+
838
+ # Converts hash and nil to an options object
839
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
840
+
841
+ # Customize the options with defaults
842
+ call_metadata = @config.rpcs.search_team_folders.metadata.to_h
843
+
844
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
845
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
846
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
847
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
848
+ transports_version_send: [:rest]
849
+
850
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
851
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
+
853
+ options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout,
854
+ metadata: call_metadata,
855
+ retry_policy: @config.rpcs.search_team_folders.retry_policy
856
+
857
+ options.apply_defaults timeout: @config.timeout,
858
+ metadata: @config.metadata,
859
+ retry_policy: @config.retry_policy
860
+
861
+ @dataform_stub.search_team_folders request, options do |result, operation|
862
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options
863
+ yield result, operation if block_given?
864
+ throw :response, result
865
+ end
866
+ rescue ::Gapic::Rest::Error => e
867
+ raise ::Google::Cloud::Error.from_error(e)
868
+ end
869
+
870
+ ##
871
+ # Fetches a single Folder.
872
+ #
873
+ # @overload get_folder(request, options = nil)
874
+ # Pass arguments to `get_folder` via a request object, either of type
875
+ # {::Google::Cloud::Dataform::V1beta1::GetFolderRequest} or an equivalent Hash.
876
+ #
877
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetFolderRequest, ::Hash]
878
+ # A request object representing the call parameters. Required. To specify no
879
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
880
+ # @param options [::Gapic::CallOptions, ::Hash]
881
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
882
+ #
883
+ # @overload get_folder(name: nil)
884
+ # Pass arguments to `get_folder` via keyword arguments. Note that at
885
+ # least one keyword argument is required. To specify no parameters, or to keep all
886
+ # the default parameter values, pass an empty Hash as a request object (see above).
887
+ #
888
+ # @param name [::String]
889
+ # Required. The Folder's name.
890
+ # @yield [result, operation] Access the result along with the TransportOperation object
891
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Folder]
892
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
893
+ #
894
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
895
+ #
896
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
897
+ #
898
+ # @example Basic example
899
+ # require "google/cloud/dataform/v1beta1"
900
+ #
901
+ # # Create a client object. The client can be reused for multiple calls.
902
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
903
+ #
904
+ # # Create a request. To set request fields, pass in keyword arguments.
905
+ # request = Google::Cloud::Dataform::V1beta1::GetFolderRequest.new
906
+ #
907
+ # # Call the get_folder method.
908
+ # result = client.get_folder request
909
+ #
910
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
911
+ # p result
912
+ #
913
+ def get_folder request, options = nil
914
+ raise ::ArgumentError, "request must be provided" if request.nil?
915
+
916
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetFolderRequest
917
+
918
+ # Converts hash and nil to an options object
919
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
920
+
921
+ # Customize the options with defaults
922
+ call_metadata = @config.rpcs.get_folder.metadata.to_h
923
+
924
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
925
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
926
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
927
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
928
+ transports_version_send: [:rest]
929
+
930
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
931
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
932
+
933
+ options.apply_defaults timeout: @config.rpcs.get_folder.timeout,
934
+ metadata: call_metadata,
935
+ retry_policy: @config.rpcs.get_folder.retry_policy
936
+
937
+ options.apply_defaults timeout: @config.timeout,
938
+ metadata: @config.metadata,
939
+ retry_policy: @config.retry_policy
940
+
941
+ @dataform_stub.get_folder request, options do |result, operation|
942
+ yield result, operation if block_given?
943
+ end
944
+ rescue ::Gapic::Rest::Error => e
945
+ raise ::Google::Cloud::Error.from_error(e)
946
+ end
947
+
948
+ ##
949
+ # Creates a new Folder in a given project and location.
950
+ #
951
+ # @overload create_folder(request, options = nil)
952
+ # Pass arguments to `create_folder` via a request object, either of type
953
+ # {::Google::Cloud::Dataform::V1beta1::CreateFolderRequest} or an equivalent Hash.
954
+ #
955
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateFolderRequest, ::Hash]
956
+ # A request object representing the call parameters. Required. To specify no
957
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
958
+ # @param options [::Gapic::CallOptions, ::Hash]
959
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
960
+ #
961
+ # @overload create_folder(parent: nil, folder: nil, folder_id: nil)
962
+ # Pass arguments to `create_folder` via keyword arguments. Note that at
963
+ # least one keyword argument is required. To specify no parameters, or to keep all
964
+ # the default parameter values, pass an empty Hash as a request object (see above).
965
+ #
966
+ # @param parent [::String]
967
+ # Required. The location in which to create the Folder. Must be in the format
968
+ # `projects/*/locations/*`.
969
+ # @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
970
+ # Required. The Folder to create.
971
+ # @param folder_id [::String]
972
+ # Deprecated: This field is not used. The resource name is generated
973
+ # automatically.
974
+ # The ID to use for the Folder, which will become the final component of
975
+ # the Folder's resource name.
976
+ # @yield [result, operation] Access the result along with the TransportOperation object
977
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Folder]
978
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
979
+ #
980
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
981
+ #
982
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
983
+ #
984
+ # @example Basic example
985
+ # require "google/cloud/dataform/v1beta1"
986
+ #
987
+ # # Create a client object. The client can be reused for multiple calls.
988
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
989
+ #
990
+ # # Create a request. To set request fields, pass in keyword arguments.
991
+ # request = Google::Cloud::Dataform::V1beta1::CreateFolderRequest.new
992
+ #
993
+ # # Call the create_folder method.
994
+ # result = client.create_folder request
995
+ #
996
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
997
+ # p result
998
+ #
999
+ def create_folder request, options = nil
1000
+ raise ::ArgumentError, "request must be provided" if request.nil?
1001
+
1002
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateFolderRequest
1003
+
1004
+ # Converts hash and nil to an options object
1005
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1006
+
1007
+ # Customize the options with defaults
1008
+ call_metadata = @config.rpcs.create_folder.metadata.to_h
1009
+
1010
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1011
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1012
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1013
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1014
+ transports_version_send: [:rest]
1015
+
1016
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1017
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1018
+
1019
+ options.apply_defaults timeout: @config.rpcs.create_folder.timeout,
1020
+ metadata: call_metadata,
1021
+ retry_policy: @config.rpcs.create_folder.retry_policy
1022
+
1023
+ options.apply_defaults timeout: @config.timeout,
1024
+ metadata: @config.metadata,
1025
+ retry_policy: @config.retry_policy
1026
+
1027
+ @dataform_stub.create_folder request, options do |result, operation|
1028
+ yield result, operation if block_given?
1029
+ end
1030
+ rescue ::Gapic::Rest::Error => e
1031
+ raise ::Google::Cloud::Error.from_error(e)
1032
+ end
1033
+
1034
+ ##
1035
+ # Updates a single Folder.
1036
+ #
1037
+ # @overload update_folder(request, options = nil)
1038
+ # Pass arguments to `update_folder` via a request object, either of type
1039
+ # {::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest} or an equivalent Hash.
1040
+ #
1041
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest, ::Hash]
1042
+ # A request object representing the call parameters. Required. To specify no
1043
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1044
+ # @param options [::Gapic::CallOptions, ::Hash]
1045
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1046
+ #
1047
+ # @overload update_folder(update_mask: nil, folder: nil)
1048
+ # Pass arguments to `update_folder` via keyword arguments. Note that at
1049
+ # least one keyword argument is required. To specify no parameters, or to keep all
1050
+ # the default parameter values, pass an empty Hash as a request object (see above).
1051
+ #
1052
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1053
+ # Optional. Specifies the fields to be updated in the Folder. If left unset,
1054
+ # all fields that can be updated, will be updated. A few fields cannot be
1055
+ # updated and will be ignored if specified in the update_mask (e.g.
1056
+ # parent_name, team_folder_name).
1057
+ # @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
1058
+ # Required. The updated Folder.
1059
+ # @yield [result, operation] Access the result along with the TransportOperation object
1060
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Folder]
1061
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1062
+ #
1063
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
1064
+ #
1065
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1066
+ #
1067
+ # @example Basic example
1068
+ # require "google/cloud/dataform/v1beta1"
1069
+ #
1070
+ # # Create a client object. The client can be reused for multiple calls.
1071
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1072
+ #
1073
+ # # Create a request. To set request fields, pass in keyword arguments.
1074
+ # request = Google::Cloud::Dataform::V1beta1::UpdateFolderRequest.new
1075
+ #
1076
+ # # Call the update_folder method.
1077
+ # result = client.update_folder request
1078
+ #
1079
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
1080
+ # p result
1081
+ #
1082
+ def update_folder request, options = nil
1083
+ raise ::ArgumentError, "request must be provided" if request.nil?
1084
+
1085
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest
1086
+
1087
+ # Converts hash and nil to an options object
1088
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1089
+
1090
+ # Customize the options with defaults
1091
+ call_metadata = @config.rpcs.update_folder.metadata.to_h
1092
+
1093
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1094
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1095
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1096
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1097
+ transports_version_send: [:rest]
1098
+
1099
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1100
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1101
+
1102
+ options.apply_defaults timeout: @config.rpcs.update_folder.timeout,
1103
+ metadata: call_metadata,
1104
+ retry_policy: @config.rpcs.update_folder.retry_policy
1105
+
1106
+ options.apply_defaults timeout: @config.timeout,
1107
+ metadata: @config.metadata,
1108
+ retry_policy: @config.retry_policy
1109
+
1110
+ @dataform_stub.update_folder request, options do |result, operation|
1111
+ yield result, operation if block_given?
1112
+ end
1113
+ rescue ::Gapic::Rest::Error => e
1114
+ raise ::Google::Cloud::Error.from_error(e)
1115
+ end
1116
+
1117
+ ##
1118
+ # Deletes a single Folder.
1119
+ #
1120
+ # @overload delete_folder(request, options = nil)
1121
+ # Pass arguments to `delete_folder` via a request object, either of type
1122
+ # {::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest} or an equivalent Hash.
1123
+ #
1124
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest, ::Hash]
1125
+ # A request object representing the call parameters. Required. To specify no
1126
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1127
+ # @param options [::Gapic::CallOptions, ::Hash]
1128
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1129
+ #
1130
+ # @overload delete_folder(name: nil)
1131
+ # Pass arguments to `delete_folder` via keyword arguments. Note that at
1132
+ # least one keyword argument is required. To specify no parameters, or to keep all
1133
+ # the default parameter values, pass an empty Hash as a request object (see above).
1134
+ #
1135
+ # @param name [::String]
1136
+ # Required. The Folder's name.
1137
+ # @yield [result, operation] Access the result along with the TransportOperation object
1138
+ # @yieldparam result [::Google::Protobuf::Empty]
1139
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1140
+ #
1141
+ # @return [::Google::Protobuf::Empty]
1142
+ #
1143
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1144
+ #
1145
+ # @example Basic example
1146
+ # require "google/cloud/dataform/v1beta1"
1147
+ #
1148
+ # # Create a client object. The client can be reused for multiple calls.
1149
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1150
+ #
1151
+ # # Create a request. To set request fields, pass in keyword arguments.
1152
+ # request = Google::Cloud::Dataform::V1beta1::DeleteFolderRequest.new
1153
+ #
1154
+ # # Call the delete_folder method.
1155
+ # result = client.delete_folder request
1156
+ #
1157
+ # # The returned object is of type Google::Protobuf::Empty.
1158
+ # p result
1159
+ #
1160
+ def delete_folder request, options = nil
1161
+ raise ::ArgumentError, "request must be provided" if request.nil?
1162
+
1163
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest
1164
+
1165
+ # Converts hash and nil to an options object
1166
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1167
+
1168
+ # Customize the options with defaults
1169
+ call_metadata = @config.rpcs.delete_folder.metadata.to_h
1170
+
1171
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1172
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1173
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1174
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1175
+ transports_version_send: [:rest]
1176
+
1177
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1178
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1179
+
1180
+ options.apply_defaults timeout: @config.rpcs.delete_folder.timeout,
1181
+ metadata: call_metadata,
1182
+ retry_policy: @config.rpcs.delete_folder.retry_policy
1183
+
1184
+ options.apply_defaults timeout: @config.timeout,
1185
+ metadata: @config.metadata,
1186
+ retry_policy: @config.retry_policy
1187
+
1188
+ @dataform_stub.delete_folder request, options do |result, operation|
1189
+ yield result, operation if block_given?
1190
+ end
1191
+ rescue ::Gapic::Rest::Error => e
1192
+ raise ::Google::Cloud::Error.from_error(e)
1193
+ end
1194
+
1195
+ ##
1196
+ # Deletes a Folder with its contents (Folders, Repositories, Workspaces,
1197
+ # ReleaseConfigs, and WorkflowConfigs).
1198
+ #
1199
+ # @overload delete_folder_tree(request, options = nil)
1200
+ # Pass arguments to `delete_folder_tree` via a request object, either of type
1201
+ # {::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest} or an equivalent Hash.
1202
+ #
1203
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest, ::Hash]
1204
+ # A request object representing the call parameters. Required. To specify no
1205
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1206
+ # @param options [::Gapic::CallOptions, ::Hash]
1207
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1208
+ #
1209
+ # @overload delete_folder_tree(name: nil, force: nil)
1210
+ # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at
1211
+ # least one keyword argument is required. To specify no parameters, or to keep all
1212
+ # the default parameter values, pass an empty Hash as a request object (see above).
1213
+ #
1214
+ # @param name [::String]
1215
+ # Required. The Folder's name.
1216
+ # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder}
1217
+ # @param force [::Boolean]
1218
+ # Optional. If `false` (default): The operation will fail if any
1219
+ # Repository within the folder hierarchy has associated Release Configs or
1220
+ # Workflow Configs.
1221
+ #
1222
+ # If `true`: The operation will attempt to delete everything, including any
1223
+ # Release Configs and Workflow Configs linked to Repositories within the
1224
+ # folder hierarchy. This permanently removes schedules and resources.
1225
+ # @yield [result, operation] Access the result along with the TransportOperation object
1226
+ # @yieldparam result [::Gapic::Operation]
1227
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1228
+ #
1229
+ # @return [::Gapic::Operation]
1230
+ #
1231
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1232
+ #
1233
+ # @example Basic example
1234
+ # require "google/cloud/dataform/v1beta1"
1235
+ #
1236
+ # # Create a client object. The client can be reused for multiple calls.
1237
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1238
+ #
1239
+ # # Create a request. To set request fields, pass in keyword arguments.
1240
+ # request = Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest.new
1241
+ #
1242
+ # # Call the delete_folder_tree method.
1243
+ # result = client.delete_folder_tree request
1244
+ #
1245
+ # # The returned object is of type Gapic::Operation. You can use it to
1246
+ # # check the status of an operation, cancel it, or wait for results.
1247
+ # # Here is how to wait for a response.
1248
+ # result.wait_until_done! timeout: 60
1249
+ # if result.response?
1250
+ # p result.response
1251
+ # else
1252
+ # puts "No response received."
1253
+ # end
1254
+ #
1255
+ def delete_folder_tree request, options = nil
1256
+ raise ::ArgumentError, "request must be provided" if request.nil?
1257
+
1258
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest
1259
+
1260
+ # Converts hash and nil to an options object
1261
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1262
+
1263
+ # Customize the options with defaults
1264
+ call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h
1265
+
1266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1267
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1268
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1269
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1270
+ transports_version_send: [:rest]
1271
+
1272
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1273
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1274
+
1275
+ options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout,
1276
+ metadata: call_metadata,
1277
+ retry_policy: @config.rpcs.delete_folder_tree.retry_policy
1278
+
1279
+ options.apply_defaults timeout: @config.timeout,
1280
+ metadata: @config.metadata,
1281
+ retry_policy: @config.retry_policy
1282
+
1283
+ @dataform_stub.delete_folder_tree request, options do |result, operation|
1284
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1285
+ yield result, operation if block_given?
1286
+ throw :response, result
1287
+ end
1288
+ rescue ::Gapic::Rest::Error => e
1289
+ raise ::Google::Cloud::Error.from_error(e)
1290
+ end
1291
+
1292
+ ##
1293
+ # Returns the contents of a given Folder.
1294
+ #
1295
+ # @overload query_folder_contents(request, options = nil)
1296
+ # Pass arguments to `query_folder_contents` via a request object, either of type
1297
+ # {::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest} or an equivalent Hash.
1298
+ #
1299
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest, ::Hash]
1300
+ # A request object representing the call parameters. Required. To specify no
1301
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1302
+ # @param options [::Gapic::CallOptions, ::Hash]
1303
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1304
+ #
1305
+ # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
1306
+ # Pass arguments to `query_folder_contents` via keyword arguments. Note that at
1307
+ # least one keyword argument is required. To specify no parameters, or to keep all
1308
+ # the default parameter values, pass an empty Hash as a request object (see above).
1309
+ #
1310
+ # @param folder [::String]
1311
+ # Required. Resource name of the Folder to list contents for.
1312
+ # Format: projects/*/locations/*/folders/*
1313
+ # @param page_size [::Integer]
1314
+ # Optional. Maximum number of paths to return. The server may return fewer
1315
+ # items than requested. If unspecified, the server will pick an appropriate
1316
+ # default.
1317
+ # @param page_token [::String]
1318
+ # Optional. Page token received from a previous `QueryFolderContents` call.
1319
+ # Provide this to retrieve the subsequent page.
1320
+ #
1321
+ # When paginating, all other parameters provided to
1322
+ # `QueryFolderContents`, with the exception of `page_size`, must match the
1323
+ # call that provided the page token.
1324
+ # @param order_by [::String]
1325
+ # Optional. Field to additionally sort results by.
1326
+ # Will order Folders before Repositories, and then by `order_by` in ascending
1327
+ # order. Supported keywords: display_name (default), create_time,
1328
+ # last_modified_time.
1329
+ # Examples:
1330
+ #
1331
+ # * `orderBy="display_name"`
1332
+ # * `orderBy="display_name desc"`
1333
+ # @param filter [::String]
1334
+ # Optional. Optional filtering for the returned list. Filtering is currently
1335
+ # only supported on the `display_name` field.
1336
+ #
1337
+ # Example:
1338
+ #
1339
+ # * `filter="display_name="MyFolder""`
1340
+ # @yield [result, operation] Access the result along with the TransportOperation object
1341
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
1342
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1343
+ #
1344
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
1345
+ #
1346
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1347
+ #
1348
+ # @example Basic example
1349
+ # require "google/cloud/dataform/v1beta1"
1350
+ #
1351
+ # # Create a client object. The client can be reused for multiple calls.
1352
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1353
+ #
1354
+ # # Create a request. To set request fields, pass in keyword arguments.
1355
+ # request = Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest.new
1356
+ #
1357
+ # # Call the query_folder_contents method.
1358
+ # result = client.query_folder_contents request
1359
+ #
1360
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1361
+ # # over elements, and API calls will be issued to fetch pages as needed.
1362
+ # result.each do |item|
1363
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry.
1364
+ # p item
1365
+ # end
1366
+ #
1367
+ def query_folder_contents request, options = nil
1368
+ raise ::ArgumentError, "request must be provided" if request.nil?
1369
+
1370
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest
1371
+
1372
+ # Converts hash and nil to an options object
1373
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1374
+
1375
+ # Customize the options with defaults
1376
+ call_metadata = @config.rpcs.query_folder_contents.metadata.to_h
1377
+
1378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1379
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1380
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1381
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1382
+ transports_version_send: [:rest]
1383
+
1384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1385
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1386
+
1387
+ options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout,
1388
+ metadata: call_metadata,
1389
+ retry_policy: @config.rpcs.query_folder_contents.retry_policy
1390
+
1391
+ options.apply_defaults timeout: @config.timeout,
1392
+ metadata: @config.metadata,
1393
+ retry_policy: @config.retry_policy
1394
+
1395
+ @dataform_stub.query_folder_contents request, options do |result, operation|
1396
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options
1397
+ yield result, operation if block_given?
1398
+ throw :response, result
1399
+ end
1400
+ rescue ::Gapic::Rest::Error => e
1401
+ raise ::Google::Cloud::Error.from_error(e)
1402
+ end
1403
+
1404
+ ##
1405
+ # Returns the contents of a caller's root folder in a given location.
1406
+ # The root folder contains all resources that are created by the user and not
1407
+ # contained in any other folder.
1408
+ #
1409
+ # @overload query_user_root_contents(request, options = nil)
1410
+ # Pass arguments to `query_user_root_contents` via a request object, either of type
1411
+ # {::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest} or an equivalent Hash.
1412
+ #
1413
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest, ::Hash]
1414
+ # A request object representing the call parameters. Required. To specify no
1415
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1416
+ # @param options [::Gapic::CallOptions, ::Hash]
1417
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1418
+ #
1419
+ # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
1420
+ # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at
1421
+ # least one keyword argument is required. To specify no parameters, or to keep all
1422
+ # the default parameter values, pass an empty Hash as a request object (see above).
1423
+ #
1424
+ # @param location [::String]
1425
+ # Required. Location of the user root folder to list contents for.
1426
+ # Format: projects/*/locations/*
1427
+ # @param page_size [::Integer]
1428
+ # Optional. Maximum number of paths to return. The server may return fewer
1429
+ # items than requested. If unspecified, the server will pick an appropriate
1430
+ # default.
1431
+ # @param page_token [::String]
1432
+ # Optional. Page token received from a previous `QueryUserRootContents` call.
1433
+ # Provide this to retrieve the subsequent page.
1434
+ #
1435
+ # When paginating, all other parameters provided to
1436
+ # `QueryUserRootFolderContents`, with the exception of `page_size`, must
1437
+ # match the call that provided the page token.
1438
+ # @param order_by [::String]
1439
+ # Optional. Field to additionally sort results by.
1440
+ # Will order Folders before Repositories, and then by `order_by` in ascending
1441
+ # order. Supported keywords: display_name (default), created_at,
1442
+ # last_modified_at. Examples:
1443
+ #
1444
+ # * `orderBy="display_name"`
1445
+ # * `orderBy="display_name desc"`
1446
+ # @param filter [::String]
1447
+ # Optional. Optional filtering for the returned list. Filtering is currently
1448
+ # only supported on the `display_name` field.
1449
+ #
1450
+ # Example:
1451
+ #
1452
+ # * `filter="display_name="MyFolder""`
1453
+ # @yield [result, operation] Access the result along with the TransportOperation object
1454
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
1455
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1456
+ #
1457
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
1458
+ #
1459
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1460
+ #
1461
+ # @example Basic example
1462
+ # require "google/cloud/dataform/v1beta1"
1463
+ #
1464
+ # # Create a client object. The client can be reused for multiple calls.
1465
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1466
+ #
1467
+ # # Create a request. To set request fields, pass in keyword arguments.
1468
+ # request = Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest.new
1469
+ #
1470
+ # # Call the query_user_root_contents method.
1471
+ # result = client.query_user_root_contents request
1472
+ #
1473
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1474
+ # # over elements, and API calls will be issued to fetch pages as needed.
1475
+ # result.each do |item|
1476
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry.
1477
+ # p item
1478
+ # end
1479
+ #
1480
+ def query_user_root_contents request, options = nil
1481
+ raise ::ArgumentError, "request must be provided" if request.nil?
1482
+
1483
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest
169
1484
 
170
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
171
- config.credentials = credentials
172
- config.quota_project = @quota_project_id
173
- config.endpoint = @dataform_stub.endpoint
174
- config.universe_domain = @dataform_stub.universe_domain
175
- config.bindings_override = @config.bindings_override
176
- config.logger = @dataform_stub.logger if config.respond_to? :logger=
177
- end
1485
+ # Converts hash and nil to an options object
1486
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
178
1487
 
179
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
180
- config.credentials = credentials
181
- config.quota_project = @quota_project_id
182
- config.endpoint = @dataform_stub.endpoint
183
- config.universe_domain = @dataform_stub.universe_domain
184
- config.bindings_override = @config.bindings_override
185
- config.logger = @dataform_stub.logger if config.respond_to? :logger=
1488
+ # Customize the options with defaults
1489
+ call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h
1490
+
1491
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1492
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1493
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1494
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1495
+ transports_version_send: [:rest]
1496
+
1497
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1498
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1499
+
1500
+ options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout,
1501
+ metadata: call_metadata,
1502
+ retry_policy: @config.rpcs.query_user_root_contents.retry_policy
1503
+
1504
+ options.apply_defaults timeout: @config.timeout,
1505
+ metadata: @config.metadata,
1506
+ retry_policy: @config.retry_policy
1507
+
1508
+ @dataform_stub.query_user_root_contents request, options do |result, operation|
1509
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options
1510
+ yield result, operation if block_given?
1511
+ throw :response, result
186
1512
  end
1513
+ rescue ::Gapic::Rest::Error => e
1514
+ raise ::Google::Cloud::Error.from_error(e)
187
1515
  end
188
1516
 
189
1517
  ##
190
- # Get the associated client for mix-in of the Locations.
1518
+ # Moves a Folder to a new Folder, TeamFolder, or the root location.
191
1519
  #
192
- # @return [Google::Cloud::Location::Locations::Rest::Client]
1520
+ # @overload move_folder(request, options = nil)
1521
+ # Pass arguments to `move_folder` via a request object, either of type
1522
+ # {::Google::Cloud::Dataform::V1beta1::MoveFolderRequest} or an equivalent Hash.
193
1523
  #
194
- attr_reader :location_client
195
-
196
- ##
197
- # Get the associated client for mix-in of the IAMPolicy.
1524
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveFolderRequest, ::Hash]
1525
+ # A request object representing the call parameters. Required. To specify no
1526
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1527
+ # @param options [::Gapic::CallOptions, ::Hash]
1528
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
198
1529
  #
199
- # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
1530
+ # @overload move_folder(name: nil, destination_containing_folder: nil)
1531
+ # Pass arguments to `move_folder` via keyword arguments. Note that at
1532
+ # least one keyword argument is required. To specify no parameters, or to keep all
1533
+ # the default parameter values, pass an empty Hash as a request object (see above).
200
1534
  #
201
- attr_reader :iam_policy_client
202
-
203
- ##
204
- # The logger used for request/response debug logging.
1535
+ # @param name [::String]
1536
+ # Required. The full resource name of the Folder to move.
1537
+ # @param destination_containing_folder [::String]
1538
+ # Optional. The name of the Folder, TeamFolder, or root location to move the
1539
+ # Folder to. Can be in the format of: "" to move into the root User folder,
1540
+ # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
1541
+ # @yield [result, operation] Access the result along with the TransportOperation object
1542
+ # @yieldparam result [::Gapic::Operation]
1543
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
205
1544
  #
206
- # @return [Logger]
1545
+ # @return [::Gapic::Operation]
207
1546
  #
208
- def logger
209
- @dataform_stub.logger
210
- end
1547
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1548
+ #
1549
+ # @example Basic example
1550
+ # require "google/cloud/dataform/v1beta1"
1551
+ #
1552
+ # # Create a client object. The client can be reused for multiple calls.
1553
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1554
+ #
1555
+ # # Create a request. To set request fields, pass in keyword arguments.
1556
+ # request = Google::Cloud::Dataform::V1beta1::MoveFolderRequest.new
1557
+ #
1558
+ # # Call the move_folder method.
1559
+ # result = client.move_folder request
1560
+ #
1561
+ # # The returned object is of type Gapic::Operation. You can use it to
1562
+ # # check the status of an operation, cancel it, or wait for results.
1563
+ # # Here is how to wait for a response.
1564
+ # result.wait_until_done! timeout: 60
1565
+ # if result.response?
1566
+ # p result.response
1567
+ # else
1568
+ # puts "No response received."
1569
+ # end
1570
+ #
1571
+ def move_folder request, options = nil
1572
+ raise ::ArgumentError, "request must be provided" if request.nil?
211
1573
 
212
- # Service calls
1574
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFolderRequest
1575
+
1576
+ # Converts hash and nil to an options object
1577
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1578
+
1579
+ # Customize the options with defaults
1580
+ call_metadata = @config.rpcs.move_folder.metadata.to_h
1581
+
1582
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1583
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1584
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1585
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1586
+ transports_version_send: [:rest]
1587
+
1588
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1589
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1590
+
1591
+ options.apply_defaults timeout: @config.rpcs.move_folder.timeout,
1592
+ metadata: call_metadata,
1593
+ retry_policy: @config.rpcs.move_folder.retry_policy
1594
+
1595
+ options.apply_defaults timeout: @config.timeout,
1596
+ metadata: @config.metadata,
1597
+ retry_policy: @config.retry_policy
1598
+
1599
+ @dataform_stub.move_folder request, options do |result, operation|
1600
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1601
+ yield result, operation if block_given?
1602
+ throw :response, result
1603
+ end
1604
+ rescue ::Gapic::Rest::Error => e
1605
+ raise ::Google::Cloud::Error.from_error(e)
1606
+ end
213
1607
 
214
1608
  ##
215
1609
  # Lists Repositories in a given project and location.
@@ -577,22 +1971,204 @@ module Google
577
1971
  # @param options [::Gapic::CallOptions, ::Hash]
578
1972
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
579
1973
  #
580
- # @overload delete_repository(name: nil, force: nil)
581
- # Pass arguments to `delete_repository` via keyword arguments. Note that at
1974
+ # @overload delete_repository(name: nil, force: nil)
1975
+ # Pass arguments to `delete_repository` via keyword arguments. Note that at
1976
+ # least one keyword argument is required. To specify no parameters, or to keep all
1977
+ # the default parameter values, pass an empty Hash as a request object (see above).
1978
+ #
1979
+ # @param name [::String]
1980
+ # Required. The repository's name.
1981
+ # @param force [::Boolean]
1982
+ # Optional. If set to true, child resources of this repository (compilation
1983
+ # results and workflow invocations) will also be deleted. Otherwise, the
1984
+ # request will only succeed if the repository has no child resources.
1985
+ #
1986
+ # **Note:** *This flag doesn't support deletion of workspaces, release
1987
+ # configs or workflow configs. If any of such resources exists in the
1988
+ # repository, the request will fail.*.
1989
+ # @yield [result, operation] Access the result along with the TransportOperation object
1990
+ # @yieldparam result [::Google::Protobuf::Empty]
1991
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1992
+ #
1993
+ # @return [::Google::Protobuf::Empty]
1994
+ #
1995
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1996
+ #
1997
+ # @example Basic example
1998
+ # require "google/cloud/dataform/v1beta1"
1999
+ #
2000
+ # # Create a client object. The client can be reused for multiple calls.
2001
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2002
+ #
2003
+ # # Create a request. To set request fields, pass in keyword arguments.
2004
+ # request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest.new
2005
+ #
2006
+ # # Call the delete_repository method.
2007
+ # result = client.delete_repository request
2008
+ #
2009
+ # # The returned object is of type Google::Protobuf::Empty.
2010
+ # p result
2011
+ #
2012
+ def delete_repository request, options = nil
2013
+ raise ::ArgumentError, "request must be provided" if request.nil?
2014
+
2015
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
2016
+
2017
+ # Converts hash and nil to an options object
2018
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2019
+
2020
+ # Customize the options with defaults
2021
+ call_metadata = @config.rpcs.delete_repository.metadata.to_h
2022
+
2023
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2024
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2025
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2026
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2027
+ transports_version_send: [:rest]
2028
+
2029
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2030
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2031
+
2032
+ options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
2033
+ metadata: call_metadata,
2034
+ retry_policy: @config.rpcs.delete_repository.retry_policy
2035
+
2036
+ options.apply_defaults timeout: @config.timeout,
2037
+ metadata: @config.metadata,
2038
+ retry_policy: @config.retry_policy
2039
+
2040
+ @dataform_stub.delete_repository request, options do |result, operation|
2041
+ yield result, operation if block_given?
2042
+ end
2043
+ rescue ::Gapic::Rest::Error => e
2044
+ raise ::Google::Cloud::Error.from_error(e)
2045
+ end
2046
+
2047
+ ##
2048
+ # Deletes a single repository asynchronously.
2049
+ #
2050
+ # @overload delete_repository_long_running(request, options = nil)
2051
+ # Pass arguments to `delete_repository_long_running` via a request object, either of type
2052
+ # {::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest} or an equivalent Hash.
2053
+ #
2054
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest, ::Hash]
2055
+ # A request object representing the call parameters. Required. To specify no
2056
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2057
+ # @param options [::Gapic::CallOptions, ::Hash]
2058
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2059
+ #
2060
+ # @overload delete_repository_long_running(name: nil, force: nil)
2061
+ # Pass arguments to `delete_repository_long_running` via keyword arguments. Note that at
2062
+ # least one keyword argument is required. To specify no parameters, or to keep all
2063
+ # the default parameter values, pass an empty Hash as a request object (see above).
2064
+ #
2065
+ # @param name [::String]
2066
+ # Required. The repository's name.
2067
+ # @param force [::Boolean]
2068
+ # Optional. If set to true, child resources of this repository (compilation
2069
+ # results and workflow invocations) will also be deleted. Otherwise, the
2070
+ # request will only succeed if the repository has no child resources.
2071
+ #
2072
+ # **Note:** *This flag doesn't support deletion of workspaces, release
2073
+ # configs or workflow configs. If any of such resources exists in the
2074
+ # repository, the request will fail.*
2075
+ # @yield [result, operation] Access the result along with the TransportOperation object
2076
+ # @yieldparam result [::Gapic::Operation]
2077
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2078
+ #
2079
+ # @return [::Gapic::Operation]
2080
+ #
2081
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2082
+ #
2083
+ # @example Basic example
2084
+ # require "google/cloud/dataform/v1beta1"
2085
+ #
2086
+ # # Create a client object. The client can be reused for multiple calls.
2087
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2088
+ #
2089
+ # # Create a request. To set request fields, pass in keyword arguments.
2090
+ # request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest.new
2091
+ #
2092
+ # # Call the delete_repository_long_running method.
2093
+ # result = client.delete_repository_long_running request
2094
+ #
2095
+ # # The returned object is of type Gapic::Operation. You can use it to
2096
+ # # check the status of an operation, cancel it, or wait for results.
2097
+ # # Here is how to wait for a response.
2098
+ # result.wait_until_done! timeout: 60
2099
+ # if result.response?
2100
+ # p result.response
2101
+ # else
2102
+ # puts "No response received."
2103
+ # end
2104
+ #
2105
+ def delete_repository_long_running request, options = nil
2106
+ raise ::ArgumentError, "request must be provided" if request.nil?
2107
+
2108
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest
2109
+
2110
+ # Converts hash and nil to an options object
2111
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2112
+
2113
+ # Customize the options with defaults
2114
+ call_metadata = @config.rpcs.delete_repository_long_running.metadata.to_h
2115
+
2116
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2117
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2118
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2119
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2120
+ transports_version_send: [:rest]
2121
+
2122
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2123
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2124
+
2125
+ options.apply_defaults timeout: @config.rpcs.delete_repository_long_running.timeout,
2126
+ metadata: call_metadata,
2127
+ retry_policy: @config.rpcs.delete_repository_long_running.retry_policy
2128
+
2129
+ options.apply_defaults timeout: @config.timeout,
2130
+ metadata: @config.metadata,
2131
+ retry_policy: @config.retry_policy
2132
+
2133
+ @dataform_stub.delete_repository_long_running request, options do |result, operation|
2134
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2135
+ yield result, operation if block_given?
2136
+ throw :response, result
2137
+ end
2138
+ rescue ::Gapic::Rest::Error => e
2139
+ raise ::Google::Cloud::Error.from_error(e)
2140
+ end
2141
+
2142
+ ##
2143
+ # Moves a Repository to a new location.
2144
+ #
2145
+ # @overload move_repository(request, options = nil)
2146
+ # Pass arguments to `move_repository` via a request object, either of type
2147
+ # {::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest} or an equivalent Hash.
2148
+ #
2149
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest, ::Hash]
2150
+ # A request object representing the call parameters. Required. To specify no
2151
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2152
+ # @param options [::Gapic::CallOptions, ::Hash]
2153
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2154
+ #
2155
+ # @overload move_repository(name: nil, destination_containing_folder: nil)
2156
+ # Pass arguments to `move_repository` via keyword arguments. Note that at
582
2157
  # least one keyword argument is required. To specify no parameters, or to keep all
583
2158
  # the default parameter values, pass an empty Hash as a request object (see above).
584
2159
  #
585
2160
  # @param name [::String]
586
- # Required. The repository's name.
587
- # @param force [::Boolean]
588
- # Optional. If set to true, any child resources of this repository will also
589
- # be deleted. (Otherwise, the request will only succeed if the repository has
590
- # no child resources.)
2161
+ # Required. The full resource name of the repository to move.
2162
+ # @param destination_containing_folder [::String]
2163
+ # Optional. The name of the Folder, TeamFolder, or root location to move the
2164
+ # repository to. Can be in the format of: "" to move into the root User
2165
+ # folder, `projects/*/locations/*/folders/*`,
2166
+ # `projects/*/locations/*/teamFolders/*`
591
2167
  # @yield [result, operation] Access the result along with the TransportOperation object
592
- # @yieldparam result [::Google::Protobuf::Empty]
2168
+ # @yieldparam result [::Gapic::Operation]
593
2169
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
594
2170
  #
595
- # @return [::Google::Protobuf::Empty]
2171
+ # @return [::Gapic::Operation]
596
2172
  #
597
2173
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
598
2174
  #
@@ -603,24 +2179,31 @@ module Google
603
2179
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
604
2180
  #
605
2181
  # # Create a request. To set request fields, pass in keyword arguments.
606
- # request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest.new
607
- #
608
- # # Call the delete_repository method.
609
- # result = client.delete_repository request
610
- #
611
- # # The returned object is of type Google::Protobuf::Empty.
612
- # p result
2182
+ # request = Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest.new
2183
+ #
2184
+ # # Call the move_repository method.
2185
+ # result = client.move_repository request
2186
+ #
2187
+ # # The returned object is of type Gapic::Operation. You can use it to
2188
+ # # check the status of an operation, cancel it, or wait for results.
2189
+ # # Here is how to wait for a response.
2190
+ # result.wait_until_done! timeout: 60
2191
+ # if result.response?
2192
+ # p result.response
2193
+ # else
2194
+ # puts "No response received."
2195
+ # end
613
2196
  #
614
- def delete_repository request, options = nil
2197
+ def move_repository request, options = nil
615
2198
  raise ::ArgumentError, "request must be provided" if request.nil?
616
2199
 
617
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
2200
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest
618
2201
 
619
2202
  # Converts hash and nil to an options object
620
2203
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
621
2204
 
622
2205
  # Customize the options with defaults
623
- call_metadata = @config.rpcs.delete_repository.metadata.to_h
2206
+ call_metadata = @config.rpcs.move_repository.metadata.to_h
624
2207
 
625
2208
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
2209
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -631,16 +2214,18 @@ module Google
631
2214
  call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
632
2215
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
633
2216
 
634
- options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
2217
+ options.apply_defaults timeout: @config.rpcs.move_repository.timeout,
635
2218
  metadata: call_metadata,
636
- retry_policy: @config.rpcs.delete_repository.retry_policy
2219
+ retry_policy: @config.rpcs.move_repository.retry_policy
637
2220
 
638
2221
  options.apply_defaults timeout: @config.timeout,
639
2222
  metadata: @config.metadata,
640
2223
  retry_policy: @config.retry_policy
641
2224
 
642
- @dataform_stub.delete_repository request, options do |result, operation|
2225
+ @dataform_stub.move_repository request, options do |result, operation|
2226
+ result = ::Gapic::Operation.new result, @operations_client, options: options
643
2227
  yield result, operation if block_given?
2228
+ throw :response, result
644
2229
  end
645
2230
  rescue ::Gapic::Rest::Error => e
646
2231
  raise ::Google::Cloud::Error.from_error(e)
@@ -2181,7 +3766,7 @@ module Google
2181
3766
  # @param options [::Gapic::CallOptions, ::Hash]
2182
3767
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2183
3768
  #
2184
- # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
3769
+ # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil)
2185
3770
  # Pass arguments to `query_directory_contents` via keyword arguments. Note that at
2186
3771
  # least one keyword argument is required. To specify no parameters, or to keep all
2187
3772
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2202,6 +3787,11 @@ module Google
2202
3787
  # When paginating, all other parameters provided to
2203
3788
  # `QueryDirectoryContents`, with the exception of `page_size`, must match the
2204
3789
  # call that provided the page token.
3790
+ # @param view [::Google::Cloud::Dataform::V1beta1::DirectoryContentsView]
3791
+ # Optional. Specifies the metadata to return for each directory entry.
3792
+ # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
3793
+ # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
3794
+ # CMEK-protected workspaces.
2205
3795
  # @yield [result, operation] Access the result along with the TransportOperation object
2206
3796
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
2207
3797
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -4823,6 +6413,273 @@ module Google
4823
6413
  raise ::Google::Cloud::Error.from_error(e)
4824
6414
  end
4825
6415
 
6416
+ ##
6417
+ # Gets the access control policy for a resource.
6418
+ # Returns an empty policy if the resource exists and does not have a policy
6419
+ # set.
6420
+ #
6421
+ # @overload get_iam_policy(request, options = nil)
6422
+ # Pass arguments to `get_iam_policy` via a request object, either of type
6423
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
6424
+ #
6425
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
6426
+ # A request object representing the call parameters. Required. To specify no
6427
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6428
+ # @param options [::Gapic::CallOptions, ::Hash]
6429
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6430
+ #
6431
+ # @overload get_iam_policy(resource: nil, options: nil)
6432
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
6433
+ # least one keyword argument is required. To specify no parameters, or to keep all
6434
+ # the default parameter values, pass an empty Hash as a request object (see above).
6435
+ #
6436
+ # @param resource [::String]
6437
+ # REQUIRED: The resource for which the policy is being requested.
6438
+ # See the operation documentation for the appropriate value for this field.
6439
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
6440
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
6441
+ # `GetIamPolicy`.
6442
+ # @yield [result, operation] Access the result along with the TransportOperation object
6443
+ # @yieldparam result [::Google::Iam::V1::Policy]
6444
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6445
+ #
6446
+ # @return [::Google::Iam::V1::Policy]
6447
+ #
6448
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6449
+ #
6450
+ # @example Basic example
6451
+ # require "google/cloud/dataform/v1beta1"
6452
+ #
6453
+ # # Create a client object. The client can be reused for multiple calls.
6454
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
6455
+ #
6456
+ # # Create a request. To set request fields, pass in keyword arguments.
6457
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
6458
+ #
6459
+ # # Call the get_iam_policy method.
6460
+ # result = client.get_iam_policy request
6461
+ #
6462
+ # # The returned object is of type Google::Iam::V1::Policy.
6463
+ # p result
6464
+ #
6465
+ def get_iam_policy request, options = nil
6466
+ raise ::ArgumentError, "request must be provided" if request.nil?
6467
+
6468
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
6469
+
6470
+ # Converts hash and nil to an options object
6471
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6472
+
6473
+ # Customize the options with defaults
6474
+ call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
6475
+
6476
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6477
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6478
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6479
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
6480
+ transports_version_send: [:rest]
6481
+
6482
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6483
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6484
+
6485
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
6486
+ metadata: call_metadata,
6487
+ retry_policy: @config.rpcs.get_iam_policy.retry_policy
6488
+
6489
+ options.apply_defaults timeout: @config.timeout,
6490
+ metadata: @config.metadata,
6491
+ retry_policy: @config.retry_policy
6492
+
6493
+ @dataform_stub.get_iam_policy request, options do |result, operation|
6494
+ yield result, operation if block_given?
6495
+ end
6496
+ rescue ::Gapic::Rest::Error => e
6497
+ raise ::Google::Cloud::Error.from_error(e)
6498
+ end
6499
+
6500
+ ##
6501
+ # Sets the access control policy on the specified resource. Replaces any
6502
+ # existing policy.
6503
+ #
6504
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
6505
+ #
6506
+ # @overload set_iam_policy(request, options = nil)
6507
+ # Pass arguments to `set_iam_policy` via a request object, either of type
6508
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
6509
+ #
6510
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
6511
+ # A request object representing the call parameters. Required. To specify no
6512
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6513
+ # @param options [::Gapic::CallOptions, ::Hash]
6514
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6515
+ #
6516
+ # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
6517
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
6518
+ # least one keyword argument is required. To specify no parameters, or to keep all
6519
+ # the default parameter values, pass an empty Hash as a request object (see above).
6520
+ #
6521
+ # @param resource [::String]
6522
+ # REQUIRED: The resource for which the policy is being specified.
6523
+ # See the operation documentation for the appropriate value for this field.
6524
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
6525
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
6526
+ # the policy is limited to a few 10s of KB. An empty policy is a
6527
+ # valid policy but certain Cloud Platform services (such as Projects)
6528
+ # might reject them.
6529
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
6530
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
6531
+ # the fields in the mask will be modified. If no mask is provided, the
6532
+ # following default mask is used:
6533
+ #
6534
+ # `paths: "bindings, etag"`
6535
+ # @yield [result, operation] Access the result along with the TransportOperation object
6536
+ # @yieldparam result [::Google::Iam::V1::Policy]
6537
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6538
+ #
6539
+ # @return [::Google::Iam::V1::Policy]
6540
+ #
6541
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6542
+ #
6543
+ # @example Basic example
6544
+ # require "google/cloud/dataform/v1beta1"
6545
+ #
6546
+ # # Create a client object. The client can be reused for multiple calls.
6547
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
6548
+ #
6549
+ # # Create a request. To set request fields, pass in keyword arguments.
6550
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
6551
+ #
6552
+ # # Call the set_iam_policy method.
6553
+ # result = client.set_iam_policy request
6554
+ #
6555
+ # # The returned object is of type Google::Iam::V1::Policy.
6556
+ # p result
6557
+ #
6558
+ def set_iam_policy request, options = nil
6559
+ raise ::ArgumentError, "request must be provided" if request.nil?
6560
+
6561
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
6562
+
6563
+ # Converts hash and nil to an options object
6564
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6565
+
6566
+ # Customize the options with defaults
6567
+ call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
6568
+
6569
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6570
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6571
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6572
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
6573
+ transports_version_send: [:rest]
6574
+
6575
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6576
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6577
+
6578
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
6579
+ metadata: call_metadata,
6580
+ retry_policy: @config.rpcs.set_iam_policy.retry_policy
6581
+
6582
+ options.apply_defaults timeout: @config.timeout,
6583
+ metadata: @config.metadata,
6584
+ retry_policy: @config.retry_policy
6585
+
6586
+ @dataform_stub.set_iam_policy request, options do |result, operation|
6587
+ yield result, operation if block_given?
6588
+ end
6589
+ rescue ::Gapic::Rest::Error => e
6590
+ raise ::Google::Cloud::Error.from_error(e)
6591
+ end
6592
+
6593
+ ##
6594
+ # Returns permissions that a caller has on the specified resource.
6595
+ # If the resource does not exist, this will return an empty set of
6596
+ # permissions, not a `NOT_FOUND` error.
6597
+ #
6598
+ # Note: This operation is designed to be used for building permission-aware
6599
+ # UIs and command-line tools, not for authorization checking. This operation
6600
+ # may "fail open" without warning.
6601
+ #
6602
+ # @overload test_iam_permissions(request, options = nil)
6603
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
6604
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
6605
+ #
6606
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
6607
+ # A request object representing the call parameters. Required. To specify no
6608
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6609
+ # @param options [::Gapic::CallOptions, ::Hash]
6610
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6611
+ #
6612
+ # @overload test_iam_permissions(resource: nil, permissions: nil)
6613
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
6614
+ # least one keyword argument is required. To specify no parameters, or to keep all
6615
+ # the default parameter values, pass an empty Hash as a request object (see above).
6616
+ #
6617
+ # @param resource [::String]
6618
+ # REQUIRED: The resource for which the policy detail is being requested.
6619
+ # See the operation documentation for the appropriate value for this field.
6620
+ # @param permissions [::Array<::String>]
6621
+ # The set of permissions to check for the `resource`. Permissions with
6622
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
6623
+ # information see
6624
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
6625
+ # @yield [result, operation] Access the result along with the TransportOperation object
6626
+ # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
6627
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6628
+ #
6629
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
6630
+ #
6631
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6632
+ #
6633
+ # @example Basic example
6634
+ # require "google/cloud/dataform/v1beta1"
6635
+ #
6636
+ # # Create a client object. The client can be reused for multiple calls.
6637
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
6638
+ #
6639
+ # # Create a request. To set request fields, pass in keyword arguments.
6640
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
6641
+ #
6642
+ # # Call the test_iam_permissions method.
6643
+ # result = client.test_iam_permissions request
6644
+ #
6645
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
6646
+ # p result
6647
+ #
6648
+ def test_iam_permissions request, options = nil
6649
+ raise ::ArgumentError, "request must be provided" if request.nil?
6650
+
6651
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
6652
+
6653
+ # Converts hash and nil to an options object
6654
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6655
+
6656
+ # Customize the options with defaults
6657
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
6658
+
6659
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6660
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6661
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6662
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
6663
+ transports_version_send: [:rest]
6664
+
6665
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6666
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6667
+
6668
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
6669
+ metadata: call_metadata,
6670
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
6671
+
6672
+ options.apply_defaults timeout: @config.timeout,
6673
+ metadata: @config.metadata,
6674
+ retry_policy: @config.retry_policy
6675
+
6676
+ @dataform_stub.test_iam_permissions request, options do |result, operation|
6677
+ yield result, operation if block_given?
6678
+ end
6679
+ rescue ::Gapic::Rest::Error => e
6680
+ raise ::Google::Cloud::Error.from_error(e)
6681
+ end
6682
+
4826
6683
  ##
4827
6684
  # Configuration class for the Dataform REST API.
4828
6685
  #
@@ -4839,17 +6696,17 @@ module Google
4839
6696
  # @example
4840
6697
  #
4841
6698
  # # Modify the global config, setting the timeout for
4842
- # # list_repositories to 20 seconds,
6699
+ # # get_team_folder to 20 seconds,
4843
6700
  # # and all remaining timeouts to 10 seconds.
4844
6701
  # ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.configure do |config|
4845
6702
  # config.timeout = 10.0
4846
- # config.rpcs.list_repositories.timeout = 20.0
6703
+ # config.rpcs.get_team_folder.timeout = 20.0
4847
6704
  # end
4848
6705
  #
4849
6706
  # # Apply the above configuration only to a new client.
4850
6707
  # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new do |config|
4851
6708
  # config.timeout = 10.0
4852
- # config.rpcs.list_repositories.timeout = 20.0
6709
+ # config.rpcs.get_team_folder.timeout = 20.0
4853
6710
  # end
4854
6711
  #
4855
6712
  # @!attribute [rw] endpoint
@@ -4893,6 +6750,7 @@ module Google
4893
6750
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4894
6751
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4895
6752
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
6753
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
4896
6754
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4897
6755
  # trigger a retry.
4898
6756
  # @return [::Hash]
@@ -4972,10 +6830,86 @@ module Google
4972
6830
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4973
6831
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4974
6832
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
6833
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
4975
6834
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4976
6835
  # trigger a retry.
4977
6836
  #
4978
6837
  class Rpcs
6838
+ ##
6839
+ # RPC-specific configuration for `get_team_folder`
6840
+ # @return [::Gapic::Config::Method]
6841
+ #
6842
+ attr_reader :get_team_folder
6843
+ ##
6844
+ # RPC-specific configuration for `create_team_folder`
6845
+ # @return [::Gapic::Config::Method]
6846
+ #
6847
+ attr_reader :create_team_folder
6848
+ ##
6849
+ # RPC-specific configuration for `update_team_folder`
6850
+ # @return [::Gapic::Config::Method]
6851
+ #
6852
+ attr_reader :update_team_folder
6853
+ ##
6854
+ # RPC-specific configuration for `delete_team_folder`
6855
+ # @return [::Gapic::Config::Method]
6856
+ #
6857
+ attr_reader :delete_team_folder
6858
+ ##
6859
+ # RPC-specific configuration for `delete_team_folder_tree`
6860
+ # @return [::Gapic::Config::Method]
6861
+ #
6862
+ attr_reader :delete_team_folder_tree
6863
+ ##
6864
+ # RPC-specific configuration for `query_team_folder_contents`
6865
+ # @return [::Gapic::Config::Method]
6866
+ #
6867
+ attr_reader :query_team_folder_contents
6868
+ ##
6869
+ # RPC-specific configuration for `search_team_folders`
6870
+ # @return [::Gapic::Config::Method]
6871
+ #
6872
+ attr_reader :search_team_folders
6873
+ ##
6874
+ # RPC-specific configuration for `get_folder`
6875
+ # @return [::Gapic::Config::Method]
6876
+ #
6877
+ attr_reader :get_folder
6878
+ ##
6879
+ # RPC-specific configuration for `create_folder`
6880
+ # @return [::Gapic::Config::Method]
6881
+ #
6882
+ attr_reader :create_folder
6883
+ ##
6884
+ # RPC-specific configuration for `update_folder`
6885
+ # @return [::Gapic::Config::Method]
6886
+ #
6887
+ attr_reader :update_folder
6888
+ ##
6889
+ # RPC-specific configuration for `delete_folder`
6890
+ # @return [::Gapic::Config::Method]
6891
+ #
6892
+ attr_reader :delete_folder
6893
+ ##
6894
+ # RPC-specific configuration for `delete_folder_tree`
6895
+ # @return [::Gapic::Config::Method]
6896
+ #
6897
+ attr_reader :delete_folder_tree
6898
+ ##
6899
+ # RPC-specific configuration for `query_folder_contents`
6900
+ # @return [::Gapic::Config::Method]
6901
+ #
6902
+ attr_reader :query_folder_contents
6903
+ ##
6904
+ # RPC-specific configuration for `query_user_root_contents`
6905
+ # @return [::Gapic::Config::Method]
6906
+ #
6907
+ attr_reader :query_user_root_contents
6908
+ ##
6909
+ # RPC-specific configuration for `move_folder`
6910
+ # @return [::Gapic::Config::Method]
6911
+ #
6912
+ attr_reader :move_folder
4979
6913
  ##
4980
6914
  # RPC-specific configuration for `list_repositories`
4981
6915
  # @return [::Gapic::Config::Method]
@@ -5002,6 +6936,16 @@ module Google
5002
6936
  #
5003
6937
  attr_reader :delete_repository
5004
6938
  ##
6939
+ # RPC-specific configuration for `delete_repository_long_running`
6940
+ # @return [::Gapic::Config::Method]
6941
+ #
6942
+ attr_reader :delete_repository_long_running
6943
+ ##
6944
+ # RPC-specific configuration for `move_repository`
6945
+ # @return [::Gapic::Config::Method]
6946
+ #
6947
+ attr_reader :move_repository
6948
+ ##
5005
6949
  # RPC-specific configuration for `commit_repository_changes`
5006
6950
  # @return [::Gapic::Config::Method]
5007
6951
  #
@@ -5246,9 +7190,54 @@ module Google
5246
7190
  # @return [::Gapic::Config::Method]
5247
7191
  #
5248
7192
  attr_reader :update_config
7193
+ ##
7194
+ # RPC-specific configuration for `get_iam_policy`
7195
+ # @return [::Gapic::Config::Method]
7196
+ #
7197
+ attr_reader :get_iam_policy
7198
+ ##
7199
+ # RPC-specific configuration for `set_iam_policy`
7200
+ # @return [::Gapic::Config::Method]
7201
+ #
7202
+ attr_reader :set_iam_policy
7203
+ ##
7204
+ # RPC-specific configuration for `test_iam_permissions`
7205
+ # @return [::Gapic::Config::Method]
7206
+ #
7207
+ attr_reader :test_iam_permissions
5249
7208
 
5250
7209
  # @private
5251
7210
  def initialize parent_rpcs = nil
7211
+ get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder
7212
+ @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config
7213
+ create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder
7214
+ @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config
7215
+ update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder
7216
+ @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config
7217
+ delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder
7218
+ @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config
7219
+ delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree
7220
+ @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config
7221
+ query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents
7222
+ @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config
7223
+ search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders
7224
+ @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config
7225
+ get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder
7226
+ @get_folder = ::Gapic::Config::Method.new get_folder_config
7227
+ create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder
7228
+ @create_folder = ::Gapic::Config::Method.new create_folder_config
7229
+ update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder
7230
+ @update_folder = ::Gapic::Config::Method.new update_folder_config
7231
+ delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder
7232
+ @delete_folder = ::Gapic::Config::Method.new delete_folder_config
7233
+ delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree
7234
+ @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config
7235
+ query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents
7236
+ @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config
7237
+ query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents
7238
+ @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config
7239
+ move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder
7240
+ @move_folder = ::Gapic::Config::Method.new move_folder_config
5252
7241
  list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
5253
7242
  @list_repositories = ::Gapic::Config::Method.new list_repositories_config
5254
7243
  get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
@@ -5259,6 +7248,10 @@ module Google
5259
7248
  @update_repository = ::Gapic::Config::Method.new update_repository_config
5260
7249
  delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
5261
7250
  @delete_repository = ::Gapic::Config::Method.new delete_repository_config
7251
+ delete_repository_long_running_config = parent_rpcs.delete_repository_long_running if parent_rpcs.respond_to? :delete_repository_long_running
7252
+ @delete_repository_long_running = ::Gapic::Config::Method.new delete_repository_long_running_config
7253
+ move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository
7254
+ @move_repository = ::Gapic::Config::Method.new move_repository_config
5262
7255
  commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes
5263
7256
  @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config
5264
7257
  read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file
@@ -5357,6 +7350,12 @@ module Google
5357
7350
  @get_config = ::Gapic::Config::Method.new get_config_config
5358
7351
  update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config
5359
7352
  @update_config = ::Gapic::Config::Method.new update_config_config
7353
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
7354
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
7355
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
7356
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
7357
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
7358
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
5360
7359
 
5361
7360
  yield self if block_given?
5362
7361
  end