google-cloud-dataform-v1beta1 0.a → 0.1.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.
@@ -0,0 +1,3857 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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/cloud/errors"
20
+ require "google/cloud/dataform/v1beta1/dataform_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1"
23
+
24
+ module Google
25
+ module Cloud
26
+ module Dataform
27
+ module V1beta1
28
+ module Dataform
29
+ ##
30
+ # Client for the Dataform service.
31
+ #
32
+ # Dataform is a service to develop, create, document, test, and update curated
33
+ # tables in BigQuery.
34
+ #
35
+ class Client
36
+ include Paths
37
+
38
+ # @private
39
+ attr_reader :dataform_stub
40
+
41
+ ##
42
+ # Configure the Dataform Client class.
43
+ #
44
+ # See {::Google::Cloud::Dataform::V1beta1::Dataform::Client::Configuration}
45
+ # for a description of the configuration fields.
46
+ #
47
+ # @example
48
+ #
49
+ # # Modify the configuration for all Dataform clients
50
+ # ::Google::Cloud::Dataform::V1beta1::Dataform::Client.configure do |config|
51
+ # config.timeout = 10.0
52
+ # end
53
+ #
54
+ # @yield [config] Configure the Client client.
55
+ # @yieldparam config [Client::Configuration]
56
+ #
57
+ # @return [Client::Configuration]
58
+ #
59
+ def self.configure
60
+ @configure ||= begin
61
+ namespace = ["Google", "Cloud", "Dataform", "V1beta1"]
62
+ parent_config = while namespace.any?
63
+ parent_name = namespace.join "::"
64
+ parent_const = const_get parent_name
65
+ break parent_const.configure if parent_const.respond_to? :configure
66
+ namespace.pop
67
+ end
68
+ default_config = Client::Configuration.new parent_config
69
+
70
+ default_config
71
+ end
72
+ yield @configure if block_given?
73
+ @configure
74
+ end
75
+
76
+ ##
77
+ # Configure the Dataform Client instance.
78
+ #
79
+ # The configuration is set to the derived mode, meaning that values can be changed,
80
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
81
+ # should be made on {Client.configure}.
82
+ #
83
+ # See {::Google::Cloud::Dataform::V1beta1::Dataform::Client::Configuration}
84
+ # for a description of the configuration fields.
85
+ #
86
+ # @yield [config] Configure the Client client.
87
+ # @yieldparam config [Client::Configuration]
88
+ #
89
+ # @return [Client::Configuration]
90
+ #
91
+ def configure
92
+ yield @config if block_given?
93
+ @config
94
+ end
95
+
96
+ ##
97
+ # Create a new Dataform client object.
98
+ #
99
+ # @example
100
+ #
101
+ # # Create a client using the default configuration
102
+ # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new
103
+ #
104
+ # # Create a client using a custom configuration
105
+ # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new do |config|
106
+ # config.timeout = 10.0
107
+ # end
108
+ #
109
+ # @yield [config] Configure the Dataform client.
110
+ # @yieldparam config [Client::Configuration]
111
+ #
112
+ def initialize
113
+ # These require statements are intentionally placed here to initialize
114
+ # the gRPC module only when it's required.
115
+ # See https://github.com/googleapis/toolkit/issues/446
116
+ require "gapic/grpc"
117
+ require "google/cloud/dataform/v1beta1/dataform_services_pb"
118
+
119
+ # Create the configuration object
120
+ @config = Configuration.new Client.configure
121
+
122
+ # Yield the configuration if needed
123
+ yield @config if block_given?
124
+
125
+ # Create credentials
126
+ credentials = @config.credentials
127
+ # Use self-signed JWT if the endpoint is unchanged from default,
128
+ # but only if the default endpoint does not have a region prefix.
129
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ !@config.endpoint.split(".").first.include?("-")
131
+ credentials ||= Credentials.default scope: @config.scope,
132
+ enable_self_signed_jwt: enable_self_signed_jwt
133
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
134
+ credentials = Credentials.new credentials, scope: @config.scope
135
+ end
136
+ @quota_project_id = @config.quota_project
137
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
138
+
139
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
140
+ config.credentials = credentials
141
+ config.quota_project = @quota_project_id
142
+ config.endpoint = @config.endpoint
143
+ end
144
+
145
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
146
+ config.credentials = credentials
147
+ config.quota_project = @quota_project_id
148
+ config.endpoint = @config.endpoint
149
+ end
150
+
151
+ @dataform_stub = ::Gapic::ServiceStub.new(
152
+ ::Google::Cloud::Dataform::V1beta1::Dataform::Stub,
153
+ credentials: credentials,
154
+ endpoint: @config.endpoint,
155
+ channel_args: @config.channel_args,
156
+ interceptors: @config.interceptors
157
+ )
158
+ end
159
+
160
+ ##
161
+ # Get the associated client for mix-in of the Locations.
162
+ #
163
+ # @return [Google::Cloud::Location::Locations::Client]
164
+ #
165
+ attr_reader :location_client
166
+
167
+ ##
168
+ # Get the associated client for mix-in of the IAMPolicy.
169
+ #
170
+ # @return [Google::Iam::V1::IAMPolicy::Client]
171
+ #
172
+ attr_reader :iam_policy_client
173
+
174
+ # Service calls
175
+
176
+ ##
177
+ # Lists Repositories in a given project and location.
178
+ #
179
+ # @overload list_repositories(request, options = nil)
180
+ # Pass arguments to `list_repositories` via a request object, either of type
181
+ # {::Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest} or an equivalent Hash.
182
+ #
183
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest, ::Hash]
184
+ # A request object representing the call parameters. Required. To specify no
185
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
186
+ # @param options [::Gapic::CallOptions, ::Hash]
187
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
188
+ #
189
+ # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
190
+ # Pass arguments to `list_repositories` via keyword arguments. Note that at
191
+ # least one keyword argument is required. To specify no parameters, or to keep all
192
+ # the default parameter values, pass an empty Hash as a request object (see above).
193
+ #
194
+ # @param parent [::String]
195
+ # Required. The location in which to list repositories. Must be in the format
196
+ # `projects/*/locations/*`.
197
+ # @param page_size [::Integer]
198
+ # Optional. Maximum number of repositories to return. The server may return fewer
199
+ # items than requested. If unspecified, the server will pick an appropriate
200
+ # default.
201
+ # @param page_token [::String]
202
+ # Optional. Page token received from a previous `ListRepositories` call.
203
+ # Provide this to retrieve the subsequent page.
204
+ #
205
+ # When paginating, all other parameters provided to `ListRepositories`
206
+ # must match the call that provided the page token.
207
+ # @param order_by [::String]
208
+ # Optional. This field only supports ordering by `name`. If unspecified, the server
209
+ # will choose the ordering. If specified, the default order is ascending for
210
+ # the `name` field.
211
+ # @param filter [::String]
212
+ # Optional. Filter for the returned list.
213
+ #
214
+ # @yield [response, operation] Access the result along with the RPC operation
215
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::Repository>]
216
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
217
+ #
218
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::Repository>]
219
+ #
220
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
221
+ #
222
+ # @example Basic example
223
+ # require "google/cloud/dataform/v1beta1"
224
+ #
225
+ # # Create a client object. The client can be reused for multiple calls.
226
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
227
+ #
228
+ # # Create a request. To set request fields, pass in keyword arguments.
229
+ # request = Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest.new
230
+ #
231
+ # # Call the list_repositories method.
232
+ # result = client.list_repositories request
233
+ #
234
+ # # The returned object is of type Gapic::PagedEnumerable. You can
235
+ # # iterate over all elements by calling #each, and the enumerable
236
+ # # will lazily make API calls to fetch subsequent pages. Other
237
+ # # methods are also available for managing paging directly.
238
+ # result.each do |response|
239
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Repository.
240
+ # p response
241
+ # end
242
+ #
243
+ def list_repositories request, options = nil
244
+ raise ::ArgumentError, "request must be provided" if request.nil?
245
+
246
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest
247
+
248
+ # Converts hash and nil to an options object
249
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
250
+
251
+ # Customize the options with defaults
252
+ metadata = @config.rpcs.list_repositories.metadata.to_h
253
+
254
+ # Set x-goog-api-client and x-goog-user-project headers
255
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
256
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
257
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
258
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
259
+
260
+ header_params = {}
261
+ if request.parent
262
+ header_params["parent"] = request.parent
263
+ end
264
+
265
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
266
+ metadata[:"x-goog-request-params"] ||= request_params_header
267
+
268
+ options.apply_defaults timeout: @config.rpcs.list_repositories.timeout,
269
+ metadata: metadata,
270
+ retry_policy: @config.rpcs.list_repositories.retry_policy
271
+
272
+ options.apply_defaults timeout: @config.timeout,
273
+ metadata: @config.metadata,
274
+ retry_policy: @config.retry_policy
275
+
276
+ @dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation|
277
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options
278
+ yield response, operation if block_given?
279
+ return response
280
+ end
281
+ rescue ::GRPC::BadStatus => e
282
+ raise ::Google::Cloud::Error.from_error(e)
283
+ end
284
+
285
+ ##
286
+ # Fetches a single Repository.
287
+ #
288
+ # @overload get_repository(request, options = nil)
289
+ # Pass arguments to `get_repository` via a request object, either of type
290
+ # {::Google::Cloud::Dataform::V1beta1::GetRepositoryRequest} or an equivalent Hash.
291
+ #
292
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetRepositoryRequest, ::Hash]
293
+ # A request object representing the call parameters. Required. To specify no
294
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
295
+ # @param options [::Gapic::CallOptions, ::Hash]
296
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
297
+ #
298
+ # @overload get_repository(name: nil)
299
+ # Pass arguments to `get_repository` via keyword arguments. Note that at
300
+ # least one keyword argument is required. To specify no parameters, or to keep all
301
+ # the default parameter values, pass an empty Hash as a request object (see above).
302
+ #
303
+ # @param name [::String]
304
+ # Required. The repository's name.
305
+ #
306
+ # @yield [response, operation] Access the result along with the RPC operation
307
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Repository]
308
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
309
+ #
310
+ # @return [::Google::Cloud::Dataform::V1beta1::Repository]
311
+ #
312
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/cloud/dataform/v1beta1"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Cloud::Dataform::V1beta1::GetRepositoryRequest.new
322
+ #
323
+ # # Call the get_repository method.
324
+ # result = client.get_repository request
325
+ #
326
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Repository.
327
+ # p result
328
+ #
329
+ def get_repository request, options = nil
330
+ raise ::ArgumentError, "request must be provided" if request.nil?
331
+
332
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetRepositoryRequest
333
+
334
+ # Converts hash and nil to an options object
335
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
336
+
337
+ # Customize the options with defaults
338
+ metadata = @config.rpcs.get_repository.metadata.to_h
339
+
340
+ # Set x-goog-api-client and x-goog-user-project headers
341
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
343
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
344
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
+
346
+ header_params = {}
347
+ if request.name
348
+ header_params["name"] = request.name
349
+ end
350
+
351
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
352
+ metadata[:"x-goog-request-params"] ||= request_params_header
353
+
354
+ options.apply_defaults timeout: @config.rpcs.get_repository.timeout,
355
+ metadata: metadata,
356
+ retry_policy: @config.rpcs.get_repository.retry_policy
357
+
358
+ options.apply_defaults timeout: @config.timeout,
359
+ metadata: @config.metadata,
360
+ retry_policy: @config.retry_policy
361
+
362
+ @dataform_stub.call_rpc :get_repository, request, options: options do |response, operation|
363
+ yield response, operation if block_given?
364
+ return response
365
+ end
366
+ rescue ::GRPC::BadStatus => e
367
+ raise ::Google::Cloud::Error.from_error(e)
368
+ end
369
+
370
+ ##
371
+ # Creates a new Repository in a given project and location.
372
+ #
373
+ # @overload create_repository(request, options = nil)
374
+ # Pass arguments to `create_repository` via a request object, either of type
375
+ # {::Google::Cloud::Dataform::V1beta1::CreateRepositoryRequest} or an equivalent Hash.
376
+ #
377
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateRepositoryRequest, ::Hash]
378
+ # A request object representing the call parameters. Required. To specify no
379
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
380
+ # @param options [::Gapic::CallOptions, ::Hash]
381
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
382
+ #
383
+ # @overload create_repository(parent: nil, repository: nil, repository_id: nil)
384
+ # Pass arguments to `create_repository` via keyword arguments. Note that at
385
+ # least one keyword argument is required. To specify no parameters, or to keep all
386
+ # the default parameter values, pass an empty Hash as a request object (see above).
387
+ #
388
+ # @param parent [::String]
389
+ # Required. The location in which to create the repository. Must be in the format
390
+ # `projects/*/locations/*`.
391
+ # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
392
+ # Required. The repository to create.
393
+ # @param repository_id [::String]
394
+ # Required. The ID to use for the repository, which will become the final component of
395
+ # the repository's resource name.
396
+ #
397
+ # @yield [response, operation] Access the result along with the RPC operation
398
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Repository]
399
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
400
+ #
401
+ # @return [::Google::Cloud::Dataform::V1beta1::Repository]
402
+ #
403
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
404
+ #
405
+ # @example Basic example
406
+ # require "google/cloud/dataform/v1beta1"
407
+ #
408
+ # # Create a client object. The client can be reused for multiple calls.
409
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
410
+ #
411
+ # # Create a request. To set request fields, pass in keyword arguments.
412
+ # request = Google::Cloud::Dataform::V1beta1::CreateRepositoryRequest.new
413
+ #
414
+ # # Call the create_repository method.
415
+ # result = client.create_repository request
416
+ #
417
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Repository.
418
+ # p result
419
+ #
420
+ def create_repository request, options = nil
421
+ raise ::ArgumentError, "request must be provided" if request.nil?
422
+
423
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateRepositoryRequest
424
+
425
+ # Converts hash and nil to an options object
426
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
427
+
428
+ # Customize the options with defaults
429
+ metadata = @config.rpcs.create_repository.metadata.to_h
430
+
431
+ # Set x-goog-api-client and x-goog-user-project headers
432
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
433
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
434
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
435
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
436
+
437
+ header_params = {}
438
+ if request.parent
439
+ header_params["parent"] = request.parent
440
+ end
441
+
442
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
443
+ metadata[:"x-goog-request-params"] ||= request_params_header
444
+
445
+ options.apply_defaults timeout: @config.rpcs.create_repository.timeout,
446
+ metadata: metadata,
447
+ retry_policy: @config.rpcs.create_repository.retry_policy
448
+
449
+ options.apply_defaults timeout: @config.timeout,
450
+ metadata: @config.metadata,
451
+ retry_policy: @config.retry_policy
452
+
453
+ @dataform_stub.call_rpc :create_repository, request, options: options do |response, operation|
454
+ yield response, operation if block_given?
455
+ return response
456
+ end
457
+ rescue ::GRPC::BadStatus => e
458
+ raise ::Google::Cloud::Error.from_error(e)
459
+ end
460
+
461
+ ##
462
+ # Updates a single Repository.
463
+ #
464
+ # @overload update_repository(request, options = nil)
465
+ # Pass arguments to `update_repository` via a request object, either of type
466
+ # {::Google::Cloud::Dataform::V1beta1::UpdateRepositoryRequest} or an equivalent Hash.
467
+ #
468
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateRepositoryRequest, ::Hash]
469
+ # A request object representing the call parameters. Required. To specify no
470
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
471
+ # @param options [::Gapic::CallOptions, ::Hash]
472
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
473
+ #
474
+ # @overload update_repository(update_mask: nil, repository: nil)
475
+ # Pass arguments to `update_repository` via keyword arguments. Note that at
476
+ # least one keyword argument is required. To specify no parameters, or to keep all
477
+ # the default parameter values, pass an empty Hash as a request object (see above).
478
+ #
479
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
480
+ # Optional. Specifies the fields to be updated in the repository. If left unset,
481
+ # all fields will be updated.
482
+ # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
483
+ # Required. The repository to update.
484
+ #
485
+ # @yield [response, operation] Access the result along with the RPC operation
486
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Repository]
487
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
488
+ #
489
+ # @return [::Google::Cloud::Dataform::V1beta1::Repository]
490
+ #
491
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
492
+ #
493
+ # @example Basic example
494
+ # require "google/cloud/dataform/v1beta1"
495
+ #
496
+ # # Create a client object. The client can be reused for multiple calls.
497
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
498
+ #
499
+ # # Create a request. To set request fields, pass in keyword arguments.
500
+ # request = Google::Cloud::Dataform::V1beta1::UpdateRepositoryRequest.new
501
+ #
502
+ # # Call the update_repository method.
503
+ # result = client.update_repository request
504
+ #
505
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Repository.
506
+ # p result
507
+ #
508
+ def update_repository request, options = nil
509
+ raise ::ArgumentError, "request must be provided" if request.nil?
510
+
511
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateRepositoryRequest
512
+
513
+ # Converts hash and nil to an options object
514
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
515
+
516
+ # Customize the options with defaults
517
+ metadata = @config.rpcs.update_repository.metadata.to_h
518
+
519
+ # Set x-goog-api-client and x-goog-user-project headers
520
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
521
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
522
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
523
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
524
+
525
+ header_params = {}
526
+ if request.repository&.name
527
+ header_params["repository.name"] = request.repository.name
528
+ end
529
+
530
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
531
+ metadata[:"x-goog-request-params"] ||= request_params_header
532
+
533
+ options.apply_defaults timeout: @config.rpcs.update_repository.timeout,
534
+ metadata: metadata,
535
+ retry_policy: @config.rpcs.update_repository.retry_policy
536
+
537
+ options.apply_defaults timeout: @config.timeout,
538
+ metadata: @config.metadata,
539
+ retry_policy: @config.retry_policy
540
+
541
+ @dataform_stub.call_rpc :update_repository, request, options: options do |response, operation|
542
+ yield response, operation if block_given?
543
+ return response
544
+ end
545
+ rescue ::GRPC::BadStatus => e
546
+ raise ::Google::Cloud::Error.from_error(e)
547
+ end
548
+
549
+ ##
550
+ # Deletes a single Repository.
551
+ #
552
+ # @overload delete_repository(request, options = nil)
553
+ # Pass arguments to `delete_repository` via a request object, either of type
554
+ # {::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest} or an equivalent Hash.
555
+ #
556
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest, ::Hash]
557
+ # A request object representing the call parameters. Required. To specify no
558
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
559
+ # @param options [::Gapic::CallOptions, ::Hash]
560
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
561
+ #
562
+ # @overload delete_repository(name: nil, force: nil)
563
+ # Pass arguments to `delete_repository` via keyword arguments. Note that at
564
+ # least one keyword argument is required. To specify no parameters, or to keep all
565
+ # the default parameter values, pass an empty Hash as a request object (see above).
566
+ #
567
+ # @param name [::String]
568
+ # Required. The repository's name.
569
+ # @param force [::Boolean]
570
+ # If set to true, any child resources of this repository will also be
571
+ # deleted. (Otherwise, the request will only succeed if the repository has no
572
+ # child resources.)
573
+ #
574
+ # @yield [response, operation] Access the result along with the RPC operation
575
+ # @yieldparam response [::Google::Protobuf::Empty]
576
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
577
+ #
578
+ # @return [::Google::Protobuf::Empty]
579
+ #
580
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
581
+ #
582
+ # @example Basic example
583
+ # require "google/cloud/dataform/v1beta1"
584
+ #
585
+ # # Create a client object. The client can be reused for multiple calls.
586
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
587
+ #
588
+ # # Create a request. To set request fields, pass in keyword arguments.
589
+ # request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest.new
590
+ #
591
+ # # Call the delete_repository method.
592
+ # result = client.delete_repository request
593
+ #
594
+ # # The returned object is of type Google::Protobuf::Empty.
595
+ # p result
596
+ #
597
+ def delete_repository request, options = nil
598
+ raise ::ArgumentError, "request must be provided" if request.nil?
599
+
600
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
601
+
602
+ # Converts hash and nil to an options object
603
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
604
+
605
+ # Customize the options with defaults
606
+ metadata = @config.rpcs.delete_repository.metadata.to_h
607
+
608
+ # Set x-goog-api-client and x-goog-user-project headers
609
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
610
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
611
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
612
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
613
+
614
+ header_params = {}
615
+ if request.name
616
+ header_params["name"] = request.name
617
+ end
618
+
619
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
620
+ metadata[:"x-goog-request-params"] ||= request_params_header
621
+
622
+ options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
623
+ metadata: metadata,
624
+ retry_policy: @config.rpcs.delete_repository.retry_policy
625
+
626
+ options.apply_defaults timeout: @config.timeout,
627
+ metadata: @config.metadata,
628
+ retry_policy: @config.retry_policy
629
+
630
+ @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation|
631
+ yield response, operation if block_given?
632
+ return response
633
+ end
634
+ rescue ::GRPC::BadStatus => e
635
+ raise ::Google::Cloud::Error.from_error(e)
636
+ end
637
+
638
+ ##
639
+ # Fetches a Repository's remote branches.
640
+ #
641
+ # @overload fetch_remote_branches(request, options = nil)
642
+ # Pass arguments to `fetch_remote_branches` via a request object, either of type
643
+ # {::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest} or an equivalent Hash.
644
+ #
645
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest, ::Hash]
646
+ # A request object representing the call parameters. Required. To specify no
647
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
648
+ # @param options [::Gapic::CallOptions, ::Hash]
649
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
650
+ #
651
+ # @overload fetch_remote_branches(name: nil)
652
+ # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at
653
+ # least one keyword argument is required. To specify no parameters, or to keep all
654
+ # the default parameter values, pass an empty Hash as a request object (see above).
655
+ #
656
+ # @param name [::String]
657
+ # Required. The repository's name.
658
+ #
659
+ # @yield [response, operation] Access the result along with the RPC operation
660
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
661
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
662
+ #
663
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
664
+ #
665
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
666
+ #
667
+ # @example Basic example
668
+ # require "google/cloud/dataform/v1beta1"
669
+ #
670
+ # # Create a client object. The client can be reused for multiple calls.
671
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
672
+ #
673
+ # # Create a request. To set request fields, pass in keyword arguments.
674
+ # request = Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest.new
675
+ #
676
+ # # Call the fetch_remote_branches method.
677
+ # result = client.fetch_remote_branches request
678
+ #
679
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse.
680
+ # p result
681
+ #
682
+ def fetch_remote_branches request, options = nil
683
+ raise ::ArgumentError, "request must be provided" if request.nil?
684
+
685
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest
686
+
687
+ # Converts hash and nil to an options object
688
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
689
+
690
+ # Customize the options with defaults
691
+ metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
692
+
693
+ # Set x-goog-api-client and x-goog-user-project headers
694
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
695
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
696
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
697
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
698
+
699
+ header_params = {}
700
+ if request.name
701
+ header_params["name"] = request.name
702
+ end
703
+
704
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
705
+ metadata[:"x-goog-request-params"] ||= request_params_header
706
+
707
+ options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
708
+ metadata: metadata,
709
+ retry_policy: @config.rpcs.fetch_remote_branches.retry_policy
710
+
711
+ options.apply_defaults timeout: @config.timeout,
712
+ metadata: @config.metadata,
713
+ retry_policy: @config.retry_policy
714
+
715
+ @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation|
716
+ yield response, operation if block_given?
717
+ return response
718
+ end
719
+ rescue ::GRPC::BadStatus => e
720
+ raise ::Google::Cloud::Error.from_error(e)
721
+ end
722
+
723
+ ##
724
+ # Lists Workspaces in a given Repository.
725
+ #
726
+ # @overload list_workspaces(request, options = nil)
727
+ # Pass arguments to `list_workspaces` via a request object, either of type
728
+ # {::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest} or an equivalent Hash.
729
+ #
730
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest, ::Hash]
731
+ # A request object representing the call parameters. Required. To specify no
732
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
733
+ # @param options [::Gapic::CallOptions, ::Hash]
734
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
735
+ #
736
+ # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
737
+ # Pass arguments to `list_workspaces` via keyword arguments. Note that at
738
+ # least one keyword argument is required. To specify no parameters, or to keep all
739
+ # the default parameter values, pass an empty Hash as a request object (see above).
740
+ #
741
+ # @param parent [::String]
742
+ # Required. The repository in which to list workspaces. Must be in the
743
+ # format `projects/*/locations/*/repositories/*`.
744
+ # @param page_size [::Integer]
745
+ # Optional. Maximum number of workspaces to return. The server may return fewer
746
+ # items than requested. If unspecified, the server will pick an appropriate
747
+ # default.
748
+ # @param page_token [::String]
749
+ # Optional. Page token received from a previous `ListWorkspaces` call.
750
+ # Provide this to retrieve the subsequent page.
751
+ #
752
+ # When paginating, all other parameters provided to `ListWorkspaces`
753
+ # must match the call that provided the page token.
754
+ # @param order_by [::String]
755
+ # Optional. This field only supports ordering by `name`. If unspecified, the server
756
+ # will choose the ordering. If specified, the default order is ascending for
757
+ # the `name` field.
758
+ # @param filter [::String]
759
+ # Optional. Filter for the returned list.
760
+ #
761
+ # @yield [response, operation] Access the result along with the RPC operation
762
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::Workspace>]
763
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
764
+ #
765
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::Workspace>]
766
+ #
767
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
768
+ #
769
+ # @example Basic example
770
+ # require "google/cloud/dataform/v1beta1"
771
+ #
772
+ # # Create a client object. The client can be reused for multiple calls.
773
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
774
+ #
775
+ # # Create a request. To set request fields, pass in keyword arguments.
776
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest.new
777
+ #
778
+ # # Call the list_workspaces method.
779
+ # result = client.list_workspaces request
780
+ #
781
+ # # The returned object is of type Gapic::PagedEnumerable. You can
782
+ # # iterate over all elements by calling #each, and the enumerable
783
+ # # will lazily make API calls to fetch subsequent pages. Other
784
+ # # methods are also available for managing paging directly.
785
+ # result.each do |response|
786
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::Workspace.
787
+ # p response
788
+ # end
789
+ #
790
+ def list_workspaces request, options = nil
791
+ raise ::ArgumentError, "request must be provided" if request.nil?
792
+
793
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest
794
+
795
+ # Converts hash and nil to an options object
796
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
797
+
798
+ # Customize the options with defaults
799
+ metadata = @config.rpcs.list_workspaces.metadata.to_h
800
+
801
+ # Set x-goog-api-client and x-goog-user-project headers
802
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
803
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
804
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
805
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
806
+
807
+ header_params = {}
808
+ if request.parent
809
+ header_params["parent"] = request.parent
810
+ end
811
+
812
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
813
+ metadata[:"x-goog-request-params"] ||= request_params_header
814
+
815
+ options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
816
+ metadata: metadata,
817
+ retry_policy: @config.rpcs.list_workspaces.retry_policy
818
+
819
+ options.apply_defaults timeout: @config.timeout,
820
+ metadata: @config.metadata,
821
+ retry_policy: @config.retry_policy
822
+
823
+ @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation|
824
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options
825
+ yield response, operation if block_given?
826
+ return response
827
+ end
828
+ rescue ::GRPC::BadStatus => e
829
+ raise ::Google::Cloud::Error.from_error(e)
830
+ end
831
+
832
+ ##
833
+ # Fetches a single Workspace.
834
+ #
835
+ # @overload get_workspace(request, options = nil)
836
+ # Pass arguments to `get_workspace` via a request object, either of type
837
+ # {::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest} or an equivalent Hash.
838
+ #
839
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest, ::Hash]
840
+ # A request object representing the call parameters. Required. To specify no
841
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
842
+ # @param options [::Gapic::CallOptions, ::Hash]
843
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
844
+ #
845
+ # @overload get_workspace(name: nil)
846
+ # Pass arguments to `get_workspace` via keyword arguments. Note that at
847
+ # least one keyword argument is required. To specify no parameters, or to keep all
848
+ # the default parameter values, pass an empty Hash as a request object (see above).
849
+ #
850
+ # @param name [::String]
851
+ # Required. The workspace's name.
852
+ #
853
+ # @yield [response, operation] Access the result along with the RPC operation
854
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Workspace]
855
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
856
+ #
857
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
858
+ #
859
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
860
+ #
861
+ # @example Basic example
862
+ # require "google/cloud/dataform/v1beta1"
863
+ #
864
+ # # Create a client object. The client can be reused for multiple calls.
865
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
866
+ #
867
+ # # Create a request. To set request fields, pass in keyword arguments.
868
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest.new
869
+ #
870
+ # # Call the get_workspace method.
871
+ # result = client.get_workspace request
872
+ #
873
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
874
+ # p result
875
+ #
876
+ def get_workspace request, options = nil
877
+ raise ::ArgumentError, "request must be provided" if request.nil?
878
+
879
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest
880
+
881
+ # Converts hash and nil to an options object
882
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
883
+
884
+ # Customize the options with defaults
885
+ metadata = @config.rpcs.get_workspace.metadata.to_h
886
+
887
+ # Set x-goog-api-client and x-goog-user-project headers
888
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
889
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
890
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
891
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
892
+
893
+ header_params = {}
894
+ if request.name
895
+ header_params["name"] = request.name
896
+ end
897
+
898
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
899
+ metadata[:"x-goog-request-params"] ||= request_params_header
900
+
901
+ options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
902
+ metadata: metadata,
903
+ retry_policy: @config.rpcs.get_workspace.retry_policy
904
+
905
+ options.apply_defaults timeout: @config.timeout,
906
+ metadata: @config.metadata,
907
+ retry_policy: @config.retry_policy
908
+
909
+ @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation|
910
+ yield response, operation if block_given?
911
+ return response
912
+ end
913
+ rescue ::GRPC::BadStatus => e
914
+ raise ::Google::Cloud::Error.from_error(e)
915
+ end
916
+
917
+ ##
918
+ # Creates a new Workspace in a given Repository.
919
+ #
920
+ # @overload create_workspace(request, options = nil)
921
+ # Pass arguments to `create_workspace` via a request object, either of type
922
+ # {::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest} or an equivalent Hash.
923
+ #
924
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
925
+ # A request object representing the call parameters. Required. To specify no
926
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
927
+ # @param options [::Gapic::CallOptions, ::Hash]
928
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
929
+ #
930
+ # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil)
931
+ # Pass arguments to `create_workspace` via keyword arguments. Note that at
932
+ # least one keyword argument is required. To specify no parameters, or to keep all
933
+ # the default parameter values, pass an empty Hash as a request object (see above).
934
+ #
935
+ # @param parent [::String]
936
+ # Required. The repository in which to create the workspace. Must be in the format
937
+ # `projects/*/locations/*/repositories/*`.
938
+ # @param workspace [::Google::Cloud::Dataform::V1beta1::Workspace, ::Hash]
939
+ # Required. The workspace to create.
940
+ # @param workspace_id [::String]
941
+ # Required. The ID to use for the workspace, which will become the final component of
942
+ # the workspace's resource name.
943
+ #
944
+ # @yield [response, operation] Access the result along with the RPC operation
945
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::Workspace]
946
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
947
+ #
948
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
949
+ #
950
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
951
+ #
952
+ # @example Basic example
953
+ # require "google/cloud/dataform/v1beta1"
954
+ #
955
+ # # Create a client object. The client can be reused for multiple calls.
956
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
957
+ #
958
+ # # Create a request. To set request fields, pass in keyword arguments.
959
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest.new
960
+ #
961
+ # # Call the create_workspace method.
962
+ # result = client.create_workspace request
963
+ #
964
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::Workspace.
965
+ # p result
966
+ #
967
+ def create_workspace request, options = nil
968
+ raise ::ArgumentError, "request must be provided" if request.nil?
969
+
970
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
971
+
972
+ # Converts hash and nil to an options object
973
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
974
+
975
+ # Customize the options with defaults
976
+ metadata = @config.rpcs.create_workspace.metadata.to_h
977
+
978
+ # Set x-goog-api-client and x-goog-user-project headers
979
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
980
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
981
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
982
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
983
+
984
+ header_params = {}
985
+ if request.parent
986
+ header_params["parent"] = request.parent
987
+ end
988
+
989
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
990
+ metadata[:"x-goog-request-params"] ||= request_params_header
991
+
992
+ options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
993
+ metadata: metadata,
994
+ retry_policy: @config.rpcs.create_workspace.retry_policy
995
+
996
+ options.apply_defaults timeout: @config.timeout,
997
+ metadata: @config.metadata,
998
+ retry_policy: @config.retry_policy
999
+
1000
+ @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation|
1001
+ yield response, operation if block_given?
1002
+ return response
1003
+ end
1004
+ rescue ::GRPC::BadStatus => e
1005
+ raise ::Google::Cloud::Error.from_error(e)
1006
+ end
1007
+
1008
+ ##
1009
+ # Deletes a single Workspace.
1010
+ #
1011
+ # @overload delete_workspace(request, options = nil)
1012
+ # Pass arguments to `delete_workspace` via a request object, either of type
1013
+ # {::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest} or an equivalent Hash.
1014
+ #
1015
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest, ::Hash]
1016
+ # A request object representing the call parameters. Required. To specify no
1017
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1018
+ # @param options [::Gapic::CallOptions, ::Hash]
1019
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1020
+ #
1021
+ # @overload delete_workspace(name: nil)
1022
+ # Pass arguments to `delete_workspace` via keyword arguments. Note that at
1023
+ # least one keyword argument is required. To specify no parameters, or to keep all
1024
+ # the default parameter values, pass an empty Hash as a request object (see above).
1025
+ #
1026
+ # @param name [::String]
1027
+ # Required. The workspace resource's name.
1028
+ #
1029
+ # @yield [response, operation] Access the result along with the RPC operation
1030
+ # @yieldparam response [::Google::Protobuf::Empty]
1031
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1032
+ #
1033
+ # @return [::Google::Protobuf::Empty]
1034
+ #
1035
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1036
+ #
1037
+ # @example Basic example
1038
+ # require "google/cloud/dataform/v1beta1"
1039
+ #
1040
+ # # Create a client object. The client can be reused for multiple calls.
1041
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1042
+ #
1043
+ # # Create a request. To set request fields, pass in keyword arguments.
1044
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest.new
1045
+ #
1046
+ # # Call the delete_workspace method.
1047
+ # result = client.delete_workspace request
1048
+ #
1049
+ # # The returned object is of type Google::Protobuf::Empty.
1050
+ # p result
1051
+ #
1052
+ def delete_workspace request, options = nil
1053
+ raise ::ArgumentError, "request must be provided" if request.nil?
1054
+
1055
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest
1056
+
1057
+ # Converts hash and nil to an options object
1058
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1059
+
1060
+ # Customize the options with defaults
1061
+ metadata = @config.rpcs.delete_workspace.metadata.to_h
1062
+
1063
+ # Set x-goog-api-client and x-goog-user-project headers
1064
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1065
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1066
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1067
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1068
+
1069
+ header_params = {}
1070
+ if request.name
1071
+ header_params["name"] = request.name
1072
+ end
1073
+
1074
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1075
+ metadata[:"x-goog-request-params"] ||= request_params_header
1076
+
1077
+ options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
1078
+ metadata: metadata,
1079
+ retry_policy: @config.rpcs.delete_workspace.retry_policy
1080
+
1081
+ options.apply_defaults timeout: @config.timeout,
1082
+ metadata: @config.metadata,
1083
+ retry_policy: @config.retry_policy
1084
+
1085
+ @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation|
1086
+ yield response, operation if block_given?
1087
+ return response
1088
+ end
1089
+ rescue ::GRPC::BadStatus => e
1090
+ raise ::Google::Cloud::Error.from_error(e)
1091
+ end
1092
+
1093
+ ##
1094
+ # Installs dependency NPM packages (inside a Workspace).
1095
+ #
1096
+ # @overload install_npm_packages(request, options = nil)
1097
+ # Pass arguments to `install_npm_packages` via a request object, either of type
1098
+ # {::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest} or an equivalent Hash.
1099
+ #
1100
+ # @param request [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest, ::Hash]
1101
+ # A request object representing the call parameters. Required. To specify no
1102
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1103
+ # @param options [::Gapic::CallOptions, ::Hash]
1104
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1105
+ #
1106
+ # @overload install_npm_packages(workspace: nil)
1107
+ # Pass arguments to `install_npm_packages` via keyword arguments. Note that at
1108
+ # least one keyword argument is required. To specify no parameters, or to keep all
1109
+ # the default parameter values, pass an empty Hash as a request object (see above).
1110
+ #
1111
+ # @param workspace [::String]
1112
+ # Required. The workspace's name.
1113
+ #
1114
+ # @yield [response, operation] Access the result along with the RPC operation
1115
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1116
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1117
+ #
1118
+ # @return [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
1119
+ #
1120
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1121
+ #
1122
+ # @example Basic example
1123
+ # require "google/cloud/dataform/v1beta1"
1124
+ #
1125
+ # # Create a client object. The client can be reused for multiple calls.
1126
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1127
+ #
1128
+ # # Create a request. To set request fields, pass in keyword arguments.
1129
+ # request = Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest.new
1130
+ #
1131
+ # # Call the install_npm_packages method.
1132
+ # result = client.install_npm_packages request
1133
+ #
1134
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse.
1135
+ # p result
1136
+ #
1137
+ def install_npm_packages request, options = nil
1138
+ raise ::ArgumentError, "request must be provided" if request.nil?
1139
+
1140
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest
1141
+
1142
+ # Converts hash and nil to an options object
1143
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1144
+
1145
+ # Customize the options with defaults
1146
+ metadata = @config.rpcs.install_npm_packages.metadata.to_h
1147
+
1148
+ # Set x-goog-api-client and x-goog-user-project headers
1149
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1150
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1151
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1152
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1153
+
1154
+ header_params = {}
1155
+ if request.workspace
1156
+ header_params["workspace"] = request.workspace
1157
+ end
1158
+
1159
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1160
+ metadata[:"x-goog-request-params"] ||= request_params_header
1161
+
1162
+ options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
1163
+ metadata: metadata,
1164
+ retry_policy: @config.rpcs.install_npm_packages.retry_policy
1165
+
1166
+ options.apply_defaults timeout: @config.timeout,
1167
+ metadata: @config.metadata,
1168
+ retry_policy: @config.retry_policy
1169
+
1170
+ @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation|
1171
+ yield response, operation if block_given?
1172
+ return response
1173
+ end
1174
+ rescue ::GRPC::BadStatus => e
1175
+ raise ::Google::Cloud::Error.from_error(e)
1176
+ end
1177
+
1178
+ ##
1179
+ # Pulls Git commits from the Repository's remote into a Workspace.
1180
+ #
1181
+ # @overload pull_git_commits(request, options = nil)
1182
+ # Pass arguments to `pull_git_commits` via a request object, either of type
1183
+ # {::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest} or an equivalent Hash.
1184
+ #
1185
+ # @param request [::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest, ::Hash]
1186
+ # A request object representing the call parameters. Required. To specify no
1187
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1188
+ # @param options [::Gapic::CallOptions, ::Hash]
1189
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1190
+ #
1191
+ # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil)
1192
+ # Pass arguments to `pull_git_commits` via keyword arguments. Note that at
1193
+ # least one keyword argument is required. To specify no parameters, or to keep all
1194
+ # the default parameter values, pass an empty Hash as a request object (see above).
1195
+ #
1196
+ # @param name [::String]
1197
+ # Required. The workspace's name.
1198
+ # @param remote_branch [::String]
1199
+ # Optional. The name of the branch in the Git remote from which to pull commits.
1200
+ # If left unset, the repository's default branch name will be used.
1201
+ # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1202
+ # Required. The author of any merge commit which may be created as a result of merging
1203
+ # fetched Git commits into this workspace.
1204
+ #
1205
+ # @yield [response, operation] Access the result along with the RPC operation
1206
+ # @yieldparam response [::Google::Protobuf::Empty]
1207
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1208
+ #
1209
+ # @return [::Google::Protobuf::Empty]
1210
+ #
1211
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1212
+ #
1213
+ # @example Basic example
1214
+ # require "google/cloud/dataform/v1beta1"
1215
+ #
1216
+ # # Create a client object. The client can be reused for multiple calls.
1217
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1218
+ #
1219
+ # # Create a request. To set request fields, pass in keyword arguments.
1220
+ # request = Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest.new
1221
+ #
1222
+ # # Call the pull_git_commits method.
1223
+ # result = client.pull_git_commits request
1224
+ #
1225
+ # # The returned object is of type Google::Protobuf::Empty.
1226
+ # p result
1227
+ #
1228
+ def pull_git_commits request, options = nil
1229
+ raise ::ArgumentError, "request must be provided" if request.nil?
1230
+
1231
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest
1232
+
1233
+ # Converts hash and nil to an options object
1234
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1235
+
1236
+ # Customize the options with defaults
1237
+ metadata = @config.rpcs.pull_git_commits.metadata.to_h
1238
+
1239
+ # Set x-goog-api-client and x-goog-user-project headers
1240
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1241
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1242
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1243
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1244
+
1245
+ header_params = {}
1246
+ if request.name
1247
+ header_params["name"] = request.name
1248
+ end
1249
+
1250
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1251
+ metadata[:"x-goog-request-params"] ||= request_params_header
1252
+
1253
+ options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
1254
+ metadata: metadata,
1255
+ retry_policy: @config.rpcs.pull_git_commits.retry_policy
1256
+
1257
+ options.apply_defaults timeout: @config.timeout,
1258
+ metadata: @config.metadata,
1259
+ retry_policy: @config.retry_policy
1260
+
1261
+ @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation|
1262
+ yield response, operation if block_given?
1263
+ return response
1264
+ end
1265
+ rescue ::GRPC::BadStatus => e
1266
+ raise ::Google::Cloud::Error.from_error(e)
1267
+ end
1268
+
1269
+ ##
1270
+ # Pushes Git commits from a Workspace to the Repository's remote.
1271
+ #
1272
+ # @overload push_git_commits(request, options = nil)
1273
+ # Pass arguments to `push_git_commits` via a request object, either of type
1274
+ # {::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest} or an equivalent Hash.
1275
+ #
1276
+ # @param request [::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest, ::Hash]
1277
+ # A request object representing the call parameters. Required. To specify no
1278
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1279
+ # @param options [::Gapic::CallOptions, ::Hash]
1280
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1281
+ #
1282
+ # @overload push_git_commits(name: nil, remote_branch: nil)
1283
+ # Pass arguments to `push_git_commits` via keyword arguments. Note that at
1284
+ # least one keyword argument is required. To specify no parameters, or to keep all
1285
+ # the default parameter values, pass an empty Hash as a request object (see above).
1286
+ #
1287
+ # @param name [::String]
1288
+ # Required. The workspace's name.
1289
+ # @param remote_branch [::String]
1290
+ # Optional. The name of the branch in the Git remote to which commits should be pushed.
1291
+ # If left unset, the repository's default branch name will be used.
1292
+ #
1293
+ # @yield [response, operation] Access the result along with the RPC operation
1294
+ # @yieldparam response [::Google::Protobuf::Empty]
1295
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1296
+ #
1297
+ # @return [::Google::Protobuf::Empty]
1298
+ #
1299
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1300
+ #
1301
+ # @example Basic example
1302
+ # require "google/cloud/dataform/v1beta1"
1303
+ #
1304
+ # # Create a client object. The client can be reused for multiple calls.
1305
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1306
+ #
1307
+ # # Create a request. To set request fields, pass in keyword arguments.
1308
+ # request = Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest.new
1309
+ #
1310
+ # # Call the push_git_commits method.
1311
+ # result = client.push_git_commits request
1312
+ #
1313
+ # # The returned object is of type Google::Protobuf::Empty.
1314
+ # p result
1315
+ #
1316
+ def push_git_commits request, options = nil
1317
+ raise ::ArgumentError, "request must be provided" if request.nil?
1318
+
1319
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest
1320
+
1321
+ # Converts hash and nil to an options object
1322
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1323
+
1324
+ # Customize the options with defaults
1325
+ metadata = @config.rpcs.push_git_commits.metadata.to_h
1326
+
1327
+ # Set x-goog-api-client and x-goog-user-project headers
1328
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1329
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1330
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1331
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1332
+
1333
+ header_params = {}
1334
+ if request.name
1335
+ header_params["name"] = request.name
1336
+ end
1337
+
1338
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1339
+ metadata[:"x-goog-request-params"] ||= request_params_header
1340
+
1341
+ options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout,
1342
+ metadata: metadata,
1343
+ retry_policy: @config.rpcs.push_git_commits.retry_policy
1344
+
1345
+ options.apply_defaults timeout: @config.timeout,
1346
+ metadata: @config.metadata,
1347
+ retry_policy: @config.retry_policy
1348
+
1349
+ @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation|
1350
+ yield response, operation if block_given?
1351
+ return response
1352
+ end
1353
+ rescue ::GRPC::BadStatus => e
1354
+ raise ::Google::Cloud::Error.from_error(e)
1355
+ end
1356
+
1357
+ ##
1358
+ # Fetches Git statuses for the files in a Workspace.
1359
+ #
1360
+ # @overload fetch_file_git_statuses(request, options = nil)
1361
+ # Pass arguments to `fetch_file_git_statuses` via a request object, either of type
1362
+ # {::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest} or an equivalent Hash.
1363
+ #
1364
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest, ::Hash]
1365
+ # A request object representing the call parameters. Required. To specify no
1366
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1367
+ # @param options [::Gapic::CallOptions, ::Hash]
1368
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1369
+ #
1370
+ # @overload fetch_file_git_statuses(name: nil)
1371
+ # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at
1372
+ # least one keyword argument is required. To specify no parameters, or to keep all
1373
+ # the default parameter values, pass an empty Hash as a request object (see above).
1374
+ #
1375
+ # @param name [::String]
1376
+ # Required. The workspace's name.
1377
+ #
1378
+ # @yield [response, operation] Access the result along with the RPC operation
1379
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1380
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1381
+ #
1382
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1383
+ #
1384
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1385
+ #
1386
+ # @example Basic example
1387
+ # require "google/cloud/dataform/v1beta1"
1388
+ #
1389
+ # # Create a client object. The client can be reused for multiple calls.
1390
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1391
+ #
1392
+ # # Create a request. To set request fields, pass in keyword arguments.
1393
+ # request = Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest.new
1394
+ #
1395
+ # # Call the fetch_file_git_statuses method.
1396
+ # result = client.fetch_file_git_statuses request
1397
+ #
1398
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse.
1399
+ # p result
1400
+ #
1401
+ def fetch_file_git_statuses request, options = nil
1402
+ raise ::ArgumentError, "request must be provided" if request.nil?
1403
+
1404
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest
1405
+
1406
+ # Converts hash and nil to an options object
1407
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1408
+
1409
+ # Customize the options with defaults
1410
+ metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
1411
+
1412
+ # Set x-goog-api-client and x-goog-user-project headers
1413
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1414
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1415
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1416
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1417
+
1418
+ header_params = {}
1419
+ if request.name
1420
+ header_params["name"] = request.name
1421
+ end
1422
+
1423
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1424
+ metadata[:"x-goog-request-params"] ||= request_params_header
1425
+
1426
+ options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout,
1427
+ metadata: metadata,
1428
+ retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy
1429
+
1430
+ options.apply_defaults timeout: @config.timeout,
1431
+ metadata: @config.metadata,
1432
+ retry_policy: @config.retry_policy
1433
+
1434
+ @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation|
1435
+ yield response, operation if block_given?
1436
+ return response
1437
+ end
1438
+ rescue ::GRPC::BadStatus => e
1439
+ raise ::Google::Cloud::Error.from_error(e)
1440
+ end
1441
+
1442
+ ##
1443
+ # Fetches Git ahead/behind against a remote branch.
1444
+ #
1445
+ # @overload fetch_git_ahead_behind(request, options = nil)
1446
+ # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type
1447
+ # {::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest} or an equivalent Hash.
1448
+ #
1449
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest, ::Hash]
1450
+ # A request object representing the call parameters. Required. To specify no
1451
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1452
+ # @param options [::Gapic::CallOptions, ::Hash]
1453
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1454
+ #
1455
+ # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil)
1456
+ # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at
1457
+ # least one keyword argument is required. To specify no parameters, or to keep all
1458
+ # the default parameter values, pass an empty Hash as a request object (see above).
1459
+ #
1460
+ # @param name [::String]
1461
+ # Required. The workspace's name.
1462
+ # @param remote_branch [::String]
1463
+ # Optional. The name of the branch in the Git remote against which this workspace
1464
+ # should be compared. If left unset, the repository's default branch name
1465
+ # will be used.
1466
+ #
1467
+ # @yield [response, operation] Access the result along with the RPC operation
1468
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1469
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1470
+ #
1471
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1472
+ #
1473
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1474
+ #
1475
+ # @example Basic example
1476
+ # require "google/cloud/dataform/v1beta1"
1477
+ #
1478
+ # # Create a client object. The client can be reused for multiple calls.
1479
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1480
+ #
1481
+ # # Create a request. To set request fields, pass in keyword arguments.
1482
+ # request = Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest.new
1483
+ #
1484
+ # # Call the fetch_git_ahead_behind method.
1485
+ # result = client.fetch_git_ahead_behind request
1486
+ #
1487
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse.
1488
+ # p result
1489
+ #
1490
+ def fetch_git_ahead_behind request, options = nil
1491
+ raise ::ArgumentError, "request must be provided" if request.nil?
1492
+
1493
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest
1494
+
1495
+ # Converts hash and nil to an options object
1496
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1497
+
1498
+ # Customize the options with defaults
1499
+ metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
1500
+
1501
+ # Set x-goog-api-client and x-goog-user-project headers
1502
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1503
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1504
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1505
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1506
+
1507
+ header_params = {}
1508
+ if request.name
1509
+ header_params["name"] = request.name
1510
+ end
1511
+
1512
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1513
+ metadata[:"x-goog-request-params"] ||= request_params_header
1514
+
1515
+ options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout,
1516
+ metadata: metadata,
1517
+ retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy
1518
+
1519
+ options.apply_defaults timeout: @config.timeout,
1520
+ metadata: @config.metadata,
1521
+ retry_policy: @config.retry_policy
1522
+
1523
+ @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation|
1524
+ yield response, operation if block_given?
1525
+ return response
1526
+ end
1527
+ rescue ::GRPC::BadStatus => e
1528
+ raise ::Google::Cloud::Error.from_error(e)
1529
+ end
1530
+
1531
+ ##
1532
+ # Applies a Git commit for uncommitted files in a Workspace.
1533
+ #
1534
+ # @overload commit_workspace_changes(request, options = nil)
1535
+ # Pass arguments to `commit_workspace_changes` via a request object, either of type
1536
+ # {::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest} or an equivalent Hash.
1537
+ #
1538
+ # @param request [::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest, ::Hash]
1539
+ # A request object representing the call parameters. Required. To specify no
1540
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1541
+ # @param options [::Gapic::CallOptions, ::Hash]
1542
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1543
+ #
1544
+ # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil)
1545
+ # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at
1546
+ # least one keyword argument is required. To specify no parameters, or to keep all
1547
+ # the default parameter values, pass an empty Hash as a request object (see above).
1548
+ #
1549
+ # @param name [::String]
1550
+ # Required. The workspace's name.
1551
+ # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1552
+ # Required. The commit's author.
1553
+ # @param commit_message [::String]
1554
+ # Optional. The commit's message.
1555
+ # @param paths [::Array<::String>]
1556
+ # Optional. Full file paths to commit including filename, rooted at workspace root. If
1557
+ # left empty, all files will be committed.
1558
+ #
1559
+ # @yield [response, operation] Access the result along with the RPC operation
1560
+ # @yieldparam response [::Google::Protobuf::Empty]
1561
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1562
+ #
1563
+ # @return [::Google::Protobuf::Empty]
1564
+ #
1565
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1566
+ #
1567
+ # @example Basic example
1568
+ # require "google/cloud/dataform/v1beta1"
1569
+ #
1570
+ # # Create a client object. The client can be reused for multiple calls.
1571
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1572
+ #
1573
+ # # Create a request. To set request fields, pass in keyword arguments.
1574
+ # request = Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest.new
1575
+ #
1576
+ # # Call the commit_workspace_changes method.
1577
+ # result = client.commit_workspace_changes request
1578
+ #
1579
+ # # The returned object is of type Google::Protobuf::Empty.
1580
+ # p result
1581
+ #
1582
+ def commit_workspace_changes request, options = nil
1583
+ raise ::ArgumentError, "request must be provided" if request.nil?
1584
+
1585
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest
1586
+
1587
+ # Converts hash and nil to an options object
1588
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1589
+
1590
+ # Customize the options with defaults
1591
+ metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
1592
+
1593
+ # Set x-goog-api-client and x-goog-user-project headers
1594
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1595
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1596
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1597
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1598
+
1599
+ header_params = {}
1600
+ if request.name
1601
+ header_params["name"] = request.name
1602
+ end
1603
+
1604
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1605
+ metadata[:"x-goog-request-params"] ||= request_params_header
1606
+
1607
+ options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout,
1608
+ metadata: metadata,
1609
+ retry_policy: @config.rpcs.commit_workspace_changes.retry_policy
1610
+
1611
+ options.apply_defaults timeout: @config.timeout,
1612
+ metadata: @config.metadata,
1613
+ retry_policy: @config.retry_policy
1614
+
1615
+ @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation|
1616
+ yield response, operation if block_given?
1617
+ return response
1618
+ end
1619
+ rescue ::GRPC::BadStatus => e
1620
+ raise ::Google::Cloud::Error.from_error(e)
1621
+ end
1622
+
1623
+ ##
1624
+ # Performs a Git reset for uncommitted files in a Workspace.
1625
+ #
1626
+ # @overload reset_workspace_changes(request, options = nil)
1627
+ # Pass arguments to `reset_workspace_changes` via a request object, either of type
1628
+ # {::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest} or an equivalent Hash.
1629
+ #
1630
+ # @param request [::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest, ::Hash]
1631
+ # A request object representing the call parameters. Required. To specify no
1632
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1633
+ # @param options [::Gapic::CallOptions, ::Hash]
1634
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1635
+ #
1636
+ # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil)
1637
+ # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at
1638
+ # least one keyword argument is required. To specify no parameters, or to keep all
1639
+ # the default parameter values, pass an empty Hash as a request object (see above).
1640
+ #
1641
+ # @param name [::String]
1642
+ # Required. The workspace's name.
1643
+ # @param paths [::Array<::String>]
1644
+ # Optional. Full file paths to reset back to their committed state including filename,
1645
+ # rooted at workspace root. If left empty, all files will be reset.
1646
+ # @param clean [::Boolean]
1647
+ # Optional. If set to true, untracked files will be deleted.
1648
+ #
1649
+ # @yield [response, operation] Access the result along with the RPC operation
1650
+ # @yieldparam response [::Google::Protobuf::Empty]
1651
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1652
+ #
1653
+ # @return [::Google::Protobuf::Empty]
1654
+ #
1655
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1656
+ #
1657
+ # @example Basic example
1658
+ # require "google/cloud/dataform/v1beta1"
1659
+ #
1660
+ # # Create a client object. The client can be reused for multiple calls.
1661
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1662
+ #
1663
+ # # Create a request. To set request fields, pass in keyword arguments.
1664
+ # request = Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest.new
1665
+ #
1666
+ # # Call the reset_workspace_changes method.
1667
+ # result = client.reset_workspace_changes request
1668
+ #
1669
+ # # The returned object is of type Google::Protobuf::Empty.
1670
+ # p result
1671
+ #
1672
+ def reset_workspace_changes request, options = nil
1673
+ raise ::ArgumentError, "request must be provided" if request.nil?
1674
+
1675
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest
1676
+
1677
+ # Converts hash and nil to an options object
1678
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1679
+
1680
+ # Customize the options with defaults
1681
+ metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
1682
+
1683
+ # Set x-goog-api-client and x-goog-user-project headers
1684
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1685
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1686
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1687
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1688
+
1689
+ header_params = {}
1690
+ if request.name
1691
+ header_params["name"] = request.name
1692
+ end
1693
+
1694
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1695
+ metadata[:"x-goog-request-params"] ||= request_params_header
1696
+
1697
+ options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout,
1698
+ metadata: metadata,
1699
+ retry_policy: @config.rpcs.reset_workspace_changes.retry_policy
1700
+
1701
+ options.apply_defaults timeout: @config.timeout,
1702
+ metadata: @config.metadata,
1703
+ retry_policy: @config.retry_policy
1704
+
1705
+ @dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation|
1706
+ yield response, operation if block_given?
1707
+ return response
1708
+ end
1709
+ rescue ::GRPC::BadStatus => e
1710
+ raise ::Google::Cloud::Error.from_error(e)
1711
+ end
1712
+
1713
+ ##
1714
+ # Fetches Git diff for an uncommitted file in a Workspace.
1715
+ #
1716
+ # @overload fetch_file_diff(request, options = nil)
1717
+ # Pass arguments to `fetch_file_diff` via a request object, either of type
1718
+ # {::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest} or an equivalent Hash.
1719
+ #
1720
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest, ::Hash]
1721
+ # A request object representing the call parameters. Required. To specify no
1722
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1723
+ # @param options [::Gapic::CallOptions, ::Hash]
1724
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1725
+ #
1726
+ # @overload fetch_file_diff(workspace: nil, path: nil)
1727
+ # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at
1728
+ # least one keyword argument is required. To specify no parameters, or to keep all
1729
+ # the default parameter values, pass an empty Hash as a request object (see above).
1730
+ #
1731
+ # @param workspace [::String]
1732
+ # Required. The workspace's name.
1733
+ # @param path [::String]
1734
+ # Required. The file's full path including filename, relative to the workspace root.
1735
+ #
1736
+ # @yield [response, operation] Access the result along with the RPC operation
1737
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
1738
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1739
+ #
1740
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
1741
+ #
1742
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1743
+ #
1744
+ # @example Basic example
1745
+ # require "google/cloud/dataform/v1beta1"
1746
+ #
1747
+ # # Create a client object. The client can be reused for multiple calls.
1748
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1749
+ #
1750
+ # # Create a request. To set request fields, pass in keyword arguments.
1751
+ # request = Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest.new
1752
+ #
1753
+ # # Call the fetch_file_diff method.
1754
+ # result = client.fetch_file_diff request
1755
+ #
1756
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse.
1757
+ # p result
1758
+ #
1759
+ def fetch_file_diff request, options = nil
1760
+ raise ::ArgumentError, "request must be provided" if request.nil?
1761
+
1762
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest
1763
+
1764
+ # Converts hash and nil to an options object
1765
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1766
+
1767
+ # Customize the options with defaults
1768
+ metadata = @config.rpcs.fetch_file_diff.metadata.to_h
1769
+
1770
+ # Set x-goog-api-client and x-goog-user-project headers
1771
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1772
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1773
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1774
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1775
+
1776
+ header_params = {}
1777
+ if request.workspace
1778
+ header_params["workspace"] = request.workspace
1779
+ end
1780
+
1781
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1782
+ metadata[:"x-goog-request-params"] ||= request_params_header
1783
+
1784
+ options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout,
1785
+ metadata: metadata,
1786
+ retry_policy: @config.rpcs.fetch_file_diff.retry_policy
1787
+
1788
+ options.apply_defaults timeout: @config.timeout,
1789
+ metadata: @config.metadata,
1790
+ retry_policy: @config.retry_policy
1791
+
1792
+ @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation|
1793
+ yield response, operation if block_given?
1794
+ return response
1795
+ end
1796
+ rescue ::GRPC::BadStatus => e
1797
+ raise ::Google::Cloud::Error.from_error(e)
1798
+ end
1799
+
1800
+ ##
1801
+ # Returns the contents of a given Workspace directory.
1802
+ #
1803
+ # @overload query_directory_contents(request, options = nil)
1804
+ # Pass arguments to `query_directory_contents` via a request object, either of type
1805
+ # {::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest} or an equivalent Hash.
1806
+ #
1807
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest, ::Hash]
1808
+ # A request object representing the call parameters. Required. To specify no
1809
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1810
+ # @param options [::Gapic::CallOptions, ::Hash]
1811
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1812
+ #
1813
+ # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
1814
+ # Pass arguments to `query_directory_contents` via keyword arguments. Note that at
1815
+ # least one keyword argument is required. To specify no parameters, or to keep all
1816
+ # the default parameter values, pass an empty Hash as a request object (see above).
1817
+ #
1818
+ # @param workspace [::String]
1819
+ # Required. The workspace's name.
1820
+ # @param path [::String]
1821
+ # Optional. The directory's full path including directory name, relative to the
1822
+ # workspace root. If left unset, the workspace root is used.
1823
+ # @param page_size [::Integer]
1824
+ # Optional. Maximum number of paths to return. The server may return fewer
1825
+ # items than requested. If unspecified, the server will pick an appropriate
1826
+ # default.
1827
+ # @param page_token [::String]
1828
+ # Optional. Page token received from a previous `QueryDirectoryContents` call.
1829
+ # Provide this to retrieve the subsequent page.
1830
+ #
1831
+ # When paginating, all other parameters provided to
1832
+ # `QueryDirectoryContents` must match the call that provided the page
1833
+ # token.
1834
+ #
1835
+ # @yield [response, operation] Access the result along with the RPC operation
1836
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
1837
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1838
+ #
1839
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
1840
+ #
1841
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1842
+ #
1843
+ # @example Basic example
1844
+ # require "google/cloud/dataform/v1beta1"
1845
+ #
1846
+ # # Create a client object. The client can be reused for multiple calls.
1847
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1848
+ #
1849
+ # # Create a request. To set request fields, pass in keyword arguments.
1850
+ # request = Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest.new
1851
+ #
1852
+ # # Call the query_directory_contents method.
1853
+ # result = client.query_directory_contents request
1854
+ #
1855
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1856
+ # # iterate over all elements by calling #each, and the enumerable
1857
+ # # will lazily make API calls to fetch subsequent pages. Other
1858
+ # # methods are also available for managing paging directly.
1859
+ # result.each do |response|
1860
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry.
1861
+ # p response
1862
+ # end
1863
+ #
1864
+ def query_directory_contents request, options = nil
1865
+ raise ::ArgumentError, "request must be provided" if request.nil?
1866
+
1867
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest
1868
+
1869
+ # Converts hash and nil to an options object
1870
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1871
+
1872
+ # Customize the options with defaults
1873
+ metadata = @config.rpcs.query_directory_contents.metadata.to_h
1874
+
1875
+ # Set x-goog-api-client and x-goog-user-project headers
1876
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1877
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1878
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1879
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1880
+
1881
+ header_params = {}
1882
+ if request.workspace
1883
+ header_params["workspace"] = request.workspace
1884
+ end
1885
+
1886
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1887
+ metadata[:"x-goog-request-params"] ||= request_params_header
1888
+
1889
+ options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout,
1890
+ metadata: metadata,
1891
+ retry_policy: @config.rpcs.query_directory_contents.retry_policy
1892
+
1893
+ options.apply_defaults timeout: @config.timeout,
1894
+ metadata: @config.metadata,
1895
+ retry_policy: @config.retry_policy
1896
+
1897
+ @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation|
1898
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options
1899
+ yield response, operation if block_given?
1900
+ return response
1901
+ end
1902
+ rescue ::GRPC::BadStatus => e
1903
+ raise ::Google::Cloud::Error.from_error(e)
1904
+ end
1905
+
1906
+ ##
1907
+ # Creates a directory inside a Workspace.
1908
+ #
1909
+ # @overload make_directory(request, options = nil)
1910
+ # Pass arguments to `make_directory` via a request object, either of type
1911
+ # {::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest} or an equivalent Hash.
1912
+ #
1913
+ # @param request [::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest, ::Hash]
1914
+ # A request object representing the call parameters. Required. To specify no
1915
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1916
+ # @param options [::Gapic::CallOptions, ::Hash]
1917
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1918
+ #
1919
+ # @overload make_directory(workspace: nil, path: nil)
1920
+ # Pass arguments to `make_directory` via keyword arguments. Note that at
1921
+ # least one keyword argument is required. To specify no parameters, or to keep all
1922
+ # the default parameter values, pass an empty Hash as a request object (see above).
1923
+ #
1924
+ # @param workspace [::String]
1925
+ # Required. The workspace's name.
1926
+ # @param path [::String]
1927
+ # Required. The directory's full path including directory name, relative to the
1928
+ # workspace root.
1929
+ #
1930
+ # @yield [response, operation] Access the result along with the RPC operation
1931
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
1932
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1933
+ #
1934
+ # @return [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
1935
+ #
1936
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1937
+ #
1938
+ # @example Basic example
1939
+ # require "google/cloud/dataform/v1beta1"
1940
+ #
1941
+ # # Create a client object. The client can be reused for multiple calls.
1942
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
1943
+ #
1944
+ # # Create a request. To set request fields, pass in keyword arguments.
1945
+ # request = Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest.new
1946
+ #
1947
+ # # Call the make_directory method.
1948
+ # result = client.make_directory request
1949
+ #
1950
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse.
1951
+ # p result
1952
+ #
1953
+ def make_directory request, options = nil
1954
+ raise ::ArgumentError, "request must be provided" if request.nil?
1955
+
1956
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest
1957
+
1958
+ # Converts hash and nil to an options object
1959
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1960
+
1961
+ # Customize the options with defaults
1962
+ metadata = @config.rpcs.make_directory.metadata.to_h
1963
+
1964
+ # Set x-goog-api-client and x-goog-user-project headers
1965
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1966
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1967
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
1968
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1969
+
1970
+ header_params = {}
1971
+ if request.workspace
1972
+ header_params["workspace"] = request.workspace
1973
+ end
1974
+
1975
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1976
+ metadata[:"x-goog-request-params"] ||= request_params_header
1977
+
1978
+ options.apply_defaults timeout: @config.rpcs.make_directory.timeout,
1979
+ metadata: metadata,
1980
+ retry_policy: @config.rpcs.make_directory.retry_policy
1981
+
1982
+ options.apply_defaults timeout: @config.timeout,
1983
+ metadata: @config.metadata,
1984
+ retry_policy: @config.retry_policy
1985
+
1986
+ @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation|
1987
+ yield response, operation if block_given?
1988
+ return response
1989
+ end
1990
+ rescue ::GRPC::BadStatus => e
1991
+ raise ::Google::Cloud::Error.from_error(e)
1992
+ end
1993
+
1994
+ ##
1995
+ # Deletes a directory (inside a Workspace) and all of its contents.
1996
+ #
1997
+ # @overload remove_directory(request, options = nil)
1998
+ # Pass arguments to `remove_directory` via a request object, either of type
1999
+ # {::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest} or an equivalent Hash.
2000
+ #
2001
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest, ::Hash]
2002
+ # A request object representing the call parameters. Required. To specify no
2003
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2004
+ # @param options [::Gapic::CallOptions, ::Hash]
2005
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2006
+ #
2007
+ # @overload remove_directory(workspace: nil, path: nil)
2008
+ # Pass arguments to `remove_directory` via keyword arguments. Note that at
2009
+ # least one keyword argument is required. To specify no parameters, or to keep all
2010
+ # the default parameter values, pass an empty Hash as a request object (see above).
2011
+ #
2012
+ # @param workspace [::String]
2013
+ # Required. The workspace's name.
2014
+ # @param path [::String]
2015
+ # Required. The directory's full path including directory name, relative to the
2016
+ # workspace root.
2017
+ #
2018
+ # @yield [response, operation] Access the result along with the RPC operation
2019
+ # @yieldparam response [::Google::Protobuf::Empty]
2020
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2021
+ #
2022
+ # @return [::Google::Protobuf::Empty]
2023
+ #
2024
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2025
+ #
2026
+ # @example Basic example
2027
+ # require "google/cloud/dataform/v1beta1"
2028
+ #
2029
+ # # Create a client object. The client can be reused for multiple calls.
2030
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2031
+ #
2032
+ # # Create a request. To set request fields, pass in keyword arguments.
2033
+ # request = Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest.new
2034
+ #
2035
+ # # Call the remove_directory method.
2036
+ # result = client.remove_directory request
2037
+ #
2038
+ # # The returned object is of type Google::Protobuf::Empty.
2039
+ # p result
2040
+ #
2041
+ def remove_directory request, options = nil
2042
+ raise ::ArgumentError, "request must be provided" if request.nil?
2043
+
2044
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest
2045
+
2046
+ # Converts hash and nil to an options object
2047
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2048
+
2049
+ # Customize the options with defaults
2050
+ metadata = @config.rpcs.remove_directory.metadata.to_h
2051
+
2052
+ # Set x-goog-api-client and x-goog-user-project headers
2053
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2054
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2055
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2056
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2057
+
2058
+ header_params = {}
2059
+ if request.workspace
2060
+ header_params["workspace"] = request.workspace
2061
+ end
2062
+
2063
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2064
+ metadata[:"x-goog-request-params"] ||= request_params_header
2065
+
2066
+ options.apply_defaults timeout: @config.rpcs.remove_directory.timeout,
2067
+ metadata: metadata,
2068
+ retry_policy: @config.rpcs.remove_directory.retry_policy
2069
+
2070
+ options.apply_defaults timeout: @config.timeout,
2071
+ metadata: @config.metadata,
2072
+ retry_policy: @config.retry_policy
2073
+
2074
+ @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation|
2075
+ yield response, operation if block_given?
2076
+ return response
2077
+ end
2078
+ rescue ::GRPC::BadStatus => e
2079
+ raise ::Google::Cloud::Error.from_error(e)
2080
+ end
2081
+
2082
+ ##
2083
+ # Moves a directory (inside a Workspace), and all of its contents, to a new
2084
+ # location.
2085
+ #
2086
+ # @overload move_directory(request, options = nil)
2087
+ # Pass arguments to `move_directory` via a request object, either of type
2088
+ # {::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest} or an equivalent Hash.
2089
+ #
2090
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest, ::Hash]
2091
+ # A request object representing the call parameters. Required. To specify no
2092
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2093
+ # @param options [::Gapic::CallOptions, ::Hash]
2094
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2095
+ #
2096
+ # @overload move_directory(workspace: nil, path: nil, new_path: nil)
2097
+ # Pass arguments to `move_directory` via keyword arguments. Note that at
2098
+ # least one keyword argument is required. To specify no parameters, or to keep all
2099
+ # the default parameter values, pass an empty Hash as a request object (see above).
2100
+ #
2101
+ # @param workspace [::String]
2102
+ # Required. The workspace's name.
2103
+ # @param path [::String]
2104
+ # Required. The directory's full path including directory name, relative to the
2105
+ # workspace root.
2106
+ # @param new_path [::String]
2107
+ # Required. The new path for the directory including directory name, rooted at
2108
+ # workspace root.
2109
+ #
2110
+ # @yield [response, operation] Access the result along with the RPC operation
2111
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
2112
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2113
+ #
2114
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
2115
+ #
2116
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2117
+ #
2118
+ # @example Basic example
2119
+ # require "google/cloud/dataform/v1beta1"
2120
+ #
2121
+ # # Create a client object. The client can be reused for multiple calls.
2122
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2123
+ #
2124
+ # # Create a request. To set request fields, pass in keyword arguments.
2125
+ # request = Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest.new
2126
+ #
2127
+ # # Call the move_directory method.
2128
+ # result = client.move_directory request
2129
+ #
2130
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse.
2131
+ # p result
2132
+ #
2133
+ def move_directory request, options = nil
2134
+ raise ::ArgumentError, "request must be provided" if request.nil?
2135
+
2136
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest
2137
+
2138
+ # Converts hash and nil to an options object
2139
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2140
+
2141
+ # Customize the options with defaults
2142
+ metadata = @config.rpcs.move_directory.metadata.to_h
2143
+
2144
+ # Set x-goog-api-client and x-goog-user-project headers
2145
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2146
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2147
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2148
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2149
+
2150
+ header_params = {}
2151
+ if request.workspace
2152
+ header_params["workspace"] = request.workspace
2153
+ end
2154
+
2155
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2156
+ metadata[:"x-goog-request-params"] ||= request_params_header
2157
+
2158
+ options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
2159
+ metadata: metadata,
2160
+ retry_policy: @config.rpcs.move_directory.retry_policy
2161
+
2162
+ options.apply_defaults timeout: @config.timeout,
2163
+ metadata: @config.metadata,
2164
+ retry_policy: @config.retry_policy
2165
+
2166
+ @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation|
2167
+ yield response, operation if block_given?
2168
+ return response
2169
+ end
2170
+ rescue ::GRPC::BadStatus => e
2171
+ raise ::Google::Cloud::Error.from_error(e)
2172
+ end
2173
+
2174
+ ##
2175
+ # Returns the contents of a file (inside a Workspace).
2176
+ #
2177
+ # @overload read_file(request, options = nil)
2178
+ # Pass arguments to `read_file` via a request object, either of type
2179
+ # {::Google::Cloud::Dataform::V1beta1::ReadFileRequest} or an equivalent Hash.
2180
+ #
2181
+ # @param request [::Google::Cloud::Dataform::V1beta1::ReadFileRequest, ::Hash]
2182
+ # A request object representing the call parameters. Required. To specify no
2183
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2184
+ # @param options [::Gapic::CallOptions, ::Hash]
2185
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2186
+ #
2187
+ # @overload read_file(workspace: nil, path: nil)
2188
+ # Pass arguments to `read_file` via keyword arguments. Note that at
2189
+ # least one keyword argument is required. To specify no parameters, or to keep all
2190
+ # the default parameter values, pass an empty Hash as a request object (see above).
2191
+ #
2192
+ # @param workspace [::String]
2193
+ # Required. The workspace's name.
2194
+ # @param path [::String]
2195
+ # Required. The file's full path including filename, relative to the workspace root.
2196
+ #
2197
+ # @yield [response, operation] Access the result along with the RPC operation
2198
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
2199
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2200
+ #
2201
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
2202
+ #
2203
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2204
+ #
2205
+ # @example Basic example
2206
+ # require "google/cloud/dataform/v1beta1"
2207
+ #
2208
+ # # Create a client object. The client can be reused for multiple calls.
2209
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2210
+ #
2211
+ # # Create a request. To set request fields, pass in keyword arguments.
2212
+ # request = Google::Cloud::Dataform::V1beta1::ReadFileRequest.new
2213
+ #
2214
+ # # Call the read_file method.
2215
+ # result = client.read_file request
2216
+ #
2217
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::ReadFileResponse.
2218
+ # p result
2219
+ #
2220
+ def read_file request, options = nil
2221
+ raise ::ArgumentError, "request must be provided" if request.nil?
2222
+
2223
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadFileRequest
2224
+
2225
+ # Converts hash and nil to an options object
2226
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2227
+
2228
+ # Customize the options with defaults
2229
+ metadata = @config.rpcs.read_file.metadata.to_h
2230
+
2231
+ # Set x-goog-api-client and x-goog-user-project headers
2232
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2233
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2234
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2235
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2236
+
2237
+ header_params = {}
2238
+ if request.workspace
2239
+ header_params["workspace"] = request.workspace
2240
+ end
2241
+
2242
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2243
+ metadata[:"x-goog-request-params"] ||= request_params_header
2244
+
2245
+ options.apply_defaults timeout: @config.rpcs.read_file.timeout,
2246
+ metadata: metadata,
2247
+ retry_policy: @config.rpcs.read_file.retry_policy
2248
+
2249
+ options.apply_defaults timeout: @config.timeout,
2250
+ metadata: @config.metadata,
2251
+ retry_policy: @config.retry_policy
2252
+
2253
+ @dataform_stub.call_rpc :read_file, request, options: options do |response, operation|
2254
+ yield response, operation if block_given?
2255
+ return response
2256
+ end
2257
+ rescue ::GRPC::BadStatus => e
2258
+ raise ::Google::Cloud::Error.from_error(e)
2259
+ end
2260
+
2261
+ ##
2262
+ # Deletes a file (inside a Workspace).
2263
+ #
2264
+ # @overload remove_file(request, options = nil)
2265
+ # Pass arguments to `remove_file` via a request object, either of type
2266
+ # {::Google::Cloud::Dataform::V1beta1::RemoveFileRequest} or an equivalent Hash.
2267
+ #
2268
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveFileRequest, ::Hash]
2269
+ # A request object representing the call parameters. Required. To specify no
2270
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2271
+ # @param options [::Gapic::CallOptions, ::Hash]
2272
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2273
+ #
2274
+ # @overload remove_file(workspace: nil, path: nil)
2275
+ # Pass arguments to `remove_file` via keyword arguments. Note that at
2276
+ # least one keyword argument is required. To specify no parameters, or to keep all
2277
+ # the default parameter values, pass an empty Hash as a request object (see above).
2278
+ #
2279
+ # @param workspace [::String]
2280
+ # Required. The workspace's name.
2281
+ # @param path [::String]
2282
+ # Required. The file's full path including filename, relative to the workspace root.
2283
+ #
2284
+ # @yield [response, operation] Access the result along with the RPC operation
2285
+ # @yieldparam response [::Google::Protobuf::Empty]
2286
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2287
+ #
2288
+ # @return [::Google::Protobuf::Empty]
2289
+ #
2290
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2291
+ #
2292
+ # @example Basic example
2293
+ # require "google/cloud/dataform/v1beta1"
2294
+ #
2295
+ # # Create a client object. The client can be reused for multiple calls.
2296
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2297
+ #
2298
+ # # Create a request. To set request fields, pass in keyword arguments.
2299
+ # request = Google::Cloud::Dataform::V1beta1::RemoveFileRequest.new
2300
+ #
2301
+ # # Call the remove_file method.
2302
+ # result = client.remove_file request
2303
+ #
2304
+ # # The returned object is of type Google::Protobuf::Empty.
2305
+ # p result
2306
+ #
2307
+ def remove_file request, options = nil
2308
+ raise ::ArgumentError, "request must be provided" if request.nil?
2309
+
2310
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveFileRequest
2311
+
2312
+ # Converts hash and nil to an options object
2313
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2314
+
2315
+ # Customize the options with defaults
2316
+ metadata = @config.rpcs.remove_file.metadata.to_h
2317
+
2318
+ # Set x-goog-api-client and x-goog-user-project headers
2319
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2320
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2321
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2322
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2323
+
2324
+ header_params = {}
2325
+ if request.workspace
2326
+ header_params["workspace"] = request.workspace
2327
+ end
2328
+
2329
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2330
+ metadata[:"x-goog-request-params"] ||= request_params_header
2331
+
2332
+ options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
2333
+ metadata: metadata,
2334
+ retry_policy: @config.rpcs.remove_file.retry_policy
2335
+
2336
+ options.apply_defaults timeout: @config.timeout,
2337
+ metadata: @config.metadata,
2338
+ retry_policy: @config.retry_policy
2339
+
2340
+ @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation|
2341
+ yield response, operation if block_given?
2342
+ return response
2343
+ end
2344
+ rescue ::GRPC::BadStatus => e
2345
+ raise ::Google::Cloud::Error.from_error(e)
2346
+ end
2347
+
2348
+ ##
2349
+ # Moves a file (inside a Workspace) to a new location.
2350
+ #
2351
+ # @overload move_file(request, options = nil)
2352
+ # Pass arguments to `move_file` via a request object, either of type
2353
+ # {::Google::Cloud::Dataform::V1beta1::MoveFileRequest} or an equivalent Hash.
2354
+ #
2355
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveFileRequest, ::Hash]
2356
+ # A request object representing the call parameters. Required. To specify no
2357
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2358
+ # @param options [::Gapic::CallOptions, ::Hash]
2359
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2360
+ #
2361
+ # @overload move_file(workspace: nil, path: nil, new_path: nil)
2362
+ # Pass arguments to `move_file` via keyword arguments. Note that at
2363
+ # least one keyword argument is required. To specify no parameters, or to keep all
2364
+ # the default parameter values, pass an empty Hash as a request object (see above).
2365
+ #
2366
+ # @param workspace [::String]
2367
+ # Required. The workspace's name.
2368
+ # @param path [::String]
2369
+ # Required. The file's full path including filename, relative to the workspace root.
2370
+ # @param new_path [::String]
2371
+ # Required. The file's new path including filename, relative to the workspace root.
2372
+ #
2373
+ # @yield [response, operation] Access the result along with the RPC operation
2374
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
2375
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2376
+ #
2377
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
2378
+ #
2379
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2380
+ #
2381
+ # @example Basic example
2382
+ # require "google/cloud/dataform/v1beta1"
2383
+ #
2384
+ # # Create a client object. The client can be reused for multiple calls.
2385
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2386
+ #
2387
+ # # Create a request. To set request fields, pass in keyword arguments.
2388
+ # request = Google::Cloud::Dataform::V1beta1::MoveFileRequest.new
2389
+ #
2390
+ # # Call the move_file method.
2391
+ # result = client.move_file request
2392
+ #
2393
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::MoveFileResponse.
2394
+ # p result
2395
+ #
2396
+ def move_file request, options = nil
2397
+ raise ::ArgumentError, "request must be provided" if request.nil?
2398
+
2399
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFileRequest
2400
+
2401
+ # Converts hash and nil to an options object
2402
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2403
+
2404
+ # Customize the options with defaults
2405
+ metadata = @config.rpcs.move_file.metadata.to_h
2406
+
2407
+ # Set x-goog-api-client and x-goog-user-project headers
2408
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2409
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2410
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2411
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2412
+
2413
+ header_params = {}
2414
+ if request.workspace
2415
+ header_params["workspace"] = request.workspace
2416
+ end
2417
+
2418
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2419
+ metadata[:"x-goog-request-params"] ||= request_params_header
2420
+
2421
+ options.apply_defaults timeout: @config.rpcs.move_file.timeout,
2422
+ metadata: metadata,
2423
+ retry_policy: @config.rpcs.move_file.retry_policy
2424
+
2425
+ options.apply_defaults timeout: @config.timeout,
2426
+ metadata: @config.metadata,
2427
+ retry_policy: @config.retry_policy
2428
+
2429
+ @dataform_stub.call_rpc :move_file, request, options: options do |response, operation|
2430
+ yield response, operation if block_given?
2431
+ return response
2432
+ end
2433
+ rescue ::GRPC::BadStatus => e
2434
+ raise ::Google::Cloud::Error.from_error(e)
2435
+ end
2436
+
2437
+ ##
2438
+ # Writes to a file (inside a Workspace).
2439
+ #
2440
+ # @overload write_file(request, options = nil)
2441
+ # Pass arguments to `write_file` via a request object, either of type
2442
+ # {::Google::Cloud::Dataform::V1beta1::WriteFileRequest} or an equivalent Hash.
2443
+ #
2444
+ # @param request [::Google::Cloud::Dataform::V1beta1::WriteFileRequest, ::Hash]
2445
+ # A request object representing the call parameters. Required. To specify no
2446
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2447
+ # @param options [::Gapic::CallOptions, ::Hash]
2448
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2449
+ #
2450
+ # @overload write_file(workspace: nil, path: nil, contents: nil)
2451
+ # Pass arguments to `write_file` via keyword arguments. Note that at
2452
+ # least one keyword argument is required. To specify no parameters, or to keep all
2453
+ # the default parameter values, pass an empty Hash as a request object (see above).
2454
+ #
2455
+ # @param workspace [::String]
2456
+ # Required. The workspace's name.
2457
+ # @param path [::String]
2458
+ # Required. The file.
2459
+ # @param contents [::String]
2460
+ # Required. The file's contents.
2461
+ #
2462
+ # @yield [response, operation] Access the result along with the RPC operation
2463
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
2464
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2465
+ #
2466
+ # @return [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
2467
+ #
2468
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2469
+ #
2470
+ # @example Basic example
2471
+ # require "google/cloud/dataform/v1beta1"
2472
+ #
2473
+ # # Create a client object. The client can be reused for multiple calls.
2474
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2475
+ #
2476
+ # # Create a request. To set request fields, pass in keyword arguments.
2477
+ # request = Google::Cloud::Dataform::V1beta1::WriteFileRequest.new
2478
+ #
2479
+ # # Call the write_file method.
2480
+ # result = client.write_file request
2481
+ #
2482
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WriteFileResponse.
2483
+ # p result
2484
+ #
2485
+ def write_file request, options = nil
2486
+ raise ::ArgumentError, "request must be provided" if request.nil?
2487
+
2488
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::WriteFileRequest
2489
+
2490
+ # Converts hash and nil to an options object
2491
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2492
+
2493
+ # Customize the options with defaults
2494
+ metadata = @config.rpcs.write_file.metadata.to_h
2495
+
2496
+ # Set x-goog-api-client and x-goog-user-project headers
2497
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2498
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2499
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2500
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2501
+
2502
+ header_params = {}
2503
+ if request.workspace
2504
+ header_params["workspace"] = request.workspace
2505
+ end
2506
+
2507
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2508
+ metadata[:"x-goog-request-params"] ||= request_params_header
2509
+
2510
+ options.apply_defaults timeout: @config.rpcs.write_file.timeout,
2511
+ metadata: metadata,
2512
+ retry_policy: @config.rpcs.write_file.retry_policy
2513
+
2514
+ options.apply_defaults timeout: @config.timeout,
2515
+ metadata: @config.metadata,
2516
+ retry_policy: @config.retry_policy
2517
+
2518
+ @dataform_stub.call_rpc :write_file, request, options: options do |response, operation|
2519
+ yield response, operation if block_given?
2520
+ return response
2521
+ end
2522
+ rescue ::GRPC::BadStatus => e
2523
+ raise ::Google::Cloud::Error.from_error(e)
2524
+ end
2525
+
2526
+ ##
2527
+ # Lists CompilationResults in a given Repository.
2528
+ #
2529
+ # @overload list_compilation_results(request, options = nil)
2530
+ # Pass arguments to `list_compilation_results` via a request object, either of type
2531
+ # {::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest} or an equivalent Hash.
2532
+ #
2533
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest, ::Hash]
2534
+ # A request object representing the call parameters. Required. To specify no
2535
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2536
+ # @param options [::Gapic::CallOptions, ::Hash]
2537
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2538
+ #
2539
+ # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil)
2540
+ # Pass arguments to `list_compilation_results` via keyword arguments. Note that at
2541
+ # least one keyword argument is required. To specify no parameters, or to keep all
2542
+ # the default parameter values, pass an empty Hash as a request object (see above).
2543
+ #
2544
+ # @param parent [::String]
2545
+ # Required. The repository in which to list compilation results. Must be in the
2546
+ # format `projects/*/locations/*/repositories/*`.
2547
+ # @param page_size [::Integer]
2548
+ # Optional. Maximum number of compilation results to return. The server may return
2549
+ # fewer items than requested. If unspecified, the server will pick an
2550
+ # appropriate default.
2551
+ # @param page_token [::String]
2552
+ # Optional. Page token received from a previous `ListCompilationResults` call.
2553
+ # Provide this to retrieve the subsequent page.
2554
+ #
2555
+ # When paginating, all other parameters provided to `ListCompilationResults`
2556
+ # must match the call that provided the page token.
2557
+ #
2558
+ # @yield [response, operation] Access the result along with the RPC operation
2559
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResult>]
2560
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2561
+ #
2562
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResult>]
2563
+ #
2564
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2565
+ #
2566
+ # @example Basic example
2567
+ # require "google/cloud/dataform/v1beta1"
2568
+ #
2569
+ # # Create a client object. The client can be reused for multiple calls.
2570
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2571
+ #
2572
+ # # Create a request. To set request fields, pass in keyword arguments.
2573
+ # request = Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest.new
2574
+ #
2575
+ # # Call the list_compilation_results method.
2576
+ # result = client.list_compilation_results request
2577
+ #
2578
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2579
+ # # iterate over all elements by calling #each, and the enumerable
2580
+ # # will lazily make API calls to fetch subsequent pages. Other
2581
+ # # methods are also available for managing paging directly.
2582
+ # result.each do |response|
2583
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResult.
2584
+ # p response
2585
+ # end
2586
+ #
2587
+ def list_compilation_results request, options = nil
2588
+ raise ::ArgumentError, "request must be provided" if request.nil?
2589
+
2590
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest
2591
+
2592
+ # Converts hash and nil to an options object
2593
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2594
+
2595
+ # Customize the options with defaults
2596
+ metadata = @config.rpcs.list_compilation_results.metadata.to_h
2597
+
2598
+ # Set x-goog-api-client and x-goog-user-project headers
2599
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2600
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2601
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2602
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2603
+
2604
+ header_params = {}
2605
+ if request.parent
2606
+ header_params["parent"] = request.parent
2607
+ end
2608
+
2609
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2610
+ metadata[:"x-goog-request-params"] ||= request_params_header
2611
+
2612
+ options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
2613
+ metadata: metadata,
2614
+ retry_policy: @config.rpcs.list_compilation_results.retry_policy
2615
+
2616
+ options.apply_defaults timeout: @config.timeout,
2617
+ metadata: @config.metadata,
2618
+ retry_policy: @config.retry_policy
2619
+
2620
+ @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation|
2621
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options
2622
+ yield response, operation if block_given?
2623
+ return response
2624
+ end
2625
+ rescue ::GRPC::BadStatus => e
2626
+ raise ::Google::Cloud::Error.from_error(e)
2627
+ end
2628
+
2629
+ ##
2630
+ # Fetches a single CompilationResult.
2631
+ #
2632
+ # @overload get_compilation_result(request, options = nil)
2633
+ # Pass arguments to `get_compilation_result` via a request object, either of type
2634
+ # {::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest} or an equivalent Hash.
2635
+ #
2636
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest, ::Hash]
2637
+ # A request object representing the call parameters. Required. To specify no
2638
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2639
+ # @param options [::Gapic::CallOptions, ::Hash]
2640
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2641
+ #
2642
+ # @overload get_compilation_result(name: nil)
2643
+ # Pass arguments to `get_compilation_result` via keyword arguments. Note that at
2644
+ # least one keyword argument is required. To specify no parameters, or to keep all
2645
+ # the default parameter values, pass an empty Hash as a request object (see above).
2646
+ #
2647
+ # @param name [::String]
2648
+ # Required. The compilation result's name.
2649
+ #
2650
+ # @yield [response, operation] Access the result along with the RPC operation
2651
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2652
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2653
+ #
2654
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2655
+ #
2656
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2657
+ #
2658
+ # @example Basic example
2659
+ # require "google/cloud/dataform/v1beta1"
2660
+ #
2661
+ # # Create a client object. The client can be reused for multiple calls.
2662
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2663
+ #
2664
+ # # Create a request. To set request fields, pass in keyword arguments.
2665
+ # request = Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest.new
2666
+ #
2667
+ # # Call the get_compilation_result method.
2668
+ # result = client.get_compilation_result request
2669
+ #
2670
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
2671
+ # p result
2672
+ #
2673
+ def get_compilation_result request, options = nil
2674
+ raise ::ArgumentError, "request must be provided" if request.nil?
2675
+
2676
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest
2677
+
2678
+ # Converts hash and nil to an options object
2679
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2680
+
2681
+ # Customize the options with defaults
2682
+ metadata = @config.rpcs.get_compilation_result.metadata.to_h
2683
+
2684
+ # Set x-goog-api-client and x-goog-user-project headers
2685
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2686
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2687
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2688
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2689
+
2690
+ header_params = {}
2691
+ if request.name
2692
+ header_params["name"] = request.name
2693
+ end
2694
+
2695
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2696
+ metadata[:"x-goog-request-params"] ||= request_params_header
2697
+
2698
+ options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
2699
+ metadata: metadata,
2700
+ retry_policy: @config.rpcs.get_compilation_result.retry_policy
2701
+
2702
+ options.apply_defaults timeout: @config.timeout,
2703
+ metadata: @config.metadata,
2704
+ retry_policy: @config.retry_policy
2705
+
2706
+ @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation|
2707
+ yield response, operation if block_given?
2708
+ return response
2709
+ end
2710
+ rescue ::GRPC::BadStatus => e
2711
+ raise ::Google::Cloud::Error.from_error(e)
2712
+ end
2713
+
2714
+ ##
2715
+ # Creates a new CompilationResult in a given project and location.
2716
+ #
2717
+ # @overload create_compilation_result(request, options = nil)
2718
+ # Pass arguments to `create_compilation_result` via a request object, either of type
2719
+ # {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
2720
+ #
2721
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
2722
+ # A request object representing the call parameters. Required. To specify no
2723
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2724
+ # @param options [::Gapic::CallOptions, ::Hash]
2725
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2726
+ #
2727
+ # @overload create_compilation_result(parent: nil, compilation_result: nil)
2728
+ # Pass arguments to `create_compilation_result` via keyword arguments. Note that at
2729
+ # least one keyword argument is required. To specify no parameters, or to keep all
2730
+ # the default parameter values, pass an empty Hash as a request object (see above).
2731
+ #
2732
+ # @param parent [::String]
2733
+ # Required. The repository in which to create the compilation result. Must be in the
2734
+ # format `projects/*/locations/*/repositories/*`.
2735
+ # @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
2736
+ # Required. The compilation result to create.
2737
+ #
2738
+ # @yield [response, operation] Access the result along with the RPC operation
2739
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2740
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2741
+ #
2742
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2743
+ #
2744
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2745
+ #
2746
+ # @example Basic example
2747
+ # require "google/cloud/dataform/v1beta1"
2748
+ #
2749
+ # # Create a client object. The client can be reused for multiple calls.
2750
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2751
+ #
2752
+ # # Create a request. To set request fields, pass in keyword arguments.
2753
+ # request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
2754
+ #
2755
+ # # Call the create_compilation_result method.
2756
+ # result = client.create_compilation_result request
2757
+ #
2758
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::CompilationResult.
2759
+ # p result
2760
+ #
2761
+ def create_compilation_result request, options = nil
2762
+ raise ::ArgumentError, "request must be provided" if request.nil?
2763
+
2764
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
2765
+
2766
+ # Converts hash and nil to an options object
2767
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2768
+
2769
+ # Customize the options with defaults
2770
+ metadata = @config.rpcs.create_compilation_result.metadata.to_h
2771
+
2772
+ # Set x-goog-api-client and x-goog-user-project headers
2773
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2774
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2775
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2776
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2777
+
2778
+ header_params = {}
2779
+ if request.parent
2780
+ header_params["parent"] = request.parent
2781
+ end
2782
+
2783
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2784
+ metadata[:"x-goog-request-params"] ||= request_params_header
2785
+
2786
+ options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
2787
+ metadata: metadata,
2788
+ retry_policy: @config.rpcs.create_compilation_result.retry_policy
2789
+
2790
+ options.apply_defaults timeout: @config.timeout,
2791
+ metadata: @config.metadata,
2792
+ retry_policy: @config.retry_policy
2793
+
2794
+ @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation|
2795
+ yield response, operation if block_given?
2796
+ return response
2797
+ end
2798
+ rescue ::GRPC::BadStatus => e
2799
+ raise ::Google::Cloud::Error.from_error(e)
2800
+ end
2801
+
2802
+ ##
2803
+ # Returns CompilationResultActions in a given CompilationResult.
2804
+ #
2805
+ # @overload query_compilation_result_actions(request, options = nil)
2806
+ # Pass arguments to `query_compilation_result_actions` via a request object, either of type
2807
+ # {::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest} or an equivalent Hash.
2808
+ #
2809
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest, ::Hash]
2810
+ # A request object representing the call parameters. Required. To specify no
2811
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2812
+ # @param options [::Gapic::CallOptions, ::Hash]
2813
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2814
+ #
2815
+ # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil)
2816
+ # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at
2817
+ # least one keyword argument is required. To specify no parameters, or to keep all
2818
+ # the default parameter values, pass an empty Hash as a request object (see above).
2819
+ #
2820
+ # @param name [::String]
2821
+ # Required. The compilation result's name.
2822
+ # @param page_size [::Integer]
2823
+ # Optional. Maximum number of compilation results to return. The server may return
2824
+ # fewer items than requested. If unspecified, the server will pick an
2825
+ # appropriate default.
2826
+ # @param page_token [::String]
2827
+ # Optional. Page token received from a previous `QueryCompilationResultActions` call.
2828
+ # Provide this to retrieve the subsequent page.
2829
+ #
2830
+ # When paginating, all other parameters provided to
2831
+ # `QueryCompilationResultActions` must match the call that provided the page
2832
+ # token.
2833
+ # @param filter [::String]
2834
+ # Optional. Optional filter for the returned list. Filtering is only currently
2835
+ # supported on the `file_path` field.
2836
+ #
2837
+ # @yield [response, operation] Access the result along with the RPC operation
2838
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
2839
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2840
+ #
2841
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
2842
+ #
2843
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2844
+ #
2845
+ # @example Basic example
2846
+ # require "google/cloud/dataform/v1beta1"
2847
+ #
2848
+ # # Create a client object. The client can be reused for multiple calls.
2849
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2850
+ #
2851
+ # # Create a request. To set request fields, pass in keyword arguments.
2852
+ # request = Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest.new
2853
+ #
2854
+ # # Call the query_compilation_result_actions method.
2855
+ # result = client.query_compilation_result_actions request
2856
+ #
2857
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2858
+ # # iterate over all elements by calling #each, and the enumerable
2859
+ # # will lazily make API calls to fetch subsequent pages. Other
2860
+ # # methods are also available for managing paging directly.
2861
+ # result.each do |response|
2862
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::CompilationResultAction.
2863
+ # p response
2864
+ # end
2865
+ #
2866
+ def query_compilation_result_actions request, options = nil
2867
+ raise ::ArgumentError, "request must be provided" if request.nil?
2868
+
2869
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest
2870
+
2871
+ # Converts hash and nil to an options object
2872
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2873
+
2874
+ # Customize the options with defaults
2875
+ metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
2876
+
2877
+ # Set x-goog-api-client and x-goog-user-project headers
2878
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2879
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2880
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2881
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2882
+
2883
+ header_params = {}
2884
+ if request.name
2885
+ header_params["name"] = request.name
2886
+ end
2887
+
2888
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2889
+ metadata[:"x-goog-request-params"] ||= request_params_header
2890
+
2891
+ options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
2892
+ metadata: metadata,
2893
+ retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy
2894
+
2895
+ options.apply_defaults timeout: @config.timeout,
2896
+ metadata: @config.metadata,
2897
+ retry_policy: @config.retry_policy
2898
+
2899
+ @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation|
2900
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options
2901
+ yield response, operation if block_given?
2902
+ return response
2903
+ end
2904
+ rescue ::GRPC::BadStatus => e
2905
+ raise ::Google::Cloud::Error.from_error(e)
2906
+ end
2907
+
2908
+ ##
2909
+ # Lists WorkflowInvocations in a given Repository.
2910
+ #
2911
+ # @overload list_workflow_invocations(request, options = nil)
2912
+ # Pass arguments to `list_workflow_invocations` via a request object, either of type
2913
+ # {::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest} or an equivalent Hash.
2914
+ #
2915
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest, ::Hash]
2916
+ # A request object representing the call parameters. Required. To specify no
2917
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2918
+ # @param options [::Gapic::CallOptions, ::Hash]
2919
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2920
+ #
2921
+ # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil)
2922
+ # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at
2923
+ # least one keyword argument is required. To specify no parameters, or to keep all
2924
+ # the default parameter values, pass an empty Hash as a request object (see above).
2925
+ #
2926
+ # @param parent [::String]
2927
+ # Required. The parent resource of the WorkflowInvocation type. Must be in the
2928
+ # format `projects/*/locations/*/repositories/*`.
2929
+ # @param page_size [::Integer]
2930
+ # Optional. Maximum number of workflow invocations to return. The server may return
2931
+ # fewer items than requested. If unspecified, the server will pick an
2932
+ # appropriate default.
2933
+ # @param page_token [::String]
2934
+ # Optional. Page token received from a previous `ListWorkflowInvocations` call.
2935
+ # Provide this to retrieve the subsequent page.
2936
+ #
2937
+ # When paginating, all other parameters provided to `ListWorkflowInvocations`
2938
+ # must match the call that provided the page token.
2939
+ #
2940
+ # @yield [response, operation] Access the result along with the RPC operation
2941
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowInvocation>]
2942
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2943
+ #
2944
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowInvocation>]
2945
+ #
2946
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2947
+ #
2948
+ # @example Basic example
2949
+ # require "google/cloud/dataform/v1beta1"
2950
+ #
2951
+ # # Create a client object. The client can be reused for multiple calls.
2952
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
2953
+ #
2954
+ # # Create a request. To set request fields, pass in keyword arguments.
2955
+ # request = Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest.new
2956
+ #
2957
+ # # Call the list_workflow_invocations method.
2958
+ # result = client.list_workflow_invocations request
2959
+ #
2960
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2961
+ # # iterate over all elements by calling #each, and the enumerable
2962
+ # # will lazily make API calls to fetch subsequent pages. Other
2963
+ # # methods are also available for managing paging directly.
2964
+ # result.each do |response|
2965
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::WorkflowInvocation.
2966
+ # p response
2967
+ # end
2968
+ #
2969
+ def list_workflow_invocations request, options = nil
2970
+ raise ::ArgumentError, "request must be provided" if request.nil?
2971
+
2972
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest
2973
+
2974
+ # Converts hash and nil to an options object
2975
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2976
+
2977
+ # Customize the options with defaults
2978
+ metadata = @config.rpcs.list_workflow_invocations.metadata.to_h
2979
+
2980
+ # Set x-goog-api-client and x-goog-user-project headers
2981
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2982
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2983
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
2984
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2985
+
2986
+ header_params = {}
2987
+ if request.parent
2988
+ header_params["parent"] = request.parent
2989
+ end
2990
+
2991
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2992
+ metadata[:"x-goog-request-params"] ||= request_params_header
2993
+
2994
+ options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout,
2995
+ metadata: metadata,
2996
+ retry_policy: @config.rpcs.list_workflow_invocations.retry_policy
2997
+
2998
+ options.apply_defaults timeout: @config.timeout,
2999
+ metadata: @config.metadata,
3000
+ retry_policy: @config.retry_policy
3001
+
3002
+ @dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation|
3003
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options
3004
+ yield response, operation if block_given?
3005
+ return response
3006
+ end
3007
+ rescue ::GRPC::BadStatus => e
3008
+ raise ::Google::Cloud::Error.from_error(e)
3009
+ end
3010
+
3011
+ ##
3012
+ # Fetches a single WorkflowInvocation.
3013
+ #
3014
+ # @overload get_workflow_invocation(request, options = nil)
3015
+ # Pass arguments to `get_workflow_invocation` via a request object, either of type
3016
+ # {::Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest} or an equivalent Hash.
3017
+ #
3018
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest, ::Hash]
3019
+ # A request object representing the call parameters. Required. To specify no
3020
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3021
+ # @param options [::Gapic::CallOptions, ::Hash]
3022
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3023
+ #
3024
+ # @overload get_workflow_invocation(name: nil)
3025
+ # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at
3026
+ # least one keyword argument is required. To specify no parameters, or to keep all
3027
+ # the default parameter values, pass an empty Hash as a request object (see above).
3028
+ #
3029
+ # @param name [::String]
3030
+ # Required. The workflow invocation resource's name.
3031
+ #
3032
+ # @yield [response, operation] Access the result along with the RPC operation
3033
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
3034
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3035
+ #
3036
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
3037
+ #
3038
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3039
+ #
3040
+ # @example Basic example
3041
+ # require "google/cloud/dataform/v1beta1"
3042
+ #
3043
+ # # Create a client object. The client can be reused for multiple calls.
3044
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
3045
+ #
3046
+ # # Create a request. To set request fields, pass in keyword arguments.
3047
+ # request = Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest.new
3048
+ #
3049
+ # # Call the get_workflow_invocation method.
3050
+ # result = client.get_workflow_invocation request
3051
+ #
3052
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowInvocation.
3053
+ # p result
3054
+ #
3055
+ def get_workflow_invocation request, options = nil
3056
+ raise ::ArgumentError, "request must be provided" if request.nil?
3057
+
3058
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest
3059
+
3060
+ # Converts hash and nil to an options object
3061
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3062
+
3063
+ # Customize the options with defaults
3064
+ metadata = @config.rpcs.get_workflow_invocation.metadata.to_h
3065
+
3066
+ # Set x-goog-api-client and x-goog-user-project headers
3067
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3068
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3069
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
3070
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3071
+
3072
+ header_params = {}
3073
+ if request.name
3074
+ header_params["name"] = request.name
3075
+ end
3076
+
3077
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3078
+ metadata[:"x-goog-request-params"] ||= request_params_header
3079
+
3080
+ options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout,
3081
+ metadata: metadata,
3082
+ retry_policy: @config.rpcs.get_workflow_invocation.retry_policy
3083
+
3084
+ options.apply_defaults timeout: @config.timeout,
3085
+ metadata: @config.metadata,
3086
+ retry_policy: @config.retry_policy
3087
+
3088
+ @dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation|
3089
+ yield response, operation if block_given?
3090
+ return response
3091
+ end
3092
+ rescue ::GRPC::BadStatus => e
3093
+ raise ::Google::Cloud::Error.from_error(e)
3094
+ end
3095
+
3096
+ ##
3097
+ # Creates a new WorkflowInvocation in a given Repository.
3098
+ #
3099
+ # @overload create_workflow_invocation(request, options = nil)
3100
+ # Pass arguments to `create_workflow_invocation` via a request object, either of type
3101
+ # {::Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest} or an equivalent Hash.
3102
+ #
3103
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest, ::Hash]
3104
+ # A request object representing the call parameters. Required. To specify no
3105
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3106
+ # @param options [::Gapic::CallOptions, ::Hash]
3107
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3108
+ #
3109
+ # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil)
3110
+ # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at
3111
+ # least one keyword argument is required. To specify no parameters, or to keep all
3112
+ # the default parameter values, pass an empty Hash as a request object (see above).
3113
+ #
3114
+ # @param parent [::String]
3115
+ # Required. The repository in which to create the workflow invocation. Must be in the
3116
+ # format `projects/*/locations/*/repositories/*`.
3117
+ # @param workflow_invocation [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation, ::Hash]
3118
+ # Required. The workflow invocation resource to create.
3119
+ #
3120
+ # @yield [response, operation] Access the result along with the RPC operation
3121
+ # @yieldparam response [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
3122
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3123
+ #
3124
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
3125
+ #
3126
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3127
+ #
3128
+ # @example Basic example
3129
+ # require "google/cloud/dataform/v1beta1"
3130
+ #
3131
+ # # Create a client object. The client can be reused for multiple calls.
3132
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
3133
+ #
3134
+ # # Create a request. To set request fields, pass in keyword arguments.
3135
+ # request = Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest.new
3136
+ #
3137
+ # # Call the create_workflow_invocation method.
3138
+ # result = client.create_workflow_invocation request
3139
+ #
3140
+ # # The returned object is of type Google::Cloud::Dataform::V1beta1::WorkflowInvocation.
3141
+ # p result
3142
+ #
3143
+ def create_workflow_invocation request, options = nil
3144
+ raise ::ArgumentError, "request must be provided" if request.nil?
3145
+
3146
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest
3147
+
3148
+ # Converts hash and nil to an options object
3149
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3150
+
3151
+ # Customize the options with defaults
3152
+ metadata = @config.rpcs.create_workflow_invocation.metadata.to_h
3153
+
3154
+ # Set x-goog-api-client and x-goog-user-project headers
3155
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3156
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3157
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
3158
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3159
+
3160
+ header_params = {}
3161
+ if request.parent
3162
+ header_params["parent"] = request.parent
3163
+ end
3164
+
3165
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3166
+ metadata[:"x-goog-request-params"] ||= request_params_header
3167
+
3168
+ options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout,
3169
+ metadata: metadata,
3170
+ retry_policy: @config.rpcs.create_workflow_invocation.retry_policy
3171
+
3172
+ options.apply_defaults timeout: @config.timeout,
3173
+ metadata: @config.metadata,
3174
+ retry_policy: @config.retry_policy
3175
+
3176
+ @dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation|
3177
+ yield response, operation if block_given?
3178
+ return response
3179
+ end
3180
+ rescue ::GRPC::BadStatus => e
3181
+ raise ::Google::Cloud::Error.from_error(e)
3182
+ end
3183
+
3184
+ ##
3185
+ # Deletes a single WorkflowInvocation.
3186
+ #
3187
+ # @overload delete_workflow_invocation(request, options = nil)
3188
+ # Pass arguments to `delete_workflow_invocation` via a request object, either of type
3189
+ # {::Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest} or an equivalent Hash.
3190
+ #
3191
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest, ::Hash]
3192
+ # A request object representing the call parameters. Required. To specify no
3193
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3194
+ # @param options [::Gapic::CallOptions, ::Hash]
3195
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3196
+ #
3197
+ # @overload delete_workflow_invocation(name: nil)
3198
+ # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at
3199
+ # least one keyword argument is required. To specify no parameters, or to keep all
3200
+ # the default parameter values, pass an empty Hash as a request object (see above).
3201
+ #
3202
+ # @param name [::String]
3203
+ # Required. The workflow invocation resource's name.
3204
+ #
3205
+ # @yield [response, operation] Access the result along with the RPC operation
3206
+ # @yieldparam response [::Google::Protobuf::Empty]
3207
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3208
+ #
3209
+ # @return [::Google::Protobuf::Empty]
3210
+ #
3211
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3212
+ #
3213
+ # @example Basic example
3214
+ # require "google/cloud/dataform/v1beta1"
3215
+ #
3216
+ # # Create a client object. The client can be reused for multiple calls.
3217
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
3218
+ #
3219
+ # # Create a request. To set request fields, pass in keyword arguments.
3220
+ # request = Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest.new
3221
+ #
3222
+ # # Call the delete_workflow_invocation method.
3223
+ # result = client.delete_workflow_invocation request
3224
+ #
3225
+ # # The returned object is of type Google::Protobuf::Empty.
3226
+ # p result
3227
+ #
3228
+ def delete_workflow_invocation request, options = nil
3229
+ raise ::ArgumentError, "request must be provided" if request.nil?
3230
+
3231
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest
3232
+
3233
+ # Converts hash and nil to an options object
3234
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3235
+
3236
+ # Customize the options with defaults
3237
+ metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h
3238
+
3239
+ # Set x-goog-api-client and x-goog-user-project headers
3240
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3241
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3242
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
3243
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3244
+
3245
+ header_params = {}
3246
+ if request.name
3247
+ header_params["name"] = request.name
3248
+ end
3249
+
3250
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3251
+ metadata[:"x-goog-request-params"] ||= request_params_header
3252
+
3253
+ options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout,
3254
+ metadata: metadata,
3255
+ retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy
3256
+
3257
+ options.apply_defaults timeout: @config.timeout,
3258
+ metadata: @config.metadata,
3259
+ retry_policy: @config.retry_policy
3260
+
3261
+ @dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation|
3262
+ yield response, operation if block_given?
3263
+ return response
3264
+ end
3265
+ rescue ::GRPC::BadStatus => e
3266
+ raise ::Google::Cloud::Error.from_error(e)
3267
+ end
3268
+
3269
+ ##
3270
+ # Requests cancellation of a running WorkflowInvocation.
3271
+ #
3272
+ # @overload cancel_workflow_invocation(request, options = nil)
3273
+ # Pass arguments to `cancel_workflow_invocation` via a request object, either of type
3274
+ # {::Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest} or an equivalent Hash.
3275
+ #
3276
+ # @param request [::Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest, ::Hash]
3277
+ # A request object representing the call parameters. Required. To specify no
3278
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3279
+ # @param options [::Gapic::CallOptions, ::Hash]
3280
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3281
+ #
3282
+ # @overload cancel_workflow_invocation(name: nil)
3283
+ # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at
3284
+ # least one keyword argument is required. To specify no parameters, or to keep all
3285
+ # the default parameter values, pass an empty Hash as a request object (see above).
3286
+ #
3287
+ # @param name [::String]
3288
+ # Required. The workflow invocation resource's name.
3289
+ #
3290
+ # @yield [response, operation] Access the result along with the RPC operation
3291
+ # @yieldparam response [::Google::Protobuf::Empty]
3292
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3293
+ #
3294
+ # @return [::Google::Protobuf::Empty]
3295
+ #
3296
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3297
+ #
3298
+ # @example Basic example
3299
+ # require "google/cloud/dataform/v1beta1"
3300
+ #
3301
+ # # Create a client object. The client can be reused for multiple calls.
3302
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
3303
+ #
3304
+ # # Create a request. To set request fields, pass in keyword arguments.
3305
+ # request = Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest.new
3306
+ #
3307
+ # # Call the cancel_workflow_invocation method.
3308
+ # result = client.cancel_workflow_invocation request
3309
+ #
3310
+ # # The returned object is of type Google::Protobuf::Empty.
3311
+ # p result
3312
+ #
3313
+ def cancel_workflow_invocation request, options = nil
3314
+ raise ::ArgumentError, "request must be provided" if request.nil?
3315
+
3316
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest
3317
+
3318
+ # Converts hash and nil to an options object
3319
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3320
+
3321
+ # Customize the options with defaults
3322
+ metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h
3323
+
3324
+ # Set x-goog-api-client and x-goog-user-project headers
3325
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3326
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3327
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
3328
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3329
+
3330
+ header_params = {}
3331
+ if request.name
3332
+ header_params["name"] = request.name
3333
+ end
3334
+
3335
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3336
+ metadata[:"x-goog-request-params"] ||= request_params_header
3337
+
3338
+ options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout,
3339
+ metadata: metadata,
3340
+ retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy
3341
+
3342
+ options.apply_defaults timeout: @config.timeout,
3343
+ metadata: @config.metadata,
3344
+ retry_policy: @config.retry_policy
3345
+
3346
+ @dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation|
3347
+ yield response, operation if block_given?
3348
+ return response
3349
+ end
3350
+ rescue ::GRPC::BadStatus => e
3351
+ raise ::Google::Cloud::Error.from_error(e)
3352
+ end
3353
+
3354
+ ##
3355
+ # Returns WorkflowInvocationActions in a given WorkflowInvocation.
3356
+ #
3357
+ # @overload query_workflow_invocation_actions(request, options = nil)
3358
+ # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type
3359
+ # {::Google::Cloud::Dataform::V1beta1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash.
3360
+ #
3361
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryWorkflowInvocationActionsRequest, ::Hash]
3362
+ # A request object representing the call parameters. Required. To specify no
3363
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3364
+ # @param options [::Gapic::CallOptions, ::Hash]
3365
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3366
+ #
3367
+ # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil)
3368
+ # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at
3369
+ # least one keyword argument is required. To specify no parameters, or to keep all
3370
+ # the default parameter values, pass an empty Hash as a request object (see above).
3371
+ #
3372
+ # @param name [::String]
3373
+ # Required. The workflow invocation's name.
3374
+ # @param page_size [::Integer]
3375
+ # Optional. Maximum number of workflow invocations to return. The server may return
3376
+ # fewer items than requested. If unspecified, the server will pick an
3377
+ # appropriate default.
3378
+ # @param page_token [::String]
3379
+ # Optional. Page token received from a previous `QueryWorkflowInvocationActions` call.
3380
+ # Provide this to retrieve the subsequent page.
3381
+ #
3382
+ # When paginating, all other parameters provided to
3383
+ # `QueryWorkflowInvocationActions` must match the call that provided the page
3384
+ # token.
3385
+ #
3386
+ # @yield [response, operation] Access the result along with the RPC operation
3387
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction>]
3388
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3389
+ #
3390
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction>]
3391
+ #
3392
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3393
+ #
3394
+ # @example Basic example
3395
+ # require "google/cloud/dataform/v1beta1"
3396
+ #
3397
+ # # Create a client object. The client can be reused for multiple calls.
3398
+ # client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
3399
+ #
3400
+ # # Create a request. To set request fields, pass in keyword arguments.
3401
+ # request = Google::Cloud::Dataform::V1beta1::QueryWorkflowInvocationActionsRequest.new
3402
+ #
3403
+ # # Call the query_workflow_invocation_actions method.
3404
+ # result = client.query_workflow_invocation_actions request
3405
+ #
3406
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3407
+ # # iterate over all elements by calling #each, and the enumerable
3408
+ # # will lazily make API calls to fetch subsequent pages. Other
3409
+ # # methods are also available for managing paging directly.
3410
+ # result.each do |response|
3411
+ # # Each element is of type ::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction.
3412
+ # p response
3413
+ # end
3414
+ #
3415
+ def query_workflow_invocation_actions request, options = nil
3416
+ raise ::ArgumentError, "request must be provided" if request.nil?
3417
+
3418
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryWorkflowInvocationActionsRequest
3419
+
3420
+ # Converts hash and nil to an options object
3421
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3422
+
3423
+ # Customize the options with defaults
3424
+ metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h
3425
+
3426
+ # Set x-goog-api-client and x-goog-user-project headers
3427
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3428
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3429
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
3430
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3431
+
3432
+ header_params = {}
3433
+ if request.name
3434
+ header_params["name"] = request.name
3435
+ end
3436
+
3437
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3438
+ metadata[:"x-goog-request-params"] ||= request_params_header
3439
+
3440
+ options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout,
3441
+ metadata: metadata,
3442
+ retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy
3443
+
3444
+ options.apply_defaults timeout: @config.timeout,
3445
+ metadata: @config.metadata,
3446
+ retry_policy: @config.retry_policy
3447
+
3448
+ @dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation|
3449
+ response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options
3450
+ yield response, operation if block_given?
3451
+ return response
3452
+ end
3453
+ rescue ::GRPC::BadStatus => e
3454
+ raise ::Google::Cloud::Error.from_error(e)
3455
+ end
3456
+
3457
+ ##
3458
+ # Configuration class for the Dataform API.
3459
+ #
3460
+ # This class represents the configuration for Dataform,
3461
+ # providing control over timeouts, retry behavior, logging, transport
3462
+ # parameters, and other low-level controls. Certain parameters can also be
3463
+ # applied individually to specific RPCs. See
3464
+ # {::Google::Cloud::Dataform::V1beta1::Dataform::Client::Configuration::Rpcs}
3465
+ # for a list of RPCs that can be configured independently.
3466
+ #
3467
+ # Configuration can be applied globally to all clients, or to a single client
3468
+ # on construction.
3469
+ #
3470
+ # @example
3471
+ #
3472
+ # # Modify the global config, setting the timeout for
3473
+ # # list_repositories to 20 seconds,
3474
+ # # and all remaining timeouts to 10 seconds.
3475
+ # ::Google::Cloud::Dataform::V1beta1::Dataform::Client.configure do |config|
3476
+ # config.timeout = 10.0
3477
+ # config.rpcs.list_repositories.timeout = 20.0
3478
+ # end
3479
+ #
3480
+ # # Apply the above configuration only to a new client.
3481
+ # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new do |config|
3482
+ # config.timeout = 10.0
3483
+ # config.rpcs.list_repositories.timeout = 20.0
3484
+ # end
3485
+ #
3486
+ # @!attribute [rw] endpoint
3487
+ # The hostname or hostname:port of the service endpoint.
3488
+ # Defaults to `"dataform.googleapis.com"`.
3489
+ # @return [::String]
3490
+ # @!attribute [rw] credentials
3491
+ # Credentials to send with calls. You may provide any of the following types:
3492
+ # * (`String`) The path to a service account key file in JSON format
3493
+ # * (`Hash`) A service account key as a Hash
3494
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
3495
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3496
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3497
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3498
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3499
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3500
+ # * (`nil`) indicating no credentials
3501
+ # @return [::Object]
3502
+ # @!attribute [rw] scope
3503
+ # The OAuth scopes
3504
+ # @return [::Array<::String>]
3505
+ # @!attribute [rw] lib_name
3506
+ # The library name as recorded in instrumentation and logging
3507
+ # @return [::String]
3508
+ # @!attribute [rw] lib_version
3509
+ # The library version as recorded in instrumentation and logging
3510
+ # @return [::String]
3511
+ # @!attribute [rw] channel_args
3512
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
3513
+ # `GRPC::Core::Channel` object is provided as the credential.
3514
+ # @return [::Hash]
3515
+ # @!attribute [rw] interceptors
3516
+ # An array of interceptors that are run before calls are executed.
3517
+ # @return [::Array<::GRPC::ClientInterceptor>]
3518
+ # @!attribute [rw] timeout
3519
+ # The call timeout in seconds.
3520
+ # @return [::Numeric]
3521
+ # @!attribute [rw] metadata
3522
+ # Additional gRPC headers to be sent with the call.
3523
+ # @return [::Hash{::Symbol=>::String}]
3524
+ # @!attribute [rw] retry_policy
3525
+ # The retry policy. The value is a hash with the following keys:
3526
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3527
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3528
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3529
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3530
+ # trigger a retry.
3531
+ # @return [::Hash]
3532
+ # @!attribute [rw] quota_project
3533
+ # A separate project against which to charge quota.
3534
+ # @return [::String]
3535
+ #
3536
+ class Configuration
3537
+ extend ::Gapic::Config
3538
+
3539
+ config_attr :endpoint, "dataform.googleapis.com", ::String
3540
+ config_attr :credentials, nil do |value|
3541
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3542
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
3543
+ allowed.any? { |klass| klass === value }
3544
+ end
3545
+ config_attr :scope, nil, ::String, ::Array, nil
3546
+ config_attr :lib_name, nil, ::String, nil
3547
+ config_attr :lib_version, nil, ::String, nil
3548
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
3549
+ config_attr :interceptors, nil, ::Array, nil
3550
+ config_attr :timeout, nil, ::Numeric, nil
3551
+ config_attr :metadata, nil, ::Hash, nil
3552
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3553
+ config_attr :quota_project, nil, ::String, nil
3554
+
3555
+ # @private
3556
+ def initialize parent_config = nil
3557
+ @parent_config = parent_config unless parent_config.nil?
3558
+
3559
+ yield self if block_given?
3560
+ end
3561
+
3562
+ ##
3563
+ # Configurations for individual RPCs
3564
+ # @return [Rpcs]
3565
+ #
3566
+ def rpcs
3567
+ @rpcs ||= begin
3568
+ parent_rpcs = nil
3569
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
3570
+ Rpcs.new parent_rpcs
3571
+ end
3572
+ end
3573
+
3574
+ ##
3575
+ # Configuration RPC class for the Dataform API.
3576
+ #
3577
+ # Includes fields providing the configuration for each RPC in this service.
3578
+ # Each configuration object is of type `Gapic::Config::Method` and includes
3579
+ # the following configuration fields:
3580
+ #
3581
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
3582
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
3583
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
3584
+ # include the following keys:
3585
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3586
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3587
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3588
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3589
+ # trigger a retry.
3590
+ #
3591
+ class Rpcs
3592
+ ##
3593
+ # RPC-specific configuration for `list_repositories`
3594
+ # @return [::Gapic::Config::Method]
3595
+ #
3596
+ attr_reader :list_repositories
3597
+ ##
3598
+ # RPC-specific configuration for `get_repository`
3599
+ # @return [::Gapic::Config::Method]
3600
+ #
3601
+ attr_reader :get_repository
3602
+ ##
3603
+ # RPC-specific configuration for `create_repository`
3604
+ # @return [::Gapic::Config::Method]
3605
+ #
3606
+ attr_reader :create_repository
3607
+ ##
3608
+ # RPC-specific configuration for `update_repository`
3609
+ # @return [::Gapic::Config::Method]
3610
+ #
3611
+ attr_reader :update_repository
3612
+ ##
3613
+ # RPC-specific configuration for `delete_repository`
3614
+ # @return [::Gapic::Config::Method]
3615
+ #
3616
+ attr_reader :delete_repository
3617
+ ##
3618
+ # RPC-specific configuration for `fetch_remote_branches`
3619
+ # @return [::Gapic::Config::Method]
3620
+ #
3621
+ attr_reader :fetch_remote_branches
3622
+ ##
3623
+ # RPC-specific configuration for `list_workspaces`
3624
+ # @return [::Gapic::Config::Method]
3625
+ #
3626
+ attr_reader :list_workspaces
3627
+ ##
3628
+ # RPC-specific configuration for `get_workspace`
3629
+ # @return [::Gapic::Config::Method]
3630
+ #
3631
+ attr_reader :get_workspace
3632
+ ##
3633
+ # RPC-specific configuration for `create_workspace`
3634
+ # @return [::Gapic::Config::Method]
3635
+ #
3636
+ attr_reader :create_workspace
3637
+ ##
3638
+ # RPC-specific configuration for `delete_workspace`
3639
+ # @return [::Gapic::Config::Method]
3640
+ #
3641
+ attr_reader :delete_workspace
3642
+ ##
3643
+ # RPC-specific configuration for `install_npm_packages`
3644
+ # @return [::Gapic::Config::Method]
3645
+ #
3646
+ attr_reader :install_npm_packages
3647
+ ##
3648
+ # RPC-specific configuration for `pull_git_commits`
3649
+ # @return [::Gapic::Config::Method]
3650
+ #
3651
+ attr_reader :pull_git_commits
3652
+ ##
3653
+ # RPC-specific configuration for `push_git_commits`
3654
+ # @return [::Gapic::Config::Method]
3655
+ #
3656
+ attr_reader :push_git_commits
3657
+ ##
3658
+ # RPC-specific configuration for `fetch_file_git_statuses`
3659
+ # @return [::Gapic::Config::Method]
3660
+ #
3661
+ attr_reader :fetch_file_git_statuses
3662
+ ##
3663
+ # RPC-specific configuration for `fetch_git_ahead_behind`
3664
+ # @return [::Gapic::Config::Method]
3665
+ #
3666
+ attr_reader :fetch_git_ahead_behind
3667
+ ##
3668
+ # RPC-specific configuration for `commit_workspace_changes`
3669
+ # @return [::Gapic::Config::Method]
3670
+ #
3671
+ attr_reader :commit_workspace_changes
3672
+ ##
3673
+ # RPC-specific configuration for `reset_workspace_changes`
3674
+ # @return [::Gapic::Config::Method]
3675
+ #
3676
+ attr_reader :reset_workspace_changes
3677
+ ##
3678
+ # RPC-specific configuration for `fetch_file_diff`
3679
+ # @return [::Gapic::Config::Method]
3680
+ #
3681
+ attr_reader :fetch_file_diff
3682
+ ##
3683
+ # RPC-specific configuration for `query_directory_contents`
3684
+ # @return [::Gapic::Config::Method]
3685
+ #
3686
+ attr_reader :query_directory_contents
3687
+ ##
3688
+ # RPC-specific configuration for `make_directory`
3689
+ # @return [::Gapic::Config::Method]
3690
+ #
3691
+ attr_reader :make_directory
3692
+ ##
3693
+ # RPC-specific configuration for `remove_directory`
3694
+ # @return [::Gapic::Config::Method]
3695
+ #
3696
+ attr_reader :remove_directory
3697
+ ##
3698
+ # RPC-specific configuration for `move_directory`
3699
+ # @return [::Gapic::Config::Method]
3700
+ #
3701
+ attr_reader :move_directory
3702
+ ##
3703
+ # RPC-specific configuration for `read_file`
3704
+ # @return [::Gapic::Config::Method]
3705
+ #
3706
+ attr_reader :read_file
3707
+ ##
3708
+ # RPC-specific configuration for `remove_file`
3709
+ # @return [::Gapic::Config::Method]
3710
+ #
3711
+ attr_reader :remove_file
3712
+ ##
3713
+ # RPC-specific configuration for `move_file`
3714
+ # @return [::Gapic::Config::Method]
3715
+ #
3716
+ attr_reader :move_file
3717
+ ##
3718
+ # RPC-specific configuration for `write_file`
3719
+ # @return [::Gapic::Config::Method]
3720
+ #
3721
+ attr_reader :write_file
3722
+ ##
3723
+ # RPC-specific configuration for `list_compilation_results`
3724
+ # @return [::Gapic::Config::Method]
3725
+ #
3726
+ attr_reader :list_compilation_results
3727
+ ##
3728
+ # RPC-specific configuration for `get_compilation_result`
3729
+ # @return [::Gapic::Config::Method]
3730
+ #
3731
+ attr_reader :get_compilation_result
3732
+ ##
3733
+ # RPC-specific configuration for `create_compilation_result`
3734
+ # @return [::Gapic::Config::Method]
3735
+ #
3736
+ attr_reader :create_compilation_result
3737
+ ##
3738
+ # RPC-specific configuration for `query_compilation_result_actions`
3739
+ # @return [::Gapic::Config::Method]
3740
+ #
3741
+ attr_reader :query_compilation_result_actions
3742
+ ##
3743
+ # RPC-specific configuration for `list_workflow_invocations`
3744
+ # @return [::Gapic::Config::Method]
3745
+ #
3746
+ attr_reader :list_workflow_invocations
3747
+ ##
3748
+ # RPC-specific configuration for `get_workflow_invocation`
3749
+ # @return [::Gapic::Config::Method]
3750
+ #
3751
+ attr_reader :get_workflow_invocation
3752
+ ##
3753
+ # RPC-specific configuration for `create_workflow_invocation`
3754
+ # @return [::Gapic::Config::Method]
3755
+ #
3756
+ attr_reader :create_workflow_invocation
3757
+ ##
3758
+ # RPC-specific configuration for `delete_workflow_invocation`
3759
+ # @return [::Gapic::Config::Method]
3760
+ #
3761
+ attr_reader :delete_workflow_invocation
3762
+ ##
3763
+ # RPC-specific configuration for `cancel_workflow_invocation`
3764
+ # @return [::Gapic::Config::Method]
3765
+ #
3766
+ attr_reader :cancel_workflow_invocation
3767
+ ##
3768
+ # RPC-specific configuration for `query_workflow_invocation_actions`
3769
+ # @return [::Gapic::Config::Method]
3770
+ #
3771
+ attr_reader :query_workflow_invocation_actions
3772
+
3773
+ # @private
3774
+ def initialize parent_rpcs = nil
3775
+ list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
3776
+ @list_repositories = ::Gapic::Config::Method.new list_repositories_config
3777
+ get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
3778
+ @get_repository = ::Gapic::Config::Method.new get_repository_config
3779
+ create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
3780
+ @create_repository = ::Gapic::Config::Method.new create_repository_config
3781
+ update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
3782
+ @update_repository = ::Gapic::Config::Method.new update_repository_config
3783
+ delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
3784
+ @delete_repository = ::Gapic::Config::Method.new delete_repository_config
3785
+ fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches
3786
+ @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config
3787
+ list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces
3788
+ @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config
3789
+ get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace
3790
+ @get_workspace = ::Gapic::Config::Method.new get_workspace_config
3791
+ create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace
3792
+ @create_workspace = ::Gapic::Config::Method.new create_workspace_config
3793
+ delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace
3794
+ @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config
3795
+ install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages
3796
+ @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config
3797
+ pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits
3798
+ @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config
3799
+ push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits
3800
+ @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config
3801
+ fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses
3802
+ @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config
3803
+ fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind
3804
+ @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config
3805
+ commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes
3806
+ @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config
3807
+ reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes
3808
+ @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config
3809
+ fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff
3810
+ @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config
3811
+ query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents
3812
+ @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config
3813
+ make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory
3814
+ @make_directory = ::Gapic::Config::Method.new make_directory_config
3815
+ remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory
3816
+ @remove_directory = ::Gapic::Config::Method.new remove_directory_config
3817
+ move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory
3818
+ @move_directory = ::Gapic::Config::Method.new move_directory_config
3819
+ read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file
3820
+ @read_file = ::Gapic::Config::Method.new read_file_config
3821
+ remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file
3822
+ @remove_file = ::Gapic::Config::Method.new remove_file_config
3823
+ move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file
3824
+ @move_file = ::Gapic::Config::Method.new move_file_config
3825
+ write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file
3826
+ @write_file = ::Gapic::Config::Method.new write_file_config
3827
+ list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results
3828
+ @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config
3829
+ get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result
3830
+ @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config
3831
+ create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result
3832
+ @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config
3833
+ query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions
3834
+ @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config
3835
+ list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations
3836
+ @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config
3837
+ get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation
3838
+ @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config
3839
+ create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation
3840
+ @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config
3841
+ delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation
3842
+ @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config
3843
+ cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation
3844
+ @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config
3845
+ query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions
3846
+ @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config
3847
+
3848
+ yield self if block_given?
3849
+ end
3850
+ end
3851
+ end
3852
+ end
3853
+ end
3854
+ end
3855
+ end
3856
+ end
3857
+ end