google-cloud-dataform-v1beta1 0.14.1 → 0.15.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 +1846 -54
  6. data/lib/google/cloud/dataform/v1beta1/dataform/operations.rb +843 -0
  7. data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +38 -0
  8. data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +1742 -70
  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 +1592 -478
  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 +38 -28
  14. data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +48 -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 +648 -3
  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,1240 @@ 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
+ # The ID to use for the TeamFolder, which will become the final component of
330
+ # the TeamFolder's resource name.
331
+ # @yield [result, operation] Access the result along with the TransportOperation object
332
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::TeamFolder]
333
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
334
+ #
335
+ # @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
336
+ #
337
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
338
+ #
339
+ # @example Basic example
340
+ # require "google/cloud/dataform/v1beta1"
341
+ #
342
+ # # Create a client object. The client can be reused for multiple calls.
343
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
344
+ #
345
+ # # Create a request. To set request fields, pass in keyword arguments.
346
+ # request = Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest.new
347
+ #
348
+ # # Call the create_team_folder method.
349
+ # result = client.create_team_folder request
350
+ #
351
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
352
+ # p result
353
+ #
354
+ def create_team_folder request, options = nil
355
+ raise ::ArgumentError, "request must be provided" if request.nil?
356
+
357
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest
358
+
359
+ # Converts hash and nil to an options object
360
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
361
+
362
+ # Customize the options with defaults
363
+ call_metadata = @config.rpcs.create_team_folder.metadata.to_h
364
+
365
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
366
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
367
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
368
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
369
+ transports_version_send: [:rest]
370
+
371
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
372
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
373
+
374
+ options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout,
375
+ metadata: call_metadata,
376
+ retry_policy: @config.rpcs.create_team_folder.retry_policy
377
+
378
+ options.apply_defaults timeout: @config.timeout,
379
+ metadata: @config.metadata,
380
+ retry_policy: @config.retry_policy
381
+
382
+ @dataform_stub.create_team_folder request, options do |result, operation|
383
+ yield result, operation if block_given?
384
+ end
385
+ rescue ::Gapic::Rest::Error => e
386
+ raise ::Google::Cloud::Error.from_error(e)
387
+ end
388
+
389
+ ##
390
+ # Updates a single TeamFolder.
391
+ #
392
+ # @overload update_team_folder(request, options = nil)
393
+ # Pass arguments to `update_team_folder` via a request object, either of type
394
+ # {::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest} or an equivalent Hash.
395
+ #
396
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest, ::Hash]
397
+ # A request object representing the call parameters. Required. To specify no
398
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
399
+ # @param options [::Gapic::CallOptions, ::Hash]
400
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
401
+ #
402
+ # @overload update_team_folder(update_mask: nil, team_folder: nil)
403
+ # Pass arguments to `update_team_folder` via keyword arguments. Note that at
404
+ # least one keyword argument is required. To specify no parameters, or to keep all
405
+ # the default parameter values, pass an empty Hash as a request object (see above).
406
+ #
407
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
408
+ # Optional. Specifies the fields to be updated in the Folder. If left unset,
409
+ # all fields will be updated.
410
+ # @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
411
+ # Required. The updated TeamFolder.
412
+ # @yield [result, operation] Access the result along with the TransportOperation object
413
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::TeamFolder]
414
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
415
+ #
416
+ # @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
417
+ #
418
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
419
+ #
420
+ # @example Basic example
421
+ # require "google/cloud/dataform/v1beta1"
422
+ #
423
+ # # Create a client object. The client can be reused for multiple calls.
424
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
425
+ #
426
+ # # Create a request. To set request fields, pass in keyword arguments.
427
+ # request = Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest.new
428
+ #
429
+ # # Call the update_team_folder method.
430
+ # result = client.update_team_folder request
431
+ #
432
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
433
+ # p result
434
+ #
435
+ def update_team_folder request, options = nil
436
+ raise ::ArgumentError, "request must be provided" if request.nil?
437
+
438
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest
439
+
440
+ # Converts hash and nil to an options object
441
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
442
+
443
+ # Customize the options with defaults
444
+ call_metadata = @config.rpcs.update_team_folder.metadata.to_h
445
+
446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
447
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
448
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
449
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
450
+ transports_version_send: [:rest]
451
+
452
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
453
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
454
+
455
+ options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout,
456
+ metadata: call_metadata,
457
+ retry_policy: @config.rpcs.update_team_folder.retry_policy
458
+
459
+ options.apply_defaults timeout: @config.timeout,
460
+ metadata: @config.metadata,
461
+ retry_policy: @config.retry_policy
462
+
463
+ @dataform_stub.update_team_folder request, options do |result, operation|
464
+ yield result, operation if block_given?
465
+ end
466
+ rescue ::Gapic::Rest::Error => e
467
+ raise ::Google::Cloud::Error.from_error(e)
468
+ end
469
+
470
+ ##
471
+ # Deletes a single TeamFolder.
472
+ #
473
+ # @overload delete_team_folder(request, options = nil)
474
+ # Pass arguments to `delete_team_folder` via a request object, either of type
475
+ # {::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest} or an equivalent Hash.
476
+ #
477
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest, ::Hash]
478
+ # A request object representing the call parameters. Required. To specify no
479
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
480
+ # @param options [::Gapic::CallOptions, ::Hash]
481
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
482
+ #
483
+ # @overload delete_team_folder(name: nil)
484
+ # Pass arguments to `delete_team_folder` via keyword arguments. Note that at
485
+ # least one keyword argument is required. To specify no parameters, or to keep all
486
+ # the default parameter values, pass an empty Hash as a request object (see above).
487
+ #
488
+ # @param name [::String]
489
+ # Required. The TeamFolder's name.
490
+ # @yield [result, operation] Access the result along with the TransportOperation object
491
+ # @yieldparam result [::Google::Protobuf::Empty]
492
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
493
+ #
494
+ # @return [::Google::Protobuf::Empty]
495
+ #
496
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
497
+ #
498
+ # @example Basic example
499
+ # require "google/cloud/dataform/v1beta1"
500
+ #
501
+ # # Create a client object. The client can be reused for multiple calls.
502
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
503
+ #
504
+ # # Create a request. To set request fields, pass in keyword arguments.
505
+ # request = Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest.new
506
+ #
507
+ # # Call the delete_team_folder method.
508
+ # result = client.delete_team_folder request
509
+ #
510
+ # # The returned object is of type Google::Protobuf::Empty.
511
+ # p result
512
+ #
513
+ def delete_team_folder request, options = nil
514
+ raise ::ArgumentError, "request must be provided" if request.nil?
515
+
516
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest
517
+
518
+ # Converts hash and nil to an options object
519
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
520
+
521
+ # Customize the options with defaults
522
+ call_metadata = @config.rpcs.delete_team_folder.metadata.to_h
523
+
524
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
525
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
526
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
527
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
528
+ transports_version_send: [:rest]
529
+
530
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
531
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
532
+
533
+ options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout,
534
+ metadata: call_metadata,
535
+ retry_policy: @config.rpcs.delete_team_folder.retry_policy
536
+
537
+ options.apply_defaults timeout: @config.timeout,
538
+ metadata: @config.metadata,
539
+ retry_policy: @config.retry_policy
540
+
541
+ @dataform_stub.delete_team_folder request, options do |result, operation|
542
+ yield result, operation if block_given?
543
+ end
544
+ rescue ::Gapic::Rest::Error => e
545
+ raise ::Google::Cloud::Error.from_error(e)
546
+ end
547
+
548
+ ##
549
+ # Returns the contents of a given TeamFolder.
550
+ #
551
+ # @overload query_team_folder_contents(request, options = nil)
552
+ # Pass arguments to `query_team_folder_contents` via a request object, either of type
553
+ # {::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest} or an equivalent Hash.
554
+ #
555
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest, ::Hash]
556
+ # A request object representing the call parameters. Required. To specify no
557
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
558
+ # @param options [::Gapic::CallOptions, ::Hash]
559
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
560
+ #
561
+ # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
562
+ # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at
563
+ # least one keyword argument is required. To specify no parameters, or to keep all
564
+ # the default parameter values, pass an empty Hash as a request object (see above).
565
+ #
566
+ # @param team_folder [::String]
567
+ # Required. Name of the team_folder whose contents to list.
568
+ # Format: `projects/*/locations/*/teamFolders/*`.
569
+ # @param page_size [::Integer]
570
+ # Optional. Maximum number of paths to return. The server may return fewer
571
+ # items than requested. If unspecified, the server will pick an appropriate
572
+ # default.
573
+ # @param page_token [::String]
574
+ # Optional. Page token received from a previous `QueryTeamFolderContents`
575
+ # call. Provide this to retrieve the subsequent page.
576
+ #
577
+ # When paginating, all other parameters provided to
578
+ # `QueryTeamFolderContents`, with the exception of `page_size`, must match
579
+ # the call that provided the page token.
580
+ # @param order_by [::String]
581
+ # Optional. Field to additionally sort results by.
582
+ # Will order Folders before Repositories, and then by `order_by` in ascending
583
+ # order. Supported keywords: `display_name` (default), `create_time`,
584
+ # last_modified_time.
585
+ # Examples:
586
+ # - `orderBy="display_name"`
587
+ # - `orderBy="display_name desc"`
588
+ # @param filter [::String]
589
+ # Optional. Optional filtering for the returned list. Filtering is currently
590
+ # only supported on the `display_name` field.
591
+ #
592
+ # Example:
593
+ # - `filter="display_name="MyFolder""`
594
+ # @yield [result, operation] Access the result along with the TransportOperation object
595
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
596
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
597
+ #
598
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
599
+ #
600
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
601
+ #
602
+ # @example Basic example
603
+ # require "google/cloud/dataform/v1beta1"
604
+ #
605
+ # # Create a client object. The client can be reused for multiple calls.
606
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
607
+ #
608
+ # # Create a request. To set request fields, pass in keyword arguments.
609
+ # request = Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest.new
610
+ #
611
+ # # Call the query_team_folder_contents method.
612
+ # result = client.query_team_folder_contents request
613
+ #
614
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
615
+ # # over elements, and API calls will be issued to fetch pages as needed.
616
+ # result.each do |item|
617
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry.
618
+ # p item
619
+ # end
620
+ #
621
+ def query_team_folder_contents request, options = nil
622
+ raise ::ArgumentError, "request must be provided" if request.nil?
623
+
624
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest
625
+
626
+ # Converts hash and nil to an options object
627
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
628
+
629
+ # Customize the options with defaults
630
+ call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h
631
+
632
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
633
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
634
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
635
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
636
+ transports_version_send: [:rest]
637
+
638
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
639
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
640
+
641
+ options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout,
642
+ metadata: call_metadata,
643
+ retry_policy: @config.rpcs.query_team_folder_contents.retry_policy
644
+
645
+ options.apply_defaults timeout: @config.timeout,
646
+ metadata: @config.metadata,
647
+ retry_policy: @config.retry_policy
648
+
649
+ @dataform_stub.query_team_folder_contents request, options do |result, operation|
650
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options
651
+ yield result, operation if block_given?
652
+ throw :response, result
653
+ end
654
+ rescue ::Gapic::Rest::Error => e
655
+ raise ::Google::Cloud::Error.from_error(e)
656
+ end
657
+
658
+ ##
659
+ # Returns all TeamFolders in a given location that the caller has access to
660
+ # and match the provided filter.
661
+ #
662
+ # @overload search_team_folders(request, options = nil)
663
+ # Pass arguments to `search_team_folders` via a request object, either of type
664
+ # {::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest} or an equivalent Hash.
665
+ #
666
+ # @param request [::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest, ::Hash]
667
+ # A request object representing the call parameters. Required. To specify no
668
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
669
+ # @param options [::Gapic::CallOptions, ::Hash]
670
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
671
+ #
672
+ # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
673
+ # Pass arguments to `search_team_folders` via keyword arguments. Note that at
674
+ # least one keyword argument is required. To specify no parameters, or to keep all
675
+ # the default parameter values, pass an empty Hash as a request object (see above).
676
+ #
677
+ # @param location [::String]
678
+ # Required. Location in which to query TeamFolders.
679
+ # Format: `projects/*/locations/*`.
680
+ # @param page_size [::Integer]
681
+ # Optional. Maximum number of TeamFolders to return. The server may return
682
+ # fewer items than requested. If unspecified, the server will pick an
683
+ # appropriate default.
684
+ # @param page_token [::String]
685
+ # Optional. Page token received from a previous `SearchTeamFolders` call.
686
+ # Provide this to retrieve the subsequent page.
687
+ #
688
+ # When paginating, all other parameters provided to
689
+ # `SearchTeamFolders`, with the exception of `page_size`, must
690
+ # match the call that provided the page token.
691
+ # @param order_by [::String]
692
+ # Optional. Field to additionally sort results by.
693
+ # Supported keywords: `display_name` (default), `create_time`,
694
+ # `last_modified_time`. Examples:
695
+ # - `orderBy="display_name"`
696
+ # - `orderBy="display_name desc"`
697
+ # @param filter [::String]
698
+ # Optional. Optional filtering for the returned list. Filtering is currently
699
+ # only supported on the `display_name` field.
700
+ #
701
+ # Example:
702
+ # - `filter="display_name="MyFolder""`
703
+ # @yield [result, operation] Access the result along with the TransportOperation object
704
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
705
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
706
+ #
707
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
708
+ #
709
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
710
+ #
711
+ # @example Basic example
712
+ # require "google/cloud/dataform/v1beta1"
713
+ #
714
+ # # Create a client object. The client can be reused for multiple calls.
715
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
716
+ #
717
+ # # Create a request. To set request fields, pass in keyword arguments.
718
+ # request = Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest.new
719
+ #
720
+ # # Call the search_team_folders method.
721
+ # result = client.search_team_folders request
722
+ #
723
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
724
+ # # over elements, and API calls will be issued to fetch pages as needed.
725
+ # result.each do |item|
726
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult.
727
+ # p item
728
+ # end
729
+ #
730
+ def search_team_folders request, options = nil
731
+ raise ::ArgumentError, "request must be provided" if request.nil?
732
+
733
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest
734
+
735
+ # Converts hash and nil to an options object
736
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
737
+
738
+ # Customize the options with defaults
739
+ call_metadata = @config.rpcs.search_team_folders.metadata.to_h
740
+
741
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
742
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
743
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
744
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
745
+ transports_version_send: [:rest]
746
+
747
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
748
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
749
+
750
+ options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout,
751
+ metadata: call_metadata,
752
+ retry_policy: @config.rpcs.search_team_folders.retry_policy
753
+
754
+ options.apply_defaults timeout: @config.timeout,
755
+ metadata: @config.metadata,
756
+ retry_policy: @config.retry_policy
757
+
758
+ @dataform_stub.search_team_folders request, options do |result, operation|
759
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options
760
+ yield result, operation if block_given?
761
+ throw :response, result
762
+ end
763
+ rescue ::Gapic::Rest::Error => e
764
+ raise ::Google::Cloud::Error.from_error(e)
765
+ end
766
+
767
+ ##
768
+ # Fetches a single Folder.
769
+ #
770
+ # @overload get_folder(request, options = nil)
771
+ # Pass arguments to `get_folder` via a request object, either of type
772
+ # {::Google::Cloud::Dataform::V1beta1::GetFolderRequest} or an equivalent Hash.
773
+ #
774
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetFolderRequest, ::Hash]
775
+ # A request object representing the call parameters. Required. To specify no
776
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
777
+ # @param options [::Gapic::CallOptions, ::Hash]
778
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
779
+ #
780
+ # @overload get_folder(name: nil)
781
+ # Pass arguments to `get_folder` via keyword arguments. Note that at
782
+ # least one keyword argument is required. To specify no parameters, or to keep all
783
+ # the default parameter values, pass an empty Hash as a request object (see above).
784
+ #
785
+ # @param name [::String]
786
+ # Required. The Folder's name.
787
+ # @yield [result, operation] Access the result along with the TransportOperation object
788
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Folder]
789
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
790
+ #
791
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
792
+ #
793
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
794
+ #
795
+ # @example Basic example
796
+ # require "google/cloud/dataform/v1beta1"
797
+ #
798
+ # # Create a client object. The client can be reused for multiple calls.
799
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
800
+ #
801
+ # # Create a request. To set request fields, pass in keyword arguments.
802
+ # request = Google::Cloud::Dataform::V1beta1::GetFolderRequest.new
803
+ #
804
+ # # Call the get_folder method.
805
+ # result = client.get_folder request
806
+ #
807
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
808
+ # p result
809
+ #
810
+ def get_folder request, options = nil
811
+ raise ::ArgumentError, "request must be provided" if request.nil?
812
+
813
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetFolderRequest
814
+
815
+ # Converts hash and nil to an options object
816
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
817
+
818
+ # Customize the options with defaults
819
+ call_metadata = @config.rpcs.get_folder.metadata.to_h
820
+
821
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
822
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
823
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
824
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
825
+ transports_version_send: [:rest]
826
+
827
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
828
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
829
+
830
+ options.apply_defaults timeout: @config.rpcs.get_folder.timeout,
831
+ metadata: call_metadata,
832
+ retry_policy: @config.rpcs.get_folder.retry_policy
833
+
834
+ options.apply_defaults timeout: @config.timeout,
835
+ metadata: @config.metadata,
836
+ retry_policy: @config.retry_policy
837
+
838
+ @dataform_stub.get_folder request, options do |result, operation|
839
+ yield result, operation if block_given?
840
+ end
841
+ rescue ::Gapic::Rest::Error => e
842
+ raise ::Google::Cloud::Error.from_error(e)
843
+ end
844
+
845
+ ##
846
+ # Creates a new Folder in a given project and location.
847
+ #
848
+ # @overload create_folder(request, options = nil)
849
+ # Pass arguments to `create_folder` via a request object, either of type
850
+ # {::Google::Cloud::Dataform::V1beta1::CreateFolderRequest} or an equivalent Hash.
851
+ #
852
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateFolderRequest, ::Hash]
853
+ # A request object representing the call parameters. Required. To specify no
854
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
855
+ # @param options [::Gapic::CallOptions, ::Hash]
856
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
857
+ #
858
+ # @overload create_folder(parent: nil, folder: nil, folder_id: nil)
859
+ # Pass arguments to `create_folder` via keyword arguments. Note that at
860
+ # least one keyword argument is required. To specify no parameters, or to keep all
861
+ # the default parameter values, pass an empty Hash as a request object (see above).
862
+ #
863
+ # @param parent [::String]
864
+ # Required. The location in which to create the Folder. Must be in the format
865
+ # `projects/*/locations/*`.
866
+ # @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
867
+ # Required. The Folder to create.
868
+ # @param folder_id [::String]
869
+ # The ID to use for the Folder, which will become the final component of
870
+ # the Folder's resource name.
871
+ # @yield [result, operation] Access the result along with the TransportOperation object
872
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Folder]
873
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
874
+ #
875
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
876
+ #
877
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
878
+ #
879
+ # @example Basic example
880
+ # require "google/cloud/dataform/v1beta1"
881
+ #
882
+ # # Create a client object. The client can be reused for multiple calls.
883
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
884
+ #
885
+ # # Create a request. To set request fields, pass in keyword arguments.
886
+ # request = Google::Cloud::Dataform::V1beta1::CreateFolderRequest.new
887
+ #
888
+ # # Call the create_folder method.
889
+ # result = client.create_folder request
890
+ #
891
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
892
+ # p result
893
+ #
894
+ def create_folder request, options = nil
895
+ raise ::ArgumentError, "request must be provided" if request.nil?
896
+
897
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateFolderRequest
898
+
899
+ # Converts hash and nil to an options object
900
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
901
+
902
+ # Customize the options with defaults
903
+ call_metadata = @config.rpcs.create_folder.metadata.to_h
904
+
905
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
906
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
907
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
908
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
909
+ transports_version_send: [:rest]
910
+
911
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
912
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
913
+
914
+ options.apply_defaults timeout: @config.rpcs.create_folder.timeout,
915
+ metadata: call_metadata,
916
+ retry_policy: @config.rpcs.create_folder.retry_policy
917
+
918
+ options.apply_defaults timeout: @config.timeout,
919
+ metadata: @config.metadata,
920
+ retry_policy: @config.retry_policy
921
+
922
+ @dataform_stub.create_folder request, options do |result, operation|
923
+ yield result, operation if block_given?
924
+ end
925
+ rescue ::Gapic::Rest::Error => e
926
+ raise ::Google::Cloud::Error.from_error(e)
927
+ end
928
+
929
+ ##
930
+ # Updates a single Folder.
931
+ #
932
+ # @overload update_folder(request, options = nil)
933
+ # Pass arguments to `update_folder` via a request object, either of type
934
+ # {::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest} or an equivalent Hash.
935
+ #
936
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest, ::Hash]
937
+ # A request object representing the call parameters. Required. To specify no
938
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
939
+ # @param options [::Gapic::CallOptions, ::Hash]
940
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
941
+ #
942
+ # @overload update_folder(update_mask: nil, folder: nil)
943
+ # Pass arguments to `update_folder` via keyword arguments. Note that at
944
+ # least one keyword argument is required. To specify no parameters, or to keep all
945
+ # the default parameter values, pass an empty Hash as a request object (see above).
946
+ #
947
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
948
+ # Optional. Specifies the fields to be updated in the Folder. If left unset,
949
+ # all fields that can be updated, will be updated. A few fields cannot be
950
+ # updated and will be ignored if specified in the update_mask (e.g.
951
+ # parent_name, team_folder_name).
952
+ # @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
953
+ # Required. The updated Folder.
954
+ # @yield [result, operation] Access the result along with the TransportOperation object
955
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Folder]
956
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
957
+ #
958
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
959
+ #
960
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
961
+ #
962
+ # @example Basic example
963
+ # require "google/cloud/dataform/v1beta1"
964
+ #
965
+ # # Create a client object. The client can be reused for multiple calls.
966
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
967
+ #
968
+ # # Create a request. To set request fields, pass in keyword arguments.
969
+ # request = Google::Cloud::Dataform::V1beta1::UpdateFolderRequest.new
970
+ #
971
+ # # Call the update_folder method.
972
+ # result = client.update_folder request
973
+ #
974
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
975
+ # p result
976
+ #
977
+ def update_folder request, options = nil
978
+ raise ::ArgumentError, "request must be provided" if request.nil?
979
+
980
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest
981
+
982
+ # Converts hash and nil to an options object
983
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
984
+
985
+ # Customize the options with defaults
986
+ call_metadata = @config.rpcs.update_folder.metadata.to_h
987
+
988
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
989
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
990
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
991
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
992
+ transports_version_send: [:rest]
993
+
994
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
995
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
996
+
997
+ options.apply_defaults timeout: @config.rpcs.update_folder.timeout,
998
+ metadata: call_metadata,
999
+ retry_policy: @config.rpcs.update_folder.retry_policy
1000
+
1001
+ options.apply_defaults timeout: @config.timeout,
1002
+ metadata: @config.metadata,
1003
+ retry_policy: @config.retry_policy
1004
+
1005
+ @dataform_stub.update_folder request, options do |result, operation|
1006
+ yield result, operation if block_given?
1007
+ end
1008
+ rescue ::Gapic::Rest::Error => e
1009
+ raise ::Google::Cloud::Error.from_error(e)
1010
+ end
1011
+
1012
+ ##
1013
+ # Deletes a single Folder.
1014
+ #
1015
+ # @overload delete_folder(request, options = nil)
1016
+ # Pass arguments to `delete_folder` via a request object, either of type
1017
+ # {::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest} or an equivalent Hash.
1018
+ #
1019
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest, ::Hash]
1020
+ # A request object representing the call parameters. Required. To specify no
1021
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1022
+ # @param options [::Gapic::CallOptions, ::Hash]
1023
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1024
+ #
1025
+ # @overload delete_folder(name: nil)
1026
+ # Pass arguments to `delete_folder` via keyword arguments. Note that at
1027
+ # least one keyword argument is required. To specify no parameters, or to keep all
1028
+ # the default parameter values, pass an empty Hash as a request object (see above).
1029
+ #
1030
+ # @param name [::String]
1031
+ # Required. The Folder's name.
1032
+ # @yield [result, operation] Access the result along with the TransportOperation object
1033
+ # @yieldparam result [::Google::Protobuf::Empty]
1034
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1035
+ #
1036
+ # @return [::Google::Protobuf::Empty]
1037
+ #
1038
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1039
+ #
1040
+ # @example Basic example
1041
+ # require "google/cloud/dataform/v1beta1"
1042
+ #
1043
+ # # Create a client object. The client can be reused for multiple calls.
1044
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1045
+ #
1046
+ # # Create a request. To set request fields, pass in keyword arguments.
1047
+ # request = Google::Cloud::Dataform::V1beta1::DeleteFolderRequest.new
1048
+ #
1049
+ # # Call the delete_folder method.
1050
+ # result = client.delete_folder request
1051
+ #
1052
+ # # The returned object is of type Google::Protobuf::Empty.
1053
+ # p result
1054
+ #
1055
+ def delete_folder request, options = nil
1056
+ raise ::ArgumentError, "request must be provided" if request.nil?
1057
+
1058
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest
1059
+
1060
+ # Converts hash and nil to an options object
1061
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1062
+
1063
+ # Customize the options with defaults
1064
+ call_metadata = @config.rpcs.delete_folder.metadata.to_h
1065
+
1066
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1067
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1068
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1069
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1070
+ transports_version_send: [:rest]
1071
+
1072
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1073
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1074
+
1075
+ options.apply_defaults timeout: @config.rpcs.delete_folder.timeout,
1076
+ metadata: call_metadata,
1077
+ retry_policy: @config.rpcs.delete_folder.retry_policy
1078
+
1079
+ options.apply_defaults timeout: @config.timeout,
1080
+ metadata: @config.metadata,
1081
+ retry_policy: @config.retry_policy
1082
+
1083
+ @dataform_stub.delete_folder request, options do |result, operation|
1084
+ yield result, operation if block_given?
1085
+ end
1086
+ rescue ::Gapic::Rest::Error => e
1087
+ raise ::Google::Cloud::Error.from_error(e)
1088
+ end
1089
+
1090
+ ##
1091
+ # Returns the contents of a given Folder.
1092
+ #
1093
+ # @overload query_folder_contents(request, options = nil)
1094
+ # Pass arguments to `query_folder_contents` via a request object, either of type
1095
+ # {::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest} or an equivalent Hash.
1096
+ #
1097
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest, ::Hash]
1098
+ # A request object representing the call parameters. Required. To specify no
1099
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1100
+ # @param options [::Gapic::CallOptions, ::Hash]
1101
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1102
+ #
1103
+ # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
1104
+ # Pass arguments to `query_folder_contents` via keyword arguments. Note that at
1105
+ # least one keyword argument is required. To specify no parameters, or to keep all
1106
+ # the default parameter values, pass an empty Hash as a request object (see above).
1107
+ #
1108
+ # @param folder [::String]
1109
+ # Required. Name of the folder whose contents to list.
1110
+ # Format: projects/*/locations/*/folders/*
1111
+ # @param page_size [::Integer]
1112
+ # Optional. Maximum number of paths to return. The server may return fewer
1113
+ # items than requested. If unspecified, the server will pick an appropriate
1114
+ # default.
1115
+ # @param page_token [::String]
1116
+ # Optional. Page token received from a previous `QueryFolderContents` call.
1117
+ # Provide this to retrieve the subsequent page.
1118
+ #
1119
+ # When paginating, all other parameters provided to
1120
+ # `QueryFolderContents`, with the exception of `page_size`, must match the
1121
+ # call that provided the page token.
1122
+ # @param order_by [::String]
1123
+ # Optional. Field to additionally sort results by.
1124
+ # Will order Folders before Repositories, and then by `order_by` in ascending
1125
+ # order. Supported keywords: display_name (default), create_time,
1126
+ # last_modified_time.
1127
+ # Examples:
1128
+ # - `orderBy="display_name"`
1129
+ # - `orderBy="display_name desc"`
1130
+ # @param filter [::String]
1131
+ # Optional. Optional filtering for the returned list. Filtering is currently
1132
+ # only supported on the `display_name` field.
1133
+ #
1134
+ # Example:
1135
+ # - `filter="display_name="MyFolder""`
1136
+ # @yield [result, operation] Access the result along with the TransportOperation object
1137
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
1138
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1139
+ #
1140
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
1141
+ #
1142
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1143
+ #
1144
+ # @example Basic example
1145
+ # require "google/cloud/dataform/v1beta1"
1146
+ #
1147
+ # # Create a client object. The client can be reused for multiple calls.
1148
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1149
+ #
1150
+ # # Create a request. To set request fields, pass in keyword arguments.
1151
+ # request = Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest.new
1152
+ #
1153
+ # # Call the query_folder_contents method.
1154
+ # result = client.query_folder_contents request
1155
+ #
1156
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1157
+ # # over elements, and API calls will be issued to fetch pages as needed.
1158
+ # result.each do |item|
1159
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry.
1160
+ # p item
1161
+ # end
1162
+ #
1163
+ def query_folder_contents request, options = nil
1164
+ raise ::ArgumentError, "request must be provided" if request.nil?
1165
+
1166
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest
1167
+
1168
+ # Converts hash and nil to an options object
1169
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1170
+
1171
+ # Customize the options with defaults
1172
+ call_metadata = @config.rpcs.query_folder_contents.metadata.to_h
1173
+
1174
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1175
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1176
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1177
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1178
+ transports_version_send: [:rest]
169
1179
 
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
1180
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1181
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
178
1182
 
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=
1183
+ options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout,
1184
+ metadata: call_metadata,
1185
+ retry_policy: @config.rpcs.query_folder_contents.retry_policy
1186
+
1187
+ options.apply_defaults timeout: @config.timeout,
1188
+ metadata: @config.metadata,
1189
+ retry_policy: @config.retry_policy
1190
+
1191
+ @dataform_stub.query_folder_contents request, options do |result, operation|
1192
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options
1193
+ yield result, operation if block_given?
1194
+ throw :response, result
186
1195
  end
