google-cloud-dataform-v1 0.3.0 → 0.4.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +5 -5
  4. data/lib/google/cloud/dataform/v1/bindings_override.rb +0 -57
  5. data/lib/google/cloud/dataform/v1/dataform/client.rb +2061 -48
  6. data/lib/google/cloud/dataform/v1/dataform/operations.rb +843 -0
  7. data/lib/google/cloud/dataform/v1/dataform/paths.rb +38 -0
  8. data/lib/google/cloud/dataform/v1/dataform/rest/client.rb +1944 -65
  9. data/lib/google/cloud/dataform/v1/dataform/rest/operations.rb +927 -0
  10. data/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb +1719 -481
  11. data/lib/google/cloud/dataform/v1/dataform/rest.rb +1 -0
  12. data/lib/google/cloud/dataform/v1/dataform.rb +1 -0
  13. data/lib/google/cloud/dataform/v1/dataform_pb.rb +42 -1
  14. data/lib/google/cloud/dataform/v1/dataform_services_pb.rb +54 -0
  15. data/lib/google/cloud/dataform/v1/version.rb +1 -1
  16. data/lib/google/longrunning/bindings_override.rb +71 -0
  17. data/lib/google/longrunning/operations/client.rb +954 -0
  18. data/lib/google/longrunning/operations/credentials.rb +40 -0
  19. data/lib/google/longrunning/operations/operations.rb +839 -0
  20. data/lib/google/longrunning/operations/rest/client.rb +777 -0
  21. data/lib/google/longrunning/operations/rest/operations.rb +923 -0
  22. data/lib/google/longrunning/operations/rest/service_stub.rb +322 -0
  23. data/lib/google/longrunning/operations/rest.rb +57 -0
  24. data/lib/google/longrunning/operations.rb +59 -0
  25. data/lib/google/longrunning/rest.rb +34 -0
  26. data/lib/google/longrunning.rb +41 -0
  27. data/lib/google-cloud-dataform-v1.rb +1 -0
  28. data/proto_docs/google/api/client.rb +149 -29
  29. data/proto_docs/google/cloud/dataform/v1/dataform.rb +759 -3
  30. data/proto_docs/google/longrunning/operations.rb +191 -0
  31. metadata +17 -3
@@ -0,0 +1,322 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/longrunning/operations_pb"
20
+
21
+ module Google
22
+ module Longrunning
23
+ module Operations
24
+ module Rest
25
+ ##
26
+ # REST service stub for the Operations service.
27
+ # Service stub contains baseline method implementations
28
+ # including transcoding, making the REST call, and deserialing the response.
29
+ #
30
+ class ServiceStub
31
+ # @private
32
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
33
+ # These require statements are intentionally placed here to initialize
34
+ # the REST modules only when it's required.
35
+ require "gapic/rest"
36
+
37
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
38
+ endpoint_template: endpoint_template,
39
+ universe_domain: universe_domain,
40
+ credentials: credentials,
41
+ numeric_enums: true,
42
+ service_name: self.class,
43
+ raise_faraday_errors: false,
44
+ logger: logger
45
+ end
46
+
47
+ ##
48
+ # The effective universe domain
49
+ #
50
+ # @return [String]
51
+ #
52
+ def universe_domain
53
+ @client_stub.universe_domain
54
+ end
55
+
56
+ ##
57
+ # The effective endpoint
58
+ #
59
+ # @return [String]
60
+ #
61
+ def endpoint
62
+ @client_stub.endpoint
63
+ end
64
+
65
+ ##
66
+ # The logger used for request/response debug logging.
67
+ #
68
+ # @return [Logger]
69
+ #
70
+ def logger stub: false
71
+ stub ? @client_stub.stub_logger : @client_stub.logger
72
+ end
73
+
74
+ ##
75
+ # Baseline implementation for the list_operations REST call
76
+ #
77
+ # @param request_pb [::Google::Longrunning::ListOperationsRequest]
78
+ # A request object representing the call parameters. Required.
79
+ # @param options [::Gapic::CallOptions]
80
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
81
+ #
82
+ # @yield [result, operation] Access the result along with the TransportOperation object
83
+ # @yieldparam result [::Google::Longrunning::ListOperationsResponse]
84
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
85
+ #
86
+ # @return [::Google::Longrunning::ListOperationsResponse]
87
+ # A result object deserialized from the server's reply
88
+ def list_operations request_pb, options = nil
89
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
90
+
91
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_operations_request request_pb
92
+ query_string_params = if query_string_params.any?
93
+ query_string_params.to_h { |p| p.split "=", 2 }
94
+ else
95
+ {}
96
+ end
97
+
98
+ response = @client_stub.make_http_request(
99
+ verb,
100
+ uri: uri,
101
+ body: body || "",
102
+ params: query_string_params,
103
+ method_name: "list_operations",
104
+ options: options
105
+ )
106
+ operation = ::Gapic::Rest::TransportOperation.new response
107
+ result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
108
+ catch :response do
109
+ yield result, operation if block_given?
110
+ result
111
+ end
112
+ end
113
+
114
+ ##
115
+ # Baseline implementation for the get_operation REST call
116
+ #
117
+ # @param request_pb [::Google::Longrunning::GetOperationRequest]
118
+ # A request object representing the call parameters. Required.
119
+ # @param options [::Gapic::CallOptions]
120
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
121
+ #
122
+ # @yield [result, operation] Access the result along with the TransportOperation object
123
+ # @yieldparam result [::Google::Longrunning::Operation]
124
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
125
+ #
126
+ # @return [::Google::Longrunning::Operation]
127
+ # A result object deserialized from the server's reply
128
+ def get_operation request_pb, options = nil
129
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
130
+
131
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_operation_request request_pb
132
+ query_string_params = if query_string_params.any?
133
+ query_string_params.to_h { |p| p.split "=", 2 }
134
+ else
135
+ {}
136
+ end
137
+
138
+ response = @client_stub.make_http_request(
139
+ verb,
140
+ uri: uri,
141
+ body: body || "",
142
+ params: query_string_params,
143
+ method_name: "get_operation",
144
+ options: options
145
+ )
146
+ operation = ::Gapic::Rest::TransportOperation.new response
147
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
148
+ catch :response do
149
+ yield result, operation if block_given?
150
+ result
151
+ end
152
+ end
153
+
154
+ ##
155
+ # Baseline implementation for the delete_operation REST call
156
+ #
157
+ # @param request_pb [::Google::Longrunning::DeleteOperationRequest]
158
+ # A request object representing the call parameters. Required.
159
+ # @param options [::Gapic::CallOptions]
160
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
161
+ #
162
+ # @yield [result, operation] Access the result along with the TransportOperation object
163
+ # @yieldparam result [::Google::Protobuf::Empty]
164
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
165
+ #
166
+ # @return [::Google::Protobuf::Empty]
167
+ # A result object deserialized from the server's reply
168
+ def delete_operation request_pb, options = nil
169
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
170
+
171
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_operation_request request_pb
172
+ query_string_params = if query_string_params.any?
173
+ query_string_params.to_h { |p| p.split "=", 2 }
174
+ else
175
+ {}
176
+ end
177
+
178
+ response = @client_stub.make_http_request(
179
+ verb,
180
+ uri: uri,
181
+ body: body || "",
182
+ params: query_string_params,
183
+ method_name: "delete_operation",
184
+ options: options
185
+ )
186
+ operation = ::Gapic::Rest::TransportOperation.new response
187
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
188
+ catch :response do
189
+ yield result, operation if block_given?
190
+ result
191
+ end
192
+ end
193
+
194
+ ##
195
+ # Baseline implementation for the cancel_operation REST call
196
+ #
197
+ # @param request_pb [::Google::Longrunning::CancelOperationRequest]
198
+ # A request object representing the call parameters. Required.
199
+ # @param options [::Gapic::CallOptions]
200
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
201
+ #
202
+ # @yield [result, operation] Access the result along with the TransportOperation object
203
+ # @yieldparam result [::Google::Protobuf::Empty]
204
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
205
+ #
206
+ # @return [::Google::Protobuf::Empty]
207
+ # A result object deserialized from the server's reply
208
+ def cancel_operation request_pb, options = nil
209
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
210
+
211
+ verb, uri, query_string_params, body = ServiceStub.transcode_cancel_operation_request request_pb
212
+ query_string_params = if query_string_params.any?
213
+ query_string_params.to_h { |p| p.split "=", 2 }
214
+ else
215
+ {}
216
+ end
217
+
218
+ response = @client_stub.make_http_request(
219
+ verb,
220
+ uri: uri,
221
+ body: body || "",
222
+ params: query_string_params,
223
+ method_name: "cancel_operation",
224
+ options: options
225
+ )
226
+ operation = ::Gapic::Rest::TransportOperation.new response
227
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
228
+ catch :response do
229
+ yield result, operation if block_given?
230
+ result
231
+ end
232
+ end
233
+
234
+ ##
235
+ # @private
236
+ #
237
+ # GRPC transcoding helper method for the list_operations REST call
238
+ #
239
+ # @param request_pb [::Google::Longrunning::ListOperationsRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @return [Array(String, [String, nil], Hash{String => String})]
242
+ # Uri, Body, Query string parameters
243
+ def self.transcode_list_operations_request request_pb
244
+ transcoder = Gapic::Rest::GrpcTranscoder.new
245
+ .with_bindings(
246
+ uri_method: :get,
247
+ uri_template: "/v1/{name}/operations",
248
+ matches: [
249
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
250
+ ]
251
+ )
252
+ transcoder.transcode request_pb
253
+ end
254
+
255
+ ##
256
+ # @private
257
+ #
258
+ # GRPC transcoding helper method for the get_operation REST call
259
+ #
260
+ # @param request_pb [::Google::Longrunning::GetOperationRequest]
261
+ # A request object representing the call parameters. Required.
262
+ # @return [Array(String, [String, nil], Hash{String => String})]
263
+ # Uri, Body, Query string parameters
264
+ def self.transcode_get_operation_request request_pb
265
+ transcoder = Gapic::Rest::GrpcTranscoder.new
266
+ .with_bindings(
267
+ uri_method: :get,
268
+ uri_template: "/v1/{name}",
269
+ matches: [
270
+ ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
271
+ ]
272
+ )
273
+ transcoder.transcode request_pb
274
+ end
275
+
276
+ ##
277
+ # @private
278
+ #
279
+ # GRPC transcoding helper method for the delete_operation REST call
280
+ #
281
+ # @param request_pb [::Google::Longrunning::DeleteOperationRequest]
282
+ # A request object representing the call parameters. Required.
283
+ # @return [Array(String, [String, nil], Hash{String => String})]
284
+ # Uri, Body, Query string parameters
285
+ def self.transcode_delete_operation_request request_pb
286
+ transcoder = Gapic::Rest::GrpcTranscoder.new
287
+ .with_bindings(
288
+ uri_method: :delete,
289
+ uri_template: "/v1/{name}",
290
+ matches: [
291
+ ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
292
+ ]
293
+ )
294
+ transcoder.transcode request_pb
295
+ end
296
+
297
+ ##
298
+ # @private
299
+ #
300
+ # GRPC transcoding helper method for the cancel_operation REST call
301
+ #
302
+ # @param request_pb [::Google::Longrunning::CancelOperationRequest]
303
+ # A request object representing the call parameters. Required.
304
+ # @return [Array(String, [String, nil], Hash{String => String})]
305
+ # Uri, Body, Query string parameters
306
+ def self.transcode_cancel_operation_request request_pb
307
+ transcoder = Gapic::Rest::GrpcTranscoder.new
308
+ .with_bindings(
309
+ uri_method: :post,
310
+ uri_template: "/v1/{name}:cancel",
311
+ body: "*",
312
+ matches: [
313
+ ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
314
+ ]
315
+ )
316
+ transcoder.transcode request_pb
317
+ end
318
+ end
319
+ end
320
+ end
321
+ end
322
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dataform/v1/version"
24
+ require "google/longrunning/bindings_override"
25
+
26
+ require "google/longrunning/operations/credentials"
27
+ require "google/longrunning/operations/rest/operations"
28
+ require "google/longrunning/operations/rest/client"
29
+
30
+ module Google
31
+ module Longrunning
32
+ ##
33
+ # Manages long-running operations with an API service.
34
+ #
35
+ # When an API method normally takes long time to complete, it can be designed
36
+ # to return {::Google::Longrunning::Operation Operation} to the client, and the
37
+ # client can use this interface to receive the real response asynchronously by
38
+ # polling the operation resource, or pass the operation resource to another API
39
+ # (such as Pub/Sub API) to receive the response. Any API service that returns
40
+ # long-running operations should implement the `Operations` interface so
41
+ # developers can have a consistent client experience.
42
+ #
43
+ # To load this service and instantiate a REST client:
44
+ #
45
+ # require "google/longrunning/operations/rest"
46
+ # client = ::Google::Longrunning::Operations::Rest::Client.new
47
+ #
48
+ module Operations
49
+ # Client for the REST transport
50
+ module Rest
51
+ end
52
+ end
53
+ end
54
+ end
55
+
56
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
57
+ require "google/longrunning/operations/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dataform/v1/version"
24
+
25
+ require "google/longrunning/operations/credentials"
26
+ require "google/longrunning/operations/operations"
27
+ require "google/longrunning/operations/client"
28
+ require "google/longrunning/operations/rest"
29
+
30
+ module Google
31
+ module Longrunning
32
+ ##
33
+ # Manages long-running operations with an API service.
34
+ #
35
+ # When an API method normally takes long time to complete, it can be designed
36
+ # to return {::Google::Longrunning::Operation Operation} to the client, and the
37
+ # client can use this interface to receive the real response asynchronously by
38
+ # polling the operation resource, or pass the operation resource to another API
39
+ # (such as Pub/Sub API) to receive the response. Any API service that returns
40
+ # long-running operations should implement the `Operations` interface so
41
+ # developers can have a consistent client experience.
42
+ #
43
+ # @example Load this service and instantiate a gRPC client
44
+ #
45
+ # require "google/longrunning/operations"
46
+ # client = ::Google::Longrunning::Operations::Client.new
47
+ #
48
+ # @example Load this service and instantiate a REST client
49
+ #
50
+ # require "google/longrunning/operations/rest"
51
+ # client = ::Google::Longrunning::Operations::Rest::Client.new
52
+ #
53
+ module Operations
54
+ end
55
+ end
56
+ end
57
+
58
+ helper_path = ::File.join __dir__, "operations", "helpers.rb"
59
+ require "google/longrunning/operations/helpers" if ::File.file? helper_path
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/longrunning/operations/rest"
20
+ require "google/longrunning/bindings_override"
21
+ require "google/cloud/dataform/v1/version"
22
+
23
+ module Google
24
+ ##
25
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
26
+ #
27
+ # @example
28
+ #
29
+ # require "google/longrunning/rest"
30
+ # client = ::Google::Longrunning::Operations::Rest::Client.new
31
+ #
32
+ module Longrunning
33
+ end
34
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/longrunning/operations"
20
+ require "google/cloud/dataform/v1/version"
21
+
22
+ module Google
23
+ ##
24
+ # API client module.
25
+ #
26
+ # @example Load this package, including all its services, and instantiate a gRPC client
27
+ #
28
+ # require "google/longrunning"
29
+ # client = ::Google::Longrunning::Operations::Client.new
30
+ #
31
+ # @example Load this package, including all its services, and instantiate a REST client
32
+ #
33
+ # require "google/longrunning"
34
+ # client = ::Google::Longrunning::Operations::Rest::Client.new
35
+ #
36
+ module Longrunning
37
+ end
38
+ end
39
+
40
+ helper_path = ::File.join __dir__, "longrunning", "_helpers.rb"
41
+ require "google/longrunning/_helpers" if ::File.file? helper_path
@@ -19,3 +19,4 @@
19
19
  # This gem does not autoload during Bundler.require. To load this gem,
20
20
  # issue explicit require statements for the packages desired, e.g.:
21
21
  # require "google/cloud/dataform/v1"
22
+ # require "google/longrunning"