google-cloud-dataform-v1beta1 0.4.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,6 +33,9 @@ module Google
33
33
  # tables in BigQuery.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$"
38
+
36
39
  include Paths
37
40
 
38
41
  # @private
@@ -93,6 +96,15 @@ module Google
93
96
  @config
94
97
  end
95
98
 
99
+ ##
100
+ # The effective universe domain
101
+ #
102
+ # @return [String]
103
+ #
104
+ def universe_domain
105
+ @dataform_stub.universe_domain
106
+ end
107
+
96
108
  ##
97
109
  # Create a new Dataform client object.
98
110
  #
@@ -126,8 +138,9 @@ module Google
126
138
  credentials = @config.credentials
127
139
  # Use self-signed JWT if the endpoint is unchanged from default,
128
140
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
- !@config.endpoint.split(".").first.include?("-")
141
+ enable_self_signed_jwt = @config.endpoint.nil? ||
142
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
143
+ !@config.endpoint.split(".").first.include?("-"))
131
144
  credentials ||= Credentials.default scope: @config.scope,
132
145
  enable_self_signed_jwt: enable_self_signed_jwt
133
146
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -140,18 +153,22 @@ module Google
140
153
  config.credentials = credentials
141
154
  config.quota_project = @quota_project_id
142
155
  config.endpoint = @config.endpoint
156
+ config.universe_domain = @config.universe_domain
143
157
  end
144
158
 
145
159
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
146
160
  config.credentials = credentials
147
161
  config.quota_project = @quota_project_id
148
162
  config.endpoint = @config.endpoint
163
+ config.universe_domain = @config.universe_domain
149
164
  end
150
165
 
151
166
  @dataform_stub = ::Gapic::ServiceStub.new(
152
167
  ::Google::Cloud::Dataform::V1beta1::Dataform::Stub,
153
- credentials: credentials,
154
- endpoint: @config.endpoint,
168
+ credentials: credentials,
169
+ endpoint: @config.endpoint,
170
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
171
+ universe_domain: @config.universe_domain,
155
172
  channel_args: @config.channel_args,
156
173
  interceptors: @config.interceptors,
157
174
  channel_pool_config: @config.channel_pool
@@ -196,9 +213,9 @@ module Google
196
213
  # Required. The location in which to list repositories. Must be in the format
197
214
  # `projects/*/locations/*`.
198
215
  # @param page_size [::Integer]
199
- # Optional. Maximum number of repositories to return. The server may return fewer
200
- # items than requested. If unspecified, the server will pick an appropriate
201
- # default.
216
+ # Optional. Maximum number of repositories to return. The server may return
217
+ # fewer items than requested. If unspecified, the server will pick an
218
+ # appropriate default.
202
219
  # @param page_token [::String]
203
220
  # Optional. Page token received from a previous `ListRepositories` call.
204
221
  # Provide this to retrieve the subsequent page.
@@ -206,9 +223,9 @@ module Google
206
223
  # When paginating, all other parameters provided to `ListRepositories`
207
224
  # must match the call that provided the page token.
208
225
  # @param order_by [::String]
209
- # Optional. This field only supports ordering by `name`. If unspecified, the server
210
- # will choose the ordering. If specified, the default order is ascending for
211
- # the `name` field.
226
+ # Optional. This field only supports ordering by `name`. If unspecified, the
227
+ # server will choose the ordering. If specified, the default order is
228
+ # ascending for the `name` field.
212
229
  # @param filter [::String]
213
230
  # Optional. Filter for the returned list.
214
231
  #
@@ -385,13 +402,13 @@ module Google
385
402
  # the default parameter values, pass an empty Hash as a request object (see above).
386
403
  #
387
404
  # @param parent [::String]
388
- # Required. The location in which to create the repository. Must be in the format
389
- # `projects/*/locations/*`.
405
+ # Required. The location in which to create the repository. Must be in the
406
+ # format `projects/*/locations/*`.
390
407
  # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
391
408
  # Required. The repository to create.
392
409
  # @param repository_id [::String]
393
- # Required. The ID to use for the repository, which will become the final component of
394
- # the repository's resource name.
410
+ # Required. The ID to use for the repository, which will become the final
411
+ # component of the repository's resource name.
395
412
  #
396
413
  # @yield [response, operation] Access the result along with the RPC operation
397
414
  # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Repository]
@@ -476,8 +493,8 @@ module Google
476
493
  # the default parameter values, pass an empty Hash as a request object (see above).
477
494
  #
478
495
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
479
- # Optional. Specifies the fields to be updated in the repository. If left unset,
480
- # all fields will be updated.
496
+ # Optional. Specifies the fields to be updated in the repository. If left
497
+ # unset, all fields will be updated.
481
498
  # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
482
499
  # Required. The repository to update.
483
500
  #
@@ -635,31 +652,41 @@ module Google
635
652
  end
636
653
 
637
654
  ##
638
- # Fetches a Repository's remote branches.
655
+ # Applies a Git commit to a Repository. The Repository must not have a value
656
+ # for `git_remote_settings.url`.
639
657
  #
640
- # @overload fetch_remote_branches(request, options = nil)
641
- # Pass arguments to `fetch_remote_branches` via a request object, either of type
642
- # {::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest} or an equivalent Hash.
658
+ # @overload commit_repository_changes(request, options = nil)
659
+ # Pass arguments to `commit_repository_changes` via a request object, either of type
660
+ # {::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest} or an equivalent Hash.
643
661
  #
644
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest, ::Hash]
662
+ # @param request [::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest, ::Hash]
645
663
  # A request object representing the call parameters. Required. To specify no
646
664
  # parameters, or to keep all the default parameter values, pass an empty Hash.
647
665
  # @param options [::Gapic::CallOptions, ::Hash]
648
666
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
649
667
  #
650
- # @overload fetch_remote_branches(name: nil)
651
- # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at
668
+ # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil)
669
+ # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at
652
670
  # least one keyword argument is required. To specify no parameters, or to keep all
653
671
  # the default parameter values, pass an empty Hash as a request object (see above).
654
672
  #
655
673
  # @param name [::String]
656
674
  # Required. The repository's name.
675
+ # @param commit_metadata [::Google::Cloud::Dataform::V1beta1::CommitMetadata, ::Hash]
676
+ # Required. The changes to commit to the repository.
677
+ # @param required_head_commit_sha [::String]
678
+ # Optional. The commit SHA which must be the repository's current HEAD before
679
+ # applying this commit; otherwise this request will fail. If unset, no
680
+ # validation on the current HEAD commit SHA is performed.
681
+ # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest::FileOperation, ::Hash}]
682
+ # A map to the path of the file to the operation. The path is the full file
683
+ # path including filename, from repository root.
657
684
  #
658
685
  # @yield [response, operation] Access the result along with the RPC operation
659
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
686
+ # @yieldparam response [::Google::Protobuf::Empty]
660
687
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
661
688
  #
662
- # @return [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
689
+ # @return [::Google::Protobuf::Empty]
663
690
  #
664
691
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
665
692
  #
@@ -670,24 +697,24 @@ module Google
670
697
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
671
698
  #
672
699
  # # Create a request. To set request fields, pass in keyword arguments.
673
- # request = Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest.new
700
+ # request = Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest.new
674
701
  #
675
- # # Call the fetch_remote_branches method.
676
- # result = client.fetch_remote_branches request
702
+ # # Call the commit_repository_changes method.
703
+ # result = client.commit_repository_changes request
677
704
  #
678
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse.
705
+ # # The returned object is of type Google::Protobuf::Empty.
679
706
  # p result
680
707
  #
681
- def fetch_remote_branches request, options = nil
708
+ def commit_repository_changes request, options = nil
682
709
  raise ::ArgumentError, "request must be provided" if request.nil?
683
710
 
684
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest
711
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest
685
712
 
686
713
  # Converts hash and nil to an options object
687
714
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
688
715
 
689
716
  # Customize the options with defaults
690
- metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
717
+ metadata = @config.rpcs.commit_repository_changes.metadata.to_h
691
718
 
692
719
  # Set x-goog-api-client and x-goog-user-project headers
693
720
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -703,15 +730,15 @@ module Google
703
730
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
704
731
  metadata[:"x-goog-request-params"] ||= request_params_header
705
732
 
706
- options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
733
+ options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout,
707
734
  metadata: metadata,
708
- retry_policy: @config.rpcs.fetch_remote_branches.retry_policy
735
+ retry_policy: @config.rpcs.commit_repository_changes.retry_policy
709
736
 
710
737
  options.apply_defaults timeout: @config.timeout,
711
738
  metadata: @config.metadata,
712
739
  retry_policy: @config.retry_policy
713
740
 
714
- @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation|
741
+ @dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation|
715
742
  yield response, operation if block_given?
716
743
  return response
717
744
  end
@@ -720,48 +747,37 @@ module Google
720
747
  end
721
748
 
722
749
  ##
723
- # Lists Workspaces in a given Repository.
750
+ # Returns the contents of a file (inside a Repository). The Repository
751
+ # must not have a value for `git_remote_settings.url`.
724
752
  #
725
- # @overload list_workspaces(request, options = nil)
726
- # Pass arguments to `list_workspaces` via a request object, either of type
727
- # {::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest} or an equivalent Hash.
753
+ # @overload read_repository_file(request, options = nil)
754
+ # Pass arguments to `read_repository_file` via a request object, either of type
755
+ # {::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest} or an equivalent Hash.
728
756
  #
729
- # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest, ::Hash]
757
+ # @param request [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest, ::Hash]
730
758
  # A request object representing the call parameters. Required. To specify no
731
759
  # parameters, or to keep all the default parameter values, pass an empty Hash.
732
760
  # @param options [::Gapic::CallOptions, ::Hash]
733
761
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
734
762
  #
735
- # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
736
- # Pass arguments to `list_workspaces` via keyword arguments. Note that at
763
+ # @overload read_repository_file(name: nil, commit_sha: nil, path: nil)
764
+ # Pass arguments to `read_repository_file` via keyword arguments. Note that at
737
765
  # least one keyword argument is required. To specify no parameters, or to keep all
738
766
  # the default parameter values, pass an empty Hash as a request object (see above).
739
767
  #
740
- # @param parent [::String]
741
- # Required. The repository in which to list workspaces. Must be in the
742
- # format `projects/*/locations/*/repositories/*`.
743
- # @param page_size [::Integer]
744
- # Optional. Maximum number of workspaces to return. The server may return fewer
745
- # items than requested. If unspecified, the server will pick an appropriate
746
- # default.
747
- # @param page_token [::String]
748
- # Optional. Page token received from a previous `ListWorkspaces` call.
749
- # Provide this to retrieve the subsequent page.
750
- #
751
- # When paginating, all other parameters provided to `ListWorkspaces`
752
- # must match the call that provided the page token.
753
- # @param order_by [::String]
754
- # Optional. This field only supports ordering by `name`. If unspecified, the server
755
- # will choose the ordering. If specified, the default order is ascending for
756
- # the `name` field.
757
- # @param filter [::String]
758
- # Optional. Filter for the returned list.
768
+ # @param name [::String]
769
+ # Required. The repository's name.
770
+ # @param commit_sha [::String]
771
+ # Optional. The commit SHA for the commit to read from. If unset, the file
772
+ # will be read from HEAD.
773
+ # @param path [::String]
774
+ # Required. Full file path to read including filename, from repository root.
759
775
  #
760
776
  # @yield [response, operation] Access the result along with the RPC operation
761
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::Workspace>]
777
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse]
762
778
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
763
779
  #
764
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::Workspace>]
780
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse]
765
781
  #
766
782
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
767
783
  #
@@ -772,28 +788,24 @@ module Google
772
788
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
773
789
  #
774
790
  # # Create a request. To set request fields, pass in keyword arguments.
775
- # request = Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest.new
791
+ # request = Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest.new
776
792
  #
777
- # # Call the list_workspaces method.
778
- # result = client.list_workspaces request
793
+ # # Call the read_repository_file method.
794
+ # result = client.read_repository_file request
779
795
  #
780
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
781
- # # over elements, and API calls will be issued to fetch pages as needed.
782
- # result.each do |item|
783
- # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Workspace.
784
- # p item
785
- # end
796
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse.
797
+ # p result
786
798
  #
787
- def list_workspaces request, options = nil
799
+ def read_repository_file request, options = nil
788
800
  raise ::ArgumentError, "request must be provided" if request.nil?
789
801
 
790
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest
802
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest
791
803
 
792
804
  # Converts hash and nil to an options object
793
805
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
794
806
 
795
807
  # Customize the options with defaults
796
- metadata = @config.rpcs.list_workspaces.metadata.to_h
808
+ metadata = @config.rpcs.read_repository_file.metadata.to_h
797
809
 
798
810
  # Set x-goog-api-client and x-goog-user-project headers
799
811
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -802,23 +814,22 @@ module Google
802
814
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
815
 
804
816
  header_params = {}
805
- if request.parent
806
- header_params["parent"] = request.parent
817
+ if request.name
818
+ header_params["name"] = request.name
807
819
  end
808
820
 
809
821
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
810
822
  metadata[:"x-goog-request-params"] ||= request_params_header
811
823
 
812
- options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
824
+ options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout,
813
825
  metadata: metadata,
814
- retry_policy: @config.rpcs.list_workspaces.retry_policy
826
+ retry_policy: @config.rpcs.read_repository_file.retry_policy
815
827
 
816
828
  options.apply_defaults timeout: @config.timeout,
817
829
  metadata: @config.metadata,
818
830
  retry_policy: @config.retry_policy
819
831
 
820
- @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation|
821
- response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options
832
+ @dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation|
822
833
  yield response, operation if block_given?
823
834
  return response
824
835
  end
@@ -827,31 +838,50 @@ module Google
827
838
  end
828
839
 
829
840
  ##
830
- # Fetches a single Workspace.
841
+ # Returns the contents of a given Repository directory. The Repository must
842
+ # not have a value for `git_remote_settings.url`.
831
843
  #
832
- # @overload get_workspace(request, options = nil)
833
- # Pass arguments to `get_workspace` via a request object, either of type
834
- # {::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest} or an equivalent Hash.
844
+ # @overload query_repository_directory_contents(request, options = nil)
845
+ # Pass arguments to `query_repository_directory_contents` via a request object, either of type
846
+ # {::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash.
835
847
  #
836
- # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest, ::Hash]
848
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest, ::Hash]
837
849
  # A request object representing the call parameters. Required. To specify no
838
850
  # parameters, or to keep all the default parameter values, pass an empty Hash.
839
851
  # @param options [::Gapic::CallOptions, ::Hash]
840
852
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
841
853
  #
842
- # @overload get_workspace(name: nil)
843
- # Pass arguments to `get_workspace` via keyword arguments. Note that at
854
+ # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil)
855
+ # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at
844
856
  # least one keyword argument is required. To specify no parameters, or to keep all
845
857
  # the default parameter values, pass an empty Hash as a request object (see above).
846
858
  #
847
859
  # @param name [::String]
848
- # Required. The workspace's name.
860
+ # Required. The repository's name.
861
+ # @param commit_sha [::String]
862
+ # Optional. The Commit SHA for the commit to query from. If unset, the
863
+ # directory will be queried from HEAD.
864
+ # @param path [::String]
865
+ # Optional. The directory's full path including directory name, relative to
866
+ # root. If left unset, the root is used.
867
+ # @param page_size [::Integer]
868
+ # Optional. Maximum number of paths to return. The server may return fewer
869
+ # items than requested. If unspecified, the server will pick an appropriate
870
+ # default.
871
+ # @param page_token [::String]
872
+ # Optional. Page token received from a previous
873
+ # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the
874
+ # subsequent page.
875
+ #
876
+ # When paginating, all other parameters provided to
877
+ # `QueryRepositoryDirectoryContents` must match the call that provided the
878
+ # page token.
849
879
  #
850
880
  # @yield [response, operation] Access the result along with the RPC operation
851
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Workspace]
881
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
852
882
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
853
883
  #
854
- # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
884
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
855
885
  #
856
886
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
857
887
  #
@@ -862,24 +892,28 @@ module Google
862
892
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
863
893
  #
864
894
  # # Create a request. To set request fields, pass in keyword arguments.
865
- # request = Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest.new
895
+ # request = Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest.new
866
896
  #
867
- # # Call the get_workspace method.
868
- # result = client.get_workspace request
897
+ # # Call the query_repository_directory_contents method.
898
+ # result = client.query_repository_directory_contents request
869
899
  #
870
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
871
- # p result
900
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
901
+ # # over elements, and API calls will be issued to fetch pages as needed.
902
+ # result.each do |item|
903
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::DirectoryEntry.
904
+ # p item
905
+ # end
872
906
  #
873
- def get_workspace request, options = nil
907
+ def query_repository_directory_contents request, options = nil
874
908
  raise ::ArgumentError, "request must be provided" if request.nil?
875
909
 
876
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest
910
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest
877
911
 
878
912
  # Converts hash and nil to an options object
879
913
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
880
914
 
881
915
  # Customize the options with defaults
882
- metadata = @config.rpcs.get_workspace.metadata.to_h
916
+ metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h
883
917
 
884
918
  # Set x-goog-api-client and x-goog-user-project headers
885
919
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -895,15 +929,16 @@ module Google
895
929
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
896
930
  metadata[:"x-goog-request-params"] ||= request_params_header
897
931
 
898
- options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
932
+ options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout,
899
933
  metadata: metadata,
900
- retry_policy: @config.rpcs.get_workspace.retry_policy
934
+ retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy
901
935
 
902
936
  options.apply_defaults timeout: @config.timeout,
903
937
  metadata: @config.metadata,
904
938
  retry_policy: @config.retry_policy
905
939
 
906
- @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation|
940
+ @dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation|
941
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options
907
942
  yield response, operation if block_given?
908
943
  return response
909
944
  end
@@ -912,37 +947,42 @@ module Google
912
947
  end
913
948
 
914
949
  ##
915
- # Creates a new Workspace in a given Repository.
950
+ # Fetches a Repository's history of commits. The Repository must not have a
951
+ # value for `git_remote_settings.url`.
916
952
  #
917
- # @overload create_workspace(request, options = nil)
918
- # Pass arguments to `create_workspace` via a request object, either of type
919
- # {::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest} or an equivalent Hash.
953
+ # @overload fetch_repository_history(request, options = nil)
954
+ # Pass arguments to `fetch_repository_history` via a request object, either of type
955
+ # {::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest} or an equivalent Hash.
920
956
  #
921
- # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
957
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest, ::Hash]
922
958
  # A request object representing the call parameters. Required. To specify no
923
959
  # parameters, or to keep all the default parameter values, pass an empty Hash.
924
960
  # @param options [::Gapic::CallOptions, ::Hash]
925
961
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
926
962
  #
927
- # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil)
928
- # Pass arguments to `create_workspace` via keyword arguments. Note that at
963
+ # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil)
964
+ # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at
929
965
  # least one keyword argument is required. To specify no parameters, or to keep all
930
966
  # the default parameter values, pass an empty Hash as a request object (see above).
931
967
  #
932
- # @param parent [::String]
933
- # Required. The repository in which to create the workspace. Must be in the format
934
- # `projects/*/locations/*/repositories/*`.
935
- # @param workspace [::Google::Cloud::Dataform::V1beta1::Workspace, ::Hash]
936
- # Required. The workspace to create.
937
- # @param workspace_id [::String]
938
- # Required. The ID to use for the workspace, which will become the final component of
939
- # the workspace's resource name.
968
+ # @param name [::String]
969
+ # Required. The repository's name.
970
+ # @param page_size [::Integer]
971
+ # Optional. Maximum number of commits to return. The server may return fewer
972
+ # items than requested. If unspecified, the server will pick an appropriate
973
+ # default.
974
+ # @param page_token [::String]
975
+ # Optional. Page token received from a previous `FetchRepositoryHistory`
976
+ # call. Provide this to retrieve the subsequent page.
977
+ #
978
+ # When paginating, all other parameters provided to `FetchRepositoryHistory`
979
+ # must match the call that provided the page token.
940
980
  #
941
981
  # @yield [response, operation] Access the result along with the RPC operation
942
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Workspace]
982
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
943
983
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
944
984
  #
945
- # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
985
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
946
986
  #
947
987
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
948
988
  #
@@ -953,24 +993,28 @@ module Google
953
993
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
954
994
  #
955
995
  # # Create a request. To set request fields, pass in keyword arguments.
956
- # request = Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest.new
996
+ # request = Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest.new
957
997
  #
958
- # # Call the create_workspace method.
959
- # result = client.create_workspace request
998
+ # # Call the fetch_repository_history method.
999
+ # result = client.fetch_repository_history request
960
1000
  #
961
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
962
- # p result
1001
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1002
+ # # over elements, and API calls will be issued to fetch pages as needed.
1003
+ # result.each do |item|
1004
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CommitLogEntry.
1005
+ # p item
1006
+ # end
963
1007
  #
964
- def create_workspace request, options = nil
1008
+ def fetch_repository_history request, options = nil
965
1009
  raise ::ArgumentError, "request must be provided" if request.nil?
966
1010
 
967
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
1011
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest
968
1012
 
969
1013
  # Converts hash and nil to an options object
970
1014
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
971
1015
 
972
1016
  # Customize the options with defaults
973
- metadata = @config.rpcs.create_workspace.metadata.to_h
1017
+ metadata = @config.rpcs.fetch_repository_history.metadata.to_h
974
1018
 
975
1019
  # Set x-goog-api-client and x-goog-user-project headers
976
1020
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -979,22 +1023,23 @@ module Google
979
1023
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
980
1024
 
981
1025
  header_params = {}
982
- if request.parent
983
- header_params["parent"] = request.parent
1026
+ if request.name
1027
+ header_params["name"] = request.name
984
1028
  end