1196
+ rescue ::Gapic::Rest::Error => e
1197
+ raise ::Google::Cloud::Error.from_error(e)
187
1198
  end
188
1199
 
189
1200
  ##
190
- # Get the associated client for mix-in of the Locations.
1201
+ # Returns the contents of a caller's root folder in a given location.
1202
+ # The root folder contains all resources that are created by the user and not
1203
+ # contained in any other folder.
191
1204
  #
192
- # @return [Google::Cloud::Location::Locations::Rest::Client]
1205
+ # @overload query_user_root_contents(request, options = nil)
1206
+ # Pass arguments to `query_user_root_contents` via a request object, either of type
1207
+ # {::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest} or an equivalent Hash.
193
1208
  #
194
- attr_reader :location_client
195
-
196
- ##
197
- # Get the associated client for mix-in of the IAMPolicy.
1209
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest, ::Hash]
1210
+ # A request object representing the call parameters. Required. To specify no
1211
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1212
+ # @param options [::Gapic::CallOptions, ::Hash]
1213
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
198
1214
  #
199
- # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
1215
+ # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
1216
+ # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at
1217
+ # least one keyword argument is required. To specify no parameters, or to keep all
1218
+ # the default parameter values, pass an empty Hash as a request object (see above).
200
1219
  #
201
- attr_reader :iam_policy_client
1220
+ # @param location [::String]
1221
+ # Required. Location of the user root folder whose contents to list.
1222
+ # Format: projects/*/locations/*
1223
+ # @param page_size [::Integer]
1224
+ # Optional. Maximum number of paths to return. The server may return fewer
1225
+ # items than requested. If unspecified, the server will pick an appropriate
1226
+ # default.
1227
+ # @param page_token [::String]
1228
+ # Optional. Page token received from a previous `QueryUserRootContents` call.
1229
+ # Provide this to retrieve the subsequent page.
1230
+ #
1231
+ # When paginating, all other parameters provided to
1232
+ # `QueryUserRootFolderContents`, with the exception of `page_size`, must
1233
+ # match the call that provided the page token.
1234
+ # @param order_by [::String]
1235
+ # Optional. Field to additionally sort results by.
1236
+ # Will order Folders before Repositories, and then by `order_by` in ascending
1237
+ # order. Supported keywords: display_name (default), created_at,
1238
+ # last_modified_at. Examples:
1239
+ # - `orderBy="display_name"`
1240
+ # - `orderBy="display_name desc"`
1241
+ # @param filter [::String]
1242
+ # Optional. Optional filtering for the returned list. Filtering is currently
1243
+ # only supported on the `display_name` field.
1244
+ #
1245
+ # Example:
1246
+ # - `filter="display_name="MyFolder""`
1247
+ # @yield [result, operation] Access the result along with the TransportOperation object
1248
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
1249
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1250
+ #
1251
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
1252
+ #
1253
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1254
+ #
1255
+ # @example Basic example
1256
+ # require "google/cloud/dataform/v1beta1"
1257
+ #
1258
+ # # Create a client object. The client can be reused for multiple calls.
1259
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1260
+ #
1261
+ # # Create a request. To set request fields, pass in keyword arguments.
1262
+ # request = Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest.new
1263
+ #
1264
+ # # Call the query_user_root_contents method.
1265
+ # result = client.query_user_root_contents request
1266
+ #
1267
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1268
+ # # over elements, and API calls will be issued to fetch pages as needed.
1269
+ # result.each do |item|
1270
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry.
1271
+ # p item
1272
+ # end
1273
+ #
1274
+ def query_user_root_contents request, options = nil
1275
+ raise ::ArgumentError, "request must be provided" if request.nil?
1276
+
1277
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest
1278
+
1279
+ # Converts hash and nil to an options object
1280
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1281
+
1282
+ # Customize the options with defaults
1283
+ call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h
1284
+
1285
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1286
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1287
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1288
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1289
+ transports_version_send: [:rest]
1290
+
1291
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1292
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1293
+
1294
+ options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout,
1295
+ metadata: call_metadata,
1296
+ retry_policy: @config.rpcs.query_user_root_contents.retry_policy
1297
+
1298
+ options.apply_defaults timeout: @config.timeout,
1299
+ metadata: @config.metadata,
1300
+ retry_policy: @config.retry_policy
1301
+
1302
+ @dataform_stub.query_user_root_contents request, options do |result, operation|
1303
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options
1304
+ yield result, operation if block_given?
1305
+ throw :response, result
1306
+ end
1307
+ rescue ::Gapic::Rest::Error => e
1308
+ raise ::Google::Cloud::Error.from_error(e)
1309
+ end
202
1310
 
203
1311
  ##
204
- # The logger used for request/response debug logging.
1312
+ # Moves a Folder to a new Folder, TeamFolder, or the root location.
205
1313
  #
206
- # @return [Logger]
1314
+ # @overload move_folder(request, options = nil)
1315
+ # Pass arguments to `move_folder` via a request object, either of type
1316
+ # {::Google::Cloud::Dataform::V1beta1::MoveFolderRequest} or an equivalent Hash.
207
1317
  #
208
- def logger
209
- @dataform_stub.logger
210
- end
1318
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveFolderRequest, ::Hash]
1319
+ # A request object representing the call parameters. Required. To specify no
1320
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1321
+ # @param options [::Gapic::CallOptions, ::Hash]
1322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1323
+ #
1324
+ # @overload move_folder(name: nil, destination_containing_folder: nil)
1325
+ # Pass arguments to `move_folder` via keyword arguments. Note that at
1326
+ # least one keyword argument is required. To specify no parameters, or to keep all
1327
+ # the default parameter values, pass an empty Hash as a request object (see above).
1328
+ #
1329
+ # @param name [::String]
1330
+ # Required. The full resource name of the Folder to move.
1331
+ # @param destination_containing_folder [::String]
1332
+ # Optional. The name of the Folder, TeamFolder, or root location to move the
1333
+ # Folder to. Can be in the format of: "" to move into the root User folder,
1334
+ # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
1335
+ # @yield [result, operation] Access the result along with the TransportOperation object
1336
+ # @yieldparam result [::Gapic::Operation]
1337
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1338
+ #
1339
+ # @return [::Gapic::Operation]
1340
+ #
1341
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1342
+ #
1343
+ # @example Basic example
1344
+ # require "google/cloud/dataform/v1beta1"
1345
+ #
1346
+ # # Create a client object. The client can be reused for multiple calls.
1347
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1348
+ #
1349
+ # # Create a request. To set request fields, pass in keyword arguments.
1350
+ # request = Google::Cloud::Dataform::V1beta1::MoveFolderRequest.new
1351
+ #
1352
+ # # Call the move_folder method.
1353
+ # result = client.move_folder request
1354
+ #
1355
+ # # The returned object is of type Gapic::Operation. You can use it to
1356
+ # # check the status of an operation, cancel it, or wait for results.
1357
+ # # Here is how to wait for a response.
1358
+ # result.wait_until_done! timeout: 60
1359
+ # if result.response?
1360
+ # p result.response
1361
+ # else
1362
+ # puts "No response received."
1363
+ # end
1364
+ #
1365
+ def move_folder request, options = nil
1366
+ raise ::ArgumentError, "request must be provided" if request.nil?
211
1367
 
212
- # Service calls
1368
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFolderRequest
1369
+
1370
+ # Converts hash and nil to an options object
1371
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1372
+
1373
+ # Customize the options with defaults
1374
+ call_metadata = @config.rpcs.move_folder.metadata.to_h
1375
+
1376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1377
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1378
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1379
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1380
+ transports_version_send: [:rest]
1381
+
1382
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1383
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1384
+
1385
+ options.apply_defaults timeout: @config.rpcs.move_folder.timeout,
1386
+ metadata: call_metadata,
1387
+ retry_policy: @config.rpcs.move_folder.retry_policy
1388
+
1389
+ options.apply_defaults timeout: @config.timeout,
1390
+ metadata: @config.metadata,
1391
+ retry_policy: @config.retry_policy
1392
+
1393
+ @dataform_stub.move_folder request, options do |result, operation|
1394
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1395
+ yield result, operation if block_given?
1396
+ throw :response, result
1397
+ end
1398
+ rescue ::Gapic::Rest::Error => e
1399
+ raise ::Google::Cloud::Error.from_error(e)
1400
+ end
213
1401
 
214
1402
  ##
215
1403
  # Lists Repositories in a given project and location.
@@ -551,13 +1739,99 @@ module Google
551
1739
 
552
1740
  options.apply_defaults timeout: @config.rpcs.update_repository.timeout,
553
1741
  metadata: call_metadata,
554
- retry_policy: @config.rpcs.update_repository.retry_policy
1742
+ retry_policy: @config.rpcs.update_repository.retry_policy
1743
+
1744
+ options.apply_defaults timeout: @config.timeout,
1745
+ metadata: @config.metadata,
1746
+ retry_policy: @config.retry_policy
1747
+
1748
+ @dataform_stub.update_repository request, options do |result, operation|
1749
+ yield result, operation if block_given?
1750
+ end
1751
+ rescue ::Gapic::Rest::Error => e
1752
+ raise ::Google::Cloud::Error.from_error(e)
1753
+ end
1754
+
1755
+ ##
1756
+ # Deletes a single Repository.
1757
+ #
1758
+ # @overload delete_repository(request, options = nil)
1759
+ # Pass arguments to `delete_repository` via a request object, either of type
1760
+ # {::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest} or an equivalent Hash.
1761
+ #
1762
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest, ::Hash]
1763
+ # A request object representing the call parameters. Required. To specify no
1764
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1765
+ # @param options [::Gapic::CallOptions, ::Hash]
1766
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1767
+ #
1768
+ # @overload delete_repository(name: nil, force: nil)
1769
+ # Pass arguments to `delete_repository` via keyword arguments. Note that at
1770
+ # least one keyword argument is required. To specify no parameters, or to keep all
1771
+ # the default parameter values, pass an empty Hash as a request object (see above).
1772
+ #
1773
+ # @param name [::String]
1774
+ # Required. The repository's name.
1775
+ # @param force [::Boolean]
1776
+ # Optional. If set to true, child resources of this repository (compilation
1777
+ # results and workflow invocations) will also be deleted. Otherwise, the
1778
+ # request will only succeed if the repository has no child resources.
1779
+ #
1780
+ # **Note:** *This flag doesn't support deletion of workspaces, release
1781
+ # configs or workflow configs. If any of such resources exists in the
1782
+ # repository, the request will fail.*.
1783
+ # @yield [result, operation] Access the result along with the TransportOperation object
1784
+ # @yieldparam result [::Google::Protobuf::Empty]
1785
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1786
+ #
1787
+ # @return [::Google::Protobuf::Empty]
1788
+ #
1789
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1790
+ #
1791
+ # @example Basic example
1792
+ # require "google/cloud/dataform/v1beta1"
1793
+ #
1794
+ # # Create a client object. The client can be reused for multiple calls.
1795
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1796
+ #
1797
+ # # Create a request. To set request fields, pass in keyword arguments.
1798
+ # request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest.new
1799
+ #
1800
+ # # Call the delete_repository method.
1801
+ # result = client.delete_repository request
1802
+ #
1803
+ # # The returned object is of type Google::Protobuf::Empty.
1804
+ # p result
1805
+ #
1806
+ def delete_repository request, options = nil
1807
+ raise ::ArgumentError, "request must be provided" if request.nil?
1808
+
1809
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
1810
+
1811
+ # Converts hash and nil to an options object
1812
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1813
+
1814
+ # Customize the options with defaults
1815
+ call_metadata = @config.rpcs.delete_repository.metadata.to_h
1816
+
1817
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1818
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1819
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1820
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1821
+ transports_version_send: [:rest]
1822
+
1823
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1824
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1825
+
1826
+ options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
1827
+ metadata: call_metadata,
1828
+ retry_policy: @config.rpcs.delete_repository.retry_policy
555
1829
 
556
1830
  options.apply_defaults timeout: @config.timeout,
557
1831
  metadata: @config.metadata,
558
1832
  retry_policy: @config.retry_policy
559
1833
 
560
- @dataform_stub.update_repository request, options do |result, operation|
1834
+ @dataform_stub.delete_repository request, options do |result, operation|
561
1835
  yield result, operation if block_given?
562
1836
  end
563
1837
  rescue ::Gapic::Rest::Error => e
@@ -565,34 +1839,35 @@ module Google
565
1839
  end
566
1840
 
567
1841
  ##
568
- # Deletes a single Repository.
1842
+ # Moves a Repository to a new location.
569
1843
  #
570
- # @overload delete_repository(request, options = nil)
571
- # Pass arguments to `delete_repository` via a request object, either of type
572
- # {::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest} or an equivalent Hash.
1844
+ # @overload move_repository(request, options = nil)
1845
+ # Pass arguments to `move_repository` via a request object, either of type
1846
+ # {::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest} or an equivalent Hash.
573
1847
  #
574
- # @param request [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest, ::Hash]
1848
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest, ::Hash]
575
1849
  # A request object representing the call parameters. Required. To specify no
576
1850
  # parameters, or to keep all the default parameter values, pass an empty Hash.
577
1851
  # @param options [::Gapic::CallOptions, ::Hash]
578
1852
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
579
1853
  #
580
- # @overload delete_repository(name: nil, force: nil)
581
- # Pass arguments to `delete_repository` via keyword arguments. Note that at
1854
+ # @overload move_repository(name: nil, destination_containing_folder: nil)
1855
+ # Pass arguments to `move_repository` via keyword arguments. Note that at
582
1856
  # least one keyword argument is required. To specify no parameters, or to keep all
583
1857
  # the default parameter values, pass an empty Hash as a request object (see above).
584
1858
  #
585
1859
  # @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.)
1860
+ # Required. The full resource name of the repository to move.
1861
+ # @param destination_containing_folder [::String]
1862
+ # Optional. The name of the Folder, TeamFolder, or root location to move the
1863
+ # repository to. Can be in the format of: "" to move into the root User
1864
+ # folder, `projects/*/locations/*/folders/*`,
1865
+ # `projects/*/locations/*/teamFolders/*`
591
1866
  # @yield [result, operation] Access the result along with the TransportOperation object
592
- # @yieldparam result [::Google::Protobuf::Empty]
1867
+ # @yieldparam result [::Gapic::Operation]
593
1868
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
594
1869
  #
595
- # @return [::Google::Protobuf::Empty]
1870
+ # @return [::Gapic::Operation]
596
1871
  #
597
1872
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
598
1873
  #
@@ -603,24 +1878,31 @@ module Google
603
1878
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
604
1879
  #
605
1880
  # # 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
1881
+ # request = Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest.new
1882
+ #
1883
+ # # Call the move_repository method.
1884
+ # result = client.move_repository request
1885
+ #
1886
+ # # The returned object is of type Gapic::Operation. You can use it to
1887
+ # # check the status of an operation, cancel it, or wait for results.
1888
+ # # Here is how to wait for a response.
1889
+ # result.wait_until_done! timeout: 60
1890
+ # if result.response?
1891
+ # p result.response
1892
+ # else
1893
+ # puts "No response received."
1894
+ # end
613
1895
  #
614
- def delete_repository request, options = nil
1896
+ def move_repository request, options = nil
615
1897
  raise ::ArgumentError, "request must be provided" if request.nil?
616
1898
 
617
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
1899
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest
618
1900
 
619
1901
  # Converts hash and nil to an options object
620
1902
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
621
1903
 
622
1904
  # Customize the options with defaults
623
- call_metadata = @config.rpcs.delete_repository.metadata.to_h
1905
+ call_metadata = @config.rpcs.move_repository.metadata.to_h
624
1906
 
625
1907
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
1908
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -631,16 +1913,18 @@ module Google
631
1913
  call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
632
1914
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
633
1915
 
634
- options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
1916
+ options.apply_defaults timeout: @config.rpcs.move_repository.timeout,
635
1917
  metadata: call_metadata,
636
- retry_policy: @config.rpcs.delete_repository.retry_policy
1918
+ retry_policy: @config.rpcs.move_repository.retry_policy
637
1919
 
638
1920
  options.apply_defaults timeout: @config.timeout,
639
1921
  metadata: @config.metadata,
640
1922
  retry_policy: @config.retry_policy
641
1923
 
642
- @dataform_stub.delete_repository request, options do |result, operation|
1924
+ @dataform_stub.move_repository request, options do |result, operation|
1925
+ result = ::Gapic::Operation.new result, @operations_client, options: options
643
1926
  yield result, operation if block_given?
1927
+ throw :response, result
644
1928
  end
645
1929
  rescue ::Gapic::Rest::Error => e
646
1930
  raise ::Google::Cloud::Error.from_error(e)
@@ -4823,6 +6107,273 @@ module Google
4823
6107
  raise ::Google::Cloud::Error.from_error(e)
4824
6108
  end
4825
6109
 
6110
+ ##
6111
+ # Gets the access control policy for a resource.
6112
+ # Returns an empty policy if the resource exists and does not have a policy
6113
+ # set.
6114
+ #
6115
+ # @overload get_iam_policy(request, options = nil)
6116
+ # Pass arguments to `get_iam_policy` via a request object, either of type
6117
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
6118
+ #
6119
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
6120
+ # A request object representing the call parameters. Required. To specify no
6121
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6122
+ # @param options [::Gapic::CallOptions, ::Hash]
6123
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6124
+ #
6125
+ # @overload get_iam_policy(resource: nil, options: nil)
6126
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
6127
+ # least one keyword argument is required. To specify no parameters, or to keep all
6128
+ # the default parameter values, pass an empty Hash as a request object (see above).
6129
+ #
6130
+ # @param resource [::String]
6131
+ # REQUIRED: The resource for which the policy is being requested.
6132
+ # See the operation documentation for the appropriate value for this field.
6133
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
6134
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
6135
+ # `GetIamPolicy`.
6136
+ # @yield [result, operation] Access the result along with the TransportOperation object
6137
+ # @yieldparam result [::Google::Iam::V1::Policy]
6138
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6139
+ #
6140
+ # @return [::Google::Iam::V1::Policy]
6141
+ #
6142
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6143
+ #
6144
+ # @example Basic example
6145
+ # require "google/cloud/dataform/v1beta1"
6146
+ #
6147
+ # # Create a client object. The client can be reused for multiple calls.
6148
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
6149
+ #
6150
+ # # Create a request. To set request fields, pass in keyword arguments.
6151
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
6152
+ #
6153
+ # # Call the get_iam_policy method.
6154
+ # result = client.get_iam_policy request
6155
+ #
6156
+ # # The returned object is of type Google::Iam::V1::Policy.
6157
+ # p result
6158
+ #
6159
+ def get_iam_policy request, options = nil
6160
+ raise ::ArgumentError, "request must be provided" if request.nil?
6161
+
6162
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
6163
+
6164
+ # Converts hash and nil to an options object
6165
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6166
+
6167
+ # Customize the options with defaults
6168
+ call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
6169
+
6170
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6171
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6172
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6173
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
6174
+ transports_version_send: [:rest]
6175
+
6176
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6177
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6178
+
6179
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
6180
+ metadata: call_metadata,
6181
+ retry_policy: @config.rpcs.get_iam_policy.retry_policy
6182
+
6183
+ options.apply_defaults timeout: @config.timeout,
6184
+ metadata: @config.metadata,
6185
+ retry_policy: @config.retry_policy
6186
+
6187
+ @dataform_stub.get_iam_policy request, options do |result, operation|
6188
+ yield result, operation if block_given?
6189
+ end
6190
+ rescue ::Gapic::Rest::Error => e
6191
+ raise ::Google::Cloud::Error.from_error(e)
6192
+ end
6193
+
6194
+ ##
6195
+ # Sets the access control policy on the specified resource. Replaces any
6196
+ # existing policy.
6197
+ #
6198
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
6199
+ #
6200
+ # @overload set_iam_policy(request, options = nil)
6201
+ # Pass arguments to `set_iam_policy` via a request object, either of type
6202
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
6203
+ #
6204
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
6205
+ # A request object representing the call parameters. Required. To specify no
6206
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6207
+ # @param options [::Gapic::CallOptions, ::Hash]
6208
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6209
+ #
6210
+ # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
6211
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
6212
+ # least one keyword argument is required. To specify no parameters, or to keep all
6213
+ # the default parameter values, pass an empty Hash as a request object (see above).
6214
+ #
6215
+ # @param resource [::String]
6216
+ # REQUIRED: The resource for which the policy is being specified.
6217
+ # See the operation documentation for the appropriate value for this field.
6218
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
6219
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
6220
+ # the policy is limited to a few 10s of KB. An empty policy is a
6221
+ # valid policy but certain Cloud Platform services (such as Projects)
6222
+ # might reject them.
6223
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
6224
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
6225
+ # the fields in the mask will be modified. If no mask is provided, the
6226
+ # following default mask is used:
6227
+ #
6228
+ # `paths: "bindings, etag"`
6229
+ # @yield [result, operation] Access the result along with the TransportOperation object
6230
+ # @yieldparam result [::Google::Iam::V1::Policy]
6231
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6232
+ #
6233
+ # @return [::Google::Iam::V1::Policy]
6234
+ #
6235
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6236
+ #
6237
+ # @example Basic example
6238
+ # require "google/cloud/dataform/v1beta1"
6239
+ #
6240
+ # # Create a client object. The client can be reused for multiple calls.
6241
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
6242
+ #
6243
+ # # Create a request. To set request fields, pass in keyword arguments.
6244
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
6245
+ #
6246
+ # # Call the set_iam_policy method.
6247
+ # result = client.set_iam_policy request
6248
+ #
6249
+ # # The returned object is of type Google::Iam::V1::Policy.
6250
+ # p result
6251
+ #
6252
+ def set_iam_policy request, options = nil
6253
+ raise ::ArgumentError, "request must be provided" if request.nil?
6254
+
6255
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
6256
+
6257
+ # Converts hash and nil to an options object
6258
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6259
+
6260
+ # Customize the options with defaults
6261
+ call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
6262
+
6263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6264
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6265
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6266
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
6267
+ transports_version_send: [:rest]
6268
+
6269
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6270
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6271
+
6272
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
6273
+ metadata: call_metadata,
6274
+ retry_policy: @config.rpcs.set_iam_policy.retry_policy
6275
+
6276
+ options.apply_defaults timeout: @config.timeout,
6277
+ metadata: @config.metadata,
6278
+ retry_policy: @config.retry_policy
6279
+
6280
+ @dataform_stub.set_iam_policy request, options do |result, operation|
6281
+ yield result, operation if block_given?
6282
+ end
6283
+ rescue ::Gapic::Rest::Error => e
6284
+ raise ::Google::Cloud::Error.from_error(e)
6285
+ end
6286
+
6287
+ ##
6288
+ # Returns permissions that a caller has on the specified resource.
6289
+ # If the resource does not exist, this will return an empty set of
6290
+ # permissions, not a `NOT_FOUND` error.
6291
+ #
6292
+ # Note: This operation is designed to be used for building permission-aware
6293
+ # UIs and command-line tools, not for authorization checking. This operation
6294
+ # may "fail open" without warning.
6295
+ #
6296
+ # @overload test_iam_permissions(request, options = nil)
6297
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
6298
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
6299
+ #
6300
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
6301
+ # A request object representing the call parameters. Required. To specify no
6302
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6303
+ # @param options [::Gapic::CallOptions, ::Hash]
6304
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6305
+ #
6306
+ # @overload test_iam_permissions(resource: nil, permissions: nil)
6307
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
6308
+ # least one keyword argument is required. To specify no parameters, or to keep all
6309
+ # the default parameter values, pass an empty Hash as a request object (see above).
6310
+ #
6311
+ # @param resource [::String]
6312
+ # REQUIRED: The resource for which the policy detail is being requested.
6313
+ # See the operation documentation for the appropriate value for this field.
6314
+ # @param permissions [::Array<::String>]
6315
+ # The set of permissions to check for the `resource`. Permissions with
6316
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
6317
+ # information see
6318
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
6319
+ # @yield [result, operation] Access the result along with the TransportOperation object
6320
+ # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
6321
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6322
+ #
6323
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
6324
+ #
6325
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6326
+ #
6327
+ # @example Basic example
6328
+ # require "google/cloud/dataform/v1beta1"
6329
+ #
6330
+ # # Create a client object. The client can be reused for multiple calls.
6331
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
6332
+ #
6333
+ # # Create a request. To set request fields, pass in keyword arguments.
6334
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
6335
+ #
6336
+ # # Call the test_iam_permissions method.
6337
+ # result = client.test_iam_permissions request
6338
+ #
6339
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
6340
+ # p result
6341
+ #
6342
+ def test_iam_permissions request, options = nil
6343
+ raise ::ArgumentError, "request must be provided" if request.nil?
6344
+
6345
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
6346
+
6347
+ # Converts hash and nil to an options object
6348
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6349
+
6350
+ # Customize the options with defaults
6351
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
6352
+
6353
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6354
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6355
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6356
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
6357
+ transports_version_send: [:rest]
6358
+
6359
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6360
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6361
+
6362
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
6363
+ metadata: call_metadata,
6364
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
6365
+
6366
+ options.apply_defaults timeout: @config.timeout,
6367
+ metadata: @config.metadata,
6368
+ retry_policy: @config.retry_policy
6369
+
6370
+ @dataform_stub.test_iam_permissions request, options do |result, operation|
6371
+ yield result, operation if block_given?
6372
+ end
6373
+ rescue ::Gapic::Rest::Error => e
6374
+ raise ::Google::Cloud::Error.from_error(e)
6375
+ end
6376
+
4826
6377
  ##
4827
6378
  # Configuration class for the Dataform REST API.
4828
6379
  #
@@ -4839,17 +6390,17 @@ module Google
4839
6390
  # @example
4840
6391
  #
4841
6392
  # # Modify the global config, setting the timeout for
4842
- # # list_repositories to 20 seconds,
6393
+ # # get_team_folder to 20 seconds,
4843
6394
  # # and all remaining timeouts to 10 seconds.
4844
6395
  # ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.configure do |config|
4845
6396
  # config.timeout = 10.0
4846
- # config.rpcs.list_repositories.timeout = 20.0
6397
+ # config.rpcs.get_team_folder.timeout = 20.0
4847
6398
  # end
4848
6399
  #
4849
6400
  # # Apply the above configuration only to a new client.
4850
6401
  # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new do |config|
4851
6402
  # config.timeout = 10.0
4852
- # config.rpcs.list_repositories.timeout = 20.0
6403
+ # config.rpcs.get_team_folder.timeout = 20.0
4853
6404
  # end
4854
6405
  #
4855
6406
  # @!attribute [rw] endpoint
@@ -4893,6 +6444,7 @@ module Google
4893
6444
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4894
6445
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4895
6446
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
6447
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
4896
6448
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4897
6449
  # trigger a retry.
4898
6450
  # @return [::Hash]
@@ -4972,10 +6524,76 @@ module Google
4972
6524
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4973
6525
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4974
6526
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
6527
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
4975
6528
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4976
6529
  # trigger a retry.
4977
6530
  #
4978
6531
  class Rpcs
6532
+ ##
6533
+ # RPC-specific configuration for `get_team_folder`
6534
+ # @return [::Gapic::Config::Method]
6535
+ #
6536
+ attr_reader :get_team_folder
6537
+ ##
6538
+ # RPC-specific configuration for `create_team_folder`
6539
+ # @return [::Gapic::Config::Method]
6540
+ #
6541
+ attr_reader :create_team_folder
6542
+ ##
6543
+ # RPC-specific configuration for `update_team_folder`
6544
+ # @return [::Gapic::Config::Method]
6545
+ #
6546
+ attr_reader :update_team_folder
6547
+ ##
6548
+ # RPC-specific configuration for `delete_team_folder`
6549
+ # @return [::Gapic::Config::Method]
6550
+ #
6551
+ attr_reader :delete_team_folder
6552
+ ##
6553
+ # RPC-specific configuration for `query_team_folder_contents`
6554
+ # @return [::Gapic::Config::Method]
6555
+ #
6556
+ attr_reader :query_team_folder_contents
6557
+ ##
6558
+ # RPC-specific configuration for `search_team_folders`
6559
+ # @return [::Gapic::Config::Method]
6560
+ #
6561
+ attr_reader :search_team_folders
6562
+ ##
6563
+ # RPC-specific configuration for `get_folder`
6564
+ # @return [::Gapic::Config::Method]
6565
+ #
6566
+ attr_reader :get_folder
6567
+ ##
6568
+ # RPC-specific configuration for `create_folder`
6569
+ # @return [::Gapic::Config::Method]
6570
+ #
6571
+ attr_reader :create_folder
6572
+ ##
6573
+ # RPC-specific configuration for `update_folder`
6574
+ # @return [::Gapic::Config::Method]
6575
+ #
6576
+ attr_reader :update_folder
6577
+ ##
6578
+ # RPC-specific configuration for `delete_folder`
6579
+ # @return [::Gapic::Config::Method]
6580
+ #
6581
+ attr_reader :delete_folder
6582
+ ##
6583
+ # RPC-specific configuration for `query_folder_contents`
6584
+ # @return [::Gapic::Config::Method]
6585
+ #
6586
+ attr_reader :query_folder_contents
6587
+ ##
6588
+ # RPC-specific configuration for `query_user_root_contents`
6589
+ # @return [::Gapic::Config::Method]
6590
+ #
6591
+ attr_reader :query_user_root_contents
6592
+ ##
6593
+ # RPC-specific configuration for `move_folder`
6594
+ # @return [::Gapic::Config::Method]
6595
+ #
6596
+ attr_reader :move_folder
4979
6597
  ##
4980
6598
  # RPC-specific configuration for `list_repositories`
4981
6599
  # @return [::Gapic::Config::Method]
@@ -5002,6 +6620,11 @@ module Google
5002
6620
  #
5003
6621
  attr_reader :delete_repository
5004
6622
  ##
6623
+ # RPC-specific configuration for `move_repository`
6624
+ # @return [::Gapic::Config::Method]
6625
+ #
6626
+ attr_reader :move_repository
6627
+ ##
5005
6628
  # RPC-specific configuration for `commit_repository_changes`
5006
6629
  # @return [::Gapic::Config::Method]
5007
6630
  #
@@ -5246,9 +6869,50 @@ module Google
5246
6869
  # @return [::Gapic::Config::Method]
5247
6870
  #
5248
6871
  attr_reader :update_config
6872
+ ##
6873
+ # RPC-specific configuration for `get_iam_policy`
6874
+ # @return [::Gapic::Config::Method]
6875
+ #
6876
+ attr_reader :get_iam_policy
6877
+ ##
6878
+ # RPC-specific configuration for `set_iam_policy`
6879
+ # @return [::Gapic::Config::Method]
6880
+ #
6881
+ attr_reader :set_iam_policy
6882
+ ##
6883
+ # RPC-specific configuration for `test_iam_permissions`
6884
+ # @return [::Gapic::Config::Method]
6885
+ #
6886
+ attr_reader :test_iam_permissions
5249
6887
 
5250
6888
  # @private
5251
6889
  def initialize parent_rpcs = nil
6890
+ get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder
6891
+ @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config
6892
+ create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder
6893
+ @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config
6894
+ update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder
6895
+ @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config
6896
+ delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder
6897
+ @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config
6898
+ query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents
6899
+ @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config
6900
+ search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders
6901
+ @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config
6902
+ get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder
6903
+ @get_folder = ::Gapic::Config::Method.new get_folder_config
6904
+ create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder
6905
+ @create_folder = ::Gapic::Config::Method.new create_folder_config
6906
+ update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder
6907
+ @update_folder = ::Gapic::Config::Method.new update_folder_config
6908
+ delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder
6909
+ @delete_folder = ::Gapic::Config::Method.new delete_folder_config
6910
+ query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents
6911
+ @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config
6912
+ query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents
6913
+ @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config
6914
+ move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder
6915
+ @move_folder = ::Gapic::Config::Method.new move_folder_config
5252
6916
  list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
5253
6917
  @list_repositories = ::Gapic::Config::Method.new list_repositories_config
5254
6918
  get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
@@ -5259,6 +6923,8 @@ module Google
5259
6923
  @update_repository = ::Gapic::Config::Method.new update_repository_config
5260
6924
  delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
5261
6925
  @delete_repository = ::Gapic::Config::Method.new delete_repository_config
6926
+ move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository
6927
+ @move_repository = ::Gapic::Config::Method.new move_repository_config
5262
6928
  commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes
5263
6929
  @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config
5264
6930
  read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file
@@ -5357,6 +7023,12 @@ module Google
5357
7023
  @get_config = ::Gapic::Config::Method.new get_config_config
5358
7024
  update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config
5359
7025
  @update_config = ::Gapic::Config::Method.new update_config_config
7026
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
7027
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
7028
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
7029
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
7030
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
7031
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
5360
7032
 
5361
7033
  yield self if block_given?
5362
7034
  end