google-cloud-dataform-v1beta1 0.3.0 → 0.5.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.
@@ -144,6 +144,7 @@ module Google
144
144
  config.credentials = credentials
145
145
  config.quota_project = @quota_project_id
146
146
  config.endpoint = @config.endpoint
147
+ config.bindings_override = @config.bindings_override
147
148
  end
148
149
 
149
150
  @dataform_stub = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
@@ -187,9 +188,9 @@ module Google
187
188
  # Required. The location in which to list repositories. Must be in the format
188
189
  # `projects/*/locations/*`.
189
190
  # @param page_size [::Integer]
190
- # Optional. Maximum number of repositories to return. The server may return fewer
191
- # items than requested. If unspecified, the server will pick an appropriate
192
- # default.
191
+ # Optional. Maximum number of repositories to return. The server may return
192
+ # fewer items than requested. If unspecified, the server will pick an
193
+ # appropriate default.
193
194
  # @param page_token [::String]
194
195
  # Optional. Page token received from a previous `ListRepositories` call.
195
196
  # Provide this to retrieve the subsequent page.
@@ -197,9 +198,9 @@ module Google
197
198
  # When paginating, all other parameters provided to `ListRepositories`
198
199
  # must match the call that provided the page token.
199
200
  # @param order_by [::String]
200
- # Optional. This field only supports ordering by `name`. If unspecified, the server
201
- # will choose the ordering. If specified, the default order is ascending for
202
- # the `name` field.
201
+ # Optional. This field only supports ordering by `name`. If unspecified, the
202
+ # server will choose the ordering. If specified, the default order is
203
+ # ascending for the `name` field.
203
204
  # @param filter [::String]
204
205
  # Optional. Filter for the returned list.
205
206
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -209,6 +210,26 @@ module Google
209
210
  # @return [::Google::Cloud::Dataform::V1beta1::ListRepositoriesResponse]
210
211
  #
211
212
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
213
+ #
214
+ # @example Basic example
215
+ # require "google/cloud/dataform/v1beta1"
216
+ #
217
+ # # Create a client object. The client can be reused for multiple calls.
218
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
219
+ #
220
+ # # Create a request. To set request fields, pass in keyword arguments.
221
+ # request = Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest.new
222
+ #
223
+ # # Call the list_repositories method.
224
+ # result = client.list_repositories request
225
+ #
226
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
227
+ # # over elements, and API calls will be issued to fetch pages as needed.
228
+ # result.each do |item|
229
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Repository.
230
+ # p item
231
+ # end
232
+ #
212
233
  def list_repositories request, options = nil
213
234
  raise ::ArgumentError, "request must be provided" if request.nil?
214
235
 
@@ -271,6 +292,22 @@ module Google
271
292
  # @return [::Google::Cloud::Dataform::V1beta1::Repository]
272
293
  #
273
294
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
295
+ #
296
+ # @example Basic example
297
+ # require "google/cloud/dataform/v1beta1"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Cloud::Dataform::V1beta1::GetRepositoryRequest.new
304
+ #
305
+ # # Call the get_repository method.
306
+ # result = client.get_repository request
307
+ #
308
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Repository.
309
+ # p result
310
+ #
274
311
  def get_repository request, options = nil
275
312
  raise ::ArgumentError, "request must be provided" if request.nil?
276
313
 
@@ -325,13 +362,13 @@ module Google
325
362
  # the default parameter values, pass an empty Hash as a request object (see above).
326
363
  #
327
364
  # @param parent [::String]
328
- # Required. The location in which to create the repository. Must be in the format
329
- # `projects/*/locations/*`.
365
+ # Required. The location in which to create the repository. Must be in the
366
+ # format `projects/*/locations/*`.
330
367
  # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
331
368
  # Required. The repository to create.
332
369
  # @param repository_id [::String]
333
- # Required. The ID to use for the repository, which will become the final component of
334
- # the repository's resource name.
370
+ # Required. The ID to use for the repository, which will become the final
371
+ # component of the repository's resource name.
335
372
  # @yield [result, operation] Access the result along with the TransportOperation object
336
373
  # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Repository]
337
374
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -339,6 +376,22 @@ module Google
339
376
  # @return [::Google::Cloud::Dataform::V1beta1::Repository]
340
377
  #
341
378
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
379
+ #
380
+ # @example Basic example
381
+ # require "google/cloud/dataform/v1beta1"
382
+ #
383
+ # # Create a client object. The client can be reused for multiple calls.
384
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
385
+ #
386
+ # # Create a request. To set request fields, pass in keyword arguments.
387
+ # request = Google::Cloud::Dataform::V1beta1::CreateRepositoryRequest.new
388
+ #
389
+ # # Call the create_repository method.
390
+ # result = client.create_repository request
391
+ #
392
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Repository.
393
+ # p result
394
+ #
342
395
  def create_repository request, options = nil
343
396
  raise ::ArgumentError, "request must be provided" if request.nil?
344
397
 
@@ -393,8 +446,8 @@ module Google
393
446
  # the default parameter values, pass an empty Hash as a request object (see above).
394
447
  #
395
448
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
396
- # Optional. Specifies the fields to be updated in the repository. If left unset,
397
- # all fields will be updated.
449
+ # Optional. Specifies the fields to be updated in the repository. If left
450
+ # unset, all fields will be updated.
398
451
  # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
399
452
  # Required. The repository to update.
400
453
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -404,6 +457,22 @@ module Google
404
457
  # @return [::Google::Cloud::Dataform::V1beta1::Repository]
405
458
  #
406
459
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
460
+ #
461
+ # @example Basic example
462
+ # require "google/cloud/dataform/v1beta1"
463
+ #
464
+ # # Create a client object. The client can be reused for multiple calls.
465
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
466
+ #
467
+ # # Create a request. To set request fields, pass in keyword arguments.
468
+ # request = Google::Cloud::Dataform::V1beta1::UpdateRepositoryRequest.new
469
+ #
470
+ # # Call the update_repository method.
471
+ # result = client.update_repository request
472
+ #
473
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Repository.
474
+ # p result
475
+ #
407
476
  def update_repository request, options = nil
408
477
  raise ::ArgumentError, "request must be provided" if request.nil?
409
478
 
@@ -470,6 +539,22 @@ module Google
470
539
  # @return [::Google::Protobuf::Empty]
471
540
  #
472
541
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
542
+ #
543
+ # @example Basic example
544
+ # require "google/cloud/dataform/v1beta1"
545
+ #
546
+ # # Create a client object. The client can be reused for multiple calls.
547
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
548
+ #
549
+ # # Create a request. To set request fields, pass in keyword arguments.
550
+ # request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest.new
551
+ #
552
+ # # Call the delete_repository method.
553
+ # result = client.delete_repository request
554
+ #
555
+ # # The returned object is of type Google::Protobuf::Empty.
556
+ # p result
557
+ #
473
558
  def delete_repository request, options = nil
474
559
  raise ::ArgumentError, "request must be provided" if request.nil?
475
560
 
@@ -506,42 +591,68 @@ module Google
506
591
  end
507
592
 
508
593
  ##
509
- # Fetches a Repository's remote branches.
594
+ # Applies a Git commit to a Repository. The Repository must not have a value
595
+ # for `git_remote_settings.url`.
510
596
  #
511
- # @overload fetch_remote_branches(request, options = nil)
512
- # Pass arguments to `fetch_remote_branches` via a request object, either of type
513
- # {::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest} or an equivalent Hash.
597
+ # @overload commit_repository_changes(request, options = nil)
598
+ # Pass arguments to `commit_repository_changes` via a request object, either of type
599
+ # {::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest} or an equivalent Hash.
514
600
  #
515
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest, ::Hash]
601
+ # @param request [::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest, ::Hash]
516
602
  # A request object representing the call parameters. Required. To specify no
517
603
  # parameters, or to keep all the default parameter values, pass an empty Hash.
518
604
  # @param options [::Gapic::CallOptions, ::Hash]
519
605
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
520
606
  #
521
- # @overload fetch_remote_branches(name: nil)
522
- # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at
607
+ # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil)
608
+ # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at
523
609
  # least one keyword argument is required. To specify no parameters, or to keep all
524
610
  # the default parameter values, pass an empty Hash as a request object (see above).
525
611
  #
526
612
  # @param name [::String]
527
613
  # Required. The repository's name.
614
+ # @param commit_metadata [::Google::Cloud::Dataform::V1beta1::CommitMetadata, ::Hash]
615
+ # Required. The changes to commit to the repository.
616
+ # @param required_head_commit_sha [::String]
617
+ # Optional. The commit SHA which must be the repository's current HEAD before
618
+ # applying this commit; otherwise this request will fail. If unset, no
619
+ # validation on the current HEAD commit SHA is performed.
620
+ # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest::FileOperation, ::Hash}]
621
+ # A map to the path of the file to the operation. The path is the full file
622
+ # path including filename, from repository root.
528
623
  # @yield [result, operation] Access the result along with the TransportOperation object
529
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
624
+ # @yieldparam result [::Google::Protobuf::Empty]
530
625
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
531
626
  #
532
- # @return [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
627
+ # @return [::Google::Protobuf::Empty]
533
628
  #
534
629
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
535
- def fetch_remote_branches request, options = nil
630
+ #
631
+ # @example Basic example
632
+ # require "google/cloud/dataform/v1beta1"
633
+ #
634
+ # # Create a client object. The client can be reused for multiple calls.
635
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
636
+ #
637
+ # # Create a request. To set request fields, pass in keyword arguments.
638
+ # request = Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest.new
639
+ #
640
+ # # Call the commit_repository_changes method.
641
+ # result = client.commit_repository_changes request
642
+ #
643
+ # # The returned object is of type Google::Protobuf::Empty.
644
+ # p result
645
+ #
646
+ def commit_repository_changes request, options = nil
536
647
  raise ::ArgumentError, "request must be provided" if request.nil?
537
648
 
538
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest
649
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest
539
650
 
540
651
  # Converts hash and nil to an options object
541
652
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
542
653
 
543
654
  # Customize the options with defaults
544
- call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
655
+ call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h
545
656
 
546
657
  # Set x-goog-api-client and x-goog-user-project headers
547
658
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -551,15 +662,15 @@ module Google
551
662
 
552
663
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
553
664
 
554
- options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
665
+ options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout,
555
666
  metadata: call_metadata,
556
- retry_policy: @config.rpcs.fetch_remote_branches.retry_policy
667
+ retry_policy: @config.rpcs.commit_repository_changes.retry_policy
557
668
 
558
669
  options.apply_defaults timeout: @config.timeout,
559
670
  metadata: @config.metadata,
560
671
  retry_policy: @config.retry_policy
561
672
 
562
- @dataform_stub.fetch_remote_branches request, options do |result, operation|
673
+ @dataform_stub.commit_repository_changes request, options do |result, operation|
563
674
  yield result, operation if block_given?
564
675
  return result
565
676
  end
@@ -568,59 +679,64 @@ module Google
568
679
  end
569
680
 
570
681
  ##
571
- # Lists Workspaces in a given Repository.
682
+ # Returns the contents of a file (inside a Repository). The Repository
683
+ # must not have a value for `git_remote_settings.url`.
572
684
  #
573
- # @overload list_workspaces(request, options = nil)
574
- # Pass arguments to `list_workspaces` via a request object, either of type
575
- # {::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest} or an equivalent Hash.
685
+ # @overload read_repository_file(request, options = nil)
686
+ # Pass arguments to `read_repository_file` via a request object, either of type
687
+ # {::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest} or an equivalent Hash.
576
688
  #
577
- # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest, ::Hash]
689
+ # @param request [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest, ::Hash]
578
690
  # A request object representing the call parameters. Required. To specify no
579
691
  # parameters, or to keep all the default parameter values, pass an empty Hash.
580
692
  # @param options [::Gapic::CallOptions, ::Hash]
581
693
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
582
694
  #
583
- # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
584
- # Pass arguments to `list_workspaces` via keyword arguments. Note that at
695
+ # @overload read_repository_file(name: nil, commit_sha: nil, path: nil)
696
+ # Pass arguments to `read_repository_file` via keyword arguments. Note that at
585
697
  # least one keyword argument is required. To specify no parameters, or to keep all
586
698
  # the default parameter values, pass an empty Hash as a request object (see above).
587
699
  #
588
- # @param parent [::String]
589
- # Required. The repository in which to list workspaces. Must be in the
590
- # format `projects/*/locations/*/repositories/*`.
591
- # @param page_size [::Integer]
592
- # Optional. Maximum number of workspaces to return. The server may return fewer
593
- # items than requested. If unspecified, the server will pick an appropriate
594
- # default.
595
- # @param page_token [::String]
596
- # Optional. Page token received from a previous `ListWorkspaces` call.
597
- # Provide this to retrieve the subsequent page.
598
- #
599
- # When paginating, all other parameters provided to `ListWorkspaces`
600
- # must match the call that provided the page token.
601
- # @param order_by [::String]
602
- # Optional. This field only supports ordering by `name`. If unspecified, the server
603
- # will choose the ordering. If specified, the default order is ascending for
604
- # the `name` field.
605
- # @param filter [::String]
606
- # Optional. Filter for the returned list.
700
+ # @param name [::String]
701
+ # Required. The repository's name.
702
+ # @param commit_sha [::String]
703
+ # Optional. The commit SHA for the commit to read from. If unset, the file
704
+ # will be read from HEAD.
705
+ # @param path [::String]
706
+ # Required. Full file path to read including filename, from repository root.
607
707
  # @yield [result, operation] Access the result along with the TransportOperation object
608
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
708
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse]
609
709
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
610
710
  #
611
- # @return [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
711
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse]
612
712
  #
613
713
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
614
- def list_workspaces request, options = nil
714
+ #
715
+ # @example Basic example
716
+ # require "google/cloud/dataform/v1beta1"
717
+ #
718
+ # # Create a client object. The client can be reused for multiple calls.
719
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
720
+ #
721
+ # # Create a request. To set request fields, pass in keyword arguments.
722
+ # request = Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest.new
723
+ #
724
+ # # Call the read_repository_file method.
725
+ # result = client.read_repository_file request
726
+ #
727
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse.
728
+ # p result
729
+ #
730
+ def read_repository_file request, options = nil
615
731
  raise ::ArgumentError, "request must be provided" if request.nil?
616
732
 
617
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest
733
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest
618
734
 
619
735
  # Converts hash and nil to an options object
620
736
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
621
737
 
622
738
  # Customize the options with defaults
623
- call_metadata = @config.rpcs.list_workspaces.metadata.to_h
739
+ call_metadata = @config.rpcs.read_repository_file.metadata.to_h
624
740
 
625
741
  # Set x-goog-api-client and x-goog-user-project headers
626
742
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -630,15 +746,15 @@ module Google
630
746
 
631
747
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
632
748
 
633
- options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
749
+ options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout,
634
750
  metadata: call_metadata,
635
- retry_policy: @config.rpcs.list_workspaces.retry_policy
751
+ retry_policy: @config.rpcs.read_repository_file.retry_policy
636
752
 
637
753
  options.apply_defaults timeout: @config.timeout,
638
754
  metadata: @config.metadata,
639
755
  retry_policy: @config.retry_policy
640
756
 
641
- @dataform_stub.list_workspaces request, options do |result, operation|
757
+ @dataform_stub.read_repository_file request, options do |result, operation|
642
758
  yield result, operation if block_given?
643
759
  return result
644
760
  end
@@ -647,42 +763,81 @@ module Google
647
763
  end
648
764
 
649
765
  ##
650
- # Fetches a single Workspace.
766
+ # Returns the contents of a given Repository directory. The Repository must
767
+ # not have a value for `git_remote_settings.url`.
651
768
  #
652
- # @overload get_workspace(request, options = nil)
653
- # Pass arguments to `get_workspace` via a request object, either of type
654
- # {::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest} or an equivalent Hash.
769
+ # @overload query_repository_directory_contents(request, options = nil)
770
+ # Pass arguments to `query_repository_directory_contents` via a request object, either of type
771
+ # {::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash.
655
772
  #
656
- # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest, ::Hash]
773
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest, ::Hash]
657
774
  # A request object representing the call parameters. Required. To specify no
658
775
  # parameters, or to keep all the default parameter values, pass an empty Hash.
659
776
  # @param options [::Gapic::CallOptions, ::Hash]
660
777
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
661
778
  #
662
- # @overload get_workspace(name: nil)
663
- # Pass arguments to `get_workspace` via keyword arguments. Note that at
779
+ # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil)
780
+ # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at
664
781
  # least one keyword argument is required. To specify no parameters, or to keep all
665
782
  # the default parameter values, pass an empty Hash as a request object (see above).
666
783
  #
667
784
  # @param name [::String]
668
- # Required. The workspace's name.
785
+ # Required. The repository's name.
786
+ # @param commit_sha [::String]
787
+ # Optional. The Commit SHA for the commit to query from. If unset, the
788
+ # directory will be queried from HEAD.
789
+ # @param path [::String]
790
+ # Optional. The directory's full path including directory name, relative to
791
+ # root. If left unset, the root is used.
792
+ # @param page_size [::Integer]
793
+ # Optional. Maximum number of paths to return. The server may return fewer
794
+ # items than requested. If unspecified, the server will pick an appropriate
795
+ # default.
796
+ # @param page_token [::String]
797
+ # Optional. Page token received from a previous
798
+ # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the
799
+ # subsequent page.
800
+ #
801
+ # When paginating, all other parameters provided to
802
+ # `QueryRepositoryDirectoryContents` must match the call that provided the
803
+ # page token.
669
804
  # @yield [result, operation] Access the result along with the TransportOperation object
670
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
805
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
671
806
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
672
807
  #
673
- # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
808
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
674
809
  #
675
810
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
676
- def get_workspace request, options = nil
811
+ #
812
+ # @example Basic example
813
+ # require "google/cloud/dataform/v1beta1"
814
+ #
815
+ # # Create a client object. The client can be reused for multiple calls.
816
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
817
+ #
818
+ # # Create a request. To set request fields, pass in keyword arguments.
819
+ # request = Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest.new
820
+ #
821
+ # # Call the query_repository_directory_contents method.
822
+ # result = client.query_repository_directory_contents request
823
+ #
824
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
825
+ # # over elements, and API calls will be issued to fetch pages as needed.
826
+ # result.each do |item|
827
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::DirectoryEntry.
828
+ # p item
829
+ # end
830
+ #
831
+ def query_repository_directory_contents request, options = nil
677
832
  raise ::ArgumentError, "request must be provided" if request.nil?
678
833
 
679
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest
834
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest
680
835
 
681
836
  # Converts hash and nil to an options object
682
837
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
683
838
 
684
839
  # Customize the options with defaults
685
- call_metadata = @config.rpcs.get_workspace.metadata.to_h
840
+ call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h
686
841
 
687
842
  # Set x-goog-api-client and x-goog-user-project headers
688
843
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -692,15 +847,16 @@ module Google
692
847
 
693
848
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
694
849
 
695
- options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
850
+ options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout,
696
851
  metadata: call_metadata,
697
- retry_policy: @config.rpcs.get_workspace.retry_policy
852
+ retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy
698
853
 
699
854
  options.apply_defaults timeout: @config.timeout,
700
855
  metadata: @config.metadata,
701
856
  retry_policy: @config.retry_policy
702
857
 
703
- @dataform_stub.get_workspace request, options do |result, operation|
858
+ @dataform_stub.query_repository_directory_contents request, options do |result, operation|
859
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, "directory_entries", request, result, options
704
860
  yield result, operation if block_given?
705
861
  return result
706
862
  end
@@ -709,48 +865,73 @@ module Google
709
865
  end
710
866
 
711
867
  ##
712
- # Creates a new Workspace in a given Repository.
868
+ # Fetches a Repository's history of commits. The Repository must not have a
869
+ # value for `git_remote_settings.url`.
713
870
  #
714
- # @overload create_workspace(request, options = nil)
715
- # Pass arguments to `create_workspace` via a request object, either of type
716
- # {::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest} or an equivalent Hash.
871
+ # @overload fetch_repository_history(request, options = nil)
872
+ # Pass arguments to `fetch_repository_history` via a request object, either of type
873
+ # {::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest} or an equivalent Hash.
717
874
  #
718
- # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
875
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest, ::Hash]
719
876
  # A request object representing the call parameters. Required. To specify no
720
877
  # parameters, or to keep all the default parameter values, pass an empty Hash.
721
878
  # @param options [::Gapic::CallOptions, ::Hash]
722
879
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
880
  #
724
- # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil)
725
- # Pass arguments to `create_workspace` via keyword arguments. Note that at
881
+ # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil)
882
+ # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at
726
883
  # least one keyword argument is required. To specify no parameters, or to keep all
727
884
  # the default parameter values, pass an empty Hash as a request object (see above).
728
885
  #
729
- # @param parent [::String]
730
- # Required. The repository in which to create the workspace. Must be in the format
731
- # `projects/*/locations/*/repositories/*`.
732
- # @param workspace [::Google::Cloud::Dataform::V1beta1::Workspace, ::Hash]
733
- # Required. The workspace to create.
734
- # @param workspace_id [::String]
735
- # Required. The ID to use for the workspace, which will become the final component of
736
- # the workspace's resource name.
886
+ # @param name [::String]
887
+ # Required. The repository's name.
888
+ # @param page_size [::Integer]
889
+ # Optional. Maximum number of commits to return. The server may return fewer
890
+ # items than requested. If unspecified, the server will pick an appropriate
891
+ # default.
892
+ # @param page_token [::String]
893
+ # Optional. Page token received from a previous `FetchRepositoryHistory`
894
+ # call. Provide this to retrieve the subsequent page.
895
+ #
896
+ # When paginating, all other parameters provided to `FetchRepositoryHistory`
897
+ # must match the call that provided the page token.
737
898
  # @yield [result, operation] Access the result along with the TransportOperation object