985
1029
 
986
1030
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
987
1031
  metadata[:"x-goog-request-params"] ||= request_params_header
988
1032
 
989
- options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
1033
+ options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout,
990
1034
  metadata: metadata,
991
- retry_policy: @config.rpcs.create_workspace.retry_policy
1035
+ retry_policy: @config.rpcs.fetch_repository_history.retry_policy
992
1036
 
993
1037
  options.apply_defaults timeout: @config.timeout,
994
1038
  metadata: @config.metadata,
995
1039
  retry_policy: @config.retry_policy
996
1040
 
997
- @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation|
1041
+ @dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation|
1042
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options
998
1043
  yield response, operation if block_given?
999
1044
  return response
1000
1045
  end
@@ -1003,31 +1048,31 @@ module Google
1003
1048
  end
1004
1049
 
1005
1050
  ##
1006
- # Deletes a single Workspace.
1051
+ # Computes a Repository's Git access token status.
1007
1052
  #
1008
- # @overload delete_workspace(request, options = nil)
1009
- # Pass arguments to `delete_workspace` via a request object, either of type
1010
- # {::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest} or an equivalent Hash.
1053
+ # @overload compute_repository_access_token_status(request, options = nil)
1054
+ # Pass arguments to `compute_repository_access_token_status` via a request object, either of type
1055
+ # {::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash.
1011
1056
  #
1012
- # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest, ::Hash]
1057
+ # @param request [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest, ::Hash]
1013
1058
  # A request object representing the call parameters. Required. To specify no
1014
1059
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1015
1060
  # @param options [::Gapic::CallOptions, ::Hash]
1016
1061
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1017
1062
  #
1018
- # @overload delete_workspace(name: nil)
1019
- # Pass arguments to `delete_workspace` via keyword arguments. Note that at
1063
+ # @overload compute_repository_access_token_status(name: nil)
1064
+ # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at
1020
1065
  # least one keyword argument is required. To specify no parameters, or to keep all
1021
1066
  # the default parameter values, pass an empty Hash as a request object (see above).
1022
1067
  #
1023
1068
  # @param name [::String]
1024
- # Required. The workspace resource's name.
1069
+ # Required. The repository's name.
1025
1070
  #
1026
1071
  # @yield [response, operation] Access the result along with the RPC operation
1027
- # @yieldparam response [::Google::Protobuf::Empty]
1072
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse]
1028
1073
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1029
1074
  #
1030
- # @return [::Google::Protobuf::Empty]
1075
+ # @return [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse]
1031
1076
  #
1032
1077
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1033
1078
  #
@@ -1038,24 +1083,24 @@ module Google
1038
1083
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1039
1084
  #
1040
1085
  # # Create a request. To set request fields, pass in keyword arguments.
1041
- # request = Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest.new
1086
+ # request = Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest.new
1042
1087
  #
1043
- # # Call the delete_workspace method.
1044
- # result = client.delete_workspace request
1088
+ # # Call the compute_repository_access_token_status method.
1089
+ # result = client.compute_repository_access_token_status request
1045
1090
  #
1046
- # # The returned object is of type Google::Protobuf::Empty.
1091
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse.
1047
1092
  # p result
1048
1093
  #
1049
- def delete_workspace request, options = nil
1094
+ def compute_repository_access_token_status request, options = nil
1050
1095
  raise ::ArgumentError, "request must be provided" if request.nil?
1051
1096
 
1052
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest
1097
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest
1053
1098
 
1054
1099
  # Converts hash and nil to an options object
1055
1100
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1056
1101
 
1057
1102
  # Customize the options with defaults
1058
- metadata = @config.rpcs.delete_workspace.metadata.to_h
1103
+ metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h
1059
1104
 
1060
1105
  # Set x-goog-api-client and x-goog-user-project headers
1061
1106
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1071,15 +1116,15 @@ module Google
1071
1116
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1072
1117
  metadata[:"x-goog-request-params"] ||= request_params_header
1073
1118
 
1074
- options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
1119
+ options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout,
1075
1120
  metadata: metadata,
1076
- retry_policy: @config.rpcs.delete_workspace.retry_policy
1121
+ retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy
1077
1122
 
1078
1123
  options.apply_defaults timeout: @config.timeout,
1079
1124
  metadata: @config.metadata,
1080
1125
  retry_policy: @config.retry_policy
1081
1126
 
1082
- @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation|
1127
+ @dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation|
1083
1128
  yield response, operation if block_given?
1084
1129
  return response
1085
1130
  end
@@ -1088,31 +1133,31 @@ module Google
1088
1133
  end
1089
1134
 
1090
1135
  ##
1091
- # Installs dependency NPM packages (inside a Workspace).
1136
+ # Fetches a Repository's remote branches.
1092
1137
  #
1093
- # @overload install_npm_packages(request, options = nil)
1094
- # Pass arguments to `install_npm_packages` via a request object, either of type
1095
- # {::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest} or an equivalent Hash.
1138
+ # @overload fetch_remote_branches(request, options = nil)
1139
+ # Pass arguments to `fetch_remote_branches` via a request object, either of type
1140
+ # {::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest} or an equivalent Hash.
1096
1141
  #
1097
- # @param request [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest, ::Hash]
1142
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest, ::Hash]
1098
1143
  # A request object representing the call parameters. Required. To specify no
1099
1144
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1100
1145
  # @param options [::Gapic::CallOptions, ::Hash]
1101
1146
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1102
1147
  #
1103
- # @overload install_npm_packages(workspace: nil)
1104
- # Pass arguments to `install_npm_packages` via keyword arguments. Note that at
1148
+ # @overload fetch_remote_branches(name: nil)
1149
+ # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at
1105
1150
  # least one keyword argument is required. To specify no parameters, or to keep all
1106
1151
  # the default parameter values, pass an empty Hash as a request object (see above).
1107
1152
  #
1108
- # @param workspace [::String]
1109
- # Required. The workspace's name.
1153
+ # @param name [::String]
1154
+ # Required. The repository's name.
1110
1155
  #
1111
1156
  # @yield [response, operation] Access the result along with the RPC operation
1112
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1157
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
1113
1158
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1114
1159
  #
1115
- # @return [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1160
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
1116
1161
  #
1117
1162
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1118
1163
  #
@@ -1123,24 +1168,24 @@ module Google
1123
1168
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1124
1169
  #
1125
1170
  # # Create a request. To set request fields, pass in keyword arguments.
1126
- # request = Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest.new
1171
+ # request = Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest.new
1127
1172
  #
1128
- # # Call the install_npm_packages method.
1129
- # result = client.install_npm_packages request
1173
+ # # Call the fetch_remote_branches method.
1174
+ # result = client.fetch_remote_branches request
1130
1175
  #
1131
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse.
1176
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse.
1132
1177
  # p result
1133
1178
  #
1134
- def install_npm_packages request, options = nil
1179
+ def fetch_remote_branches request, options = nil
1135
1180
  raise ::ArgumentError, "request must be provided" if request.nil?
1136
1181
 
1137
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest
1182
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest
1138
1183
 
1139
1184
  # Converts hash and nil to an options object
1140
1185
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1141
1186
 
1142
1187
  # Customize the options with defaults
1143
- metadata = @config.rpcs.install_npm_packages.metadata.to_h
1188
+ metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
1144
1189
 
1145
1190
  # Set x-goog-api-client and x-goog-user-project headers
1146
1191
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1149,22 +1194,22 @@ module Google
1149
1194
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1150
1195
 
1151
1196
  header_params = {}
1152
- if request.workspace
1153
- header_params["workspace"] = request.workspace
1197
+ if request.name
1198
+ header_params["name"] = request.name
1154
1199
  end
1155
1200
 
1156
1201
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1157
1202
  metadata[:"x-goog-request-params"] ||= request_params_header
1158
1203
 
1159
- options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
1204
+ options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
1160
1205
  metadata: metadata,
1161
- retry_policy: @config.rpcs.install_npm_packages.retry_policy
1206
+ retry_policy: @config.rpcs.fetch_remote_branches.retry_policy
1162
1207
 
1163
1208
  options.apply_defaults timeout: @config.timeout,
1164
1209
  metadata: @config.metadata,
1165
1210
  retry_policy: @config.retry_policy
1166
1211
 
1167
- @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation|
1212
+ @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation|
1168
1213
  yield response, operation if block_given?
1169
1214
  return response
1170
1215
  end
@@ -1173,37 +1218,48 @@ module Google
1173
1218
  end
1174
1219
 
1175
1220
  ##
1176
- # Pulls Git commits from the Repository's remote into a Workspace.
1221
+ # Lists Workspaces in a given Repository.
1177
1222
  #
1178
- # @overload pull_git_commits(request, options = nil)
1179
- # Pass arguments to `pull_git_commits` via a request object, either of type
1180
- # {::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest} or an equivalent Hash.
1223
+ # @overload list_workspaces(request, options = nil)
1224
+ # Pass arguments to `list_workspaces` via a request object, either of type
1225
+ # {::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest} or an equivalent Hash.
1181
1226
  #
1182
- # @param request [::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest, ::Hash]
1227
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest, ::Hash]
1183
1228
  # A request object representing the call parameters. Required. To specify no
1184
1229
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1185
1230
  # @param options [::Gapic::CallOptions, ::Hash]
1186
1231
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1187
1232
  #
1188
- # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil)
1189
- # Pass arguments to `pull_git_commits` via keyword arguments. Note that at
1233
+ # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
1234
+ # Pass arguments to `list_workspaces` via keyword arguments. Note that at
1190
1235
  # least one keyword argument is required. To specify no parameters, or to keep all
1191
1236
  # the default parameter values, pass an empty Hash as a request object (see above).
1192
1237
  #
1193
- # @param name [::String]
1194
- # Required. The workspace's name.
1195
- # @param remote_branch [::String]
1196
- # Optional. The name of the branch in the Git remote from which to pull commits.
1197
- # If left unset, the repository's default branch name will be used.
1198
- # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1199
- # Required. The author of any merge commit which may be created as a result of merging
1200
- # fetched Git commits into this workspace.
1201
- #
1202
- # @yield [response, operation] Access the result along with the RPC operation
1203
- # @yieldparam response [::Google::Protobuf::Empty]
1204
- # @yieldparam operation [::GRPC::ActiveCall::Operation]
1238
+ # @param parent [::String]
1239
+ # Required. The repository in which to list workspaces. Must be in the
1240
+ # format `projects/*/locations/*/repositories/*`.
1241
+ # @param page_size [::Integer]
1242
+ # Optional. Maximum number of workspaces to return. The server may return
1243
+ # fewer items than requested. If unspecified, the server will pick an
1244
+ # appropriate default.
1245
+ # @param page_token [::String]
1246
+ # Optional. Page token received from a previous `ListWorkspaces` call.
1247
+ # Provide this to retrieve the subsequent page.
1205
1248
  #
1206
- # @return [::Google::Protobuf::Empty]
1249
+ # When paginating, all other parameters provided to `ListWorkspaces`
1250
+ # must match the call that provided the page token.
1251
+ # @param order_by [::String]
1252
+ # Optional. This field only supports ordering by `name`. If unspecified, the
1253
+ # server will choose the ordering. If specified, the default order is
1254
+ # ascending for the `name` field.
1255
+ # @param filter [::String]
1256
+ # Optional. Filter for the returned list.
1257
+ #
1258
+ # @yield [response, operation] Access the result along with the RPC operation
1259
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::Workspace>]
1260
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1261
+ #
1262
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::Workspace>]
1207
1263
  #
1208
1264
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1209
1265
  #
@@ -1214,24 +1270,28 @@ module Google
1214
1270
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1215
1271
  #
1216
1272
  # # Create a request. To set request fields, pass in keyword arguments.
1217
- # request = Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest.new
1273
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest.new
1218
1274
  #
1219
- # # Call the pull_git_commits method.
1220
- # result = client.pull_git_commits request
1275
+ # # Call the list_workspaces method.
1276
+ # result = client.list_workspaces request
1221
1277
  #
1222
- # # The returned object is of type Google::Protobuf::Empty.
1223
- # p result
1278
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1279
+ # # over elements, and API calls will be issued to fetch pages as needed.
1280
+ # result.each do |item|
1281
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Workspace.
1282
+ # p item
1283
+ # end
1224
1284
  #
1225
- def pull_git_commits request, options = nil
1285
+ def list_workspaces request, options = nil
1226
1286
  raise ::ArgumentError, "request must be provided" if request.nil?
1227
1287
 
1228
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest
1288
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest
1229
1289
 
1230
1290
  # Converts hash and nil to an options object
1231
1291
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1232
1292
 
1233
1293
  # Customize the options with defaults
1234
- metadata = @config.rpcs.pull_git_commits.metadata.to_h
1294
+ metadata = @config.rpcs.list_workspaces.metadata.to_h
1235
1295
 
1236
1296
  # Set x-goog-api-client and x-goog-user-project headers
1237
1297
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1240,22 +1300,23 @@ module Google
1240
1300
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1241
1301
 
1242
1302
  header_params = {}
1243
- if request.name
1244
- header_params["name"] = request.name
1303
+ if request.parent
1304
+ header_params["parent"] = request.parent
1245
1305
  end
1246
1306
 
1247
1307
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1248
1308
  metadata[:"x-goog-request-params"] ||= request_params_header
1249
1309
 
1250
- options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
1310
+ options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
1251
1311
  metadata: metadata,
1252
- retry_policy: @config.rpcs.pull_git_commits.retry_policy
1312
+ retry_policy: @config.rpcs.list_workspaces.retry_policy
1253
1313
 
1254
1314
  options.apply_defaults timeout: @config.timeout,
1255
1315
  metadata: @config.metadata,
1256
1316
  retry_policy: @config.retry_policy
1257
1317
 
1258
- @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation|
1318
+ @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation|
1319
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options
1259
1320
  yield response, operation if block_given?
1260
1321
  return response
1261
1322
  end
@@ -1264,34 +1325,31 @@ module Google
1264
1325
  end
1265
1326
 
1266
1327
  ##
1267
- # Pushes Git commits from a Workspace to the Repository's remote.
1328
+ # Fetches a single Workspace.
1268
1329
  #
1269
- # @overload push_git_commits(request, options = nil)
1270
- # Pass arguments to `push_git_commits` via a request object, either of type
1271
- # {::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest} or an equivalent Hash.
1330
+ # @overload get_workspace(request, options = nil)
1331
+ # Pass arguments to `get_workspace` via a request object, either of type
1332
+ # {::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest} or an equivalent Hash.
1272
1333
  #
1273
- # @param request [::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest, ::Hash]
1334
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest, ::Hash]
1274
1335
  # A request object representing the call parameters. Required. To specify no
1275
1336
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1276
1337
  # @param options [::Gapic::CallOptions, ::Hash]
1277
1338
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1278
1339
  #
1279
- # @overload push_git_commits(name: nil, remote_branch: nil)
1280
- # Pass arguments to `push_git_commits` via keyword arguments. Note that at
1340
+ # @overload get_workspace(name: nil)
1341
+ # Pass arguments to `get_workspace` via keyword arguments. Note that at
1281
1342
  # least one keyword argument is required. To specify no parameters, or to keep all
1282
1343
  # the default parameter values, pass an empty Hash as a request object (see above).
1283
1344
  #
1284
1345
  # @param name [::String]
1285
1346
  # Required. The workspace's name.
1286
- # @param remote_branch [::String]
1287
- # Optional. The name of the branch in the Git remote to which commits should be pushed.
1288
- # If left unset, the repository's default branch name will be used.
1289
1347
  #
1290
1348
  # @yield [response, operation] Access the result along with the RPC operation
1291
- # @yieldparam response [::Google::Protobuf::Empty]
1349
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Workspace]
1292
1350
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1293
1351
  #
1294
- # @return [::Google::Protobuf::Empty]
1352
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
1295
1353
  #
1296
1354
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1297
1355
  #
@@ -1302,24 +1360,24 @@ module Google
1302
1360
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1303
1361
  #
1304
1362
  # # Create a request. To set request fields, pass in keyword arguments.
1305
- # request = Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest.new
1363
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest.new
1306
1364
  #
1307
- # # Call the push_git_commits method.
1308
- # result = client.push_git_commits request
1365
+ # # Call the get_workspace method.
1366
+ # result = client.get_workspace request
1309
1367
  #
1310
- # # The returned object is of type Google::Protobuf::Empty.
1368
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
1311
1369
  # p result
1312
1370
  #
1313
- def push_git_commits request, options = nil
1371
+ def get_workspace request, options = nil
1314
1372
  raise ::ArgumentError, "request must be provided" if request.nil?
1315
1373
 
1316
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest
1374
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest
1317
1375
 
1318
1376
  # Converts hash and nil to an options object
1319
1377
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1320
1378
 
1321
1379
  # Customize the options with defaults
1322
- metadata = @config.rpcs.push_git_commits.metadata.to_h
1380
+ metadata = @config.rpcs.get_workspace.metadata.to_h
1323
1381
 
1324
1382
  # Set x-goog-api-client and x-goog-user-project headers
1325
1383
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1335,15 +1393,15 @@ module Google
1335
1393
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1336
1394
  metadata[:"x-goog-request-params"] ||= request_params_header
1337
1395
 
1338
- options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout,
1396
+ options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
1339
1397
  metadata: metadata,
1340
- retry_policy: @config.rpcs.push_git_commits.retry_policy
1398
+ retry_policy: @config.rpcs.get_workspace.retry_policy
1341
1399
 
1342
1400
  options.apply_defaults timeout: @config.timeout,
1343
1401
  metadata: @config.metadata,
1344
1402
  retry_policy: @config.retry_policy
1345
1403
 
1346
- @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation|
1404
+ @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation|
1347
1405
  yield response, operation if block_given?
1348
1406
  return response
1349
1407
  end
@@ -1352,31 +1410,37 @@ module Google
1352
1410
  end
1353
1411
 
1354
1412
  ##
1355
- # Fetches Git statuses for the files in a Workspace.
1413
+ # Creates a new Workspace in a given Repository.
1356
1414
  #
1357
- # @overload fetch_file_git_statuses(request, options = nil)
1358
- # Pass arguments to `fetch_file_git_statuses` via a request object, either of type
1359
- # {::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest} or an equivalent Hash.
1415
+ # @overload create_workspace(request, options = nil)
1416
+ # Pass arguments to `create_workspace` via a request object, either of type
1417
+ # {::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest} or an equivalent Hash.
1360
1418
  #
1361
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest, ::Hash]
1419
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
1362
1420
  # A request object representing the call parameters. Required. To specify no
1363
1421
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1364
1422
  # @param options [::Gapic::CallOptions, ::Hash]
1365
1423
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1366
1424
  #
1367
- # @overload fetch_file_git_statuses(name: nil)
1368
- # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at
1425
+ # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil)
1426
+ # Pass arguments to `create_workspace` via keyword arguments. Note that at
1369
1427
  # least one keyword argument is required. To specify no parameters, or to keep all
1370
1428
  # the default parameter values, pass an empty Hash as a request object (see above).
1371
1429
  #
1372
- # @param name [::String]
1373
- # Required. The workspace's name.
1430
+ # @param parent [::String]
1431
+ # Required. The repository in which to create the workspace. Must be in the
1432
+ # format `projects/*/locations/*/repositories/*`.
1433
+ # @param workspace [::Google::Cloud::Dataform::V1beta1::Workspace, ::Hash]
1434
+ # Required. The workspace to create.
1435
+ # @param workspace_id [::String]
1436
+ # Required. The ID to use for the workspace, which will become the final
1437
+ # component of the workspace's resource name.
1374
1438
  #
1375
1439
  # @yield [response, operation] Access the result along with the RPC operation
1376
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1440
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Workspace]
1377
1441
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1378
1442
  #
1379
- # @return [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1443
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
1380
1444
  #
1381
1445
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1382
1446
  #
@@ -1387,24 +1451,24 @@ module Google
1387
1451
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1388
1452
  #
1389
1453
  # # Create a request. To set request fields, pass in keyword arguments.
1390
- # request = Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest.new
1454
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest.new
1391
1455
  #
1392
- # # Call the fetch_file_git_statuses method.
1393
- # result = client.fetch_file_git_statuses request
1456
+ # # Call the create_workspace method.
1457
+ # result = client.create_workspace request
1394
1458
  #
1395
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse.
1459
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
1396
1460
  # p result
1397
1461
  #
1398
- def fetch_file_git_statuses request, options = nil
1462
+ def create_workspace request, options = nil
1399
1463
  raise ::ArgumentError, "request must be provided" if request.nil?
1400
1464
 
1401
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest
1465
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
1402
1466
 
1403
1467
  # Converts hash and nil to an options object
1404
1468
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1405
1469
 
1406
1470
  # Customize the options with defaults
1407
- metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
1471
+ metadata = @config.rpcs.create_workspace.metadata.to_h
1408
1472
 
1409
1473
  # Set x-goog-api-client and x-goog-user-project headers
1410
1474
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1413,22 +1477,22 @@ module Google
1413
1477
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1414
1478
 
1415
1479
  header_params = {}
1416
- if request.name
1417
- header_params["name"] = request.name
1480
+ if request.parent
1481
+ header_params["parent"] = request.parent
1418
1482
  end
1419
1483
 
1420
1484
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1421
1485
  metadata[:"x-goog-request-params"] ||= request_params_header
1422
1486
 
1423
- options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout,
1487
+ options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
1424
1488
  metadata: metadata,
1425
- retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy
1489
+ retry_policy: @config.rpcs.create_workspace.retry_policy
1426
1490
 
1427
1491
  options.apply_defaults timeout: @config.timeout,
1428
1492
  metadata: @config.metadata,
