google-cloud-dataform-v1beta1 1.5.0 → 1.7.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 +4 -6
- data/lib/google/cloud/dataform/v1beta1/dataform/client.rb +321 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +19 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +300 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +185 -0
- data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +18 -1
- data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +7 -0
- data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/dataform/v1beta1/dataform.rb +376 -12
- metadata +2 -1
|
@@ -3022,6 +3022,99 @@ module Google
|
|
|
3022
3022
|
raise ::Google::Cloud::Error.from_error(e)
|
|
3023
3023
|
end
|
|
3024
3024
|
|
|
3025
|
+
##
|
|
3026
|
+
# Creates a new Workspace in a given Repository asynchronously.
|
|
3027
|
+
#
|
|
3028
|
+
# @overload create_workspace_long_running(request, options = nil)
|
|
3029
|
+
# Pass arguments to `create_workspace_long_running` via a request object, either of type
|
|
3030
|
+
# {::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest} or an equivalent Hash.
|
|
3031
|
+
#
|
|
3032
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
|
|
3033
|
+
# A request object representing the call parameters. Required. To specify no
|
|
3034
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
3035
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3036
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
3037
|
+
#
|
|
3038
|
+
# @overload create_workspace_long_running(parent: nil, workspace: nil, workspace_id: nil)
|
|
3039
|
+
# Pass arguments to `create_workspace_long_running` via keyword arguments. Note that at
|
|
3040
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3041
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
3042
|
+
#
|
|
3043
|
+
# @param parent [::String]
|
|
3044
|
+
# Required. The repository in which to create the workspace. Must be in the
|
|
3045
|
+
# format `projects/*/locations/*/repositories/*`.
|
|
3046
|
+
# @param workspace [::Google::Cloud::Dataform::V1beta1::Workspace, ::Hash]
|
|
3047
|
+
# Required. The workspace to create.
|
|
3048
|
+
# @param workspace_id [::String]
|
|
3049
|
+
# Required. The ID to use for the workspace, which will become the final
|
|
3050
|
+
# component of the workspace's resource name.
|
|
3051
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3052
|
+
# @yieldparam result [::Gapic::Operation]
|
|
3053
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
3054
|
+
#
|
|
3055
|
+
# @return [::Gapic::Operation]
|
|
3056
|
+
#
|
|
3057
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
3058
|
+
#
|
|
3059
|
+
# @example Basic example
|
|
3060
|
+
# require "google/cloud/dataform/v1beta1"
|
|
3061
|
+
#
|
|
3062
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
3063
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
|
|
3064
|
+
#
|
|
3065
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
3066
|
+
# request = Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest.new
|
|
3067
|
+
#
|
|
3068
|
+
# # Call the create_workspace_long_running method.
|
|
3069
|
+
# result = client.create_workspace_long_running request
|
|
3070
|
+
#
|
|
3071
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
3072
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
3073
|
+
# # Here is how to wait for a response.
|
|
3074
|
+
# result.wait_until_done! timeout: 60
|
|
3075
|
+
# if result.response?
|
|
3076
|
+
# p result.response
|
|
3077
|
+
# else
|
|
3078
|
+
# puts "No response received."
|
|
3079
|
+
# end
|
|
3080
|
+
#
|
|
3081
|
+
def create_workspace_long_running request, options = nil
|
|
3082
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
3083
|
+
|
|
3084
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
|
|
3085
|
+
|
|
3086
|
+
# Converts hash and nil to an options object
|
|
3087
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
3088
|
+
|
|
3089
|
+
# Customize the options with defaults
|
|
3090
|
+
call_metadata = @config.rpcs.create_workspace_long_running.metadata.to_h
|
|
3091
|
+
|
|
3092
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
3093
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
3094
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
3095
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
|
3096
|
+
transports_version_send: [:rest]
|
|
3097
|
+
|
|
3098
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
3099
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
3100
|
+
|
|
3101
|
+
options.apply_defaults timeout: @config.rpcs.create_workspace_long_running.timeout,
|
|
3102
|
+
metadata: call_metadata,
|
|
3103
|
+
retry_policy: @config.rpcs.create_workspace_long_running.retry_policy
|
|
3104
|
+
|
|
3105
|
+
options.apply_defaults timeout: @config.timeout,
|
|
3106
|
+
metadata: @config.metadata,
|
|
3107
|
+
retry_policy: @config.retry_policy
|
|
3108
|
+
|
|
3109
|
+
@dataform_stub.create_workspace_long_running request, options do |result, operation|
|
|
3110
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
3111
|
+
yield result, operation if block_given?
|
|
3112
|
+
throw :response, result
|
|
3113
|
+
end
|
|
3114
|
+
rescue ::Gapic::Rest::Error => e
|
|
3115
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
3116
|
+
end
|
|
3117
|
+
|
|
3025
3118
|
##
|
|
3026
3119
|
# Deletes a single Workspace.
|
|
3027
3120
|
#
|
|
@@ -3951,6 +4044,101 @@ module Google
|
|
|
3951
4044
|
raise ::Google::Cloud::Error.from_error(e)
|
|
3952
4045
|
end
|
|
3953
4046
|
|
|
4047
|
+
##
|
|
4048
|
+
# Fetches a Workspace's history of commits.
|
|
4049
|
+
#
|
|
4050
|
+
# @overload fetch_workspace_history(request, options = nil)
|
|
4051
|
+
# Pass arguments to `fetch_workspace_history` via a request object, either of type
|
|
4052
|
+
# {::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest} or an equivalent Hash.
|
|
4053
|
+
#
|
|
4054
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest, ::Hash]
|
|
4055
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4056
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4057
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4058
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4059
|
+
#
|
|
4060
|
+
# @overload fetch_workspace_history(name: nil, page_size: nil, page_token: nil)
|
|
4061
|
+
# Pass arguments to `fetch_workspace_history` via keyword arguments. Note that at
|
|
4062
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4063
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4064
|
+
#
|
|
4065
|
+
# @param name [::String]
|
|
4066
|
+
# Required. The workspace's name.
|
|
4067
|
+
# @param page_size [::Integer]
|
|
4068
|
+
# Optional. Maximum number of commits to return. The server may return fewer
|
|
4069
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
|
4070
|
+
# default.
|
|
4071
|
+
# @param page_token [::String]
|
|
4072
|
+
# Optional. Page token received from a previous `FetchWorkspaceHistory` call.
|
|
4073
|
+
# Provide this to retrieve the subsequent page.
|
|
4074
|
+
#
|
|
4075
|
+
# When paginating, all other parameters provided to `FetchWorkspaceHistory`,
|
|
4076
|
+
# with the exception of `page_size`, must match the call that provided the
|
|
4077
|
+
# page token.
|
|
4078
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4079
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
|
|
4080
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4081
|
+
#
|
|
4082
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
|
|
4083
|
+
#
|
|
4084
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4085
|
+
#
|
|
4086
|
+
# @example Basic example
|
|
4087
|
+
# require "google/cloud/dataform/v1beta1"
|
|
4088
|
+
#
|
|
4089
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4090
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
|
|
4091
|
+
#
|
|
4092
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4093
|
+
# request = Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest.new
|
|
4094
|
+
#
|
|
4095
|
+
# # Call the fetch_workspace_history method.
|
|
4096
|
+
# result = client.fetch_workspace_history request
|
|
4097
|
+
#
|
|
4098
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4099
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4100
|
+
# result.each do |item|
|
|
4101
|
+
# # Each element is of type ::Google::Cloud::Dataform::V1beta1::CommitLogEntry.
|
|
4102
|
+
# p item
|
|
4103
|
+
# end
|
|
4104
|
+
#
|
|
4105
|
+
def fetch_workspace_history request, options = nil
|
|
4106
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4107
|
+
|
|
4108
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest
|
|
4109
|
+
|
|
4110
|
+
# Converts hash and nil to an options object
|
|
4111
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4112
|
+
|
|
4113
|
+
# Customize the options with defaults
|
|
4114
|
+
call_metadata = @config.rpcs.fetch_workspace_history.metadata.to_h
|
|
4115
|
+
|
|
4116
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4117
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4118
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4119
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
|
4120
|
+
transports_version_send: [:rest]
|
|
4121
|
+
|
|
4122
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4123
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4124
|
+
|
|
4125
|
+
options.apply_defaults timeout: @config.rpcs.fetch_workspace_history.timeout,
|
|
4126
|
+
metadata: call_metadata,
|
|
4127
|
+
retry_policy: @config.rpcs.fetch_workspace_history.retry_policy
|
|
4128
|
+
|
|
4129
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4130
|
+
metadata: @config.metadata,
|
|
4131
|
+
retry_policy: @config.retry_policy
|
|
4132
|
+
|
|
4133
|
+
@dataform_stub.fetch_workspace_history request, options do |result, operation|
|
|
4134
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_workspace_history, "commits", request, result, options
|
|
4135
|
+
yield result, operation if block_given?
|
|
4136
|
+
throw :response, result
|
|
4137
|
+
end
|
|
4138
|
+
rescue ::Gapic::Rest::Error => e
|
|
4139
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4140
|
+
end
|
|
4141
|
+
|
|
3954
4142
|
##
|
|
3955
4143
|
# Applies a Git commit for uncommitted files in a Workspace.
|
|
3956
4144
|
#
|
|
@@ -5663,6 +5851,97 @@ module Google
|
|
|
5663
5851
|
raise ::Google::Cloud::Error.from_error(e)
|
|
5664
5852
|
end
|
|
5665
5853
|
|
|
5854
|
+
##
|
|
5855
|
+
# Creates a new CompilationResult in a given project and location
|
|
5856
|
+
# asynchronously.
|
|
5857
|
+
#
|
|
5858
|
+
# @overload create_compilation_result_long_running(request, options = nil)
|
|
5859
|
+
# Pass arguments to `create_compilation_result_long_running` via a request object, either of type
|
|
5860
|
+
# {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
|
|
5861
|
+
#
|
|
5862
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
|
|
5863
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5864
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5865
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5866
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5867
|
+
#
|
|
5868
|
+
# @overload create_compilation_result_long_running(parent: nil, compilation_result: nil)
|
|
5869
|
+
# Pass arguments to `create_compilation_result_long_running` via keyword arguments. Note that at
|
|
5870
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5871
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5872
|
+
#
|
|
5873
|
+
# @param parent [::String]
|
|
5874
|
+
# Required. The repository in which to create the compilation result. Must be
|
|
5875
|
+
# in the format `projects/*/locations/*/repositories/*`.
|
|
5876
|
+
# @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
|
|
5877
|
+
# Required. The compilation result to create.
|
|
5878
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5879
|
+
# @yieldparam result [::Gapic::Operation]
|
|
5880
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5881
|
+
#
|
|
5882
|
+
# @return [::Gapic::Operation]
|
|
5883
|
+
#
|
|
5884
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5885
|
+
#
|
|
5886
|
+
# @example Basic example
|
|
5887
|
+
# require "google/cloud/dataform/v1beta1"
|
|
5888
|
+
#
|
|
5889
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5890
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
|
|
5891
|
+
#
|
|
5892
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5893
|
+
# request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
|
|
5894
|
+
#
|
|
5895
|
+
# # Call the create_compilation_result_long_running method.
|
|
5896
|
+
# result = client.create_compilation_result_long_running request
|
|
5897
|
+
#
|
|
5898
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
5899
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
5900
|
+
# # Here is how to wait for a response.
|
|
5901
|
+
# result.wait_until_done! timeout: 60
|
|
5902
|
+
# if result.response?
|
|
5903
|
+
# p result.response
|
|
5904
|
+
# else
|
|
5905
|
+
# puts "No response received."
|
|
5906
|
+
# end
|
|
5907
|
+
#
|
|
5908
|
+
def create_compilation_result_long_running request, options = nil
|
|
5909
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5910
|
+
|
|
5911
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
|
|
5912
|
+
|
|
5913
|
+
# Converts hash and nil to an options object
|
|
5914
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5915
|
+
|
|
5916
|
+
# Customize the options with defaults
|
|
5917
|
+
call_metadata = @config.rpcs.create_compilation_result_long_running.metadata.to_h
|
|
5918
|
+
|
|
5919
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5920
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5921
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5922
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
|
5923
|
+
transports_version_send: [:rest]
|
|
5924
|
+
|
|
5925
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5926
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5927
|
+
|
|
5928
|
+
options.apply_defaults timeout: @config.rpcs.create_compilation_result_long_running.timeout,
|
|
5929
|
+
metadata: call_metadata,
|
|
5930
|
+
retry_policy: @config.rpcs.create_compilation_result_long_running.retry_policy
|
|
5931
|
+
|
|
5932
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5933
|
+
metadata: @config.metadata,
|
|
5934
|
+
retry_policy: @config.retry_policy
|
|
5935
|
+
|
|
5936
|
+
@dataform_stub.create_compilation_result_long_running request, options do |result, operation|
|
|
5937
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
5938
|
+
yield result, operation if block_given?
|
|
5939
|
+
throw :response, result
|
|
5940
|
+
end
|
|
5941
|
+
rescue ::Gapic::Rest::Error => e
|
|
5942
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5943
|
+
end
|
|
5944
|
+
|
|
5666
5945
|
##
|
|
5667
5946
|
# Returns CompilationResultActions in a given CompilationResult.
|
|
5668
5947
|
#
|
|
@@ -7438,6 +7717,11 @@ module Google
|
|
|
7438
7717
|
#
|
|
7439
7718
|
attr_reader :create_workspace
|
|
7440
7719
|
##
|
|
7720
|
+
# RPC-specific configuration for `create_workspace_long_running`
|
|
7721
|
+
# @return [::Gapic::Config::Method]
|
|
7722
|
+
#
|
|
7723
|
+
attr_reader :create_workspace_long_running
|
|
7724
|
+
##
|
|
7441
7725
|
# RPC-specific configuration for `delete_workspace`
|
|
7442
7726
|
# @return [::Gapic::Config::Method]
|
|
7443
7727
|
#
|
|
@@ -7493,6 +7777,11 @@ module Google
|
|
|
7493
7777
|
#
|
|
7494
7778
|
attr_reader :fetch_git_ahead_behind
|
|
7495
7779
|
##
|
|
7780
|
+
# RPC-specific configuration for `fetch_workspace_history`
|
|
7781
|
+
# @return [::Gapic::Config::Method]
|
|
7782
|
+
#
|
|
7783
|
+
attr_reader :fetch_workspace_history
|
|
7784
|
+
##
|
|
7496
7785
|
# RPC-specific configuration for `commit_workspace_changes`
|
|
7497
7786
|
# @return [::Gapic::Config::Method]
|
|
7498
7787
|
#
|
|
@@ -7593,6 +7882,11 @@ module Google
|
|
|
7593
7882
|
#
|
|
7594
7883
|
attr_reader :create_compilation_result
|
|
7595
7884
|
##
|
|
7885
|
+
# RPC-specific configuration for `create_compilation_result_long_running`
|
|
7886
|
+
# @return [::Gapic::Config::Method]
|
|
7887
|
+
#
|
|
7888
|
+
attr_reader :create_compilation_result_long_running
|
|
7889
|
+
##
|
|
7596
7890
|
# RPC-specific configuration for `query_compilation_result_actions`
|
|
7597
7891
|
# @return [::Gapic::Config::Method]
|
|
7598
7892
|
#
|
|
@@ -7742,6 +8036,8 @@ module Google
|
|
|
7742
8036
|
@get_workspace = ::Gapic::Config::Method.new get_workspace_config
|
|
7743
8037
|
create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace
|
|
7744
8038
|
@create_workspace = ::Gapic::Config::Method.new create_workspace_config
|
|
8039
|
+
create_workspace_long_running_config = parent_rpcs.create_workspace_long_running if parent_rpcs.respond_to? :create_workspace_long_running
|
|
8040
|
+
@create_workspace_long_running = ::Gapic::Config::Method.new create_workspace_long_running_config
|
|
7745
8041
|
delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace
|
|
7746
8042
|
@delete_workspace = ::Gapic::Config::Method.new delete_workspace_config
|
|
7747
8043
|
install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages
|
|
@@ -7764,6 +8060,8 @@ module Google
|
|
|
7764
8060
|
@fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config
|
|
7765
8061
|
fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind
|
|
7766
8062
|
@fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config
|
|
8063
|
+
fetch_workspace_history_config = parent_rpcs.fetch_workspace_history if parent_rpcs.respond_to? :fetch_workspace_history
|
|
8064
|
+
@fetch_workspace_history = ::Gapic::Config::Method.new fetch_workspace_history_config
|
|
7767
8065
|
commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes
|
|
7768
8066
|
@commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config
|
|
7769
8067
|
reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes
|
|
@@ -7804,6 +8102,8 @@ module Google
|
|
|
7804
8102
|
@get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config
|
|
7805
8103
|
create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result
|
|
7806
8104
|
@create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config
|
|
8105
|
+
create_compilation_result_long_running_config = parent_rpcs.create_compilation_result_long_running if parent_rpcs.respond_to? :create_compilation_result_long_running
|
|
8106
|
+
@create_compilation_result_long_running = ::Gapic::Config::Method.new create_compilation_result_long_running_config
|
|
7807
8107
|
query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions
|
|
7808
8108
|
@query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config
|
|
7809
8109
|
list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs
|
|
@@ -1313,6 +1313,46 @@ module Google
|
|
|
1313
1313
|
end
|
|
1314
1314
|
end
|
|
1315
1315
|
|
|
1316
|
+
##
|
|
1317
|
+
# Baseline implementation for the create_workspace_long_running REST call
|
|
1318
|
+
#
|
|
1319
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest]
|
|
1320
|
+
# A request object representing the call parameters. Required.
|
|
1321
|
+
# @param options [::Gapic::CallOptions]
|
|
1322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1323
|
+
#
|
|
1324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1325
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1327
|
+
#
|
|
1328
|
+
# @return [::Google::Longrunning::Operation]
|
|
1329
|
+
# A result object deserialized from the server's reply
|
|
1330
|
+
def create_workspace_long_running request_pb, options = nil
|
|
1331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1332
|
+
|
|
1333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_long_running_request request_pb
|
|
1334
|
+
query_string_params = if query_string_params.any?
|
|
1335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1336
|
+
else
|
|
1337
|
+
{}
|
|
1338
|
+
end
|
|
1339
|
+
|
|
1340
|
+
response = @client_stub.make_http_request(
|
|
1341
|
+
verb,
|
|
1342
|
+
uri: uri,
|
|
1343
|
+
body: body || "",
|
|
1344
|
+
params: query_string_params,
|
|
1345
|
+
method_name: "create_workspace_long_running",
|
|
1346
|
+
options: options
|
|
1347
|
+
)
|
|
1348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1349
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1350
|
+
catch :response do
|
|
1351
|
+
yield result, operation if block_given?
|
|
1352
|
+
result
|
|
1353
|
+
end
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1316
1356
|
##
|
|
1317
1357
|
# Baseline implementation for the delete_workspace REST call
|
|
1318
1358
|
#
|
|
@@ -1753,6 +1793,46 @@ module Google
|
|
|
1753
1793
|
end
|
|
1754
1794
|
end
|
|
1755
1795
|
|
|
1796
|
+
##
|
|
1797
|
+
# Baseline implementation for the fetch_workspace_history REST call
|
|
1798
|
+
#
|
|
1799
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest]
|
|
1800
|
+
# A request object representing the call parameters. Required.
|
|
1801
|
+
# @param options [::Gapic::CallOptions]
|
|
1802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1803
|
+
#
|
|
1804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1805
|
+
# @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryResponse]
|
|
1806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1807
|
+
#
|
|
1808
|
+
# @return [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryResponse]
|
|
1809
|
+
# A result object deserialized from the server's reply
|
|
1810
|
+
def fetch_workspace_history request_pb, options = nil
|
|
1811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1812
|
+
|
|
1813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_workspace_history_request request_pb
|
|
1814
|
+
query_string_params = if query_string_params.any?
|
|
1815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1816
|
+
else
|
|
1817
|
+
{}
|
|
1818
|
+
end
|
|
1819
|
+
|
|
1820
|
+
response = @client_stub.make_http_request(
|
|
1821
|
+
verb,
|
|
1822
|
+
uri: uri,
|
|
1823
|
+
body: body || "",
|
|
1824
|
+
params: query_string_params,
|
|
1825
|
+
method_name: "fetch_workspace_history",
|
|
1826
|
+
options: options
|
|
1827
|
+
)
|
|
1828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1829
|
+
result = ::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1830
|
+
catch :response do
|
|
1831
|
+
yield result, operation if block_given?
|
|
1832
|
+
result
|
|
1833
|
+
end
|
|
1834
|
+
end
|
|
1835
|
+
|
|
1756
1836
|
##
|
|
1757
1837
|
# Baseline implementation for the commit_workspace_changes REST call
|
|
1758
1838
|
#
|
|
@@ -2553,6 +2633,46 @@ module Google
|
|
|
2553
2633
|
end
|
|
2554
2634
|
end
|
|
2555
2635
|
|
|
2636
|
+
##
|
|
2637
|
+
# Baseline implementation for the create_compilation_result_long_running REST call
|
|
2638
|
+
#
|
|
2639
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest]
|
|
2640
|
+
# A request object representing the call parameters. Required.
|
|
2641
|
+
# @param options [::Gapic::CallOptions]
|
|
2642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2643
|
+
#
|
|
2644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2645
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2647
|
+
#
|
|
2648
|
+
# @return [::Google::Longrunning::Operation]
|
|
2649
|
+
# A result object deserialized from the server's reply
|
|
2650
|
+
def create_compilation_result_long_running request_pb, options = nil
|
|
2651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2652
|
+
|
|
2653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_long_running_request request_pb
|
|
2654
|
+
query_string_params = if query_string_params.any?
|
|
2655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2656
|
+
else
|
|
2657
|
+
{}
|
|
2658
|
+
end
|
|
2659
|
+
|
|
2660
|
+
response = @client_stub.make_http_request(
|
|
2661
|
+
verb,
|
|
2662
|
+
uri: uri,
|
|
2663
|
+
body: body || "",
|
|
2664
|
+
params: query_string_params,
|
|
2665
|
+
method_name: "create_compilation_result_long_running",
|
|
2666
|
+
options: options
|
|
2667
|
+
)
|
|
2668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2669
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2670
|
+
catch :response do
|
|
2671
|
+
yield result, operation if block_given?
|
|
2672
|
+
result
|
|
2673
|
+
end
|
|
2674
|
+
end
|
|
2675
|
+
|
|
2556
2676
|
##
|
|
2557
2677
|
# Baseline implementation for the query_compilation_result_actions REST call
|
|
2558
2678
|
#
|
|
@@ -3897,6 +4017,28 @@ module Google
|
|
|
3897
4017
|
transcoder.transcode request_pb
|
|
3898
4018
|
end
|
|
3899
4019
|
|
|
4020
|
+
##
|
|
4021
|
+
# @private
|
|
4022
|
+
#
|
|
4023
|
+
# GRPC transcoding helper method for the create_workspace_long_running REST call
|
|
4024
|
+
#
|
|
4025
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest]
|
|
4026
|
+
# A request object representing the call parameters. Required.
|
|
4027
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
4028
|
+
# Uri, Body, Query string parameters
|
|
4029
|
+
def self.transcode_create_workspace_long_running_request request_pb
|
|
4030
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
4031
|
+
.with_bindings(
|
|
4032
|
+
uri_method: :post,
|
|
4033
|
+
uri_template: "/v1beta1/{parent}/workspaces:createLongRunning",
|
|
4034
|
+
body: "workspace",
|
|
4035
|
+
matches: [
|
|
4036
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
|
|
4037
|
+
]
|
|
4038
|
+
)
|
|
4039
|
+
transcoder.transcode request_pb
|
|
4040
|
+
end
|
|
4041
|
+
|
|
3900
4042
|
##
|
|
3901
4043
|
# @private
|
|
3902
4044
|
#
|
|
@@ -4134,6 +4276,27 @@ module Google
|
|
|
4134
4276
|
transcoder.transcode request_pb
|
|
4135
4277
|
end
|
|
4136
4278
|
|
|
4279
|
+
##
|
|
4280
|
+
# @private
|
|
4281
|
+
#
|
|
4282
|
+
# GRPC transcoding helper method for the fetch_workspace_history REST call
|
|
4283
|
+
#
|
|
4284
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest]
|
|
4285
|
+
# A request object representing the call parameters. Required.
|
|
4286
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
4287
|
+
# Uri, Body, Query string parameters
|
|
4288
|
+
def self.transcode_fetch_workspace_history_request request_pb
|
|
4289
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
4290
|
+
.with_bindings(
|
|
4291
|
+
uri_method: :get,
|
|
4292
|
+
uri_template: "/v1beta1/{name}:fetchHistory",
|
|
4293
|
+
matches: [
|
|
4294
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
|
|
4295
|
+
]
|
|
4296
|
+
)
|
|
4297
|
+
transcoder.transcode request_pb
|
|
4298
|
+
end
|
|
4299
|
+
|
|
4137
4300
|
##
|
|
4138
4301
|
# @private
|
|
4139
4302
|
#
|
|
@@ -4565,6 +4728,28 @@ module Google
|
|
|
4565
4728
|
transcoder.transcode request_pb
|
|
4566
4729
|
end
|
|
4567
4730
|
|
|
4731
|
+
##
|
|
4732
|
+
# @private
|
|
4733
|
+
#
|
|
4734
|
+
# GRPC transcoding helper method for the create_compilation_result_long_running REST call
|
|
4735
|
+
#
|
|
4736
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest]
|
|
4737
|
+
# A request object representing the call parameters. Required.
|
|
4738
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
4739
|
+
# Uri, Body, Query string parameters
|
|
4740
|
+
def self.transcode_create_compilation_result_long_running_request request_pb
|
|
4741
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
4742
|
+
.with_bindings(
|
|
4743
|
+
uri_method: :post,
|
|
4744
|
+
uri_template: "/v1beta1/{parent}/compilationResults:createLongRunning",
|
|
4745
|
+
body: "compilation_result",
|
|
4746
|
+
matches: [
|
|
4747
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
|
|
4748
|
+
]
|
|
4749
|
+
)
|
|
4750
|
+
transcoder.transcode request_pb
|
|
4751
|
+
end
|
|
4752
|
+
|
|
4568
4753
|
##
|
|
4569
4754
|
# @private
|
|
4570
4755
|
#
|