738
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
899
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
739
900
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
740
901
  #
741
- # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
902
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
742
903
  #
743
904
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
744
- def create_workspace request, options = nil
905
+ #
906
+ # @example Basic example
907
+ # require "google/cloud/dataform/v1beta1"
908
+ #
909
+ # # Create a client object. The client can be reused for multiple calls.
910
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
911
+ #
912
+ # # Create a request. To set request fields, pass in keyword arguments.
913
+ # request = Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest.new
914
+ #
915
+ # # Call the fetch_repository_history method.
916
+ # result = client.fetch_repository_history request
917
+ #
918
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
919
+ # # over elements, and API calls will be issued to fetch pages as needed.
920
+ # result.each do |item|
921
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CommitLogEntry.
922
+ # p item
923
+ # end
924
+ #
925
+ def fetch_repository_history request, options = nil
745
926
  raise ::ArgumentError, "request must be provided" if request.nil?
746
927
 
747
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
928
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest
748
929
 
749
930
  # Converts hash and nil to an options object
750
931
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
751
932
 
752
933
  # Customize the options with defaults
753
- call_metadata = @config.rpcs.create_workspace.metadata.to_h
934
+ call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h
754
935
 
755
936
  # Set x-goog-api-client and x-goog-user-project headers
756
937
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -760,15 +941,16 @@ module Google
760
941
 
761
942
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
762
943
 
763
- options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
944
+ options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout,
764
945
  metadata: call_metadata,
765
- retry_policy: @config.rpcs.create_workspace.retry_policy
946
+ retry_policy: @config.rpcs.fetch_repository_history.retry_policy
766
947
 
767
948
  options.apply_defaults timeout: @config.timeout,
768
949
  metadata: @config.metadata,
769
950
  retry_policy: @config.retry_policy
770
951
 
771
- @dataform_stub.create_workspace request, options do |result, operation|
952
+ @dataform_stub.fetch_repository_history request, options do |result, operation|
953
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_repository_history, "commits", request, result, options
772
954
  yield result, operation if block_given?
773
955
  return result
774
956
  end
@@ -777,42 +959,58 @@ module Google
777
959
  end
778
960
 
779
961
  ##
780
- # Deletes a single Workspace.
962
+ # Computes a Repository's Git access token status.
781
963
  #
782
- # @overload delete_workspace(request, options = nil)
783
- # Pass arguments to `delete_workspace` via a request object, either of type
784
- # {::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest} or an equivalent Hash.
964
+ # @overload compute_repository_access_token_status(request, options = nil)
965
+ # Pass arguments to `compute_repository_access_token_status` via a request object, either of type
966
+ # {::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash.
785
967
  #
786
- # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest, ::Hash]
968
+ # @param request [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest, ::Hash]
787
969
  # A request object representing the call parameters. Required. To specify no
788
970
  # parameters, or to keep all the default parameter values, pass an empty Hash.
789
971
  # @param options [::Gapic::CallOptions, ::Hash]
790
972
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
791
973
  #
792
- # @overload delete_workspace(name: nil)
793
- # Pass arguments to `delete_workspace` via keyword arguments. Note that at
974
+ # @overload compute_repository_access_token_status(name: nil)
975
+ # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at
794
976
  # least one keyword argument is required. To specify no parameters, or to keep all
795
977
  # the default parameter values, pass an empty Hash as a request object (see above).
796
978
  #
797
979
  # @param name [::String]
798
- # Required. The workspace resource's name.
980
+ # Required. The repository's name.
799
981
  # @yield [result, operation] Access the result along with the TransportOperation object
800
- # @yieldparam result [::Google::Protobuf::Empty]
982
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse]
801
983
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
802
984
  #
803
- # @return [::Google::Protobuf::Empty]
985
+ # @return [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse]
804
986
  #
805
987
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
806
- def delete_workspace request, options = nil
988
+ #
989
+ # @example Basic example
990
+ # require "google/cloud/dataform/v1beta1"
991
+ #
992
+ # # Create a client object. The client can be reused for multiple calls.
993
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
994
+ #
995
+ # # Create a request. To set request fields, pass in keyword arguments.
996
+ # request = Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest.new
997
+ #
998
+ # # Call the compute_repository_access_token_status method.
999
+ # result = client.compute_repository_access_token_status request
1000
+ #
1001
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse.
1002
+ # p result
1003
+ #
1004
+ def compute_repository_access_token_status request, options = nil
807
1005
  raise ::ArgumentError, "request must be provided" if request.nil?
808
1006
 
809
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest
1007
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest
810
1008
 
811
1009
  # Converts hash and nil to an options object
812
1010
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
813
1011
 
814
1012
  # Customize the options with defaults
815
- call_metadata = @config.rpcs.delete_workspace.metadata.to_h
1013
+ call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h
816
1014
 
817
1015
  # Set x-goog-api-client and x-goog-user-project headers
818
1016
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -822,15 +1020,15 @@ module Google
822
1020
 
823
1021
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
824
1022
 
825
- options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
1023
+ options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout,
826
1024
  metadata: call_metadata,
827
- retry_policy: @config.rpcs.delete_workspace.retry_policy
1025
+ retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy
828
1026
 
829
1027
  options.apply_defaults timeout: @config.timeout,
830
1028
  metadata: @config.metadata,
831
1029
  retry_policy: @config.retry_policy
832
1030
 
833
- @dataform_stub.delete_workspace request, options do |result, operation|
1031
+ @dataform_stub.compute_repository_access_token_status request, options do |result, operation|
834
1032
  yield result, operation if block_given?
835
1033
  return result
836
1034
  end
@@ -839,42 +1037,58 @@ module Google
839
1037
  end
840
1038
 
841
1039
  ##
842
- # Installs dependency NPM packages (inside a Workspace).
1040
+ # Fetches a Repository's remote branches.
843
1041
  #
844
- # @overload install_npm_packages(request, options = nil)
845
- # Pass arguments to `install_npm_packages` via a request object, either of type
846
- # {::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest} or an equivalent Hash.
1042
+ # @overload fetch_remote_branches(request, options = nil)
1043
+ # Pass arguments to `fetch_remote_branches` via a request object, either of type
1044
+ # {::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest} or an equivalent Hash.
847
1045
  #
848
- # @param request [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest, ::Hash]
1046
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest, ::Hash]
849
1047
  # A request object representing the call parameters. Required. To specify no
850
1048
  # parameters, or to keep all the default parameter values, pass an empty Hash.
851
1049
  # @param options [::Gapic::CallOptions, ::Hash]
852
1050
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
853
1051
  #
854
- # @overload install_npm_packages(workspace: nil)
855
- # Pass arguments to `install_npm_packages` via keyword arguments. Note that at
1052
+ # @overload fetch_remote_branches(name: nil)
1053
+ # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at
856
1054
  # least one keyword argument is required. To specify no parameters, or to keep all
857
1055
  # the default parameter values, pass an empty Hash as a request object (see above).
858
1056
  #
859
- # @param workspace [::String]
860
- # Required. The workspace's name.
1057
+ # @param name [::String]
1058
+ # Required. The repository's name.
861
1059
  # @yield [result, operation] Access the result along with the TransportOperation object
862
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1060
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
863
1061
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
864
1062
  #
865
- # @return [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1063
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
866
1064
  #
867
1065
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
868
- def install_npm_packages request, options = nil
1066
+ #
1067
+ # @example Basic example
1068
+ # require "google/cloud/dataform/v1beta1"
1069
+ #
1070
+ # # Create a client object. The client can be reused for multiple calls.
1071
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1072
+ #
1073
+ # # Create a request. To set request fields, pass in keyword arguments.
1074
+ # request = Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest.new
1075
+ #
1076
+ # # Call the fetch_remote_branches method.
1077
+ # result = client.fetch_remote_branches request
1078
+ #
1079
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse.
1080
+ # p result
1081
+ #
1082
+ def fetch_remote_branches request, options = nil
869
1083
  raise ::ArgumentError, "request must be provided" if request.nil?
870
1084
 
871
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest
1085
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest
872
1086
 
873
1087
  # Converts hash and nil to an options object
874
1088
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
875
1089
 
876
1090
  # Customize the options with defaults
877
- call_metadata = @config.rpcs.install_npm_packages.metadata.to_h
1091
+ call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
878
1092
 
879
1093
  # Set x-goog-api-client and x-goog-user-project headers
880
1094
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -884,15 +1098,15 @@ module Google
884
1098
 
885
1099
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
886
1100
 
887
- options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
1101
+ options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
888
1102
  metadata: call_metadata,
889
- retry_policy: @config.rpcs.install_npm_packages.retry_policy
1103
+ retry_policy: @config.rpcs.fetch_remote_branches.retry_policy
890
1104
 
891
1105
  options.apply_defaults timeout: @config.timeout,
892
1106
  metadata: @config.metadata,
893
1107
  retry_policy: @config.retry_policy
894
1108
 
895
- @dataform_stub.install_npm_packages request, options do |result, operation|
1109
+ @dataform_stub.fetch_remote_branches request, options do |result, operation|
896
1110
  yield result, operation if block_given?
897
1111
  return result
898
1112
  end
@@ -901,48 +1115,1316 @@ module Google
901
1115
  end
902
1116
 
903
1117
  ##
904
- # Pulls Git commits from the Repository's remote into a Workspace.
1118
+ # Lists Workspaces in a given Repository.
905
1119
  #
906
- # @overload pull_git_commits(request, options = nil)
907
- # Pass arguments to `pull_git_commits` via a request object, either of type
908
- # {::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest} or an equivalent Hash.
1120
+ # @overload list_workspaces(request, options = nil)
1121
+ # Pass arguments to `list_workspaces` via a request object, either of type
1122
+ # {::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest} or an equivalent Hash.
909
1123
  #
910
- # @param request [::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest, ::Hash]
1124
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest, ::Hash]
911
1125
  # A request object representing the call parameters. Required. To specify no
912
1126
  # parameters, or to keep all the default parameter values, pass an empty Hash.
913
1127
  # @param options [::Gapic::CallOptions, ::Hash]
914
1128
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
915
1129
  #
916
- # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil)
917
- # Pass arguments to `pull_git_commits` via keyword arguments. Note that at
1130
+ # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
1131
+ # Pass arguments to `list_workspaces` via keyword arguments. Note that at
918
1132
  # least one keyword argument is required. To specify no parameters, or to keep all
919
1133
  # the default parameter values, pass an empty Hash as a request object (see above).
920
1134
  #
921
- # @param name [::String]
922
- # Required. The workspace's name.
923
- # @param remote_branch [::String]
924
- # Optional. The name of the branch in the Git remote from which to pull commits.
925
- # If left unset, the repository's default branch name will be used.
926
- # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
927
- # Required. The author of any merge commit which may be created as a result of merging
928
- # fetched Git commits into this workspace.
929
- # @yield [result, operation] Access the result along with the TransportOperation object
930
- # @yieldparam result [::Google::Protobuf::Empty]
931
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
932
- #
933
- # @return [::Google::Protobuf::Empty]
934
- #
935
- # @raise [::Google::Cloud::Error] if the REST call is aborted.
936
- def pull_git_commits request, options = nil
937
- raise ::ArgumentError, "request must be provided" if request.nil?
938
-
1135
+ # @param parent [::String]
1136
+ # Required. The repository in which to list workspaces. Must be in the
1137
+ # format `projects/*/locations/*/repositories/*`.
1138
+ # @param page_size [::Integer]
1139
+ # Optional. Maximum number of workspaces to return. The server may return
1140
+ # fewer items than requested. If unspecified, the server will pick an
1141
+ # appropriate default.
1142
+ # @param page_token [::String]
1143
+ # Optional. Page token received from a previous `ListWorkspaces` call.
1144
+ # Provide this to retrieve the subsequent page.
1145
+ #
1146
+ # When paginating, all other parameters provided to `ListWorkspaces`
1147
+ # must match the call that provided the page token.
1148
+ # @param order_by [::String]
1149
+ # Optional. This field only supports ordering by `name`. If unspecified, the
1150
+ # server will choose the ordering. If specified, the default order is
1151
+ # ascending for the `name` field.
1152
+ # @param filter [::String]
1153
+ # Optional. Filter for the returned list.
1154
+ # @yield [result, operation] Access the result along with the TransportOperation object
1155
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
1156
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1157
+ #
1158
+ # @return [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
1159
+ #
1160
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1161
+ #
1162
+ # @example Basic example
1163
+ # require "google/cloud/dataform/v1beta1"
1164
+ #
1165
+ # # Create a client object. The client can be reused for multiple calls.
1166
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1167
+ #
1168
+ # # Create a request. To set request fields, pass in keyword arguments.
1169
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest.new
1170
+ #
1171
+ # # Call the list_workspaces method.
1172
+ # result = client.list_workspaces request
1173
+ #
1174
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1175
+ # # over elements, and API calls will be issued to fetch pages as needed.
1176
+ # result.each do |item|
1177
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Workspace.
1178
+ # p item
1179
+ # end
1180
+ #
1181
+ def list_workspaces request, options = nil
1182
+ raise ::ArgumentError, "request must be provided" if request.nil?
1183
+
1184
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest
1185
+
1186
+ # Converts hash and nil to an options object
1187
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1188
+
1189
+ # Customize the options with defaults
1190
+ call_metadata = @config.rpcs.list_workspaces.metadata.to_h
1191
+
1192
+ # Set x-goog-api-client and x-goog-user-project headers
1193
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1194
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1195
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1196
+ transports_version_send: [:rest]
1197
+
1198
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1199
+
1200
+ options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
1201
+ metadata: call_metadata,
1202
+ retry_policy: @config.rpcs.list_workspaces.retry_policy
1203
+
1204
+ options.apply_defaults timeout: @config.timeout,
1205
+ metadata: @config.metadata,
1206
+ retry_policy: @config.retry_policy
1207
+
1208
+ @dataform_stub.list_workspaces request, options do |result, operation|
1209
+ yield result, operation if block_given?
1210
+ return result
1211
+ end
1212
+ rescue ::Gapic::Rest::Error => e
1213
+ raise ::Google::Cloud::Error.from_error(e)
1214
+ end
1215
+
1216
+ ##
1217
+ # Fetches a single Workspace.
1218
+ #
1219
+ # @overload get_workspace(request, options = nil)
1220
+ # Pass arguments to `get_workspace` via a request object, either of type
1221
+ # {::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest} or an equivalent Hash.
1222
+ #
1223
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest, ::Hash]
1224
+ # A request object representing the call parameters. Required. To specify no
1225
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1226
+ # @param options [::Gapic::CallOptions, ::Hash]
1227
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1228
+ #
1229
+ # @overload get_workspace(name: nil)
1230
+ # Pass arguments to `get_workspace` via keyword arguments. Note that at
1231
+ # least one keyword argument is required. To specify no parameters, or to keep all
1232
+ # the default parameter values, pass an empty Hash as a request object (see above).
1233
+ #
1234
+ # @param name [::String]
1235
+ # Required. The workspace's name.
1236
+ # @yield [result, operation] Access the result along with the TransportOperation object
1237
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
1238
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1239
+ #
1240
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
1241
+ #
1242
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1243
+ #
1244
+ # @example Basic example
1245
+ # require "google/cloud/dataform/v1beta1"
1246
+ #
1247
+ # # Create a client object. The client can be reused for multiple calls.
1248
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1249
+ #
1250
+ # # Create a request. To set request fields, pass in keyword arguments.
1251
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest.new
1252
+ #
1253
+ # # Call the get_workspace method.
1254
+ # result = client.get_workspace request
1255
+ #
1256
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
1257
+ # p result
1258
+ #
1259
+ def get_workspace request, options = nil
1260
+ raise ::ArgumentError, "request must be provided" if request.nil?
1261
+
1262
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest
1263
+
1264
+ # Converts hash and nil to an options object
1265
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1266
+
1267
+ # Customize the options with defaults
1268
+ call_metadata = @config.rpcs.get_workspace.metadata.to_h
1269
+
1270
+ # Set x-goog-api-client and x-goog-user-project headers
1271
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1272
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1273
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1274
+ transports_version_send: [:rest]
1275
+
1276
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1277
+
1278
+ options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
1279
+ metadata: call_metadata,
1280
+ retry_policy: @config.rpcs.get_workspace.retry_policy
1281
+
1282
+ options.apply_defaults timeout: @config.timeout,
1283
+ metadata: @config.metadata,
1284
+ retry_policy: @config.retry_policy
1285
+
1286
+ @dataform_stub.get_workspace request, options do |result, operation|
1287
+ yield result, operation if block_given?
1288
+ return result
1289
+ end
1290
+ rescue ::Gapic::Rest::Error => e
1291
+ raise ::Google::Cloud::Error.from_error(e)
1292
+ end
1293
+
1294
+ ##
1295
+ # Creates a new Workspace in a given Repository.
1296
+ #
1297
+ # @overload create_workspace(request, options = nil)
1298
+ # Pass arguments to `create_workspace` via a request object, either of type
1299
+ # {::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest} or an equivalent Hash.
1300
+ #
1301
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
1302
+ # A request object representing the call parameters. Required. To specify no
1303
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1304
+ # @param options [::Gapic::CallOptions, ::Hash]
1305
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1306
+ #
1307
+ # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil)
1308
+ # Pass arguments to `create_workspace` via keyword arguments. Note that at
1309
+ # least one keyword argument is required. To specify no parameters, or to keep all
1310
+ # the default parameter values, pass an empty Hash as a request object (see above).
1311
+ #
1312
+ # @param parent [::String]
1313
+ # Required. The repository in which to create the workspace. Must be in the
1314
+ # format `projects/*/locations/*/repositories/*`.
1315
+ # @param workspace [::Google::Cloud::Dataform::V1beta1::Workspace, ::Hash]
1316
+ # Required. The workspace to create.
1317
+ # @param workspace_id [::String]
1318
+ # Required. The ID to use for the workspace, which will become the final
1319
+ # component of the workspace's resource name.
1320
+ # @yield [result, operation] Access the result along with the TransportOperation object
1321
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
1322
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1323
+ #
1324
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
1325
+ #
1326
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1327
+ #
1328
+ # @example Basic example
1329
+ # require "google/cloud/dataform/v1beta1"
1330
+ #
1331
+ # # Create a client object. The client can be reused for multiple calls.
1332
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1333
+ #
1334
+ # # Create a request. To set request fields, pass in keyword arguments.
1335
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest.new
1336
+ #
1337
+ # # Call the create_workspace method.
1338
+ # result = client.create_workspace request
1339
+ #
1340
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
1341
+ # p result
1342
+ #
1343
+ def create_workspace request, options = nil
1344
+ raise ::ArgumentError, "request must be provided" if request.nil?
1345
+
1346
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
1347
+
1348
+ # Converts hash and nil to an options object
1349
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1350
+
1351
+ # Customize the options with defaults
1352
+ call_metadata = @config.rpcs.create_workspace.metadata.to_h
1353
+
1354
+ # Set x-goog-api-client and x-goog-user-project headers
1355
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1356
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1357
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1358
+ transports_version_send: [:rest]
1359
+
1360
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1361
+
1362
+ options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
1363
+ metadata: call_metadata,
1364
+ retry_policy: @config.rpcs.create_workspace.retry_policy
1365
+
1366
+ options.apply_defaults timeout: @config.timeout,
1367
+ metadata: @config.metadata,
1368
+ retry_policy: @config.retry_policy
1369
+
1370
+ @dataform_stub.create_workspace request, options do |result, operation|
1371
+ yield result, operation if block_given?
1372
+ return result
1373
+ end
1374
+ rescue ::Gapic::Rest::Error => e
1375
+ raise ::Google::Cloud::Error.from_error(e)
1376
+ end
1377
+
1378
+ ##
1379
+ # Deletes a single Workspace.
1380
+ #
1381
+ # @overload delete_workspace(request, options = nil)
1382
+ # Pass arguments to `delete_workspace` via a request object, either of type
1383
+ # {::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest} or an equivalent Hash.
1384
+ #
1385
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest, ::Hash]
1386
+ # A request object representing the call parameters. Required. To specify no
1387
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1388
+ # @param options [::Gapic::CallOptions, ::Hash]
1389
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1390
+ #
1391
+ # @overload delete_workspace(name: nil)
1392
+ # Pass arguments to `delete_workspace` via keyword arguments. Note that at
1393
+ # least one keyword argument is required. To specify no parameters, or to keep all
1394
+ # the default parameter values, pass an empty Hash as a request object (see above).
1395
+ #
1396
+ # @param name [::String]
1397
+ # Required. The workspace resource's name.
1398
+ # @yield [result, operation] Access the result along with the TransportOperation object
1399
+ # @yieldparam result [::Google::Protobuf::Empty]
1400
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1401
+ #
1402
+ # @return [::Google::Protobuf::Empty]
1403
+ #
1404
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1405
+ #
1406
+ # @example Basic example
1407
+ # require "google/cloud/dataform/v1beta1"
1408
+ #
1409
+ # # Create a client object. The client can be reused for multiple calls.
1410
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1411
+ #
1412
+ # # Create a request. To set request fields, pass in keyword arguments.
1413
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest.new
1414
+ #
1415
+ # # Call the delete_workspace method.
1416
+ # result = client.delete_workspace request
1417
+ #
1418
+ # # The returned object is of type Google::Protobuf::Empty.
1419
+ # p result
1420
+ #
1421
+ def delete_workspace request, options = nil
1422
+ raise ::ArgumentError, "request must be provided" if request.nil?
1423
+
1424
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest
1425
+
1426
+ # Converts hash and nil to an options object
1427
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1428
+
1429
+ # Customize the options with defaults
1430
+ call_metadata = @config.rpcs.delete_workspace.metadata.to_h
1431
+
1432
+ # Set x-goog-api-client and x-goog-user-project headers
1433
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1434
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1435
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1436
+ transports_version_send: [:rest]
1437
+
1438
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1439
+
1440
+ options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
1441
+ metadata: call_metadata,
1442
+ retry_policy: @config.rpcs.delete_workspace.retry_policy
1443
+
1444
+ options.apply_defaults timeout: @config.timeout,
1445
+ metadata: @config.metadata,
1446
+ retry_policy: @config.retry_policy
1447
+
1448
+ @dataform_stub.delete_workspace request, options do |result, operation|
1449
+ yield result, operation if block_given?
1450
+ return result
1451
+ end
1452
+ rescue ::Gapic::Rest::Error => e
1453
+ raise ::Google::Cloud::Error.from_error(e)
1454
+ end
1455
+
1456
+ ##
1457
+ # Installs dependency NPM packages (inside a Workspace).
1458
+ #
1459
+ # @overload install_npm_packages(request, options = nil)
1460
+ # Pass arguments to `install_npm_packages` via a request object, either of type
1461
+ # {::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest} or an equivalent Hash.
1462
+ #
1463
+ # @param request [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest, ::Hash]
1464
+ # A request object representing the call parameters. Required. To specify no
1465
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1466
+ # @param options [::Gapic::CallOptions, ::Hash]
1467
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1468
+ #
1469
+ # @overload install_npm_packages(workspace: nil)
1470
+ # Pass arguments to `install_npm_packages` via keyword arguments. Note that at
1471
+ # least one keyword argument is required. To specify no parameters, or to keep all
1472
+ # the default parameter values, pass an empty Hash as a request object (see above).
1473
+ #
1474
+ # @param workspace [::String]
1475
+ # Required. The workspace's name.
1476
+ # @yield [result, operation] Access the result along with the TransportOperation object
1477
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1478
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1479
+ #
1480
+ # @return [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1481
+ #
1482
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1483
+ #
1484
+ # @example Basic example
1485
+ # require "google/cloud/dataform/v1beta1"
1486
+ #
1487
+ # # Create a client object. The client can be reused for multiple calls.
1488
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1489
+ #
1490
+ # # Create a request. To set request fields, pass in keyword arguments.
1491
+ # request = Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest.new
1492
+ #
1493
+ # # Call the install_npm_packages method.
1494
+ # result = client.install_npm_packages request
1495
+ #
1496
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse.
1497
+ # p result
1498
+ #
1499
+ def install_npm_packages request, options = nil
1500
+ raise ::ArgumentError, "request must be provided" if request.nil?
1501
+
1502
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest
1503
+
1504
+ # Converts hash and nil to an options object
1505
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1506
+
1507
+ # Customize the options with defaults
1508
+ call_metadata = @config.rpcs.install_npm_packages.metadata.to_h
1509
+
1510
+ # Set x-goog-api-client and x-goog-user-project headers
1511
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1512
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1513
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1514
+ transports_version_send: [:rest]
1515
+
1516
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1517
+
1518
+ options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
1519
+ metadata: call_metadata,
1520
+ retry_policy: @config.rpcs.install_npm_packages.retry_policy
1521
+
1522
+ options.apply_defaults timeout: @config.timeout,
1523
+ metadata: @config.metadata,
1524
+ retry_policy: @config.retry_policy
1525
+
1526
+ @dataform_stub.install_npm_packages request, options do |result, operation|
1527
+ yield result, operation if block_given?
1528
+ return result
1529
+ end
1530
+ rescue ::Gapic::Rest::Error => e
1531
+ raise ::Google::Cloud::Error.from_error(e)
1532
+ end
1533
+
1534
+ ##
1535
+ # Pulls Git commits from the Repository's remote into a Workspace.
1536
+ #
1537
+ # @overload pull_git_commits(request, options = nil)
1538
+ # Pass arguments to `pull_git_commits` via a request object, either of type
1539
+ # {::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest} or an equivalent Hash.
1540
+ #
1541
+ # @param request [::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest, ::Hash]
1542
+ # A request object representing the call parameters. Required. To specify no
1543
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1544
+ # @param options [::Gapic::CallOptions, ::Hash]
1545
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1546
+ #
1547
+ # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil)
1548
+ # Pass arguments to `pull_git_commits` via keyword arguments. Note that at
1549
+ # least one keyword argument is required. To specify no parameters, or to keep all
1550
+ # the default parameter values, pass an empty Hash as a request object (see above).
1551
+ #
1552
+ # @param name [::String]
1553
+ # Required. The workspace's name.
1554
+ # @param remote_branch [::String]
1555
+ # Optional. The name of the branch in the Git remote from which to pull
1556
+ # commits. If left unset, the repository's default branch name will be used.
1557
+ # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1558
+ # Required. The author of any merge commit which may be created as a result
1559
+ # of merging fetched Git commits into this workspace.
1560
+ # @yield [result, operation] Access the result along with the TransportOperation object
1561
+ # @yieldparam result [::Google::Protobuf::Empty]
1562
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1563
+ #
1564
+ # @return [::Google::Protobuf::Empty]
1565
+ #
1566
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1567
+ #
1568
+ # @example Basic example
1569
+ # require "google/cloud/dataform/v1beta1"
1570
+ #
1571
+ # # Create a client object. The client can be reused for multiple calls.
1572
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1573
+ #
1574
+ # # Create a request. To set request fields, pass in keyword arguments.
1575
+ # request = Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest.new
1576
+ #
1577
+ # # Call the pull_git_commits method.
1578
+ # result = client.pull_git_commits request
1579
+ #
1580
+ # # The returned object is of type Google::Protobuf::Empty.
1581
+ # p result
1582
+ #
1583
+ def pull_git_commits request, options = nil
1584
+ raise ::ArgumentError, "request must be provided" if request.nil?
1585
+
939
1586
  request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest
940
1587
 
941
1588
  # Converts hash and nil to an options object
942
1589
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
943
1590
 
944
1591
  # Customize the options with defaults
945
- call_metadata = @config.rpcs.pull_git_commits.metadata.to_h
1592
+ call_metadata = @config.rpcs.pull_git_commits.metadata.to_h
1593
+
1594
+ # Set x-goog-api-client and x-goog-user-project headers
1595
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1596
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1597
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1598
+ transports_version_send: [:rest]
1599
+
1600
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1601
+
1602
+ options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
1603
+ metadata: call_metadata,
1604
+ retry_policy: @config.rpcs.pull_git_commits.retry_policy
1605
+
1606
+ options.apply_defaults timeout: @config.timeout,
1607
+ metadata: @config.metadata,
1608
+ retry_policy: @config.retry_policy
1609
+
1610
+ @dataform_stub.pull_git_commits request, options do |result, operation|
1611
+ yield result, operation if block_given?
1612
+ return result
1613
+ end
1614
+ rescue ::Gapic::Rest::Error => e
1615
+ raise ::Google::Cloud::Error.from_error(e)
1616
+ end
1617
+
1618
+ ##
1619
+ # Pushes Git commits from a Workspace to the Repository's remote.
1620
+ #
1621
+ # @overload push_git_commits(request, options = nil)
1622
+ # Pass arguments to `push_git_commits` via a request object, either of type
1623
+ # {::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest} or an equivalent Hash.
1624
+ #
1625
+ # @param request [::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest, ::Hash]
1626
+ # A request object representing the call parameters. Required. To specify no
1627
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1628
+ # @param options [::Gapic::CallOptions, ::Hash]
1629
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1630
+ #
1631
+ # @overload push_git_commits(name: nil, remote_branch: nil)
1632
+ # Pass arguments to `push_git_commits` via keyword arguments. Note that at
1633
+ # least one keyword argument is required. To specify no parameters, or to keep all
1634
+ # the default parameter values, pass an empty Hash as a request object (see above).
1635
+ #
1636
+ # @param name [::String]
1637
+ # Required. The workspace's name.
1638
+ # @param remote_branch [::String]
1639
+ # Optional. The name of the branch in the Git remote to which commits should
1640
+ # be pushed. If left unset, the repository's default branch name will be
1641
+ # used.
1642
+ # @yield [result, operation] Access the result along with the TransportOperation object
1643
+ # @yieldparam result [::Google::Protobuf::Empty]
1644
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1645
+ #
1646
+ # @return [::Google::Protobuf::Empty]
1647
+ #
1648
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1649
+ #
1650
+ # @example Basic example
1651
+ # require "google/cloud/dataform/v1beta1"
1652
+ #
1653
+ # # Create a client object. The client can be reused for multiple calls.
1654
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1655
+ #
1656
+ # # Create a request. To set request fields, pass in keyword arguments.
1657
+ # request = Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest.new
1658
+ #
1659
+ # # Call the push_git_commits method.
1660
+ # result = client.push_git_commits request
1661
+ #
1662
+ # # The returned object is of type Google::Protobuf::Empty.
1663
+ # p result
1664
+ #
1665
+ def push_git_commits request, options = nil
1666
+ raise ::ArgumentError, "request must be provided" if request.nil?
1667
+
1668
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest
1669
+
1670
+ # Converts hash and nil to an options object
1671
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1672
+
1673
+ # Customize the options with defaults
1674
+ call_metadata = @config.rpcs.push_git_commits.metadata.to_h
1675
+
1676
+ # Set x-goog-api-client and x-goog-user-project headers
1677
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1678
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1679
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1680
+ transports_version_send: [:rest]
1681
+
1682
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1683
+
1684
+ options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout,
1685
+ metadata: call_metadata,
1686
+ retry_policy: @config.rpcs.push_git_commits.retry_policy
1687
+
1688
+ options.apply_defaults timeout: @config.timeout,
1689
+ metadata: @config.metadata,
1690
+ retry_policy: @config.retry_policy
1691
+
1692
+ @dataform_stub.push_git_commits request, options do |result, operation|
1693
+ yield result, operation if block_given?
1694
+ return result
1695
+ end
1696
+ rescue ::Gapic::Rest::Error => e
1697
+ raise ::Google::Cloud::Error.from_error(e)
1698
+ end
1699
+
1700
+ ##
1701
+ # Fetches Git statuses for the files in a Workspace.
1702
+ #
1703
+ # @overload fetch_file_git_statuses(request, options = nil)
1704
+ # Pass arguments to `fetch_file_git_statuses` via a request object, either of type
1705
+ # {::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest} or an equivalent Hash.
1706
+ #
1707
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest, ::Hash]
1708
+ # A request object representing the call parameters. Required. To specify no
1709
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1710
+ # @param options [::Gapic::CallOptions, ::Hash]
1711
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1712
+ #
1713
+ # @overload fetch_file_git_statuses(name: nil)
1714
+ # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at
1715
+ # least one keyword argument is required. To specify no parameters, or to keep all
1716
+ # the default parameter values, pass an empty Hash as a request object (see above).
1717
+ #
1718
+ # @param name [::String]
1719
+ # Required. The workspace's name.
1720
+ # @yield [result, operation] Access the result along with the TransportOperation object
1721
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1722
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1723
+ #
1724
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1725
+ #
1726
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1727
+ #
1728
+ # @example Basic example
1729
+ # require "google/cloud/dataform/v1beta1"
1730
+ #
1731
+ # # Create a client object. The client can be reused for multiple calls.
1732
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1733
+ #
1734
+ # # Create a request. To set request fields, pass in keyword arguments.
1735
+ # request = Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest.new
1736
+ #
1737
+ # # Call the fetch_file_git_statuses method.
1738
+ # result = client.fetch_file_git_statuses request
1739
+ #
1740
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse.
1741
+ # p result
1742
+ #
1743
+ def fetch_file_git_statuses request, options = nil
1744
+ raise ::ArgumentError, "request must be provided" if request.nil?
1745
+
1746
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest
1747
+
1748
+ # Converts hash and nil to an options object
1749
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1750
+
1751
+ # Customize the options with defaults
1752
+ call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
1753
+
1754
+ # Set x-goog-api-client and x-goog-user-project headers
1755
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1756
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1757
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1758
+ transports_version_send: [:rest]
1759
+
1760
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1761
+
1762
+ options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout,
1763
+ metadata: call_metadata,
1764
+ retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy
1765
+
1766
+ options.apply_defaults timeout: @config.timeout,
1767
+ metadata: @config.metadata,
1768
+ retry_policy: @config.retry_policy
1769
+
1770
+ @dataform_stub.fetch_file_git_statuses request, options do |result, operation|
1771
+ yield result, operation if block_given?
1772
+ return result
1773
+ end
1774
+ rescue ::Gapic::Rest::Error => e
1775
+ raise ::Google::Cloud::Error.from_error(e)
1776
+ end
1777
+
1778
+ ##
1779
+ # Fetches Git ahead/behind against a remote branch.
1780
+ #
1781
+ # @overload fetch_git_ahead_behind(request, options = nil)
1782
+ # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type
1783
+ # {::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest} or an equivalent Hash.
1784
+ #
1785
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest, ::Hash]
1786
+ # A request object representing the call parameters. Required. To specify no
1787
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1788
+ # @param options [::Gapic::CallOptions, ::Hash]
1789
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1790
+ #
1791
+ # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil)
1792
+ # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at
1793
+ # least one keyword argument is required. To specify no parameters, or to keep all
1794
+ # the default parameter values, pass an empty Hash as a request object (see above).
1795
+ #
1796
+ # @param name [::String]
1797
+ # Required. The workspace's name.
1798
+ # @param remote_branch [::String]
1799
+ # Optional. The name of the branch in the Git remote against which this
1800
+ # workspace should be compared. If left unset, the repository's default
1801
+ # branch name will be used.
1802
+ # @yield [result, operation] Access the result along with the TransportOperation object
1803
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1804
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1805
+ #
1806
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1807
+ #
1808
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1809
+ #
1810
+ # @example Basic example
1811
+ # require "google/cloud/dataform/v1beta1"
1812
+ #
1813
+ # # Create a client object. The client can be reused for multiple calls.
1814
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1815
+ #
1816
+ # # Create a request. To set request fields, pass in keyword arguments.
1817
+ # request = Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest.new
1818
+ #
1819
+ # # Call the fetch_git_ahead_behind method.
1820
+ # result = client.fetch_git_ahead_behind request
1821
+ #
1822
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse.
1823
+ # p result
1824
+ #
1825
+ def fetch_git_ahead_behind request, options = nil
1826
+ raise ::ArgumentError, "request must be provided" if request.nil?
1827
+
1828
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest
1829
+
1830
+ # Converts hash and nil to an options object
1831
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1832
+
1833
+ # Customize the options with defaults
1834
+ call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
1835
+
1836
+ # Set x-goog-api-client and x-goog-user-project headers
1837
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1838
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1839
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1840
+ transports_version_send: [:rest]
1841
+
1842
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1843
+
1844
+ options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout,
1845
+ metadata: call_metadata,
1846
+ retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy
1847
+
1848
+ options.apply_defaults timeout: @config.timeout,
1849
+ metadata: @config.metadata,
1850
+ retry_policy: @config.retry_policy
1851
+
1852
+ @dataform_stub.fetch_git_ahead_behind request, options do |result, operation|
1853
+ yield result, operation if block_given?
1854
+ return result
1855
+ end
1856
+ rescue ::Gapic::Rest::Error => e
1857
+ raise ::Google::Cloud::Error.from_error(e)
1858
+ end
1859
+
1860
+ ##
1861
+ # Applies a Git commit for uncommitted files in a Workspace.
1862
+ #
1863
+ # @overload commit_workspace_changes(request, options = nil)
1864
+ # Pass arguments to `commit_workspace_changes` via a request object, either of type
1865
+ # {::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest} or an equivalent Hash.
1866
+ #
1867
+ # @param request [::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest, ::Hash]
1868
+ # A request object representing the call parameters. Required. To specify no
1869
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1870
+ # @param options [::Gapic::CallOptions, ::Hash]
1871
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1872
+ #
1873
+ # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil)
1874
+ # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at
1875
+ # least one keyword argument is required. To specify no parameters, or to keep all
1876
+ # the default parameter values, pass an empty Hash as a request object (see above).
1877
+ #
1878
+ # @param name [::String]
1879
+ # Required. The workspace's name.
1880
+ # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1881
+ # Required. The commit's author.
1882
+ # @param commit_message [::String]
1883
+ # Optional. The commit's message.
1884
+ # @param paths [::Array<::String>]
1885
+ # Optional. Full file paths to commit including filename, rooted at workspace
1886
+ # root. If left empty, all files will be committed.
1887
+ # @yield [result, operation] Access the result along with the TransportOperation object
1888
+ # @yieldparam result [::Google::Protobuf::Empty]
1889
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1890
+ #
1891
+ # @return [::Google::Protobuf::Empty]
1892
+ #
1893
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1894
+ #
1895
+ # @example Basic example
1896
+ # require "google/cloud/dataform/v1beta1"
1897
+ #
1898
+ # # Create a client object. The client can be reused for multiple calls.
1899
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1900
+ #
1901
+ # # Create a request. To set request fields, pass in keyword arguments.
1902
+ # request = Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest.new
1903
+ #
1904
+ # # Call the commit_workspace_changes method.
1905
+ # result = client.commit_workspace_changes request
1906
+ #
1907
+ # # The returned object is of type Google::Protobuf::Empty.
1908
+ # p result
1909
+ #
1910
+ def commit_workspace_changes request, options = nil
1911
+ raise ::ArgumentError, "request must be provided" if request.nil?
1912
+
1913
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest
1914
+
1915
+ # Converts hash and nil to an options object
1916
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1917
+
1918
+ # Customize the options with defaults
1919
+ call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
1920
+
1921
+ # Set x-goog-api-client and x-goog-user-project headers
1922
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1923
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1924
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1925
+ transports_version_send: [:rest]
1926
+
1927
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1928
+
1929
+ options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout,
1930
+ metadata: call_metadata,
1931
+ retry_policy: @config.rpcs.commit_workspace_changes.retry_policy
1932
+
1933
+ options.apply_defaults timeout: @config.timeout,
1934
+ metadata: @config.metadata,
1935
+ retry_policy: @config.retry_policy
1936
+
1937
+ @dataform_stub.commit_workspace_changes request, options do |result, operation|
1938
+ yield result, operation if block_given?
1939
+ return result
1940
+ end
1941
+ rescue ::Gapic::Rest::Error => e
1942
+ raise ::Google::Cloud::Error.from_error(e)
1943
+ end
1944
+
1945
+ ##
1946
+ # Performs a Git reset for uncommitted files in a Workspace.
1947
+ #
1948
+ # @overload reset_workspace_changes(request, options = nil)
1949
+ # Pass arguments to `reset_workspace_changes` via a request object, either of type
1950
+ # {::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest} or an equivalent Hash.
1951
+ #
1952
+ # @param request [::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest, ::Hash]
1953
+ # A request object representing the call parameters. Required. To specify no
1954
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1955
+ # @param options [::Gapic::CallOptions, ::Hash]
1956
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1957
+ #
1958
+ # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil)
1959
+ # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at
1960
+ # least one keyword argument is required. To specify no parameters, or to keep all
1961
+ # the default parameter values, pass an empty Hash as a request object (see above).
1962
+ #
1963
+ # @param name [::String]
1964
+ # Required. The workspace's name.
1965
+ # @param paths [::Array<::String>]
1966
+ # Optional. Full file paths to reset back to their committed state including
1967
+ # filename, rooted at workspace root. If left empty, all files will be reset.
1968
+ # @param clean [::Boolean]
1969
+ # Optional. If set to true, untracked files will be deleted.
1970
+ # @yield [result, operation] Access the result along with the TransportOperation object
1971
+ # @yieldparam result [::Google::Protobuf::Empty]
1972
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1973
+ #
1974
+ # @return [::Google::Protobuf::Empty]
1975
+ #
1976
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1977
+ #
1978
+ # @example Basic example
1979
+ # require "google/cloud/dataform/v1beta1"
1980
+ #
1981
+ # # Create a client object. The client can be reused for multiple calls.
1982
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1983
+ #
1984
+ # # Create a request. To set request fields, pass in keyword arguments.
1985
+ # request = Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest.new
1986
+ #
1987
+ # # Call the reset_workspace_changes method.
1988
+ # result = client.reset_workspace_changes request
1989
+ #
1990
+ # # The returned object is of type Google::Protobuf::Empty.
1991
+ # p result
1992
+ #
1993
+ def reset_workspace_changes request, options = nil
1994
+ raise ::ArgumentError, "request must be provided" if request.nil?
1995
+
1996
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest
1997
+
1998
+ # Converts hash and nil to an options object
1999
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2000
+
2001
+ # Customize the options with defaults
2002
+ call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
2003
+
2004
+ # Set x-goog-api-client and x-goog-user-project headers
2005
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2006
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2007
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2008
+ transports_version_send: [:rest]
2009
+
2010
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2011
+
2012
+ options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout,
2013
+ metadata: call_metadata,
2014
+ retry_policy: @config.rpcs.reset_workspace_changes.retry_policy
2015
+
2016
+ options.apply_defaults timeout: @config.timeout,
2017
+ metadata: @config.metadata,
2018
+ retry_policy: @config.retry_policy
2019
+
2020
+ @dataform_stub.reset_workspace_changes request, options do |result, operation|
2021
+ yield result, operation if block_given?
2022
+ return result
2023
+ end
2024
+ rescue ::Gapic::Rest::Error => e
2025
+ raise ::Google::Cloud::Error.from_error(e)
2026
+ end
2027
+
2028
+ ##
2029
+ # Fetches Git diff for an uncommitted file in a Workspace.
2030
+ #
2031
+ # @overload fetch_file_diff(request, options = nil)
2032
+ # Pass arguments to `fetch_file_diff` via a request object, either of type
2033
+ # {::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest} or an equivalent Hash.
2034
+ #
2035
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest, ::Hash]
2036
+ # A request object representing the call parameters. Required. To specify no
2037
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2038
+ # @param options [::Gapic::CallOptions, ::Hash]
2039
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2040
+ #
2041
+ # @overload fetch_file_diff(workspace: nil, path: nil)
2042
+ # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at
2043
+ # least one keyword argument is required. To specify no parameters, or to keep all
2044
+ # the default parameter values, pass an empty Hash as a request object (see above).
2045
+ #
2046
+ # @param workspace [::String]
2047
+ # Required. The workspace's name.
2048
+ # @param path [::String]
2049
+ # Required. The file's full path including filename, relative to the
2050
+ # workspace root.
2051
+ # @yield [result, operation] Access the result along with the TransportOperation object
2052
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2053
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2054
+ #
2055
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2056
+ #
2057
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2058
+ #
2059
+ # @example Basic example
2060
+ # require "google/cloud/dataform/v1beta1"
2061
+ #
2062
+ # # Create a client object. The client can be reused for multiple calls.
2063
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2064
+ #
2065
+ # # Create a request. To set request fields, pass in keyword arguments.
2066
+ # request = Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest.new
2067
+ #
2068
+ # # Call the fetch_file_diff method.
2069
+ # result = client.fetch_file_diff request
2070
+ #
2071
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse.
2072
+ # p result
2073
+ #
2074
+ def fetch_file_diff request, options = nil
2075
+ raise ::ArgumentError, "request must be provided" if request.nil?
2076
+
2077
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest
2078
+
2079
+ # Converts hash and nil to an options object
2080
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2081
+
2082
+ # Customize the options with defaults
2083
+ call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h
2084
+
2085
+ # Set x-goog-api-client and x-goog-user-project headers
2086
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2087
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2088
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2089
+ transports_version_send: [:rest]
2090
+
2091
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2092
+
2093
+ options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout,
2094
+ metadata: call_metadata,
2095
+ retry_policy: @config.rpcs.fetch_file_diff.retry_policy
2096
+
2097
+ options.apply_defaults timeout: @config.timeout,
2098
+ metadata: @config.metadata,
2099
+ retry_policy: @config.retry_policy
2100
+
2101
+ @dataform_stub.fetch_file_diff request, options do |result, operation|
2102
+ yield result, operation if block_given?
2103
+ return result
2104
+ end
2105
+ rescue ::Gapic::Rest::Error => e
2106
+ raise ::Google::Cloud::Error.from_error(e)
2107
+ end
2108
+
2109
+ ##
2110
+ # Returns the contents of a given Workspace directory.
2111
+ #
2112
+ # @overload query_directory_contents(request, options = nil)
2113
+ # Pass arguments to `query_directory_contents` via a request object, either of type
2114
+ # {::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest} or an equivalent Hash.
2115
+ #
2116
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest, ::Hash]
2117
+ # A request object representing the call parameters. Required. To specify no
2118
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2119
+ # @param options [::Gapic::CallOptions, ::Hash]
2120
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2121
+ #
2122
+ # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
2123
+ # Pass arguments to `query_directory_contents` via keyword arguments. Note that at
2124
+ # least one keyword argument is required. To specify no parameters, or to keep all
2125
+ # the default parameter values, pass an empty Hash as a request object (see above).
2126
+ #
2127
+ # @param workspace [::String]
2128
+ # Required. The workspace's name.
2129
+ # @param path [::String]
2130
+ # Optional. The directory's full path including directory name, relative to
2131
+ # the workspace root. If left unset, the workspace root is used.
2132
+ # @param page_size [::Integer]
2133
+ # Optional. Maximum number of paths to return. The server may return fewer
2134
+ # items than requested. If unspecified, the server will pick an appropriate
2135
+ # default.
2136
+ # @param page_token [::String]
2137
+ # Optional. Page token received from a previous `QueryDirectoryContents`
2138
+ # call. Provide this to retrieve the subsequent page.
2139
+ #
2140
+ # When paginating, all other parameters provided to
2141
+ # `QueryDirectoryContents` must match the call that provided the page
2142
+ # token.
2143
+ # @yield [result, operation] Access the result along with the TransportOperation object
2144
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
2145
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2146
+ #
2147
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
2148
+ #
2149
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2150
+ #
2151
+ # @example Basic example
2152
+ # require "google/cloud/dataform/v1beta1"
2153
+ #
2154
+ # # Create a client object. The client can be reused for multiple calls.
2155
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2156
+ #
2157
+ # # Create a request. To set request fields, pass in keyword arguments.
2158
+ # request = Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest.new
2159
+ #
2160
+ # # Call the query_directory_contents method.
2161
+ # result = client.query_directory_contents request
2162
+ #
2163
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2164
+ # # over elements, and API calls will be issued to fetch pages as needed.
2165
+ # result.each do |item|
2166
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::DirectoryEntry.
2167
+ # p item
2168
+ # end
2169
+ #
2170
+ def query_directory_contents request, options = nil
2171
+ raise ::ArgumentError, "request must be provided" if request.nil?
2172
+
2173
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest
2174
+
2175
+ # Converts hash and nil to an options object
2176
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2177
+
2178
+ # Customize the options with defaults
2179
+ call_metadata = @config.rpcs.query_directory_contents.metadata.to_h
2180
+
2181
+ # Set x-goog-api-client and x-goog-user-project headers
2182
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2183
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2184
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2185
+ transports_version_send: [:rest]
2186
+
2187
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2188
+
2189
+ options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout,
2190
+ metadata: call_metadata,
2191
+ retry_policy: @config.rpcs.query_directory_contents.retry_policy
2192
+
2193
+ options.apply_defaults timeout: @config.timeout,
2194
+ metadata: @config.metadata,
2195
+ retry_policy: @config.retry_policy
2196
+
2197
+ @dataform_stub.query_directory_contents request, options do |result, operation|
2198
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options
2199
+ yield result, operation if block_given?
2200
+ return result
2201
+ end
2202
+ rescue ::Gapic::Rest::Error => e
2203
+ raise ::Google::Cloud::Error.from_error(e)
2204
+ end
2205
+
2206
+ ##
2207
+ # Creates a directory inside a Workspace.
2208
+ #
2209
+ # @overload make_directory(request, options = nil)
2210
+ # Pass arguments to `make_directory` via a request object, either of type
2211
+ # {::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest} or an equivalent Hash.
2212
+ #
2213
+ # @param request [::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest, ::Hash]
2214
+ # A request object representing the call parameters. Required. To specify no
2215
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2216
+ # @param options [::Gapic::CallOptions, ::Hash]
2217
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2218
+ #
2219
+ # @overload make_directory(workspace: nil, path: nil)
2220
+ # Pass arguments to `make_directory` via keyword arguments. Note that at
2221
+ # least one keyword argument is required. To specify no parameters, or to keep all
2222
+ # the default parameter values, pass an empty Hash as a request object (see above).
2223
+ #
2224
+ # @param workspace [::String]
2225
+ # Required. The workspace's name.
2226
+ # @param path [::String]
2227
+ # Required. The directory's full path including directory name, relative to
2228
+ # the workspace root.
2229
+ # @yield [result, operation] Access the result along with the TransportOperation object
2230
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
2231
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2232
+ #
2233
+ # @return [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
2234
+ #
2235
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2236
+ #
2237
+ # @example Basic example
2238
+ # require "google/cloud/dataform/v1beta1"
2239
+ #
2240
+ # # Create a client object. The client can be reused for multiple calls.
2241
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2242
+ #
2243
+ # # Create a request. To set request fields, pass in keyword arguments.
2244
+ # request = Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest.new
2245
+ #
2246
+ # # Call the make_directory method.
2247
+ # result = client.make_directory request
2248
+ #
2249
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse.
2250
+ # p result
2251
+ #
2252
+ def make_directory request, options = nil
2253
+ raise ::ArgumentError, "request must be provided" if request.nil?
2254
+
2255
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest
2256
+
2257
+ # Converts hash and nil to an options object
2258
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2259
+
2260
+ # Customize the options with defaults
2261
+ call_metadata = @config.rpcs.make_directory.metadata.to_h
2262
+
2263
+ # Set x-goog-api-client and x-goog-user-project headers
2264
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2265
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2266
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2267
+ transports_version_send: [:rest]
2268
+
2269
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2270
+
2271
+ options.apply_defaults timeout: @config.rpcs.make_directory.timeout,
2272
+ metadata: call_metadata,
2273
+ retry_policy: @config.rpcs.make_directory.retry_policy
2274
+
2275
+ options.apply_defaults timeout: @config.timeout,
2276
+ metadata: @config.metadata,
2277
+ retry_policy: @config.retry_policy
2278
+
2279
+ @dataform_stub.make_directory request, options do |result, operation|
2280
+ yield result, operation if block_given?
2281
+ return result
2282
+ end
2283
+ rescue ::Gapic::Rest::Error => e
2284
+ raise ::Google::Cloud::Error.from_error(e)
2285
+ end
2286
+
2287
+ ##
2288
+ # Deletes a directory (inside a Workspace) and all of its contents.
2289
+ #
2290
+ # @overload remove_directory(request, options = nil)
2291
+ # Pass arguments to `remove_directory` via a request object, either of type
2292
+ # {::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest} or an equivalent Hash.
2293
+ #
2294
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest, ::Hash]
2295
+ # A request object representing the call parameters. Required. To specify no
2296
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2297
+ # @param options [::Gapic::CallOptions, ::Hash]
2298
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2299
+ #
2300
+ # @overload remove_directory(workspace: nil, path: nil)
2301
+ # Pass arguments to `remove_directory` via keyword arguments. Note that at
2302
+ # least one keyword argument is required. To specify no parameters, or to keep all
2303
+ # the default parameter values, pass an empty Hash as a request object (see above).
2304
+ #
2305
+ # @param workspace [::String]
2306
+ # Required. The workspace's name.
2307
+ # @param path [::String]
2308
+ # Required. The directory's full path including directory name, relative to
2309
+ # the workspace root.
2310
+ # @yield [result, operation] Access the result along with the TransportOperation object
2311
+ # @yieldparam result [::Google::Protobuf::Empty]
2312
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2313
+ #
2314
+ # @return [::Google::Protobuf::Empty]
2315
+ #
2316
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2317
+ #
2318
+ # @example Basic example
2319
+ # require "google/cloud/dataform/v1beta1"
2320
+ #
2321
+ # # Create a client object. The client can be reused for multiple calls.
2322
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2323
+ #
2324
+ # # Create a request. To set request fields, pass in keyword arguments.
2325
+ # request = Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest.new
2326
+ #
2327
+ # # Call the remove_directory method.
2328
+ # result = client.remove_directory request
2329
+ #
2330
+ # # The returned object is of type Google::Protobuf::Empty.
2331
+ # p result
2332
+ #
2333
+ def remove_directory request, options = nil
2334
+ raise ::ArgumentError, "request must be provided" if request.nil?
2335
+
2336
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest
2337
+
2338
+ # Converts hash and nil to an options object
2339
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2340
+
2341
+ # Customize the options with defaults
2342
+ call_metadata = @config.rpcs.remove_directory.metadata.to_h
2343
+
2344
+ # Set x-goog-api-client and x-goog-user-project headers
2345
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2346
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2347
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2348
+ transports_version_send: [:rest]
2349
+
2350
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2351
+
2352
+ options.apply_defaults timeout: @config.rpcs.remove_directory.timeout,
2353
+ metadata: call_metadata,
2354
+ retry_policy: @config.rpcs.remove_directory.retry_policy
2355
+
2356
+ options.apply_defaults timeout: @config.timeout,
2357
+ metadata: @config.metadata,
2358
+ retry_policy: @config.retry_policy
2359
+
2360
+ @dataform_stub.remove_directory request, options do |result, operation|
2361
+ yield result, operation if block_given?
2362
+ return result
2363
+ end
2364
+ rescue ::Gapic::Rest::Error => e
2365
+ raise ::Google::Cloud::Error.from_error(e)
2366
+ end
2367
+
2368
+ ##
2369
+ # Moves a directory (inside a Workspace), and all of its contents, to a new
2370
+ # location.
2371
+ #
2372
+ # @overload move_directory(request, options = nil)
2373
+ # Pass arguments to `move_directory` via a request object, either of type
2374
+ # {::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest} or an equivalent Hash.
2375
+ #
2376
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest, ::Hash]
2377
+ # A request object representing the call parameters. Required. To specify no
2378
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2379
+ # @param options [::Gapic::CallOptions, ::Hash]
2380
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2381
+ #
2382
+ # @overload move_directory(workspace: nil, path: nil, new_path: nil)
2383
+ # Pass arguments to `move_directory` via keyword arguments. Note that at
2384
+ # least one keyword argument is required. To specify no parameters, or to keep all
2385
+ # the default parameter values, pass an empty Hash as a request object (see above).
2386
+ #
2387
+ # @param workspace [::String]
2388
+ # Required. The workspace's name.
2389
+ # @param path [::String]
2390
+ # Required. The directory's full path including directory name, relative to
2391
+ # the workspace root.
2392
+ # @param new_path [::String]
2393
+ # Required. The new path for the directory including directory name, rooted
2394
+ # at workspace root.
2395
+ # @yield [result, operation] Access the result along with the TransportOperation object
2396
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
2397
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2398
+ #
2399
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
2400
+ #
2401
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2402
+ #
2403
+ # @example Basic example
2404
+ # require "google/cloud/dataform/v1beta1"
2405
+ #
2406
+ # # Create a client object. The client can be reused for multiple calls.
2407
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2408
+ #
2409
+ # # Create a request. To set request fields, pass in keyword arguments.
2410
+ # request = Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest.new
2411
+ #
2412
+ # # Call the move_directory method.
2413
+ # result = client.move_directory request
2414
+ #
2415
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse.
2416
+ # p result
2417
+ #
2418
+ def move_directory request, options = nil
2419
+ raise ::ArgumentError, "request must be provided" if request.nil?
2420
+
2421
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest
2422
+
2423
+ # Converts hash and nil to an options object
2424
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2425
+
2426
+ # Customize the options with defaults
2427
+ call_metadata = @config.rpcs.move_directory.metadata.to_h
946
2428
 
947
2429
  # Set x-goog-api-client and x-goog-user-project headers
948
2430
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -952,15 +2434,15 @@ module Google
952
2434
 
953
2435
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
954
2436
 
955
- options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
2437
+ options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
956
2438
  metadata: call_metadata,
957
- retry_policy: @config.rpcs.pull_git_commits.retry_policy
2439
+ retry_policy: @config.rpcs.move_directory.retry_policy
958
2440
 
959
2441
  options.apply_defaults timeout: @config.timeout,
960
2442
  metadata: @config.metadata,
961
2443
  retry_policy: @config.retry_policy
962
2444
 
963
- @dataform_stub.pull_git_commits request, options do |result, operation|
2445
+ @dataform_stub.move_directory request, options do |result, operation|
964
2446
  yield result, operation if block_given?
965
2447
  return result
966
2448
  end
@@ -969,45 +2451,61 @@ module Google
969
2451
  end
970
2452
 
971
2453
  ##
972
- # Pushes Git commits from a Workspace to the Repository's remote.
2454
+ # Returns the contents of a file (inside a Workspace).
973
2455
  #
974
- # @overload push_git_commits(request, options = nil)
975
- # Pass arguments to `push_git_commits` via a request object, either of type
976
- # {::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest} or an equivalent Hash.
2456
+ # @overload read_file(request, options = nil)
2457
+ # Pass arguments to `read_file` via a request object, either of type
2458
+ # {::Google::Cloud::Dataform::V1beta1::ReadFileRequest} or an equivalent Hash.
977
2459
  #
978
- # @param request [::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest, ::Hash]
2460
+ # @param request [::Google::Cloud::Dataform::V1beta1::ReadFileRequest, ::Hash]
979
2461
  # A request object representing the call parameters. Required. To specify no
980
2462
  # parameters, or to keep all the default parameter values, pass an empty Hash.
981
2463
  # @param options [::Gapic::CallOptions, ::Hash]
982
2464
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
983
2465
  #
984
- # @overload push_git_commits(name: nil, remote_branch: nil)
985
- # Pass arguments to `push_git_commits` via keyword arguments. Note that at
2466
+ # @overload read_file(workspace: nil, path: nil)
2467
+ # Pass arguments to `read_file` via keyword arguments. Note that at
986
2468
  # least one keyword argument is required. To specify no parameters, or to keep all
987
2469
  # the default parameter values, pass an empty Hash as a request object (see above).
988
2470
  #
989
- # @param name [::String]
2471
+ # @param workspace [::String]
990
2472
  # Required. The workspace's name.
991
- # @param remote_branch [::String]
992
- # Optional. The name of the branch in the Git remote to which commits should be pushed.
993
- # If left unset, the repository's default branch name will be used.
2473
+ # @param path [::String]
2474
+ # Required. The file's full path including filename, relative to the
2475
+ # workspace root.
994
2476
  # @yield [result, operation] Access the result along with the TransportOperation object
995
- # @yieldparam result [::Google::Protobuf::Empty]
2477
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
996
2478
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
997
2479
  #
998
- # @return [::Google::Protobuf::Empty]
2480
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
999
2481
  #
1000
2482
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1001
- def push_git_commits request, options = nil
2483
+ #
2484
+ # @example Basic example
2485
+ # require "google/cloud/dataform/v1beta1"
2486
+ #
2487
+ # # Create a client object. The client can be reused for multiple calls.
2488
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2489
+ #
2490
+ # # Create a request. To set request fields, pass in keyword arguments.
2491
+ # request = Google::Cloud::Dataform::V1beta1::ReadFileRequest.new
2492
+ #
2493
+ # # Call the read_file method.
2494
+ # result = client.read_file request
2495
+ #
2496
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReadFileResponse.
2497
+ # p result
2498
+ #
2499
+ def read_file request, options = nil
1002
2500
  raise ::ArgumentError, "request must be provided" if request.nil?
1003
2501
 
1004
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest
2502
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadFileRequest
1005
2503
 
1006
2504
  # Converts hash and nil to an options object
1007
2505
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1008
2506
 
1009
2507
  # Customize the options with defaults
1010
- call_metadata = @config.rpcs.push_git_commits.metadata.to_h
2508
+ call_metadata = @config.rpcs.read_file.metadata.to_h
1011
2509
 
1012
2510
  # Set x-goog-api-client and x-goog-user-project headers
1013
2511
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1017,15 +2515,15 @@ module Google
1017
2515
 
1018
2516
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1019
2517
 
1020
- options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout,
2518
+ options.apply_defaults timeout: @config.rpcs.read_file.timeout,
1021
2519
  metadata: call_metadata,
1022
- retry_policy: @config.rpcs.push_git_commits.retry_policy
2520
+ retry_policy: @config.rpcs.read_file.retry_policy
1023
2521
 
1024
2522
  options.apply_defaults timeout: @config.timeout,
1025
2523
  metadata: @config.metadata,
1026
2524
  retry_policy: @config.retry_policy
1027
2525
 
1028
- @dataform_stub.push_git_commits request, options do |result, operation|
2526
+ @dataform_stub.read_file request, options do |result, operation|
1029
2527
  yield result, operation if block_given?
1030
2528
  return result
1031
2529
  end
@@ -1034,42 +2532,61 @@ module Google
1034
2532
  end
1035
2533
 
1036
2534
  ##
1037
- # Fetches Git statuses for the files in a Workspace.
2535
+ # Deletes a file (inside a Workspace).
1038
2536
  #
1039
- # @overload fetch_file_git_statuses(request, options = nil)
1040
- # Pass arguments to `fetch_file_git_statuses` via a request object, either of type
1041
- # {::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest} or an equivalent Hash.
2537
+ # @overload remove_file(request, options = nil)
2538
+ # Pass arguments to `remove_file` via a request object, either of type
2539
+ # {::Google::Cloud::Dataform::V1beta1::RemoveFileRequest} or an equivalent Hash.
1042
2540
  #
1043
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest, ::Hash]
2541
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveFileRequest, ::Hash]
1044
2542
  # A request object representing the call parameters. Required. To specify no
1045
2543
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1046
2544
  # @param options [::Gapic::CallOptions, ::Hash]
1047
2545
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1048
2546
  #