1429
1493
  retry_policy: @config.retry_policy
1430
1494
 
1431
- @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation|
1495
+ @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation|
1432
1496
  yield response, operation if block_given?
1433
1497
  return response
1434
1498
  end
@@ -1437,35 +1501,31 @@ module Google
1437
1501
  end
1438
1502
 
1439
1503
  ##
1440
- # Fetches Git ahead/behind against a remote branch.
1504
+ # Deletes a single Workspace.
1441
1505
  #
1442
- # @overload fetch_git_ahead_behind(request, options = nil)
1443
- # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type
1444
- # {::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest} or an equivalent Hash.
1506
+ # @overload delete_workspace(request, options = nil)
1507
+ # Pass arguments to `delete_workspace` via a request object, either of type
1508
+ # {::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest} or an equivalent Hash.
1445
1509
  #
1446
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest, ::Hash]
1510
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest, ::Hash]
1447
1511
  # A request object representing the call parameters. Required. To specify no
1448
1512
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1449
1513
  # @param options [::Gapic::CallOptions, ::Hash]
1450
1514
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1451
1515
  #
1452
- # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil)
1453
- # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at
1516
+ # @overload delete_workspace(name: nil)
1517
+ # Pass arguments to `delete_workspace` via keyword arguments. Note that at
1454
1518
  # least one keyword argument is required. To specify no parameters, or to keep all
1455
1519
  # the default parameter values, pass an empty Hash as a request object (see above).
1456
1520
  #
1457
1521
  # @param name [::String]
1458
- # Required. The workspace's name.
1459
- # @param remote_branch [::String]
1460
- # Optional. The name of the branch in the Git remote against which this workspace
1461
- # should be compared. If left unset, the repository's default branch name
1462
- # will be used.
1522
+ # Required. The workspace resource's name.
1463
1523
  #
1464
1524
  # @yield [response, operation] Access the result along with the RPC operation
1465
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1525
+ # @yieldparam response [::Google::Protobuf::Empty]
1466
1526
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1467
1527
  #
1468
- # @return [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1528
+ # @return [::Google::Protobuf::Empty]
1469
1529
  #
1470
1530
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1471
1531
  #
@@ -1476,24 +1536,24 @@ module Google
1476
1536
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1477
1537
  #
1478
1538
  # # Create a request. To set request fields, pass in keyword arguments.
1479
- # request = Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest.new
1539
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest.new
1480
1540
  #
1481
- # # Call the fetch_git_ahead_behind method.
1482
- # result = client.fetch_git_ahead_behind request
1541
+ # # Call the delete_workspace method.
1542
+ # result = client.delete_workspace request
1483
1543
  #
1484
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse.
1544
+ # # The returned object is of type Google::Protobuf::Empty.
1485
1545
  # p result
1486
1546
  #
1487
- def fetch_git_ahead_behind request, options = nil
1547
+ def delete_workspace request, options = nil
1488
1548
  raise ::ArgumentError, "request must be provided" if request.nil?
1489
1549
 
1490
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest
1550
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest
1491
1551
 
1492
1552
  # Converts hash and nil to an options object
1493
1553
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1494
1554
 
1495
1555
  # Customize the options with defaults
1496
- metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
1556
+ metadata = @config.rpcs.delete_workspace.metadata.to_h
1497
1557
 
1498
1558
  # Set x-goog-api-client and x-goog-user-project headers
1499
1559
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1509,15 +1569,15 @@ module Google
1509
1569
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1510
1570
  metadata[:"x-goog-request-params"] ||= request_params_header
1511
1571
 
1512
- options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout,
1572
+ options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
1513
1573
  metadata: metadata,
1514
- retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy
1574
+ retry_policy: @config.rpcs.delete_workspace.retry_policy
1515
1575
 
1516
1576
  options.apply_defaults timeout: @config.timeout,
1517
1577
  metadata: @config.metadata,
1518
1578
  retry_policy: @config.retry_policy
1519
1579
 
1520
- @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation|
1580
+ @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation|
1521
1581
  yield response, operation if block_given?
1522
1582
  return response
1523
1583
  end
@@ -1526,38 +1586,31 @@ module Google
1526
1586
  end
1527
1587
 
1528
1588
  ##
1529
- # Applies a Git commit for uncommitted files in a Workspace.
1589
+ # Installs dependency NPM packages (inside a Workspace).
1530
1590
  #
1531
- # @overload commit_workspace_changes(request, options = nil)
1532
- # Pass arguments to `commit_workspace_changes` via a request object, either of type
1533
- # {::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest} or an equivalent Hash.
1591
+ # @overload install_npm_packages(request, options = nil)
1592
+ # Pass arguments to `install_npm_packages` via a request object, either of type
1593
+ # {::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest} or an equivalent Hash.
1534
1594
  #
1535
- # @param request [::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest, ::Hash]
1595
+ # @param request [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest, ::Hash]
1536
1596
  # A request object representing the call parameters. Required. To specify no
1537
1597
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1538
1598
  # @param options [::Gapic::CallOptions, ::Hash]
1539
1599
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1540
1600
  #
1541
- # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil)
1542
- # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at
1601
+ # @overload install_npm_packages(workspace: nil)
1602
+ # Pass arguments to `install_npm_packages` via keyword arguments. Note that at
1543
1603
  # least one keyword argument is required. To specify no parameters, or to keep all
1544
1604
  # the default parameter values, pass an empty Hash as a request object (see above).
1545
1605
  #
1546
- # @param name [::String]
1606
+ # @param workspace [::String]
1547
1607
  # Required. The workspace's name.
1548
- # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1549
- # Required. The commit's author.
1550
- # @param commit_message [::String]
1551
- # Optional. The commit's message.
1552
- # @param paths [::Array<::String>]
1553
- # Optional. Full file paths to commit including filename, rooted at workspace root. If
1554
- # left empty, all files will be committed.
1555
1608
  #
1556
1609
  # @yield [response, operation] Access the result along with the RPC operation
1557
- # @yieldparam response [::Google::Protobuf::Empty]
1610
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1558
1611
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1559
1612
  #
1560
- # @return [::Google::Protobuf::Empty]
1613
+ # @return [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1561
1614
  #
1562
1615
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1563
1616
  #
@@ -1568,24 +1621,24 @@ module Google
1568
1621
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1569
1622
  #
1570
1623
  # # Create a request. To set request fields, pass in keyword arguments.
1571
- # request = Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest.new
1624
+ # request = Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest.new
1572
1625
  #
1573
- # # Call the commit_workspace_changes method.
1574
- # result = client.commit_workspace_changes request
1626
+ # # Call the install_npm_packages method.
1627
+ # result = client.install_npm_packages request
1575
1628
  #
1576
- # # The returned object is of type Google::Protobuf::Empty.
1629
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse.
1577
1630
  # p result
1578
1631
  #
1579
- def commit_workspace_changes request, options = nil
1632
+ def install_npm_packages request, options = nil
1580
1633
  raise ::ArgumentError, "request must be provided" if request.nil?
1581
1634
 
1582
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest
1635
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest
1583
1636
 
1584
1637
  # Converts hash and nil to an options object
1585
1638
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1586
1639
 
1587
1640
  # Customize the options with defaults
1588
- metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
1641
+ metadata = @config.rpcs.install_npm_packages.metadata.to_h
1589
1642
 
1590
1643
  # Set x-goog-api-client and x-goog-user-project headers
1591
1644
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1594,22 +1647,22 @@ module Google
1594
1647
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1595
1648
 
1596
1649
  header_params = {}
1597
- if request.name
1598
- header_params["name"] = request.name
1650
+ if request.workspace
1651
+ header_params["workspace"] = request.workspace
1599
1652
  end
1600
1653
 
1601
1654
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1602
1655
  metadata[:"x-goog-request-params"] ||= request_params_header
1603
1656
 
1604
- options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout,
1657
+ options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
1605
1658
  metadata: metadata,
1606
- retry_policy: @config.rpcs.commit_workspace_changes.retry_policy
1659
+ retry_policy: @config.rpcs.install_npm_packages.retry_policy
1607
1660
 
1608
1661
  options.apply_defaults timeout: @config.timeout,
1609
1662
  metadata: @config.metadata,
1610
1663
  retry_policy: @config.retry_policy
1611
1664
 
1612
- @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation|
1665
+ @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation|
1613
1666
  yield response, operation if block_given?
1614
1667
  return response
1615
1668
  end
@@ -1618,30 +1671,31 @@ module Google
1618
1671
  end
1619
1672
 
1620
1673
  ##
1621
- # Performs a Git reset for uncommitted files in a Workspace.
1674
+ # Pulls Git commits from the Repository's remote into a Workspace.
1622
1675
  #
1623
- # @overload reset_workspace_changes(request, options = nil)
1624
- # Pass arguments to `reset_workspace_changes` via a request object, either of type
1625
- # {::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest} or an equivalent Hash.
1676
+ # @overload pull_git_commits(request, options = nil)
1677
+ # Pass arguments to `pull_git_commits` via a request object, either of type
1678
+ # {::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest} or an equivalent Hash.
1626
1679
  #
1627
- # @param request [::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest, ::Hash]
1680
+ # @param request [::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest, ::Hash]
1628
1681
  # A request object representing the call parameters. Required. To specify no
1629
1682
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1630
1683
  # @param options [::Gapic::CallOptions, ::Hash]
1631
1684
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1632
1685
  #
1633
- # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil)
1634
- # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at
1686
+ # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil)
1687
+ # Pass arguments to `pull_git_commits` via keyword arguments. Note that at
1635
1688
  # least one keyword argument is required. To specify no parameters, or to keep all
1636
1689
  # the default parameter values, pass an empty Hash as a request object (see above).
1637
1690
  #
1638
1691
  # @param name [::String]
1639
1692
  # Required. The workspace's name.
1640
- # @param paths [::Array<::String>]
1641
- # Optional. Full file paths to reset back to their committed state including filename,
1642
- # rooted at workspace root. If left empty, all files will be reset.
1643
- # @param clean [::Boolean]
1644
- # Optional. If set to true, untracked files will be deleted.
1693
+ # @param remote_branch [::String]
1694
+ # Optional. The name of the branch in the Git remote from which to pull
1695
+ # commits. If left unset, the repository's default branch name will be used.
1696
+ # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1697
+ # Required. The author of any merge commit which may be created as a result
1698
+ # of merging fetched Git commits into this workspace.
1645
1699
  #
1646
1700
  # @yield [response, operation] Access the result along with the RPC operation
1647
1701
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -1658,24 +1712,24 @@ module Google
1658
1712
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1659
1713
  #
1660
1714
  # # Create a request. To set request fields, pass in keyword arguments.
1661
- # request = Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest.new
1715
+ # request = Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest.new
1662
1716
  #
1663
- # # Call the reset_workspace_changes method.
1664
- # result = client.reset_workspace_changes request
1717
+ # # Call the pull_git_commits method.
1718
+ # result = client.pull_git_commits request
1665
1719
  #
1666
1720
  # # The returned object is of type Google::Protobuf::Empty.
1667
1721
  # p result
1668
1722
  #
1669
- def reset_workspace_changes request, options = nil
1723
+ def pull_git_commits request, options = nil
1670
1724
  raise ::ArgumentError, "request must be provided" if request.nil?
1671
1725
 
1672
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest
1726
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest
1673
1727
 
1674
1728
  # Converts hash and nil to an options object
1675
1729
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1676
1730
 
1677
1731
  # Customize the options with defaults
1678
- metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
1732
+ metadata = @config.rpcs.pull_git_commits.metadata.to_h
1679
1733
 
1680
1734
  # Set x-goog-api-client and x-goog-user-project headers
1681
1735
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1691,9 +1745,454 @@ module Google
1691
1745
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1692
1746
  metadata[:"x-goog-request-params"] ||= request_params_header
1693
1747
 
1694
- options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout,
1748
+ options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
1695
1749
  metadata: metadata,
1696
- retry_policy: @config.rpcs.reset_workspace_changes.retry_policy
1750
+ retry_policy: @config.rpcs.pull_git_commits.retry_policy
1751
+
1752
+ options.apply_defaults timeout: @config.timeout,
1753
+ metadata: @config.metadata,
1754
+ retry_policy: @config.retry_policy
1755
+
1756
+ @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation|
1757
+ yield response, operation if block_given?
1758
+ return response
1759
+ end
1760
+ rescue ::GRPC::BadStatus => e
1761
+ raise ::Google::Cloud::Error.from_error(e)
1762
+ end
1763
+
1764
+ ##
1765
+ # Pushes Git commits from a Workspace to the Repository's remote.
1766
+ #
1767
+ # @overload push_git_commits(request, options = nil)
1768
+ # Pass arguments to `push_git_commits` via a request object, either of type
1769
+ # {::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest} or an equivalent Hash.
1770
+ #
1771
+ # @param request [::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest, ::Hash]
1772
+ # A request object representing the call parameters. Required. To specify no
1773
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1774
+ # @param options [::Gapic::CallOptions, ::Hash]
1775
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1776
+ #
1777
+ # @overload push_git_commits(name: nil, remote_branch: nil)
1778
+ # Pass arguments to `push_git_commits` via keyword arguments. Note that at
1779
+ # least one keyword argument is required. To specify no parameters, or to keep all
1780
+ # the default parameter values, pass an empty Hash as a request object (see above).
1781
+ #
1782
+ # @param name [::String]
1783
+ # Required. The workspace's name.
1784
+ # @param remote_branch [::String]
1785
+ # Optional. The name of the branch in the Git remote to which commits should
1786
+ # be pushed. If left unset, the repository's default branch name will be
1787
+ # used.
1788
+ #
1789
+ # @yield [response, operation] Access the result along with the RPC operation
1790
+ # @yieldparam response [::Google::Protobuf::Empty]
1791
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1792
+ #
1793
+ # @return [::Google::Protobuf::Empty]
1794
+ #
1795
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1796
+ #
1797
+ # @example Basic example
1798
+ # require "google/cloud/dataform/v1beta1"
1799
+ #
1800
+ # # Create a client object. The client can be reused for multiple calls.
1801
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1802
+ #
1803
+ # # Create a request. To set request fields, pass in keyword arguments.
1804
+ # request = Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest.new
1805
+ #
1806
+ # # Call the push_git_commits method.
1807
+ # result = client.push_git_commits request
1808
+ #
1809
+ # # The returned object is of type Google::Protobuf::Empty.
1810
+ # p result
1811
+ #
1812
+ def push_git_commits request, options = nil
1813
+ raise ::ArgumentError, "request must be provided" if request.nil?
1814
+
1815
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest
1816
+
1817
+ # Converts hash and nil to an options object
1818
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1819
+
1820
+ # Customize the options with defaults
1821
+ metadata = @config.rpcs.push_git_commits.metadata.to_h
1822
+
1823
+ # Set x-goog-api-client and x-goog-user-project headers
1824
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1825
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1826
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1827
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1828
+
1829
+ header_params = {}
1830
+ if request.name
1831
+ header_params["name"] = request.name
1832
+ end
1833
+
1834
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1835
+ metadata[:"x-goog-request-params"] ||= request_params_header
1836
+
1837
+ options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout,
1838
+ metadata: metadata,
1839
+ retry_policy: @config.rpcs.push_git_commits.retry_policy
1840
+
1841
+ options.apply_defaults timeout: @config.timeout,
1842
+ metadata: @config.metadata,
1843
+ retry_policy: @config.retry_policy
1844
+
1845
+ @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation|
1846
+ yield response, operation if block_given?
1847
+ return response
1848
+ end
1849
+ rescue ::GRPC::BadStatus => e
1850
+ raise ::Google::Cloud::Error.from_error(e)
1851
+ end
1852
+
1853
+ ##
1854
+ # Fetches Git statuses for the files in a Workspace.
1855
+ #
1856
+ # @overload fetch_file_git_statuses(request, options = nil)
1857
+ # Pass arguments to `fetch_file_git_statuses` via a request object, either of type
1858
+ # {::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest} or an equivalent Hash.
1859
+ #
1860
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest, ::Hash]
1861
+ # A request object representing the call parameters. Required. To specify no
1862
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1863
+ # @param options [::Gapic::CallOptions, ::Hash]
1864
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1865
+ #
1866
+ # @overload fetch_file_git_statuses(name: nil)
1867
+ # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at
1868
+ # least one keyword argument is required. To specify no parameters, or to keep all
1869
+ # the default parameter values, pass an empty Hash as a request object (see above).
1870
+ #
1871
+ # @param name [::String]
1872
+ # Required. The workspace's name.
1873
+ #
1874
+ # @yield [response, operation] Access the result along with the RPC operation
1875
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1876
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1877
+ #
1878
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1879
+ #
1880
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1881
+ #
1882
+ # @example Basic example
1883
+ # require "google/cloud/dataform/v1beta1"
1884
+ #
1885
+ # # Create a client object. The client can be reused for multiple calls.
1886
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1887
+ #
1888
+ # # Create a request. To set request fields, pass in keyword arguments.
1889
+ # request = Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest.new
1890
+ #
1891
+ # # Call the fetch_file_git_statuses method.
1892
+ # result = client.fetch_file_git_statuses request
1893
+ #
1894
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse.
1895
+ # p result
1896
+ #
1897
+ def fetch_file_git_statuses request, options = nil
1898
+ raise ::ArgumentError, "request must be provided" if request.nil?
1899
+
1900
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest
1901
+
1902
+ # Converts hash and nil to an options object
1903
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1904
+
1905
+ # Customize the options with defaults
1906
+ metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
1907
+
1908
+ # Set x-goog-api-client and x-goog-user-project headers
1909
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1910
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1911
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1912
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1913
+
1914
+ header_params = {}
1915
+ if request.name
1916
+ header_params["name"] = request.name
1917
+ end
1918
+
1919
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1920
+ metadata[:"x-goog-request-params"] ||= request_params_header
1921
+
1922
+ options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout,
1923
+ metadata: metadata,
1924
+ retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy
1925
+
1926
+ options.apply_defaults timeout: @config.timeout,
1927
+ metadata: @config.metadata,
1928
+ retry_policy: @config.retry_policy
1929
+
1930
+ @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation|
1931
+ yield response, operation if block_given?
1932
+ return response
1933
+ end
1934
+ rescue ::GRPC::BadStatus => e
1935
+ raise ::Google::Cloud::Error.from_error(e)
1936
+ end
1937
+
1938
+ ##
1939
+ # Fetches Git ahead/behind against a remote branch.
1940
+ #
1941
+ # @overload fetch_git_ahead_behind(request, options = nil)
1942
+ # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type
1943
+ # {::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest} or an equivalent Hash.
1944
+ #
1945
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest, ::Hash]
1946
+ # A request object representing the call parameters. Required. To specify no
1947
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1948
+ # @param options [::Gapic::CallOptions, ::Hash]
1949
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1950
+ #
1951
+ # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil)
1952
+ # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at
1953
+ # least one keyword argument is required. To specify no parameters, or to keep all
1954
+ # the default parameter values, pass an empty Hash as a request object (see above).
1955
+ #
1956
+ # @param name [::String]
1957
+ # Required. The workspace's name.
1958
+ # @param remote_branch [::String]
1959
+ # Optional. The name of the branch in the Git remote against which this
1960
+ # workspace should be compared. If left unset, the repository's default
1961
+ # branch name will be used.
1962
+ #
1963
+ # @yield [response, operation] Access the result along with the RPC operation
1964
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1965
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1966
+ #
1967
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1968
+ #
1969
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1970
+ #
1971
+ # @example Basic example
1972
+ # require "google/cloud/dataform/v1beta1"
1973
+ #
1974
+ # # Create a client object. The client can be reused for multiple calls.
1975
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1976
+ #
1977
+ # # Create a request. To set request fields, pass in keyword arguments.
1978
+ # request = Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest.new
1979
+ #
1980
+ # # Call the fetch_git_ahead_behind method.
1981
+ # result = client.fetch_git_ahead_behind request
1982
+ #
1983
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse.
1984
+ # p result
1985
+ #
1986
+ def fetch_git_ahead_behind request, options = nil
1987
+ raise ::ArgumentError, "request must be provided" if request.nil?
1988
+
1989
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest
1990
+
1991
+ # Converts hash and nil to an options object
1992
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1993
+
1994
+ # Customize the options with defaults
1995
+ metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
1996
+
1997
+ # Set x-goog-api-client and x-goog-user-project headers
1998
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1999
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2000
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2001
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2002
+
2003
+ header_params = {}
2004
+ if request.name
2005
+ header_params["name"] = request.name
2006
+ end
2007
+
2008
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2009
+ metadata[:"x-goog-request-params"] ||= request_params_header
2010
+
2011
+ options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout,
2012
+ metadata: metadata,
2013
+ retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy
2014
+
2015
+ options.apply_defaults timeout: @config.timeout,
2016
+ metadata: @config.metadata,
2017
+ retry_policy: @config.retry_policy
2018
+
2019
+ @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation|
2020
+ yield response, operation if block_given?
2021
+ return response
2022
+ end
2023
+ rescue ::GRPC::BadStatus => e
2024
+ raise ::Google::Cloud::Error.from_error(e)
2025
+ end
2026
+
2027
+ ##
2028
+ # Applies a Git commit for uncommitted files in a Workspace.
2029
+ #
2030
+ # @overload commit_workspace_changes(request, options = nil)
2031
+ # Pass arguments to `commit_workspace_changes` via a request object, either of type
2032
+ # {::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest} or an equivalent Hash.
2033
+ #
2034
+ # @param request [::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest, ::Hash]
2035
+ # A request object representing the call parameters. Required. To specify no
2036
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2037
+ # @param options [::Gapic::CallOptions, ::Hash]
2038
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2039
+ #
2040
+ # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil)
2041
+ # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at
2042
+ # least one keyword argument is required. To specify no parameters, or to keep all
2043
+ # the default parameter values, pass an empty Hash as a request object (see above).
2044
+ #
2045
+ # @param name [::String]
2046
+ # Required. The workspace's name.
2047
+ # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
2048
+ # Required. The commit's author.
2049
+ # @param commit_message [::String]
2050
+ # Optional. The commit's message.
2051
+ # @param paths [::Array<::String>]
2052
+ # Optional. Full file paths to commit including filename, rooted at workspace
2053
+ # root. If left empty, all files will be committed.
2054
+ #
2055
+ # @yield [response, operation] Access the result along with the RPC operation
2056
+ # @yieldparam response [::Google::Protobuf::Empty]
2057
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2058
+ #
2059
+ # @return [::Google::Protobuf::Empty]
2060
+ #
2061
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2062
+ #
2063
+ # @example Basic example
2064
+ # require "google/cloud/dataform/v1beta1"
2065
+ #
2066
+ # # Create a client object. The client can be reused for multiple calls.
2067
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2068
+ #
2069
+ # # Create a request. To set request fields, pass in keyword arguments.
2070
+ # request = Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest.new
2071
+ #
2072
+ # # Call the commit_workspace_changes method.
2073
+ # result = client.commit_workspace_changes request
2074
+ #
2075
+ # # The returned object is of type Google::Protobuf::Empty.
2076
+ # p result
2077
+ #
2078
+ def commit_workspace_changes request, options = nil
2079
+ raise ::ArgumentError, "request must be provided" if request.nil?
2080
+
2081
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest
2082
+
2083
+ # Converts hash and nil to an options object
2084
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2085
+
2086
+ # Customize the options with defaults
2087
+ metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
2088
+
2089
+ # Set x-goog-api-client and x-goog-user-project headers
2090
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2091
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2092
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2093
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2094
+
2095
+ header_params = {}
2096
+ if request.name
2097
+ header_params["name"] = request.name
2098
+ end
2099
+
2100
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2101
+ metadata[:"x-goog-request-params"] ||= request_params_header
2102
+
2103
+ options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout,
2104
+ metadata: metadata,
2105
+ retry_policy: @config.rpcs.commit_workspace_changes.retry_policy
2106
+
2107
+ options.apply_defaults timeout: @config.timeout,
2108
+ metadata: @config.metadata,
2109
+ retry_policy: @config.retry_policy
2110
+
2111
+ @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation|
2112
+ yield response, operation if block_given?
2113
+ return response
2114
+ end
2115
+ rescue ::GRPC::BadStatus => e
2116
+ raise ::Google::Cloud::Error.from_error(e)
2117
+ end
2118
+
2119
+ ##
2120
+ # Performs a Git reset for uncommitted files in a Workspace.
2121
+ #
2122
+ # @overload reset_workspace_changes(request, options = nil)
2123
+ # Pass arguments to `reset_workspace_changes` via a request object, either of type
2124
+ # {::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest} or an equivalent Hash.
2125
+ #
2126
+ # @param request [::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest, ::Hash]
2127
+ # A request object representing the call parameters. Required. To specify no
2128
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2129
+ # @param options [::Gapic::CallOptions, ::Hash]
2130
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2131
+ #
2132
+ # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil)
2133
+ # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at
2134
+ # least one keyword argument is required. To specify no parameters, or to keep all
2135
+ # the default parameter values, pass an empty Hash as a request object (see above).
2136
+ #
2137
+ # @param name [::String]
2138
+ # Required. The workspace's name.
2139
+ # @param paths [::Array<::String>]
2140
+ # Optional. Full file paths to reset back to their committed state including
2141
+ # filename, rooted at workspace root. If left empty, all files will be reset.
2142
+ # @param clean [::Boolean]
2143
+ # Optional. If set to true, untracked files will be deleted.
2144
+ #
2145
+ # @yield [response, operation] Access the result along with the RPC operation
2146
+ # @yieldparam response [::Google::Protobuf::Empty]
2147
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2148
+ #
2149
+ # @return [::Google::Protobuf::Empty]
2150
+ #
2151
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2152
+ #
2153
+ # @example Basic example
2154
+ # require "google/cloud/dataform/v1beta1"
2155
+ #
2156
+ # # Create a client object. The client can be reused for multiple calls.
2157
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2158
+ #
2159
+ # # Create a request. To set request fields, pass in keyword arguments.
2160
+ # request = Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest.new
2161
+ #
2162
+ # # Call the reset_workspace_changes method.
2163
+ # result = client.reset_workspace_changes request
2164
+ #
2165
+ # # The returned object is of type Google::Protobuf::Empty.
2166
+ # p result
2167
+ #
2168
+ def reset_workspace_changes request, options = nil
2169
+ raise ::ArgumentError, "request must be provided" if request.nil?
2170
+
2171
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest
2172
+
2173
+ # Converts hash and nil to an options object
2174
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2175
+
2176
+ # Customize the options with defaults
2177
+ metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
2178
+
2179
+ # Set x-goog-api-client and x-goog-user-project headers
2180
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2181
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2182
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2183
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2184
+
2185
+ header_params = {}
2186
+ if request.name
2187
+ header_params["name"] = request.name
2188
+ end
2189
+
2190
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2191
+ metadata[:"x-goog-request-params"] ||= request_params_header
2192
+
2193
+ options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout,
2194
+ metadata: metadata,
2195
+ retry_policy: @config.rpcs.reset_workspace_changes.retry_policy
1697
2196
 
1698
2197
  options.apply_defaults timeout: @config.timeout,
1699
2198
  metadata: @config.metadata,
@@ -1708,33 +2207,762 @@ module Google
1708
2207
  end
1709
2208
 
1710
2209
  ##
1711
- # Fetches Git diff for an uncommitted file in a Workspace.
2210
+ # Fetches Git diff for an uncommitted file in a Workspace.
2211
+ #
2212
+ # @overload fetch_file_diff(request, options = nil)
2213
+ # Pass arguments to `fetch_file_diff` via a request object, either of type
2214
+ # {::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest} or an equivalent Hash.
2215
+ #
2216
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest, ::Hash]
2217
+ # A request object representing the call parameters. Required. To specify no
2218
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2219
+ # @param options [::Gapic::CallOptions, ::Hash]
2220
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2221
+ #
2222
+ # @overload fetch_file_diff(workspace: nil, path: nil)
2223
+ # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at
2224
+ # least one keyword argument is required. To specify no parameters, or to keep all
2225
+ # the default parameter values, pass an empty Hash as a request object (see above).
2226
+ #
2227
+ # @param workspace [::String]
2228
+ # Required. The workspace's name.
2229
+ # @param path [::String]
2230
+ # Required. The file's full path including filename, relative to the
2231
+ # workspace root.
2232
+ #
2233
+ # @yield [response, operation] Access the result along with the RPC operation
2234
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2235
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2236
+ #
2237
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2238
+ #
2239
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2240
+ #
2241
+ # @example Basic example
2242
+ # require "google/cloud/dataform/v1beta1"
2243
+ #
2244
+ # # Create a client object. The client can be reused for multiple calls.
2245
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2246
+ #
2247
+ # # Create a request. To set request fields, pass in keyword arguments.
2248
+ # request = Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest.new
2249
+ #
2250
+ # # Call the fetch_file_diff method.
2251
+ # result = client.fetch_file_diff request
2252
+ #
2253
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse.
2254
+ # p result
2255
+ #
2256
+ def fetch_file_diff request, options = nil
2257
+ raise ::ArgumentError, "request must be provided" if request.nil?
2258
+
2259
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest
2260
+
2261
+ # Converts hash and nil to an options object
2262
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2263
+
2264
+ # Customize the options with defaults
2265
+ metadata = @config.rpcs.fetch_file_diff.metadata.to_h
2266
+
2267
+ # Set x-goog-api-client and x-goog-user-project headers
2268
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2269
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2270
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2271
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2272
+
2273
+ header_params = {}
2274
+ if request.workspace
2275
+ header_params["workspace"] = request.workspace
2276
+ end
2277
+
2278
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2279
+ metadata[:"x-goog-request-params"] ||= request_params_header
2280
+
2281
+ options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout,
2282
+ metadata: metadata,
2283
+ retry_policy: @config.rpcs.fetch_file_diff.retry_policy
2284
+
2285
+ options.apply_defaults timeout: @config.timeout,
2286
+ metadata: @config.metadata,
2287
+ retry_policy: @config.retry_policy
2288
+
2289
+ @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation|
2290
+ yield response, operation if block_given?
2291
+ return response
2292
+ end
2293
+ rescue ::GRPC::BadStatus => e
2294
+ raise ::Google::Cloud::Error.from_error(e)
2295
+ end
2296
+
2297
+ ##
2298
+ # Returns the contents of a given Workspace directory.
2299
+ #
2300
+ # @overload query_directory_contents(request, options = nil)
2301
+ # Pass arguments to `query_directory_contents` via a request object, either of type
2302
+ # {::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest} or an equivalent Hash.
2303
+ #
2304
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest, ::Hash]
2305
+ # A request object representing the call parameters. Required. To specify no
2306
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2307
+ # @param options [::Gapic::CallOptions, ::Hash]
2308
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2309
+ #
2310
+ # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
2311
+ # Pass arguments to `query_directory_contents` via keyword arguments. Note that at
2312
+ # least one keyword argument is required. To specify no parameters, or to keep all
2313
+ # the default parameter values, pass an empty Hash as a request object (see above).
2314
+ #
2315
+ # @param workspace [::String]
2316
+ # Required. The workspace's name.
2317
+ # @param path [::String]
2318
+ # Optional. The directory's full path including directory name, relative to
2319
+ # the workspace root. If left unset, the workspace root is used.
2320
+ # @param page_size [::Integer]
2321
+ # Optional. Maximum number of paths to return. The server may return fewer
2322
+ # items than requested. If unspecified, the server will pick an appropriate
2323
+ # default.
2324
+ # @param page_token [::String]
2325
+ # Optional. Page token received from a previous `QueryDirectoryContents`
2326
+ # call. Provide this to retrieve the subsequent page.
2327
+ #
2328
+ # When paginating, all other parameters provided to
2329
+ # `QueryDirectoryContents` must match the call that provided the page
2330
+ # token.
2331
+ #
2332
+ # @yield [response, operation] Access the result along with the RPC operation
2333
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
2334
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2335
+ #
2336
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
2337
+ #
2338
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2339
+ #
2340
+ # @example Basic example
2341
+ # require "google/cloud/dataform/v1beta1"
2342
+ #
2343
+ # # Create a client object. The client can be reused for multiple calls.
2344
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2345
+ #
2346
+ # # Create a request. To set request fields, pass in keyword arguments.
2347
+ # request = Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest.new
2348
+ #
2349
+ # # Call the query_directory_contents method.
2350
+ # result = client.query_directory_contents request
2351
+ #
2352
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2353
+ # # over elements, and API calls will be issued to fetch pages as needed.
2354
+ # result.each do |item|
2355
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::DirectoryEntry.
2356
+ # p item
2357
+ # end
2358
+ #
2359
+ def query_directory_contents request, options = nil
2360
+ raise ::ArgumentError, "request must be provided" if request.nil?
2361
+
2362
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest
2363
+
2364
+ # Converts hash and nil to an options object
2365
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2366
+
2367
+ # Customize the options with defaults
2368
+ metadata = @config.rpcs.query_directory_contents.metadata.to_h
2369
+
2370
+ # Set x-goog-api-client and x-goog-user-project headers
2371
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2372
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2373
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2374
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2375
+
2376
+ header_params = {}
2377
+ if request.workspace
2378
+ header_params["workspace"] = request.workspace
2379
+ end
2380
+
2381
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2382
+ metadata[:"x-goog-request-params"] ||= request_params_header
2383
+
2384
+ options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout,
2385
+ metadata: metadata,
2386
+ retry_policy: @config.rpcs.query_directory_contents.retry_policy
2387
+
2388
+ options.apply_defaults timeout: @config.timeout,
2389
+ metadata: @config.metadata,
2390
+ retry_policy: @config.retry_policy
2391
+
2392
+ @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation|
2393
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options
2394
+ yield response, operation if block_given?
2395
+ return response
2396
+ end
2397
+ rescue ::GRPC::BadStatus => e
2398
+ raise ::Google::Cloud::Error.from_error(e)
2399
+ end
2400
+
2401
+ ##
2402
+ # Creates a directory inside a Workspace.
2403
+ #
2404
+ # @overload make_directory(request, options = nil)
2405
+ # Pass arguments to `make_directory` via a request object, either of type
2406
+ # {::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest} or an equivalent Hash.
2407
+ #
2408
+ # @param request [::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest, ::Hash]
2409
+ # A request object representing the call parameters. Required. To specify no
2410
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2411
+ # @param options [::Gapic::CallOptions, ::Hash]
2412
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2413
+ #
2414
+ # @overload make_directory(workspace: nil, path: nil)
2415
+ # Pass arguments to `make_directory` via keyword arguments. Note that at
2416
+ # least one keyword argument is required. To specify no parameters, or to keep all
2417
+ # the default parameter values, pass an empty Hash as a request object (see above).
2418
+ #
2419
+ # @param workspace [::String]
2420
+ # Required. The workspace's name.
2421
+ # @param path [::String]
2422
+ # Required. The directory's full path including directory name, relative to
2423
+ # the workspace root.
2424
+ #
2425
+ # @yield [response, operation] Access the result along with the RPC operation
2426
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
2427
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2428
+ #
2429
+ # @return [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
2430
+ #
2431
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2432
+ #
2433
+ # @example Basic example
2434
+ # require "google/cloud/dataform/v1beta1"
2435
+ #
2436
+ # # Create a client object. The client can be reused for multiple calls.
2437
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2438
+ #
2439
+ # # Create a request. To set request fields, pass in keyword arguments.
2440
+ # request = Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest.new
2441
+ #
2442
+ # # Call the make_directory method.
2443
+ # result = client.make_directory request
2444
+ #
2445
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse.
2446
+ # p result
2447
+ #
2448
+ def make_directory request, options = nil
2449
+ raise ::ArgumentError, "request must be provided" if request.nil?
2450
+
2451
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest
2452
+
2453
+ # Converts hash and nil to an options object
2454
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2455
+
2456
+ # Customize the options with defaults
2457
+ metadata = @config.rpcs.make_directory.metadata.to_h
2458
+
2459
+ # Set x-goog-api-client and x-goog-user-project headers
2460
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2461
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2462
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2463
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2464
+
2465
+ header_params = {}
2466
+ if request.workspace
2467
+ header_params["workspace"] = request.workspace
2468
+ end
2469
+
2470
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2471
+ metadata[:"x-goog-request-params"] ||= request_params_header
2472
+
2473
+ options.apply_defaults timeout: @config.rpcs.make_directory.timeout,
2474
+ metadata: metadata,
2475
+ retry_policy: @config.rpcs.make_directory.retry_policy
2476
+
2477
+ options.apply_defaults timeout: @config.timeout,
2478
+ metadata: @config.metadata,
2479
+ retry_policy: @config.retry_policy
2480
+
2481
+ @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation|
2482
+ yield response, operation if block_given?
2483
+ return response
2484
+ end
2485
+ rescue ::GRPC::BadStatus => e
2486
+ raise ::Google::Cloud::Error.from_error(e)
2487
+ end
2488
+
2489
+ ##
2490
+ # Deletes a directory (inside a Workspace) and all of its contents.
2491
+ #
2492
+ # @overload remove_directory(request, options = nil)
2493
+ # Pass arguments to `remove_directory` via a request object, either of type
2494
+ # {::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest} or an equivalent Hash.
2495
+ #
2496
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest, ::Hash]
2497
+ # A request object representing the call parameters. Required. To specify no
2498
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2499
+ # @param options [::Gapic::CallOptions, ::Hash]
2500
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2501
+ #
2502
+ # @overload remove_directory(workspace: nil, path: nil)
2503
+ # Pass arguments to `remove_directory` via keyword arguments. Note that at
2504
+ # least one keyword argument is required. To specify no parameters, or to keep all
2505
+ # the default parameter values, pass an empty Hash as a request object (see above).
2506
+ #
2507
+ # @param workspace [::String]
2508
+ # Required. The workspace's name.
2509
+ # @param path [::String]
2510
+ # Required. The directory's full path including directory name, relative to
2511
+ # the workspace root.
2512
+ #
2513
+ # @yield [response, operation] Access the result along with the RPC operation
2514
+ # @yieldparam response [::Google::Protobuf::Empty]
2515
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2516
+ #
2517
+ # @return [::Google::Protobuf::Empty]
2518
+ #
2519
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2520
+ #
2521
+ # @example Basic example
2522
+ # require "google/cloud/dataform/v1beta1"
2523
+ #
2524
+ # # Create a client object. The client can be reused for multiple calls.
2525
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2526
+ #
2527
+ # # Create a request. To set request fields, pass in keyword arguments.
2528
+ # request = Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest.new
2529
+ #
2530
+ # # Call the remove_directory method.
2531
+ # result = client.remove_directory request
2532
+ #
2533
+ # # The returned object is of type Google::Protobuf::Empty.
2534
+ # p result
2535
+ #
2536
+ def remove_directory request, options = nil
2537
+ raise ::ArgumentError, "request must be provided" if request.nil?
2538
+
2539
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest
2540
+
2541
+ # Converts hash and nil to an options object
2542
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2543
+
2544
+ # Customize the options with defaults
2545
+ metadata = @config.rpcs.remove_directory.metadata.to_h
2546
+
2547
+ # Set x-goog-api-client and x-goog-user-project headers
2548
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2549
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2550
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2551
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2552
+
2553
+ header_params = {}
2554
+ if request.workspace
2555
+ header_params["workspace"] = request.workspace
2556
+ end
2557
+
2558
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2559
+ metadata[:"x-goog-request-params"] ||= request_params_header
2560
+
2561
+ options.apply_defaults timeout: @config.rpcs.remove_directory.timeout,
2562
+ metadata: metadata,
2563
+ retry_policy: @config.rpcs.remove_directory.retry_policy
2564
+
2565
+ options.apply_defaults timeout: @config.timeout,
2566
+ metadata: @config.metadata,
2567
+ retry_policy: @config.retry_policy
2568
+
2569
+ @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation|
2570
+ yield response, operation if block_given?
2571
+ return response
2572
+ end
2573
+ rescue ::GRPC::BadStatus => e
2574
+ raise ::Google::Cloud::Error.from_error(e)
2575
+ end
2576
+
2577
+ ##
2578
+ # Moves a directory (inside a Workspace), and all of its contents, to a new
2579
+ # location.
2580
+ #
2581
+ # @overload move_directory(request, options = nil)
2582
+ # Pass arguments to `move_directory` via a request object, either of type
2583
+ # {::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest} or an equivalent Hash.
2584
+ #
2585
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest, ::Hash]
2586
+ # A request object representing the call parameters. Required. To specify no
2587
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2588
+ # @param options [::Gapic::CallOptions, ::Hash]
2589
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2590
+ #
2591
+ # @overload move_directory(workspace: nil, path: nil, new_path: nil)
2592
+ # Pass arguments to `move_directory` via keyword arguments. Note that at
2593
+ # least one keyword argument is required. To specify no parameters, or to keep all
2594
+ # the default parameter values, pass an empty Hash as a request object (see above).
2595
+ #
2596
+ # @param workspace [::String]
2597
+ # Required. The workspace's name.
2598
+ # @param path [::String]
2599
+ # Required. The directory's full path including directory name, relative to
2600
+ # the workspace root.
2601
+ # @param new_path [::String]
2602
+ # Required. The new path for the directory including directory name, rooted
2603
+ # at workspace root.
2604
+ #
2605
+ # @yield [response, operation] Access the result along with the RPC operation
2606
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
2607
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2608
+ #
2609
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
2610
+ #
2611
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2612
+ #
2613
+ # @example Basic example
2614
+ # require "google/cloud/dataform/v1beta1"
2615
+ #
2616
+ # # Create a client object. The client can be reused for multiple calls.
2617
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2618
+ #
2619
+ # # Create a request. To set request fields, pass in keyword arguments.
2620
+ # request = Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest.new
2621
+ #
2622
+ # # Call the move_directory method.
2623
+ # result = client.move_directory request
2624
+ #
2625
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse.
2626
+ # p result
2627
+ #
2628
+ def move_directory request, options = nil
2629
+ raise ::ArgumentError, "request must be provided" if request.nil?
2630
+
2631
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest
2632
+
2633
+ # Converts hash and nil to an options object
2634
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2635
+
2636
+ # Customize the options with defaults
2637
+ metadata = @config.rpcs.move_directory.metadata.to_h
2638
+
2639
+ # Set x-goog-api-client and x-goog-user-project headers
2640
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2641
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2642
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2643
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2644
+
2645
+ header_params = {}
2646
+ if request.workspace
2647
+ header_params["workspace"] = request.workspace
2648
+ end
2649
+
2650
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2651
+ metadata[:"x-goog-request-params"] ||= request_params_header
2652
+
2653
+ options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
2654
+ metadata: metadata,
2655
+ retry_policy: @config.rpcs.move_directory.retry_policy
2656
+
2657
+ options.apply_defaults timeout: @config.timeout,
2658
+ metadata: @config.metadata,
2659
+ retry_policy: @config.retry_policy
2660
+
2661
+ @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation|
2662
+ yield response, operation if block_given?
2663
+ return response
2664
+ end
2665
+ rescue ::GRPC::BadStatus => e
2666
+ raise ::Google::Cloud::Error.from_error(e)
2667
+ end
2668
+
2669
+ ##
2670
+ # Returns the contents of a file (inside a Workspace).
2671
+ #
2672
+ # @overload read_file(request, options = nil)
2673
+ # Pass arguments to `read_file` via a request object, either of type
2674
+ # {::Google::Cloud::Dataform::V1beta1::ReadFileRequest} or an equivalent Hash.
2675
+ #
2676
+ # @param request [::Google::Cloud::Dataform::V1beta1::ReadFileRequest, ::Hash]
2677
+ # A request object representing the call parameters. Required. To specify no
2678
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2679
+ # @param options [::Gapic::CallOptions, ::Hash]
2680
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2681
+ #
2682
+ # @overload read_file(workspace: nil, path: nil)
2683
+ # Pass arguments to `read_file` via keyword arguments. Note that at
2684
+ # least one keyword argument is required. To specify no parameters, or to keep all
2685
+ # the default parameter values, pass an empty Hash as a request object (see above).
2686
+ #
2687
+ # @param workspace [::String]
2688
+ # Required. The workspace's name.
2689
+ # @param path [::String]
2690
+ # Required. The file's full path including filename, relative to the
2691
+ # workspace root.
2692
+ #
2693
+ # @yield [response, operation] Access the result along with the RPC operation
2694
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
2695
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2696
+ #
2697
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
2698
+ #
2699
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2700
+ #
2701
+ # @example Basic example
2702
+ # require "google/cloud/dataform/v1beta1"
2703
+ #
2704
+ # # Create a client object. The client can be reused for multiple calls.
2705
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2706
+ #
2707
+ # # Create a request. To set request fields, pass in keyword arguments.
2708
+ # request = Google::Cloud::Dataform::V1beta1::ReadFileRequest.new
2709
+ #
2710
+ # # Call the read_file method.
2711
+ # result = client.read_file request
2712
+ #
2713
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReadFileResponse.
2714
+ # p result
2715
+ #
2716
+ def read_file request, options = nil
2717
+ raise ::ArgumentError, "request must be provided" if request.nil?
2718
+
2719
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadFileRequest
2720
+
2721
+ # Converts hash and nil to an options object
2722
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2723
+
2724
+ # Customize the options with defaults
2725
+ metadata = @config.rpcs.read_file.metadata.to_h
2726
+
2727
+ # Set x-goog-api-client and x-goog-user-project headers
2728
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2729
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2730
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2731
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2732
+
2733
+ header_params = {}
2734
+ if request.workspace
2735
+ header_params["workspace"] = request.workspace
2736
+ end
2737
+
2738
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2739
+ metadata[:"x-goog-request-params"] ||= request_params_header
2740
+
2741
+ options.apply_defaults timeout: @config.rpcs.read_file.timeout,
2742
+ metadata: metadata,
2743
+ retry_policy: @config.rpcs.read_file.retry_policy
2744
+
2745
+ options.apply_defaults timeout: @config.timeout,
2746
+ metadata: @config.metadata,
2747
+ retry_policy: @config.retry_policy
2748
+
2749
+ @dataform_stub.call_rpc :read_file, request, options: options do |response, operation|
2750
+ yield response, operation if block_given?
2751
+ return response
2752
+ end
2753
+ rescue ::GRPC::BadStatus => e
2754
+ raise ::Google::Cloud::Error.from_error(e)
2755
+ end
2756
+
2757
+ ##
2758
+ # Deletes a file (inside a Workspace).
2759
+ #
2760
+ # @overload remove_file(request, options = nil)
2761
+ # Pass arguments to `remove_file` via a request object, either of type
2762
+ # {::Google::Cloud::Dataform::V1beta1::RemoveFileRequest} or an equivalent Hash.
2763
+ #
2764
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveFileRequest, ::Hash]
2765
+ # A request object representing the call parameters. Required. To specify no
2766
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2767
+ # @param options [::Gapic::CallOptions, ::Hash]
2768
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2769
+ #
2770
+ # @overload remove_file(workspace: nil, path: nil)
2771
+ # Pass arguments to `remove_file` via keyword arguments. Note that at
2772
+ # least one keyword argument is required. To specify no parameters, or to keep all
2773
+ # the default parameter values, pass an empty Hash as a request object (see above).
2774
+ #
2775
+ # @param workspace [::String]
2776
+ # Required. The workspace's name.
2777
+ # @param path [::String]
2778
+ # Required. The file's full path including filename, relative to the
2779
+ # workspace root.
2780
+ #
2781
+ # @yield [response, operation] Access the result along with the RPC operation
2782
+ # @yieldparam response [::Google::Protobuf::Empty]
2783
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2784
+ #
2785
+ # @return [::Google::Protobuf::Empty]
2786
+ #
2787
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2788
+ #
2789
+ # @example Basic example
2790
+ # require "google/cloud/dataform/v1beta1"
2791
+ #
2792
+ # # Create a client object. The client can be reused for multiple calls.
2793
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2794
+ #
2795
+ # # Create a request. To set request fields, pass in keyword arguments.
2796
+ # request = Google::Cloud::Dataform::V1beta1::RemoveFileRequest.new
2797
+ #
2798
+ # # Call the remove_file method.
2799
+ # result = client.remove_file request
2800
+ #
2801
+ # # The returned object is of type Google::Protobuf::Empty.
2802
+ # p result
2803
+ #
2804
+ def remove_file request, options = nil
2805
+ raise ::ArgumentError, "request must be provided" if request.nil?
2806
+
2807
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveFileRequest
2808
+
2809
+ # Converts hash and nil to an options object
2810
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2811
+
2812
+ # Customize the options with defaults
2813
+ metadata = @config.rpcs.remove_file.metadata.to_h
2814
+
2815
+ # Set x-goog-api-client and x-goog-user-project headers
2816
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2817
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2818
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2819
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2820
+
2821
+ header_params = {}
2822
+ if request.workspace
2823
+ header_params["workspace"] = request.workspace
2824
+ end
2825
+
2826
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2827
+ metadata[:"x-goog-request-params"] ||= request_params_header
2828
+
2829
+ options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
2830
+ metadata: metadata,
2831
+ retry_policy: @config.rpcs.remove_file.retry_policy
2832
+
2833
+ options.apply_defaults timeout: @config.timeout,
2834
+ metadata: @config.metadata,
2835
+ retry_policy: @config.retry_policy
2836
+
2837
+ @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation|
2838
+ yield response, operation if block_given?
2839
+ return response
2840
+ end
2841
+ rescue ::GRPC::BadStatus => e
2842
+ raise ::Google::Cloud::Error.from_error(e)
2843
+ end
2844
+
2845
+ ##
2846
+ # Moves a file (inside a Workspace) to a new location.
2847
+ #
2848
+ # @overload move_file(request, options = nil)
2849
+ # Pass arguments to `move_file` via a request object, either of type
2850
+ # {::Google::Cloud::Dataform::V1beta1::MoveFileRequest} or an equivalent Hash.
2851
+ #
2852
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveFileRequest, ::Hash]
2853
+ # A request object representing the call parameters. Required. To specify no
2854
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2855
+ # @param options [::Gapic::CallOptions, ::Hash]
2856
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2857
+ #
2858
+ # @overload move_file(workspace: nil, path: nil, new_path: nil)
2859
+ # Pass arguments to `move_file` via keyword arguments. Note that at
2860
+ # least one keyword argument is required. To specify no parameters, or to keep all
2861
+ # the default parameter values, pass an empty Hash as a request object (see above).
2862
+ #
2863
+ # @param workspace [::String]
2864
+ # Required. The workspace's name.
2865
+ # @param path [::String]
2866
+ # Required. The file's full path including filename, relative to the
2867
+ # workspace root.
2868
+ # @param new_path [::String]
2869
+ # Required. The file's new path including filename, relative to the workspace
2870
+ # root.
2871
+ #
2872
+ # @yield [response, operation] Access the result along with the RPC operation
2873
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
2874
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2875
+ #
2876
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
2877
+ #
2878
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2879
+ #
2880
+ # @example Basic example
2881
+ # require "google/cloud/dataform/v1beta1"
2882
+ #
2883
+ # # Create a client object. The client can be reused for multiple calls.
2884
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2885
+ #
2886
+ # # Create a request. To set request fields, pass in keyword arguments.
2887
+ # request = Google::Cloud::Dataform::V1beta1::MoveFileRequest.new
2888
+ #
2889
+ # # Call the move_file method.
2890
+ # result = client.move_file request
2891
+ #
2892
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveFileResponse.
2893
+ # p result
2894
+ #
2895
+ def move_file request, options = nil
2896
+ raise ::ArgumentError, "request must be provided" if request.nil?
2897
+
2898
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFileRequest
2899
+
2900
+ # Converts hash and nil to an options object
2901
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2902
+
2903
+ # Customize the options with defaults
2904
+ metadata = @config.rpcs.move_file.metadata.to_h
2905
+
2906
+ # Set x-goog-api-client and x-goog-user-project headers
2907
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2908
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2909
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2910
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2911
+
2912
+ header_params = {}
2913
+ if request.workspace
2914
+ header_params["workspace"] = request.workspace
2915
+ end
2916
+
2917
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2918
+ metadata[:"x-goog-request-params"] ||= request_params_header
2919
+
2920
+ options.apply_defaults timeout: @config.rpcs.move_file.timeout,
2921
+ metadata: metadata,
2922
+ retry_policy: @config.rpcs.move_file.retry_policy
2923
+
2924
+ options.apply_defaults timeout: @config.timeout,
2925
+ metadata: @config.metadata,
2926
+ retry_policy: @config.retry_policy
2927
+
2928
+ @dataform_stub.call_rpc :move_file, request, options: options do |response, operation|
2929
+ yield response, operation if block_given?
2930
+ return response
2931
+ end
2932
+ rescue ::GRPC::BadStatus => e
2933
+ raise ::Google::Cloud::Error.from_error(e)
2934
+ end
2935
+
2936
+ ##
2937
+ # Writes to a file (inside a Workspace).
1712
2938
  #
1713
- # @overload fetch_file_diff(request, options = nil)
1714
- # Pass arguments to `fetch_file_diff` via a request object, either of type
1715
- # {::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest} or an equivalent Hash.
2939
+ # @overload write_file(request, options = nil)
2940
+ # Pass arguments to `write_file` via a request object, either of type
2941
+ # {::Google::Cloud::Dataform::V1beta1::WriteFileRequest} or an equivalent Hash.
1716
2942
  #
1717
- # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest, ::Hash]
2943
+ # @param request [::Google::Cloud::Dataform::V1beta1::WriteFileRequest, ::Hash]
1718
2944
  # A request object representing the call parameters. Required. To specify no
1719
2945
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1720
2946
  # @param options [::Gapic::CallOptions, ::Hash]
1721
2947
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1722
2948
  #
1723
- # @overload fetch_file_diff(workspace: nil, path: nil)
1724
- # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at
2949
+ # @overload write_file(workspace: nil, path: nil, contents: nil)
2950
+ # Pass arguments to `write_file` via keyword arguments. Note that at
1725
2951
  # least one keyword argument is required. To specify no parameters, or to keep all
1726
2952
  # the default parameter values, pass an empty Hash as a request object (see above).
1727
2953
  #
1728
2954
  # @param workspace [::String]
1729
2955
  # Required. The workspace's name.
1730
2956
  # @param path [::String]
1731
- # Required. The file's full path including filename, relative to the workspace root.
2957
+ # Required. The file.
2958
+ # @param contents [::String]
2959
+ # Required. The file's contents.
1732
2960
  #
1733
2961
  # @yield [response, operation] Access the result along with the RPC operation
1734
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2962
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
1735
2963
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1736
2964
  #
1737
- # @return [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
2965
+ # @return [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
1738
2966
  #
1739
2967
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1740
2968
  #
@@ -1745,24 +2973,24 @@ module Google
1745
2973
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1746
2974
  #
1747
2975
  # # Create a request. To set request fields, pass in keyword arguments.
1748
- # request = Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest.new
2976
+ # request = Google::Cloud::Dataform::V1beta1::WriteFileRequest.new
1749
2977
  #
1750
- # # Call the fetch_file_diff method.
1751
- # result = client.fetch_file_diff request
2978
+ # # Call the write_file method.
2979
+ # result = client.write_file request
1752
2980
  #
1753
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse.
2981
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WriteFileResponse.
1754
2982
  # p result
1755
2983
  #
1756
- def fetch_file_diff request, options = nil
2984
+ def write_file request, options = nil
1757
2985
  raise ::ArgumentError, "request must be provided" if request.nil?
1758
2986
 
1759
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest
2987
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::WriteFileRequest
1760
2988
 
1761
2989
  # Converts hash and nil to an options object
1762
2990
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1763
2991
 
1764
2992
  # Customize the options with defaults
1765
- metadata = @config.rpcs.fetch_file_diff.metadata.to_h
2993
+ metadata = @config.rpcs.write_file.metadata.to_h
1766
2994
 
1767
2995
  # Set x-goog-api-client and x-goog-user-project headers
1768
2996
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1778,15 +3006,15 @@ module Google
1778
3006
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1779
3007
  metadata[:"x-goog-request-params"] ||= request_params_header
1780
3008
 
1781
- options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout,
3009
+ options.apply_defaults timeout: @config.rpcs.write_file.timeout,
1782
3010
  metadata: metadata,
1783
- retry_policy: @config.rpcs.fetch_file_diff.retry_policy
3011
+ retry_policy: @config.rpcs.write_file.retry_policy
1784
3012
 
1785
3013
  options.apply_defaults timeout: @config.timeout,
1786
3014
  metadata: @config.metadata,
1787
3015
  retry_policy: @config.retry_policy
1788
3016
 
1789
- @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation|
3017
+ @dataform_stub.call_rpc :write_file, request, options: options do |response, operation|
1790
3018
  yield response, operation if block_given?
1791
3019
  return response
1792
3020
  end
@@ -1795,45 +3023,42 @@ module Google
1795
3023
  end
1796
3024
 
1797
3025
  ##
1798
- # Returns the contents of a given Workspace directory.
3026
+ # Lists ReleaseConfigs in a given Repository.
1799
3027
  #
1800
- # @overload query_directory_contents(request, options = nil)
1801
- # Pass arguments to `query_directory_contents` via a request object, either of type
1802
- # {::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest} or an equivalent Hash.
3028
+ # @overload list_release_configs(request, options = nil)
3029
+ # Pass arguments to `list_release_configs` via a request object, either of type
3030
+ # {::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest} or an equivalent Hash.
1803
3031
  #
1804
- # @param request [::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest, ::Hash]
3032
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest, ::Hash]
1805
3033
  # A request object representing the call parameters. Required. To specify no
1806
3034
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1807
3035
  # @param options [::Gapic::CallOptions, ::Hash]
1808
3036
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1809
3037
  #
1810
- # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
1811
- # Pass arguments to `query_directory_contents` via keyword arguments. Note that at
3038
+ # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil)
3039
+ # Pass arguments to `list_release_configs` via keyword arguments. Note that at
1812
3040
  # least one keyword argument is required. To specify no parameters, or to keep all
1813
3041
  # the default parameter values, pass an empty Hash as a request object (see above).
1814
3042
  #
1815
- # @param workspace [::String]
1816
- # Required. The workspace's name.
1817
- # @param path [::String]
1818
- # Optional. The directory's full path including directory name, relative to the
1819
- # workspace root. If left unset, the workspace root is used.
3043
+ # @param parent [::String]
3044
+ # Required. The repository in which to list release configs. Must be in the
3045
+ # format `projects/*/locations/*/repositories/*`.
1820
3046
  # @param page_size [::Integer]
1821
- # Optional. Maximum number of paths to return. The server may return fewer
1822
- # items than requested. If unspecified, the server will pick an appropriate
1823
- # default.
3047
+ # Optional. Maximum number of release configs to return. The server may
3048
+ # return fewer items than requested. If unspecified, the server will pick an
3049
+ # appropriate default.
1824
3050
  # @param page_token [::String]
1825
- # Optional. Page token received from a previous `QueryDirectoryContents` call.
3051
+ # Optional. Page token received from a previous `ListReleaseConfigs` call.
1826
3052
  # Provide this to retrieve the subsequent page.
1827
3053
  #
1828
- # When paginating, all other parameters provided to
1829
- # `QueryDirectoryContents` must match the call that provided the page
1830
- # token.
3054
+ # When paginating, all other parameters provided to `ListReleaseConfigs`
3055
+ # must match the call that provided the page token.
1831
3056
  #
1832
3057
  # @yield [response, operation] Access the result along with the RPC operation
1833
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
3058
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::ReleaseConfig>]
1834
3059
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1835
3060
  #
1836
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
3061
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::ReleaseConfig>]
1837
3062
  #
1838
3063
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1839
3064
  #
@@ -1844,28 +3069,28 @@ module Google
1844
3069
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1845
3070
  #
1846
3071
  # # Create a request. To set request fields, pass in keyword arguments.
1847
- # request = Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest.new
3072
+ # request = Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest.new
1848
3073
  #
1849
- # # Call the query_directory_contents method.
1850
- # result = client.query_directory_contents request
3074
+ # # Call the list_release_configs method.
3075
+ # result = client.list_release_configs request
1851
3076
  #
1852
3077
  # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1853
3078
  # # over elements, and API calls will be issued to fetch pages as needed.
1854
3079
  # result.each do |item|
1855
- # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry.
3080
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::ReleaseConfig.
1856
3081
  # p item
1857
3082
  # end
1858
3083
  #
1859
- def query_directory_contents request, options = nil
3084
+ def list_release_configs request, options = nil
1860
3085
  raise ::ArgumentError, "request must be provided" if request.nil?
1861
3086
 
1862
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest
3087
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest
1863
3088
 
1864
3089
  # Converts hash and nil to an options object
1865
3090
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1866
3091
 
1867
3092
  # Customize the options with defaults
1868
- metadata = @config.rpcs.query_directory_contents.metadata.to_h
3093
+ metadata = @config.rpcs.list_release_configs.metadata.to_h
1869
3094
 
1870
3095
  # Set x-goog-api-client and x-goog-user-project headers
1871
3096
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1874,23 +3099,199 @@ module Google
1874
3099
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1875
3100
 
1876
3101
  header_params = {}
1877
- if request.workspace
1878
- header_params["workspace"] = request.workspace
3102
+ if request.parent
3103
+ header_params["parent"] = request.parent
3104
+ end
3105
+
3106
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3107
+ metadata[:"x-goog-request-params"] ||= request_params_header
3108
+
3109
+ options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout,
3110
+ metadata: metadata,
3111
+ retry_policy: @config.rpcs.list_release_configs.retry_policy
3112
+
3113
+ options.apply_defaults timeout: @config.timeout,
3114
+ metadata: @config.metadata,
3115
+ retry_policy: @config.retry_policy
3116
+
3117
+ @dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation|
3118
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options
3119
+ yield response, operation if block_given?
3120
+ return response
3121
+ end
3122
+ rescue ::GRPC::BadStatus => e
3123
+ raise ::Google::Cloud::Error.from_error(e)
3124
+ end
3125
+
3126
+ ##
3127
+ # Fetches a single ReleaseConfig.
3128
+ #
3129
+ # @overload get_release_config(request, options = nil)
3130
+ # Pass arguments to `get_release_config` via a request object, either of type
3131
+ # {::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest} or an equivalent Hash.
3132
+ #
3133
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest, ::Hash]
3134
+ # A request object representing the call parameters. Required. To specify no
3135
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3136
+ # @param options [::Gapic::CallOptions, ::Hash]
3137
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3138
+ #
3139
+ # @overload get_release_config(name: nil)
3140
+ # Pass arguments to `get_release_config` via keyword arguments. Note that at
3141
+ # least one keyword argument is required. To specify no parameters, or to keep all
3142
+ # the default parameter values, pass an empty Hash as a request object (see above).
3143
+ #
3144
+ # @param name [::String]
3145
+ # Required. The release config's name.
3146
+ #
3147
+ # @yield [response, operation] Access the result along with the RPC operation
3148
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
3149
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3150
+ #
3151
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
3152
+ #
3153
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3154
+ #
3155
+ # @example Basic example
3156
+ # require "google/cloud/dataform/v1beta1"
3157
+ #
3158
+ # # Create a client object. The client can be reused for multiple calls.
3159
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
3160
+ #
3161
+ # # Create a request. To set request fields, pass in keyword arguments.
3162
+ # request = Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest.new
3163
+ #
3164
+ # # Call the get_release_config method.
3165
+ # result = client.get_release_config request
3166
+ #
3167
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
3168
+ # p result
3169
+ #
3170
+ def get_release_config request, options = nil
3171
+ raise ::ArgumentError, "request must be provided" if request.nil?
3172
+
3173
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest
3174
+
3175
+ # Converts hash and nil to an options object
3176
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3177
+
3178
+ # Customize the options with defaults
3179
+ metadata = @config.rpcs.get_release_config.metadata.to_h
3180
+
3181
+ # Set x-goog-api-client and x-goog-user-project headers
3182
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3183
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3184
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
3185
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3186
+
3187
+ header_params = {}
3188
+ if request.name
3189
+ header_params["name"] = request.name
3190
+ end
3191
+
3192
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3193
+ metadata[:"x-goog-request-params"] ||= request_params_header
3194
+
3195
+ options.apply_defaults timeout: @config.rpcs.get_release_config.timeout,
3196
+ metadata: metadata,
3197
+ retry_policy: @config.rpcs.get_release_config.retry_policy
3198
+
3199
+ options.apply_defaults timeout: @config.timeout,
3200
+ metadata: @config.metadata,
3201
+ retry_policy: @config.retry_policy
3202
+
3203
+ @dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation|
3204
+ yield response, operation if block_given?
3205
+ return response
3206
+ end
3207
+ rescue ::GRPC::BadStatus => e
3208
+ raise ::Google::Cloud::Error.from_error(e)
3209
+ end
3210
+
3211
+ ##
3212
+ # Creates a new ReleaseConfig in a given Repository.
3213
+ #
3214
+ # @overload create_release_config(request, options = nil)
3215
+ # Pass arguments to `create_release_config` via a request object, either of type
3216
+ # {::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest} or an equivalent Hash.
3217
+ #
3218
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest, ::Hash]
3219
+ # A request object representing the call parameters. Required. To specify no
3220
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3221
+ # @param options [::Gapic::CallOptions, ::Hash]
3222
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3223
+ #
3224
+ # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil)
3225
+ # Pass arguments to `create_release_config` via keyword arguments. Note that at
3226
+ # least one keyword argument is required. To specify no parameters, or to keep all
3227
+ # the default parameter values, pass an empty Hash as a request object (see above).
3228
+ #
3229
+ # @param parent [::String]
3230
+ # Required. The repository in which to create the release config. Must be in
3231
+ # the format `projects/*/locations/*/repositories/*`.
3232
+ # @param release_config [::Google::Cloud::Dataform::V1beta1::ReleaseConfig, ::Hash]
3233
+ # Required. The release config to create.
3234
+ # @param release_config_id [::String]
3235
+ # Required. The ID to use for the release config, which will become the final
3236
+ # component of the release config's resource name.
3237
+ #
3238
+ # @yield [response, operation] Access the result along with the RPC operation
3239
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
3240
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3241
+ #
3242
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
3243
+ #
3244
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3245
+ #
3246
+ # @example Basic example
3247
+ # require "google/cloud/dataform/v1beta1"
3248
+ #
3249
+ # # Create a client object. The client can be reused for multiple calls.
3250
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
3251
+ #
3252
+ # # Create a request. To set request fields, pass in keyword arguments.
3253
+ # request = Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest.new
3254
+ #
3255
+ # # Call the create_release_config method.
3256
+ # result = client.create_release_config request
3257
+ #
3258
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
3259
+ # p result
3260
+ #
3261
+ def create_release_config request, options = nil
3262
+ raise ::ArgumentError, "request must be provided" if request.nil?
3263
+
3264
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest
3265
+
3266
+ # Converts hash and nil to an options object
3267
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3268
+
3269
+ # Customize the options with defaults
3270
+ metadata = @config.rpcs.create_release_config.metadata.to_h
3271
+
3272
+ # Set x-goog-api-client and x-goog-user-project headers
3273
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3274
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3275
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
3276
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3277
+
3278
+ header_params = {}
3279
+ if request.parent
3280
+ header_params["parent"] = request.parent
1879
3281
  end
1880
3282
 
1881
3283
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1882
3284
  metadata[:"x-goog-request-params"] ||= request_params_header
1883
3285
 
1884
- options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout,
3286
+ options.apply_defaults timeout: @config.rpcs.create_release_config.timeout,
1885
3287
  metadata: metadata,
1886
- retry_policy: @config.rpcs.query_directory_contents.retry_policy
3288
+ retry_policy: @config.rpcs.create_release_config.retry_policy
1887
3289
 
1888
3290
  options.apply_defaults timeout: @config.timeout,
1889
3291
  metadata: @config.metadata,
1890
3292
  retry_policy: @config.retry_policy
1891
3293
 
1892
- @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation|
1893
- response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options
3294
+ @dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation|
1894
3295
  yield response, operation if block_given?
1895
3296
  return response
1896
3297
  end
@@ -1899,34 +3300,34 @@ module Google
1899
3300
  end
1900
3301
 
1901
3302
  ##
1902
- # Creates a directory inside a Workspace.
3303
+ # Updates a single ReleaseConfig.
1903
3304
  #
1904
- # @overload make_directory(request, options = nil)
1905
- # Pass arguments to `make_directory` via a request object, either of type
1906
- # {::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest} or an equivalent Hash.
3305
+ # @overload update_release_config(request, options = nil)
3306
+ # Pass arguments to `update_release_config` via a request object, either of type
3307
+ # {::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest} or an equivalent Hash.
1907
3308
  #
1908
- # @param request [::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest, ::Hash]
3309
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest, ::Hash]
1909
3310
  # A request object representing the call parameters. Required. To specify no
1910
3311
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1911
3312
  # @param options [::Gapic::CallOptions, ::Hash]
1912
3313
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1913
3314
  #
1914
- # @overload make_directory(workspace: nil, path: nil)
1915
- # Pass arguments to `make_directory` via keyword arguments. Note that at
3315
+ # @overload update_release_config(update_mask: nil, release_config: nil)
3316
+ # Pass arguments to `update_release_config` via keyword arguments. Note that at
1916
3317
  # least one keyword argument is required. To specify no parameters, or to keep all
1917
3318
  # the default parameter values, pass an empty Hash as a request object (see above).
1918
3319
  #
1919
- # @param workspace [::String]
1920
- # Required. The workspace's name.
1921
- # @param path [::String]
1922
- # Required. The directory's full path including directory name, relative to the
1923
- # workspace root.
3320
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3321
+ # Optional. Specifies the fields to be updated in the release config. If left
3322
+ # unset, all fields will be updated.
3323
+ # @param release_config [::Google::Cloud::Dataform::V1beta1::ReleaseConfig, ::Hash]
3324
+ # Required. The release config to update.
1924
3325
  #
1925
3326
  # @yield [response, operation] Access the result along with the RPC operation
1926
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
3327
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1927
3328
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
1928
3329
  #
1929
- # @return [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
3330
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1930
3331
  #
1931
3332
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1932
3333
  #
@@ -1937,24 +3338,24 @@ module Google
1937
3338
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1938
3339
  #
1939
3340
  # # Create a request. To set request fields, pass in keyword arguments.
1940
- # request = Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest.new
3341
+ # request = Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest.new
1941
3342
  #
1942
- # # Call the make_directory method.
1943
- # result = client.make_directory request
3343
+ # # Call the update_release_config method.
3344
+ # result = client.update_release_config request
1944
3345
  #
1945
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse.
3346
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReleaseConfig.
1946
3347
  # p result
1947
3348
  #
1948
- def make_directory request, options = nil
3349
+ def update_release_config request, options = nil
1949
3350
  raise ::ArgumentError, "request must be provided" if request.nil?
1950
3351
 
1951
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest
3352
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest
1952
3353
 
1953
3354
  # Converts hash and nil to an options object
1954
3355
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1955
3356
 
1956
3357
  # Customize the options with defaults
1957
- metadata = @config.rpcs.make_directory.metadata.to_h
3358
+ metadata = @config.rpcs.update_release_config.metadata.to_h
1958
3359
 
1959
3360
  # Set x-goog-api-client and x-goog-user-project headers
1960
3361
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1963,22 +3364,22 @@ module Google
1963
3364
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1964
3365
 
1965
3366
  header_params = {}
1966
- if request.workspace
1967
- header_params["workspace"] = request.workspace
3367
+ if request.release_config&.name
3368
+ header_params["release_config.name"] = request.release_config.name
1968
3369
  end
1969
3370
 
1970
3371
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1971
3372
  metadata[:"x-goog-request-params"] ||= request_params_header
1972
3373
 
1973
- options.apply_defaults timeout: @config.rpcs.make_directory.timeout,
3374
+ options.apply_defaults timeout: @config.rpcs.update_release_config.timeout,
1974
3375
  metadata: metadata,
1975
- retry_policy: @config.rpcs.make_directory.retry_policy
3376
+ retry_policy: @config.rpcs.update_release_config.retry_policy
1976
3377
 
1977
3378
  options.apply_defaults timeout: @config.timeout,
1978
3379
  metadata: @config.metadata,
1979
3380
  retry_policy: @config.retry_policy
1980
3381
 
1981
- @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation|
3382
+ @dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation|
1982
3383
  yield response, operation if block_given?
1983
3384
  return response
1984
3385
  end
@@ -1987,28 +3388,25 @@ module Google
1987
3388
  end
1988
3389
 
1989
3390
  ##
1990
- # Deletes a directory (inside a Workspace) and all of its contents.
3391
+ # Deletes a single ReleaseConfig.
1991
3392
  #
1992
- # @overload remove_directory(request, options = nil)
1993
- # Pass arguments to `remove_directory` via a request object, either of type
1994
- # {::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest} or an equivalent Hash.
3393
+ # @overload delete_release_config(request, options = nil)
3394
+ # Pass arguments to `delete_release_config` via a request object, either of type
3395
+ # {::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest} or an equivalent Hash.
1995
3396
  #
1996
- # @param request [::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest, ::Hash]
3397
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest, ::Hash]
1997
3398
  # A request object representing the call parameters. Required. To specify no
1998
3399
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1999
3400
  # @param options [::Gapic::CallOptions, ::Hash]
2000
3401
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2001
3402
  #
2002
- # @overload remove_directory(workspace: nil, path: nil)
2003
- # Pass arguments to `remove_directory` via keyword arguments. Note that at
3403
+ # @overload delete_release_config(name: nil)
3404
+ # Pass arguments to `delete_release_config` via keyword arguments. Note that at
2004
3405
  # least one keyword argument is required. To specify no parameters, or to keep all
2005
3406
  # the default parameter values, pass an empty Hash as a request object (see above).
2006
3407
  #
2007
- # @param workspace [::String]
2008
- # Required. The workspace's name.
2009
- # @param path [::String]
2010
- # Required. The directory's full path including directory name, relative to the
2011
- # workspace root.
3408
+ # @param name [::String]
3409
+ # Required. The release config's name.
2012
3410
  #
2013
3411
  # @yield [response, operation] Access the result along with the RPC operation
2014
3412
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -2025,24 +3423,24 @@ module Google
2025
3423
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2026
3424
  #
2027
3425
  # # Create a request. To set request fields, pass in keyword arguments.
2028
- # request = Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest.new
3426
+ # request = Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest.new
2029
3427
  #
2030
- # # Call the remove_directory method.
2031
- # result = client.remove_directory request
3428
+ # # Call the delete_release_config method.
3429
+ # result = client.delete_release_config request
2032
3430
  #
2033
3431
  # # The returned object is of type Google::Protobuf::Empty.
2034
3432
  # p result
2035
3433
  #
2036
- def remove_directory request, options = nil
3434
+ def delete_release_config request, options = nil
2037
3435
  raise ::ArgumentError, "request must be provided" if request.nil?
2038
3436
 
2039
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest
3437
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest
2040
3438
 
2041
3439
  # Converts hash and nil to an options object
2042
3440
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2043
3441
 
2044
3442
  # Customize the options with defaults
2045
- metadata = @config.rpcs.remove_directory.metadata.to_h
3443
+ metadata = @config.rpcs.delete_release_config.metadata.to_h
2046
3444
 
2047
3445
  # Set x-goog-api-client and x-goog-user-project headers
2048
3446
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2051,22 +3449,22 @@ module Google
2051
3449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2052
3450
 
2053
3451
  header_params = {}
2054
- if request.workspace
2055
- header_params["workspace"] = request.workspace
3452
+ if request.name
3453
+ header_params["name"] = request.name
2056
3454
  end
2057
3455
 
2058
3456
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2059
3457
  metadata[:"x-goog-request-params"] ||= request_params_header
2060
3458
 
2061
- options.apply_defaults timeout: @config.rpcs.remove_directory.timeout,
3459
+ options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout,
2062
3460
  metadata: metadata,
2063
- retry_policy: @config.rpcs.remove_directory.retry_policy
3461
+ retry_policy: @config.rpcs.delete_release_config.retry_policy
2064
3462
 
2065
3463
  options.apply_defaults timeout: @config.timeout,
2066
3464
  metadata: @config.metadata,
2067
3465
  retry_policy: @config.retry_policy
2068
3466
 
2069
- @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation|
3467
+ @dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation|
2070
3468
  yield response, operation if block_given?
2071
3469
  return response
2072
3470
  end
@@ -2075,38 +3473,42 @@ module Google
2075
3473
  end
2076
3474
 
2077
3475
  ##
2078
- # Moves a directory (inside a Workspace), and all of its contents, to a new
2079
- # location.
3476
+ # Lists CompilationResults in a given Repository.
2080
3477
  #
2081
- # @overload move_directory(request, options = nil)
2082
- # Pass arguments to `move_directory` via a request object, either of type
2083
- # {::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest} or an equivalent Hash.
3478
+ # @overload list_compilation_results(request, options = nil)
3479
+ # Pass arguments to `list_compilation_results` via a request object, either of type
3480
+ # {::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest} or an equivalent Hash.
2084
3481
  #
2085
- # @param request [::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest, ::Hash]
3482
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest, ::Hash]
2086
3483
  # A request object representing the call parameters. Required. To specify no
2087
3484
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2088
3485
  # @param options [::Gapic::CallOptions, ::Hash]
2089
3486
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2090
3487
  #
2091
- # @overload move_directory(workspace: nil, path: nil, new_path: nil)
2092
- # Pass arguments to `move_directory` via keyword arguments. Note that at
3488
+ # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil)
3489
+ # Pass arguments to `list_compilation_results` via keyword arguments. Note that at
2093
3490
  # least one keyword argument is required. To specify no parameters, or to keep all
2094
3491
  # the default parameter values, pass an empty Hash as a request object (see above).
2095
3492
  #
2096
- # @param workspace [::String]
2097
- # Required. The workspace's name.
2098
- # @param path [::String]
2099
- # Required. The directory's full path including directory name, relative to the
2100
- # workspace root.
2101
- # @param new_path [::String]
2102
- # Required. The new path for the directory including directory name, rooted at
2103
- # workspace root.
3493
+ # @param parent [::String]
3494
+ # Required. The repository in which to list compilation results. Must be in
3495
+ # the format `projects/*/locations/*/repositories/*`.
3496
+ # @param page_size [::Integer]
3497
+ # Optional. Maximum number of compilation results to return. The server may
3498
+ # return fewer items than requested. If unspecified, the server will pick an
3499
+ # appropriate default.
3500
+ # @param page_token [::String]
3501
+ # Optional. Page token received from a previous `ListCompilationResults`
3502
+ # call. Provide this to retrieve the subsequent page.
3503
+ #
3504
+ # When paginating, all other parameters provided to `ListCompilationResults`
3505
+ # must match the call that provided the page token.
2104
3506
  #
2105
3507
  # @yield [response, operation] Access the result along with the RPC operation
2106
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
3508
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResult>]
2107
3509
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2108
3510
  #
2109
- # @return [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
3511
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResult>]
2110
3512
  #
2111
3513
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2112
3514
  #
@@ -2117,24 +3519,28 @@ module Google
2117
3519
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2118
3520
  #
2119
3521
  # # Create a request. To set request fields, pass in keyword arguments.
2120
- # request = Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest.new
3522
+ # request = Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest.new
2121
3523
  #
2122
- # # Call the move_directory method.
2123
- # result = client.move_directory request
3524
+ # # Call the list_compilation_results method.
3525
+ # result = client.list_compilation_results request
2124
3526
  #
2125
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse.
2126
- # p result
3527
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3528
+ # # over elements, and API calls will be issued to fetch pages as needed.
3529
+ # result.each do |item|
3530
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResult.
3531
+ # p item
3532
+ # end
2127
3533
  #
2128
- def move_directory request, options = nil
3534
+ def list_compilation_results request, options = nil
2129
3535
  raise ::ArgumentError, "request must be provided" if request.nil?
2130
3536
 
2131
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest
3537
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest
2132
3538
 
2133
3539
  # Converts hash and nil to an options object
2134
3540
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2135
3541
 
2136
3542
  # Customize the options with defaults
2137
- metadata = @config.rpcs.move_directory.metadata.to_h
3543
+ metadata = @config.rpcs.list_compilation_results.metadata.to_h
2138
3544
 
2139
3545
  # Set x-goog-api-client and x-goog-user-project headers
2140
3546
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2143,22 +3549,23 @@ module Google
2143
3549
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2144
3550
 
2145
3551
  header_params = {}
2146
- if request.workspace
2147
- header_params["workspace"] = request.workspace
3552
+ if request.parent
3553
+ header_params["parent"] = request.parent
2148
3554
  end
2149
3555
 
2150
3556
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2151
3557
  metadata[:"x-goog-request-params"] ||= request_params_header
2152
3558
 
2153
- options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
3559
+ options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
2154
3560
  metadata: metadata,
2155
- retry_policy: @config.rpcs.move_directory.retry_policy
3561
+ retry_policy: @config.rpcs.list_compilation_results.retry_policy
2156
3562
 
2157
3563
  options.apply_defaults timeout: @config.timeout,
2158
3564
  metadata: @config.metadata,
2159
3565
  retry_policy: @config.retry_policy
2160
3566
 
2161
- @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation|
3567
+ @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation|
3568
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options
2162
3569
  yield response, operation if block_given?
2163
3570
  return response
2164
3571
  end
@@ -2167,33 +3574,31 @@ module Google
2167
3574
  end
2168
3575
 
2169
3576
  ##
2170
- # Returns the contents of a file (inside a Workspace).
3577
+ # Fetches a single CompilationResult.
2171
3578
  #
2172
- # @overload read_file(request, options = nil)
2173
- # Pass arguments to `read_file` via a request object, either of type
2174
- # {::Google::Cloud::Dataform::V1beta1::ReadFileRequest} or an equivalent Hash.
3579
+ # @overload get_compilation_result(request, options = nil)
3580
+ # Pass arguments to `get_compilation_result` via a request object, either of type
3581
+ # {::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest} or an equivalent Hash.
2175
3582
  #
2176
- # @param request [::Google::Cloud::Dataform::V1beta1::ReadFileRequest, ::Hash]
3583
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest, ::Hash]
2177
3584
  # A request object representing the call parameters. Required. To specify no
2178
3585
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2179
3586
  # @param options [::Gapic::CallOptions, ::Hash]
2180
3587
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2181
3588
  #
2182
- # @overload read_file(workspace: nil, path: nil)
2183
- # Pass arguments to `read_file` via keyword arguments. Note that at
3589
+ # @overload get_compilation_result(name: nil)
3590
+ # Pass arguments to `get_compilation_result` via keyword arguments. Note that at
2184
3591
  # least one keyword argument is required. To specify no parameters, or to keep all
2185
3592
  # the default parameter values, pass an empty Hash as a request object (see above).
2186
3593
  #
2187
- # @param workspace [::String]
2188
- # Required. The workspace's name.
2189
- # @param path [::String]
2190
- # Required. The file's full path including filename, relative to the workspace root.
3594
+ # @param name [::String]
3595
+ # Required. The compilation result's name.
2191
3596
  #
2192
3597
  # @yield [response, operation] Access the result along with the RPC operation
2193
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
3598
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2194
3599
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2195
3600
  #
2196
- # @return [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
3601
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2197
3602
  #
2198
3603
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2199
3604
  #
@@ -2204,24 +3609,24 @@ module Google
2204
3609
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2205
3610
  #
2206
3611
  # # Create a request. To set request fields, pass in keyword arguments.
2207
- # request = Google::Cloud::Dataform::V1beta1::ReadFileRequest.new
3612
+ # request = Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest.new
2208
3613
  #
2209
- # # Call the read_file method.
2210
- # result = client.read_file request
3614
+ # # Call the get_compilation_result method.
3615
+ # result = client.get_compilation_result request
2211
3616
  #
2212
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReadFileResponse.
3617
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
2213
3618
  # p result
2214
3619
  #
2215
- def read_file request, options = nil
3620
+ def get_compilation_result request, options = nil
2216
3621
  raise ::ArgumentError, "request must be provided" if request.nil?
2217
3622
 
2218
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadFileRequest
3623
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest
2219
3624
 
2220
3625
  # Converts hash and nil to an options object
2221
3626
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2222
3627
 
2223
3628
  # Customize the options with defaults
2224
- metadata = @config.rpcs.read_file.metadata.to_h
3629
+ metadata = @config.rpcs.get_compilation_result.metadata.to_h
2225
3630
 
2226
3631
  # Set x-goog-api-client and x-goog-user-project headers
2227
3632
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2230,22 +3635,22 @@ module Google
2230
3635
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2231
3636
 
2232
3637
  header_params = {}
2233
- if request.workspace
2234
- header_params["workspace"] = request.workspace
3638
+ if request.name
3639
+ header_params["name"] = request.name
2235
3640
  end
2236
3641
 
2237
3642
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2238
3643
  metadata[:"x-goog-request-params"] ||= request_params_header
2239
3644
 
2240
- options.apply_defaults timeout: @config.rpcs.read_file.timeout,
3645
+ options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
2241
3646
  metadata: metadata,
2242
- retry_policy: @config.rpcs.read_file.retry_policy
3647
+ retry_policy: @config.rpcs.get_compilation_result.retry_policy
2243
3648
 
2244
3649
  options.apply_defaults timeout: @config.timeout,
2245
3650
  metadata: @config.metadata,
2246
3651
  retry_policy: @config.retry_policy
2247
3652
 
2248
- @dataform_stub.call_rpc :read_file, request, options: options do |response, operation|
3653
+ @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation|
2249
3654
  yield response, operation if block_given?
2250
3655
  return response
2251
3656
  end
@@ -2254,33 +3659,34 @@ module Google
2254
3659
  end
2255
3660
 
2256
3661
  ##
2257
- # Deletes a file (inside a Workspace).
3662
+ # Creates a new CompilationResult in a given project and location.
2258
3663
  #
2259
- # @overload remove_file(request, options = nil)
2260
- # Pass arguments to `remove_file` via a request object, either of type
2261
- # {::Google::Cloud::Dataform::V1beta1::RemoveFileRequest} or an equivalent Hash.
3664
+ # @overload create_compilation_result(request, options = nil)
3665
+ # Pass arguments to `create_compilation_result` via a request object, either of type
3666
+ # {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
2262
3667
  #
2263
- # @param request [::Google::Cloud::Dataform::V1beta1::RemoveFileRequest, ::Hash]
3668
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
2264
3669
  # A request object representing the call parameters. Required. To specify no
2265
3670
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2266
3671
  # @param options [::Gapic::CallOptions, ::Hash]
2267
3672
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2268
3673
  #
2269
- # @overload remove_file(workspace: nil, path: nil)
2270
- # Pass arguments to `remove_file` via keyword arguments. Note that at
3674
+ # @overload create_compilation_result(parent: nil, compilation_result: nil)
3675
+ # Pass arguments to `create_compilation_result` via keyword arguments. Note that at
2271
3676
  # least one keyword argument is required. To specify no parameters, or to keep all
2272
3677
  # the default parameter values, pass an empty Hash as a request object (see above).
2273
3678
  #
2274
- # @param workspace [::String]
2275
- # Required. The workspace's name.
2276
- # @param path [::String]
2277
- # Required. The file's full path including filename, relative to the workspace root.
3679
+ # @param parent [::String]
3680
+ # Required. The repository in which to create the compilation result. Must be
3681
+ # in the format `projects/*/locations/*/repositories/*`.
3682
+ # @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
3683
+ # Required. The compilation result to create.
2278
3684
  #
2279
3685
  # @yield [response, operation] Access the result along with the RPC operation
2280
- # @yieldparam response [::Google::Protobuf::Empty]
3686
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2281
3687
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2282
3688
  #
2283
- # @return [::Google::Protobuf::Empty]
3689
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2284
3690
  #
2285
3691
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2286
3692
  #
@@ -2291,24 +3697,24 @@ module Google
2291
3697
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2292
3698
  #
2293
3699
  # # Create a request. To set request fields, pass in keyword arguments.
2294
- # request = Google::Cloud::Dataform::V1beta1::RemoveFileRequest.new
3700
+ # request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
2295
3701
  #
2296
- # # Call the remove_file method.
2297
- # result = client.remove_file request
3702
+ # # Call the create_compilation_result method.
3703
+ # result = client.create_compilation_result request
2298
3704
  #
2299
- # # The returned object is of type Google::Protobuf::Empty.
3705
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
2300
3706
  # p result
2301
3707
  #
2302
- def remove_file request, options = nil
3708
+ def create_compilation_result request, options = nil
2303
3709
  raise ::ArgumentError, "request must be provided" if request.nil?
2304
3710
 
2305
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveFileRequest
3711
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
2306
3712
 
2307
3713
  # Converts hash and nil to an options object
2308
3714
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2309
3715
 
2310
3716
  # Customize the options with defaults
2311
- metadata = @config.rpcs.remove_file.metadata.to_h
3717
+ metadata = @config.rpcs.create_compilation_result.metadata.to_h
2312
3718
 
2313
3719
  # Set x-goog-api-client and x-goog-user-project headers
2314
3720
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2317,22 +3723,22 @@ module Google
2317
3723
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2318
3724
 
2319
3725
  header_params = {}
2320
- if request.workspace
2321
- header_params["workspace"] = request.workspace
3726
+ if request.parent
3727
+ header_params["parent"] = request.parent
2322
3728
  end
2323
3729
 
2324
3730
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2325
3731
  metadata[:"x-goog-request-params"] ||= request_params_header
2326
3732
 
2327
- options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
3733
+ options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
2328
3734
  metadata: metadata,
2329
- retry_policy: @config.rpcs.remove_file.retry_policy
3735
+ retry_policy: @config.rpcs.create_compilation_result.retry_policy
2330
3736
 
2331
3737
  options.apply_defaults timeout: @config.timeout,
2332
3738
  metadata: @config.metadata,
2333
3739
  retry_policy: @config.retry_policy
2334
3740
 
2335
- @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation|
3741
+ @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation|
2336
3742
  yield response, operation if block_given?
2337
3743
  return response
2338
3744
  end
@@ -2341,35 +3747,46 @@ module Google
2341
3747
  end
2342
3748
 
2343
3749
  ##
2344
- # Moves a file (inside a Workspace) to a new location.
3750
+ # Returns CompilationResultActions in a given CompilationResult.
2345
3751
  #
2346
- # @overload move_file(request, options = nil)
2347
- # Pass arguments to `move_file` via a request object, either of type
2348
- # {::Google::Cloud::Dataform::V1beta1::MoveFileRequest} or an equivalent Hash.
3752
+ # @overload query_compilation_result_actions(request, options = nil)
3753
+ # Pass arguments to `query_compilation_result_actions` via a request object, either of type
3754
+ # {::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest} or an equivalent Hash.
2349
3755
  #
2350
- # @param request [::Google::Cloud::Dataform::V1beta1::MoveFileRequest, ::Hash]
3756
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest, ::Hash]
2351
3757
  # A request object representing the call parameters. Required. To specify no
2352
3758
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2353
3759
  # @param options [::Gapic::CallOptions, ::Hash]
2354
3760
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2355
3761
  #
2356
- # @overload move_file(workspace: nil, path: nil, new_path: nil)
2357
- # Pass arguments to `move_file` via keyword arguments. Note that at
3762
+ # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil)
3763
+ # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at
2358
3764
  # least one keyword argument is required. To specify no parameters, or to keep all
2359
3765
  # the default parameter values, pass an empty Hash as a request object (see above).
2360
3766
  #
2361
- # @param workspace [::String]
2362
- # Required. The workspace's name.
2363
- # @param path [::String]
2364
- # Required. The file's full path including filename, relative to the workspace root.
2365
- # @param new_path [::String]
2366
- # Required. The file's new path including filename, relative to the workspace root.
3767
+ # @param name [::String]
3768
+ # Required. The compilation result's name.
3769
+ # @param page_size [::Integer]
3770
+ # Optional. Maximum number of compilation results to return. The server may
3771
+ # return fewer items than requested. If unspecified, the server will pick an
3772
+ # appropriate default.
3773
+ # @param page_token [::String]
3774
+ # Optional. Page token received from a previous
3775
+ # `QueryCompilationResultActions` call. Provide this to retrieve the
3776
+ # subsequent page.
3777
+ #
3778
+ # When paginating, all other parameters provided to
3779
+ # `QueryCompilationResultActions` must match the call that provided the page
3780
+ # token.
3781
+ # @param filter [::String]
3782
+ # Optional. Optional filter for the returned list. Filtering is only
3783
+ # currently supported on the `file_path` field.
2367
3784
  #
2368
3785
  # @yield [response, operation] Access the result along with the RPC operation
2369
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
3786
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
2370
3787
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2371
3788
  #
2372
- # @return [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
3789
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
2373
3790
  #
2374
3791
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2375
3792
  #
@@ -2380,24 +3797,28 @@ module Google
2380
3797
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2381
3798
  #
2382
3799
  # # Create a request. To set request fields, pass in keyword arguments.
2383
- # request = Google::Cloud::Dataform::V1beta1::MoveFileRequest.new
2384
- #
2385
- # # Call the move_file method.
2386
- # result = client.move_file request
3800
+ # request = Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest.new
2387
3801
  #
2388
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveFileResponse.
2389
- # p result
3802
+ # # Call the query_compilation_result_actions method.
3803
+ # result = client.query_compilation_result_actions request
2390
3804
  #
2391
- def move_file request, options = nil
3805
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3806
+ # # over elements, and API calls will be issued to fetch pages as needed.
3807
+ # result.each do |item|
3808
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResultAction.
3809
+ # p item
3810
+ # end
3811
+ #
3812
+ def query_compilation_result_actions request, options = nil
2392
3813
  raise ::ArgumentError, "request must be provided" if request.nil?
2393
3814
 
2394
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFileRequest
3815
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest
2395
3816
 
2396
3817
  # Converts hash and nil to an options object
2397
3818
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2398
3819
 
2399
3820
  # Customize the options with defaults
2400
- metadata = @config.rpcs.move_file.metadata.to_h
3821
+ metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
2401
3822
 
2402
3823
  # Set x-goog-api-client and x-goog-user-project headers
2403
3824
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2406,22 +3827,23 @@ module Google
2406
3827
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2407
3828
 
2408
3829
  header_params = {}
2409
- if request.workspace
2410
- header_params["workspace"] = request.workspace
3830
+ if request.name
3831
+ header_params["name"] = request.name
2411
3832
  end
2412
3833
 
2413
3834
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2414
3835
  metadata[:"x-goog-request-params"] ||= request_params_header
2415
3836
 
2416
- options.apply_defaults timeout: @config.rpcs.move_file.timeout,
3837
+ options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
2417
3838
  metadata: metadata,
2418
- retry_policy: @config.rpcs.move_file.retry_policy
3839
+ retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy
2419
3840
 
2420
3841
  options.apply_defaults timeout: @config.timeout,
2421
3842
  metadata: @config.metadata,
2422
3843
  retry_policy: @config.retry_policy
2423
3844
 
2424
- @dataform_stub.call_rpc :move_file, request, options: options do |response, operation|
3845
+ @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation|
3846
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options
2425
3847
  yield response, operation if block_given?
2426
3848
  return response
2427
3849
  end
@@ -2430,35 +3852,42 @@ module Google
2430
3852
  end
2431
3853
 
2432
3854
  ##
2433
- # Writes to a file (inside a Workspace).
3855
+ # Lists WorkflowConfigs in a given Repository.
2434
3856
  #
2435
- # @overload write_file(request, options = nil)
2436
- # Pass arguments to `write_file` via a request object, either of type
2437
- # {::Google::Cloud::Dataform::V1beta1::WriteFileRequest} or an equivalent Hash.
3857
+ # @overload list_workflow_configs(request, options = nil)
3858
+ # Pass arguments to `list_workflow_configs` via a request object, either of type
3859
+ # {::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest} or an equivalent Hash.
2438
3860
  #
2439
- # @param request [::Google::Cloud::Dataform::V1beta1::WriteFileRequest, ::Hash]
3861
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest, ::Hash]
2440
3862
  # A request object representing the call parameters. Required. To specify no
2441
3863
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2442
3864
  # @param options [::Gapic::CallOptions, ::Hash]
2443
3865
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2444
3866
  #
2445
- # @overload write_file(workspace: nil, path: nil, contents: nil)
2446
- # Pass arguments to `write_file` via keyword arguments. Note that at
3867
+ # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil)
3868
+ # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at
2447
3869
  # least one keyword argument is required. To specify no parameters, or to keep all
2448
3870
  # the default parameter values, pass an empty Hash as a request object (see above).
2449
3871
  #
2450
- # @param workspace [::String]
2451
- # Required. The workspace's name.
2452
- # @param path [::String]
2453
- # Required. The file.
2454
- # @param contents [::String]
2455
- # Required. The file's contents.
3872
+ # @param parent [::String]
3873
+ # Required. The repository in which to list workflow configs. Must be in the
3874
+ # format `projects/*/locations/*/repositories/*`.
3875
+ # @param page_size [::Integer]
3876
+ # Optional. Maximum number of workflow configs to return. The server may
3877
+ # return fewer items than requested. If unspecified, the server will pick an
3878
+ # appropriate default.
3879
+ # @param page_token [::String]
3880
+ # Optional. Page token received from a previous `ListWorkflowConfigs` call.
3881
+ # Provide this to retrieve the subsequent page.
3882
+ #
3883
+ # When paginating, all other parameters provided to `ListWorkflowConfigs`
3884
+ # must match the call that provided the page token.
2456
3885
  #
2457
3886
  # @yield [response, operation] Access the result along with the RPC operation
2458
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
3887
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowConfig>]
2459
3888
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2460
3889
  #
2461
- # @return [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
3890
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowConfig>]
2462
3891
  #
2463
3892
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2464
3893
  #
@@ -2469,24 +3898,28 @@ module Google
2469
3898
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2470
3899
  #
2471
3900
  # # Create a request. To set request fields, pass in keyword arguments.
2472
- # request = Google::Cloud::Dataform::V1beta1::WriteFileRequest.new
3901
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest.new
2473
3902
  #
2474
- # # Call the write_file method.
2475
- # result = client.write_file request
3903
+ # # Call the list_workflow_configs method.
3904
+ # result = client.list_workflow_configs request
2476
3905
  #
2477
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::WriteFileResponse.
2478
- # p result
3906
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3907
+ # # over elements, and API calls will be issued to fetch pages as needed.
3908
+ # result.each do |item|
3909
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::WorkflowConfig.
3910
+ # p item
3911
+ # end
2479
3912
  #
2480
- def write_file request, options = nil
3913
+ def list_workflow_configs request, options = nil
2481
3914
  raise ::ArgumentError, "request must be provided" if request.nil?
2482
3915
 
2483
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::WriteFileRequest
3916
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest
2484
3917
 
2485
3918
  # Converts hash and nil to an options object
2486
3919
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2487
3920
 
2488
3921
  # Customize the options with defaults
2489
- metadata = @config.rpcs.write_file.metadata.to_h
3922
+ metadata = @config.rpcs.list_workflow_configs.metadata.to_h
2490
3923
 
2491
3924
  # Set x-goog-api-client and x-goog-user-project headers
2492
3925
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2495,22 +3928,23 @@ module Google
2495
3928
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2496
3929
 
2497
3930
  header_params = {}
2498
- if request.workspace
2499
- header_params["workspace"] = request.workspace
3931
+ if request.parent
3932
+ header_params["parent"] = request.parent
2500
3933
  end
2501
3934
 
2502
3935
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2503
3936
  metadata[:"x-goog-request-params"] ||= request_params_header
2504
3937
 
2505
- options.apply_defaults timeout: @config.rpcs.write_file.timeout,
3938
+ options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout,
2506
3939
  metadata: metadata,
2507
- retry_policy: @config.rpcs.write_file.retry_policy
3940
+ retry_policy: @config.rpcs.list_workflow_configs.retry_policy
2508
3941
 
2509
3942
  options.apply_defaults timeout: @config.timeout,
2510
3943
  metadata: @config.metadata,
2511
3944
  retry_policy: @config.retry_policy
2512
3945
 
2513
- @dataform_stub.call_rpc :write_file, request, options: options do |response, operation|
3946
+ @dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation|
3947
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options
2514
3948
  yield response, operation if block_given?
2515
3949
  return response
2516
3950
  end
@@ -2519,42 +3953,31 @@ module Google
2519
3953
  end
2520
3954
 
2521
3955
  ##
2522
- # Lists CompilationResults in a given Repository.
3956
+ # Fetches a single WorkflowConfig.
2523
3957
  #
2524
- # @overload list_compilation_results(request, options = nil)
2525
- # Pass arguments to `list_compilation_results` via a request object, either of type
2526
- # {::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest} or an equivalent Hash.
3958
+ # @overload get_workflow_config(request, options = nil)
3959
+ # Pass arguments to `get_workflow_config` via a request object, either of type
3960
+ # {::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest} or an equivalent Hash.
2527
3961
  #
2528
- # @param request [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest, ::Hash]
3962
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest, ::Hash]
2529
3963
  # A request object representing the call parameters. Required. To specify no
2530
3964
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2531
3965
  # @param options [::Gapic::CallOptions, ::Hash]
2532
3966
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2533
3967
  #
2534
- # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil)
2535
- # Pass arguments to `list_compilation_results` via keyword arguments. Note that at
3968
+ # @overload get_workflow_config(name: nil)
3969
+ # Pass arguments to `get_workflow_config` via keyword arguments. Note that at
2536
3970
  # least one keyword argument is required. To specify no parameters, or to keep all
2537
3971
  # the default parameter values, pass an empty Hash as a request object (see above).
2538
3972
  #
2539
- # @param parent [::String]
2540
- # Required. The repository in which to list compilation results. Must be in the
2541
- # format `projects/*/locations/*/repositories/*`.
2542
- # @param page_size [::Integer]
2543
- # Optional. Maximum number of compilation results to return. The server may return
2544
- # fewer items than requested. If unspecified, the server will pick an
2545
- # appropriate default.
2546
- # @param page_token [::String]
2547
- # Optional. Page token received from a previous `ListCompilationResults` call.
2548
- # Provide this to retrieve the subsequent page.
2549
- #
2550
- # When paginating, all other parameters provided to `ListCompilationResults`
2551
- # must match the call that provided the page token.
3973
+ # @param name [::String]
3974
+ # Required. The workflow config's name.
2552
3975
  #
2553
3976
  # @yield [response, operation] Access the result along with the RPC operation
2554
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResult>]
3977
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2555
3978
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2556
3979
  #
2557
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResult>]
3980
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2558
3981
  #
2559
3982
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2560
3983
  #
@@ -2565,28 +3988,24 @@ module Google
2565
3988
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2566
3989
  #
2567
3990
  # # Create a request. To set request fields, pass in keyword arguments.
2568
- # request = Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest.new
3991
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest.new
2569
3992
  #
2570
- # # Call the list_compilation_results method.
2571
- # result = client.list_compilation_results request
3993
+ # # Call the get_workflow_config method.
3994
+ # result = client.get_workflow_config request
2572
3995
  #
2573
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2574
- # # over elements, and API calls will be issued to fetch pages as needed.
2575
- # result.each do |item|
2576
- # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResult.
2577
- # p item
2578
- # end
3996
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
3997
+ # p result
2579
3998
  #
2580
- def list_compilation_results request, options = nil
3999
+ def get_workflow_config request, options = nil
2581
4000
  raise ::ArgumentError, "request must be provided" if request.nil?
2582
4001
 
2583
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest
4002
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest
2584
4003
 
2585
4004
  # Converts hash and nil to an options object
2586
4005
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2587
4006
 
2588
4007
  # Customize the options with defaults
2589
- metadata = @config.rpcs.list_compilation_results.metadata.to_h
4008
+ metadata = @config.rpcs.get_workflow_config.metadata.to_h
2590
4009
 
2591
4010
  # Set x-goog-api-client and x-goog-user-project headers
2592
4011
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2595,23 +4014,22 @@ module Google
2595
4014
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2596
4015
 
2597
4016
  header_params = {}
2598
- if request.parent
2599
- header_params["parent"] = request.parent
4017
+ if request.name
4018
+ header_params["name"] = request.name
2600
4019
  end
2601
4020
 
2602
4021
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2603
4022
  metadata[:"x-goog-request-params"] ||= request_params_header
2604
4023
 
2605
- options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
4024
+ options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout,
2606
4025
  metadata: metadata,
2607
- retry_policy: @config.rpcs.list_compilation_results.retry_policy
4026
+ retry_policy: @config.rpcs.get_workflow_config.retry_policy
2608
4027
 
2609
4028
  options.apply_defaults timeout: @config.timeout,
2610
4029
  metadata: @config.metadata,
2611
4030
  retry_policy: @config.retry_policy
2612
4031
 
2613
- @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation|
2614
- response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options
4032
+ @dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation|
2615
4033
  yield response, operation if block_given?
2616
4034
  return response
2617
4035
  end
@@ -2620,31 +4038,37 @@ module Google
2620
4038
  end
2621
4039
 
2622
4040
  ##
2623
- # Fetches a single CompilationResult.
4041
+ # Creates a new WorkflowConfig in a given Repository.
2624
4042
  #
2625
- # @overload get_compilation_result(request, options = nil)
2626
- # Pass arguments to `get_compilation_result` via a request object, either of type
2627
- # {::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest} or an equivalent Hash.
4043
+ # @overload create_workflow_config(request, options = nil)
4044
+ # Pass arguments to `create_workflow_config` via a request object, either of type
4045
+ # {::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest} or an equivalent Hash.
2628
4046
  #
2629
- # @param request [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest, ::Hash]
4047
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest, ::Hash]
2630
4048
  # A request object representing the call parameters. Required. To specify no
2631
4049
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2632
4050
  # @param options [::Gapic::CallOptions, ::Hash]
2633
4051
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2634
4052
  #
2635
- # @overload get_compilation_result(name: nil)
2636
- # Pass arguments to `get_compilation_result` via keyword arguments. Note that at
4053
+ # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil)
4054
+ # Pass arguments to `create_workflow_config` via keyword arguments. Note that at
2637
4055
  # least one keyword argument is required. To specify no parameters, or to keep all
2638
4056
  # the default parameter values, pass an empty Hash as a request object (see above).
2639
4057
  #
2640
- # @param name [::String]
2641
- # Required. The compilation result's name.
4058
+ # @param parent [::String]
4059
+ # Required. The repository in which to create the workflow config. Must be in
4060
+ # the format `projects/*/locations/*/repositories/*`.
4061
+ # @param workflow_config [::Google::Cloud::Dataform::V1beta1::WorkflowConfig, ::Hash]
4062
+ # Required. The workflow config to create.
4063
+ # @param workflow_config_id [::String]
4064
+ # Required. The ID to use for the workflow config, which will become the
4065
+ # final component of the workflow config's resource name.
2642
4066
  #
2643
4067
  # @yield [response, operation] Access the result along with the RPC operation
2644
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::CompilationResult]
4068
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2645
4069
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2646
4070
  #
2647
- # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
4071
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2648
4072
  #
2649
4073
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2650
4074
  #
@@ -2655,24 +4079,24 @@ module Google
2655
4079
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2656
4080
  #
2657
4081
  # # Create a request. To set request fields, pass in keyword arguments.
2658
- # request = Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest.new
4082
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest.new
2659
4083
  #
2660
- # # Call the get_compilation_result method.
2661
- # result = client.get_compilation_result request
4084
+ # # Call the create_workflow_config method.
4085
+ # result = client.create_workflow_config request
2662
4086
  #
2663
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
4087
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
2664
4088
  # p result
2665
4089
  #
2666
- def get_compilation_result request, options = nil
4090
+ def create_workflow_config request, options = nil
2667
4091
  raise ::ArgumentError, "request must be provided" if request.nil?
2668
4092
 
2669
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest
4093
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest
2670
4094
 
2671
4095
  # Converts hash and nil to an options object
2672
4096
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2673
4097
 
2674
4098
  # Customize the options with defaults
2675
- metadata = @config.rpcs.get_compilation_result.metadata.to_h
4099
+ metadata = @config.rpcs.create_workflow_config.metadata.to_h
2676
4100
 
2677
4101
  # Set x-goog-api-client and x-goog-user-project headers
2678
4102
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2681,22 +4105,22 @@ module Google
2681
4105
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2682
4106
 
2683
4107
  header_params = {}
2684
- if request.name
2685
- header_params["name"] = request.name
4108
+ if request.parent
4109
+ header_params["parent"] = request.parent
2686
4110
  end
2687
4111
 
2688
4112
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2689
4113
  metadata[:"x-goog-request-params"] ||= request_params_header
2690
4114
 
2691
- options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
4115
+ options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout,
2692
4116
  metadata: metadata,
2693
- retry_policy: @config.rpcs.get_compilation_result.retry_policy
4117
+ retry_policy: @config.rpcs.create_workflow_config.retry_policy
2694
4118
 
2695
4119
  options.apply_defaults timeout: @config.timeout,
2696
4120
  metadata: @config.metadata,
2697
4121
  retry_policy: @config.retry_policy
2698
4122
 
2699
- @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation|
4123
+ @dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation|
2700
4124
  yield response, operation if block_given?
2701
4125
  return response
2702
4126
  end
@@ -2705,34 +4129,34 @@ module Google
2705
4129
  end
2706
4130
 
2707
4131
  ##
2708
- # Creates a new CompilationResult in a given project and location.
4132
+ # Updates a single WorkflowConfig.
2709
4133
  #
2710
- # @overload create_compilation_result(request, options = nil)
2711
- # Pass arguments to `create_compilation_result` via a request object, either of type
2712
- # {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
4134
+ # @overload update_workflow_config(request, options = nil)
4135
+ # Pass arguments to `update_workflow_config` via a request object, either of type
4136
+ # {::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest} or an equivalent Hash.
2713
4137
  #
2714
- # @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
4138
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest, ::Hash]
2715
4139
  # A request object representing the call parameters. Required. To specify no
2716
4140
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2717
4141
  # @param options [::Gapic::CallOptions, ::Hash]
2718
4142
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2719
4143
  #
2720
- # @overload create_compilation_result(parent: nil, compilation_result: nil)
2721
- # Pass arguments to `create_compilation_result` via keyword arguments. Note that at
4144
+ # @overload update_workflow_config(update_mask: nil, workflow_config: nil)
4145
+ # Pass arguments to `update_workflow_config` via keyword arguments. Note that at
2722
4146
  # least one keyword argument is required. To specify no parameters, or to keep all
2723
4147
  # the default parameter values, pass an empty Hash as a request object (see above).
2724
4148
  #
2725
- # @param parent [::String]
2726
- # Required. The repository in which to create the compilation result. Must be in the
2727
- # format `projects/*/locations/*/repositories/*`.
2728
- # @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
2729
- # Required. The compilation result to create.
4149
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4150
+ # Optional. Specifies the fields to be updated in the workflow config. If
4151
+ # left unset, all fields will be updated.
4152
+ # @param workflow_config [::Google::Cloud::Dataform::V1beta1::WorkflowConfig, ::Hash]
4153
+ # Required. The workflow config to update.
2730
4154
  #
2731
4155
  # @yield [response, operation] Access the result along with the RPC operation
2732
- # @yieldparam response [::Google::Cloud::Dataform::V1beta1::CompilationResult]
4156
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2733
4157
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2734
4158
  #
2735
- # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
4159
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
2736
4160
  #
2737
4161
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2738
4162
  #
@@ -2743,24 +4167,24 @@ module Google
2743
4167
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2744
4168
  #
2745
4169
  # # Create a request. To set request fields, pass in keyword arguments.
2746
- # request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
4170
+ # request = Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest.new
2747
4171
  #
2748
- # # Call the create_compilation_result method.
2749
- # result = client.create_compilation_result request
4172
+ # # Call the update_workflow_config method.
4173
+ # result = client.update_workflow_config request
2750
4174
  #
2751
- # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
4175
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowConfig.
2752
4176
  # p result
2753
4177
  #
2754
- def create_compilation_result request, options = nil
4178
+ def update_workflow_config request, options = nil
2755
4179
  raise ::ArgumentError, "request must be provided" if request.nil?
2756
4180
 
2757
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
4181
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest
2758
4182
 
2759
4183
  # Converts hash and nil to an options object
2760
4184
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2761
4185
 
2762
4186
  # Customize the options with defaults
2763
- metadata = @config.rpcs.create_compilation_result.metadata.to_h
4187
+ metadata = @config.rpcs.update_workflow_config.metadata.to_h
2764
4188
 
2765
4189
  # Set x-goog-api-client and x-goog-user-project headers
2766
4190
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2769,22 +4193,22 @@ module Google
2769
4193
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2770
4194
 
2771
4195
  header_params = {}
2772
- if request.parent
2773
- header_params["parent"] = request.parent
4196
+ if request.workflow_config&.name
4197
+ header_params["workflow_config.name"] = request.workflow_config.name
2774
4198
  end
2775
4199
 
2776
4200
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2777
4201
  metadata[:"x-goog-request-params"] ||= request_params_header
2778
4202
 
2779
- options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
4203
+ options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout,
2780
4204
  metadata: metadata,
2781
- retry_policy: @config.rpcs.create_compilation_result.retry_policy
4205
+ retry_policy: @config.rpcs.update_workflow_config.retry_policy
2782
4206
 
2783
4207
  options.apply_defaults timeout: @config.timeout,
2784
4208
  metadata: @config.metadata,
2785
4209
  retry_policy: @config.retry_policy
2786
4210
 
2787
- @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation|
4211
+ @dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation|
2788
4212
  yield response, operation if block_given?
2789
4213
  return response
2790
4214
  end
@@ -2793,45 +4217,31 @@ module Google
2793
4217
  end
2794
4218
 
2795
4219
  ##
2796
- # Returns CompilationResultActions in a given CompilationResult.
4220
+ # Deletes a single WorkflowConfig.
2797
4221
  #
2798
- # @overload query_compilation_result_actions(request, options = nil)
2799
- # Pass arguments to `query_compilation_result_actions` via a request object, either of type
2800
- # {::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest} or an equivalent Hash.
4222
+ # @overload delete_workflow_config(request, options = nil)
4223
+ # Pass arguments to `delete_workflow_config` via a request object, either of type
4224
+ # {::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest} or an equivalent Hash.
2801
4225
  #
2802
- # @param request [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest, ::Hash]
4226
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest, ::Hash]
2803
4227
  # A request object representing the call parameters. Required. To specify no
2804
4228
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2805
4229
  # @param options [::Gapic::CallOptions, ::Hash]
2806
4230
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2807
4231
  #
2808
- # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil)
2809
- # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at
4232
+ # @overload delete_workflow_config(name: nil)
4233
+ # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at
2810
4234
  # least one keyword argument is required. To specify no parameters, or to keep all
2811
4235
  # the default parameter values, pass an empty Hash as a request object (see above).
2812
4236
  #
2813
4237
  # @param name [::String]
2814
- # Required. The compilation result's name.
2815
- # @param page_size [::Integer]
2816
- # Optional. Maximum number of compilation results to return. The server may return
2817
- # fewer items than requested. If unspecified, the server will pick an
2818
- # appropriate default.
2819
- # @param page_token [::String]
2820
- # Optional. Page token received from a previous `QueryCompilationResultActions` call.
2821
- # Provide this to retrieve the subsequent page.
2822
- #
2823
- # When paginating, all other parameters provided to
2824
- # `QueryCompilationResultActions` must match the call that provided the page
2825
- # token.
2826
- # @param filter [::String]
2827
- # Optional. Optional filter for the returned list. Filtering is only currently
2828
- # supported on the `file_path` field.
4238
+ # Required. The workflow config's name.
2829
4239
  #
2830
4240
  # @yield [response, operation] Access the result along with the RPC operation
2831
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
4241
+ # @yieldparam response [::Google::Protobuf::Empty]
2832
4242
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2833
4243
  #
2834
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
4244
+ # @return [::Google::Protobuf::Empty]
2835
4245
  #
2836
4246
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2837
4247
  #
@@ -2842,28 +4252,24 @@ module Google
2842
4252
  # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2843
4253
  #
2844
4254
  # # Create a request. To set request fields, pass in keyword arguments.
2845
- # request = Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest.new
4255
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest.new
2846
4256
  #
2847
- # # Call the query_compilation_result_actions method.
2848
- # result = client.query_compilation_result_actions request
4257
+ # # Call the delete_workflow_config method.
4258
+ # result = client.delete_workflow_config request
2849
4259
  #
2850
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2851
- # # over elements, and API calls will be issued to fetch pages as needed.
2852
- # result.each do |item|
2853
- # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResultAction.
2854
- # p item
2855
- # end
4260
+ # # The returned object is of type Google::Protobuf::Empty.
4261
+ # p result
2856
4262
  #
2857
- def query_compilation_result_actions request, options = nil
4263
+ def delete_workflow_config request, options = nil
2858
4264
  raise ::ArgumentError, "request must be provided" if request.nil?
2859
4265
 
2860
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest
4266
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest
2861
4267
 
2862
4268
  # Converts hash and nil to an options object
2863
4269
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2864
4270
 
2865
4271
  # Customize the options with defaults
2866
- metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
4272
+ metadata = @config.rpcs.delete_workflow_config.metadata.to_h
2867
4273
 
2868
4274
  # Set x-goog-api-client and x-goog-user-project headers
2869
4275
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2879,16 +4285,15 @@ module Google
2879
4285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2880
4286
  metadata[:"x-goog-request-params"] ||= request_params_header
2881
4287
 
2882
- options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
4288
+ options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout,
2883
4289
  metadata: metadata,
2884
- retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy
4290
+ retry_policy: @config.rpcs.delete_workflow_config.retry_policy
2885
4291
 
2886
4292
  options.apply_defaults timeout: @config.timeout,
2887
4293
  metadata: @config.metadata,
2888
4294
  retry_policy: @config.retry_policy
2889
4295
 
2890
- @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation|
2891
- response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options
4296
+ @dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation|
2892
4297
  yield response, operation if block_given?
2893
4298
  return response
2894
4299
  end
@@ -2909,24 +4314,30 @@ module Google
2909
4314
  # @param options [::Gapic::CallOptions, ::Hash]
2910
4315
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2911
4316
  #
2912
- # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil)
4317
+ # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
2913
4318
  # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at
2914
4319
  # least one keyword argument is required. To specify no parameters, or to keep all
2915
4320
  # the default parameter values, pass an empty Hash as a request object (see above).
2916
4321
  #
2917
4322
  # @param parent [::String]
2918
- # Required. The parent resource of the WorkflowInvocation type. Must be in the
2919
- # format `projects/*/locations/*/repositories/*`.
4323
+ # Required. The parent resource of the WorkflowInvocation type. Must be in
4324
+ # the format `projects/*/locations/*/repositories/*`.
2920
4325
  # @param page_size [::Integer]
2921
- # Optional. Maximum number of workflow invocations to return. The server may return
2922
- # fewer items than requested. If unspecified, the server will pick an
4326
+ # Optional. Maximum number of workflow invocations to return. The server may
4327
+ # return fewer items than requested. If unspecified, the server will pick an
2923
4328
  # appropriate default.
2924
4329
  # @param page_token [::String]
2925
- # Optional. Page token received from a previous `ListWorkflowInvocations` call.
2926
- # Provide this to retrieve the subsequent page.
4330
+ # Optional. Page token received from a previous `ListWorkflowInvocations`
4331
+ # call. Provide this to retrieve the subsequent page.
2927
4332
  #
2928
4333
  # When paginating, all other parameters provided to `ListWorkflowInvocations`
2929
4334
  # must match the call that provided the page token.
4335
+ # @param order_by [::String]
4336
+ # Optional. This field only supports ordering by `name`. If unspecified, the
4337
+ # server will choose the ordering. If specified, the default order is
4338
+ # ascending for the `name` field.
4339
+ # @param filter [::String]
4340
+ # Optional. Filter for the returned list.
2930
4341
  #
2931
4342
  # @yield [response, operation] Access the result along with the RPC operation
2932
4343
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowInvocation>]
@@ -3101,8 +4512,8 @@ module Google
3101
4512
  # the default parameter values, pass an empty Hash as a request object (see above).
3102
4513
  #
3103
4514
  # @param parent [::String]
3104
- # Required. The repository in which to create the workflow invocation. Must be in the
3105
- # format `projects/*/locations/*/repositories/*`.
4515
+ # Required. The repository in which to create the workflow invocation. Must
4516
+ # be in the format `projects/*/locations/*/repositories/*`.
3106
4517
  # @param workflow_invocation [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation, ::Hash]
3107
4518
  # Required. The workflow invocation resource to create.
3108
4519
  #
@@ -3361,12 +4772,13 @@ module Google
3361
4772
  # @param name [::String]
3362
4773
  # Required. The workflow invocation's name.
3363
4774
  # @param page_size [::Integer]
3364
- # Optional. Maximum number of workflow invocations to return. The server may return
3365
- # fewer items than requested. If unspecified, the server will pick an
4775
+ # Optional. Maximum number of workflow invocations to return. The server may
4776
+ # return fewer items than requested. If unspecified, the server will pick an
3366
4777
  # appropriate default.
3367
4778
  # @param page_token [::String]
3368
- # Optional. Page token received from a previous `QueryWorkflowInvocationActions` call.
3369
- # Provide this to retrieve the subsequent page.
4779
+ # Optional. Page token received from a previous
4780
+ # `QueryWorkflowInvocationActions` call. Provide this to retrieve the
4781
+ # subsequent page.
3370
4782
  #
3371
4783
  # When paginating, all other parameters provided to
3372
4784
  # `QueryWorkflowInvocationActions` must match the call that provided the page
@@ -3471,9 +4883,9 @@ module Google
3471
4883
  # end
3472
4884
  #
3473
4885
  # @!attribute [rw] endpoint
3474
- # The hostname or hostname:port of the service endpoint.
3475
- # Defaults to `"dataform.googleapis.com"`.
3476
- # @return [::String]
4886
+ # A custom service endpoint, as a hostname or hostname:port. The default is
4887
+ # nil, indicating to use the default endpoint in the current universe domain.
4888
+ # @return [::String,nil]
3477
4889
  # @!attribute [rw] credentials
3478
4890
  # Credentials to send with calls. You may provide any of the following types:
3479
4891
  # * (`String`) The path to a service account key file in JSON format
@@ -3519,13 +4931,20 @@ module Google
3519
4931
  # @!attribute [rw] quota_project
3520
4932
  # A separate project against which to charge quota.
3521
4933
  # @return [::String]
4934
+ # @!attribute [rw] universe_domain
4935
+ # The universe domain within which to make requests. This determines the
4936
+ # default endpoint URL. The default value of nil uses the environment
4937
+ # universe (usually the default "googleapis.com" universe).
4938
+ # @return [::String,nil]
3522
4939
  #
3523
4940
  class Configuration
3524
4941
  extend ::Gapic::Config
3525
4942
 
4943
+ # @private
4944
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
3526
4945
  DEFAULT_ENDPOINT = "dataform.googleapis.com"
3527
4946
 
3528
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
4947
+ config_attr :endpoint, nil, ::String, nil
3529
4948
  config_attr :credentials, nil do |value|
3530
4949
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3531
4950
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -3540,6 +4959,7 @@ module Google
3540
4959
  config_attr :metadata, nil, ::Hash, nil
3541
4960
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3542
4961
  config_attr :quota_project, nil, ::String, nil
4962
+ config_attr :universe_domain, nil, ::String, nil
3543
4963
 
3544
4964
  # @private
3545
4965
  def initialize parent_config = nil
@@ -3612,6 +5032,31 @@ module Google
3612
5032
  #
3613
5033
  attr_reader :delete_repository
3614
5034
  ##
5035
+ # RPC-specific configuration for `commit_repository_changes`
5036
+ # @return [::Gapic::Config::Method]
5037
+ #
5038
+ attr_reader :commit_repository_changes
5039
+ ##
5040
+ # RPC-specific configuration for `read_repository_file`
5041
+ # @return [::Gapic::Config::Method]
5042
+ #
5043
+ attr_reader :read_repository_file
5044
+ ##
5045
+ # RPC-specific configuration for `query_repository_directory_contents`
5046
+ # @return [::Gapic::Config::Method]
5047
+ #
5048
+ attr_reader :query_repository_directory_contents
5049
+ ##
5050
+ # RPC-specific configuration for `fetch_repository_history`
5051
+ # @return [::Gapic::Config::Method]
5052
+ #
5053
+ attr_reader :fetch_repository_history
5054
+ ##
5055
+ # RPC-specific configuration for `compute_repository_access_token_status`
5056
+ # @return [::Gapic::Config::Method]
5057
+ #
5058
+ attr_reader :compute_repository_access_token_status
5059
+ ##
3615
5060
  # RPC-specific configuration for `fetch_remote_branches`
3616
5061
  # @return [::Gapic::Config::Method]
3617
5062
  #
@@ -3717,6 +5162,31 @@ module Google
3717
5162
  #
3718
5163
  attr_reader :write_file
3719
5164
  ##
5165
+ # RPC-specific configuration for `list_release_configs`
5166
+ # @return [::Gapic::Config::Method]
5167
+ #
5168
+ attr_reader :list_release_configs
5169
+ ##
5170
+ # RPC-specific configuration for `get_release_config`
5171
+ # @return [::Gapic::Config::Method]
5172
+ #
5173
+ attr_reader :get_release_config
5174
+ ##
5175
+ # RPC-specific configuration for `create_release_config`
5176
+ # @return [::Gapic::Config::Method]
5177
+ #
5178
+ attr_reader :create_release_config
5179
+ ##
5180
+ # RPC-specific configuration for `update_release_config`
5181
+ # @return [::Gapic::Config::Method]
5182
+ #
5183
+ attr_reader :update_release_config
5184
+ ##
5185
+ # RPC-specific configuration for `delete_release_config`
5186
+ # @return [::Gapic::Config::Method]
5187
+ #
5188
+ attr_reader :delete_release_config
5189
+ ##
3720
5190
  # RPC-specific configuration for `list_compilation_results`
3721
5191
  # @return [::Gapic::Config::Method]
3722
5192
  #
@@ -3737,6 +5207,31 @@ module Google
3737
5207
  #
3738
5208
  attr_reader :query_compilation_result_actions
3739
5209
  ##
5210
+ # RPC-specific configuration for `list_workflow_configs`
5211
+ # @return [::Gapic::Config::Method]
5212
+ #
5213
+ attr_reader :list_workflow_configs
5214
+ ##
5215
+ # RPC-specific configuration for `get_workflow_config`
5216
+ # @return [::Gapic::Config::Method]
5217
+ #
5218
+ attr_reader :get_workflow_config
5219
+ ##
5220
+ # RPC-specific configuration for `create_workflow_config`
5221
+ # @return [::Gapic::Config::Method]
5222
+ #
5223
+ attr_reader :create_workflow_config
5224
+ ##
5225
+ # RPC-specific configuration for `update_workflow_config`
5226
+ # @return [::Gapic::Config::Method]
5227
+ #
5228
+ attr_reader :update_workflow_config
5229
+ ##
5230
+ # RPC-specific configuration for `delete_workflow_config`
5231
+ # @return [::Gapic::Config::Method]
5232
+ #
5233
+ attr_reader :delete_workflow_config
5234
+ ##
3740
5235
  # RPC-specific configuration for `list_workflow_invocations`
3741
5236
  # @return [::Gapic::Config::Method]
3742
5237
  #
@@ -3779,6 +5274,16 @@ module Google
3779
5274
  @update_repository = ::Gapic::Config::Method.new update_repository_config
3780
5275
  delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
3781
5276
  @delete_repository = ::Gapic::Config::Method.new delete_repository_config
5277
+ commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes
5278
+ @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config
5279
+ read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file
5280
+ @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config
5281
+ query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents
5282
+ @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config
5283
+ fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history
5284
+ @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config
5285
+ compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status
5286
+ @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config
3782
5287
  fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches
3783
5288
  @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config
3784
5289
  list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces
@@ -3821,6 +5326,16 @@ module Google
3821
5326
  @move_file = ::Gapic::Config::Method.new move_file_config
3822
5327
  write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file
3823
5328
  @write_file = ::Gapic::Config::Method.new write_file_config
5329
+ list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs
5330
+ @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config
5331
+ get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config
5332
+ @get_release_config = ::Gapic::Config::Method.new get_release_config_config
5333
+ create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config
5334
+ @create_release_config = ::Gapic::Config::Method.new create_release_config_config
5335
+ update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config
5336
+ @update_release_config = ::Gapic::Config::Method.new update_release_config_config
5337
+ delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config
5338
+ @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config
3824
5339
  list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results
3825
5340
  @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config
3826
5341
  get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result
@@ -3829,6 +5344,16 @@ module Google
3829
5344
  @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config
3830
5345
  query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions
3831
5346
  @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config
5347
+ list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs
5348
+ @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config
5349
+ get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config
5350
+ @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config
5351
+ create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config
5352
+ @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config
5353
+ update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config
5354
+ @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config
5355
+ delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config
5356
+ @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config
3832
5357
  list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations
3833
5358
  @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config
3834
5359
  get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation