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