1049
- # @overload fetch_file_git_statuses(name: nil)
1050
- # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at
2547
+ # @overload remove_file(workspace: nil, path: nil)
2548
+ # Pass arguments to `remove_file` via keyword arguments. Note that at
1051
2549
  # least one keyword argument is required. To specify no parameters, or to keep all
1052
2550
  # the default parameter values, pass an empty Hash as a request object (see above).
1053
2551
  #
1054
- # @param name [::String]
2552
+ # @param workspace [::String]
1055
2553
  # Required. The workspace's name.
2554
+ # @param path [::String]
2555
+ # Required. The file's full path including filename, relative to the
2556
+ # workspace root.
1056
2557
  # @yield [result, operation] Access the result along with the TransportOperation object
1057
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
2558
+ # @yieldparam result [::Google::Protobuf::Empty]
1058
2559
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1059
2560
  #
1060
- # @return [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
2561
+ # @return [::Google::Protobuf::Empty]
1061
2562
  #
1062
2563
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1063
- def fetch_file_git_statuses request, options = nil
2564
+ #
2565
+ # @example Basic example
2566
+ # require "google/cloud/dataform/v1beta1"
2567
+ #
2568
+ # # Create a client object. The client can be reused for multiple calls.
2569
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2570
+ #
2571
+ # # Create a request. To set request fields, pass in keyword arguments.
2572
+ # request = Google::Cloud::Dataform::V1beta1::RemoveFileRequest.new
2573
+ #
2574
+ # # Call the remove_file method.
2575
+ # result = client.remove_file request
2576
+ #
2577
+ # # The returned object is of type Google::Protobuf::Empty.
2578
+ # p result
2579
+ #
2580
+ def remove_file request, options = nil
1064
2581
  raise ::ArgumentError, "request must be provided" if request.nil?
1065
2582
 
1066
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest
2583
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveFileRequest
1067
2584
 
1068
2585
  # Converts hash and nil to an options object
1069
2586
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1070
2587
 
1071
2588
  # Customize the options with defaults
1072
- call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
2589
+ call_metadata = @config.rpcs.remove_file.metadata.to_h
1073
2590
 
1074
2591
  # Set x-goog-api-client and x-goog-user-project headers
1075
2592
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1079,15 +2596,15 @@ module Google
1079
2596
 
1080
2597
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1081
2598
 
1082
- options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout,
2599
+ options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
1083
2600
  metadata: call_metadata,
1084
- retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy
2601
+ retry_policy: @config.rpcs.remove_file.retry_policy
1085
2602
 
1086
2603
  options.apply_defaults timeout: @config.timeout,
1087
2604
  metadata: @config.metadata,
1088
2605
  retry_policy: @config.retry_policy
1089
2606
 
1090
- @dataform_stub.fetch_file_git_statuses request, options do |result, operation|
2607
+ @dataform_stub.remove_file request, options do |result, operation|
1091
2608
  yield result, operation if block_given?
1092
2609
  return result
1093
2610
  end
@@ -1096,46 +2613,64 @@ module Google
1096
2613
  end
1097
2614
 
1098
2615
  ##
1099
- # Fetches Git ahead/behind against a remote branch.
2616
+ # Moves a file (inside a Workspace) to a new location.
1100
2617
  #
1101
- # @overload fetch_git_ahead_behind(request, options = nil)
1102
- # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type
1103
- # {::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest} or an equivalent Hash.
2618
+ # @overload move_file(request, options = nil)
2619
+ # Pass arguments to `move_file` via a request object, either of type
2620
+ # {::Google::Cloud::Dataform::V1beta1::MoveFileRequest} or an equivalent Hash.
1104
2621
  #
1105
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest, ::Hash]
2622
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveFileRequest, ::Hash]
1106
2623
  # A request object representing the call parameters. Required. To specify no
1107
2624
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1108
2625
  # @param options [::Gapic::CallOptions, ::Hash]
1109
2626
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1110
2627
  #
1111
- # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil)
1112
- # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at
2628
+ # @overload move_file(workspace: nil, path: nil, new_path: nil)
2629
+ # Pass arguments to `move_file` via keyword arguments. Note that at
1113
2630
  # least one keyword argument is required. To specify no parameters, or to keep all
1114
2631
  # the default parameter values, pass an empty Hash as a request object (see above).
1115
2632
  #
1116
- # @param name [::String]
2633
+ # @param workspace [::String]
1117
2634
  # Required. The workspace's name.
1118
- # @param remote_branch [::String]
1119
- # Optional. The name of the branch in the Git remote against which this workspace
1120
- # should be compared. If left unset, the repository's default branch name
1121
- # will be used.
2635
+ # @param path [::String]
2636
+ # Required. The file's full path including filename, relative to the
2637
+ # workspace root.
2638
+ # @param new_path [::String]
2639
+ # Required. The file's new path including filename, relative to the workspace
2640
+ # root.
1122
2641
  # @yield [result, operation] Access the result along with the TransportOperation object
1123
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
2642
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
1124
2643
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1125
2644
  #
1126
- # @return [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
2645
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
1127
2646
  #
1128
2647
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1129
- def fetch_git_ahead_behind request, options = nil
2648
+ #
2649
+ # @example Basic example
2650
+ # require "google/cloud/dataform/v1beta1"
2651
+ #
2652
+ # # Create a client object. The client can be reused for multiple calls.
2653
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2654
+ #
2655
+ # # Create a request. To set request fields, pass in keyword arguments.
2656
+ # request = Google::Cloud::Dataform::V1beta1::MoveFileRequest.new
2657
+ #
2658
+ # # Call the move_file method.
2659
+ # result = client.move_file request
2660
+ #
2661
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveFileResponse.
2662
+ # p result
2663
+ #
2664
+ def move_file request, options = nil
1130
2665
  raise ::ArgumentError, "request must be provided" if request.nil?
1131
2666
 
1132
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest
2667
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFileRequest
1133
2668
 
1134
2669
  # Converts hash and nil to an options object
1135
2670
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1136
2671
 
1137
2672
  # Customize the options with defaults
1138
- call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
2673
+ call_metadata = @config.rpcs.move_file.metadata.to_h
1139
2674
 
1140
2675
  # Set x-goog-api-client and x-goog-user-project headers
1141
2676
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1145,15 +2680,15 @@ module Google
1145
2680
 
1146
2681
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1147
2682
 
1148
- options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout,
2683
+ options.apply_defaults timeout: @config.rpcs.move_file.timeout,
1149
2684
  metadata: call_metadata,
1150
- retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy
2685
+ retry_policy: @config.rpcs.move_file.retry_policy
1151
2686
 
1152
2687
  options.apply_defaults timeout: @config.timeout,
1153
2688
  metadata: @config.metadata,
1154
2689
  retry_policy: @config.retry_policy
1155
2690
 
1156
- @dataform_stub.fetch_git_ahead_behind request, options do |result, operation|
2691
+ @dataform_stub.move_file request, options do |result, operation|
1157
2692
  yield result, operation if block_given?
1158
2693
  return result
1159
2694
  end
@@ -1162,49 +2697,62 @@ module Google
1162
2697
  end
1163
2698
 
1164
2699
  ##
1165
- # Applies a Git commit for uncommitted files in a Workspace.
2700
+ # Writes to a file (inside a Workspace).
1166
2701
  #
1167
- # @overload commit_workspace_changes(request, options = nil)
1168
- # Pass arguments to `commit_workspace_changes` via a request object, either of type
1169
- # {::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest} or an equivalent Hash.
2702
+ # @overload write_file(request, options = nil)
2703
+ # Pass arguments to `write_file` via a request object, either of type
2704
+ # {::Google::Cloud::Dataform::V1beta1::WriteFileRequest} or an equivalent Hash.
1170
2705
  #
1171
- # @param request [::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest, ::Hash]
2706
+ # @param request [::Google::Cloud::Dataform::V1beta1::WriteFileRequest, ::Hash]
1172
2707
  # A request object representing the call parameters. Required. To specify no
1173
2708
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1174
2709
  # @param options [::Gapic::CallOptions, ::Hash]
1175
2710
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1176
2711
  #
1177
- # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil)
1178
- # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at
2712
+ # @overload write_file(workspace: nil, path: nil, contents: nil)
2713
+ # Pass arguments to `write_file` via keyword arguments. Note that at
1179
2714
  # least one keyword argument is required. To specify no parameters, or to keep all
1180
2715
  # the default parameter values, pass an empty Hash as a request object (see above).
1181
2716
  #
1182
- # @param name [::String]
2717
+ # @param workspace [::String]
1183
2718
  # Required. The workspace's name.
1184
- # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1185
- # Required. The commit's author.
1186
- # @param commit_message [::String]
1187
- # Optional. The commit's message.
1188
- # @param paths [::Array<::String>]
1189
- # Optional. Full file paths to commit including filename, rooted at workspace root. If
1190
- # left empty, all files will be committed.
2719
+ # @param path [::String]
2720
+ # Required. The file.
2721
+ # @param contents [::String]
2722
+ # Required. The file's contents.
1191
2723
  # @yield [result, operation] Access the result along with the TransportOperation object
1192
- # @yieldparam result [::Google::Protobuf::Empty]
2724
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
1193
2725
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1194
2726
  #
1195
- # @return [::Google::Protobuf::Empty]
2727
+ # @return [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
1196
2728
  #
1197
2729
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1198
- def commit_workspace_changes request, options = nil
2730
+ #
2731
+ # @example Basic example
2732
+ # require "google/cloud/dataform/v1beta1"
2733
+ #
2734
+ # # Create a client object. The client can be reused for multiple calls.
2735
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2736
+ #
2737
+ # # Create a request. To set request fields, pass in keyword arguments.
2738
+ # request = Google::Cloud::Dataform::V1beta1::WriteFileRequest.new
2739
+ #
2740
+ # # Call the write_file method.
2741
+ # result = client.write_file request
2742
+ #
2743
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WriteFileResponse.
2744
+ # p result
2745
+ #
2746
+ def write_file request, options = nil
1199
2747
  raise ::ArgumentError, "request must be provided" if request.nil?
1200
2748
 
1201
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest
2749
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::WriteFileRequest
1202
2750
 
1203
2751
  # Converts hash and nil to an options object
1204
2752
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1205
2753
 
1206
2754
  # Customize the options with defaults
1207
- call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
2755
+ call_metadata = @config.rpcs.write_file.metadata.to_h
1208
2756
 
1209
2757
  # Set x-goog-api-client and x-goog-user-project headers
1210
2758
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1214,15 +2762,15 @@ module Google
1214
2762
 
1215
2763
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1216
2764
 
1217
- options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout,
2765
+ options.apply_defaults timeout: @config.rpcs.write_file.timeout,
1218
2766
  metadata: call_metadata,
1219
- retry_policy: @config.rpcs.commit_workspace_changes.retry_policy
2767
+ retry_policy: @config.rpcs.write_file.retry_policy
1220
2768
 
1221
2769
  options.apply_defaults timeout: @config.timeout,
1222
2770
  metadata: @config.metadata,
1223
2771
  retry_policy: @config.retry_policy
1224
2772
 
1225
- @dataform_stub.commit_workspace_changes request, options do |result, operation|
2773
+ @dataform_stub.write_file request, options do |result, operation|
1226
2774
  yield result, operation if block_given?
1227
2775
  return result
1228
2776
  end
@@ -1231,47 +2779,73 @@ module Google
1231
2779
  end
1232
2780
 
1233
2781
  ##
1234
- # Performs a Git reset for uncommitted files in a Workspace.
2782
+ # Lists ReleaseConfigs in a given Repository.
1235
2783
  #
1236
- # @overload reset_workspace_changes(request, options = nil)
1237
- # Pass arguments to `reset_workspace_changes` via a request object, either of type
1238
- # {::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest} or an equivalent Hash.
2784
+ # @overload list_release_configs(request, options = nil)
2785
+ # Pass arguments to `list_release_configs` via a request object, either of type
2786
+ # {::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest} or an equivalent Hash.
1239
2787
  #
1240
- # @param request [::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest, ::Hash]
2788
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest, ::Hash]
1241
2789
  # A request object representing the call parameters. Required. To specify no
1242
2790
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1243
2791
  # @param options [::Gapic::CallOptions, ::Hash]
1244
2792
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1245
2793
  #
1246
- # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil)
1247
- # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at
2794
+ # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil)
2795
+ # Pass arguments to `list_release_configs` via keyword arguments. Note that at
1248
2796
  # least one keyword argument is required. To specify no parameters, or to keep all
1249
2797
  # the default parameter values, pass an empty Hash as a request object (see above).
1250
2798
  #
1251
- # @param name [::String]
1252
- # Required. The workspace's name.
1253
- # @param paths [::Array<::String>]
1254
- # Optional. Full file paths to reset back to their committed state including filename,
1255
- # rooted at workspace root. If left empty, all files will be reset.
1256
- # @param clean [::Boolean]
1257
- # Optional. If set to true, untracked files will be deleted.
2799
+ # @param parent [::String]
2800
+ # Required. The repository in which to list release configs. Must be in the
2801
+ # format `projects/*/locations/*/repositories/*`.
2802
+ # @param page_size [::Integer]
2803
+ # Optional. Maximum number of release configs to return. The server may
2804
+ # return fewer items than requested. If unspecified, the server will pick an
2805
+ # appropriate default.
2806
+ # @param page_token [::String]
2807
+ # Optional. Page token received from a previous `ListReleaseConfigs` call.
2808
+ # Provide this to retrieve the subsequent page.
2809
+ #
2810
+ # When paginating, all other parameters provided to `ListReleaseConfigs`
2811
+ # must match the call that provided the page token.
1258
2812
  # @yield [result, operation] Access the result along with the TransportOperation object
1259
- # @yieldparam result [::Google::Protobuf::Empty]
2813
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsResponse]
1260
2814
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1261
2815
  #
1262
- # @return [::Google::Protobuf::Empty]
2816
+ # @return [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsResponse]
1263
2817
  #
1264
2818
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1265
- def reset_workspace_changes request, options = nil
2819
+ #
2820
+ # @example Basic example
2821
+ # require "google/cloud/dataform/v1beta1"
2822
+ #
2823
+ # # Create a client object. The client can be reused for multiple calls.
2824
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2825
+ #
2826
+ # # Create a request. To set request fields, pass in keyword arguments.
2827
+ # request = Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest.new
2828
+ #
2829
+ # # Call the list_release_configs method.
2830
+ # result = client.list_release_configs request
2831
+ #
2832
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2833
+ # # over elements, and API calls will be issued to fetch pages as needed.
2834
+ # result.each do |item|
2835
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::ReleaseConfig.
2836
+ # p item
2837
+ # end
2838
+ #
2839
+ def list_release_configs request, options = nil
1266
2840
  raise ::ArgumentError, "request must be provided" if request.nil?
1267
2841
 
1268
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest
2842
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest
1269
2843
 
1270
2844
  # Converts hash and nil to an options object
1271
2845
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1272
2846
 
1273
2847
  # Customize the options with defaults
1274
- call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
2848
+ call_metadata = @config.rpcs.list_release_configs.metadata.to_h
1275
2849
 
1276
2850
  # Set x-goog-api-client and x-goog-user-project headers
1277
2851
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1281,15 +2855,15 @@ module Google
1281
2855
 
1282
2856
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1283
2857
 
1284
- options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout,
2858
+ options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout,
1285
2859
  metadata: call_metadata,
1286
- retry_policy: @config.rpcs.reset_workspace_changes.retry_policy
2860
+ retry_policy: @config.rpcs.list_release_configs.retry_policy
1287
2861
 
1288
2862
  options.apply_defaults timeout: @config.timeout,
1289
2863
  metadata: @config.metadata,
1290
2864
  retry_policy: @config.retry_policy
1291
2865
 
1292
- @dataform_stub.reset_workspace_changes request, options do |result, operation|
2866
+ @dataform_stub.list_release_configs request, options do |result, operation|
1293
2867
  yield result, operation if block_given?
1294
2868
  return result
1295
2869
  end
@@ -1298,44 +2872,58 @@ module Google
1298
2872
  end
1299
2873
 
1300
2874
  ##
1301
- # Fetches Git diff for an uncommitted file in a Workspace.
2875
+ # Fetches a single ReleaseConfig.
1302
2876
  #
1303
- # @overload fetch_file_diff(request, options = nil)
1304
- # Pass arguments to `fetch_file_diff` via a request object, either of type
1305
- # {::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest} or an equivalent Hash.
2877
+ # @overload get_release_config(request, options = nil)
2878
+ # Pass arguments to `get_release_config` via a request object, either of type
2879
+ # {::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest} or an equivalent Hash.
1306
2880
  #
1307
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest, ::Hash]
2881
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest, ::Hash]
1308
2882
  # A request object representing the call parameters. Required. To specify no
1309
2883
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1310
2884
  # @param options [::Gapic::CallOptions, ::Hash]
1311
2885
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1312
2886
  #
1313
- # @overload fetch_file_diff(workspace: nil, path: nil)
1314
- # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at
2887
+ # @overload get_release_config(name: nil)
2888
+ # Pass arguments to `get_release_config` via keyword arguments. Note that at
1315
2889
  # least one keyword argument is required. To specify no parameters, or to keep all
1316
2890
  # the default parameter values, pass an empty Hash as a request object (see above).
1317
2891
  #
1318
- # @param workspace [::String]
1319
- # Required. The workspace's name.
1320
- # @param path [::String]
1321
- # Required. The file's full path including filename, relative to the workspace root.
2892
+ # @param name [::String]
2893
+ # Required. The release config's name.
1322
2894
  # @yield [result, operation] Access the result along with the TransportOperation object
1323
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2895
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1324
2896
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1325
2897
  #
1326
- # @return [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2898
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1327
2899
  #
1328
2900
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1329
- def fetch_file_diff request, options = nil
2901
+ #
2902
+ # @example Basic example
2903
+ # require "google/cloud/dataform/v1beta1"
2904
+ #
2905
+ # # Create a client object. The client can be reused for multiple calls.
2906
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2907
+ #
2908
+ # # Create a request. To set request fields, pass in keyword arguments.
2909
+ # request = Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest.new
2910
+ #
2911
+ # # Call the get_release_config method.
2912
+ # result = client.get_release_config request
2913
+ #
2914
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
2915
+ # p result
2916
+ #
2917
+ def get_release_config request, options = nil
1330
2918
  raise ::ArgumentError, "request must be provided" if request.nil?
1331
2919
 
1332
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest
2920
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest
1333
2921
 
1334
2922
  # Converts hash and nil to an options object
1335
2923
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1336
2924
 
1337
2925
  # Customize the options with defaults
1338
- call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h
2926
+ call_metadata = @config.rpcs.get_release_config.metadata.to_h
1339
2927
 
1340
2928
  # Set x-goog-api-client and x-goog-user-project headers
1341
2929
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1345,15 +2933,15 @@ module Google
1345
2933
 
1346
2934
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1347
2935
 
1348
- options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout,
2936
+ options.apply_defaults timeout: @config.rpcs.get_release_config.timeout,
1349
2937
  metadata: call_metadata,
1350
- retry_policy: @config.rpcs.fetch_file_diff.retry_policy
2938
+ retry_policy: @config.rpcs.get_release_config.retry_policy
1351
2939
 
1352
2940
  options.apply_defaults timeout: @config.timeout,
1353
2941
  metadata: @config.metadata,
1354
2942
  retry_policy: @config.retry_policy
1355
2943
 
1356
- @dataform_stub.fetch_file_diff request, options do |result, operation|
2944
+ @dataform_stub.get_release_config request, options do |result, operation|
1357
2945
  yield result, operation if block_given?
1358
2946
  return result
1359
2947
  end
@@ -1362,56 +2950,64 @@ module Google
1362
2950
  end
1363
2951
 
1364
2952
  ##
1365
- # Returns the contents of a given Workspace directory.
1366
- #
1367
- # @overload query_directory_contents(request, options = nil)
1368
- # Pass arguments to `query_directory_contents` via a request object, either of type
1369
- # {::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest} or an equivalent Hash.
2953
+ # Creates a new ReleaseConfig in a given Repository.
1370
2954
  #
1371
- # @param request [::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest, ::Hash]
2955
+ # @overload create_release_config(request, options = nil)
2956
+ # Pass arguments to `create_release_config` via a request object, either of type
2957
+ # {::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest} or an equivalent Hash.
2958
+ #
2959
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest, ::Hash]
1372
2960
  # A request object representing the call parameters. Required. To specify no
1373
2961
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1374
2962
  # @param options [::Gapic::CallOptions, ::Hash]
1375
2963
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1376
2964
  #
1377
- # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
1378
- # Pass arguments to `query_directory_contents` via keyword arguments. Note that at
2965
+ # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil)
2966
+ # Pass arguments to `create_release_config` via keyword arguments. Note that at
1379
2967
  # least one keyword argument is required. To specify no parameters, or to keep all
1380
2968
  # the default parameter values, pass an empty Hash as a request object (see above).
1381
2969
  #
1382
- # @param workspace [::String]
1383
- # Required. The workspace's name.
1384
- # @param path [::String]
1385
- # Optional. The directory's full path including directory name, relative to the
1386
- # workspace root. If left unset, the workspace root is used.
1387
- # @param page_size [::Integer]
1388
- # Optional. Maximum number of paths to return. The server may return fewer
1389
- # items than requested. If unspecified, the server will pick an appropriate
1390
- # default.
1391
- # @param page_token [::String]
1392
- # Optional. Page token received from a previous `QueryDirectoryContents` call.
1393
- # Provide this to retrieve the subsequent page.
1394
- #
1395
- # When paginating, all other parameters provided to
1396
- # `QueryDirectoryContents` must match the call that provided the page
1397
- # token.
2970
+ # @param parent [::String]
2971
+ # Required. The repository in which to create the release config. Must be in
2972
+ # the format `projects/*/locations/*/repositories/*`.
2973
+ # @param release_config [::Google::Cloud::Dataform::V1beta1::ReleaseConfig, ::Hash]
2974
+ # Required. The release config to create.
2975
+ # @param release_config_id [::String]
2976
+ # Required. The ID to use for the release config, which will become the final
2977
+ # component of the release config's resource name.
1398
2978
  # @yield [result, operation] Access the result along with the TransportOperation object
1399
- # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
2979
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1400
2980
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1401
2981
  #
1402
- # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
2982
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1403
2983
  #
1404
2984
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1405
- def query_directory_contents request, options = nil
2985
+ #
2986
+ # @example Basic example
2987
+ # require "google/cloud/dataform/v1beta1"
2988
+ #
2989
+ # # Create a client object. The client can be reused for multiple calls.
2990
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2991
+ #
2992
+ # # Create a request. To set request fields, pass in keyword arguments.
2993
+ # request = Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest.new
2994
+ #
2995
+ # # Call the create_release_config method.
2996
+ # result = client.create_release_config request
2997
+ #
2998
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
2999
+ # p result
3000
+ #
3001
+ def create_release_config request, options = nil
1406
3002
  raise ::ArgumentError, "request must be provided" if request.nil?
1407
3003
 
1408
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest
3004
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest
1409
3005
 
1410
3006
  # Converts hash and nil to an options object
1411
3007
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1412
3008
 
1413
3009
  # Customize the options with defaults
1414
- call_metadata = @config.rpcs.query_directory_contents.metadata.to_h
3010
+ call_metadata = @config.rpcs.create_release_config.metadata.to_h
1415
3011
 
1416
3012
  # Set x-goog-api-client and x-goog-user-project headers
1417
3013
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1421,16 +3017,15 @@ module Google
1421
3017
 
1422
3018
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1423
3019
 
1424
- options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout,
3020
+ options.apply_defaults timeout: @config.rpcs.create_release_config.timeout,
1425
3021
  metadata: call_metadata,
1426
- retry_policy: @config.rpcs.query_directory_contents.retry_policy
3022
+ retry_policy: @config.rpcs.create_release_config.retry_policy
1427
3023
 
1428
3024
  options.apply_defaults timeout: @config.timeout,
1429
3025
  metadata: @config.metadata,
1430
3026
  retry_policy: @config.retry_policy
1431
3027
 
1432
- @dataform_stub.query_directory_contents request, options do |result, operation|
1433
- result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options
3028
+ @dataform_stub.create_release_config request, options do |result, operation|
1434
3029
  yield result, operation if block_given?
1435
3030
  return result
1436
3031
  end
@@ -1439,45 +3034,61 @@ module Google
1439
3034
  end
1440
3035
 
1441
3036
  ##
1442
- # Creates a directory inside a Workspace.
3037
+ # Updates a single ReleaseConfig.
1443
3038
  #
1444
- # @overload make_directory(request, options = nil)
1445
- # Pass arguments to `make_directory` via a request object, either of type
1446
- # {::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest} or an equivalent Hash.
3039
+ # @overload update_release_config(request, options = nil)
3040
+ # Pass arguments to `update_release_config` via a request object, either of type
3041
+ # {::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest} or an equivalent Hash.
1447
3042
  #
1448
- # @param request [::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest, ::Hash]
3043
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest, ::Hash]
1449
3044
  # A request object representing the call parameters. Required. To specify no
1450
3045
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1451
3046
  # @param options [::Gapic::CallOptions, ::Hash]
1452
3047
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1453
3048
  #
1454
- # @overload make_directory(workspace: nil, path: nil)
1455
- # Pass arguments to `make_directory` via keyword arguments. Note that at
3049
+ # @overload update_release_config(update_mask: nil, release_config: nil)
3050
+ # Pass arguments to `update_release_config` via keyword arguments. Note that at
1456
3051
  # least one keyword argument is required. To specify no parameters, or to keep all
1457
3052
  # the default parameter values, pass an empty Hash as a request object (see above).
1458
3053
  #
1459
- # @param workspace [::String]
1460
- # Required. The workspace's name.
1461
- # @param path [::String]
1462
- # Required. The directory's full path including directory name, relative to the
1463
- # workspace root.
3054
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3055
+ # Optional. Specifies the fields to be updated in the release config. If left
3056
+ # unset, all fields will be updated.
3057
+ # @param release_config [::Google::Cloud::Dataform::V1beta1::ReleaseConfig, ::Hash]
3058
+ # Required. The release config to update.
1464
3059
  # @yield [result, operation] Access the result along with the TransportOperation object
1465
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
3060
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1466
3061
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1467
3062
  #
1468
- # @return [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
3063
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1469
3064
  #
1470
3065
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1471
- def make_directory request, options = nil
3066
+ #
3067
+ # @example Basic example
3068
+ # require "google/cloud/dataform/v1beta1"
3069
+ #
3070
+ # # Create a client object. The client can be reused for multiple calls.
3071
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3072
+ #
3073
+ # # Create a request. To set request fields, pass in keyword arguments.
3074
+ # request = Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest.new
3075
+ #
3076
+ # # Call the update_release_config method.
3077
+ # result = client.update_release_config request
3078
+ #
3079
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
3080
+ # p result
3081
+ #
3082
+ def update_release_config request, options = nil
1472
3083
  raise ::ArgumentError, "request must be provided" if request.nil?
1473
3084
 
1474
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest
3085
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest
1475
3086
 
1476
3087
  # Converts hash and nil to an options object
1477
3088
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1478
3089
 
1479
3090
  # Customize the options with defaults
1480
- call_metadata = @config.rpcs.make_directory.metadata.to_h
3091
+ call_metadata = @config.rpcs.update_release_config.metadata.to_h
1481
3092
 
1482
3093
  # Set x-goog-api-client and x-goog-user-project headers
1483
3094
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1487,15 +3098,15 @@ module Google
1487
3098
 
1488
3099
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1489
3100
 
1490
- options.apply_defaults timeout: @config.rpcs.make_directory.timeout,
3101
+ options.apply_defaults timeout: @config.rpcs.update_release_config.timeout,
1491
3102
  metadata: call_metadata,
1492
- retry_policy: @config.rpcs.make_directory.retry_policy
3103
+ retry_policy: @config.rpcs.update_release_config.retry_policy
1493
3104
 
1494
3105
  options.apply_defaults timeout: @config.timeout,
1495
3106
  metadata: @config.metadata,
1496
3107
  retry_policy: @config.retry_policy
1497
3108
 
1498
- @dataform_stub.make_directory request, options do |result, operation|
3109
+ @dataform_stub.update_release_config request, options do |result, operation|
1499
3110
  yield result, operation if block_given?
1500
3111
  return result
1501
3112
  end
@@ -1504,28 +3115,25 @@ module Google
1504
3115
  end
1505
3116
 
1506
3117
  ##
1507
- # Deletes a directory (inside a Workspace) and all of its contents.
3118
+ # Deletes a single ReleaseConfig.
1508
3119
  #
1509
- # @overload remove_directory(request, options = nil)
1510
- # Pass arguments to `remove_directory` via a request object, either of type
1511
- # {::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest} or an equivalent Hash.
3120
+ # @overload delete_release_config(request, options = nil)
3121
+ # Pass arguments to `delete_release_config` via a request object, either of type
3122
+ # {::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest} or an equivalent Hash.
1512
3123
  #
1513
- # @param request [::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest, ::Hash]
3124
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest, ::Hash]
1514
3125
  # A request object representing the call parameters. Required. To specify no
1515
3126
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1516
3127
  # @param options [::Gapic::CallOptions, ::Hash]
1517
3128
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1518
3129
  #
1519
- # @overload remove_directory(workspace: nil, path: nil)
1520
- # Pass arguments to `remove_directory` via keyword arguments. Note that at
3130
+ # @overload delete_release_config(name: nil)
3131
+ # Pass arguments to `delete_release_config` via keyword arguments. Note that at
1521
3132
  # least one keyword argument is required. To specify no parameters, or to keep all
1522
3133
  # the default parameter values, pass an empty Hash as a request object (see above).
1523
3134
  #
1524
- # @param workspace [::String]
1525
- # Required. The workspace's name.
1526
- # @param path [::String]
1527
- # Required. The directory's full path including directory name, relative to the
1528
- # workspace root.
3135
+ # @param name [::String]
3136
+ # Required. The release config's name.
1529
3137
  # @yield [result, operation] Access the result along with the TransportOperation object
1530
3138
  # @yieldparam result [::Google::Protobuf::Empty]
1531
3139
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1533,16 +3141,32 @@ module Google
1533
3141
  # @return [::Google::Protobuf::Empty]
1534
3142
  #
1535
3143
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1536
- def remove_directory request, options = nil
3144
+ #
3145
+ # @example Basic example
3146
+ # require "google/cloud/dataform/v1beta1"
3147
+ #
3148
+ # # Create a client object. The client can be reused for multiple calls.
3149
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3150
+ #
3151
+ # # Create a request. To set request fields, pass in keyword arguments.
3152
+ # request = Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest.new
3153
+ #
3154
+ # # Call the delete_release_config method.
3155
+ # result = client.delete_release_config request
3156
+ #
3157
+ # # The returned object is of type Google::Protobuf::Empty.
3158
+ # p result
3159
+ #
3160
+ def delete_release_config request, options = nil
1537
3161
  raise ::ArgumentError, "request must be provided" if request.nil?
1538
3162
 
1539
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest
3163
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest
1540
3164
 
1541
3165
  # Converts hash and nil to an options object
1542
3166
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1543
3167
 
1544
3168
  # Customize the options with defaults
1545
- call_metadata = @config.rpcs.remove_directory.metadata.to_h
3169
+ call_metadata = @config.rpcs.delete_release_config.metadata.to_h
1546
3170
 
1547
3171
  # Set x-goog-api-client and x-goog-user-project headers
1548
3172
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1552,15 +3176,15 @@ module Google
1552
3176
 
1553
3177
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1554
3178
 
1555
- options.apply_defaults timeout: @config.rpcs.remove_directory.timeout,
3179
+ options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout,
1556
3180
  metadata: call_metadata,
1557
- retry_policy: @config.rpcs.remove_directory.retry_policy
3181
+ retry_policy: @config.rpcs.delete_release_config.retry_policy
1558
3182
 
1559
3183
  options.apply_defaults timeout: @config.timeout,
1560
3184
  metadata: @config.metadata,
1561
3185
  retry_policy: @config.retry_policy
1562
3186
 
1563
- @dataform_stub.remove_directory request, options do |result, operation|
3187
+ @dataform_stub.delete_release_config request, options do |result, operation|
1564
3188
  yield result, operation if block_given?
1565
3189
  return result
1566
3190
  end
@@ -1569,49 +3193,73 @@ module Google
1569
3193
  end
1570
3194
 
1571
3195
  ##
1572
- # Moves a directory (inside a Workspace), and all of its contents, to a new
1573
- # location.
3196
+ # Lists CompilationResults in a given Repository.
1574
3197
  #
1575
- # @overload move_directory(request, options = nil)
1576
- # Pass arguments to `move_directory` via a request object, either of type
1577
- # {::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest} or an equivalent Hash.
3198
+ # @overload list_compilation_results(request, options = nil)
3199
+ # Pass arguments to `list_compilation_results` via a request object, either of type
3200
+ # {::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest} or an equivalent Hash.
1578
3201
  #
1579
- # @param request [::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest, ::Hash]
3202
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest, ::Hash]
1580
3203
  # A request object representing the call parameters. Required. To specify no
1581
3204
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1582
3205
  # @param options [::Gapic::CallOptions, ::Hash]
1583
3206
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1584
3207
  #
1585
- # @overload move_directory(workspace: nil, path: nil, new_path: nil)
1586
- # Pass arguments to `move_directory` via keyword arguments. Note that at
3208
+ # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil)
3209
+ # Pass arguments to `list_compilation_results` via keyword arguments. Note that at
1587
3210
  # least one keyword argument is required. To specify no parameters, or to keep all
1588
3211
  # the default parameter values, pass an empty Hash as a request object (see above).
1589
3212
  #
1590
- # @param workspace [::String]
1591
- # Required. The workspace's name.
1592
- # @param path [::String]
1593
- # Required. The directory's full path including directory name, relative to the
1594
- # workspace root.
1595
- # @param new_path [::String]
1596
- # Required. The new path for the directory including directory name, rooted at
1597
- # workspace root.
3213
+ # @param parent [::String]
3214
+ # Required. The repository in which to list compilation results. Must be in
3215
+ # the format `projects/*/locations/*/repositories/*`.
3216
+ # @param page_size [::Integer]
3217
+ # Optional. Maximum number of compilation results to return. The server may
3218
+ # return fewer items than requested. If unspecified, the server will pick an
3219
+ # appropriate default.
3220
+ # @param page_token [::String]
3221
+ # Optional. Page token received from a previous `ListCompilationResults`
3222
+ # call. Provide this to retrieve the subsequent page.
3223
+ #
3224
+ # When paginating, all other parameters provided to `ListCompilationResults`
3225
+ # must match the call that provided the page token.
1598
3226
  # @yield [result, operation] Access the result along with the TransportOperation object
1599
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
3227
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1600
3228
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1601
3229
  #
1602
- # @return [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
3230
+ # @return [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1603
3231
  #
1604
3232
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1605
- def move_directory request, options = nil
3233
+ #
3234
+ # @example Basic example
3235
+ # require "google/cloud/dataform/v1beta1"
3236
+ #
3237
+ # # Create a client object. The client can be reused for multiple calls.
3238
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3239
+ #
3240
+ # # Create a request. To set request fields, pass in keyword arguments.
3241
+ # request = Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest.new
3242
+ #
3243
+ # # Call the list_compilation_results method.
3244
+ # result = client.list_compilation_results request
3245
+ #
3246
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3247
+ # # over elements, and API calls will be issued to fetch pages as needed.
3248
+ # result.each do |item|
3249
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResult.
3250
+ # p item
3251
+ # end
3252
+ #
3253
+ def list_compilation_results request, options = nil
1606
3254
  raise ::ArgumentError, "request must be provided" if request.nil?
1607
3255
 
1608
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest
3256
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest
1609
3257
 
1610
3258
  # Converts hash and nil to an options object
1611
3259
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1612
3260
 
1613
3261
  # Customize the options with defaults
1614
- call_metadata = @config.rpcs.move_directory.metadata.to_h
3262
+ call_metadata = @config.rpcs.list_compilation_results.metadata.to_h
1615
3263
 
1616
3264
  # Set x-goog-api-client and x-goog-user-project headers
1617
3265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1621,15 +3269,15 @@ module Google
1621
3269
 
1622
3270
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1623
3271
 
1624
- options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
3272
+ options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
1625
3273
  metadata: call_metadata,
1626
- retry_policy: @config.rpcs.move_directory.retry_policy
3274
+ retry_policy: @config.rpcs.list_compilation_results.retry_policy
1627
3275
 
1628
3276
  options.apply_defaults timeout: @config.timeout,
1629
3277
  metadata: @config.metadata,
1630
3278
  retry_policy: @config.retry_policy
1631
3279
 
1632
- @dataform_stub.move_directory request, options do |result, operation|
3280
+ @dataform_stub.list_compilation_results request, options do |result, operation|
1633
3281
  yield result, operation if block_given?
1634
3282
  return result
1635
3283
  end
@@ -1638,44 +3286,58 @@ module Google
1638
3286
  end
1639
3287
 
1640
3288
  ##
1641
- # Returns the contents of a file (inside a Workspace).
3289
+ # Fetches a single CompilationResult.
1642
3290
  #
1643
- # @overload read_file(request, options = nil)
1644
- # Pass arguments to `read_file` via a request object, either of type
1645
- # {::Google::Cloud::Dataform::V1beta1::ReadFileRequest} or an equivalent Hash.
3291
+ # @overload get_compilation_result(request, options = nil)
3292
+ # Pass arguments to `get_compilation_result` via a request object, either of type
3293
+ # {::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest} or an equivalent Hash.
1646
3294
  #
1647
- # @param request [::Google::Cloud::Dataform::V1beta1::ReadFileRequest, ::Hash]
3295
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest, ::Hash]
1648
3296
  # A request object representing the call parameters. Required. To specify no
1649
3297
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1650
3298
  # @param options [::Gapic::CallOptions, ::Hash]
1651
3299
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1652
3300
  #
1653
- # @overload read_file(workspace: nil, path: nil)
1654
- # Pass arguments to `read_file` via keyword arguments. Note that at
3301
+ # @overload get_compilation_result(name: nil)
3302
+ # Pass arguments to `get_compilation_result` via keyword arguments. Note that at
1655
3303
  # least one keyword argument is required. To specify no parameters, or to keep all
1656
3304
  # the default parameter values, pass an empty Hash as a request object (see above).
1657
3305
  #
1658
- # @param workspace [::String]
1659
- # Required. The workspace's name.
1660
- # @param path [::String]
1661
- # Required. The file's full path including filename, relative to the workspace root.
3306
+ # @param name [::String]
3307
+ # Required. The compilation result's name.
1662
3308
  # @yield [result, operation] Access the result along with the TransportOperation object
1663
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
3309
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1664
3310
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1665
3311
  #
1666
- # @return [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
3312
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1667
3313
  #
1668
3314
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1669
- def read_file request, options = nil
3315
+ #
3316
+ # @example Basic example
3317
+ # require "google/cloud/dataform/v1beta1"
3318
+ #
3319
+ # # Create a client object. The client can be reused for multiple calls.
3320
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3321
+ #
3322
+ # # Create a request. To set request fields, pass in keyword arguments.
3323
+ # request = Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest.new
3324
+ #
3325
+ # # Call the get_compilation_result method.
3326
+ # result = client.get_compilation_result request
3327
+ #
3328
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
3329
+ # p result
3330
+ #
3331
+ def get_compilation_result request, options = nil
1670
3332
  raise ::ArgumentError, "request must be provided" if request.nil?
1671
3333
 
1672
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadFileRequest
3334
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest
1673
3335
 
1674
3336
  # Converts hash and nil to an options object
1675
3337
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1676
3338
 
1677
3339
  # Customize the options with defaults
1678
- call_metadata = @config.rpcs.read_file.metadata.to_h
3340
+ call_metadata = @config.rpcs.get_compilation_result.metadata.to_h
1679
3341
 
1680
3342
  # Set x-goog-api-client and x-goog-user-project headers
1681
3343
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1685,15 +3347,15 @@ module Google
1685
3347
 
1686
3348
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1687
3349
 
1688
- options.apply_defaults timeout: @config.rpcs.read_file.timeout,
3350
+ options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
1689
3351
  metadata: call_metadata,
1690
- retry_policy: @config.rpcs.read_file.retry_policy
3352
+ retry_policy: @config.rpcs.get_compilation_result.retry_policy
1691
3353
 
1692
3354
  options.apply_defaults timeout: @config.timeout,
1693
3355
  metadata: @config.metadata,
1694
3356
  retry_policy: @config.retry_policy
1695
3357
 
1696
- @dataform_stub.read_file request, options do |result, operation|
3358
+ @dataform_stub.get_compilation_result request, options do |result, operation|
1697
3359
  yield result, operation if block_given?
1698
3360
  return result
1699
3361
  end
@@ -1702,44 +3364,61 @@ module Google
1702
3364
  end
1703
3365
 
1704
3366
  ##
1705
- # Deletes a file (inside a Workspace).
3367
+ # Creates a new CompilationResult in a given project and location.
1706
3368
  #
1707
- # @overload remove_file(request, options = nil)
1708
- # Pass arguments to `remove_file` via a request object, either of type
1709
- # {::Google::Cloud::Dataform::V1beta1::RemoveFileRequest} or an equivalent Hash.
3369
+ # @overload create_compilation_result(request, options = nil)
3370
+ # Pass arguments to `create_compilation_result` via a request object, either of type
3371
+ # {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
1710
3372
  #
1711
- # @param request [::Google::Cloud::Dataform::V1beta1::RemoveFileRequest, ::Hash]
3373
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
1712
3374
  # A request object representing the call parameters. Required. To specify no
1713
3375
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1714
3376
  # @param options [::Gapic::CallOptions, ::Hash]
1715
3377
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1716
3378
  #
1717
- # @overload remove_file(workspace: nil, path: nil)
1718
- # Pass arguments to `remove_file` via keyword arguments. Note that at
3379
+ # @overload create_compilation_result(parent: nil, compilation_result: nil)
3380
+ # Pass arguments to `create_compilation_result` via keyword arguments. Note that at
1719
3381
  # least one keyword argument is required. To specify no parameters, or to keep all
1720
3382
  # the default parameter values, pass an empty Hash as a request object (see above).
1721
3383
  #
1722
- # @param workspace [::String]
1723
- # Required. The workspace's name.
1724
- # @param path [::String]
1725
- # Required. The file's full path including filename, relative to the workspace root.
3384
+ # @param parent [::String]
3385
+ # Required. The repository in which to create the compilation result. Must be
3386
+ # in the format `projects/*/locations/*/repositories/*`.
3387
+ # @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
3388
+ # Required. The compilation result to create.
1726
3389
  # @yield [result, operation] Access the result along with the TransportOperation object
1727
- # @yieldparam result [::Google::Protobuf::Empty]
3390
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1728
3391
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1729
3392
  #
1730
- # @return [::Google::Protobuf::Empty]
3393
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1731
3394
  #
1732
3395
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1733
- def remove_file request, options = nil
3396
+ #
3397
+ # @example Basic example
3398
+ # require "google/cloud/dataform/v1beta1"
3399
+ #
3400
+ # # Create a client object. The client can be reused for multiple calls.
3401
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3402
+ #
3403
+ # # Create a request. To set request fields, pass in keyword arguments.
3404
+ # request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
3405
+ #
3406
+ # # Call the create_compilation_result method.
3407
+ # result = client.create_compilation_result request
3408
+ #
3409
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
3410
+ # p result
3411
+ #
3412
+ def create_compilation_result request, options = nil
1734
3413
  raise ::ArgumentError, "request must be provided" if request.nil?
1735
3414
 
1736
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveFileRequest
3415
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
1737
3416
 
1738
3417
  # Converts hash and nil to an options object
1739
3418
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1740
3419
 
1741
3420
  # Customize the options with defaults
1742
- call_metadata = @config.rpcs.remove_file.metadata.to_h
3421
+ call_metadata = @config.rpcs.create_compilation_result.metadata.to_h
1743
3422
 
1744
3423
  # Set x-goog-api-client and x-goog-user-project headers
1745
3424
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1749,15 +3428,15 @@ module Google
1749
3428
 
1750
3429
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1751
3430
 
1752
- options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
3431
+ options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
1753
3432
  metadata: call_metadata,
1754
- retry_policy: @config.rpcs.remove_file.retry_policy
3433
+ retry_policy: @config.rpcs.create_compilation_result.retry_policy
1755
3434
 
1756
3435
  options.apply_defaults timeout: @config.timeout,
1757
3436
  metadata: @config.metadata,
1758
3437
  retry_policy: @config.retry_policy
1759
3438
 
1760
- @dataform_stub.remove_file request, options do |result, operation|
3439
+ @dataform_stub.create_compilation_result request, options do |result, operation|
1761
3440
  yield result, operation if block_given?
1762
3441
  return result
1763
3442
  end
@@ -1766,46 +3445,77 @@ module Google
1766
3445
  end
1767
3446
 
1768
3447
  ##
1769
- # Moves a file (inside a Workspace) to a new location.
3448
+ # Returns CompilationResultActions in a given CompilationResult.
1770
3449
  #
1771
- # @overload move_file(request, options = nil)
1772
- # Pass arguments to `move_file` via a request object, either of type
1773
- # {::Google::Cloud::Dataform::V1beta1::MoveFileRequest} or an equivalent Hash.
3450
+ # @overload query_compilation_result_actions(request, options = nil)
3451
+ # Pass arguments to `query_compilation_result_actions` via a request object, either of type
3452
+ # {::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest} or an equivalent Hash.
1774
3453
  #
1775
- # @param request [::Google::Cloud::Dataform::V1beta1::MoveFileRequest, ::Hash]
3454
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest, ::Hash]
1776
3455
  # A request object representing the call parameters. Required. To specify no
1777
3456
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1778
3457
  # @param options [::Gapic::CallOptions, ::Hash]
1779
3458
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1780
3459
  #
1781
- # @overload move_file(workspace: nil, path: nil, new_path: nil)
1782
- # Pass arguments to `move_file` via keyword arguments. Note that at
3460
+ # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil)
3461
+ # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at
1783
3462
  # least one keyword argument is required. To specify no parameters, or to keep all
1784
3463
  # the default parameter values, pass an empty Hash as a request object (see above).
1785
3464
  #
1786
- # @param workspace [::String]
1787
- # Required. The workspace's name.
1788
- # @param path [::String]
1789
- # Required. The file's full path including filename, relative to the workspace root.
1790
- # @param new_path [::String]
1791
- # Required. The file's new path including filename, relative to the workspace root.
3465
+ # @param name [::String]
3466
+ # Required. The compilation result's name.
3467
+ # @param page_size [::Integer]
3468
+ # Optional. Maximum number of compilation results to return. The server may
3469
+ # return fewer items than requested. If unspecified, the server will pick an
3470
+ # appropriate default.
3471
+ # @param page_token [::String]
3472
+ # Optional. Page token received from a previous
3473
+ # `QueryCompilationResultActions` call. Provide this to retrieve the
3474
+ # subsequent page.
3475
+ #
3476
+ # When paginating, all other parameters provided to
3477
+ # `QueryCompilationResultActions` must match the call that provided the page
3478
+ # token.
3479
+ # @param filter [::String]
3480
+ # Optional. Optional filter for the returned list. Filtering is only
3481
+ # currently supported on the `file_path` field.
1792
3482
  # @yield [result, operation] Access the result along with the TransportOperation object
1793
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
3483
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
1794
3484
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1795
3485
  #
1796
- # @return [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
3486
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
1797
3487
  #
1798
3488
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1799
- def move_file request, options = nil
3489
+ #
3490
+ # @example Basic example
3491
+ # require "google/cloud/dataform/v1beta1"
3492
+ #
3493
+ # # Create a client object. The client can be reused for multiple calls.
3494
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3495
+ #
3496
+ # # Create a request. To set request fields, pass in keyword arguments.
3497
+ # request = Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest.new
3498
+ #
3499
+ # # Call the query_compilation_result_actions method.
3500
+ # result = client.query_compilation_result_actions request
3501
+ #
3502
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3503
+ # # over elements, and API calls will be issued to fetch pages as needed.
3504
+ # result.each do |item|
3505
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResultAction.
3506
+ # p item
3507
+ # end
3508
+ #
3509
+ def query_compilation_result_actions request, options = nil
1800
3510
  raise ::ArgumentError, "request must be provided" if request.nil?
1801
3511
 
1802
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFileRequest
3512
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest
1803
3513
 
1804
3514
  # Converts hash and nil to an options object
1805
3515
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1806
3516
 
1807
3517
  # Customize the options with defaults
1808
- call_metadata = @config.rpcs.move_file.metadata.to_h
3518
+ call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
1809
3519
 
1810
3520
  # Set x-goog-api-client and x-goog-user-project headers
1811
3521
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1815,15 +3525,16 @@ module Google
1815
3525
 
1816
3526
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1817
3527
 
1818
- options.apply_defaults timeout: @config.rpcs.move_file.timeout,
3528
+ options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
1819
3529
  metadata: call_metadata,
1820
- retry_policy: @config.rpcs.move_file.retry_policy
3530
+ retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy
1821
3531
 
1822
3532
  options.apply_defaults timeout: @config.timeout,
1823
3533
  metadata: @config.metadata,
1824
3534
  retry_policy: @config.retry_policy
1825
3535
 
1826
- @dataform_stub.move_file request, options do |result, operation|
3536
+ @dataform_stub.query_compilation_result_actions request, options do |result, operation|
3537
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options
1827
3538
  yield result, operation if block_given?
1828
3539
  return result
1829
3540
  end
@@ -1832,46 +3543,73 @@ module Google
1832
3543
  end
1833
3544
 
1834
3545
  ##
1835
- # Writes to a file (inside a Workspace).
3546
+ # Lists WorkflowConfigs in a given Repository.
1836
3547
  #
1837
- # @overload write_file(request, options = nil)
1838
- # Pass arguments to `write_file` via a request object, either of type
1839
- # {::Google::Cloud::Dataform::V1beta1::WriteFileRequest} or an equivalent Hash.
3548
+ # @overload list_workflow_configs(request, options = nil)
3549
+ # Pass arguments to `list_workflow_configs` via a request object, either of type
3550
+ # {::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest} or an equivalent Hash.
1840
3551
  #
1841
- # @param request [::Google::Cloud::Dataform::V1beta1::WriteFileRequest, ::Hash]
3552
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest, ::Hash]
1842
3553
  # A request object representing the call parameters. Required. To specify no
1843
3554
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1844
3555
  # @param options [::Gapic::CallOptions, ::Hash]
1845
3556
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1846
3557
  #
1847
- # @overload write_file(workspace: nil, path: nil, contents: nil)
1848
- # Pass arguments to `write_file` via keyword arguments. Note that at
3558
+ # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil)
3559
+ # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at
1849
3560
  # least one keyword argument is required. To specify no parameters, or to keep all
1850
3561
  # the default parameter values, pass an empty Hash as a request object (see above).
1851
3562
  #
1852
- # @param workspace [::String]
1853
- # Required. The workspace's name.
1854
- # @param path [::String]
1855
- # Required. The file.
1856
- # @param contents [::String]
1857
- # Required. The file's contents.
3563
+ # @param parent [::String]
3564
+ # Required. The repository in which to list workflow configs. Must be in the
3565
+ # format `projects/*/locations/*/repositories/*`.
3566
+ # @param page_size [::Integer]
3567
+ # Optional. Maximum number of workflow configs to return. The server may
3568
+ # return fewer items than requested. If unspecified, the server will pick an
3569
+ # appropriate default.
3570
+ # @param page_token [::String]
3571
+ # Optional. Page token received from a previous `ListWorkflowConfigs` call.
3572
+ # Provide this to retrieve the subsequent page.
3573
+ #
3574
+ # When paginating, all other parameters provided to `ListWorkflowConfigs`
3575
+ # must match the call that provided the page token.
1858
3576
  # @yield [result, operation] Access the result along with the TransportOperation object
1859
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
3577
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsResponse]
1860
3578
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1861
3579
  #
1862
- # @return [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
3580
+ # @return [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsResponse]
1863
3581
  #
1864
3582
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1865
- def write_file request, options = nil
3583
+ #
3584
+ # @example Basic example
3585
+ # require "google/cloud/dataform/v1beta1"
3586
+ #
3587
+ # # Create a client object. The client can be reused for multiple calls.
3588
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3589
+ #
3590
+ # # Create a request. To set request fields, pass in keyword arguments.
3591
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest.new
3592
+ #
3593
+ # # Call the list_workflow_configs method.
3594
+ # result = client.list_workflow_configs request
3595
+ #
3596
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3597
+ # # over elements, and API calls will be issued to fetch pages as needed.
3598
+ # result.each do |item|
3599
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::WorkflowConfig.
3600
+ # p item
3601
+ # end
3602
+ #
3603
+ def list_workflow_configs request, options = nil
1866
3604
  raise ::ArgumentError, "request must be provided" if request.nil?
1867
3605
 
1868
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::WriteFileRequest
3606
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest
1869
3607
 
1870
3608
  # Converts hash and nil to an options object
1871
3609
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1872
3610
 
1873
3611
  # Customize the options with defaults
1874
- call_metadata = @config.rpcs.write_file.metadata.to_h
3612
+ call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h
1875
3613
 
1876
3614
  # Set x-goog-api-client and x-goog-user-project headers
1877
3615
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1881,15 +3619,15 @@ module Google
1881
3619
 
1882
3620
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1883
3621
 
1884
- options.apply_defaults timeout: @config.rpcs.write_file.timeout,
3622
+ options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout,
1885
3623
  metadata: call_metadata,
1886
- retry_policy: @config.rpcs.write_file.retry_policy
3624
+ retry_policy: @config.rpcs.list_workflow_configs.retry_policy
1887
3625
 
1888
3626
  options.apply_defaults timeout: @config.timeout,
1889
3627
  metadata: @config.metadata,
1890
3628
  retry_policy: @config.retry_policy
1891
3629
 
1892
- @dataform_stub.write_file request, options do |result, operation|
3630
+ @dataform_stub.list_workflow_configs request, options do |result, operation|
1893
3631
  yield result, operation if block_given?
1894
3632
  return result
1895
3633
  end
@@ -1898,53 +3636,58 @@ module Google
1898
3636
  end
1899
3637
 
1900
3638
  ##
1901
- # Lists CompilationResults in a given Repository.
3639
+ # Fetches a single WorkflowConfig.
1902
3640
  #
1903
- # @overload list_compilation_results(request, options = nil)
1904
- # Pass arguments to `list_compilation_results` via a request object, either of type
1905
- # {::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest} or an equivalent Hash.
3641
+ # @overload get_workflow_config(request, options = nil)
3642
+ # Pass arguments to `get_workflow_config` via a request object, either of type
3643
+ # {::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest} or an equivalent Hash.
1906
3644
  #
1907
- # @param request [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest, ::Hash]
3645
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest, ::Hash]
1908
3646
  # A request object representing the call parameters. Required. To specify no
1909
3647
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1910
3648
  # @param options [::Gapic::CallOptions, ::Hash]
1911
3649
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1912
3650
  #
1913
- # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil)
1914
- # Pass arguments to `list_compilation_results` via keyword arguments. Note that at
3651
+ # @overload get_workflow_config(name: nil)
3652
+ # Pass arguments to `get_workflow_config` via keyword arguments. Note that at
1915
3653
  # least one keyword argument is required. To specify no parameters, or to keep all
1916
3654
  # the default parameter values, pass an empty Hash as a request object (see above).
1917
3655
  #
1918
- # @param parent [::String]
1919
- # Required. The repository in which to list compilation results. Must be in the
1920
- # format `projects/*/locations/*/repositories/*`.
1921
- # @param page_size [::Integer]
1922
- # Optional. Maximum number of compilation results to return. The server may return
1923
- # fewer items than requested. If unspecified, the server will pick an
1924
- # appropriate default.
1925
- # @param page_token [::String]
1926
- # Optional. Page token received from a previous `ListCompilationResults` call.
1927
- # Provide this to retrieve the subsequent page.
1928
- #
1929
- # When paginating, all other parameters provided to `ListCompilationResults`
1930
- # must match the call that provided the page token.
3656
+ # @param name [::String]
3657
+ # Required. The workflow config's name.
1931
3658
  # @yield [result, operation] Access the result along with the TransportOperation object
1932
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
3659
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1933
3660
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1934
3661
  #
1935
- # @return [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
3662
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1936
3663
  #
1937
3664
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1938
- def list_compilation_results request, options = nil
3665
+ #
3666
+ # @example Basic example
3667
+ # require "google/cloud/dataform/v1beta1"
3668
+ #
3669
+ # # Create a client object. The client can be reused for multiple calls.
3670
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3671
+ #
3672
+ # # Create a request. To set request fields, pass in keyword arguments.
3673
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest.new
3674
+ #
3675
+ # # Call the get_workflow_config method.
3676
+ # result = client.get_workflow_config request
3677
+ #
3678
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
3679
+ # p result
3680
+ #
3681
+ def get_workflow_config request, options = nil
1939
3682
  raise ::ArgumentError, "request must be provided" if request.nil?
1940
3683
 
1941
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest
3684
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest
1942
3685
 
1943
3686
  # Converts hash and nil to an options object
1944
3687
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1945
3688
 
1946
3689
  # Customize the options with defaults
1947
- call_metadata = @config.rpcs.list_compilation_results.metadata.to_h
3690
+ call_metadata = @config.rpcs.get_workflow_config.metadata.to_h
1948
3691
 
1949
3692
  # Set x-goog-api-client and x-goog-user-project headers
1950
3693
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1954,15 +3697,15 @@ module Google
1954
3697
 
1955
3698
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1956
3699
 
1957
- options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
3700
+ options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout,
1958
3701
  metadata: call_metadata,
1959
- retry_policy: @config.rpcs.list_compilation_results.retry_policy
3702
+ retry_policy: @config.rpcs.get_workflow_config.retry_policy
1960
3703
 
1961
3704
  options.apply_defaults timeout: @config.timeout,
1962
3705
  metadata: @config.metadata,
1963
3706
  retry_policy: @config.retry_policy
1964
3707
 
1965
- @dataform_stub.list_compilation_results request, options do |result, operation|
3708
+ @dataform_stub.get_workflow_config request, options do |result, operation|
1966
3709
  yield result, operation if block_given?
1967
3710
  return result
1968
3711
  end
@@ -1971,42 +3714,64 @@ module Google
1971
3714
  end
1972
3715
 
1973
3716
  ##
1974
- # Fetches a single CompilationResult.
3717
+ # Creates a new WorkflowConfig in a given Repository.
1975
3718
  #
1976
- # @overload get_compilation_result(request, options = nil)
1977
- # Pass arguments to `get_compilation_result` via a request object, either of type
1978
- # {::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest} or an equivalent Hash.
3719
+ # @overload create_workflow_config(request, options = nil)
3720
+ # Pass arguments to `create_workflow_config` via a request object, either of type
3721
+ # {::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest} or an equivalent Hash.
1979
3722
  #
1980
- # @param request [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest, ::Hash]
3723
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest, ::Hash]
1981
3724
  # A request object representing the call parameters. Required. To specify no
1982
3725
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1983
3726
  # @param options [::Gapic::CallOptions, ::Hash]
1984
3727
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1985
3728
  #
1986
- # @overload get_compilation_result(name: nil)
1987
- # Pass arguments to `get_compilation_result` via keyword arguments. Note that at
3729
+ # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil)
3730
+ # Pass arguments to `create_workflow_config` via keyword arguments. Note that at
1988
3731
  # least one keyword argument is required. To specify no parameters, or to keep all
1989
3732
  # the default parameter values, pass an empty Hash as a request object (see above).
1990
3733
  #
1991
- # @param name [::String]
1992
- # Required. The compilation result's name.
3734
+ # @param parent [::String]
3735
+ # Required. The repository in which to create the workflow config. Must be in
3736
+ # the format `projects/*/locations/*/repositories/*`.
3737
+ # @param workflow_config [::Google::Cloud::Dataform::V1beta1::WorkflowConfig, ::Hash]
3738
+ # Required. The workflow config to create.
3739
+ # @param workflow_config_id [::String]
3740
+ # Required. The ID to use for the workflow config, which will become the
3741
+ # final component of the workflow config's resource name.
1993
3742
  # @yield [result, operation] Access the result along with the TransportOperation object
1994
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
3743
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1995
3744
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1996
3745
  #
1997
- # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
3746
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1998
3747
  #
1999
3748
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2000
- def get_compilation_result request, options = nil
3749
+ #
3750
+ # @example Basic example
3751
+ # require "google/cloud/dataform/v1beta1"
3752
+ #
3753
+ # # Create a client object. The client can be reused for multiple calls.
3754
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3755
+ #
3756
+ # # Create a request. To set request fields, pass in keyword arguments.
3757
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest.new
3758
+ #
3759
+ # # Call the create_workflow_config method.
3760
+ # result = client.create_workflow_config request
3761
+ #
3762
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
3763
+ # p result
3764
+ #
3765
+ def create_workflow_config request, options = nil
2001
3766
  raise ::ArgumentError, "request must be provided" if request.nil?
2002
3767
 
2003
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest
3768
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest
2004
3769
 
2005
3770
  # Converts hash and nil to an options object
2006
3771
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2007
3772
 
2008
3773
  # Customize the options with defaults
2009
- call_metadata = @config.rpcs.get_compilation_result.metadata.to_h
3774
+ call_metadata = @config.rpcs.create_workflow_config.metadata.to_h
2010
3775
 
2011
3776
  # Set x-goog-api-client and x-goog-user-project headers
2012
3777
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2016,15 +3781,15 @@ module Google
2016
3781
 
2017
3782
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2018
3783
 
2019
- options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
3784
+ options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout,
2020
3785
  metadata: call_metadata,
2021
- retry_policy: @config.rpcs.get_compilation_result.retry_policy
3786
+ retry_policy: @config.rpcs.create_workflow_config.retry_policy
2022
3787
 
2023
3788
  options.apply_defaults timeout: @config.timeout,
2024
3789
  metadata: @config.metadata,
2025
3790
  retry_policy: @config.retry_policy
2026
3791
 
2027
- @dataform_stub.get_compilation_result request, options do |result, operation|
3792
+ @dataform_stub.create_workflow_config request, options do |result, operation|
2028
3793
  yield result, operation if block_given?
2029
3794
  return result
2030
3795
  end
@@ -2033,45 +3798,61 @@ module Google
2033
3798
  end
2034
3799
 
2035
3800
  ##
2036
- # Creates a new CompilationResult in a given project and location.
3801
+ # Updates a single WorkflowConfig.
2037
3802
  #
2038
- # @overload create_compilation_result(request, options = nil)
2039
- # Pass arguments to `create_compilation_result` via a request object, either of type
2040
- # {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
3803
+ # @overload update_workflow_config(request, options = nil)
3804
+ # Pass arguments to `update_workflow_config` via a request object, either of type
3805
+ # {::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest} or an equivalent Hash.
2041
3806
  #
2042
- # @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
3807
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest, ::Hash]
2043
3808
  # A request object representing the call parameters. Required. To specify no
2044
3809
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2045
3810
  # @param options [::Gapic::CallOptions, ::Hash]
2046
3811
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2047
3812
  #
2048
- # @overload create_compilation_result(parent: nil, compilation_result: nil)
2049
- # Pass arguments to `create_compilation_result` via keyword arguments. Note that at
3813
+ # @overload update_workflow_config(update_mask: nil, workflow_config: nil)
3814
+ # Pass arguments to `update_workflow_config` via keyword arguments. Note that at
2050
3815
  # least one keyword argument is required. To specify no parameters, or to keep all
2051
3816
  # the default parameter values, pass an empty Hash as a request object (see above).
2052
3817
  #
2053
- # @param parent [::String]
2054
- # Required. The repository in which to create the compilation result. Must be in the
2055
- # format `projects/*/locations/*/repositories/*`.
2056
- # @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
2057
- # Required. The compilation result to create.
3818
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3819
+ # Optional. Specifies the fields to be updated in the workflow config. If
3820
+ # left unset, all fields will be updated.
3821
+ # @param workflow_config [::Google::Cloud::Dataform::V1beta1::WorkflowConfig, ::Hash]
3822
+ # Required. The workflow config to update.
2058
3823
  # @yield [result, operation] Access the result along with the TransportOperation object
2059
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
3824
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2060
3825
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2061
3826
  #
2062
- # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
3827
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2063
3828
  #
2064
3829
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2065
- def create_compilation_result request, options = nil
3830
+ #
3831
+ # @example Basic example
3832
+ # require "google/cloud/dataform/v1beta1"
3833
+ #
3834
+ # # Create a client object. The client can be reused for multiple calls.
3835
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3836
+ #
3837
+ # # Create a request. To set request fields, pass in keyword arguments.
3838
+ # request = Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest.new
3839
+ #
3840
+ # # Call the update_workflow_config method.
3841
+ # result = client.update_workflow_config request
3842
+ #
3843
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
3844
+ # p result
3845
+ #
3846
+ def update_workflow_config request, options = nil
2066
3847
  raise ::ArgumentError, "request must be provided" if request.nil?
2067
3848
 
2068
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
3849
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest
2069
3850
 
2070
3851
  # Converts hash and nil to an options object
2071
3852
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2072
3853
 
2073
3854
  # Customize the options with defaults
2074
- call_metadata = @config.rpcs.create_compilation_result.metadata.to_h
3855
+ call_metadata = @config.rpcs.update_workflow_config.metadata.to_h
2075
3856
 
2076
3857
  # Set x-goog-api-client and x-goog-user-project headers
2077
3858
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2081,15 +3862,15 @@ module Google
2081
3862
 
2082
3863
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2083
3864
 
2084
- options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
3865
+ options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout,
2085
3866
  metadata: call_metadata,
2086
- retry_policy: @config.rpcs.create_compilation_result.retry_policy
3867
+ retry_policy: @config.rpcs.update_workflow_config.retry_policy
2087
3868
 
2088
3869
  options.apply_defaults timeout: @config.timeout,
2089
3870
  metadata: @config.metadata,
2090
3871
  retry_policy: @config.retry_policy
2091
3872
 
2092
- @dataform_stub.create_compilation_result request, options do |result, operation|
3873
+ @dataform_stub.update_workflow_config request, options do |result, operation|
2093
3874
  yield result, operation if block_given?
2094
3875
  return result
2095
3876
  end
@@ -2098,56 +3879,58 @@ module Google
2098
3879
  end
2099
3880
 
2100
3881
  ##
2101
- # Returns CompilationResultActions in a given CompilationResult.
3882
+ # Deletes a single WorkflowConfig.
2102
3883
  #
2103
- # @overload query_compilation_result_actions(request, options = nil)
2104
- # Pass arguments to `query_compilation_result_actions` via a request object, either of type
2105
- # {::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest} or an equivalent Hash.
3884
+ # @overload delete_workflow_config(request, options = nil)
3885
+ # Pass arguments to `delete_workflow_config` via a request object, either of type
3886
+ # {::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest} or an equivalent Hash.
2106
3887
  #
2107
- # @param request [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest, ::Hash]
3888
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest, ::Hash]
2108
3889
  # A request object representing the call parameters. Required. To specify no
2109
3890
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2110
3891
  # @param options [::Gapic::CallOptions, ::Hash]
2111
3892
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2112
3893
  #
2113
- # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil)
2114
- # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at
3894
+ # @overload delete_workflow_config(name: nil)
3895
+ # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at
2115
3896
  # least one keyword argument is required. To specify no parameters, or to keep all
2116
3897
  # the default parameter values, pass an empty Hash as a request object (see above).
2117
3898
  #
2118
3899
  # @param name [::String]
2119
- # Required. The compilation result's name.
2120
- # @param page_size [::Integer]
2121
- # Optional. Maximum number of compilation results to return. The server may return
2122
- # fewer items than requested. If unspecified, the server will pick an
2123
- # appropriate default.
2124
- # @param page_token [::String]
2125
- # Optional. Page token received from a previous `QueryCompilationResultActions` call.
2126
- # Provide this to retrieve the subsequent page.
2127
- #
2128
- # When paginating, all other parameters provided to
2129
- # `QueryCompilationResultActions` must match the call that provided the page
2130
- # token.
2131
- # @param filter [::String]
2132
- # Optional. Optional filter for the returned list. Filtering is only currently
2133
- # supported on the `file_path` field.
3900
+ # Required. The workflow config's name.
2134
3901
  # @yield [result, operation] Access the result along with the TransportOperation object
2135
- # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
3902
+ # @yieldparam result [::Google::Protobuf::Empty]
2136
3903
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2137
3904
  #
2138
- # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
3905
+ # @return [::Google::Protobuf::Empty]
2139
3906
  #
2140
3907
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2141
- def query_compilation_result_actions request, options = nil
3908
+ #
3909
+ # @example Basic example
3910
+ # require "google/cloud/dataform/v1beta1"
3911
+ #
3912
+ # # Create a client object. The client can be reused for multiple calls.
3913
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
3914
+ #
3915
+ # # Create a request. To set request fields, pass in keyword arguments.
3916
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest.new
3917
+ #
3918
+ # # Call the delete_workflow_config method.
3919
+ # result = client.delete_workflow_config request
3920
+ #
3921
+ # # The returned object is of type Google::Protobuf::Empty.
3922
+ # p result
3923
+ #
3924
+ def delete_workflow_config request, options = nil
2142
3925
  raise ::ArgumentError, "request must be provided" if request.nil?
2143
3926
 
2144
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest
3927
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest
2145
3928
 
2146
3929
  # Converts hash and nil to an options object
2147
3930
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2148
3931
 
2149
3932
  # Customize the options with defaults
2150
- call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
3933
+ call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h
2151
3934
 
2152
3935
  # Set x-goog-api-client and x-goog-user-project headers
2153
3936
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2157,16 +3940,15 @@ module Google
2157
3940
 
2158
3941
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2159
3942
 
2160
- options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
3943
+ options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout,
2161
3944
  metadata: call_metadata,
2162
- retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy
3945
+ retry_policy: @config.rpcs.delete_workflow_config.retry_policy
2163
3946
 
2164
3947
  options.apply_defaults timeout: @config.timeout,
2165
3948
  metadata: @config.metadata,
2166
3949
  retry_policy: @config.retry_policy
2167
3950
 
2168
- @dataform_stub.query_compilation_result_actions request, options do |result, operation|
2169
- result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options
3951
+ @dataform_stub.delete_workflow_config request, options do |result, operation|
2170
3952
  yield result, operation if block_given?
2171
3953
  return result
2172
3954
  end
@@ -2187,24 +3969,30 @@ module Google
2187
3969
  # @param options [::Gapic::CallOptions, ::Hash]
2188
3970
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2189
3971
  #
2190
- # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil)
3972
+ # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
2191
3973
  # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at
2192
3974
  # least one keyword argument is required. To specify no parameters, or to keep all
2193
3975
  # the default parameter values, pass an empty Hash as a request object (see above).
2194
3976
  #
2195
3977
  # @param parent [::String]
2196
- # Required. The parent resource of the WorkflowInvocation type. Must be in the
2197
- # format `projects/*/locations/*/repositories/*`.
3978
+ # Required. The parent resource of the WorkflowInvocation type. Must be in
3979
+ # the format `projects/*/locations/*/repositories/*`.
2198
3980
  # @param page_size [::Integer]
2199
- # Optional. Maximum number of workflow invocations to return. The server may return
2200
- # fewer items than requested. If unspecified, the server will pick an
3981
+ # Optional. Maximum number of workflow invocations to return. The server may
3982
+ # return fewer items than requested. If unspecified, the server will pick an
2201
3983
  # appropriate default.
2202
3984
  # @param page_token [::String]
2203
- # Optional. Page token received from a previous `ListWorkflowInvocations` call.
2204
- # Provide this to retrieve the subsequent page.
3985
+ # Optional. Page token received from a previous `ListWorkflowInvocations`
3986
+ # call. Provide this to retrieve the subsequent page.
2205
3987
  #
2206
3988
  # When paginating, all other parameters provided to `ListWorkflowInvocations`
2207
3989
  # must match the call that provided the page token.
3990
+ # @param order_by [::String]
3991
+ # Optional. This field only supports ordering by `name`. If unspecified, the
3992
+ # server will choose the ordering. If specified, the default order is
3993
+ # ascending for the `name` field.
3994
+ # @param filter [::String]
3995
+ # Optional. Filter for the returned list.
2208
3996
  # @yield [result, operation] Access the result along with the TransportOperation object
2209
3997
  # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
2210
3998
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2212,6 +4000,26 @@ module Google
2212
4000
  # @return [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
2213
4001
  #
2214
4002
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4003
+ #
4004
+ # @example Basic example
4005
+ # require "google/cloud/dataform/v1beta1"
4006
+ #
4007
+ # # Create a client object. The client can be reused for multiple calls.
4008
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
4009
+ #
4010
+ # # Create a request. To set request fields, pass in keyword arguments.
4011
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest.new
4012
+ #
4013
+ # # Call the list_workflow_invocations method.
4014
+ # result = client.list_workflow_invocations request
4015
+ #
4016
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4017
+ # # over elements, and API calls will be issued to fetch pages as needed.
4018
+ # result.each do |item|
4019
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::WorkflowInvocation.
4020
+ # p item
4021
+ # end
4022
+ #
2215
4023
  def list_workflow_invocations request, options = nil
2216
4024
  raise ::ArgumentError, "request must be provided" if request.nil?
2217
4025
 
@@ -2274,6 +4082,22 @@ module Google
2274
4082
  # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
2275
4083
  #
2276
4084
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4085
+ #
4086
+ # @example Basic example
4087
+ # require "google/cloud/dataform/v1beta1"
4088
+ #
4089
+ # # Create a client object. The client can be reused for multiple calls.
4090
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
4091
+ #
4092
+ # # Create a request. To set request fields, pass in keyword arguments.
4093
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest.new
4094
+ #
4095
+ # # Call the get_workflow_invocation method.
4096
+ # result = client.get_workflow_invocation request
4097
+ #
4098
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowInvocation.
4099
+ # p result
4100
+ #
2277
4101
  def get_workflow_invocation request, options = nil
2278
4102
  raise ::ArgumentError, "request must be provided" if request.nil?
2279
4103
 
@@ -2328,8 +4152,8 @@ module Google
2328
4152
  # the default parameter values, pass an empty Hash as a request object (see above).
2329
4153
  #
2330
4154
  # @param parent [::String]
2331
- # Required. The repository in which to create the workflow invocation. Must be in the
2332
- # format `projects/*/locations/*/repositories/*`.
4155
+ # Required. The repository in which to create the workflow invocation. Must
4156
+ # be in the format `projects/*/locations/*/repositories/*`.
2333
4157
  # @param workflow_invocation [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation, ::Hash]
2334
4158
  # Required. The workflow invocation resource to create.
2335
4159
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2339,6 +4163,22 @@ module Google
2339
4163
  # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
2340
4164
  #
2341
4165
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4166
+ #
4167
+ # @example Basic example
4168
+ # require "google/cloud/dataform/v1beta1"
4169
+ #
4170
+ # # Create a client object. The client can be reused for multiple calls.
4171
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
4172
+ #
4173
+ # # Create a request. To set request fields, pass in keyword arguments.
4174
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest.new
4175
+ #
4176
+ # # Call the create_workflow_invocation method.
4177
+ # result = client.create_workflow_invocation request
4178
+ #
4179
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowInvocation.
4180
+ # p result
4181
+ #
2342
4182
  def create_workflow_invocation request, options = nil
2343
4183
  raise ::ArgumentError, "request must be provided" if request.nil?
2344
4184
 
@@ -2401,6 +4241,22 @@ module Google
2401
4241
  # @return [::Google::Protobuf::Empty]
2402
4242
  #
2403
4243
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4244
+ #
4245
+ # @example Basic example
4246
+ # require "google/cloud/dataform/v1beta1"
4247
+ #
4248
+ # # Create a client object. The client can be reused for multiple calls.
4249
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
4250
+ #
4251
+ # # Create a request. To set request fields, pass in keyword arguments.
4252
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest.new
4253
+ #
4254
+ # # Call the delete_workflow_invocation method.
4255
+ # result = client.delete_workflow_invocation request
4256
+ #
4257
+ # # The returned object is of type Google::Protobuf::Empty.
4258
+ # p result
4259
+ #
2404
4260
  def delete_workflow_invocation request, options = nil
2405
4261
  raise ::ArgumentError, "request must be provided" if request.nil?
2406
4262
 
@@ -2463,6 +4319,22 @@ module Google
2463
4319
  # @return [::Google::Protobuf::Empty]
2464
4320
  #
2465
4321
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4322
+ #
4323
+ # @example Basic example
4324
+ # require "google/cloud/dataform/v1beta1"
4325
+ #
4326
+ # # Create a client object. The client can be reused for multiple calls.
4327
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
4328
+ #
4329
+ # # Create a request. To set request fields, pass in keyword arguments.
4330
+ # request = Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest.new
4331
+ #
4332
+ # # Call the cancel_workflow_invocation method.
4333
+ # result = client.cancel_workflow_invocation request
4334
+ #
4335
+ # # The returned object is of type Google::Protobuf::Empty.
4336
+ # p result
4337
+ #
2466
4338
  def cancel_workflow_invocation request, options = nil
2467
4339
  raise ::ArgumentError, "request must be provided" if request.nil?
2468
4340
 
@@ -2519,12 +4391,13 @@ module Google
2519
4391
  # @param name [::String]
2520
4392
  # Required. The workflow invocation's name.
2521
4393
  # @param page_size [::Integer]
2522
- # Optional. Maximum number of workflow invocations to return. The server may return
2523
- # fewer items than requested. If unspecified, the server will pick an
4394
+ # Optional. Maximum number of workflow invocations to return. The server may
4395
+ # return fewer items than requested. If unspecified, the server will pick an
2524
4396
  # appropriate default.
2525
4397
  # @param page_token [::String]
2526
- # Optional. Page token received from a previous `QueryWorkflowInvocationActions` call.
2527
- # Provide this to retrieve the subsequent page.
4398
+ # Optional. Page token received from a previous
4399
+ # `QueryWorkflowInvocationActions` call. Provide this to retrieve the
4400
+ # subsequent page.
2528
4401
  #
2529
4402
  # When paginating, all other parameters provided to
2530
4403
  # `QueryWorkflowInvocationActions` must match the call that provided the page
@@ -2536,6 +4409,26 @@ module Google
2536
4409
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction>]
2537
4410
  #
2538
4411
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4412
+ #
4413
+ # @example Basic example
4414
+ # require "google/cloud/dataform/v1beta1"
4415
+ #
4416
+ # # Create a client object. The client can be reused for multiple calls.
4417
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
4418
+ #
4419
+ # # Create a request. To set request fields, pass in keyword arguments.
4420
+ # request = Google::Cloud::Dataform::V1beta1::QueryWorkflowInvocationActionsRequest.new
4421
+ #
4422
+ # # Call the query_workflow_invocation_actions method.
4423
+ # result = client.query_workflow_invocation_actions request
4424
+ #
4425
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4426
+ # # over elements, and API calls will be issued to fetch pages as needed.
4427
+ # result.each do |item|
4428
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction.
4429
+ # p item
4430
+ # end
4431
+ #
2539
4432
  def query_workflow_invocation_actions request, options = nil
2540
4433
  raise ::ArgumentError, "request must be provided" if request.nil?
2541
4434
 
@@ -2730,6 +4623,31 @@ module Google
2730
4623
  #
2731
4624
  attr_reader :delete_repository
2732
4625
  ##
4626
+ # RPC-specific configuration for `commit_repository_changes`
4627
+ # @return [::Gapic::Config::Method]
4628
+ #
4629
+ attr_reader :commit_repository_changes
4630
+ ##
4631
+ # RPC-specific configuration for `read_repository_file`
4632
+ # @return [::Gapic::Config::Method]
4633
+ #
4634
+ attr_reader :read_repository_file
4635
+ ##
4636
+ # RPC-specific configuration for `query_repository_directory_contents`
4637
+ # @return [::Gapic::Config::Method]
4638
+ #
4639
+ attr_reader :query_repository_directory_contents
4640
+ ##
4641
+ # RPC-specific configuration for `fetch_repository_history`
4642
+ # @return [::Gapic::Config::Method]
4643
+ #
4644
+ attr_reader :fetch_repository_history
4645
+ ##
4646
+ # RPC-specific configuration for `compute_repository_access_token_status`
4647
+ # @return [::Gapic::Config::Method]
4648
+ #
4649
+ attr_reader :compute_repository_access_token_status
4650
+ ##
2733
4651
  # RPC-specific configuration for `fetch_remote_branches`
2734
4652
  # @return [::Gapic::Config::Method]
2735
4653
  #
@@ -2835,6 +4753,31 @@ module Google
2835
4753
  #
2836
4754
  attr_reader :write_file
2837
4755
  ##
4756
+ # RPC-specific configuration for `list_release_configs`
4757
+ # @return [::Gapic::Config::Method]
4758
+ #
4759
+ attr_reader :list_release_configs
4760
+ ##
4761
+ # RPC-specific configuration for `get_release_config`
4762
+ # @return [::Gapic::Config::Method]
4763
+ #
4764
+ attr_reader :get_release_config
4765
+ ##
4766
+ # RPC-specific configuration for `create_release_config`
4767
+ # @return [::Gapic::Config::Method]
4768
+ #
4769
+ attr_reader :create_release_config
4770
+ ##
4771
+ # RPC-specific configuration for `update_release_config`
4772
+ # @return [::Gapic::Config::Method]
4773
+ #
4774
+ attr_reader :update_release_config
4775
+ ##
4776
+ # RPC-specific configuration for `delete_release_config`
4777
+ # @return [::Gapic::Config::Method]
4778
+ #
4779
+ attr_reader :delete_release_config
4780
+ ##
2838
4781
  # RPC-specific configuration for `list_compilation_results`
2839
4782
  # @return [::Gapic::Config::Method]
2840
4783
  #
@@ -2855,6 +4798,31 @@ module Google
2855
4798
  #
2856
4799
  attr_reader :query_compilation_result_actions
2857
4800
  ##
4801
+ # RPC-specific configuration for `list_workflow_configs`
4802
+ # @return [::Gapic::Config::Method]
4803
+ #
4804
+ attr_reader :list_workflow_configs
4805
+ ##
4806
+ # RPC-specific configuration for `get_workflow_config`
4807
+ # @return [::Gapic::Config::Method]
4808
+ #
4809
+ attr_reader :get_workflow_config
4810
+ ##
4811
+ # RPC-specific configuration for `create_workflow_config`
4812
+ # @return [::Gapic::Config::Method]
4813
+ #
4814
+ attr_reader :create_workflow_config
4815
+ ##
4816
+ # RPC-specific configuration for `update_workflow_config`
4817
+ # @return [::Gapic::Config::Method]
4818
+ #
4819
+ attr_reader :update_workflow_config
4820
+ ##
4821
+ # RPC-specific configuration for `delete_workflow_config`
4822
+ # @return [::Gapic::Config::Method]
4823
+ #
4824
+ attr_reader :delete_workflow_config
4825
+ ##
2858
4826
  # RPC-specific configuration for `list_workflow_invocations`
2859
4827
  # @return [::Gapic::Config::Method]
2860
4828
  #
@@ -2897,6 +4865,16 @@ module Google
2897
4865
  @update_repository = ::Gapic::Config::Method.new update_repository_config
2898
4866
  delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
2899
4867
  @delete_repository = ::Gapic::Config::Method.new delete_repository_config
4868
+ commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes
4869
+ @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config
4870
+ read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file
4871
+ @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config
4872
+ query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents
4873
+ @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config
4874
+ fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history
4875
+ @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config
4876
+ compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status
4877
+ @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config
2900
4878
  fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches
2901
4879
  @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config
2902
4880
  list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces
@@ -2939,6 +4917,16 @@ module Google
2939
4917
  @move_file = ::Gapic::Config::Method.new move_file_config
2940
4918
  write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file
2941
4919
  @write_file = ::Gapic::Config::Method.new write_file_config
4920
+ list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs
4921
+ @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config
4922
+ get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config
4923
+ @get_release_config = ::Gapic::Config::Method.new get_release_config_config
4924
+ create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config
4925
+ @create_release_config = ::Gapic::Config::Method.new create_release_config_config
4926
+ update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config
4927
+ @update_release_config = ::Gapic::Config::Method.new update_release_config_config
4928
+ delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config
4929
+ @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config
2942
4930
  list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results
2943
4931
  @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config
2944
4932
  get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result
@@ -2947,6 +4935,16 @@ module Google
2947
4935
  @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config
2948
4936
  query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions
2949
4937
  @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config
4938
+ list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs
4939
+ @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config
4940
+ get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config
4941
+ @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config
4942
+ create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config
4943
+ @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config
4944
+ update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config
4945
+ @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config
4946
+ delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config
4947
+ @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config
2950
4948
  list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations
2951
4949
  @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config
2952
4950
  get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation