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