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