google-cloud-dataform-v1beta1 1.5.0 → 1.6.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 +214 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +19 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +200 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +123 -0
- data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +9 -1
- data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +5 -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 +182 -12
- metadata +2 -1
|
@@ -1753,6 +1753,46 @@ module Google
|
|
|
1753
1753
|
end
|
|
1754
1754
|
end
|
|
1755
1755
|
|
|
1756
|
+
##
|
|
1757
|
+
# Baseline implementation for the fetch_workspace_history REST call
|
|
1758
|
+
#
|
|
1759
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest]
|
|
1760
|
+
# A request object representing the call parameters. Required.
|
|
1761
|
+
# @param options [::Gapic::CallOptions]
|
|
1762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1763
|
+
#
|
|
1764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1765
|
+
# @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryResponse]
|
|
1766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1767
|
+
#
|
|
1768
|
+
# @return [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryResponse]
|
|
1769
|
+
# A result object deserialized from the server's reply
|
|
1770
|
+
def fetch_workspace_history request_pb, options = nil
|
|
1771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1772
|
+
|
|
1773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_workspace_history_request request_pb
|
|
1774
|
+
query_string_params = if query_string_params.any?
|
|
1775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1776
|
+
else
|
|
1777
|
+
{}
|
|
1778
|
+
end
|
|
1779
|
+
|
|
1780
|
+
response = @client_stub.make_http_request(
|
|
1781
|
+
verb,
|
|
1782
|
+
uri: uri,
|
|
1783
|
+
body: body || "",
|
|
1784
|
+
params: query_string_params,
|
|
1785
|
+
method_name: "fetch_workspace_history",
|
|
1786
|
+
options: options
|
|
1787
|
+
)
|
|
1788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1789
|
+
result = ::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1790
|
+
catch :response do
|
|
1791
|
+
yield result, operation if block_given?
|
|
1792
|
+
result
|
|
1793
|
+
end
|
|
1794
|
+
end
|
|
1795
|
+
|
|
1756
1796
|
##
|
|
1757
1797
|
# Baseline implementation for the commit_workspace_changes REST call
|
|
1758
1798
|
#
|
|
@@ -2553,6 +2593,46 @@ module Google
|
|
|
2553
2593
|
end
|
|
2554
2594
|
end
|
|
2555
2595
|
|
|
2596
|
+
##
|
|
2597
|
+
# Baseline implementation for the create_compilation_result_long_running REST call
|
|
2598
|
+
#
|
|
2599
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest]
|
|
2600
|
+
# A request object representing the call parameters. Required.
|
|
2601
|
+
# @param options [::Gapic::CallOptions]
|
|
2602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2603
|
+
#
|
|
2604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2605
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2607
|
+
#
|
|
2608
|
+
# @return [::Google::Longrunning::Operation]
|
|
2609
|
+
# A result object deserialized from the server's reply
|
|
2610
|
+
def create_compilation_result_long_running request_pb, options = nil
|
|
2611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2612
|
+
|
|
2613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_long_running_request request_pb
|
|
2614
|
+
query_string_params = if query_string_params.any?
|
|
2615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2616
|
+
else
|
|
2617
|
+
{}
|
|
2618
|
+
end
|
|
2619
|
+
|
|
2620
|
+
response = @client_stub.make_http_request(
|
|
2621
|
+
verb,
|
|
2622
|
+
uri: uri,
|
|
2623
|
+
body: body || "",
|
|
2624
|
+
params: query_string_params,
|
|
2625
|
+
method_name: "create_compilation_result_long_running",
|
|
2626
|
+
options: options
|
|
2627
|
+
)
|
|
2628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2629
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2630
|
+
catch :response do
|
|
2631
|
+
yield result, operation if block_given?
|
|
2632
|
+
result
|
|
2633
|
+
end
|
|
2634
|
+
end
|
|
2635
|
+
|
|
2556
2636
|
##
|
|
2557
2637
|
# Baseline implementation for the query_compilation_result_actions REST call
|
|
2558
2638
|
#
|
|
@@ -4134,6 +4214,27 @@ module Google
|
|
|
4134
4214
|
transcoder.transcode request_pb
|
|
4135
4215
|
end
|
|
4136
4216
|
|
|
4217
|
+
##
|
|
4218
|
+
# @private
|
|
4219
|
+
#
|
|
4220
|
+
# GRPC transcoding helper method for the fetch_workspace_history REST call
|
|
4221
|
+
#
|
|
4222
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest]
|
|
4223
|
+
# A request object representing the call parameters. Required.
|
|
4224
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
4225
|
+
# Uri, Body, Query string parameters
|
|
4226
|
+
def self.transcode_fetch_workspace_history_request request_pb
|
|
4227
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
4228
|
+
.with_bindings(
|
|
4229
|
+
uri_method: :get,
|
|
4230
|
+
uri_template: "/v1beta1/{name}:fetchHistory",
|
|
4231
|
+
matches: [
|
|
4232
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
|
|
4233
|
+
]
|
|
4234
|
+
)
|
|
4235
|
+
transcoder.transcode request_pb
|
|
4236
|
+
end
|
|
4237
|
+
|
|
4137
4238
|
##
|
|
4138
4239
|
# @private
|
|
4139
4240
|
#
|
|
@@ -4565,6 +4666,28 @@ module Google
|
|
|
4565
4666
|
transcoder.transcode request_pb
|
|
4566
4667
|
end
|
|
4567
4668
|
|
|
4669
|
+
##
|
|
4670
|
+
# @private
|
|
4671
|
+
#
|
|
4672
|
+
# GRPC transcoding helper method for the create_compilation_result_long_running REST call
|
|
4673
|
+
#
|
|
4674
|
+
# @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest]
|
|
4675
|
+
# A request object representing the call parameters. Required.
|
|
4676
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
4677
|
+
# Uri, Body, Query string parameters
|
|
4678
|
+
def self.transcode_create_compilation_result_long_running_request request_pb
|
|
4679
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
4680
|
+
.with_bindings(
|
|
4681
|
+
uri_method: :post,
|
|
4682
|
+
uri_template: "/v1beta1/{parent}/compilationResults:createLongRunning",
|
|
4683
|
+
body: "compilation_result",
|
|
4684
|
+
matches: [
|
|
4685
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
|
|
4686
|
+
]
|
|
4687
|
+
)
|
|
4688
|
+
transcoder.transcode request_pb
|
|
4689
|
+
end
|
|
4690
|
+
|
|
4568
4691
|
##
|
|
4569
4692
|
# @private
|
|
4570
4693
|
#
|