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
@@ -152,6 +152,13 @@ module Google
152
152
  @quota_project_id = @config.quota_project
153
153
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
154
 
155
+ @operations_client = Operations.new do |config|
156
+ config.credentials = credentials
157
+ config.quota_project = @quota_project_id
158
+ config.endpoint = @config.endpoint
159
+ config.universe_domain = @config.universe_domain
160
+ end
161
+
155
162
  @dataform_stub = ::Gapic::ServiceStub.new(
156
163
  ::Google::Cloud::Dataform::V1beta1::Dataform::Stub,
157
164
  credentials: credentials,
@@ -164,57 +171,1330 @@ module Google
164
171
  logger: @config.logger
165
172
  )
166
173
 
167
- @dataform_stub.stub_logger&.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
174
+ @dataform_stub.stub_logger&.info do |entry|
175
+ entry.set_system_name
176
+ entry.set_service
177
+ entry.message = "Created client for #{entry.service}"
178
+ entry.set_credentials_fields credentials
179
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
180
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
181
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
182
+ end
183
+
184
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
185
+ config.credentials = credentials
186
+ config.quota_project = @quota_project_id
187
+ config.endpoint = @dataform_stub.endpoint
188
+ config.universe_domain = @dataform_stub.universe_domain
189
+ config.logger = @dataform_stub.logger if config.respond_to? :logger=
190
+ end
191
+
192
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
193
+ config.credentials = credentials
194
+ config.quota_project = @quota_project_id
195
+ config.endpoint = @dataform_stub.endpoint
196
+ config.universe_domain = @dataform_stub.universe_domain
197
+ config.logger = @dataform_stub.logger if config.respond_to? :logger=
198
+ end
199
+ end
200
+
201
+ ##
202
+ # Get the associated client for long-running operations.
203
+ #
204
+ # @return [::Google::Cloud::Dataform::V1beta1::Dataform::Operations]
205
+ #
206
+ attr_reader :operations_client
207
+
208
+ ##
209
+ # Get the associated client for mix-in of the Locations.
210
+ #
211
+ # @return [Google::Cloud::Location::Locations::Client]
212
+ #
213
+ attr_reader :location_client
214
+
215
+ ##
216
+ # Get the associated client for mix-in of the IAMPolicy.
217
+ #
218
+ # @return [Google::Iam::V1::IAMPolicy::Client]
219
+ #
220
+ attr_reader :iam_policy_client
221
+
222
+ ##
223
+ # The logger used for request/response debug logging.
224
+ #
225
+ # @return [Logger]
226
+ #
227
+ def logger
228
+ @dataform_stub.logger
229
+ end
230
+
231
+ # Service calls
232
+
233
+ ##
234
+ # Fetches a single TeamFolder.
235
+ #
236
+ # @overload get_team_folder(request, options = nil)
237
+ # Pass arguments to `get_team_folder` via a request object, either of type
238
+ # {::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest} or an equivalent Hash.
239
+ #
240
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest, ::Hash]
241
+ # A request object representing the call parameters. Required. To specify no
242
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
243
+ # @param options [::Gapic::CallOptions, ::Hash]
244
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
245
+ #
246
+ # @overload get_team_folder(name: nil)
247
+ # Pass arguments to `get_team_folder` via keyword arguments. Note that at
248
+ # least one keyword argument is required. To specify no parameters, or to keep all
249
+ # the default parameter values, pass an empty Hash as a request object (see above).
250
+ #
251
+ # @param name [::String]
252
+ # Required. The TeamFolder's name.
253
+ #
254
+ # @yield [response, operation] Access the result along with the RPC operation
255
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::TeamFolder]
256
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
257
+ #
258
+ # @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
259
+ #
260
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
261
+ #
262
+ # @example Basic example
263
+ # require "google/cloud/dataform/v1beta1"
264
+ #
265
+ # # Create a client object. The client can be reused for multiple calls.
266
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
267
+ #
268
+ # # Create a request. To set request fields, pass in keyword arguments.
269
+ # request = Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest.new
270
+ #
271
+ # # Call the get_team_folder method.
272
+ # result = client.get_team_folder request
273
+ #
274
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
275
+ # p result
276
+ #
277
+ def get_team_folder request, options = nil
278
+ raise ::ArgumentError, "request must be provided" if request.nil?
279
+
280
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest
281
+
282
+ # Converts hash and nil to an options object
283
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
284
+
285
+ # Customize the options with defaults
286
+ metadata = @config.rpcs.get_team_folder.metadata.to_h
287
+
288
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
289
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
290
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
291
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
292
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
293
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
294
+
295
+ header_params = {}
296
+ if request.name
297
+ header_params["name"] = request.name
298
+ end
299
+
300
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
301
+ metadata[:"x-goog-request-params"] ||= request_params_header
302
+
303
+ options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout,
304
+ metadata: metadata,
305
+ retry_policy: @config.rpcs.get_team_folder.retry_policy
306
+
307
+ options.apply_defaults timeout: @config.timeout,
308
+ metadata: @config.metadata,
309
+ retry_policy: @config.retry_policy
310
+
311
+ @dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation|
312
+ yield response, operation if block_given?
313
+ end
314
+ rescue ::GRPC::BadStatus => e
315
+ raise ::Google::Cloud::Error.from_error(e)
316
+ end
317
+
318
+ ##
319
+ # Creates a new TeamFolder in a given project and location.
320
+ #
321
+ # @overload create_team_folder(request, options = nil)
322
+ # Pass arguments to `create_team_folder` via a request object, either of type
323
+ # {::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest} or an equivalent Hash.
324
+ #
325
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest, ::Hash]
326
+ # A request object representing the call parameters. Required. To specify no
327
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
328
+ # @param options [::Gapic::CallOptions, ::Hash]
329
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
330
+ #
331
+ # @overload create_team_folder(parent: nil, team_folder: nil, team_folder_id: nil)
332
+ # Pass arguments to `create_team_folder` via keyword arguments. Note that at
333
+ # least one keyword argument is required. To specify no parameters, or to keep all
334
+ # the default parameter values, pass an empty Hash as a request object (see above).
335
+ #
336
+ # @param parent [::String]
337
+ # Required. The location in which to create the TeamFolder. Must be in the
338
+ # format `projects/*/locations/*`.
339
+ # @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
340
+ # Required. The TeamFolder to create.
341
+ # @param team_folder_id [::String]
342
+ # The ID to use for the TeamFolder, which will become the final component of
343
+ # the TeamFolder's resource name.
344
+ #
345
+ # @yield [response, operation] Access the result along with the RPC operation
346
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::TeamFolder]
347
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
348
+ #
349
+ # @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
350
+ #
351
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
352
+ #
353
+ # @example Basic example
354
+ # require "google/cloud/dataform/v1beta1"
355
+ #
356
+ # # Create a client object. The client can be reused for multiple calls.
357
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
358
+ #
359
+ # # Create a request. To set request fields, pass in keyword arguments.
360
+ # request = Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest.new
361
+ #
362
+ # # Call the create_team_folder method.
363
+ # result = client.create_team_folder request
364
+ #
365
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
366
+ # p result
367
+ #
368
+ def create_team_folder request, options = nil
369
+ raise ::ArgumentError, "request must be provided" if request.nil?
370
+
371
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest
372
+
373
+ # Converts hash and nil to an options object
374
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
375
+
376
+ # Customize the options with defaults
377
+ metadata = @config.rpcs.create_team_folder.metadata.to_h
378
+
379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
382
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
383
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
384
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
385
+
386
+ header_params = {}
387
+ if request.parent
388
+ header_params["parent"] = request.parent
389
+ end
390
+
391
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
392
+ metadata[:"x-goog-request-params"] ||= request_params_header
393
+
394
+ options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout,
395
+ metadata: metadata,
396
+ retry_policy: @config.rpcs.create_team_folder.retry_policy
397
+
398
+ options.apply_defaults timeout: @config.timeout,
399
+ metadata: @config.metadata,
400
+ retry_policy: @config.retry_policy
401
+
402
+ @dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation|
403
+ yield response, operation if block_given?
404
+ end
405
+ rescue ::GRPC::BadStatus => e
406
+ raise ::Google::Cloud::Error.from_error(e)
407
+ end
408
+
409
+ ##
410
+ # Updates a single TeamFolder.
411
+ #
412
+ # @overload update_team_folder(request, options = nil)
413
+ # Pass arguments to `update_team_folder` via a request object, either of type
414
+ # {::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest} or an equivalent Hash.
415
+ #
416
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest, ::Hash]
417
+ # A request object representing the call parameters. Required. To specify no
418
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
419
+ # @param options [::Gapic::CallOptions, ::Hash]
420
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
421
+ #
422
+ # @overload update_team_folder(update_mask: nil, team_folder: nil)
423
+ # Pass arguments to `update_team_folder` via keyword arguments. Note that at
424
+ # least one keyword argument is required. To specify no parameters, or to keep all
425
+ # the default parameter values, pass an empty Hash as a request object (see above).
426
+ #
427
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
428
+ # Optional. Specifies the fields to be updated in the Folder. If left unset,
429
+ # all fields will be updated.
430
+ # @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
431
+ # Required. The updated TeamFolder.
432
+ #
433
+ # @yield [response, operation] Access the result along with the RPC operation
434
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::TeamFolder]
435
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
436
+ #
437
+ # @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
438
+ #
439
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
440
+ #
441
+ # @example Basic example
442
+ # require "google/cloud/dataform/v1beta1"
443
+ #
444
+ # # Create a client object. The client can be reused for multiple calls.
445
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
446
+ #
447
+ # # Create a request. To set request fields, pass in keyword arguments.
448
+ # request = Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest.new
449
+ #
450
+ # # Call the update_team_folder method.
451
+ # result = client.update_team_folder request
452
+ #
453
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
454
+ # p result
455
+ #
456
+ def update_team_folder request, options = nil
457
+ raise ::ArgumentError, "request must be provided" if request.nil?
458
+
459
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest
460
+
461
+ # Converts hash and nil to an options object
462
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
463
+
464
+ # Customize the options with defaults
465
+ metadata = @config.rpcs.update_team_folder.metadata.to_h
466
+
467
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
468
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
469
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
470
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
471
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
472
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
473
+
474
+ header_params = {}
475
+ if request.team_folder&.name
476
+ header_params["team_folder.name"] = request.team_folder.name
477
+ end
478
+
479
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
480
+ metadata[:"x-goog-request-params"] ||= request_params_header
481
+
482
+ options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout,
483
+ metadata: metadata,
484
+ retry_policy: @config.rpcs.update_team_folder.retry_policy
485
+
486
+ options.apply_defaults timeout: @config.timeout,
487
+ metadata: @config.metadata,
488
+ retry_policy: @config.retry_policy
489
+
490
+ @dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation|
491
+ yield response, operation if block_given?
492
+ end
493
+ rescue ::GRPC::BadStatus => e
494
+ raise ::Google::Cloud::Error.from_error(e)
495
+ end
496
+
497
+ ##
498
+ # Deletes a single TeamFolder.
499
+ #
500
+ # @overload delete_team_folder(request, options = nil)
501
+ # Pass arguments to `delete_team_folder` via a request object, either of type
502
+ # {::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest} or an equivalent Hash.
503
+ #
504
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest, ::Hash]
505
+ # A request object representing the call parameters. Required. To specify no
506
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
507
+ # @param options [::Gapic::CallOptions, ::Hash]
508
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
509
+ #
510
+ # @overload delete_team_folder(name: nil)
511
+ # Pass arguments to `delete_team_folder` via keyword arguments. Note that at
512
+ # least one keyword argument is required. To specify no parameters, or to keep all
513
+ # the default parameter values, pass an empty Hash as a request object (see above).
514
+ #
515
+ # @param name [::String]
516
+ # Required. The TeamFolder's name.
517
+ #
518
+ # @yield [response, operation] Access the result along with the RPC operation
519
+ # @yieldparam response [::Google::Protobuf::Empty]
520
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
521
+ #
522
+ # @return [::Google::Protobuf::Empty]
523
+ #
524
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
525
+ #
526
+ # @example Basic example
527
+ # require "google/cloud/dataform/v1beta1"
528
+ #
529
+ # # Create a client object. The client can be reused for multiple calls.
530
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
531
+ #
532
+ # # Create a request. To set request fields, pass in keyword arguments.
533
+ # request = Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest.new
534
+ #
535
+ # # Call the delete_team_folder method.
536
+ # result = client.delete_team_folder request
537
+ #
538
+ # # The returned object is of type Google::Protobuf::Empty.
539
+ # p result
540
+ #
541
+ def delete_team_folder request, options = nil
542
+ raise ::ArgumentError, "request must be provided" if request.nil?
543
+
544
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest
545
+
546
+ # Converts hash and nil to an options object
547
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
548
+
549
+ # Customize the options with defaults
550
+ metadata = @config.rpcs.delete_team_folder.metadata.to_h
551
+
552
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
553
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
554
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
555
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
556
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
557
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
558
+
559
+ header_params = {}
560
+ if request.name
561
+ header_params["name"] = request.name
562
+ end
563
+
564
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
565
+ metadata[:"x-goog-request-params"] ||= request_params_header
566
+
567
+ options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout,
568
+ metadata: metadata,
569
+ retry_policy: @config.rpcs.delete_team_folder.retry_policy
570
+
571
+ options.apply_defaults timeout: @config.timeout,
572
+ metadata: @config.metadata,
573
+ retry_policy: @config.retry_policy
574
+
575
+ @dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation|
576
+ yield response, operation if block_given?
577
+ end
578
+ rescue ::GRPC::BadStatus => e
579
+ raise ::Google::Cloud::Error.from_error(e)
580
+ end
581
+
582
+ ##
583
+ # Returns the contents of a given TeamFolder.
584
+ #
585
+ # @overload query_team_folder_contents(request, options = nil)
586
+ # Pass arguments to `query_team_folder_contents` via a request object, either of type
587
+ # {::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest} or an equivalent Hash.
588
+ #
589
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest, ::Hash]
590
+ # A request object representing the call parameters. Required. To specify no
591
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
592
+ # @param options [::Gapic::CallOptions, ::Hash]
593
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
594
+ #
595
+ # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
596
+ # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at
597
+ # least one keyword argument is required. To specify no parameters, or to keep all
598
+ # the default parameter values, pass an empty Hash as a request object (see above).
599
+ #
600
+ # @param team_folder [::String]
601
+ # Required. Name of the team_folder whose contents to list.
602
+ # Format: `projects/*/locations/*/teamFolders/*`.
603
+ # @param page_size [::Integer]
604
+ # Optional. Maximum number of paths to return. The server may return fewer
605
+ # items than requested. If unspecified, the server will pick an appropriate
606
+ # default.
607
+ # @param page_token [::String]
608
+ # Optional. Page token received from a previous `QueryTeamFolderContents`
609
+ # call. Provide this to retrieve the subsequent page.
610
+ #
611
+ # When paginating, all other parameters provided to
612
+ # `QueryTeamFolderContents`, with the exception of `page_size`, must match
613
+ # the call that provided the page token.
614
+ # @param order_by [::String]
615
+ # Optional. Field to additionally sort results by.
616
+ # Will order Folders before Repositories, and then by `order_by` in ascending
617
+ # order. Supported keywords: `display_name` (default), `create_time`,
618
+ # last_modified_time.
619
+ # Examples:
620
+ # - `orderBy="display_name"`
621
+ # - `orderBy="display_name desc"`
622
+ # @param filter [::String]
623
+ # Optional. Optional filtering for the returned list. Filtering is currently
624
+ # only supported on the `display_name` field.
625
+ #
626
+ # Example:
627
+ # - `filter="display_name="MyFolder""`
628
+ #
629
+ # @yield [response, operation] Access the result along with the RPC operation
630
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
631
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
632
+ #
633
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
634
+ #
635
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
636
+ #
637
+ # @example Basic example
638
+ # require "google/cloud/dataform/v1beta1"
639
+ #
640
+ # # Create a client object. The client can be reused for multiple calls.
641
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
642
+ #
643
+ # # Create a request. To set request fields, pass in keyword arguments.
644
+ # request = Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest.new
645
+ #
646
+ # # Call the query_team_folder_contents method.
647
+ # result = client.query_team_folder_contents request
648
+ #
649
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
650
+ # # over elements, and API calls will be issued to fetch pages as needed.
651
+ # result.each do |item|
652
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry.
653
+ # p item
654
+ # end
655
+ #
656
+ def query_team_folder_contents request, options = nil
657
+ raise ::ArgumentError, "request must be provided" if request.nil?
658
+
659
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest
660
+
661
+ # Converts hash and nil to an options object
662
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
663
+
664
+ # Customize the options with defaults
665
+ metadata = @config.rpcs.query_team_folder_contents.metadata.to_h
666
+
667
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
668
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
669
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
670
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
671
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
672
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
673
+
674
+ header_params = {}
675
+ if request.team_folder
676
+ header_params["team_folder"] = request.team_folder
677
+ end
678
+
679
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
680
+ metadata[:"x-goog-request-params"] ||= request_params_header
681
+
682
+ options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout,
683
+ metadata: metadata,
684
+ retry_policy: @config.rpcs.query_team_folder_contents.retry_policy
685
+
686
+ options.apply_defaults timeout: @config.timeout,
687
+ metadata: @config.metadata,
688
+ retry_policy: @config.retry_policy
689
+
690
+ @dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation|
691
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options
692
+ yield response, operation if block_given?
693
+ throw :response, response
694
+ end
695
+ rescue ::GRPC::BadStatus => e
696
+ raise ::Google::Cloud::Error.from_error(e)
697
+ end
698
+
699
+ ##
700
+ # Returns all TeamFolders in a given location that the caller has access to
701
+ # and match the provided filter.
702
+ #
703
+ # @overload search_team_folders(request, options = nil)
704
+ # Pass arguments to `search_team_folders` via a request object, either of type
705
+ # {::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest} or an equivalent Hash.
706
+ #
707
+ # @param request [::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest, ::Hash]
708
+ # A request object representing the call parameters. Required. To specify no
709
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
710
+ # @param options [::Gapic::CallOptions, ::Hash]
711
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
712
+ #
713
+ # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
714
+ # Pass arguments to `search_team_folders` via keyword arguments. Note that at
715
+ # least one keyword argument is required. To specify no parameters, or to keep all
716
+ # the default parameter values, pass an empty Hash as a request object (see above).
717
+ #
718
+ # @param location [::String]
719
+ # Required. Location in which to query TeamFolders.
720
+ # Format: `projects/*/locations/*`.
721
+ # @param page_size [::Integer]
722
+ # Optional. Maximum number of TeamFolders to return. The server may return
723
+ # fewer items than requested. If unspecified, the server will pick an
724
+ # appropriate default.
725
+ # @param page_token [::String]
726
+ # Optional. Page token received from a previous `SearchTeamFolders` call.
727
+ # Provide this to retrieve the subsequent page.
728
+ #
729
+ # When paginating, all other parameters provided to
730
+ # `SearchTeamFolders`, with the exception of `page_size`, must
731
+ # match the call that provided the page token.
732
+ # @param order_by [::String]
733
+ # Optional. Field to additionally sort results by.
734
+ # Supported keywords: `display_name` (default), `create_time`,
735
+ # `last_modified_time`. Examples:
736
+ # - `orderBy="display_name"`
737
+ # - `orderBy="display_name desc"`
738
+ # @param filter [::String]
739
+ # Optional. Optional filtering for the returned list. Filtering is currently
740
+ # only supported on the `display_name` field.
741
+ #
742
+ # Example:
743
+ # - `filter="display_name="MyFolder""`
744
+ #
745
+ # @yield [response, operation] Access the result along with the RPC operation
746
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
747
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
748
+ #
749
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
750
+ #
751
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
752
+ #
753
+ # @example Basic example
754
+ # require "google/cloud/dataform/v1beta1"
755
+ #
756
+ # # Create a client object. The client can be reused for multiple calls.
757
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
758
+ #
759
+ # # Create a request. To set request fields, pass in keyword arguments.
760
+ # request = Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest.new
761
+ #
762
+ # # Call the search_team_folders method.
763
+ # result = client.search_team_folders request
764
+ #
765
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
766
+ # # over elements, and API calls will be issued to fetch pages as needed.
767
+ # result.each do |item|
768
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult.
769
+ # p item
770
+ # end
771
+ #
772
+ def search_team_folders request, options = nil
773
+ raise ::ArgumentError, "request must be provided" if request.nil?
774
+
775
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest
776
+
777
+ # Converts hash and nil to an options object
778
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
779
+
780
+ # Customize the options with defaults
781
+ metadata = @config.rpcs.search_team_folders.metadata.to_h
782
+
783
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
784
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
785
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
786
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
787
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
788
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
789
+
790
+ header_params = {}
791
+ if request.location
792
+ header_params["location"] = request.location
793
+ end
794
+
795
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
796
+ metadata[:"x-goog-request-params"] ||= request_params_header
797
+
798
+ options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout,
799
+ metadata: metadata,
800
+ retry_policy: @config.rpcs.search_team_folders.retry_policy
801
+
802
+ options.apply_defaults timeout: @config.timeout,
803
+ metadata: @config.metadata,
804
+ retry_policy: @config.retry_policy
805
+
806
+ @dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation|
807
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options
808
+ yield response, operation if block_given?
809
+ throw :response, response
810
+ end
811
+ rescue ::GRPC::BadStatus => e
812
+ raise ::Google::Cloud::Error.from_error(e)
813
+ end
814
+
815
+ ##
816
+ # Fetches a single Folder.
817
+ #
818
+ # @overload get_folder(request, options = nil)
819
+ # Pass arguments to `get_folder` via a request object, either of type
820
+ # {::Google::Cloud::Dataform::V1beta1::GetFolderRequest} or an equivalent Hash.
821
+ #
822
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetFolderRequest, ::Hash]
823
+ # A request object representing the call parameters. Required. To specify no
824
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
825
+ # @param options [::Gapic::CallOptions, ::Hash]
826
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
827
+ #
828
+ # @overload get_folder(name: nil)
829
+ # Pass arguments to `get_folder` via keyword arguments. Note that at
830
+ # least one keyword argument is required. To specify no parameters, or to keep all
831
+ # the default parameter values, pass an empty Hash as a request object (see above).
832
+ #
833
+ # @param name [::String]
834
+ # Required. The Folder's name.
835
+ #
836
+ # @yield [response, operation] Access the result along with the RPC operation
837
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Folder]
838
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
839
+ #
840
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
841
+ #
842
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
843
+ #
844
+ # @example Basic example
845
+ # require "google/cloud/dataform/v1beta1"
846
+ #
847
+ # # Create a client object. The client can be reused for multiple calls.
848
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
849
+ #
850
+ # # Create a request. To set request fields, pass in keyword arguments.
851
+ # request = Google::Cloud::Dataform::V1beta1::GetFolderRequest.new
852
+ #
853
+ # # Call the get_folder method.
854
+ # result = client.get_folder request
855
+ #
856
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
857
+ # p result
858
+ #
859
+ def get_folder request, options = nil
860
+ raise ::ArgumentError, "request must be provided" if request.nil?
861
+
862
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetFolderRequest
863
+
864
+ # Converts hash and nil to an options object
865
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
866
+
867
+ # Customize the options with defaults
868
+ metadata = @config.rpcs.get_folder.metadata.to_h
869
+
870
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
871
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
872
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
873
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
874
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
875
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
876
+
877
+ header_params = {}
878
+ if request.name
879
+ header_params["name"] = request.name
880
+ end
881
+
882
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
883
+ metadata[:"x-goog-request-params"] ||= request_params_header
884
+
885
+ options.apply_defaults timeout: @config.rpcs.get_folder.timeout,
886
+ metadata: metadata,
887
+ retry_policy: @config.rpcs.get_folder.retry_policy
888
+
889
+ options.apply_defaults timeout: @config.timeout,
890
+ metadata: @config.metadata,
891
+ retry_policy: @config.retry_policy
892
+
893
+ @dataform_stub.call_rpc :get_folder, request, options: options do |response, operation|
894
+ yield response, operation if block_given?
895
+ end
896
+ rescue ::GRPC::BadStatus => e
897
+ raise ::Google::Cloud::Error.from_error(e)
898
+ end
899
+
900
+ ##
901
+ # Creates a new Folder in a given project and location.
902
+ #
903
+ # @overload create_folder(request, options = nil)
904
+ # Pass arguments to `create_folder` via a request object, either of type
905
+ # {::Google::Cloud::Dataform::V1beta1::CreateFolderRequest} or an equivalent Hash.
906
+ #
907
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateFolderRequest, ::Hash]
908
+ # A request object representing the call parameters. Required. To specify no
909
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
910
+ # @param options [::Gapic::CallOptions, ::Hash]
911
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
912
+ #
913
+ # @overload create_folder(parent: nil, folder: nil, folder_id: nil)
914
+ # Pass arguments to `create_folder` via keyword arguments. Note that at
915
+ # least one keyword argument is required. To specify no parameters, or to keep all
916
+ # the default parameter values, pass an empty Hash as a request object (see above).
917
+ #
918
+ # @param parent [::String]
919
+ # Required. The location in which to create the Folder. Must be in the format
920
+ # `projects/*/locations/*`.
921
+ # @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
922
+ # Required. The Folder to create.
923
+ # @param folder_id [::String]
924
+ # The ID to use for the Folder, which will become the final component of
925
+ # the Folder's resource name.
926
+ #
927
+ # @yield [response, operation] Access the result along with the RPC operation
928
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Folder]
929
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
930
+ #
931
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
932
+ #
933
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
934
+ #
935
+ # @example Basic example
936
+ # require "google/cloud/dataform/v1beta1"
937
+ #
938
+ # # Create a client object. The client can be reused for multiple calls.
939
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
940
+ #
941
+ # # Create a request. To set request fields, pass in keyword arguments.
942
+ # request = Google::Cloud::Dataform::V1beta1::CreateFolderRequest.new
943
+ #
944
+ # # Call the create_folder method.
945
+ # result = client.create_folder request
946
+ #
947
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
948
+ # p result
949
+ #
950
+ def create_folder request, options = nil
951
+ raise ::ArgumentError, "request must be provided" if request.nil?
952
+
953
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateFolderRequest
954
+
955
+ # Converts hash and nil to an options object
956
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
957
+
958
+ # Customize the options with defaults
959
+ metadata = @config.rpcs.create_folder.metadata.to_h
960
+
961
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
962
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
963
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
964
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
965
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
966
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
967
+
968
+ header_params = {}
969
+ if request.parent
970
+ header_params["parent"] = request.parent
971
+ end
972
+
973
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
974
+ metadata[:"x-goog-request-params"] ||= request_params_header
975
+
976
+ options.apply_defaults timeout: @config.rpcs.create_folder.timeout,
977
+ metadata: metadata,
978
+ retry_policy: @config.rpcs.create_folder.retry_policy
979
+
980
+ options.apply_defaults timeout: @config.timeout,
981
+ metadata: @config.metadata,
982
+ retry_policy: @config.retry_policy
983
+
984
+ @dataform_stub.call_rpc :create_folder, request, options: options do |response, operation|
985
+ yield response, operation if block_given?
986
+ end
987
+ rescue ::GRPC::BadStatus => e
988
+ raise ::Google::Cloud::Error.from_error(e)
989
+ end
990
+
991
+ ##
992
+ # Updates a single Folder.
993
+ #
994
+ # @overload update_folder(request, options = nil)
995
+ # Pass arguments to `update_folder` via a request object, either of type
996
+ # {::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest} or an equivalent Hash.
997
+ #
998
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest, ::Hash]
999
+ # A request object representing the call parameters. Required. To specify no
1000
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1001
+ # @param options [::Gapic::CallOptions, ::Hash]
1002
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1003
+ #
1004
+ # @overload update_folder(update_mask: nil, folder: nil)
1005
+ # Pass arguments to `update_folder` via keyword arguments. Note that at
1006
+ # least one keyword argument is required. To specify no parameters, or to keep all
1007
+ # the default parameter values, pass an empty Hash as a request object (see above).
1008
+ #
1009
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1010
+ # Optional. Specifies the fields to be updated in the Folder. If left unset,
1011
+ # all fields that can be updated, will be updated. A few fields cannot be
1012
+ # updated and will be ignored if specified in the update_mask (e.g.
1013
+ # parent_name, team_folder_name).
1014
+ # @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
1015
+ # Required. The updated Folder.
1016
+ #
1017
+ # @yield [response, operation] Access the result along with the RPC operation
1018
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Folder]
1019
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1020
+ #
1021
+ # @return [::Google::Cloud::Dataform::V1beta1::Folder]
1022
+ #
1023
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1024
+ #
1025
+ # @example Basic example
1026
+ # require "google/cloud/dataform/v1beta1"
1027
+ #
1028
+ # # Create a client object. The client can be reused for multiple calls.
1029
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1030
+ #
1031
+ # # Create a request. To set request fields, pass in keyword arguments.
1032
+ # request = Google::Cloud::Dataform::V1beta1::UpdateFolderRequest.new
1033
+ #
1034
+ # # Call the update_folder method.
1035
+ # result = client.update_folder request
1036
+ #
1037
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
1038
+ # p result
1039
+ #
1040
+ def update_folder request, options = nil
1041
+ raise ::ArgumentError, "request must be provided" if request.nil?
1042
+
1043
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest
1044
+
1045
+ # Converts hash and nil to an options object
1046
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1047
+
1048
+ # Customize the options with defaults
1049
+ metadata = @config.rpcs.update_folder.metadata.to_h
1050
+
1051
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1052
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1053
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1054
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1055
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1056
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1057
+
1058
+ header_params = {}
1059
+ if request.folder&.name
1060
+ header_params["folder.name"] = request.folder.name
1061
+ end
1062
+
1063
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1064
+ metadata[:"x-goog-request-params"] ||= request_params_header
1065
+
1066
+ options.apply_defaults timeout: @config.rpcs.update_folder.timeout,
1067
+ metadata: metadata,
1068
+ retry_policy: @config.rpcs.update_folder.retry_policy
1069
+
1070
+ options.apply_defaults timeout: @config.timeout,
1071
+ metadata: @config.metadata,
1072
+ retry_policy: @config.retry_policy
1073
+
1074
+ @dataform_stub.call_rpc :update_folder, request, options: options do |response, operation|
1075
+ yield response, operation if block_given?
1076
+ end
1077
+ rescue ::GRPC::BadStatus => e
1078
+ raise ::Google::Cloud::Error.from_error(e)
1079
+ end
1080
+
1081
+ ##
1082
+ # Deletes a single Folder.
1083
+ #
1084
+ # @overload delete_folder(request, options = nil)
1085
+ # Pass arguments to `delete_folder` via a request object, either of type
1086
+ # {::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest} or an equivalent Hash.
1087
+ #
1088
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest, ::Hash]
1089
+ # A request object representing the call parameters. Required. To specify no
1090
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1091
+ # @param options [::Gapic::CallOptions, ::Hash]
1092
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1093
+ #
1094
+ # @overload delete_folder(name: nil)
1095
+ # Pass arguments to `delete_folder` via keyword arguments. Note that at
1096
+ # least one keyword argument is required. To specify no parameters, or to keep all
1097
+ # the default parameter values, pass an empty Hash as a request object (see above).
1098
+ #
1099
+ # @param name [::String]
1100
+ # Required. The Folder's name.
1101
+ #
1102
+ # @yield [response, operation] Access the result along with the RPC operation
1103
+ # @yieldparam response [::Google::Protobuf::Empty]
1104
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1105
+ #
1106
+ # @return [::Google::Protobuf::Empty]
1107
+ #
1108
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1109
+ #
1110
+ # @example Basic example
1111
+ # require "google/cloud/dataform/v1beta1"
1112
+ #
1113
+ # # Create a client object. The client can be reused for multiple calls.
1114
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1115
+ #
1116
+ # # Create a request. To set request fields, pass in keyword arguments.
1117
+ # request = Google::Cloud::Dataform::V1beta1::DeleteFolderRequest.new
1118
+ #
1119
+ # # Call the delete_folder method.
1120
+ # result = client.delete_folder request
1121
+ #
1122
+ # # The returned object is of type Google::Protobuf::Empty.
1123
+ # p result
1124
+ #
1125
+ def delete_folder request, options = nil
1126
+ raise ::ArgumentError, "request must be provided" if request.nil?
1127
+
1128
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest
1129
+
1130
+ # Converts hash and nil to an options object
1131
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1132
+
1133
+ # Customize the options with defaults
1134
+ metadata = @config.rpcs.delete_folder.metadata.to_h
1135
+
1136
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1137
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1138
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1139
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1140
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1141
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1142
+
1143
+ header_params = {}
1144
+ if request.name
1145
+ header_params["name"] = request.name
1146
+ end
1147
+
1148
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1149
+ metadata[:"x-goog-request-params"] ||= request_params_header
1150
+
1151
+ options.apply_defaults timeout: @config.rpcs.delete_folder.timeout,
1152
+ metadata: metadata,
1153
+ retry_policy: @config.rpcs.delete_folder.retry_policy
1154
+
1155
+ options.apply_defaults timeout: @config.timeout,
1156
+ metadata: @config.metadata,
1157
+ retry_policy: @config.retry_policy
1158
+
1159
+ @dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation|
1160
+ yield response, operation if block_given?
1161
+ end
1162
+ rescue ::GRPC::BadStatus => e
1163
+ raise ::Google::Cloud::Error.from_error(e)
1164
+ end
1165
+
1166
+ ##
1167
+ # Returns the contents of a given Folder.
1168
+ #
1169
+ # @overload query_folder_contents(request, options = nil)
1170
+ # Pass arguments to `query_folder_contents` via a request object, either of type
1171
+ # {::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest} or an equivalent Hash.
1172
+ #
1173
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest, ::Hash]
1174
+ # A request object representing the call parameters. Required. To specify no
1175
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1176
+ # @param options [::Gapic::CallOptions, ::Hash]
1177
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1178
+ #
1179
+ # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
1180
+ # Pass arguments to `query_folder_contents` via keyword arguments. Note that at
1181
+ # least one keyword argument is required. To specify no parameters, or to keep all
1182
+ # the default parameter values, pass an empty Hash as a request object (see above).
1183
+ #
1184
+ # @param folder [::String]
1185
+ # Required. Name of the folder whose contents to list.
1186
+ # Format: projects/*/locations/*/folders/*
1187
+ # @param page_size [::Integer]
1188
+ # Optional. Maximum number of paths to return. The server may return fewer
1189
+ # items than requested. If unspecified, the server will pick an appropriate
1190
+ # default.
1191
+ # @param page_token [::String]
1192
+ # Optional. Page token received from a previous `QueryFolderContents` call.
1193
+ # Provide this to retrieve the subsequent page.
1194
+ #
1195
+ # When paginating, all other parameters provided to
1196
+ # `QueryFolderContents`, with the exception of `page_size`, must match the
1197
+ # call that provided the page token.
1198
+ # @param order_by [::String]
1199
+ # Optional. Field to additionally sort results by.
1200
+ # Will order Folders before Repositories, and then by `order_by` in ascending
1201
+ # order. Supported keywords: display_name (default), create_time,
1202
+ # last_modified_time.
1203
+ # Examples:
1204
+ # - `orderBy="display_name"`
1205
+ # - `orderBy="display_name desc"`
1206
+ # @param filter [::String]
1207
+ # Optional. Optional filtering for the returned list. Filtering is currently
1208
+ # only supported on the `display_name` field.
1209
+ #
1210
+ # Example:
1211
+ # - `filter="display_name="MyFolder""`
1212
+ #
1213
+ # @yield [response, operation] Access the result along with the RPC operation
1214
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
1215
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1216
+ #
1217
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
1218
+ #
1219
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1220
+ #
1221
+ # @example Basic example
1222
+ # require "google/cloud/dataform/v1beta1"
1223
+ #
1224
+ # # Create a client object. The client can be reused for multiple calls.
1225
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1226
+ #
1227
+ # # Create a request. To set request fields, pass in keyword arguments.
1228
+ # request = Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest.new
1229
+ #
1230
+ # # Call the query_folder_contents method.
1231
+ # result = client.query_folder_contents request
1232
+ #
1233
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1234
+ # # over elements, and API calls will be issued to fetch pages as needed.
1235
+ # result.each do |item|
1236
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry.
1237
+ # p item
1238
+ # end
1239
+ #
1240
+ def query_folder_contents request, options = nil
1241
+ raise ::ArgumentError, "request must be provided" if request.nil?
1242
+
1243
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest
1244
+
1245
+ # Converts hash and nil to an options object
1246
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1247
+
1248
+ # Customize the options with defaults
1249
+ metadata = @config.rpcs.query_folder_contents.metadata.to_h
1250
+
1251
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1252
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1253
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1254
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1255
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1256
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1257
+
1258
+ header_params = {}
1259
+ if request.folder
1260
+ header_params["folder"] = request.folder
175
1261
  end
176
1262
 
177
- @location_client = Google::Cloud::Location::Locations::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.logger = @dataform_stub.logger if config.respond_to? :logger=
183
- end
1263
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1264
+ metadata[:"x-goog-request-params"] ||= request_params_header
184
1265
 
185
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
186
- config.credentials = credentials
187
- config.quota_project = @quota_project_id
188
- config.endpoint = @dataform_stub.endpoint
189
- config.universe_domain = @dataform_stub.universe_domain
190
- config.logger = @dataform_stub.logger if config.respond_to? :logger=
1266
+ options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout,
1267
+ metadata: metadata,
1268
+ retry_policy: @config.rpcs.query_folder_contents.retry_policy
1269
+
1270
+ options.apply_defaults timeout: @config.timeout,
1271
+ metadata: @config.metadata,
1272
+ retry_policy: @config.retry_policy
1273
+
1274
+ @dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation|
1275
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options
1276
+ yield response, operation if block_given?
1277
+ throw :response, response
191
1278
  end
1279
+ rescue ::GRPC::BadStatus => e
1280
+ raise ::Google::Cloud::Error.from_error(e)
192
1281
  end
193
1282
 
194
1283
  ##
195
- # Get the associated client for mix-in of the Locations.
1284
+ # Returns the contents of a caller's root folder in a given location.
1285
+ # The root folder contains all resources that are created by the user and not
1286
+ # contained in any other folder.
196
1287
  #
197
- # @return [Google::Cloud::Location::Locations::Client]
1288
+ # @overload query_user_root_contents(request, options = nil)
1289
+ # Pass arguments to `query_user_root_contents` via a request object, either of type
1290
+ # {::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest} or an equivalent Hash.
198
1291
  #
199
- attr_reader :location_client
200
-
201
- ##
202
- # Get the associated client for mix-in of the IAMPolicy.
1292
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest, ::Hash]
1293
+ # A request object representing the call parameters. Required. To specify no
1294
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1295
+ # @param options [::Gapic::CallOptions, ::Hash]
1296
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
203
1297
  #
204
- # @return [Google::Iam::V1::IAMPolicy::Client]
1298
+ # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
1299
+ # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at
1300
+ # least one keyword argument is required. To specify no parameters, or to keep all
1301
+ # the default parameter values, pass an empty Hash as a request object (see above).
205
1302
  #
206
- attr_reader :iam_policy_client
1303
+ # @param location [::String]
1304
+ # Required. Location of the user root folder whose contents to list.
1305
+ # Format: projects/*/locations/*
1306
+ # @param page_size [::Integer]
1307
+ # Optional. Maximum number of paths to return. The server may return fewer
1308
+ # items than requested. If unspecified, the server will pick an appropriate
1309
+ # default.
1310
+ # @param page_token [::String]
1311
+ # Optional. Page token received from a previous `QueryUserRootContents` call.
1312
+ # Provide this to retrieve the subsequent page.
1313
+ #
1314
+ # When paginating, all other parameters provided to
1315
+ # `QueryUserRootFolderContents`, with the exception of `page_size`, must
1316
+ # match the call that provided the page token.
1317
+ # @param order_by [::String]
1318
+ # Optional. Field to additionally sort results by.
1319
+ # Will order Folders before Repositories, and then by `order_by` in ascending
1320
+ # order. Supported keywords: display_name (default), created_at,
1321
+ # last_modified_at. Examples:
1322
+ # - `orderBy="display_name"`
1323
+ # - `orderBy="display_name desc"`
1324
+ # @param filter [::String]
1325
+ # Optional. Optional filtering for the returned list. Filtering is currently
1326
+ # only supported on the `display_name` field.
1327
+ #
1328
+ # Example:
1329
+ # - `filter="display_name="MyFolder""`
1330
+ #
1331
+ # @yield [response, operation] Access the result along with the RPC operation
1332
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
1333
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1334
+ #
1335
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
1336
+ #
1337
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1338
+ #
1339
+ # @example Basic example
1340
+ # require "google/cloud/dataform/v1beta1"
1341
+ #
1342
+ # # Create a client object. The client can be reused for multiple calls.
1343
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1344
+ #
1345
+ # # Create a request. To set request fields, pass in keyword arguments.
1346
+ # request = Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest.new
1347
+ #
1348
+ # # Call the query_user_root_contents method.
1349
+ # result = client.query_user_root_contents request
1350
+ #
1351
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1352
+ # # over elements, and API calls will be issued to fetch pages as needed.
1353
+ # result.each do |item|
1354
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry.
1355
+ # p item
1356
+ # end
1357
+ #
1358
+ def query_user_root_contents request, options = nil
1359
+ raise ::ArgumentError, "request must be provided" if request.nil?
1360
+
1361
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest
1362
+
1363
+ # Converts hash and nil to an options object
1364
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1365
+
1366
+ # Customize the options with defaults
1367
+ metadata = @config.rpcs.query_user_root_contents.metadata.to_h
1368
+
1369
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1370
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1371
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1372
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1373
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1374
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1375
+
1376
+ header_params = {}
1377
+ if request.location
1378
+ header_params["location"] = request.location
1379
+ end
1380
+
1381
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1382
+ metadata[:"x-goog-request-params"] ||= request_params_header
1383
+
1384
+ options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout,
1385
+ metadata: metadata,
1386
+ retry_policy: @config.rpcs.query_user_root_contents.retry_policy
1387
+
1388
+ options.apply_defaults timeout: @config.timeout,
1389
+ metadata: @config.metadata,
1390
+ retry_policy: @config.retry_policy
1391
+
1392
+ @dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation|
1393
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options
1394
+ yield response, operation if block_given?
1395
+ throw :response, response
1396
+ end
1397
+ rescue ::GRPC::BadStatus => e
1398
+ raise ::Google::Cloud::Error.from_error(e)
1399
+ end
207
1400
 
208
1401
  ##
209
- # The logger used for request/response debug logging.
1402
+ # Moves a Folder to a new Folder, TeamFolder, or the root location.
210
1403
  #
211
- # @return [Logger]
1404
+ # @overload move_folder(request, options = nil)
1405
+ # Pass arguments to `move_folder` via a request object, either of type
1406
+ # {::Google::Cloud::Dataform::V1beta1::MoveFolderRequest} or an equivalent Hash.
212
1407
  #
213
- def logger
214
- @dataform_stub.logger
215
- end
1408
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveFolderRequest, ::Hash]
1409
+ # A request object representing the call parameters. Required. To specify no
1410
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1411
+ # @param options [::Gapic::CallOptions, ::Hash]
1412
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1413
+ #
1414
+ # @overload move_folder(name: nil, destination_containing_folder: nil)
1415
+ # Pass arguments to `move_folder` via keyword arguments. Note that at
1416
+ # least one keyword argument is required. To specify no parameters, or to keep all
1417
+ # the default parameter values, pass an empty Hash as a request object (see above).
1418
+ #
1419
+ # @param name [::String]
1420
+ # Required. The full resource name of the Folder to move.
1421
+ # @param destination_containing_folder [::String]
1422
+ # Optional. The name of the Folder, TeamFolder, or root location to move the
1423
+ # Folder to. Can be in the format of: "" to move into the root User folder,
1424
+ # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
1425
+ #
1426
+ # @yield [response, operation] Access the result along with the RPC operation
1427
+ # @yieldparam response [::Gapic::Operation]
1428
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1429
+ #
1430
+ # @return [::Gapic::Operation]
1431
+ #
1432
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1433
+ #
1434
+ # @example Basic example
1435
+ # require "google/cloud/dataform/v1beta1"
1436
+ #
1437
+ # # Create a client object. The client can be reused for multiple calls.
1438
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1439
+ #
1440
+ # # Create a request. To set request fields, pass in keyword arguments.
1441
+ # request = Google::Cloud::Dataform::V1beta1::MoveFolderRequest.new
1442
+ #
1443
+ # # Call the move_folder method.
1444
+ # result = client.move_folder request
1445
+ #
1446
+ # # The returned object is of type Gapic::Operation. You can use it to
1447
+ # # check the status of an operation, cancel it, or wait for results.
1448
+ # # Here is how to wait for a response.
1449
+ # result.wait_until_done! timeout: 60
1450
+ # if result.response?
1451
+ # p result.response
1452
+ # else
1453
+ # puts "No response received."
1454
+ # end
1455
+ #
1456
+ def move_folder request, options = nil
1457
+ raise ::ArgumentError, "request must be provided" if request.nil?
216
1458
 
217
- # Service calls
1459
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFolderRequest
1460
+
1461
+ # Converts hash and nil to an options object
1462
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1463
+
1464
+ # Customize the options with defaults
1465
+ metadata = @config.rpcs.move_folder.metadata.to_h
1466
+
1467
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1468
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1469
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1470
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1471
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1472
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1473
+
1474
+ header_params = {}
1475
+ if request.name
1476
+ header_params["name"] = request.name
1477
+ end
1478
+
1479
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1480
+ metadata[:"x-goog-request-params"] ||= request_params_header
1481
+
1482
+ options.apply_defaults timeout: @config.rpcs.move_folder.timeout,
1483
+ metadata: metadata,
1484
+ retry_policy: @config.rpcs.move_folder.retry_policy
1485
+
1486
+ options.apply_defaults timeout: @config.timeout,
1487
+ metadata: @config.metadata,
1488
+ retry_policy: @config.retry_policy
1489
+
1490
+ @dataform_stub.call_rpc :move_folder, request, options: options do |response, operation|
1491
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1492
+ yield response, operation if block_given?
1493
+ throw :response, response
1494
+ end
1495
+ rescue ::GRPC::BadStatus => e
1496
+ raise ::Google::Cloud::Error.from_error(e)
1497
+ end
218
1498
 
219
1499
  ##
220
1500
  # Lists Repositories in a given project and location.
@@ -618,9 +1898,13 @@ module Google
618
1898
  # @param name [::String]
619
1899
  # Required. The repository's name.
620
1900
  # @param force [::Boolean]
621
- # Optional. If set to true, any child resources of this repository will also
622
- # be deleted. (Otherwise, the request will only succeed if the repository has
623
- # no child resources.)
1901
+ # Optional. If set to true, child resources of this repository (compilation
1902
+ # results and workflow invocations) will also be deleted. Otherwise, the
1903
+ # request will only succeed if the repository has no child resources.
1904
+ #
1905
+ # **Note:** *This flag doesn't support deletion of workspaces, release
1906
+ # configs or workflow configs. If any of such resources exists in the
1907
+ # repository, the request will fail.*.
624
1908
  #
625
1909
  # @yield [response, operation] Access the result along with the RPC operation
626
1910
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -637,24 +1921,121 @@ module Google
637
1921
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
638
1922
  #
639
1923
  # # Create a request. To set request fields, pass in keyword arguments.
640
- # request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest.new
641
- #
642
- # # Call the delete_repository method.
643
- # result = client.delete_repository request
644
- #
645
- # # The returned object is of type Google::Protobuf::Empty.
646
- # p result
1924
+ # request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest.new
1925
+ #
1926
+ # # Call the delete_repository method.
1927
+ # result = client.delete_repository request
1928
+ #
1929
+ # # The returned object is of type Google::Protobuf::Empty.
1930
+ # p result
1931
+ #
1932
+ def delete_repository request, options = nil
1933
+ raise ::ArgumentError, "request must be provided" if request.nil?
1934
+
1935
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
1936
+
1937
+ # Converts hash and nil to an options object
1938
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1939
+
1940
+ # Customize the options with defaults
1941
+ metadata = @config.rpcs.delete_repository.metadata.to_h
1942
+
1943
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1944
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1945
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1946
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1947
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1948
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1949
+
1950
+ header_params = {}
1951
+ if request.name
1952
+ header_params["name"] = request.name
1953
+ end
1954
+
1955
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1956
+ metadata[:"x-goog-request-params"] ||= request_params_header
1957
+
1958
+ options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
1959
+ metadata: metadata,
1960
+ retry_policy: @config.rpcs.delete_repository.retry_policy
1961
+
1962
+ options.apply_defaults timeout: @config.timeout,
1963
+ metadata: @config.metadata,
1964
+ retry_policy: @config.retry_policy
1965
+
1966
+ @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation|
1967
+ yield response, operation if block_given?
1968
+ end
1969
+ rescue ::GRPC::BadStatus => e
1970
+ raise ::Google::Cloud::Error.from_error(e)
1971
+ end
1972
+
1973
+ ##
1974
+ # Moves a Repository to a new location.
1975
+ #
1976
+ # @overload move_repository(request, options = nil)
1977
+ # Pass arguments to `move_repository` via a request object, either of type
1978
+ # {::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest} or an equivalent Hash.
1979
+ #
1980
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest, ::Hash]
1981
+ # A request object representing the call parameters. Required. To specify no
1982
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1983
+ # @param options [::Gapic::CallOptions, ::Hash]
1984
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1985
+ #
1986
+ # @overload move_repository(name: nil, destination_containing_folder: nil)
1987
+ # Pass arguments to `move_repository` via keyword arguments. Note that at
1988
+ # least one keyword argument is required. To specify no parameters, or to keep all
1989
+ # the default parameter values, pass an empty Hash as a request object (see above).
1990
+ #
1991
+ # @param name [::String]
1992
+ # Required. The full resource name of the repository to move.
1993
+ # @param destination_containing_folder [::String]
1994
+ # Optional. The name of the Folder, TeamFolder, or root location to move the
1995
+ # repository to. Can be in the format of: "" to move into the root User
1996
+ # folder, `projects/*/locations/*/folders/*`,
1997
+ # `projects/*/locations/*/teamFolders/*`
1998
+ #
1999
+ # @yield [response, operation] Access the result along with the RPC operation
2000
+ # @yieldparam response [::Gapic::Operation]
2001
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2002
+ #
2003
+ # @return [::Gapic::Operation]
2004
+ #
2005
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2006
+ #
2007
+ # @example Basic example
2008
+ # require "google/cloud/dataform/v1beta1"
2009
+ #
2010
+ # # Create a client object. The client can be reused for multiple calls.
2011
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2012
+ #
2013
+ # # Create a request. To set request fields, pass in keyword arguments.
2014
+ # request = Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest.new
2015
+ #
2016
+ # # Call the move_repository method.
2017
+ # result = client.move_repository request
2018
+ #
2019
+ # # The returned object is of type Gapic::Operation. You can use it to
2020
+ # # check the status of an operation, cancel it, or wait for results.
2021
+ # # Here is how to wait for a response.
2022
+ # result.wait_until_done! timeout: 60
2023
+ # if result.response?
2024
+ # p result.response
2025
+ # else
2026
+ # puts "No response received."
2027
+ # end
647
2028
  #
648
- def delete_repository request, options = nil
2029
+ def move_repository request, options = nil
649
2030
  raise ::ArgumentError, "request must be provided" if request.nil?
650
2031
 
651
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
2032
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest
652
2033
 
653
2034
  # Converts hash and nil to an options object
654
2035
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
655
2036
 
656
2037
  # Customize the options with defaults
657
- metadata = @config.rpcs.delete_repository.metadata.to_h
2038
+ metadata = @config.rpcs.move_repository.metadata.to_h
658
2039
 
659
2040
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
660
2041
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -671,16 +2052,18 @@ module Google
671
2052
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
672
2053
  metadata[:"x-goog-request-params"] ||= request_params_header
673
2054
 
674
- options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
2055
+ options.apply_defaults timeout: @config.rpcs.move_repository.timeout,
675
2056
  metadata: metadata,
676
- retry_policy: @config.rpcs.delete_repository.retry_policy
2057
+ retry_policy: @config.rpcs.move_repository.retry_policy
677
2058
 
678
2059
  options.apply_defaults timeout: @config.timeout,
679
2060
  metadata: @config.metadata,
680
2061
  retry_policy: @config.retry_policy
681
2062
 
682
- @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation|
2063
+ @dataform_stub.call_rpc :move_repository, request, options: options do |response, operation|
2064
+ response = ::Gapic::Operation.new response, @operations_client, options: options
683
2065
  yield response, operation if block_given?
2066
+ throw :response, response
684
2067
  end
685
2068
  rescue ::GRPC::BadStatus => e
686
2069
  raise ::Google::Cloud::Error.from_error(e)
@@ -5206,6 +6589,294 @@ module Google
5206
6589
  raise ::Google::Cloud::Error.from_error(e)
5207
6590
  end
5208
6591
 
6592
+ ##
6593
+ # Gets the access control policy for a resource.
6594
+ # Returns an empty policy if the resource exists and does not have a policy
6595
+ # set.
6596
+ #
6597
+ # @overload get_iam_policy(request, options = nil)
6598
+ # Pass arguments to `get_iam_policy` via a request object, either of type
6599
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
6600
+ #
6601
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
6602
+ # A request object representing the call parameters. Required. To specify no
6603
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6604
+ # @param options [::Gapic::CallOptions, ::Hash]
6605
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6606
+ #
6607
+ # @overload get_iam_policy(resource: nil, options: nil)
6608
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
6609
+ # least one keyword argument is required. To specify no parameters, or to keep all
6610
+ # the default parameter values, pass an empty Hash as a request object (see above).
6611
+ #
6612
+ # @param resource [::String]
6613
+ # REQUIRED: The resource for which the policy is being requested.
6614
+ # See the operation documentation for the appropriate value for this field.
6615
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
6616
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
6617
+ # `GetIamPolicy`.
6618
+ #
6619
+ # @yield [response, operation] Access the result along with the RPC operation
6620
+ # @yieldparam response [::Google::Iam::V1::Policy]
6621
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6622
+ #
6623
+ # @return [::Google::Iam::V1::Policy]
6624
+ #
6625
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6626
+ #
6627
+ # @example Basic example
6628
+ # require "google/cloud/dataform/v1beta1"
6629
+ #
6630
+ # # Create a client object. The client can be reused for multiple calls.
6631
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
6632
+ #
6633
+ # # Create a request. To set request fields, pass in keyword arguments.
6634
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
6635
+ #
6636
+ # # Call the get_iam_policy method.
6637
+ # result = client.get_iam_policy request
6638
+ #
6639
+ # # The returned object is of type Google::Iam::V1::Policy.
6640
+ # p result
6641
+ #
6642
+ def get_iam_policy request, options = nil
6643
+ raise ::ArgumentError, "request must be provided" if request.nil?
6644
+
6645
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
6646
+
6647
+ # Converts hash and nil to an options object
6648
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6649
+
6650
+ # Customize the options with defaults
6651
+ metadata = @config.rpcs.get_iam_policy.metadata.to_h
6652
+
6653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6654
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6655
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6656
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
6657
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6658
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6659
+
6660
+ header_params = {}
6661
+ if request.resource
6662
+ header_params["resource"] = request.resource
6663
+ end
6664
+
6665
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6666
+ metadata[:"x-goog-request-params"] ||= request_params_header
6667
+
6668
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
6669
+ metadata: metadata,
6670
+ retry_policy: @config.rpcs.get_iam_policy.retry_policy
6671
+
6672
+ options.apply_defaults timeout: @config.timeout,
6673
+ metadata: @config.metadata,
6674
+ retry_policy: @config.retry_policy
6675
+
6676
+ @dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
6677
+ yield response, operation if block_given?
6678
+ end
6679
+ rescue ::GRPC::BadStatus => e
6680
+ raise ::Google::Cloud::Error.from_error(e)
6681
+ end
6682
+
6683
+ ##
6684
+ # Sets the access control policy on the specified resource. Replaces any
6685
+ # existing policy.
6686
+ #
6687
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
6688
+ #
6689
+ # @overload set_iam_policy(request, options = nil)
6690
+ # Pass arguments to `set_iam_policy` via a request object, either of type
6691
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
6692
+ #
6693
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
6694
+ # A request object representing the call parameters. Required. To specify no
6695
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6696
+ # @param options [::Gapic::CallOptions, ::Hash]
6697
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6698
+ #
6699
+ # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
6700
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
6701
+ # least one keyword argument is required. To specify no parameters, or to keep all
6702
+ # the default parameter values, pass an empty Hash as a request object (see above).
6703
+ #
6704
+ # @param resource [::String]
6705
+ # REQUIRED: The resource for which the policy is being specified.
6706
+ # See the operation documentation for the appropriate value for this field.
6707
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
6708
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
6709
+ # the policy is limited to a few 10s of KB. An empty policy is a
6710
+ # valid policy but certain Cloud Platform services (such as Projects)
6711
+ # might reject them.
6712
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
6713
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
6714
+ # the fields in the mask will be modified. If no mask is provided, the
6715
+ # following default mask is used:
6716
+ #
6717
+ # `paths: "bindings, etag"`
6718
+ #
6719
+ # @yield [response, operation] Access the result along with the RPC operation
6720
+ # @yieldparam response [::Google::Iam::V1::Policy]
6721
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6722
+ #
6723
+ # @return [::Google::Iam::V1::Policy]
6724
+ #
6725
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6726
+ #
6727
+ # @example Basic example
6728
+ # require "google/cloud/dataform/v1beta1"
6729
+ #
6730
+ # # Create a client object. The client can be reused for multiple calls.
6731
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
6732
+ #
6733
+ # # Create a request. To set request fields, pass in keyword arguments.
6734
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
6735
+ #
6736
+ # # Call the set_iam_policy method.
6737
+ # result = client.set_iam_policy request
6738
+ #
6739
+ # # The returned object is of type Google::Iam::V1::Policy.
6740
+ # p result
6741
+ #
6742
+ def set_iam_policy request, options = nil
6743
+ raise ::ArgumentError, "request must be provided" if request.nil?
6744
+
6745
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
6746
+
6747
+ # Converts hash and nil to an options object
6748
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6749
+
6750
+ # Customize the options with defaults
6751
+ metadata = @config.rpcs.set_iam_policy.metadata.to_h
6752
+
6753
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6754
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6755
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6756
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
6757
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6758
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6759
+
6760
+ header_params = {}
6761
+ if request.resource
6762
+ header_params["resource"] = request.resource
6763
+ end
6764
+
6765
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6766
+ metadata[:"x-goog-request-params"] ||= request_params_header
6767
+
6768
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
6769
+ metadata: metadata,
6770
+ retry_policy: @config.rpcs.set_iam_policy.retry_policy
6771
+
6772
+ options.apply_defaults timeout: @config.timeout,
6773
+ metadata: @config.metadata,
6774
+ retry_policy: @config.retry_policy
6775
+
6776
+ @dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
6777
+ yield response, operation if block_given?
6778
+ end
6779
+ rescue ::GRPC::BadStatus => e
6780
+ raise ::Google::Cloud::Error.from_error(e)
6781
+ end
6782
+
6783
+ ##
6784
+ # Returns permissions that a caller has on the specified resource.
6785
+ # If the resource does not exist, this will return an empty set of
6786
+ # permissions, not a `NOT_FOUND` error.
6787
+ #
6788
+ # Note: This operation is designed to be used for building permission-aware
6789
+ # UIs and command-line tools, not for authorization checking. This operation
6790
+ # may "fail open" without warning.
6791
+ #
6792
+ # @overload test_iam_permissions(request, options = nil)
6793
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
6794
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
6795
+ #
6796
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
6797
+ # A request object representing the call parameters. Required. To specify no
6798
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6799
+ # @param options [::Gapic::CallOptions, ::Hash]
6800
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6801
+ #
6802
+ # @overload test_iam_permissions(resource: nil, permissions: nil)
6803
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
6804
+ # least one keyword argument is required. To specify no parameters, or to keep all
6805
+ # the default parameter values, pass an empty Hash as a request object (see above).
6806
+ #
6807
+ # @param resource [::String]
6808
+ # REQUIRED: The resource for which the policy detail is being requested.
6809
+ # See the operation documentation for the appropriate value for this field.
6810
+ # @param permissions [::Array<::String>]
6811
+ # The set of permissions to check for the `resource`. Permissions with
6812
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
6813
+ # information see
6814
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
6815
+ #
6816
+ # @yield [response, operation] Access the result along with the RPC operation
6817
+ # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
6818
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6819
+ #
6820
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
6821
+ #
6822
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6823
+ #
6824
+ # @example Basic example
6825
+ # require "google/cloud/dataform/v1beta1"
6826
+ #
6827
+ # # Create a client object. The client can be reused for multiple calls.
6828
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
6829
+ #
6830
+ # # Create a request. To set request fields, pass in keyword arguments.
6831
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
6832
+ #
6833
+ # # Call the test_iam_permissions method.
6834
+ # result = client.test_iam_permissions request
6835
+ #
6836
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
6837
+ # p result
6838
+ #
6839
+ def test_iam_permissions request, options = nil
6840
+ raise ::ArgumentError, "request must be provided" if request.nil?
6841
+
6842
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
6843
+
6844
+ # Converts hash and nil to an options object
6845
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6846
+
6847
+ # Customize the options with defaults
6848
+ metadata = @config.rpcs.test_iam_permissions.metadata.to_h
6849
+
6850
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6851
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6852
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6853
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
6854
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6855
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6856
+
6857
+ header_params = {}
6858
+ if request.resource
6859
+ header_params["resource"] = request.resource
6860
+ end
6861
+
6862
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6863
+ metadata[:"x-goog-request-params"] ||= request_params_header
6864
+
6865
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
6866
+ metadata: metadata,
6867
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
6868
+
6869
+ options.apply_defaults timeout: @config.timeout,
6870
+ metadata: @config.metadata,
6871
+ retry_policy: @config.retry_policy
6872
+
6873
+ @dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
6874
+ yield response, operation if block_given?
6875
+ end
6876
+ rescue ::GRPC::BadStatus => e
6877
+ raise ::Google::Cloud::Error.from_error(e)
6878
+ end
6879
+
5209
6880
  ##
5210
6881
  # Configuration class for the Dataform API.
5211
6882
  #
@@ -5222,17 +6893,17 @@ module Google
5222
6893
  # @example
5223
6894
  #
5224
6895
  # # Modify the global config, setting the timeout for
5225
- # # list_repositories to 20 seconds,
6896
+ # # get_team_folder to 20 seconds,
5226
6897
  # # and all remaining timeouts to 10 seconds.
5227
6898
  # ::Google::Cloud::Dataform::V1beta1::Dataform::Client.configure do |config|
5228
6899
  # config.timeout = 10.0
5229
- # config.rpcs.list_repositories.timeout = 20.0
6900
+ # config.rpcs.get_team_folder.timeout = 20.0
5230
6901
  # end
5231
6902
  #
5232
6903
  # # Apply the above configuration only to a new client.
5233
6904
  # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new do |config|
5234
6905
  # config.timeout = 10.0
5235
- # config.rpcs.list_repositories.timeout = 20.0
6906
+ # config.rpcs.get_team_folder.timeout = 20.0
5236
6907
  # end
5237
6908
  #
5238
6909
  # @!attribute [rw] endpoint
@@ -5302,6 +6973,7 @@ module Google
5302
6973
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
5303
6974
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
5304
6975
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
6976
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
5305
6977
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
5306
6978
  # trigger a retry.
5307
6979
  # @return [::Hash]
@@ -5385,10 +7057,76 @@ module Google
5385
7057
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
5386
7058
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
5387
7059
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
7060
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
5388
7061
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
5389
7062
  # trigger a retry.
5390
7063
  #
5391
7064
  class Rpcs
7065
+ ##
7066
+ # RPC-specific configuration for `get_team_folder`
7067
+ # @return [::Gapic::Config::Method]
7068
+ #
7069
+ attr_reader :get_team_folder
7070
+ ##
7071
+ # RPC-specific configuration for `create_team_folder`
7072
+ # @return [::Gapic::Config::Method]
7073
+ #
7074
+ attr_reader :create_team_folder
7075
+ ##
7076
+ # RPC-specific configuration for `update_team_folder`
7077
+ # @return [::Gapic::Config::Method]
7078
+ #
7079
+ attr_reader :update_team_folder
7080
+ ##
7081
+ # RPC-specific configuration for `delete_team_folder`
7082
+ # @return [::Gapic::Config::Method]
7083
+ #
7084
+ attr_reader :delete_team_folder
7085
+ ##
7086
+ # RPC-specific configuration for `query_team_folder_contents`
7087
+ # @return [::Gapic::Config::Method]
7088
+ #
7089
+ attr_reader :query_team_folder_contents
7090
+ ##
7091
+ # RPC-specific configuration for `search_team_folders`
7092
+ # @return [::Gapic::Config::Method]
7093
+ #
7094
+ attr_reader :search_team_folders
7095
+ ##
7096
+ # RPC-specific configuration for `get_folder`
7097
+ # @return [::Gapic::Config::Method]
7098
+ #
7099
+ attr_reader :get_folder
7100
+ ##
7101
+ # RPC-specific configuration for `create_folder`
7102
+ # @return [::Gapic::Config::Method]
7103
+ #
7104
+ attr_reader :create_folder
7105
+ ##
7106
+ # RPC-specific configuration for `update_folder`
7107
+ # @return [::Gapic::Config::Method]
7108
+ #
7109
+ attr_reader :update_folder
7110
+ ##
7111
+ # RPC-specific configuration for `delete_folder`
7112
+ # @return [::Gapic::Config::Method]
7113
+ #
7114
+ attr_reader :delete_folder
7115
+ ##
7116
+ # RPC-specific configuration for `query_folder_contents`
7117
+ # @return [::Gapic::Config::Method]
7118
+ #
7119
+ attr_reader :query_folder_contents
7120
+ ##
7121
+ # RPC-specific configuration for `query_user_root_contents`
7122
+ # @return [::Gapic::Config::Method]
7123
+ #
7124
+ attr_reader :query_user_root_contents
7125
+ ##
7126
+ # RPC-specific configuration for `move_folder`
7127
+ # @return [::Gapic::Config::Method]
7128
+ #
7129
+ attr_reader :move_folder
5392
7130
  ##
5393
7131
  # RPC-specific configuration for `list_repositories`
5394
7132
  # @return [::Gapic::Config::Method]
@@ -5415,6 +7153,11 @@ module Google
5415
7153
  #
5416
7154
  attr_reader :delete_repository
5417
7155
  ##
7156
+ # RPC-specific configuration for `move_repository`
7157
+ # @return [::Gapic::Config::Method]
7158
+ #
7159
+ attr_reader :move_repository
7160
+ ##
5418
7161
  # RPC-specific configuration for `commit_repository_changes`
5419
7162
  # @return [::Gapic::Config::Method]
5420
7163
  #
@@ -5659,9 +7402,50 @@ module Google
5659
7402
  # @return [::Gapic::Config::Method]
5660
7403
  #
5661
7404
  attr_reader :update_config
7405
+ ##
7406
+ # RPC-specific configuration for `get_iam_policy`
7407
+ # @return [::Gapic::Config::Method]
7408
+ #
7409
+ attr_reader :get_iam_policy
7410
+ ##
7411
+ # RPC-specific configuration for `set_iam_policy`
7412
+ # @return [::Gapic::Config::Method]
7413
+ #
7414
+ attr_reader :set_iam_policy
7415
+ ##
7416
+ # RPC-specific configuration for `test_iam_permissions`
7417
+ # @return [::Gapic::Config::Method]
7418
+ #
7419
+ attr_reader :test_iam_permissions
5662
7420
 
5663
7421
  # @private
5664
7422
  def initialize parent_rpcs = nil
7423
+ get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder
7424
+ @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config
7425
+ create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder
7426
+ @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config
7427
+ update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder
7428
+ @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config
7429
+ delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder
7430
+ @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config
7431
+ query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents
7432
+ @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config
7433
+ search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders
7434
+ @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config
7435
+ get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder
7436
+ @get_folder = ::Gapic::Config::Method.new get_folder_config
7437
+ create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder
7438
+ @create_folder = ::Gapic::Config::Method.new create_folder_config
7439
+ update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder
7440
+ @update_folder = ::Gapic::Config::Method.new update_folder_config
7441
+ delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder
7442
+ @delete_folder = ::Gapic::Config::Method.new delete_folder_config
7443
+ query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents
7444
+ @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config
7445
+ query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents
7446
+ @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config
7447
+ move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder
7448
+ @move_folder = ::Gapic::Config::Method.new move_folder_config
5665
7449
  list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
5666
7450
  @list_repositories = ::Gapic::Config::Method.new list_repositories_config
5667
7451
  get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
@@ -5672,6 +7456,8 @@ module Google
5672
7456
  @update_repository = ::Gapic::Config::Method.new update_repository_config
5673
7457
  delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
5674
7458
  @delete_repository = ::Gapic::Config::Method.new delete_repository_config
7459
+ move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository
7460
+ @move_repository = ::Gapic::Config::Method.new move_repository_config
5675
7461
  commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes
5676
7462
  @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config
5677
7463
  read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file
@@ -5770,6 +7556,12 @@ module Google
5770
7556
  @get_config = ::Gapic::Config::Method.new get_config_config
5771
7557
  update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config
5772
7558
  @update_config = ::Gapic::Config::Method.new update_config_config
7559
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
7560
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
7561
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
7562
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
7563
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
7564
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
5773
7565
 
5774
7566
  yield self if block_given?
5775
7567
  end