google-cloud-dataform-v1beta1 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -361,13 +362,13 @@ module Google
361
362
  # the default parameter values, pass an empty Hash as a request object (see above).
362
363
  #
363
364
  # @param parent [::String]
364
- # Required. The location in which to create the repository. Must be in the format
365
- # `projects/*/locations/*`.
365
+ # Required. The location in which to create the repository. Must be in the
366
+ # format `projects/*/locations/*`.
366
367
  # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
367
368
  # Required. The repository to create.
368
369
  # @param repository_id [::String]
369
- # Required. The ID to use for the repository, which will become the final component of
370
- # 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.
371
372
  # @yield [result, operation] Access the result along with the TransportOperation object
372
373
  # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Repository]
373
374
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -445,8 +446,8 @@ module Google
445
446
  # the default parameter values, pass an empty Hash as a request object (see above).
446
447
  #
447
448
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
448
- # Optional. Specifies the fields to be updated in the repository. If left unset,
449
- # 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.
450
451
  # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
451
452
  # Required. The repository to update.
452
453
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -590,30 +591,40 @@ module Google
590
591
  end
591
592
 
592
593
  ##
593
- # 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`.
594
596
  #
595
- # @overload fetch_remote_branches(request, options = nil)
596
- # Pass arguments to `fetch_remote_branches` via a request object, either of type
597
- # {::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.
598
600
  #
599
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest, ::Hash]
601
+ # @param request [::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest, ::Hash]
600
602
  # A request object representing the call parameters. Required. To specify no
601
603
  # parameters, or to keep all the default parameter values, pass an empty Hash.
602
604
  # @param options [::Gapic::CallOptions, ::Hash]
603
605
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
604
606
  #
605
- # @overload fetch_remote_branches(name: nil)
606
- # 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
607
609
  # least one keyword argument is required. To specify no parameters, or to keep all
608
610
  # the default parameter values, pass an empty Hash as a request object (see above).
609
611
  #
610
612
  # @param name [::String]
611
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.
612
623
  # @yield [result, operation] Access the result along with the TransportOperation object
613
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
624
+ # @yieldparam result [::Google::Protobuf::Empty]
614
625
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
615
626
  #
616
- # @return [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
627
+ # @return [::Google::Protobuf::Empty]
617
628
  #
618
629
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
619
630
  #
@@ -624,24 +635,24 @@ module Google
624
635
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
625
636
  #
626
637
  # # Create a request. To set request fields, pass in keyword arguments.
627
- # request = Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest.new
638
+ # request = Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest.new
628
639
  #
629
- # # Call the fetch_remote_branches method.
630
- # result = client.fetch_remote_branches request
640
+ # # Call the commit_repository_changes method.
641
+ # result = client.commit_repository_changes request
631
642
  #
632
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse.
643
+ # # The returned object is of type Google::Protobuf::Empty.
633
644
  # p result
634
645
  #
635
- def fetch_remote_branches request, options = nil
646
+ def commit_repository_changes request, options = nil
636
647
  raise ::ArgumentError, "request must be provided" if request.nil?
637
648
 
638
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest
649
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest
639
650
 
640
651
  # Converts hash and nil to an options object
641
652
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
642
653
 
643
654
  # Customize the options with defaults
644
- call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
655
+ call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h
645
656
 
646
657
  # Set x-goog-api-client and x-goog-user-project headers
647
658
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -651,15 +662,15 @@ module Google
651
662
 
652
663
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
653
664
 
654
- options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
665
+ options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout,
655
666
  metadata: call_metadata,
656
- retry_policy: @config.rpcs.fetch_remote_branches.retry_policy
667
+ retry_policy: @config.rpcs.commit_repository_changes.retry_policy
657
668
 
658
669
  options.apply_defaults timeout: @config.timeout,
659
670
  metadata: @config.metadata,
660
671
  retry_policy: @config.retry_policy
661
672
 
662
- @dataform_stub.fetch_remote_branches request, options do |result, operation|
673
+ @dataform_stub.commit_repository_changes request, options do |result, operation|
663
674
  yield result, operation if block_given?
664
675
  return result
665
676
  end
@@ -668,47 +679,36 @@ module Google
668
679
  end
669
680
 
670
681
  ##
671
- # 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`.
672
684
  #
673
- # @overload list_workspaces(request, options = nil)
674
- # Pass arguments to `list_workspaces` via a request object, either of type
675
- # {::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.
676
688
  #
677
- # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest, ::Hash]
689
+ # @param request [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest, ::Hash]
678
690
  # A request object representing the call parameters. Required. To specify no
679
691
  # parameters, or to keep all the default parameter values, pass an empty Hash.
680
692
  # @param options [::Gapic::CallOptions, ::Hash]
681
693
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
682
694
  #
683
- # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
684
- # 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
685
697
  # least one keyword argument is required. To specify no parameters, or to keep all
686
698
  # the default parameter values, pass an empty Hash as a request object (see above).
687
699
  #
688
- # @param parent [::String]
689
- # Required. The repository in which to list workspaces. Must be in the
690
- # format `projects/*/locations/*/repositories/*`.
691
- # @param page_size [::Integer]
692
- # Optional. Maximum number of workspaces to return. The server may return fewer
693
- # items than requested. If unspecified, the server will pick an appropriate
694
- # default.
695
- # @param page_token [::String]
696
- # Optional. Page token received from a previous `ListWorkspaces` call.
697
- # Provide this to retrieve the subsequent page.
698
- #
699
- # When paginating, all other parameters provided to `ListWorkspaces`
700
- # must match the call that provided the page token.
701
- # @param order_by [::String]
702
- # Optional. This field only supports ordering by `name`. If unspecified, the server
703
- # will choose the ordering. If specified, the default order is ascending for
704
- # the `name` field.
705
- # @param filter [::String]
706
- # 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.
707
707
  # @yield [result, operation] Access the result along with the TransportOperation object
708
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
708
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse]
709
709
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
710
710
  #
711
- # @return [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
711
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse]
712
712
  #
713
713
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
714
714
  #
@@ -719,28 +719,24 @@ module Google
719
719
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
720
720
  #
721
721
  # # Create a request. To set request fields, pass in keyword arguments.
722
- # request = Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest.new
722
+ # request = Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest.new
723
723
  #
724
- # # Call the list_workspaces method.
725
- # result = client.list_workspaces request
724
+ # # Call the read_repository_file method.
725
+ # result = client.read_repository_file request
726
726
  #
727
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
728
- # # over elements, and API calls will be issued to fetch pages as needed.
729
- # result.each do |item|
730
- # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Workspace.
731
- # p item
732
- # end
727
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse.
728
+ # p result
733
729
  #
734
- def list_workspaces request, options = nil
730
+ def read_repository_file request, options = nil
735
731
  raise ::ArgumentError, "request must be provided" if request.nil?
736
732
 
737
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest
733
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest
738
734
 
739
735
  # Converts hash and nil to an options object
740
736
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
741
737
 
742
738
  # Customize the options with defaults
743
- call_metadata = @config.rpcs.list_workspaces.metadata.to_h
739
+ call_metadata = @config.rpcs.read_repository_file.metadata.to_h
744
740
 
745
741
  # Set x-goog-api-client and x-goog-user-project headers
746
742
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -750,15 +746,15 @@ module Google
750
746
 
751
747
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
752
748
 
753
- options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
749
+ options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout,
754
750
  metadata: call_metadata,
755
- retry_policy: @config.rpcs.list_workspaces.retry_policy
751
+ retry_policy: @config.rpcs.read_repository_file.retry_policy
756
752
 
757
753
  options.apply_defaults timeout: @config.timeout,
758
754
  metadata: @config.metadata,
759
755
  retry_policy: @config.retry_policy
760
756
 
761
- @dataform_stub.list_workspaces request, options do |result, operation|
757
+ @dataform_stub.read_repository_file request, options do |result, operation|
762
758
  yield result, operation if block_given?
763
759
  return result
764
760
  end
@@ -767,30 +763,49 @@ module Google
767
763
  end
768
764
 
769
765
  ##
770
- # 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`.
771
768
  #
772
- # @overload get_workspace(request, options = nil)
773
- # Pass arguments to `get_workspace` via a request object, either of type
774
- # {::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.
775
772
  #
776
- # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest, ::Hash]
773
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest, ::Hash]
777
774
  # A request object representing the call parameters. Required. To specify no
778
775
  # parameters, or to keep all the default parameter values, pass an empty Hash.
779
776
  # @param options [::Gapic::CallOptions, ::Hash]
780
777
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
781
778
  #
782
- # @overload get_workspace(name: nil)
783
- # 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
784
781
  # least one keyword argument is required. To specify no parameters, or to keep all
785
782
  # the default parameter values, pass an empty Hash as a request object (see above).
786
783
  #
787
784
  # @param name [::String]
788
- # 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.
789
804
  # @yield [result, operation] Access the result along with the TransportOperation object
790
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
805
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
791
806
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
792
807
  #
793
- # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
808
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
794
809
  #
795
810
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
796
811
  #
@@ -801,24 +816,28 @@ module Google
801
816
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
802
817
  #
803
818
  # # Create a request. To set request fields, pass in keyword arguments.
804
- # request = Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest.new
819
+ # request = Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest.new
805
820
  #
806
- # # Call the get_workspace method.
807
- # result = client.get_workspace request
821
+ # # Call the query_repository_directory_contents method.
822
+ # result = client.query_repository_directory_contents request
808
823
  #
809
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
810
- # p result
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
811
830
  #
812
- def get_workspace request, options = nil
831
+ def query_repository_directory_contents request, options = nil
813
832
  raise ::ArgumentError, "request must be provided" if request.nil?
814
833
 
815
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest
834
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest
816
835
 
817
836
  # Converts hash and nil to an options object
818
837
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
819
838
 
820
839
  # Customize the options with defaults
821
- call_metadata = @config.rpcs.get_workspace.metadata.to_h
840
+ call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h
822
841
 
823
842
  # Set x-goog-api-client and x-goog-user-project headers
824
843
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -828,15 +847,16 @@ module Google
828
847
 
829
848
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
830
849
 
831
- options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
850
+ options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout,
832
851
  metadata: call_metadata,
833
- retry_policy: @config.rpcs.get_workspace.retry_policy
852
+ retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy
834
853
 
835
854
  options.apply_defaults timeout: @config.timeout,
836
855
  metadata: @config.metadata,
837
856
  retry_policy: @config.retry_policy
838
857
 
839
- @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
840
860
  yield result, operation if block_given?
841
861
  return result
842
862
  end
@@ -845,36 +865,41 @@ module Google
845
865
  end
846
866
 
847
867
  ##
848
- # 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`.
849
870
  #
850
- # @overload create_workspace(request, options = nil)
851
- # Pass arguments to `create_workspace` via a request object, either of type
852
- # {::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.
853
874
  #
854
- # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
875
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest, ::Hash]
855
876
  # A request object representing the call parameters. Required. To specify no
856
877
  # parameters, or to keep all the default parameter values, pass an empty Hash.
857
878
  # @param options [::Gapic::CallOptions, ::Hash]
858
879
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
859
880
  #
860
- # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil)
861
- # 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
862
883
  # least one keyword argument is required. To specify no parameters, or to keep all
863
884
  # the default parameter values, pass an empty Hash as a request object (see above).
864
885
  #
865
- # @param parent [::String]
866
- # Required. The repository in which to create the workspace. Must be in the format
867
- # `projects/*/locations/*/repositories/*`.
868
- # @param workspace [::Google::Cloud::Dataform::V1beta1::Workspace, ::Hash]
869
- # Required. The workspace to create.
870
- # @param workspace_id [::String]
871
- # Required. The ID to use for the workspace, which will become the final component of
872
- # 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.
873
898
  # @yield [result, operation] Access the result along with the TransportOperation object
874
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
899
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
875
900
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
876
901
  #
877
- # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
902
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
878
903
  #
879
904
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
880
905
  #
@@ -885,24 +910,28 @@ module Google
885
910
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
886
911
  #
887
912
  # # Create a request. To set request fields, pass in keyword arguments.
888
- # request = Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest.new
913
+ # request = Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest.new
889
914
  #
890
- # # Call the create_workspace method.
891
- # result = client.create_workspace request
915
+ # # Call the fetch_repository_history method.
916
+ # result = client.fetch_repository_history request
892
917
  #
893
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
894
- # p result
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
895
924
  #
896
- def create_workspace request, options = nil
925
+ def fetch_repository_history request, options = nil
897
926
  raise ::ArgumentError, "request must be provided" if request.nil?
898
927
 
899
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
928
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest
900
929
 
901
930
  # Converts hash and nil to an options object
902
931
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
903
932
 
904
933
  # Customize the options with defaults
905
- call_metadata = @config.rpcs.create_workspace.metadata.to_h
934
+ call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h
906
935
 
907
936
  # Set x-goog-api-client and x-goog-user-project headers
908
937
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -912,15 +941,16 @@ module Google
912
941
 
913
942
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
914
943
 
915
- options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
944
+ options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout,
916
945
  metadata: call_metadata,
917
- retry_policy: @config.rpcs.create_workspace.retry_policy
946
+ retry_policy: @config.rpcs.fetch_repository_history.retry_policy
918
947
 
919
948
  options.apply_defaults timeout: @config.timeout,
920
949
  metadata: @config.metadata,
921
950
  retry_policy: @config.retry_policy
922
951
 
923
- @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
924
954
  yield result, operation if block_given?
925
955
  return result
926
956
  end
@@ -929,30 +959,30 @@ module Google
929
959
  end
930
960
 
931
961
  ##
932
- # Deletes a single Workspace.
962
+ # Computes a Repository's Git access token status.
933
963
  #
934
- # @overload delete_workspace(request, options = nil)
935
- # Pass arguments to `delete_workspace` via a request object, either of type
936
- # {::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.
937
967
  #
938
- # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest, ::Hash]
968
+ # @param request [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest, ::Hash]
939
969
  # A request object representing the call parameters. Required. To specify no
940
970
  # parameters, or to keep all the default parameter values, pass an empty Hash.
941
971
  # @param options [::Gapic::CallOptions, ::Hash]
942
972
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
943
973
  #
944
- # @overload delete_workspace(name: nil)
945
- # 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
946
976
  # least one keyword argument is required. To specify no parameters, or to keep all
947
977
  # the default parameter values, pass an empty Hash as a request object (see above).
948
978
  #
949
979
  # @param name [::String]
950
- # Required. The workspace resource's name.
980
+ # Required. The repository's name.
951
981
  # @yield [result, operation] Access the result along with the TransportOperation object
952
- # @yieldparam result [::Google::Protobuf::Empty]
982
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse]
953
983
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
954
984
  #
955
- # @return [::Google::Protobuf::Empty]
985
+ # @return [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse]
956
986
  #
957
987
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
958
988
  #
@@ -963,24 +993,24 @@ module Google
963
993
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
964
994
  #
965
995
  # # Create a request. To set request fields, pass in keyword arguments.
966
- # request = Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest.new
996
+ # request = Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest.new
967
997
  #
968
- # # Call the delete_workspace method.
969
- # result = client.delete_workspace request
998
+ # # Call the compute_repository_access_token_status method.
999
+ # result = client.compute_repository_access_token_status request
970
1000
  #
971
- # # The returned object is of type Google::Protobuf::Empty.
1001
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse.
972
1002
  # p result
973
1003
  #
974
- def delete_workspace request, options = nil
1004
+ def compute_repository_access_token_status request, options = nil
975
1005
  raise ::ArgumentError, "request must be provided" if request.nil?
976
1006
 
977
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest
1007
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest
978
1008
 
979
1009
  # Converts hash and nil to an options object
980
1010
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
981
1011
 
982
1012
  # Customize the options with defaults
983
- call_metadata = @config.rpcs.delete_workspace.metadata.to_h
1013
+ call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h
984
1014
 
985
1015
  # Set x-goog-api-client and x-goog-user-project headers
986
1016
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -990,15 +1020,15 @@ module Google
990
1020
 
991
1021
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
992
1022
 
993
- options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
1023
+ options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout,
994
1024
  metadata: call_metadata,
995
- retry_policy: @config.rpcs.delete_workspace.retry_policy
1025
+ retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy
996
1026
 
997
1027
  options.apply_defaults timeout: @config.timeout,
998
1028
  metadata: @config.metadata,
999
1029
  retry_policy: @config.retry_policy
1000
1030
 
1001
- @dataform_stub.delete_workspace request, options do |result, operation|
1031
+ @dataform_stub.compute_repository_access_token_status request, options do |result, operation|
1002
1032
  yield result, operation if block_given?
1003
1033
  return result
1004
1034
  end
@@ -1007,30 +1037,30 @@ module Google
1007
1037
  end
1008
1038
 
1009
1039
  ##
1010
- # Installs dependency NPM packages (inside a Workspace).
1040
+ # Fetches a Repository's remote branches.
1011
1041
  #
1012
- # @overload install_npm_packages(request, options = nil)
1013
- # Pass arguments to `install_npm_packages` via a request object, either of type
1014
- # {::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.
1015
1045
  #
1016
- # @param request [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest, ::Hash]
1046
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest, ::Hash]
1017
1047
  # A request object representing the call parameters. Required. To specify no
1018
1048
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1019
1049
  # @param options [::Gapic::CallOptions, ::Hash]
1020
1050
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1021
1051
  #
1022
- # @overload install_npm_packages(workspace: nil)
1023
- # 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
1024
1054
  # least one keyword argument is required. To specify no parameters, or to keep all
1025
1055
  # the default parameter values, pass an empty Hash as a request object (see above).
1026
1056
  #
1027
- # @param workspace [::String]
1028
- # Required. The workspace's name.
1057
+ # @param name [::String]
1058
+ # Required. The repository's name.
1029
1059
  # @yield [result, operation] Access the result along with the TransportOperation object
1030
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1060
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
1031
1061
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1032
1062
  #
1033
- # @return [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1063
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
1034
1064
  #
1035
1065
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1036
1066
  #
@@ -1041,24 +1071,24 @@ module Google
1041
1071
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1042
1072
  #
1043
1073
  # # Create a request. To set request fields, pass in keyword arguments.
1044
- # request = Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest.new
1074
+ # request = Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest.new
1045
1075
  #
1046
- # # Call the install_npm_packages method.
1047
- # result = client.install_npm_packages request
1076
+ # # Call the fetch_remote_branches method.
1077
+ # result = client.fetch_remote_branches request
1048
1078
  #
1049
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse.
1079
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse.
1050
1080
  # p result
1051
1081
  #
1052
- def install_npm_packages request, options = nil
1082
+ def fetch_remote_branches request, options = nil
1053
1083
  raise ::ArgumentError, "request must be provided" if request.nil?
1054
1084
 
1055
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest
1085
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest
1056
1086
 
1057
1087
  # Converts hash and nil to an options object
1058
1088
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1059
1089
 
1060
1090
  # Customize the options with defaults
1061
- call_metadata = @config.rpcs.install_npm_packages.metadata.to_h
1091
+ call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
1062
1092
 
1063
1093
  # Set x-goog-api-client and x-goog-user-project headers
1064
1094
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1068,15 +1098,15 @@ module Google
1068
1098
 
1069
1099
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1070
1100
 
1071
- options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
1101
+ options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
1072
1102
  metadata: call_metadata,
1073
- retry_policy: @config.rpcs.install_npm_packages.retry_policy
1103
+ retry_policy: @config.rpcs.fetch_remote_branches.retry_policy
1074
1104
 
1075
1105
  options.apply_defaults timeout: @config.timeout,
1076
1106
  metadata: @config.metadata,
1077
1107
  retry_policy: @config.retry_policy
1078
1108
 
1079
- @dataform_stub.install_npm_packages request, options do |result, operation|
1109
+ @dataform_stub.fetch_remote_branches request, options do |result, operation|
1080
1110
  yield result, operation if block_given?
1081
1111
  return result
1082
1112
  end
@@ -1085,36 +1115,47 @@ module Google
1085
1115
  end
1086
1116
 
1087
1117
  ##
1088
- # Pulls Git commits from the Repository's remote into a Workspace.
1118
+ # Lists Workspaces in a given Repository.
1089
1119
  #
1090
- # @overload pull_git_commits(request, options = nil)
1091
- # Pass arguments to `pull_git_commits` via a request object, either of type
1092
- # {::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.
1093
1123
  #
1094
- # @param request [::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest, ::Hash]
1124
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest, ::Hash]
1095
1125
  # A request object representing the call parameters. Required. To specify no
1096
1126
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1097
1127
  # @param options [::Gapic::CallOptions, ::Hash]
1098
1128
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1099
1129
  #
1100
- # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil)
1101
- # 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
1102
1132
  # least one keyword argument is required. To specify no parameters, or to keep all
1103
1133
  # the default parameter values, pass an empty Hash as a request object (see above).
1104
1134
  #
1105
- # @param name [::String]
1106
- # Required. The workspace's name.
1107
- # @param remote_branch [::String]
1108
- # Optional. The name of the branch in the Git remote from which to pull commits.
1109
- # If left unset, the repository's default branch name will be used.
1110
- # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1111
- # Required. The author of any merge commit which may be created as a result of merging
1112
- # fetched Git commits into this workspace.
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.
1113
1154
  # @yield [result, operation] Access the result along with the TransportOperation object
1114
- # @yieldparam result [::Google::Protobuf::Empty]
1155
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
1115
1156
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1116
1157
  #
1117
- # @return [::Google::Protobuf::Empty]
1158
+ # @return [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
1118
1159
  #
1119
1160
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1120
1161
  #
@@ -1125,24 +1166,28 @@ module Google
1125
1166
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1126
1167
  #
1127
1168
  # # Create a request. To set request fields, pass in keyword arguments.
1128
- # request = Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest.new
1129
- #
1130
- # # Call the pull_git_commits method.
1131
- # result = client.pull_git_commits request
1169
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest.new
1132
1170
  #
1133
- # # The returned object is of type Google::Protobuf::Empty.
1134
- # p result
1171
+ # # Call the list_workspaces method.
1172
+ # result = client.list_workspaces request
1135
1173
  #
1136
- def pull_git_commits request, options = nil
1137
- raise ::ArgumentError, "request must be provided" if request.nil?
1138
-
1139
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest
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
1140
1185
 
1141
1186
  # Converts hash and nil to an options object
1142
1187
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1143
1188
 
1144
1189
  # Customize the options with defaults
1145
- call_metadata = @config.rpcs.pull_git_commits.metadata.to_h
1190
+ call_metadata = @config.rpcs.list_workspaces.metadata.to_h
1146
1191
 
1147
1192
  # Set x-goog-api-client and x-goog-user-project headers
1148
1193
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1152,15 +1197,15 @@ module Google
1152
1197
 
1153
1198
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1154
1199
 
1155
- options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
1200
+ options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
1156
1201
  metadata: call_metadata,
1157
- retry_policy: @config.rpcs.pull_git_commits.retry_policy
1202
+ retry_policy: @config.rpcs.list_workspaces.retry_policy
1158
1203
 
1159
1204
  options.apply_defaults timeout: @config.timeout,
1160
1205
  metadata: @config.metadata,
1161
1206
  retry_policy: @config.retry_policy
1162
1207
 
1163
- @dataform_stub.pull_git_commits request, options do |result, operation|
1208
+ @dataform_stub.list_workspaces request, options do |result, operation|
1164
1209
  yield result, operation if block_given?
1165
1210
  return result
1166
1211
  end
@@ -1169,33 +1214,30 @@ module Google
1169
1214
  end
1170
1215
 
1171
1216
  ##
1172
- # Pushes Git commits from a Workspace to the Repository's remote.
1217
+ # Fetches a single Workspace.
1173
1218
  #
1174
- # @overload push_git_commits(request, options = nil)
1175
- # Pass arguments to `push_git_commits` via a request object, either of type
1176
- # {::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest} or an equivalent Hash.
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.
1177
1222
  #
1178
- # @param request [::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest, ::Hash]
1223
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest, ::Hash]
1179
1224
  # A request object representing the call parameters. Required. To specify no
1180
1225
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1181
1226
  # @param options [::Gapic::CallOptions, ::Hash]
1182
1227
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1183
1228
  #
1184
- # @overload push_git_commits(name: nil, remote_branch: nil)
1185
- # Pass arguments to `push_git_commits` via keyword arguments. Note that at
1229
+ # @overload get_workspace(name: nil)
1230
+ # Pass arguments to `get_workspace` via keyword arguments. Note that at
1186
1231
  # least one keyword argument is required. To specify no parameters, or to keep all
1187
1232
  # the default parameter values, pass an empty Hash as a request object (see above).
1188
1233
  #
1189
1234
  # @param name [::String]
1190
1235
  # Required. The workspace's name.
1191
- # @param remote_branch [::String]
1192
- # Optional. The name of the branch in the Git remote to which commits should be pushed.
1193
- # If left unset, the repository's default branch name will be used.
1194
1236
  # @yield [result, operation] Access the result along with the TransportOperation object
1195
- # @yieldparam result [::Google::Protobuf::Empty]
1237
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
1196
1238
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1197
1239
  #
1198
- # @return [::Google::Protobuf::Empty]
1240
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
1199
1241
  #
1200
1242
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1201
1243
  #
@@ -1206,24 +1248,24 @@ module Google
1206
1248
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1207
1249
  #
1208
1250
  # # Create a request. To set request fields, pass in keyword arguments.
1209
- # request = Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest.new
1251
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest.new
1210
1252
  #
1211
- # # Call the push_git_commits method.
1212
- # result = client.push_git_commits request
1253
+ # # Call the get_workspace method.
1254
+ # result = client.get_workspace request
1213
1255
  #
1214
- # # The returned object is of type Google::Protobuf::Empty.
1256
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
1215
1257
  # p result
1216
1258
  #
1217
- def push_git_commits request, options = nil
1259
+ def get_workspace request, options = nil
1218
1260
  raise ::ArgumentError, "request must be provided" if request.nil?
1219
1261
 
1220
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest
1262
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest
1221
1263
 
1222
1264
  # Converts hash and nil to an options object
1223
1265
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1224
1266
 
1225
1267
  # Customize the options with defaults
1226
- call_metadata = @config.rpcs.push_git_commits.metadata.to_h
1268
+ call_metadata = @config.rpcs.get_workspace.metadata.to_h
1227
1269
 
1228
1270
  # Set x-goog-api-client and x-goog-user-project headers
1229
1271
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1233,15 +1275,15 @@ module Google
1233
1275
 
1234
1276
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1235
1277
 
1236
- options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout,
1278
+ options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
1237
1279
  metadata: call_metadata,
1238
- retry_policy: @config.rpcs.push_git_commits.retry_policy
1280
+ retry_policy: @config.rpcs.get_workspace.retry_policy
1239
1281
 
1240
1282
  options.apply_defaults timeout: @config.timeout,
1241
1283
  metadata: @config.metadata,
1242
1284
  retry_policy: @config.retry_policy
1243
1285
 
1244
- @dataform_stub.push_git_commits request, options do |result, operation|
1286
+ @dataform_stub.get_workspace request, options do |result, operation|
1245
1287
  yield result, operation if block_given?
1246
1288
  return result
1247
1289
  end
@@ -1250,30 +1292,36 @@ module Google
1250
1292
  end
1251
1293
 
1252
1294
  ##
1253
- # Fetches Git statuses for the files in a Workspace.
1295
+ # Creates a new Workspace in a given Repository.
1254
1296
  #
1255
- # @overload fetch_file_git_statuses(request, options = nil)
1256
- # Pass arguments to `fetch_file_git_statuses` via a request object, either of type
1257
- # {::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest} or an equivalent Hash.
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.
1258
1300
  #
1259
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest, ::Hash]
1301
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
1260
1302
  # A request object representing the call parameters. Required. To specify no
1261
1303
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1262
1304
  # @param options [::Gapic::CallOptions, ::Hash]
1263
1305
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1264
1306
  #
1265
- # @overload fetch_file_git_statuses(name: nil)
1266
- # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at
1307
+ # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil)
1308
+ # Pass arguments to `create_workspace` via keyword arguments. Note that at
1267
1309
  # least one keyword argument is required. To specify no parameters, or to keep all
1268
1310
  # the default parameter values, pass an empty Hash as a request object (see above).
1269
1311
  #
1270
- # @param name [::String]
1271
- # Required. The workspace's name.
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.
1272
1320
  # @yield [result, operation] Access the result along with the TransportOperation object
1273
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1321
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
1274
1322
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1275
1323
  #
1276
- # @return [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1324
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
1277
1325
  #
1278
1326
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1279
1327
  #
@@ -1284,24 +1332,24 @@ module Google
1284
1332
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1285
1333
  #
1286
1334
  # # Create a request. To set request fields, pass in keyword arguments.
1287
- # request = Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest.new
1335
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest.new
1288
1336
  #
1289
- # # Call the fetch_file_git_statuses method.
1290
- # result = client.fetch_file_git_statuses request
1337
+ # # Call the create_workspace method.
1338
+ # result = client.create_workspace request
1291
1339
  #
1292
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse.
1340
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
1293
1341
  # p result
1294
1342
  #
1295
- def fetch_file_git_statuses request, options = nil
1343
+ def create_workspace request, options = nil
1296
1344
  raise ::ArgumentError, "request must be provided" if request.nil?
1297
1345
 
1298
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest
1346
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
1299
1347
 
1300
1348
  # Converts hash and nil to an options object
1301
1349
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1302
1350
 
1303
1351
  # Customize the options with defaults
1304
- call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
1352
+ call_metadata = @config.rpcs.create_workspace.metadata.to_h
1305
1353
 
1306
1354
  # Set x-goog-api-client and x-goog-user-project headers
1307
1355
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1311,15 +1359,15 @@ module Google
1311
1359
 
1312
1360
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1313
1361
 
1314
- options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout,
1362
+ options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
1315
1363
  metadata: call_metadata,
1316
- retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy
1364
+ retry_policy: @config.rpcs.create_workspace.retry_policy
1317
1365
 
1318
1366
  options.apply_defaults timeout: @config.timeout,
1319
1367
  metadata: @config.metadata,
1320
1368
  retry_policy: @config.retry_policy
1321
1369
 
1322
- @dataform_stub.fetch_file_git_statuses request, options do |result, operation|
1370
+ @dataform_stub.create_workspace request, options do |result, operation|
1323
1371
  yield result, operation if block_given?
1324
1372
  return result
1325
1373
  end
@@ -1328,34 +1376,30 @@ module Google
1328
1376
  end
1329
1377
 
1330
1378
  ##
1331
- # Fetches Git ahead/behind against a remote branch.
1379
+ # Deletes a single Workspace.
1332
1380
  #
1333
- # @overload fetch_git_ahead_behind(request, options = nil)
1334
- # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type
1335
- # {::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest} or an equivalent Hash.
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.
1336
1384
  #
1337
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest, ::Hash]
1385
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest, ::Hash]
1338
1386
  # A request object representing the call parameters. Required. To specify no
1339
1387
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1340
1388
  # @param options [::Gapic::CallOptions, ::Hash]
1341
1389
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1342
1390
  #
1343
- # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil)
1344
- # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at
1391
+ # @overload delete_workspace(name: nil)
1392
+ # Pass arguments to `delete_workspace` via keyword arguments. Note that at
1345
1393
  # least one keyword argument is required. To specify no parameters, or to keep all
1346
1394
  # the default parameter values, pass an empty Hash as a request object (see above).
1347
1395
  #
1348
1396
  # @param name [::String]
1349
- # Required. The workspace's name.
1350
- # @param remote_branch [::String]
1351
- # Optional. The name of the branch in the Git remote against which this workspace
1352
- # should be compared. If left unset, the repository's default branch name
1353
- # will be used.
1397
+ # Required. The workspace resource's name.
1354
1398
  # @yield [result, operation] Access the result along with the TransportOperation object
1355
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1399
+ # @yieldparam result [::Google::Protobuf::Empty]
1356
1400
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1357
1401
  #
1358
- # @return [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1402
+ # @return [::Google::Protobuf::Empty]
1359
1403
  #
1360
1404
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1361
1405
  #
@@ -1366,24 +1410,24 @@ module Google
1366
1410
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1367
1411
  #
1368
1412
  # # Create a request. To set request fields, pass in keyword arguments.
1369
- # request = Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest.new
1413
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest.new
1370
1414
  #
1371
- # # Call the fetch_git_ahead_behind method.
1372
- # result = client.fetch_git_ahead_behind request
1415
+ # # Call the delete_workspace method.
1416
+ # result = client.delete_workspace request
1373
1417
  #
1374
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse.
1418
+ # # The returned object is of type Google::Protobuf::Empty.
1375
1419
  # p result
1376
1420
  #
1377
- def fetch_git_ahead_behind request, options = nil
1421
+ def delete_workspace request, options = nil
1378
1422
  raise ::ArgumentError, "request must be provided" if request.nil?
1379
1423
 
1380
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest
1424
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest
1381
1425
 
1382
1426
  # Converts hash and nil to an options object
1383
1427
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1384
1428
 
1385
1429
  # Customize the options with defaults
1386
- call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
1430
+ call_metadata = @config.rpcs.delete_workspace.metadata.to_h
1387
1431
 
1388
1432
  # Set x-goog-api-client and x-goog-user-project headers
1389
1433
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1393,15 +1437,15 @@ module Google
1393
1437
 
1394
1438
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1395
1439
 
1396
- options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout,
1440
+ options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
1397
1441
  metadata: call_metadata,
1398
- retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy
1442
+ retry_policy: @config.rpcs.delete_workspace.retry_policy
1399
1443
 
1400
1444
  options.apply_defaults timeout: @config.timeout,
1401
1445
  metadata: @config.metadata,
1402
1446
  retry_policy: @config.retry_policy
1403
1447
 
1404
- @dataform_stub.fetch_git_ahead_behind request, options do |result, operation|
1448
+ @dataform_stub.delete_workspace request, options do |result, operation|
1405
1449
  yield result, operation if block_given?
1406
1450
  return result
1407
1451
  end
@@ -1410,37 +1454,30 @@ module Google
1410
1454
  end
1411
1455
 
1412
1456
  ##
1413
- # Applies a Git commit for uncommitted files in a Workspace.
1457
+ # Installs dependency NPM packages (inside a Workspace).
1414
1458
  #
1415
- # @overload commit_workspace_changes(request, options = nil)
1416
- # Pass arguments to `commit_workspace_changes` via a request object, either of type
1417
- # {::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest} or an equivalent Hash.
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.
1418
1462
  #
1419
- # @param request [::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest, ::Hash]
1463
+ # @param request [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest, ::Hash]
1420
1464
  # A request object representing the call parameters. Required. To specify no
1421
1465
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1422
1466
  # @param options [::Gapic::CallOptions, ::Hash]
1423
1467
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1424
1468
  #
1425
- # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil)
1426
- # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at
1469
+ # @overload install_npm_packages(workspace: nil)
1470
+ # Pass arguments to `install_npm_packages` via keyword arguments. Note that at
1427
1471
  # least one keyword argument is required. To specify no parameters, or to keep all
1428
1472
  # the default parameter values, pass an empty Hash as a request object (see above).
1429
1473
  #
1430
- # @param name [::String]
1474
+ # @param workspace [::String]
1431
1475
  # Required. The workspace's name.
1432
- # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1433
- # Required. The commit's author.
1434
- # @param commit_message [::String]
1435
- # Optional. The commit's message.
1436
- # @param paths [::Array<::String>]
1437
- # Optional. Full file paths to commit including filename, rooted at workspace root. If
1438
- # left empty, all files will be committed.
1439
1476
  # @yield [result, operation] Access the result along with the TransportOperation object
1440
- # @yieldparam result [::Google::Protobuf::Empty]
1477
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1441
1478
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1442
1479
  #
1443
- # @return [::Google::Protobuf::Empty]
1480
+ # @return [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1444
1481
  #
1445
1482
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1446
1483
  #
@@ -1451,24 +1488,24 @@ module Google
1451
1488
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1452
1489
  #
1453
1490
  # # Create a request. To set request fields, pass in keyword arguments.
1454
- # request = Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest.new
1491
+ # request = Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest.new
1455
1492
  #
1456
- # # Call the commit_workspace_changes method.
1457
- # result = client.commit_workspace_changes request
1493
+ # # Call the install_npm_packages method.
1494
+ # result = client.install_npm_packages request
1458
1495
  #
1459
- # # The returned object is of type Google::Protobuf::Empty.
1496
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse.
1460
1497
  # p result
1461
1498
  #
1462
- def commit_workspace_changes request, options = nil
1499
+ def install_npm_packages request, options = nil
1463
1500
  raise ::ArgumentError, "request must be provided" if request.nil?
1464
1501
 
1465
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest
1502
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest
1466
1503
 
1467
1504
  # Converts hash and nil to an options object
1468
1505
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1469
1506
 
1470
1507
  # Customize the options with defaults
1471
- call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
1508
+ call_metadata = @config.rpcs.install_npm_packages.metadata.to_h
1472
1509
 
1473
1510
  # Set x-goog-api-client and x-goog-user-project headers
1474
1511
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1478,15 +1515,15 @@ module Google
1478
1515
 
1479
1516
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1480
1517
 
1481
- options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout,
1518
+ options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
1482
1519
  metadata: call_metadata,
1483
- retry_policy: @config.rpcs.commit_workspace_changes.retry_policy
1520
+ retry_policy: @config.rpcs.install_npm_packages.retry_policy
1484
1521
 
1485
1522
  options.apply_defaults timeout: @config.timeout,
1486
1523
  metadata: @config.metadata,
1487
1524
  retry_policy: @config.retry_policy
1488
1525
 
1489
- @dataform_stub.commit_workspace_changes request, options do |result, operation|
1526
+ @dataform_stub.install_npm_packages request, options do |result, operation|
1490
1527
  yield result, operation if block_given?
1491
1528
  return result
1492
1529
  end
@@ -1495,30 +1532,31 @@ module Google
1495
1532
  end
1496
1533
 
1497
1534
  ##
1498
- # Performs a Git reset for uncommitted files in a Workspace.
1535
+ # Pulls Git commits from the Repository's remote into a Workspace.
1499
1536
  #
1500
- # @overload reset_workspace_changes(request, options = nil)
1501
- # Pass arguments to `reset_workspace_changes` via a request object, either of type
1502
- # {::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest} or an equivalent Hash.
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.
1503
1540
  #
1504
- # @param request [::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest, ::Hash]
1541
+ # @param request [::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest, ::Hash]
1505
1542
  # A request object representing the call parameters. Required. To specify no
1506
1543
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1507
1544
  # @param options [::Gapic::CallOptions, ::Hash]
1508
1545
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1509
1546
  #
1510
- # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil)
1511
- # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at
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
1512
1549
  # least one keyword argument is required. To specify no parameters, or to keep all
1513
1550
  # the default parameter values, pass an empty Hash as a request object (see above).
1514
1551
  #
1515
1552
  # @param name [::String]
1516
1553
  # Required. The workspace's name.
1517
- # @param paths [::Array<::String>]
1518
- # Optional. Full file paths to reset back to their committed state including filename,
1519
- # rooted at workspace root. If left empty, all files will be reset.
1520
- # @param clean [::Boolean]
1521
- # Optional. If set to true, untracked files will be deleted.
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.
1522
1560
  # @yield [result, operation] Access the result along with the TransportOperation object
1523
1561
  # @yieldparam result [::Google::Protobuf::Empty]
1524
1562
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1534,24 +1572,24 @@ module Google
1534
1572
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1535
1573
  #
1536
1574
  # # Create a request. To set request fields, pass in keyword arguments.
1537
- # request = Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest.new
1575
+ # request = Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest.new
1538
1576
  #
1539
- # # Call the reset_workspace_changes method.
1540
- # result = client.reset_workspace_changes request
1577
+ # # Call the pull_git_commits method.
1578
+ # result = client.pull_git_commits request
1541
1579
  #
1542
1580
  # # The returned object is of type Google::Protobuf::Empty.
1543
1581
  # p result
1544
1582
  #
1545
- def reset_workspace_changes request, options = nil
1583
+ def pull_git_commits request, options = nil
1546
1584
  raise ::ArgumentError, "request must be provided" if request.nil?
1547
1585
 
1548
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest
1586
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest
1549
1587
 
1550
1588
  # Converts hash and nil to an options object
1551
1589
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1552
1590
 
1553
1591
  # Customize the options with defaults
1554
- call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
1592
+ call_metadata = @config.rpcs.pull_git_commits.metadata.to_h
1555
1593
 
1556
1594
  # Set x-goog-api-client and x-goog-user-project headers
1557
1595
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1561,15 +1599,15 @@ module Google
1561
1599
 
1562
1600
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1563
1601
 
1564
- options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout,
1602
+ options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
1565
1603
  metadata: call_metadata,
1566
- retry_policy: @config.rpcs.reset_workspace_changes.retry_policy
1604
+ retry_policy: @config.rpcs.pull_git_commits.retry_policy
1567
1605
 
1568
1606
  options.apply_defaults timeout: @config.timeout,
1569
1607
  metadata: @config.metadata,
1570
1608
  retry_policy: @config.retry_policy
1571
1609
 
1572
- @dataform_stub.reset_workspace_changes request, options do |result, operation|
1610
+ @dataform_stub.pull_git_commits request, options do |result, operation|
1573
1611
  yield result, operation if block_given?
1574
1612
  return result
1575
1613
  end
@@ -1578,32 +1616,1286 @@ module Google
1578
1616
  end
1579
1617
 
1580
1618
  ##
1581
- # Fetches Git diff for an uncommitted file in a Workspace.
1619
+ # Pushes Git commits from a Workspace to the Repository's remote.
1582
1620
  #
1583
- # @overload fetch_file_diff(request, options = nil)
1584
- # Pass arguments to `fetch_file_diff` via a request object, either of type
1585
- # {::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest} or an equivalent Hash.
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.
1586
1624
  #
1587
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest, ::Hash]
1625
+ # @param request [::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest, ::Hash]
1588
1626
  # A request object representing the call parameters. Required. To specify no
1589
1627
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1590
1628
  # @param options [::Gapic::CallOptions, ::Hash]
1591
1629
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1592
1630
  #
1593
- # @overload fetch_file_diff(workspace: nil, path: nil)
1594
- # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at
1631
+ # @overload push_git_commits(name: nil, remote_branch: nil)
1632
+ # Pass arguments to `push_git_commits` via keyword arguments. Note that at
1595
1633
  # least one keyword argument is required. To specify no parameters, or to keep all
1596
1634
  # the default parameter values, pass an empty Hash as a request object (see above).
1597
1635
  #
1598
- # @param workspace [::String]
1636
+ # @param name [::String]
1599
1637
  # Required. The workspace's name.
1600
- # @param path [::String]
1601
- # Required. The file's full path including filename, relative to the workspace root.
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.
1602
1642
  # @yield [result, operation] Access the result along with the TransportOperation object
1603
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
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
2428
+
2429
+ # Set x-goog-api-client and x-goog-user-project headers
2430
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2431
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2432
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2433
+ transports_version_send: [:rest]
2434
+
2435
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2436
+
2437
+ options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
2438
+ metadata: call_metadata,
2439
+ retry_policy: @config.rpcs.move_directory.retry_policy
2440
+
2441
+ options.apply_defaults timeout: @config.timeout,
2442
+ metadata: @config.metadata,
2443
+ retry_policy: @config.retry_policy
2444
+
2445
+ @dataform_stub.move_directory request, options do |result, operation|
2446
+ yield result, operation if block_given?
2447
+ return result
2448
+ end
2449
+ rescue ::Gapic::Rest::Error => e
2450
+ raise ::Google::Cloud::Error.from_error(e)
2451
+ end
2452
+
2453
+ ##
2454
+ # Returns the contents of a file (inside a Workspace).
2455
+ #
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.
2459
+ #
2460
+ # @param request [::Google::Cloud::Dataform::V1beta1::ReadFileRequest, ::Hash]
2461
+ # A request object representing the call parameters. Required. To specify no
2462
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2463
+ # @param options [::Gapic::CallOptions, ::Hash]
2464
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2465
+ #
2466
+ # @overload read_file(workspace: nil, path: nil)
2467
+ # Pass arguments to `read_file` via keyword arguments. Note that at
2468
+ # least one keyword argument is required. To specify no parameters, or to keep all
2469
+ # the default parameter values, pass an empty Hash as a request object (see above).
2470
+ #
2471
+ # @param workspace [::String]
2472
+ # Required. The workspace's name.
2473
+ # @param path [::String]
2474
+ # Required. The file's full path including filename, relative to the
2475
+ # workspace root.
2476
+ # @yield [result, operation] Access the result along with the TransportOperation object
2477
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
2478
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2479
+ #
2480
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
2481
+ #
2482
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
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
2500
+ raise ::ArgumentError, "request must be provided" if request.nil?
2501
+
2502
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadFileRequest
2503
+
2504
+ # Converts hash and nil to an options object
2505
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2506
+
2507
+ # Customize the options with defaults
2508
+ call_metadata = @config.rpcs.read_file.metadata.to_h
2509
+
2510
+ # Set x-goog-api-client and x-goog-user-project headers
2511
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2512
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2513
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2514
+ transports_version_send: [:rest]
2515
+
2516
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2517
+
2518
+ options.apply_defaults timeout: @config.rpcs.read_file.timeout,
2519
+ metadata: call_metadata,
2520
+ retry_policy: @config.rpcs.read_file.retry_policy
2521
+
2522
+ options.apply_defaults timeout: @config.timeout,
2523
+ metadata: @config.metadata,
2524
+ retry_policy: @config.retry_policy
2525
+
2526
+ @dataform_stub.read_file request, options do |result, operation|
2527
+ yield result, operation if block_given?
2528
+ return result
2529
+ end
2530
+ rescue ::Gapic::Rest::Error => e
2531
+ raise ::Google::Cloud::Error.from_error(e)
2532
+ end
2533
+
2534
+ ##
2535
+ # Deletes a file (inside a Workspace).
2536
+ #
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.
2540
+ #
2541
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveFileRequest, ::Hash]
2542
+ # A request object representing the call parameters. Required. To specify no
2543
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2544
+ # @param options [::Gapic::CallOptions, ::Hash]
2545
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2546
+ #
2547
+ # @overload remove_file(workspace: nil, path: nil)
2548
+ # Pass arguments to `remove_file` via keyword arguments. Note that at
2549
+ # least one keyword argument is required. To specify no parameters, or to keep all
2550
+ # the default parameter values, pass an empty Hash as a request object (see above).
2551
+ #
2552
+ # @param workspace [::String]
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.
2557
+ # @yield [result, operation] Access the result along with the TransportOperation object
2558
+ # @yieldparam result [::Google::Protobuf::Empty]
2559
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2560
+ #
2561
+ # @return [::Google::Protobuf::Empty]
2562
+ #
2563
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
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
2581
+ raise ::ArgumentError, "request must be provided" if request.nil?
2582
+
2583
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveFileRequest
2584
+
2585
+ # Converts hash and nil to an options object
2586
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2587
+
2588
+ # Customize the options with defaults
2589
+ call_metadata = @config.rpcs.remove_file.metadata.to_h
2590
+
2591
+ # Set x-goog-api-client and x-goog-user-project headers
2592
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2593
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2594
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2595
+ transports_version_send: [:rest]
2596
+
2597
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2598
+
2599
+ options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
2600
+ metadata: call_metadata,
2601
+ retry_policy: @config.rpcs.remove_file.retry_policy
2602
+
2603
+ options.apply_defaults timeout: @config.timeout,
2604
+ metadata: @config.metadata,
2605
+ retry_policy: @config.retry_policy
2606
+
2607
+ @dataform_stub.remove_file request, options do |result, operation|
2608
+ yield result, operation if block_given?
2609
+ return result
2610
+ end
2611
+ rescue ::Gapic::Rest::Error => e
2612
+ raise ::Google::Cloud::Error.from_error(e)
2613
+ end
2614
+
2615
+ ##
2616
+ # Moves a file (inside a Workspace) to a new location.
2617
+ #
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.
2621
+ #
2622
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveFileRequest, ::Hash]
2623
+ # A request object representing the call parameters. Required. To specify no
2624
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2625
+ # @param options [::Gapic::CallOptions, ::Hash]
2626
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2627
+ #
2628
+ # @overload move_file(workspace: nil, path: nil, new_path: nil)
2629
+ # Pass arguments to `move_file` via keyword arguments. Note that at
2630
+ # least one keyword argument is required. To specify no parameters, or to keep all
2631
+ # the default parameter values, pass an empty Hash as a request object (see above).
2632
+ #
2633
+ # @param workspace [::String]
2634
+ # Required. The workspace's name.
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.
2641
+ # @yield [result, operation] Access the result along with the TransportOperation object
2642
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
2643
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2644
+ #
2645
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
2646
+ #
2647
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
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
2665
+ raise ::ArgumentError, "request must be provided" if request.nil?
2666
+
2667
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFileRequest
2668
+
2669
+ # Converts hash and nil to an options object
2670
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2671
+
2672
+ # Customize the options with defaults
2673
+ call_metadata = @config.rpcs.move_file.metadata.to_h
2674
+
2675
+ # Set x-goog-api-client and x-goog-user-project headers
2676
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2677
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2678
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2679
+ transports_version_send: [:rest]
2680
+
2681
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2682
+
2683
+ options.apply_defaults timeout: @config.rpcs.move_file.timeout,
2684
+ metadata: call_metadata,
2685
+ retry_policy: @config.rpcs.move_file.retry_policy
2686
+
2687
+ options.apply_defaults timeout: @config.timeout,
2688
+ metadata: @config.metadata,
2689
+ retry_policy: @config.retry_policy
2690
+
2691
+ @dataform_stub.move_file request, options do |result, operation|
2692
+ yield result, operation if block_given?
2693
+ return result
2694
+ end
2695
+ rescue ::Gapic::Rest::Error => e
2696
+ raise ::Google::Cloud::Error.from_error(e)
2697
+ end
2698
+
2699
+ ##
2700
+ # Writes to a file (inside a Workspace).
2701
+ #
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.
2705
+ #
2706
+ # @param request [::Google::Cloud::Dataform::V1beta1::WriteFileRequest, ::Hash]
2707
+ # A request object representing the call parameters. Required. To specify no
2708
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2709
+ # @param options [::Gapic::CallOptions, ::Hash]
2710
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2711
+ #
2712
+ # @overload write_file(workspace: nil, path: nil, contents: nil)
2713
+ # Pass arguments to `write_file` via keyword arguments. Note that at
2714
+ # least one keyword argument is required. To specify no parameters, or to keep all
2715
+ # the default parameter values, pass an empty Hash as a request object (see above).
2716
+ #
2717
+ # @param workspace [::String]
2718
+ # Required. The workspace's name.
2719
+ # @param path [::String]
2720
+ # Required. The file.
2721
+ # @param contents [::String]
2722
+ # Required. The file's contents.
2723
+ # @yield [result, operation] Access the result along with the TransportOperation object
2724
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
2725
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2726
+ #
2727
+ # @return [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
2728
+ #
2729
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
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
2747
+ raise ::ArgumentError, "request must be provided" if request.nil?
2748
+
2749
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::WriteFileRequest
2750
+
2751
+ # Converts hash and nil to an options object
2752
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2753
+
2754
+ # Customize the options with defaults
2755
+ call_metadata = @config.rpcs.write_file.metadata.to_h
2756
+
2757
+ # Set x-goog-api-client and x-goog-user-project headers
2758
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2759
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2760
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2761
+ transports_version_send: [:rest]
2762
+
2763
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2764
+
2765
+ options.apply_defaults timeout: @config.rpcs.write_file.timeout,
2766
+ metadata: call_metadata,
2767
+ retry_policy: @config.rpcs.write_file.retry_policy
2768
+
2769
+ options.apply_defaults timeout: @config.timeout,
2770
+ metadata: @config.metadata,
2771
+ retry_policy: @config.retry_policy
2772
+
2773
+ @dataform_stub.write_file request, options do |result, operation|
2774
+ yield result, operation if block_given?
2775
+ return result
2776
+ end
2777
+ rescue ::Gapic::Rest::Error => e
2778
+ raise ::Google::Cloud::Error.from_error(e)
2779
+ end
2780
+
2781
+ ##
2782
+ # Lists ReleaseConfigs in a given Repository.
2783
+ #
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.
2787
+ #
2788
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest, ::Hash]
2789
+ # A request object representing the call parameters. Required. To specify no
2790
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2791
+ # @param options [::Gapic::CallOptions, ::Hash]
2792
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2793
+ #
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
2796
+ # least one keyword argument is required. To specify no parameters, or to keep all
2797
+ # the default parameter values, pass an empty Hash as a request object (see above).
2798
+ #
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.
2812
+ # @yield [result, operation] Access the result along with the TransportOperation object
2813
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsResponse]
2814
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2815
+ #
2816
+ # @return [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsResponse]
2817
+ #
2818
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
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
2840
+ raise ::ArgumentError, "request must be provided" if request.nil?
2841
+
2842
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest
2843
+
2844
+ # Converts hash and nil to an options object
2845
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2846
+
2847
+ # Customize the options with defaults
2848
+ call_metadata = @config.rpcs.list_release_configs.metadata.to_h
2849
+
2850
+ # Set x-goog-api-client and x-goog-user-project headers
2851
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2852
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2853
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2854
+ transports_version_send: [:rest]
2855
+
2856
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2857
+
2858
+ options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout,
2859
+ metadata: call_metadata,
2860
+ retry_policy: @config.rpcs.list_release_configs.retry_policy
2861
+
2862
+ options.apply_defaults timeout: @config.timeout,
2863
+ metadata: @config.metadata,
2864
+ retry_policy: @config.retry_policy
2865
+
2866
+ @dataform_stub.list_release_configs request, options do |result, operation|
2867
+ yield result, operation if block_given?
2868
+ return result
2869
+ end
2870
+ rescue ::Gapic::Rest::Error => e
2871
+ raise ::Google::Cloud::Error.from_error(e)
2872
+ end
2873
+
2874
+ ##
2875
+ # Fetches a single ReleaseConfig.
2876
+ #
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.
2880
+ #
2881
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest, ::Hash]
2882
+ # A request object representing the call parameters. Required. To specify no
2883
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2884
+ # @param options [::Gapic::CallOptions, ::Hash]
2885
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2886
+ #
2887
+ # @overload get_release_config(name: nil)
2888
+ # Pass arguments to `get_release_config` via keyword arguments. Note that at
2889
+ # least one keyword argument is required. To specify no parameters, or to keep all
2890
+ # the default parameter values, pass an empty Hash as a request object (see above).
2891
+ #
2892
+ # @param name [::String]
2893
+ # Required. The release config's name.
2894
+ # @yield [result, operation] Access the result along with the TransportOperation object
2895
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1604
2896
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1605
2897
  #
1606
- # @return [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2898
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1607
2899
  #
1608
2900
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1609
2901
  #
@@ -1614,24 +2906,24 @@ module Google
1614
2906
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1615
2907
  #
1616
2908
  # # Create a request. To set request fields, pass in keyword arguments.
1617
- # request = Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest.new
2909
+ # request = Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest.new
1618
2910
  #
1619
- # # Call the fetch_file_diff method.
1620
- # result = client.fetch_file_diff request
2911
+ # # Call the get_release_config method.
2912
+ # result = client.get_release_config request
1621
2913
  #
1622
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse.
2914
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
1623
2915
  # p result
1624
2916
  #
1625
- def fetch_file_diff request, options = nil
2917
+ def get_release_config request, options = nil
1626
2918
  raise ::ArgumentError, "request must be provided" if request.nil?
1627
2919
 
1628
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest
2920
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest
1629
2921
 
1630
2922
  # Converts hash and nil to an options object
1631
2923
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1632
2924
 
1633
2925
  # Customize the options with defaults
1634
- call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h
2926
+ call_metadata = @config.rpcs.get_release_config.metadata.to_h
1635
2927
 
1636
2928
  # Set x-goog-api-client and x-goog-user-project headers
1637
2929
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1641,15 +2933,15 @@ module Google
1641
2933
 
1642
2934
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1643
2935
 
1644
- options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout,
2936
+ options.apply_defaults timeout: @config.rpcs.get_release_config.timeout,
1645
2937
  metadata: call_metadata,
1646
- retry_policy: @config.rpcs.fetch_file_diff.retry_policy
2938
+ retry_policy: @config.rpcs.get_release_config.retry_policy
1647
2939
 
1648
2940
  options.apply_defaults timeout: @config.timeout,
1649
2941
  metadata: @config.metadata,
1650
2942
  retry_policy: @config.retry_policy
1651
2943
 
1652
- @dataform_stub.fetch_file_diff request, options do |result, operation|
2944
+ @dataform_stub.get_release_config request, options do |result, operation|
1653
2945
  yield result, operation if block_given?
1654
2946
  return result
1655
2947
  end
@@ -1658,44 +2950,36 @@ module Google
1658
2950
  end
1659
2951
 
1660
2952
  ##
1661
- # Returns the contents of a given Workspace directory.
2953
+ # Creates a new ReleaseConfig in a given Repository.
1662
2954
  #
1663
- # @overload query_directory_contents(request, options = nil)
1664
- # Pass arguments to `query_directory_contents` via a request object, either of type
1665
- # {::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest} or an equivalent 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.
1666
2958
  #
1667
- # @param request [::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest, ::Hash]
2959
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest, ::Hash]
1668
2960
  # A request object representing the call parameters. Required. To specify no
1669
2961
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1670
2962
  # @param options [::Gapic::CallOptions, ::Hash]
1671
2963
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1672
2964
  #
1673
- # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
1674
- # 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
1675
2967
  # least one keyword argument is required. To specify no parameters, or to keep all
1676
2968
  # the default parameter values, pass an empty Hash as a request object (see above).
1677
2969
  #
1678
- # @param workspace [::String]
1679
- # Required. The workspace's name.
1680
- # @param path [::String]
1681
- # Optional. The directory's full path including directory name, relative to the
1682
- # workspace root. If left unset, the workspace root is used.
1683
- # @param page_size [::Integer]
1684
- # Optional. Maximum number of paths to return. The server may return fewer
1685
- # items than requested. If unspecified, the server will pick an appropriate
1686
- # default.
1687
- # @param page_token [::String]
1688
- # Optional. Page token received from a previous `QueryDirectoryContents` call.
1689
- # Provide this to retrieve the subsequent page.
1690
- #
1691
- # When paginating, all other parameters provided to
1692
- # `QueryDirectoryContents` must match the call that provided the page
1693
- # 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.
1694
2978
  # @yield [result, operation] Access the result along with the TransportOperation object
1695
- # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
2979
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1696
2980
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1697
2981
  #
1698
- # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
2982
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1699
2983
  #
1700
2984
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1701
2985
  #
@@ -1706,28 +2990,24 @@ module Google
1706
2990
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1707
2991
  #
1708
2992
  # # Create a request. To set request fields, pass in keyword arguments.
1709
- # request = Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest.new
2993
+ # request = Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest.new
1710
2994
  #
1711
- # # Call the query_directory_contents method.
1712
- # result = client.query_directory_contents request
2995
+ # # Call the create_release_config method.
2996
+ # result = client.create_release_config request
1713
2997
  #
1714
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1715
- # # over elements, and API calls will be issued to fetch pages as needed.
1716
- # result.each do |item|
1717
- # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry.
1718
- # p item
1719
- # end
2998
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
2999
+ # p result
1720
3000
  #
1721
- def query_directory_contents request, options = nil
3001
+ def create_release_config request, options = nil
1722
3002
  raise ::ArgumentError, "request must be provided" if request.nil?
1723
3003
 
1724
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest
3004
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest
1725
3005
 
1726
3006
  # Converts hash and nil to an options object
1727
3007
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1728
3008
 
1729
3009
  # Customize the options with defaults
1730
- call_metadata = @config.rpcs.query_directory_contents.metadata.to_h
3010
+ call_metadata = @config.rpcs.create_release_config.metadata.to_h
1731
3011
 
1732
3012
  # Set x-goog-api-client and x-goog-user-project headers
1733
3013
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1737,16 +3017,15 @@ module Google
1737
3017
 
1738
3018
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1739
3019
 
1740
- options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout,
3020
+ options.apply_defaults timeout: @config.rpcs.create_release_config.timeout,
1741
3021
  metadata: call_metadata,
1742
- retry_policy: @config.rpcs.query_directory_contents.retry_policy
3022
+ retry_policy: @config.rpcs.create_release_config.retry_policy
1743
3023
 
1744
3024
  options.apply_defaults timeout: @config.timeout,
1745
3025
  metadata: @config.metadata,
1746
3026
  retry_policy: @config.retry_policy
1747
3027
 
1748
- @dataform_stub.query_directory_contents request, options do |result, operation|
1749
- 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|
1750
3029
  yield result, operation if block_given?
1751
3030
  return result
1752
3031
  end
@@ -1755,33 +3034,33 @@ module Google
1755
3034
  end
1756
3035
 
1757
3036
  ##
1758
- # Creates a directory inside a Workspace.
3037
+ # Updates a single ReleaseConfig.
1759
3038
  #
1760
- # @overload make_directory(request, options = nil)
1761
- # Pass arguments to `make_directory` via a request object, either of type
1762
- # {::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.
1763
3042
  #
1764
- # @param request [::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest, ::Hash]
3043
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest, ::Hash]
1765
3044
  # A request object representing the call parameters. Required. To specify no
1766
3045
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1767
3046
  # @param options [::Gapic::CallOptions, ::Hash]
1768
3047
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1769
3048
  #
1770
- # @overload make_directory(workspace: nil, path: nil)
1771
- # 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
1772
3051
  # least one keyword argument is required. To specify no parameters, or to keep all
1773
3052
  # the default parameter values, pass an empty Hash as a request object (see above).
1774
3053
  #
1775
- # @param workspace [::String]
1776
- # Required. The workspace's name.
1777
- # @param path [::String]
1778
- # Required. The directory's full path including directory name, relative to the
1779
- # 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.
1780
3059
  # @yield [result, operation] Access the result along with the TransportOperation object
1781
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
3060
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1782
3061
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1783
3062
  #
1784
- # @return [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
3063
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1785
3064
  #
1786
3065
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1787
3066
  #
@@ -1792,24 +3071,24 @@ module Google
1792
3071
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1793
3072
  #
1794
3073
  # # Create a request. To set request fields, pass in keyword arguments.
1795
- # request = Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest.new
3074
+ # request = Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest.new
1796
3075
  #
1797
- # # Call the make_directory method.
1798
- # result = client.make_directory request
3076
+ # # Call the update_release_config method.
3077
+ # result = client.update_release_config request
1799
3078
  #
1800
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse.
3079
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
1801
3080
  # p result
1802
3081
  #
1803
- def make_directory request, options = nil
3082
+ def update_release_config request, options = nil
1804
3083
  raise ::ArgumentError, "request must be provided" if request.nil?
1805
3084
 
1806
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest
3085
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest
1807
3086
 
1808
3087
  # Converts hash and nil to an options object
1809
3088
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1810
3089
 
1811
3090
  # Customize the options with defaults
1812
- call_metadata = @config.rpcs.make_directory.metadata.to_h
3091
+ call_metadata = @config.rpcs.update_release_config.metadata.to_h
1813
3092
 
1814
3093
  # Set x-goog-api-client and x-goog-user-project headers
1815
3094
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1819,15 +3098,15 @@ module Google
1819
3098
 
1820
3099
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1821
3100
 
1822
- options.apply_defaults timeout: @config.rpcs.make_directory.timeout,
3101
+ options.apply_defaults timeout: @config.rpcs.update_release_config.timeout,
1823
3102
  metadata: call_metadata,
1824
- retry_policy: @config.rpcs.make_directory.retry_policy
3103
+ retry_policy: @config.rpcs.update_release_config.retry_policy
1825
3104
 
1826
3105
  options.apply_defaults timeout: @config.timeout,
1827
3106
  metadata: @config.metadata,
1828
3107
  retry_policy: @config.retry_policy
1829
3108
 
1830
- @dataform_stub.make_directory request, options do |result, operation|
3109
+ @dataform_stub.update_release_config request, options do |result, operation|
1831
3110
  yield result, operation if block_given?
1832
3111
  return result
1833
3112
  end
@@ -1836,28 +3115,25 @@ module Google
1836
3115
  end
1837
3116
 
1838
3117
  ##
1839
- # Deletes a directory (inside a Workspace) and all of its contents.
3118
+ # Deletes a single ReleaseConfig.
1840
3119
  #
1841
- # @overload remove_directory(request, options = nil)
1842
- # Pass arguments to `remove_directory` via a request object, either of type
1843
- # {::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.
1844
3123
  #
1845
- # @param request [::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest, ::Hash]
3124
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest, ::Hash]
1846
3125
  # A request object representing the call parameters. Required. To specify no
1847
3126
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1848
3127
  # @param options [::Gapic::CallOptions, ::Hash]
1849
3128
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1850
3129
  #
1851
- # @overload remove_directory(workspace: nil, path: nil)
1852
- # 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
1853
3132
  # least one keyword argument is required. To specify no parameters, or to keep all
1854
3133
  # the default parameter values, pass an empty Hash as a request object (see above).
1855
3134
  #
1856
- # @param workspace [::String]
1857
- # Required. The workspace's name.
1858
- # @param path [::String]
1859
- # Required. The directory's full path including directory name, relative to the
1860
- # workspace root.
3135
+ # @param name [::String]
3136
+ # Required. The release config's name.
1861
3137
  # @yield [result, operation] Access the result along with the TransportOperation object
1862
3138
  # @yieldparam result [::Google::Protobuf::Empty]
1863
3139
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1873,24 +3149,24 @@ module Google
1873
3149
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1874
3150
  #
1875
3151
  # # Create a request. To set request fields, pass in keyword arguments.
1876
- # request = Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest.new
3152
+ # request = Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest.new
1877
3153
  #
1878
- # # Call the remove_directory method.
1879
- # result = client.remove_directory request
3154
+ # # Call the delete_release_config method.
3155
+ # result = client.delete_release_config request
1880
3156
  #
1881
3157
  # # The returned object is of type Google::Protobuf::Empty.
1882
3158
  # p result
1883
3159
  #
1884
- def remove_directory request, options = nil
3160
+ def delete_release_config request, options = nil
1885
3161
  raise ::ArgumentError, "request must be provided" if request.nil?
1886
3162
 
1887
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest
3163
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest
1888
3164
 
1889
3165
  # Converts hash and nil to an options object
1890
3166
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1891
3167
 
1892
3168
  # Customize the options with defaults
1893
- call_metadata = @config.rpcs.remove_directory.metadata.to_h
3169
+ call_metadata = @config.rpcs.delete_release_config.metadata.to_h
1894
3170
 
1895
3171
  # Set x-goog-api-client and x-goog-user-project headers
1896
3172
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1900,15 +3176,15 @@ module Google
1900
3176
 
1901
3177
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1902
3178
 
1903
- options.apply_defaults timeout: @config.rpcs.remove_directory.timeout,
3179
+ options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout,
1904
3180
  metadata: call_metadata,
1905
- retry_policy: @config.rpcs.remove_directory.retry_policy
3181
+ retry_policy: @config.rpcs.delete_release_config.retry_policy
1906
3182
 
1907
3183
  options.apply_defaults timeout: @config.timeout,
1908
3184
  metadata: @config.metadata,
1909
3185
  retry_policy: @config.retry_policy
1910
3186
 
1911
- @dataform_stub.remove_directory request, options do |result, operation|
3187
+ @dataform_stub.delete_release_config request, options do |result, operation|
1912
3188
  yield result, operation if block_given?
1913
3189
  return result
1914
3190
  end
@@ -1917,37 +3193,41 @@ module Google
1917
3193
  end
1918
3194
 
1919
3195
  ##
1920
- # Moves a directory (inside a Workspace), and all of its contents, to a new
1921
- # location.
3196
+ # Lists CompilationResults in a given Repository.
1922
3197
  #
1923
- # @overload move_directory(request, options = nil)
1924
- # Pass arguments to `move_directory` via a request object, either of type
1925
- # {::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.
1926
3201
  #
1927
- # @param request [::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest, ::Hash]
3202
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest, ::Hash]
1928
3203
  # A request object representing the call parameters. Required. To specify no
1929
3204
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1930
3205
  # @param options [::Gapic::CallOptions, ::Hash]
1931
3206
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1932
3207
  #
1933
- # @overload move_directory(workspace: nil, path: nil, new_path: nil)
1934
- # 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
1935
3210
  # least one keyword argument is required. To specify no parameters, or to keep all
1936
3211
  # the default parameter values, pass an empty Hash as a request object (see above).
1937
3212
  #
1938
- # @param workspace [::String]
1939
- # Required. The workspace's name.
1940
- # @param path [::String]
1941
- # Required. The directory's full path including directory name, relative to the
1942
- # workspace root.
1943
- # @param new_path [::String]
1944
- # Required. The new path for the directory including directory name, rooted at
1945
- # 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.
1946
3226
  # @yield [result, operation] Access the result along with the TransportOperation object
1947
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
3227
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1948
3228
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1949
3229
  #
1950
- # @return [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
3230
+ # @return [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1951
3231
  #
1952
3232
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1953
3233
  #
@@ -1958,24 +3238,28 @@ module Google
1958
3238
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
1959
3239
  #
1960
3240
  # # Create a request. To set request fields, pass in keyword arguments.
1961
- # request = Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest.new
3241
+ # request = Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest.new
1962
3242
  #
1963
- # # Call the move_directory method.
1964
- # result = client.move_directory request
3243
+ # # Call the list_compilation_results method.
3244
+ # result = client.list_compilation_results request
1965
3245
  #
1966
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse.
1967
- # p result
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
1968
3252
  #
1969
- def move_directory request, options = nil
3253
+ def list_compilation_results request, options = nil
1970
3254
  raise ::ArgumentError, "request must be provided" if request.nil?
1971
3255
 
1972
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest
3256
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest
1973
3257
 
1974
3258
  # Converts hash and nil to an options object
1975
3259
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1976
3260
 
1977
3261
  # Customize the options with defaults
1978
- call_metadata = @config.rpcs.move_directory.metadata.to_h
3262
+ call_metadata = @config.rpcs.list_compilation_results.metadata.to_h
1979
3263
 
1980
3264
  # Set x-goog-api-client and x-goog-user-project headers
1981
3265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1985,15 +3269,15 @@ module Google
1985
3269
 
1986
3270
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1987
3271
 
1988
- options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
3272
+ options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
1989
3273
  metadata: call_metadata,
1990
- retry_policy: @config.rpcs.move_directory.retry_policy
3274
+ retry_policy: @config.rpcs.list_compilation_results.retry_policy
1991
3275
 
1992
3276
  options.apply_defaults timeout: @config.timeout,
1993
3277
  metadata: @config.metadata,
1994
3278
  retry_policy: @config.retry_policy
1995
3279
 
1996
- @dataform_stub.move_directory request, options do |result, operation|
3280
+ @dataform_stub.list_compilation_results request, options do |result, operation|
1997
3281
  yield result, operation if block_given?
1998
3282
  return result
1999
3283
  end
@@ -2002,32 +3286,30 @@ module Google
2002
3286
  end
2003
3287
 
2004
3288
  ##
2005
- # Returns the contents of a file (inside a Workspace).
3289
+ # Fetches a single CompilationResult.
2006
3290
  #
2007
- # @overload read_file(request, options = nil)
2008
- # Pass arguments to `read_file` via a request object, either of type
2009
- # {::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.
2010
3294
  #
2011
- # @param request [::Google::Cloud::Dataform::V1beta1::ReadFileRequest, ::Hash]
3295
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest, ::Hash]
2012
3296
  # A request object representing the call parameters. Required. To specify no
2013
3297
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2014
3298
  # @param options [::Gapic::CallOptions, ::Hash]
2015
3299
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2016
3300
  #
2017
- # @overload read_file(workspace: nil, path: nil)
2018
- # 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
2019
3303
  # least one keyword argument is required. To specify no parameters, or to keep all
2020
3304
  # the default parameter values, pass an empty Hash as a request object (see above).
2021
3305
  #
2022
- # @param workspace [::String]
2023
- # Required. The workspace's name.
2024
- # @param path [::String]
2025
- # Required. The file's full path including filename, relative to the workspace root.
3306
+ # @param name [::String]
3307
+ # Required. The compilation result's name.
2026
3308
  # @yield [result, operation] Access the result along with the TransportOperation object
2027
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
3309
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2028
3310
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2029
3311
  #
2030
- # @return [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
3312
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2031
3313
  #
2032
3314
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2033
3315
  #
@@ -2038,24 +3320,24 @@ module Google
2038
3320
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2039
3321
  #
2040
3322
  # # Create a request. To set request fields, pass in keyword arguments.
2041
- # request = Google::Cloud::Dataform::V1beta1::ReadFileRequest.new
3323
+ # request = Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest.new
2042
3324
  #
2043
- # # Call the read_file method.
2044
- # result = client.read_file request
3325
+ # # Call the get_compilation_result method.
3326
+ # result = client.get_compilation_result request
2045
3327
  #
2046
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReadFileResponse.
3328
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
2047
3329
  # p result
2048
3330
  #
2049
- def read_file request, options = nil
3331
+ def get_compilation_result request, options = nil
2050
3332
  raise ::ArgumentError, "request must be provided" if request.nil?
2051
3333
 
2052
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadFileRequest
3334
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest
2053
3335
 
2054
3336
  # Converts hash and nil to an options object
2055
3337
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2056
3338
 
2057
3339
  # Customize the options with defaults
2058
- call_metadata = @config.rpcs.read_file.metadata.to_h
3340
+ call_metadata = @config.rpcs.get_compilation_result.metadata.to_h
2059
3341
 
2060
3342
  # Set x-goog-api-client and x-goog-user-project headers
2061
3343
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2065,15 +3347,15 @@ module Google
2065
3347
 
2066
3348
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2067
3349
 
2068
- options.apply_defaults timeout: @config.rpcs.read_file.timeout,
3350
+ options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
2069
3351
  metadata: call_metadata,
2070
- retry_policy: @config.rpcs.read_file.retry_policy
3352
+ retry_policy: @config.rpcs.get_compilation_result.retry_policy
2071
3353
 
2072
3354
  options.apply_defaults timeout: @config.timeout,
2073
3355
  metadata: @config.metadata,
2074
3356
  retry_policy: @config.retry_policy
2075
3357
 
2076
- @dataform_stub.read_file request, options do |result, operation|
3358
+ @dataform_stub.get_compilation_result request, options do |result, operation|
2077
3359
  yield result, operation if block_given?
2078
3360
  return result
2079
3361
  end
@@ -2082,32 +3364,33 @@ module Google
2082
3364
  end
2083
3365
 
2084
3366
  ##
2085
- # Deletes a file (inside a Workspace).
3367
+ # Creates a new CompilationResult in a given project and location.
2086
3368
  #
2087
- # @overload remove_file(request, options = nil)
2088
- # Pass arguments to `remove_file` via a request object, either of type
2089
- # {::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.
2090
3372
  #
2091
- # @param request [::Google::Cloud::Dataform::V1beta1::RemoveFileRequest, ::Hash]
3373
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
2092
3374
  # A request object representing the call parameters. Required. To specify no
2093
3375
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2094
3376
  # @param options [::Gapic::CallOptions, ::Hash]
2095
3377
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2096
3378
  #
2097
- # @overload remove_file(workspace: nil, path: nil)
2098
- # 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
2099
3381
  # least one keyword argument is required. To specify no parameters, or to keep all
2100
3382
  # the default parameter values, pass an empty Hash as a request object (see above).
2101
3383
  #
2102
- # @param workspace [::String]
2103
- # Required. The workspace's name.
2104
- # @param path [::String]
2105
- # 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.
2106
3389
  # @yield [result, operation] Access the result along with the TransportOperation object
2107
- # @yieldparam result [::Google::Protobuf::Empty]
3390
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2108
3391
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2109
3392
  #
2110
- # @return [::Google::Protobuf::Empty]
3393
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2111
3394
  #
2112
3395
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2113
3396
  #
@@ -2118,24 +3401,24 @@ module Google
2118
3401
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2119
3402
  #
2120
3403
  # # Create a request. To set request fields, pass in keyword arguments.
2121
- # request = Google::Cloud::Dataform::V1beta1::RemoveFileRequest.new
3404
+ # request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
2122
3405
  #
2123
- # # Call the remove_file method.
2124
- # result = client.remove_file request
3406
+ # # Call the create_compilation_result method.
3407
+ # result = client.create_compilation_result request
2125
3408
  #
2126
- # # The returned object is of type Google::Protobuf::Empty.
3409
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
2127
3410
  # p result
2128
3411
  #
2129
- def remove_file request, options = nil
3412
+ def create_compilation_result request, options = nil
2130
3413
  raise ::ArgumentError, "request must be provided" if request.nil?
2131
3414
 
2132
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveFileRequest
3415
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
2133
3416
 
2134
3417
  # Converts hash and nil to an options object
2135
3418
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2136
3419
 
2137
3420
  # Customize the options with defaults
2138
- call_metadata = @config.rpcs.remove_file.metadata.to_h
3421
+ call_metadata = @config.rpcs.create_compilation_result.metadata.to_h
2139
3422
 
2140
3423
  # Set x-goog-api-client and x-goog-user-project headers
2141
3424
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2145,15 +3428,15 @@ module Google
2145
3428
 
2146
3429
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2147
3430
 
2148
- options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
3431
+ options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
2149
3432
  metadata: call_metadata,
2150
- retry_policy: @config.rpcs.remove_file.retry_policy
3433
+ retry_policy: @config.rpcs.create_compilation_result.retry_policy
2151
3434
 
2152
3435
  options.apply_defaults timeout: @config.timeout,
2153
3436
  metadata: @config.metadata,
2154
3437
  retry_policy: @config.retry_policy
2155
3438
 
2156
- @dataform_stub.remove_file request, options do |result, operation|
3439
+ @dataform_stub.create_compilation_result request, options do |result, operation|
2157
3440
  yield result, operation if block_given?
2158
3441
  return result
2159
3442
  end
@@ -2162,34 +3445,45 @@ module Google
2162
3445
  end
2163
3446
 
2164
3447
  ##
2165
- # Moves a file (inside a Workspace) to a new location.
3448
+ # Returns CompilationResultActions in a given CompilationResult.
2166
3449
  #
2167
- # @overload move_file(request, options = nil)
2168
- # Pass arguments to `move_file` via a request object, either of type
2169
- # {::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.
2170
3453
  #
2171
- # @param request [::Google::Cloud::Dataform::V1beta1::MoveFileRequest, ::Hash]
3454
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest, ::Hash]
2172
3455
  # A request object representing the call parameters. Required. To specify no
2173
3456
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2174
3457
  # @param options [::Gapic::CallOptions, ::Hash]
2175
3458
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2176
3459
  #
2177
- # @overload move_file(workspace: nil, path: nil, new_path: nil)
2178
- # 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
2179
3462
  # least one keyword argument is required. To specify no parameters, or to keep all
2180
3463
  # the default parameter values, pass an empty Hash as a request object (see above).
2181
3464
  #
2182
- # @param workspace [::String]
2183
- # Required. The workspace's name.
2184
- # @param path [::String]
2185
- # Required. The file's full path including filename, relative to the workspace root.
2186
- # @param new_path [::String]
2187
- # 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.
2188
3482
  # @yield [result, operation] Access the result along with the TransportOperation object
2189
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
3483
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
2190
3484
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2191
3485
  #
2192
- # @return [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
3486
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
2193
3487
  #
2194
3488
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2195
3489
  #
@@ -2200,24 +3494,28 @@ module Google
2200
3494
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2201
3495
  #
2202
3496
  # # Create a request. To set request fields, pass in keyword arguments.
2203
- # request = Google::Cloud::Dataform::V1beta1::MoveFileRequest.new
3497
+ # request = Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest.new
2204
3498
  #
2205
- # # Call the move_file method.
2206
- # result = client.move_file request
3499
+ # # Call the query_compilation_result_actions method.
3500
+ # result = client.query_compilation_result_actions request
2207
3501
  #
2208
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveFileResponse.
2209
- # p result
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
2210
3508
  #
2211
- def move_file request, options = nil
3509
+ def query_compilation_result_actions request, options = nil
2212
3510
  raise ::ArgumentError, "request must be provided" if request.nil?
2213
3511
 
2214
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFileRequest
3512
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest
2215
3513
 
2216
3514
  # Converts hash and nil to an options object
2217
3515
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2218
3516
 
2219
3517
  # Customize the options with defaults
2220
- call_metadata = @config.rpcs.move_file.metadata.to_h
3518
+ call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
2221
3519
 
2222
3520
  # Set x-goog-api-client and x-goog-user-project headers
2223
3521
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2227,15 +3525,16 @@ module Google
2227
3525
 
2228
3526
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2229
3527
 
2230
- options.apply_defaults timeout: @config.rpcs.move_file.timeout,
3528
+ options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
2231
3529
  metadata: call_metadata,
2232
- retry_policy: @config.rpcs.move_file.retry_policy
3530
+ retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy
2233
3531
 
2234
3532
  options.apply_defaults timeout: @config.timeout,
2235
3533
  metadata: @config.metadata,
2236
3534
  retry_policy: @config.retry_policy
2237
3535
 
2238
- @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
2239
3538
  yield result, operation if block_given?
2240
3539
  return result
2241
3540
  end
@@ -2244,34 +3543,41 @@ module Google
2244
3543
  end
2245
3544
 
2246
3545
  ##
2247
- # Writes to a file (inside a Workspace).
3546
+ # Lists WorkflowConfigs in a given Repository.
2248
3547
  #
2249
- # @overload write_file(request, options = nil)
2250
- # Pass arguments to `write_file` via a request object, either of type
2251
- # {::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.
2252
3551
  #
2253
- # @param request [::Google::Cloud::Dataform::V1beta1::WriteFileRequest, ::Hash]
3552
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest, ::Hash]
2254
3553
  # A request object representing the call parameters. Required. To specify no
2255
3554
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2256
3555
  # @param options [::Gapic::CallOptions, ::Hash]
2257
3556
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2258
3557
  #
2259
- # @overload write_file(workspace: nil, path: nil, contents: nil)
2260
- # 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
2261
3560
  # least one keyword argument is required. To specify no parameters, or to keep all
2262
3561
  # the default parameter values, pass an empty Hash as a request object (see above).
2263
3562
  #
2264
- # @param workspace [::String]
2265
- # Required. The workspace's name.
2266
- # @param path [::String]
2267
- # Required. The file.
2268
- # @param contents [::String]
2269
- # 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.
2270
3576
  # @yield [result, operation] Access the result along with the TransportOperation object
2271
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
3577
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsResponse]
2272
3578
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2273
3579
  #
2274
- # @return [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
3580
+ # @return [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsResponse]
2275
3581
  #
2276
3582
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2277
3583
  #
@@ -2282,24 +3588,28 @@ module Google
2282
3588
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2283
3589
  #
2284
3590
  # # Create a request. To set request fields, pass in keyword arguments.
2285
- # request = Google::Cloud::Dataform::V1beta1::WriteFileRequest.new
3591
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest.new
2286
3592
  #
2287
- # # Call the write_file method.
2288
- # result = client.write_file request
3593
+ # # Call the list_workflow_configs method.
3594
+ # result = client.list_workflow_configs request
2289
3595
  #
2290
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::WriteFileResponse.
2291
- # p result
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
2292
3602
  #
2293
- def write_file request, options = nil
3603
+ def list_workflow_configs request, options = nil
2294
3604
  raise ::ArgumentError, "request must be provided" if request.nil?
2295
3605
 
2296
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::WriteFileRequest
3606
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest
2297
3607
 
2298
3608
  # Converts hash and nil to an options object
2299
3609
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2300
3610
 
2301
3611
  # Customize the options with defaults
2302
- call_metadata = @config.rpcs.write_file.metadata.to_h
3612
+ call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h
2303
3613
 
2304
3614
  # Set x-goog-api-client and x-goog-user-project headers
2305
3615
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2309,15 +3619,15 @@ module Google
2309
3619
 
2310
3620
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2311
3621
 
2312
- options.apply_defaults timeout: @config.rpcs.write_file.timeout,
3622
+ options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout,
2313
3623
  metadata: call_metadata,
2314
- retry_policy: @config.rpcs.write_file.retry_policy
3624
+ retry_policy: @config.rpcs.list_workflow_configs.retry_policy
2315
3625
 
2316
3626
  options.apply_defaults timeout: @config.timeout,
2317
3627
  metadata: @config.metadata,
2318
3628
  retry_policy: @config.retry_policy
2319
3629
 
2320
- @dataform_stub.write_file request, options do |result, operation|
3630
+ @dataform_stub.list_workflow_configs request, options do |result, operation|
2321
3631
  yield result, operation if block_given?
2322
3632
  return result
2323
3633
  end
@@ -2326,41 +3636,30 @@ module Google
2326
3636
  end
2327
3637
 
2328
3638
  ##
2329
- # Lists CompilationResults in a given Repository.
3639
+ # Fetches a single WorkflowConfig.
2330
3640
  #
2331
- # @overload list_compilation_results(request, options = nil)
2332
- # Pass arguments to `list_compilation_results` via a request object, either of type
2333
- # {::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.
2334
3644
  #
2335
- # @param request [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest, ::Hash]
3645
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest, ::Hash]
2336
3646
  # A request object representing the call parameters. Required. To specify no
2337
3647
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2338
3648
  # @param options [::Gapic::CallOptions, ::Hash]
2339
3649
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2340
3650
  #
2341
- # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil)
2342
- # 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
2343
3653
  # least one keyword argument is required. To specify no parameters, or to keep all
2344
3654
  # the default parameter values, pass an empty Hash as a request object (see above).
2345
3655
  #
2346
- # @param parent [::String]
2347
- # Required. The repository in which to list compilation results. Must be in the
2348
- # format `projects/*/locations/*/repositories/*`.
2349
- # @param page_size [::Integer]
2350
- # Optional. Maximum number of compilation results to return. The server may return
2351
- # fewer items than requested. If unspecified, the server will pick an
2352
- # appropriate default.
2353
- # @param page_token [::String]
2354
- # Optional. Page token received from a previous `ListCompilationResults` call.
2355
- # Provide this to retrieve the subsequent page.
2356
- #
2357
- # When paginating, all other parameters provided to `ListCompilationResults`
2358
- # must match the call that provided the page token.
3656
+ # @param name [::String]
3657
+ # Required. The workflow config's name.
2359
3658
  # @yield [result, operation] Access the result along with the TransportOperation object
2360
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
3659
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2361
3660
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2362
3661
  #
2363
- # @return [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
3662
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2364
3663
  #
2365
3664
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2366
3665
  #
@@ -2371,28 +3670,24 @@ module Google
2371
3670
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2372
3671
  #
2373
3672
  # # Create a request. To set request fields, pass in keyword arguments.
2374
- # request = Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest.new
3673
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest.new
2375
3674
  #
2376
- # # Call the list_compilation_results method.
2377
- # result = client.list_compilation_results request
3675
+ # # Call the get_workflow_config method.
3676
+ # result = client.get_workflow_config request
2378
3677
  #
2379
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2380
- # # over elements, and API calls will be issued to fetch pages as needed.
2381
- # result.each do |item|
2382
- # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResult.
2383
- # p item
2384
- # end
3678
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
3679
+ # p result
2385
3680
  #
2386
- def list_compilation_results request, options = nil
3681
+ def get_workflow_config request, options = nil
2387
3682
  raise ::ArgumentError, "request must be provided" if request.nil?
2388
3683
 
2389
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest
3684
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest
2390
3685
 
2391
3686
  # Converts hash and nil to an options object
2392
3687
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2393
3688
 
2394
3689
  # Customize the options with defaults
2395
- call_metadata = @config.rpcs.list_compilation_results.metadata.to_h
3690
+ call_metadata = @config.rpcs.get_workflow_config.metadata.to_h
2396
3691
 
2397
3692
  # Set x-goog-api-client and x-goog-user-project headers
2398
3693
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2402,15 +3697,15 @@ module Google
2402
3697
 
2403
3698
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2404
3699
 
2405
- options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
3700
+ options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout,
2406
3701
  metadata: call_metadata,
2407
- retry_policy: @config.rpcs.list_compilation_results.retry_policy
3702
+ retry_policy: @config.rpcs.get_workflow_config.retry_policy
2408
3703
 
2409
3704
  options.apply_defaults timeout: @config.timeout,
2410
3705
  metadata: @config.metadata,
2411
3706
  retry_policy: @config.retry_policy
2412
3707
 
2413
- @dataform_stub.list_compilation_results request, options do |result, operation|
3708
+ @dataform_stub.get_workflow_config request, options do |result, operation|
2414
3709
  yield result, operation if block_given?
2415
3710
  return result
2416
3711
  end
@@ -2419,30 +3714,36 @@ module Google
2419
3714
  end
2420
3715
 
2421
3716
  ##
2422
- # Fetches a single CompilationResult.
3717
+ # Creates a new WorkflowConfig in a given Repository.
2423
3718
  #
2424
- # @overload get_compilation_result(request, options = nil)
2425
- # Pass arguments to `get_compilation_result` via a request object, either of type
2426
- # {::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.
2427
3722
  #
2428
- # @param request [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest, ::Hash]
3723
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest, ::Hash]
2429
3724
  # A request object representing the call parameters. Required. To specify no
2430
3725
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2431
3726
  # @param options [::Gapic::CallOptions, ::Hash]
2432
3727
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2433
3728
  #
2434
- # @overload get_compilation_result(name: nil)
2435
- # 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
2436
3731
  # least one keyword argument is required. To specify no parameters, or to keep all
2437
3732
  # the default parameter values, pass an empty Hash as a request object (see above).
2438
3733
  #
2439
- # @param name [::String]
2440
- # 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.
2441
3742
  # @yield [result, operation] Access the result along with the TransportOperation object
2442
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
3743
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2443
3744
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2444
3745
  #
2445
- # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
3746
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2446
3747
  #
2447
3748
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2448
3749
  #
@@ -2453,24 +3754,24 @@ module Google
2453
3754
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2454
3755
  #
2455
3756
  # # Create a request. To set request fields, pass in keyword arguments.
2456
- # request = Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest.new
3757
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest.new
2457
3758
  #
2458
- # # Call the get_compilation_result method.
2459
- # result = client.get_compilation_result request
3759
+ # # Call the create_workflow_config method.
3760
+ # result = client.create_workflow_config request
2460
3761
  #
2461
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
3762
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
2462
3763
  # p result
2463
3764
  #
2464
- def get_compilation_result request, options = nil
3765
+ def create_workflow_config request, options = nil
2465
3766
  raise ::ArgumentError, "request must be provided" if request.nil?
2466
3767
 
2467
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest
3768
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest
2468
3769
 
2469
3770
  # Converts hash and nil to an options object
2470
3771
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2471
3772
 
2472
3773
  # Customize the options with defaults
2473
- call_metadata = @config.rpcs.get_compilation_result.metadata.to_h
3774
+ call_metadata = @config.rpcs.create_workflow_config.metadata.to_h
2474
3775
 
2475
3776
  # Set x-goog-api-client and x-goog-user-project headers
2476
3777
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2480,15 +3781,15 @@ module Google
2480
3781
 
2481
3782
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2482
3783
 
2483
- options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
3784
+ options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout,
2484
3785
  metadata: call_metadata,
2485
- retry_policy: @config.rpcs.get_compilation_result.retry_policy
3786
+ retry_policy: @config.rpcs.create_workflow_config.retry_policy
2486
3787
 
2487
3788
  options.apply_defaults timeout: @config.timeout,
2488
3789
  metadata: @config.metadata,
2489
3790
  retry_policy: @config.retry_policy
2490
3791
 
2491
- @dataform_stub.get_compilation_result request, options do |result, operation|
3792
+ @dataform_stub.create_workflow_config request, options do |result, operation|
2492
3793
  yield result, operation if block_given?
2493
3794
  return result
2494
3795
  end
@@ -2497,33 +3798,33 @@ module Google
2497
3798
  end
2498
3799
 
2499
3800
  ##
2500
- # Creates a new CompilationResult in a given project and location.
3801
+ # Updates a single WorkflowConfig.
2501
3802
  #
2502
- # @overload create_compilation_result(request, options = nil)
2503
- # Pass arguments to `create_compilation_result` via a request object, either of type
2504
- # {::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.
2505
3806
  #
2506
- # @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
3807
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest, ::Hash]
2507
3808
  # A request object representing the call parameters. Required. To specify no
2508
3809
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2509
3810
  # @param options [::Gapic::CallOptions, ::Hash]
2510
3811
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2511
3812
  #
2512
- # @overload create_compilation_result(parent: nil, compilation_result: nil)
2513
- # 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
2514
3815
  # least one keyword argument is required. To specify no parameters, or to keep all
2515
3816
  # the default parameter values, pass an empty Hash as a request object (see above).
2516
3817
  #
2517
- # @param parent [::String]
2518
- # Required. The repository in which to create the compilation result. Must be in the
2519
- # format `projects/*/locations/*/repositories/*`.
2520
- # @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
2521
- # 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.
2522
3823
  # @yield [result, operation] Access the result along with the TransportOperation object
2523
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
3824
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2524
3825
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2525
3826
  #
2526
- # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
3827
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2527
3828
  #
2528
3829
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2529
3830
  #
@@ -2534,24 +3835,24 @@ module Google
2534
3835
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2535
3836
  #
2536
3837
  # # Create a request. To set request fields, pass in keyword arguments.
2537
- # request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
3838
+ # request = Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest.new
2538
3839
  #
2539
- # # Call the create_compilation_result method.
2540
- # result = client.create_compilation_result request
3840
+ # # Call the update_workflow_config method.
3841
+ # result = client.update_workflow_config request
2541
3842
  #
2542
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
3843
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
2543
3844
  # p result
2544
3845
  #
2545
- def create_compilation_result request, options = nil
3846
+ def update_workflow_config request, options = nil
2546
3847
  raise ::ArgumentError, "request must be provided" if request.nil?
2547
3848
 
2548
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
3849
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest
2549
3850
 
2550
3851
  # Converts hash and nil to an options object
2551
3852
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2552
3853
 
2553
3854
  # Customize the options with defaults
2554
- call_metadata = @config.rpcs.create_compilation_result.metadata.to_h
3855
+ call_metadata = @config.rpcs.update_workflow_config.metadata.to_h
2555
3856
 
2556
3857
  # Set x-goog-api-client and x-goog-user-project headers
2557
3858
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2561,15 +3862,15 @@ module Google
2561
3862
 
2562
3863
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2563
3864
 
2564
- options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
3865
+ options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout,
2565
3866
  metadata: call_metadata,
2566
- retry_policy: @config.rpcs.create_compilation_result.retry_policy
3867
+ retry_policy: @config.rpcs.update_workflow_config.retry_policy
2567
3868
 
2568
3869
  options.apply_defaults timeout: @config.timeout,
2569
3870
  metadata: @config.metadata,
2570
3871
  retry_policy: @config.retry_policy
2571
3872
 
2572
- @dataform_stub.create_compilation_result request, options do |result, operation|
3873
+ @dataform_stub.update_workflow_config request, options do |result, operation|
2573
3874
  yield result, operation if block_given?
2574
3875
  return result
2575
3876
  end
@@ -2578,44 +3879,30 @@ module Google
2578
3879
  end
2579
3880
 
2580
3881
  ##
2581
- # Returns CompilationResultActions in a given CompilationResult.
3882
+ # Deletes a single WorkflowConfig.
2582
3883
  #
2583
- # @overload query_compilation_result_actions(request, options = nil)
2584
- # Pass arguments to `query_compilation_result_actions` via a request object, either of type
2585
- # {::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.
2586
3887
  #
2587
- # @param request [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest, ::Hash]
3888
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest, ::Hash]
2588
3889
  # A request object representing the call parameters. Required. To specify no
2589
3890
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2590
3891
  # @param options [::Gapic::CallOptions, ::Hash]
2591
3892
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2592
3893
  #
2593
- # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil)
2594
- # 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
2595
3896
  # least one keyword argument is required. To specify no parameters, or to keep all
2596
3897
  # the default parameter values, pass an empty Hash as a request object (see above).
2597
3898
  #
2598
3899
  # @param name [::String]
2599
- # Required. The compilation result's name.
2600
- # @param page_size [::Integer]
2601
- # Optional. Maximum number of compilation results to return. The server may return
2602
- # fewer items than requested. If unspecified, the server will pick an
2603
- # appropriate default.
2604
- # @param page_token [::String]
2605
- # Optional. Page token received from a previous `QueryCompilationResultActions` call.
2606
- # Provide this to retrieve the subsequent page.
2607
- #
2608
- # When paginating, all other parameters provided to
2609
- # `QueryCompilationResultActions` must match the call that provided the page
2610
- # token.
2611
- # @param filter [::String]
2612
- # Optional. Optional filter for the returned list. Filtering is only currently
2613
- # supported on the `file_path` field.
3900
+ # Required. The workflow config's name.
2614
3901
  # @yield [result, operation] Access the result along with the TransportOperation object
2615
- # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
3902
+ # @yieldparam result [::Google::Protobuf::Empty]
2616
3903
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2617
3904
  #
2618
- # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
3905
+ # @return [::Google::Protobuf::Empty]
2619
3906
  #
2620
3907
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2621
3908
  #
@@ -2626,28 +3913,24 @@ module Google
2626
3913
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
2627
3914
  #
2628
3915
  # # Create a request. To set request fields, pass in keyword arguments.
2629
- # request = Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest.new
3916
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest.new
2630
3917
  #
2631
- # # Call the query_compilation_result_actions method.
2632
- # result = client.query_compilation_result_actions request
3918
+ # # Call the delete_workflow_config method.
3919
+ # result = client.delete_workflow_config request
2633
3920
  #
2634
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2635
- # # over elements, and API calls will be issued to fetch pages as needed.
2636
- # result.each do |item|
2637
- # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResultAction.
2638
- # p item
2639
- # end
3921
+ # # The returned object is of type Google::Protobuf::Empty.
3922
+ # p result
2640
3923
  #
2641
- def query_compilation_result_actions request, options = nil
3924
+ def delete_workflow_config request, options = nil
2642
3925
  raise ::ArgumentError, "request must be provided" if request.nil?
2643
3926
 
2644
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest
3927
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest
2645
3928
 
2646
3929
  # Converts hash and nil to an options object
2647
3930
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2648
3931
 
2649
3932
  # Customize the options with defaults
2650
- call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
3933
+ call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h
2651
3934
 
2652
3935
  # Set x-goog-api-client and x-goog-user-project headers
2653
3936
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2657,16 +3940,15 @@ module Google
2657
3940
 
2658
3941
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2659
3942
 
2660
- options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
3943
+ options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout,
2661
3944
  metadata: call_metadata,
2662
- retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy
3945
+ retry_policy: @config.rpcs.delete_workflow_config.retry_policy
2663
3946
 
2664
3947
  options.apply_defaults timeout: @config.timeout,
2665
3948
  metadata: @config.metadata,
2666
3949
  retry_policy: @config.retry_policy
2667
3950
 
2668
- @dataform_stub.query_compilation_result_actions request, options do |result, operation|
2669
- 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|
2670
3952
  yield result, operation if block_given?
2671
3953
  return result
2672
3954
  end
@@ -2687,24 +3969,30 @@ module Google
2687
3969
  # @param options [::Gapic::CallOptions, ::Hash]
2688
3970
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2689
3971
  #
2690
- # @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)
2691
3973
  # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at
2692
3974
  # least one keyword argument is required. To specify no parameters, or to keep all
2693
3975
  # the default parameter values, pass an empty Hash as a request object (see above).
2694
3976
  #
2695
3977
  # @param parent [::String]
2696
- # Required. The parent resource of the WorkflowInvocation type. Must be in the
2697
- # format `projects/*/locations/*/repositories/*`.
3978
+ # Required. The parent resource of the WorkflowInvocation type. Must be in
3979
+ # the format `projects/*/locations/*/repositories/*`.
2698
3980
  # @param page_size [::Integer]
2699
- # Optional. Maximum number of workflow invocations to return. The server may return
2700
- # 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
2701
3983
  # appropriate default.
2702
3984
  # @param page_token [::String]
2703
- # Optional. Page token received from a previous `ListWorkflowInvocations` call.
2704
- # 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.
2705
3987
  #
2706
3988
  # When paginating, all other parameters provided to `ListWorkflowInvocations`
2707
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.
2708
3996
  # @yield [result, operation] Access the result along with the TransportOperation object
2709
3997
  # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
2710
3998
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2864,8 +4152,8 @@ module Google
2864
4152
  # the default parameter values, pass an empty Hash as a request object (see above).
2865
4153
  #
2866
4154
  # @param parent [::String]
2867
- # Required. The repository in which to create the workflow invocation. Must be in the
2868
- # format `projects/*/locations/*/repositories/*`.
4155
+ # Required. The repository in which to create the workflow invocation. Must
4156
+ # be in the format `projects/*/locations/*/repositories/*`.
2869
4157
  # @param workflow_invocation [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation, ::Hash]
2870
4158
  # Required. The workflow invocation resource to create.
2871
4159
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3103,12 +4391,13 @@ module Google
3103
4391
  # @param name [::String]
3104
4392
  # Required. The workflow invocation's name.
3105
4393
  # @param page_size [::Integer]
3106
- # Optional. Maximum number of workflow invocations to return. The server may return
3107
- # 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
3108
4396
  # appropriate default.
3109
4397
  # @param page_token [::String]
3110
- # Optional. Page token received from a previous `QueryWorkflowInvocationActions` call.
3111
- # 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.
3112
4401
  #
3113
4402
  # When paginating, all other parameters provided to
3114
4403
  # `QueryWorkflowInvocationActions` must match the call that provided the page
@@ -3334,6 +4623,31 @@ module Google
3334
4623
  #
3335
4624
  attr_reader :delete_repository
3336
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
+ ##
3337
4651
  # RPC-specific configuration for `fetch_remote_branches`
3338
4652
  # @return [::Gapic::Config::Method]
3339
4653
  #
@@ -3439,6 +4753,31 @@ module Google
3439
4753
  #
3440
4754
  attr_reader :write_file
3441
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
+ ##
3442
4781
  # RPC-specific configuration for `list_compilation_results`
3443
4782
  # @return [::Gapic::Config::Method]
3444
4783
  #
@@ -3459,6 +4798,31 @@ module Google
3459
4798
  #
3460
4799
  attr_reader :query_compilation_result_actions
3461
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
+ ##
3462
4826
  # RPC-specific configuration for `list_workflow_invocations`
3463
4827
  # @return [::Gapic::Config::Method]
3464
4828
  #
@@ -3501,6 +4865,16 @@ module Google
3501
4865
  @update_repository = ::Gapic::Config::Method.new update_repository_config
3502
4866
  delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
3503
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
3504
4878
  fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches
3505
4879
  @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config
3506
4880
  list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces
@@ -3543,6 +4917,16 @@ module Google
3543
4917
  @move_file = ::Gapic::Config::Method.new move_file_config
3544
4918
  write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file
3545
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
3546
4930
  list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results
3547
4931
  @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config
3548
4932
  get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result
@@ -3551,6 +4935,16 @@ module Google
3551
4935
  @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config
3552
4936
  query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions
3553
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
3554
4948
  list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations
3555
4949
  @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config
3556
4950
  get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation