google-cloud-dataform-v1beta1 0.1.0 → 0.3.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,2973 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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/dataform/v1beta1/dataform/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
24
+
25
+ module Google
26
+ module Cloud
27
+ module Dataform
28
+ module V1beta1
29
+ module Dataform
30
+ module Rest
31
+ ##
32
+ # REST client for the Dataform service.
33
+ #
34
+ # Dataform is a service to develop, create, document, test, and update curated
35
+ # tables in BigQuery.
36
+ #
37
+ class Client
38
+ include Paths
39
+
40
+ # @private
41
+ attr_reader :dataform_stub
42
+
43
+ ##
44
+ # Configure the Dataform Client class.
45
+ #
46
+ # See {::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client::Configuration}
47
+ # for a description of the configuration fields.
48
+ #
49
+ # @example
50
+ #
51
+ # # Modify the configuration for all Dataform clients
52
+ # ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.configure do |config|
53
+ # config.timeout = 10.0
54
+ # end
55
+ #
56
+ # @yield [config] Configure the Client client.
57
+ # @yieldparam config [Client::Configuration]
58
+ #
59
+ # @return [Client::Configuration]
60
+ #
61
+ def self.configure
62
+ @configure ||= begin
63
+ namespace = ["Google", "Cloud", "Dataform", "V1beta1"]
64
+ parent_config = while namespace.any?
65
+ parent_name = namespace.join "::"
66
+ parent_const = const_get parent_name
67
+ break parent_const.configure if parent_const.respond_to? :configure
68
+ namespace.pop
69
+ end
70
+ default_config = Client::Configuration.new parent_config
71
+
72
+ default_config
73
+ end
74
+ yield @configure if block_given?
75
+ @configure
76
+ end
77
+
78
+ ##
79
+ # Configure the Dataform Client instance.
80
+ #
81
+ # The configuration is set to the derived mode, meaning that values can be changed,
82
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
83
+ # should be made on {Client.configure}.
84
+ #
85
+ # See {::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client::Configuration}
86
+ # for a description of the configuration fields.
87
+ #
88
+ # @yield [config] Configure the Client client.
89
+ # @yieldparam config [Client::Configuration]
90
+ #
91
+ # @return [Client::Configuration]
92
+ #
93
+ def configure
94
+ yield @config if block_given?
95
+ @config
96
+ end
97
+
98
+ ##
99
+ # Create a new Dataform REST client object.
100
+ #
101
+ # @example
102
+ #
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
105
+ #
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
110
+ #
111
+ # @yield [config] Configure the Dataform client.
112
+ # @yieldparam config [Client::Configuration]
113
+ #
114
+ def initialize
115
+ # Create the configuration object
116
+ @config = Configuration.new Client.configure
117
+
118
+ # Yield the configuration if needed
119
+ yield @config if block_given?
120
+
121
+ # Create credentials
122
+ credentials = @config.credentials
123
+ # Use self-signed JWT if the endpoint is unchanged from default,
124
+ # but only if the default endpoint does not have a region prefix.
125
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
126
+ !@config.endpoint.split(".").first.include?("-")
127
+ credentials ||= Credentials.default scope: @config.scope,
128
+ enable_self_signed_jwt: enable_self_signed_jwt
129
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
130
+ credentials = Credentials.new credentials, scope: @config.scope
131
+ end
132
+
133
+ @quota_project_id = @config.quota_project
134
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
135
+
136
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
137
+ config.credentials = credentials
138
+ config.quota_project = @quota_project_id
139
+ config.endpoint = @config.endpoint
140
+ config.bindings_override = @config.bindings_override
141
+ end
142
+
143
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
149
+ @dataform_stub = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
150
+ end
151
+
152
+ ##
153
+ # Get the associated client for mix-in of the Locations.
154
+ #
155
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
156
+ #
157
+ attr_reader :location_client
158
+
159
+ ##
160
+ # Get the associated client for mix-in of the IAMPolicy.
161
+ #
162
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
163
+ #
164
+ attr_reader :iam_policy_client
165
+
166
+ # Service calls
167
+
168
+ ##
169
+ # Lists Repositories in a given project and location.
170
+ #
171
+ # @overload list_repositories(request, options = nil)
172
+ # Pass arguments to `list_repositories` via a request object, either of type
173
+ # {::Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest} or an equivalent Hash.
174
+ #
175
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest, ::Hash]
176
+ # A request object representing the call parameters. Required. To specify no
177
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
178
+ # @param options [::Gapic::CallOptions, ::Hash]
179
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
180
+ #
181
+ # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
182
+ # Pass arguments to `list_repositories` via keyword arguments. Note that at
183
+ # least one keyword argument is required. To specify no parameters, or to keep all
184
+ # the default parameter values, pass an empty Hash as a request object (see above).
185
+ #
186
+ # @param parent [::String]
187
+ # Required. The location in which to list repositories. Must be in the format
188
+ # `projects/*/locations/*`.
189
+ # @param page_size [::Integer]
190
+ # Optional. Maximum number of repositories to return. The server may return fewer
191
+ # items than requested. If unspecified, the server will pick an appropriate
192
+ # default.
193
+ # @param page_token [::String]
194
+ # Optional. Page token received from a previous `ListRepositories` call.
195
+ # Provide this to retrieve the subsequent page.
196
+ #
197
+ # When paginating, all other parameters provided to `ListRepositories`
198
+ # must match the call that provided the page token.
199
+ # @param order_by [::String]
200
+ # Optional. This field only supports ordering by `name`. If unspecified, the server
201
+ # will choose the ordering. If specified, the default order is ascending for
202
+ # the `name` field.
203
+ # @param filter [::String]
204
+ # Optional. Filter for the returned list.
205
+ # @yield [result, operation] Access the result along with the TransportOperation object
206
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListRepositoriesResponse]
207
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
208
+ #
209
+ # @return [::Google::Cloud::Dataform::V1beta1::ListRepositoriesResponse]
210
+ #
211
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
212
+ def list_repositories request, options = nil
213
+ raise ::ArgumentError, "request must be provided" if request.nil?
214
+
215
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest
216
+
217
+ # Converts hash and nil to an options object
218
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
219
+
220
+ # Customize the options with defaults
221
+ call_metadata = @config.rpcs.list_repositories.metadata.to_h
222
+
223
+ # Set x-goog-api-client and x-goog-user-project headers
224
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
225
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
226
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
227
+ transports_version_send: [:rest]
228
+
229
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
230
+
231
+ options.apply_defaults timeout: @config.rpcs.list_repositories.timeout,
232
+ metadata: call_metadata,
233
+ retry_policy: @config.rpcs.list_repositories.retry_policy
234
+
235
+ options.apply_defaults timeout: @config.timeout,
236
+ metadata: @config.metadata,
237
+ retry_policy: @config.retry_policy
238
+
239
+ @dataform_stub.list_repositories request, options do |result, operation|
240
+ yield result, operation if block_given?
241
+ return result
242
+ end
243
+ rescue ::Gapic::Rest::Error => e
244
+ raise ::Google::Cloud::Error.from_error(e)
245
+ end
246
+
247
+ ##
248
+ # Fetches a single Repository.
249
+ #
250
+ # @overload get_repository(request, options = nil)
251
+ # Pass arguments to `get_repository` via a request object, either of type
252
+ # {::Google::Cloud::Dataform::V1beta1::GetRepositoryRequest} or an equivalent Hash.
253
+ #
254
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetRepositoryRequest, ::Hash]
255
+ # A request object representing the call parameters. Required. To specify no
256
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
257
+ # @param options [::Gapic::CallOptions, ::Hash]
258
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
259
+ #
260
+ # @overload get_repository(name: nil)
261
+ # Pass arguments to `get_repository` via keyword arguments. Note that at
262
+ # least one keyword argument is required. To specify no parameters, or to keep all
263
+ # the default parameter values, pass an empty Hash as a request object (see above).
264
+ #
265
+ # @param name [::String]
266
+ # Required. The repository's name.
267
+ # @yield [result, operation] Access the result along with the TransportOperation object
268
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Repository]
269
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
270
+ #
271
+ # @return [::Google::Cloud::Dataform::V1beta1::Repository]
272
+ #
273
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
274
+ def get_repository request, options = nil
275
+ raise ::ArgumentError, "request must be provided" if request.nil?
276
+
277
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetRepositoryRequest
278
+
279
+ # Converts hash and nil to an options object
280
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
281
+
282
+ # Customize the options with defaults
283
+ call_metadata = @config.rpcs.get_repository.metadata.to_h
284
+
285
+ # Set x-goog-api-client and x-goog-user-project headers
286
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
287
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
288
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
289
+ transports_version_send: [:rest]
290
+
291
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
292
+
293
+ options.apply_defaults timeout: @config.rpcs.get_repository.timeout,
294
+ metadata: call_metadata,
295
+ retry_policy: @config.rpcs.get_repository.retry_policy
296
+
297
+ options.apply_defaults timeout: @config.timeout,
298
+ metadata: @config.metadata,
299
+ retry_policy: @config.retry_policy
300
+
301
+ @dataform_stub.get_repository request, options do |result, operation|
302
+ yield result, operation if block_given?
303
+ return result
304
+ end
305
+ rescue ::Gapic::Rest::Error => e
306
+ raise ::Google::Cloud::Error.from_error(e)
307
+ end
308
+
309
+ ##
310
+ # Creates a new Repository in a given project and location.
311
+ #
312
+ # @overload create_repository(request, options = nil)
313
+ # Pass arguments to `create_repository` via a request object, either of type
314
+ # {::Google::Cloud::Dataform::V1beta1::CreateRepositoryRequest} or an equivalent Hash.
315
+ #
316
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateRepositoryRequest, ::Hash]
317
+ # A request object representing the call parameters. Required. To specify no
318
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
319
+ # @param options [::Gapic::CallOptions, ::Hash]
320
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
321
+ #
322
+ # @overload create_repository(parent: nil, repository: nil, repository_id: nil)
323
+ # Pass arguments to `create_repository` via keyword arguments. Note that at
324
+ # least one keyword argument is required. To specify no parameters, or to keep all
325
+ # the default parameter values, pass an empty Hash as a request object (see above).
326
+ #
327
+ # @param parent [::String]
328
+ # Required. The location in which to create the repository. Must be in the format
329
+ # `projects/*/locations/*`.
330
+ # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
331
+ # Required. The repository to create.
332
+ # @param repository_id [::String]
333
+ # Required. The ID to use for the repository, which will become the final component of
334
+ # the repository's resource name.
335
+ # @yield [result, operation] Access the result along with the TransportOperation object
336
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Repository]
337
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
338
+ #
339
+ # @return [::Google::Cloud::Dataform::V1beta1::Repository]
340
+ #
341
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
342
+ def create_repository request, options = nil
343
+ raise ::ArgumentError, "request must be provided" if request.nil?
344
+
345
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateRepositoryRequest
346
+
347
+ # Converts hash and nil to an options object
348
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
349
+
350
+ # Customize the options with defaults
351
+ call_metadata = @config.rpcs.create_repository.metadata.to_h
352
+
353
+ # Set x-goog-api-client and x-goog-user-project headers
354
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
356
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
357
+ transports_version_send: [:rest]
358
+
359
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
+
361
+ options.apply_defaults timeout: @config.rpcs.create_repository.timeout,
362
+ metadata: call_metadata,
363
+ retry_policy: @config.rpcs.create_repository.retry_policy
364
+
365
+ options.apply_defaults timeout: @config.timeout,
366
+ metadata: @config.metadata,
367
+ retry_policy: @config.retry_policy
368
+
369
+ @dataform_stub.create_repository request, options do |result, operation|
370
+ yield result, operation if block_given?
371
+ return result
372
+ end
373
+ rescue ::Gapic::Rest::Error => e
374
+ raise ::Google::Cloud::Error.from_error(e)
375
+ end
376
+
377
+ ##
378
+ # Updates a single Repository.
379
+ #
380
+ # @overload update_repository(request, options = nil)
381
+ # Pass arguments to `update_repository` via a request object, either of type
382
+ # {::Google::Cloud::Dataform::V1beta1::UpdateRepositoryRequest} or an equivalent Hash.
383
+ #
384
+ # @param request [::Google::Cloud::Dataform::V1beta1::UpdateRepositoryRequest, ::Hash]
385
+ # A request object representing the call parameters. Required. To specify no
386
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
387
+ # @param options [::Gapic::CallOptions, ::Hash]
388
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
389
+ #
390
+ # @overload update_repository(update_mask: nil, repository: nil)
391
+ # Pass arguments to `update_repository` via keyword arguments. Note that at
392
+ # least one keyword argument is required. To specify no parameters, or to keep all
393
+ # the default parameter values, pass an empty Hash as a request object (see above).
394
+ #
395
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
396
+ # Optional. Specifies the fields to be updated in the repository. If left unset,
397
+ # all fields will be updated.
398
+ # @param repository [::Google::Cloud::Dataform::V1beta1::Repository, ::Hash]
399
+ # Required. The repository to update.
400
+ # @yield [result, operation] Access the result along with the TransportOperation object
401
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Repository]
402
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
403
+ #
404
+ # @return [::Google::Cloud::Dataform::V1beta1::Repository]
405
+ #
406
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
407
+ def update_repository request, options = nil
408
+ raise ::ArgumentError, "request must be provided" if request.nil?
409
+
410
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateRepositoryRequest
411
+
412
+ # Converts hash and nil to an options object
413
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
414
+
415
+ # Customize the options with defaults
416
+ call_metadata = @config.rpcs.update_repository.metadata.to_h
417
+
418
+ # Set x-goog-api-client and x-goog-user-project headers
419
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
420
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
421
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
422
+ transports_version_send: [:rest]
423
+
424
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
425
+
426
+ options.apply_defaults timeout: @config.rpcs.update_repository.timeout,
427
+ metadata: call_metadata,
428
+ retry_policy: @config.rpcs.update_repository.retry_policy
429
+
430
+ options.apply_defaults timeout: @config.timeout,
431
+ metadata: @config.metadata,
432
+ retry_policy: @config.retry_policy
433
+
434
+ @dataform_stub.update_repository request, options do |result, operation|
435
+ yield result, operation if block_given?
436
+ return result
437
+ end
438
+ rescue ::Gapic::Rest::Error => e
439
+ raise ::Google::Cloud::Error.from_error(e)
440
+ end
441
+
442
+ ##
443
+ # Deletes a single Repository.
444
+ #
445
+ # @overload delete_repository(request, options = nil)
446
+ # Pass arguments to `delete_repository` via a request object, either of type
447
+ # {::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest} or an equivalent Hash.
448
+ #
449
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest, ::Hash]
450
+ # A request object representing the call parameters. Required. To specify no
451
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
452
+ # @param options [::Gapic::CallOptions, ::Hash]
453
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
454
+ #
455
+ # @overload delete_repository(name: nil, force: nil)
456
+ # Pass arguments to `delete_repository` via keyword arguments. Note that at
457
+ # least one keyword argument is required. To specify no parameters, or to keep all
458
+ # the default parameter values, pass an empty Hash as a request object (see above).
459
+ #
460
+ # @param name [::String]
461
+ # Required. The repository's name.
462
+ # @param force [::Boolean]
463
+ # If set to true, any child resources of this repository will also be
464
+ # deleted. (Otherwise, the request will only succeed if the repository has no
465
+ # child resources.)
466
+ # @yield [result, operation] Access the result along with the TransportOperation object
467
+ # @yieldparam result [::Google::Protobuf::Empty]
468
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
469
+ #
470
+ # @return [::Google::Protobuf::Empty]
471
+ #
472
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
473
+ def delete_repository request, options = nil
474
+ raise ::ArgumentError, "request must be provided" if request.nil?
475
+
476
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
477
+
478
+ # Converts hash and nil to an options object
479
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
480
+
481
+ # Customize the options with defaults
482
+ call_metadata = @config.rpcs.delete_repository.metadata.to_h
483
+
484
+ # Set x-goog-api-client and x-goog-user-project headers
485
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
486
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
487
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
488
+ transports_version_send: [:rest]
489
+
490
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
491
+
492
+ options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
493
+ metadata: call_metadata,
494
+ retry_policy: @config.rpcs.delete_repository.retry_policy
495
+
496
+ options.apply_defaults timeout: @config.timeout,
497
+ metadata: @config.metadata,
498
+ retry_policy: @config.retry_policy
499
+
500
+ @dataform_stub.delete_repository request, options do |result, operation|
501
+ yield result, operation if block_given?
502
+ return result
503
+ end
504
+ rescue ::Gapic::Rest::Error => e
505
+ raise ::Google::Cloud::Error.from_error(e)
506
+ end
507
+
508
+ ##
509
+ # Fetches a Repository's remote branches.
510
+ #
511
+ # @overload fetch_remote_branches(request, options = nil)
512
+ # Pass arguments to `fetch_remote_branches` via a request object, either of type
513
+ # {::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest} or an equivalent Hash.
514
+ #
515
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest, ::Hash]
516
+ # A request object representing the call parameters. Required. To specify no
517
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
518
+ # @param options [::Gapic::CallOptions, ::Hash]
519
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
520
+ #
521
+ # @overload fetch_remote_branches(name: nil)
522
+ # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at
523
+ # least one keyword argument is required. To specify no parameters, or to keep all
524
+ # the default parameter values, pass an empty Hash as a request object (see above).
525
+ #
526
+ # @param name [::String]
527
+ # Required. The repository's name.
528
+ # @yield [result, operation] Access the result along with the TransportOperation object
529
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
530
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
531
+ #
532
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesResponse]
533
+ #
534
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
535
+ def fetch_remote_branches request, options = nil
536
+ raise ::ArgumentError, "request must be provided" if request.nil?
537
+
538
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchRemoteBranchesRequest
539
+
540
+ # Converts hash and nil to an options object
541
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
542
+
543
+ # Customize the options with defaults
544
+ call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
545
+
546
+ # Set x-goog-api-client and x-goog-user-project headers
547
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
548
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
549
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
550
+ transports_version_send: [:rest]
551
+
552
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
553
+
554
+ options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
555
+ metadata: call_metadata,
556
+ retry_policy: @config.rpcs.fetch_remote_branches.retry_policy
557
+
558
+ options.apply_defaults timeout: @config.timeout,
559
+ metadata: @config.metadata,
560
+ retry_policy: @config.retry_policy
561
+
562
+ @dataform_stub.fetch_remote_branches request, options do |result, operation|
563
+ yield result, operation if block_given?
564
+ return result
565
+ end
566
+ rescue ::Gapic::Rest::Error => e
567
+ raise ::Google::Cloud::Error.from_error(e)
568
+ end
569
+
570
+ ##
571
+ # Lists Workspaces in a given Repository.
572
+ #
573
+ # @overload list_workspaces(request, options = nil)
574
+ # Pass arguments to `list_workspaces` via a request object, either of type
575
+ # {::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest} or an equivalent Hash.
576
+ #
577
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest, ::Hash]
578
+ # A request object representing the call parameters. Required. To specify no
579
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
580
+ # @param options [::Gapic::CallOptions, ::Hash]
581
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
582
+ #
583
+ # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
584
+ # Pass arguments to `list_workspaces` via keyword arguments. Note that at
585
+ # least one keyword argument is required. To specify no parameters, or to keep all
586
+ # the default parameter values, pass an empty Hash as a request object (see above).
587
+ #
588
+ # @param parent [::String]
589
+ # Required. The repository in which to list workspaces. Must be in the
590
+ # format `projects/*/locations/*/repositories/*`.
591
+ # @param page_size [::Integer]
592
+ # Optional. Maximum number of workspaces to return. The server may return fewer
593
+ # items than requested. If unspecified, the server will pick an appropriate
594
+ # default.
595
+ # @param page_token [::String]
596
+ # Optional. Page token received from a previous `ListWorkspaces` call.
597
+ # Provide this to retrieve the subsequent page.
598
+ #
599
+ # When paginating, all other parameters provided to `ListWorkspaces`
600
+ # must match the call that provided the page token.
601
+ # @param order_by [::String]
602
+ # Optional. This field only supports ordering by `name`. If unspecified, the server
603
+ # will choose the ordering. If specified, the default order is ascending for
604
+ # the `name` field.
605
+ # @param filter [::String]
606
+ # Optional. Filter for the returned list.
607
+ # @yield [result, operation] Access the result along with the TransportOperation object
608
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
609
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
610
+ #
611
+ # @return [::Google::Cloud::Dataform::V1beta1::ListWorkspacesResponse]
612
+ #
613
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
614
+ def list_workspaces request, options = nil
615
+ raise ::ArgumentError, "request must be provided" if request.nil?
616
+
617
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkspacesRequest
618
+
619
+ # Converts hash and nil to an options object
620
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
621
+
622
+ # Customize the options with defaults
623
+ call_metadata = @config.rpcs.list_workspaces.metadata.to_h
624
+
625
+ # Set x-goog-api-client and x-goog-user-project headers
626
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
628
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
629
+ transports_version_send: [:rest]
630
+
631
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
632
+
633
+ options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
634
+ metadata: call_metadata,
635
+ retry_policy: @config.rpcs.list_workspaces.retry_policy
636
+
637
+ options.apply_defaults timeout: @config.timeout,
638
+ metadata: @config.metadata,
639
+ retry_policy: @config.retry_policy
640
+
641
+ @dataform_stub.list_workspaces request, options do |result, operation|
642
+ yield result, operation if block_given?
643
+ return result
644
+ end
645
+ rescue ::Gapic::Rest::Error => e
646
+ raise ::Google::Cloud::Error.from_error(e)
647
+ end
648
+
649
+ ##
650
+ # Fetches a single Workspace.
651
+ #
652
+ # @overload get_workspace(request, options = nil)
653
+ # Pass arguments to `get_workspace` via a request object, either of type
654
+ # {::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest} or an equivalent Hash.
655
+ #
656
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest, ::Hash]
657
+ # A request object representing the call parameters. Required. To specify no
658
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
659
+ # @param options [::Gapic::CallOptions, ::Hash]
660
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
661
+ #
662
+ # @overload get_workspace(name: nil)
663
+ # Pass arguments to `get_workspace` via keyword arguments. Note that at
664
+ # least one keyword argument is required. To specify no parameters, or to keep all
665
+ # the default parameter values, pass an empty Hash as a request object (see above).
666
+ #
667
+ # @param name [::String]
668
+ # Required. The workspace's name.
669
+ # @yield [result, operation] Access the result along with the TransportOperation object
670
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
671
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
672
+ #
673
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
674
+ #
675
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
676
+ def get_workspace request, options = nil
677
+ raise ::ArgumentError, "request must be provided" if request.nil?
678
+
679
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkspaceRequest
680
+
681
+ # Converts hash and nil to an options object
682
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
683
+
684
+ # Customize the options with defaults
685
+ call_metadata = @config.rpcs.get_workspace.metadata.to_h
686
+
687
+ # Set x-goog-api-client and x-goog-user-project headers
688
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
689
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
690
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
691
+ transports_version_send: [:rest]
692
+
693
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
694
+
695
+ options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
696
+ metadata: call_metadata,
697
+ retry_policy: @config.rpcs.get_workspace.retry_policy
698
+
699
+ options.apply_defaults timeout: @config.timeout,
700
+ metadata: @config.metadata,
701
+ retry_policy: @config.retry_policy
702
+
703
+ @dataform_stub.get_workspace request, options do |result, operation|
704
+ yield result, operation if block_given?
705
+ return result
706
+ end
707
+ rescue ::Gapic::Rest::Error => e
708
+ raise ::Google::Cloud::Error.from_error(e)
709
+ end
710
+
711
+ ##
712
+ # Creates a new Workspace in a given Repository.
713
+ #
714
+ # @overload create_workspace(request, options = nil)
715
+ # Pass arguments to `create_workspace` via a request object, either of type
716
+ # {::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest} or an equivalent Hash.
717
+ #
718
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest, ::Hash]
719
+ # A request object representing the call parameters. Required. To specify no
720
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
721
+ # @param options [::Gapic::CallOptions, ::Hash]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ #
724
+ # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil)
725
+ # Pass arguments to `create_workspace` via keyword arguments. Note that at
726
+ # least one keyword argument is required. To specify no parameters, or to keep all
727
+ # the default parameter values, pass an empty Hash as a request object (see above).
728
+ #
729
+ # @param parent [::String]
730
+ # Required. The repository in which to create the workspace. Must be in the format
731
+ # `projects/*/locations/*/repositories/*`.
732
+ # @param workspace [::Google::Cloud::Dataform::V1beta1::Workspace, ::Hash]
733
+ # Required. The workspace to create.
734
+ # @param workspace_id [::String]
735
+ # Required. The ID to use for the workspace, which will become the final component of
736
+ # the workspace's resource name.
737
+ # @yield [result, operation] Access the result along with the TransportOperation object
738
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::Workspace]
739
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
740
+ #
741
+ # @return [::Google::Cloud::Dataform::V1beta1::Workspace]
742
+ #
743
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
744
+ def create_workspace request, options = nil
745
+ raise ::ArgumentError, "request must be provided" if request.nil?
746
+
747
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkspaceRequest
748
+
749
+ # Converts hash and nil to an options object
750
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
751
+
752
+ # Customize the options with defaults
753
+ call_metadata = @config.rpcs.create_workspace.metadata.to_h
754
+
755
+ # Set x-goog-api-client and x-goog-user-project headers
756
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
757
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
758
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
759
+ transports_version_send: [:rest]
760
+
761
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
762
+
763
+ options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
764
+ metadata: call_metadata,
765
+ retry_policy: @config.rpcs.create_workspace.retry_policy
766
+
767
+ options.apply_defaults timeout: @config.timeout,
768
+ metadata: @config.metadata,
769
+ retry_policy: @config.retry_policy
770
+
771
+ @dataform_stub.create_workspace request, options do |result, operation|
772
+ yield result, operation if block_given?
773
+ return result
774
+ end
775
+ rescue ::Gapic::Rest::Error => e
776
+ raise ::Google::Cloud::Error.from_error(e)
777
+ end
778
+
779
+ ##
780
+ # Deletes a single Workspace.
781
+ #
782
+ # @overload delete_workspace(request, options = nil)
783
+ # Pass arguments to `delete_workspace` via a request object, either of type
784
+ # {::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest} or an equivalent Hash.
785
+ #
786
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest, ::Hash]
787
+ # A request object representing the call parameters. Required. To specify no
788
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
789
+ # @param options [::Gapic::CallOptions, ::Hash]
790
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
791
+ #
792
+ # @overload delete_workspace(name: nil)
793
+ # Pass arguments to `delete_workspace` via keyword arguments. Note that at
794
+ # least one keyword argument is required. To specify no parameters, or to keep all
795
+ # the default parameter values, pass an empty Hash as a request object (see above).
796
+ #
797
+ # @param name [::String]
798
+ # Required. The workspace resource's name.
799
+ # @yield [result, operation] Access the result along with the TransportOperation object
800
+ # @yieldparam result [::Google::Protobuf::Empty]
801
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
802
+ #
803
+ # @return [::Google::Protobuf::Empty]
804
+ #
805
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
806
+ def delete_workspace request, options = nil
807
+ raise ::ArgumentError, "request must be provided" if request.nil?
808
+
809
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkspaceRequest
810
+
811
+ # Converts hash and nil to an options object
812
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
813
+
814
+ # Customize the options with defaults
815
+ call_metadata = @config.rpcs.delete_workspace.metadata.to_h
816
+
817
+ # Set x-goog-api-client and x-goog-user-project headers
818
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
819
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
820
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
821
+ transports_version_send: [:rest]
822
+
823
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
824
+
825
+ options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
826
+ metadata: call_metadata,
827
+ retry_policy: @config.rpcs.delete_workspace.retry_policy
828
+
829
+ options.apply_defaults timeout: @config.timeout,
830
+ metadata: @config.metadata,
831
+ retry_policy: @config.retry_policy
832
+
833
+ @dataform_stub.delete_workspace request, options do |result, operation|
834
+ yield result, operation if block_given?
835
+ return result
836
+ end
837
+ rescue ::Gapic::Rest::Error => e
838
+ raise ::Google::Cloud::Error.from_error(e)
839
+ end
840
+
841
+ ##
842
+ # Installs dependency NPM packages (inside a Workspace).
843
+ #
844
+ # @overload install_npm_packages(request, options = nil)
845
+ # Pass arguments to `install_npm_packages` via a request object, either of type
846
+ # {::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest} or an equivalent Hash.
847
+ #
848
+ # @param request [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest, ::Hash]
849
+ # A request object representing the call parameters. Required. To specify no
850
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
851
+ # @param options [::Gapic::CallOptions, ::Hash]
852
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
853
+ #
854
+ # @overload install_npm_packages(workspace: nil)
855
+ # Pass arguments to `install_npm_packages` via keyword arguments. Note that at
856
+ # least one keyword argument is required. To specify no parameters, or to keep all
857
+ # the default parameter values, pass an empty Hash as a request object (see above).
858
+ #
859
+ # @param workspace [::String]
860
+ # Required. The workspace's name.
861
+ # @yield [result, operation] Access the result along with the TransportOperation object
862
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
863
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
864
+ #
865
+ # @return [::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesResponse]
866
+ #
867
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
868
+ def install_npm_packages request, options = nil
869
+ raise ::ArgumentError, "request must be provided" if request.nil?
870
+
871
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::InstallNpmPackagesRequest
872
+
873
+ # Converts hash and nil to an options object
874
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
875
+
876
+ # Customize the options with defaults
877
+ call_metadata = @config.rpcs.install_npm_packages.metadata.to_h
878
+
879
+ # Set x-goog-api-client and x-goog-user-project headers
880
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
881
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
882
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
883
+ transports_version_send: [:rest]
884
+
885
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
886
+
887
+ options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
888
+ metadata: call_metadata,
889
+ retry_policy: @config.rpcs.install_npm_packages.retry_policy
890
+
891
+ options.apply_defaults timeout: @config.timeout,
892
+ metadata: @config.metadata,
893
+ retry_policy: @config.retry_policy
894
+
895
+ @dataform_stub.install_npm_packages request, options do |result, operation|
896
+ yield result, operation if block_given?
897
+ return result
898
+ end
899
+ rescue ::Gapic::Rest::Error => e
900
+ raise ::Google::Cloud::Error.from_error(e)
901
+ end
902
+
903
+ ##
904
+ # Pulls Git commits from the Repository's remote into a Workspace.
905
+ #
906
+ # @overload pull_git_commits(request, options = nil)
907
+ # Pass arguments to `pull_git_commits` via a request object, either of type
908
+ # {::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest} or an equivalent Hash.
909
+ #
910
+ # @param request [::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest, ::Hash]
911
+ # A request object representing the call parameters. Required. To specify no
912
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
913
+ # @param options [::Gapic::CallOptions, ::Hash]
914
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
915
+ #
916
+ # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil)
917
+ # Pass arguments to `pull_git_commits` via keyword arguments. Note that at
918
+ # least one keyword argument is required. To specify no parameters, or to keep all
919
+ # the default parameter values, pass an empty Hash as a request object (see above).
920
+ #
921
+ # @param name [::String]
922
+ # Required. The workspace's name.
923
+ # @param remote_branch [::String]
924
+ # Optional. The name of the branch in the Git remote from which to pull commits.
925
+ # If left unset, the repository's default branch name will be used.
926
+ # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
927
+ # Required. The author of any merge commit which may be created as a result of merging
928
+ # fetched Git commits into this workspace.
929
+ # @yield [result, operation] Access the result along with the TransportOperation object
930
+ # @yieldparam result [::Google::Protobuf::Empty]
931
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
932
+ #
933
+ # @return [::Google::Protobuf::Empty]
934
+ #
935
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
936
+ def pull_git_commits request, options = nil
937
+ raise ::ArgumentError, "request must be provided" if request.nil?
938
+
939
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PullGitCommitsRequest
940
+
941
+ # Converts hash and nil to an options object
942
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
943
+
944
+ # Customize the options with defaults
945
+ call_metadata = @config.rpcs.pull_git_commits.metadata.to_h
946
+
947
+ # Set x-goog-api-client and x-goog-user-project headers
948
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
949
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
950
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
951
+ transports_version_send: [:rest]
952
+
953
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
954
+
955
+ options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
956
+ metadata: call_metadata,
957
+ retry_policy: @config.rpcs.pull_git_commits.retry_policy
958
+
959
+ options.apply_defaults timeout: @config.timeout,
960
+ metadata: @config.metadata,
961
+ retry_policy: @config.retry_policy
962
+
963
+ @dataform_stub.pull_git_commits request, options do |result, operation|
964
+ yield result, operation if block_given?
965
+ return result
966
+ end
967
+ rescue ::Gapic::Rest::Error => e
968
+ raise ::Google::Cloud::Error.from_error(e)
969
+ end
970
+
971
+ ##
972
+ # Pushes Git commits from a Workspace to the Repository's remote.
973
+ #
974
+ # @overload push_git_commits(request, options = nil)
975
+ # Pass arguments to `push_git_commits` via a request object, either of type
976
+ # {::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest} or an equivalent Hash.
977
+ #
978
+ # @param request [::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest, ::Hash]
979
+ # A request object representing the call parameters. Required. To specify no
980
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
981
+ # @param options [::Gapic::CallOptions, ::Hash]
982
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
983
+ #
984
+ # @overload push_git_commits(name: nil, remote_branch: nil)
985
+ # Pass arguments to `push_git_commits` via keyword arguments. Note that at
986
+ # least one keyword argument is required. To specify no parameters, or to keep all
987
+ # the default parameter values, pass an empty Hash as a request object (see above).
988
+ #
989
+ # @param name [::String]
990
+ # Required. The workspace's name.
991
+ # @param remote_branch [::String]
992
+ # Optional. The name of the branch in the Git remote to which commits should be pushed.
993
+ # If left unset, the repository's default branch name will be used.
994
+ # @yield [result, operation] Access the result along with the TransportOperation object
995
+ # @yieldparam result [::Google::Protobuf::Empty]
996
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
997
+ #
998
+ # @return [::Google::Protobuf::Empty]
999
+ #
1000
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1001
+ def push_git_commits request, options = nil
1002
+ raise ::ArgumentError, "request must be provided" if request.nil?
1003
+
1004
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::PushGitCommitsRequest
1005
+
1006
+ # Converts hash and nil to an options object
1007
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1008
+
1009
+ # Customize the options with defaults
1010
+ call_metadata = @config.rpcs.push_git_commits.metadata.to_h
1011
+
1012
+ # Set x-goog-api-client and x-goog-user-project headers
1013
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1014
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1015
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1016
+ transports_version_send: [:rest]
1017
+
1018
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1019
+
1020
+ options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout,
1021
+ metadata: call_metadata,
1022
+ retry_policy: @config.rpcs.push_git_commits.retry_policy
1023
+
1024
+ options.apply_defaults timeout: @config.timeout,
1025
+ metadata: @config.metadata,
1026
+ retry_policy: @config.retry_policy
1027
+
1028
+ @dataform_stub.push_git_commits request, options do |result, operation|
1029
+ yield result, operation if block_given?
1030
+ return result
1031
+ end
1032
+ rescue ::Gapic::Rest::Error => e
1033
+ raise ::Google::Cloud::Error.from_error(e)
1034
+ end
1035
+
1036
+ ##
1037
+ # Fetches Git statuses for the files in a Workspace.
1038
+ #
1039
+ # @overload fetch_file_git_statuses(request, options = nil)
1040
+ # Pass arguments to `fetch_file_git_statuses` via a request object, either of type
1041
+ # {::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest} or an equivalent Hash.
1042
+ #
1043
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest, ::Hash]
1044
+ # A request object representing the call parameters. Required. To specify no
1045
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1046
+ # @param options [::Gapic::CallOptions, ::Hash]
1047
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1048
+ #
1049
+ # @overload fetch_file_git_statuses(name: nil)
1050
+ # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at
1051
+ # least one keyword argument is required. To specify no parameters, or to keep all
1052
+ # the default parameter values, pass an empty Hash as a request object (see above).
1053
+ #
1054
+ # @param name [::String]
1055
+ # Required. The workspace's name.
1056
+ # @yield [result, operation] Access the result along with the TransportOperation object
1057
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1058
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1059
+ #
1060
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesResponse]
1061
+ #
1062
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1063
+ def fetch_file_git_statuses request, options = nil
1064
+ raise ::ArgumentError, "request must be provided" if request.nil?
1065
+
1066
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileGitStatusesRequest
1067
+
1068
+ # Converts hash and nil to an options object
1069
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1070
+
1071
+ # Customize the options with defaults
1072
+ call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
1073
+
1074
+ # Set x-goog-api-client and x-goog-user-project headers
1075
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1076
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1077
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1078
+ transports_version_send: [:rest]
1079
+
1080
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1081
+
1082
+ options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout,
1083
+ metadata: call_metadata,
1084
+ retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy
1085
+
1086
+ options.apply_defaults timeout: @config.timeout,
1087
+ metadata: @config.metadata,
1088
+ retry_policy: @config.retry_policy
1089
+
1090
+ @dataform_stub.fetch_file_git_statuses request, options do |result, operation|
1091
+ yield result, operation if block_given?
1092
+ return result
1093
+ end
1094
+ rescue ::Gapic::Rest::Error => e
1095
+ raise ::Google::Cloud::Error.from_error(e)
1096
+ end
1097
+
1098
+ ##
1099
+ # Fetches Git ahead/behind against a remote branch.
1100
+ #
1101
+ # @overload fetch_git_ahead_behind(request, options = nil)
1102
+ # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type
1103
+ # {::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest} or an equivalent Hash.
1104
+ #
1105
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest, ::Hash]
1106
+ # A request object representing the call parameters. Required. To specify no
1107
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1108
+ # @param options [::Gapic::CallOptions, ::Hash]
1109
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1110
+ #
1111
+ # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil)
1112
+ # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at
1113
+ # least one keyword argument is required. To specify no parameters, or to keep all
1114
+ # the default parameter values, pass an empty Hash as a request object (see above).
1115
+ #
1116
+ # @param name [::String]
1117
+ # Required. The workspace's name.
1118
+ # @param remote_branch [::String]
1119
+ # Optional. The name of the branch in the Git remote against which this workspace
1120
+ # should be compared. If left unset, the repository's default branch name
1121
+ # will be used.
1122
+ # @yield [result, operation] Access the result along with the TransportOperation object
1123
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1124
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1125
+ #
1126
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindResponse]
1127
+ #
1128
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1129
+ def fetch_git_ahead_behind request, options = nil
1130
+ raise ::ArgumentError, "request must be provided" if request.nil?
1131
+
1132
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchGitAheadBehindRequest
1133
+
1134
+ # Converts hash and nil to an options object
1135
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1136
+
1137
+ # Customize the options with defaults
1138
+ call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
1139
+
1140
+ # Set x-goog-api-client and x-goog-user-project headers
1141
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1142
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1143
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1144
+ transports_version_send: [:rest]
1145
+
1146
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1147
+
1148
+ options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout,
1149
+ metadata: call_metadata,
1150
+ retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy
1151
+
1152
+ options.apply_defaults timeout: @config.timeout,
1153
+ metadata: @config.metadata,
1154
+ retry_policy: @config.retry_policy
1155
+
1156
+ @dataform_stub.fetch_git_ahead_behind request, options do |result, operation|
1157
+ yield result, operation if block_given?
1158
+ return result
1159
+ end
1160
+ rescue ::Gapic::Rest::Error => e
1161
+ raise ::Google::Cloud::Error.from_error(e)
1162
+ end
1163
+
1164
+ ##
1165
+ # Applies a Git commit for uncommitted files in a Workspace.
1166
+ #
1167
+ # @overload commit_workspace_changes(request, options = nil)
1168
+ # Pass arguments to `commit_workspace_changes` via a request object, either of type
1169
+ # {::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest} or an equivalent Hash.
1170
+ #
1171
+ # @param request [::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest, ::Hash]
1172
+ # A request object representing the call parameters. Required. To specify no
1173
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1174
+ # @param options [::Gapic::CallOptions, ::Hash]
1175
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1176
+ #
1177
+ # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil)
1178
+ # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at
1179
+ # least one keyword argument is required. To specify no parameters, or to keep all
1180
+ # the default parameter values, pass an empty Hash as a request object (see above).
1181
+ #
1182
+ # @param name [::String]
1183
+ # Required. The workspace's name.
1184
+ # @param author [::Google::Cloud::Dataform::V1beta1::CommitAuthor, ::Hash]
1185
+ # Required. The commit's author.
1186
+ # @param commit_message [::String]
1187
+ # Optional. The commit's message.
1188
+ # @param paths [::Array<::String>]
1189
+ # Optional. Full file paths to commit including filename, rooted at workspace root. If
1190
+ # left empty, all files will be committed.
1191
+ # @yield [result, operation] Access the result along with the TransportOperation object
1192
+ # @yieldparam result [::Google::Protobuf::Empty]
1193
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1194
+ #
1195
+ # @return [::Google::Protobuf::Empty]
1196
+ #
1197
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1198
+ def commit_workspace_changes request, options = nil
1199
+ raise ::ArgumentError, "request must be provided" if request.nil?
1200
+
1201
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CommitWorkspaceChangesRequest
1202
+
1203
+ # Converts hash and nil to an options object
1204
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1205
+
1206
+ # Customize the options with defaults
1207
+ call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
1208
+
1209
+ # Set x-goog-api-client and x-goog-user-project headers
1210
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1211
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1212
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1213
+ transports_version_send: [:rest]
1214
+
1215
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1216
+
1217
+ options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout,
1218
+ metadata: call_metadata,
1219
+ retry_policy: @config.rpcs.commit_workspace_changes.retry_policy
1220
+
1221
+ options.apply_defaults timeout: @config.timeout,
1222
+ metadata: @config.metadata,
1223
+ retry_policy: @config.retry_policy
1224
+
1225
+ @dataform_stub.commit_workspace_changes request, options do |result, operation|
1226
+ yield result, operation if block_given?
1227
+ return result
1228
+ end
1229
+ rescue ::Gapic::Rest::Error => e
1230
+ raise ::Google::Cloud::Error.from_error(e)
1231
+ end
1232
+
1233
+ ##
1234
+ # Performs a Git reset for uncommitted files in a Workspace.
1235
+ #
1236
+ # @overload reset_workspace_changes(request, options = nil)
1237
+ # Pass arguments to `reset_workspace_changes` via a request object, either of type
1238
+ # {::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest} or an equivalent Hash.
1239
+ #
1240
+ # @param request [::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest, ::Hash]
1241
+ # A request object representing the call parameters. Required. To specify no
1242
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1243
+ # @param options [::Gapic::CallOptions, ::Hash]
1244
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1245
+ #
1246
+ # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil)
1247
+ # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at
1248
+ # least one keyword argument is required. To specify no parameters, or to keep all
1249
+ # the default parameter values, pass an empty Hash as a request object (see above).
1250
+ #
1251
+ # @param name [::String]
1252
+ # Required. The workspace's name.
1253
+ # @param paths [::Array<::String>]
1254
+ # Optional. Full file paths to reset back to their committed state including filename,
1255
+ # rooted at workspace root. If left empty, all files will be reset.
1256
+ # @param clean [::Boolean]
1257
+ # Optional. If set to true, untracked files will be deleted.
1258
+ # @yield [result, operation] Access the result along with the TransportOperation object
1259
+ # @yieldparam result [::Google::Protobuf::Empty]
1260
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1261
+ #
1262
+ # @return [::Google::Protobuf::Empty]
1263
+ #
1264
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1265
+ def reset_workspace_changes request, options = nil
1266
+ raise ::ArgumentError, "request must be provided" if request.nil?
1267
+
1268
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ResetWorkspaceChangesRequest
1269
+
1270
+ # Converts hash and nil to an options object
1271
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1272
+
1273
+ # Customize the options with defaults
1274
+ call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
1275
+
1276
+ # Set x-goog-api-client and x-goog-user-project headers
1277
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1278
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1279
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1280
+ transports_version_send: [:rest]
1281
+
1282
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1283
+
1284
+ options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout,
1285
+ metadata: call_metadata,
1286
+ retry_policy: @config.rpcs.reset_workspace_changes.retry_policy
1287
+
1288
+ options.apply_defaults timeout: @config.timeout,
1289
+ metadata: @config.metadata,
1290
+ retry_policy: @config.retry_policy
1291
+
1292
+ @dataform_stub.reset_workspace_changes request, options do |result, operation|
1293
+ yield result, operation if block_given?
1294
+ return result
1295
+ end
1296
+ rescue ::Gapic::Rest::Error => e
1297
+ raise ::Google::Cloud::Error.from_error(e)
1298
+ end
1299
+
1300
+ ##
1301
+ # Fetches Git diff for an uncommitted file in a Workspace.
1302
+ #
1303
+ # @overload fetch_file_diff(request, options = nil)
1304
+ # Pass arguments to `fetch_file_diff` via a request object, either of type
1305
+ # {::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest} or an equivalent Hash.
1306
+ #
1307
+ # @param request [::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest, ::Hash]
1308
+ # A request object representing the call parameters. Required. To specify no
1309
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1310
+ # @param options [::Gapic::CallOptions, ::Hash]
1311
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1312
+ #
1313
+ # @overload fetch_file_diff(workspace: nil, path: nil)
1314
+ # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at
1315
+ # least one keyword argument is required. To specify no parameters, or to keep all
1316
+ # the default parameter values, pass an empty Hash as a request object (see above).
1317
+ #
1318
+ # @param workspace [::String]
1319
+ # Required. The workspace's name.
1320
+ # @param path [::String]
1321
+ # Required. The file's full path including filename, relative to the workspace root.
1322
+ # @yield [result, operation] Access the result along with the TransportOperation object
1323
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
1324
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1325
+ #
1326
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchFileDiffResponse]
1327
+ #
1328
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1329
+ def fetch_file_diff request, options = nil
1330
+ raise ::ArgumentError, "request must be provided" if request.nil?
1331
+
1332
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchFileDiffRequest
1333
+
1334
+ # Converts hash and nil to an options object
1335
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1336
+
1337
+ # Customize the options with defaults
1338
+ call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h
1339
+
1340
+ # Set x-goog-api-client and x-goog-user-project headers
1341
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1342
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1343
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1344
+ transports_version_send: [:rest]
1345
+
1346
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1347
+
1348
+ options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout,
1349
+ metadata: call_metadata,
1350
+ retry_policy: @config.rpcs.fetch_file_diff.retry_policy
1351
+
1352
+ options.apply_defaults timeout: @config.timeout,
1353
+ metadata: @config.metadata,
1354
+ retry_policy: @config.retry_policy
1355
+
1356
+ @dataform_stub.fetch_file_diff request, options do |result, operation|
1357
+ yield result, operation if block_given?
1358
+ return result
1359
+ end
1360
+ rescue ::Gapic::Rest::Error => e
1361
+ raise ::Google::Cloud::Error.from_error(e)
1362
+ end
1363
+
1364
+ ##
1365
+ # Returns the contents of a given Workspace directory.
1366
+ #
1367
+ # @overload query_directory_contents(request, options = nil)
1368
+ # Pass arguments to `query_directory_contents` via a request object, either of type
1369
+ # {::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest} or an equivalent Hash.
1370
+ #
1371
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest, ::Hash]
1372
+ # A request object representing the call parameters. Required. To specify no
1373
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1374
+ # @param options [::Gapic::CallOptions, ::Hash]
1375
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1376
+ #
1377
+ # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
1378
+ # Pass arguments to `query_directory_contents` via keyword arguments. Note that at
1379
+ # least one keyword argument is required. To specify no parameters, or to keep all
1380
+ # the default parameter values, pass an empty Hash as a request object (see above).
1381
+ #
1382
+ # @param workspace [::String]
1383
+ # Required. The workspace's name.
1384
+ # @param path [::String]
1385
+ # Optional. The directory's full path including directory name, relative to the
1386
+ # workspace root. If left unset, the workspace root is used.
1387
+ # @param page_size [::Integer]
1388
+ # Optional. Maximum number of paths to return. The server may return fewer
1389
+ # items than requested. If unspecified, the server will pick an appropriate
1390
+ # default.
1391
+ # @param page_token [::String]
1392
+ # Optional. Page token received from a previous `QueryDirectoryContents` call.
1393
+ # Provide this to retrieve the subsequent page.
1394
+ #
1395
+ # When paginating, all other parameters provided to
1396
+ # `QueryDirectoryContents` must match the call that provided the page
1397
+ # token.
1398
+ # @yield [result, operation] Access the result along with the TransportOperation object
1399
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
1400
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1401
+ #
1402
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsResponse::DirectoryEntry>]
1403
+ #
1404
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1405
+ def query_directory_contents request, options = nil
1406
+ raise ::ArgumentError, "request must be provided" if request.nil?
1407
+
1408
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryDirectoryContentsRequest
1409
+
1410
+ # Converts hash and nil to an options object
1411
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1412
+
1413
+ # Customize the options with defaults
1414
+ call_metadata = @config.rpcs.query_directory_contents.metadata.to_h
1415
+
1416
+ # Set x-goog-api-client and x-goog-user-project headers
1417
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1418
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1419
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1420
+ transports_version_send: [:rest]
1421
+
1422
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1423
+
1424
+ options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout,
1425
+ metadata: call_metadata,
1426
+ retry_policy: @config.rpcs.query_directory_contents.retry_policy
1427
+
1428
+ options.apply_defaults timeout: @config.timeout,
1429
+ metadata: @config.metadata,
1430
+ retry_policy: @config.retry_policy
1431
+
1432
+ @dataform_stub.query_directory_contents request, options do |result, operation|
1433
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options
1434
+ yield result, operation if block_given?
1435
+ return result
1436
+ end
1437
+ rescue ::Gapic::Rest::Error => e
1438
+ raise ::Google::Cloud::Error.from_error(e)
1439
+ end
1440
+
1441
+ ##
1442
+ # Creates a directory inside a Workspace.
1443
+ #
1444
+ # @overload make_directory(request, options = nil)
1445
+ # Pass arguments to `make_directory` via a request object, either of type
1446
+ # {::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest} or an equivalent Hash.
1447
+ #
1448
+ # @param request [::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest, ::Hash]
1449
+ # A request object representing the call parameters. Required. To specify no
1450
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1451
+ # @param options [::Gapic::CallOptions, ::Hash]
1452
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1453
+ #
1454
+ # @overload make_directory(workspace: nil, path: nil)
1455
+ # Pass arguments to `make_directory` via keyword arguments. Note that at
1456
+ # least one keyword argument is required. To specify no parameters, or to keep all
1457
+ # the default parameter values, pass an empty Hash as a request object (see above).
1458
+ #
1459
+ # @param workspace [::String]
1460
+ # Required. The workspace's name.
1461
+ # @param path [::String]
1462
+ # Required. The directory's full path including directory name, relative to the
1463
+ # workspace root.
1464
+ # @yield [result, operation] Access the result along with the TransportOperation object
1465
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
1466
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1467
+ #
1468
+ # @return [::Google::Cloud::Dataform::V1beta1::MakeDirectoryResponse]
1469
+ #
1470
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1471
+ def make_directory request, options = nil
1472
+ raise ::ArgumentError, "request must be provided" if request.nil?
1473
+
1474
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MakeDirectoryRequest
1475
+
1476
+ # Converts hash and nil to an options object
1477
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1478
+
1479
+ # Customize the options with defaults
1480
+ call_metadata = @config.rpcs.make_directory.metadata.to_h
1481
+
1482
+ # Set x-goog-api-client and x-goog-user-project headers
1483
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1484
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1485
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1486
+ transports_version_send: [:rest]
1487
+
1488
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1489
+
1490
+ options.apply_defaults timeout: @config.rpcs.make_directory.timeout,
1491
+ metadata: call_metadata,
1492
+ retry_policy: @config.rpcs.make_directory.retry_policy
1493
+
1494
+ options.apply_defaults timeout: @config.timeout,
1495
+ metadata: @config.metadata,
1496
+ retry_policy: @config.retry_policy
1497
+
1498
+ @dataform_stub.make_directory request, options do |result, operation|
1499
+ yield result, operation if block_given?
1500
+ return result
1501
+ end
1502
+ rescue ::Gapic::Rest::Error => e
1503
+ raise ::Google::Cloud::Error.from_error(e)
1504
+ end
1505
+
1506
+ ##
1507
+ # Deletes a directory (inside a Workspace) and all of its contents.
1508
+ #
1509
+ # @overload remove_directory(request, options = nil)
1510
+ # Pass arguments to `remove_directory` via a request object, either of type
1511
+ # {::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest} or an equivalent Hash.
1512
+ #
1513
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest, ::Hash]
1514
+ # A request object representing the call parameters. Required. To specify no
1515
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1516
+ # @param options [::Gapic::CallOptions, ::Hash]
1517
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1518
+ #
1519
+ # @overload remove_directory(workspace: nil, path: nil)
1520
+ # Pass arguments to `remove_directory` via keyword arguments. Note that at
1521
+ # least one keyword argument is required. To specify no parameters, or to keep all
1522
+ # the default parameter values, pass an empty Hash as a request object (see above).
1523
+ #
1524
+ # @param workspace [::String]
1525
+ # Required. The workspace's name.
1526
+ # @param path [::String]
1527
+ # Required. The directory's full path including directory name, relative to the
1528
+ # workspace root.
1529
+ # @yield [result, operation] Access the result along with the TransportOperation object
1530
+ # @yieldparam result [::Google::Protobuf::Empty]
1531
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1532
+ #
1533
+ # @return [::Google::Protobuf::Empty]
1534
+ #
1535
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1536
+ def remove_directory request, options = nil
1537
+ raise ::ArgumentError, "request must be provided" if request.nil?
1538
+
1539
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveDirectoryRequest
1540
+
1541
+ # Converts hash and nil to an options object
1542
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1543
+
1544
+ # Customize the options with defaults
1545
+ call_metadata = @config.rpcs.remove_directory.metadata.to_h
1546
+
1547
+ # Set x-goog-api-client and x-goog-user-project headers
1548
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1549
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1550
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1551
+ transports_version_send: [:rest]
1552
+
1553
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1554
+
1555
+ options.apply_defaults timeout: @config.rpcs.remove_directory.timeout,
1556
+ metadata: call_metadata,
1557
+ retry_policy: @config.rpcs.remove_directory.retry_policy
1558
+
1559
+ options.apply_defaults timeout: @config.timeout,
1560
+ metadata: @config.metadata,
1561
+ retry_policy: @config.retry_policy
1562
+
1563
+ @dataform_stub.remove_directory request, options do |result, operation|
1564
+ yield result, operation if block_given?
1565
+ return result
1566
+ end
1567
+ rescue ::Gapic::Rest::Error => e
1568
+ raise ::Google::Cloud::Error.from_error(e)
1569
+ end
1570
+
1571
+ ##
1572
+ # Moves a directory (inside a Workspace), and all of its contents, to a new
1573
+ # location.
1574
+ #
1575
+ # @overload move_directory(request, options = nil)
1576
+ # Pass arguments to `move_directory` via a request object, either of type
1577
+ # {::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest} or an equivalent Hash.
1578
+ #
1579
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest, ::Hash]
1580
+ # A request object representing the call parameters. Required. To specify no
1581
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1582
+ # @param options [::Gapic::CallOptions, ::Hash]
1583
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1584
+ #
1585
+ # @overload move_directory(workspace: nil, path: nil, new_path: nil)
1586
+ # Pass arguments to `move_directory` via keyword arguments. Note that at
1587
+ # least one keyword argument is required. To specify no parameters, or to keep all
1588
+ # the default parameter values, pass an empty Hash as a request object (see above).
1589
+ #
1590
+ # @param workspace [::String]
1591
+ # Required. The workspace's name.
1592
+ # @param path [::String]
1593
+ # Required. The directory's full path including directory name, relative to the
1594
+ # workspace root.
1595
+ # @param new_path [::String]
1596
+ # Required. The new path for the directory including directory name, rooted at
1597
+ # workspace root.
1598
+ # @yield [result, operation] Access the result along with the TransportOperation object
1599
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
1600
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1601
+ #
1602
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveDirectoryResponse]
1603
+ #
1604
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1605
+ def move_directory request, options = nil
1606
+ raise ::ArgumentError, "request must be provided" if request.nil?
1607
+
1608
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveDirectoryRequest
1609
+
1610
+ # Converts hash and nil to an options object
1611
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1612
+
1613
+ # Customize the options with defaults
1614
+ call_metadata = @config.rpcs.move_directory.metadata.to_h
1615
+
1616
+ # Set x-goog-api-client and x-goog-user-project headers
1617
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1618
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1619
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1620
+ transports_version_send: [:rest]
1621
+
1622
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1623
+
1624
+ options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
1625
+ metadata: call_metadata,
1626
+ retry_policy: @config.rpcs.move_directory.retry_policy
1627
+
1628
+ options.apply_defaults timeout: @config.timeout,
1629
+ metadata: @config.metadata,
1630
+ retry_policy: @config.retry_policy
1631
+
1632
+ @dataform_stub.move_directory request, options do |result, operation|
1633
+ yield result, operation if block_given?
1634
+ return result
1635
+ end
1636
+ rescue ::Gapic::Rest::Error => e
1637
+ raise ::Google::Cloud::Error.from_error(e)
1638
+ end
1639
+
1640
+ ##
1641
+ # Returns the contents of a file (inside a Workspace).
1642
+ #
1643
+ # @overload read_file(request, options = nil)
1644
+ # Pass arguments to `read_file` via a request object, either of type
1645
+ # {::Google::Cloud::Dataform::V1beta1::ReadFileRequest} or an equivalent Hash.
1646
+ #
1647
+ # @param request [::Google::Cloud::Dataform::V1beta1::ReadFileRequest, ::Hash]
1648
+ # A request object representing the call parameters. Required. To specify no
1649
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1650
+ # @param options [::Gapic::CallOptions, ::Hash]
1651
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1652
+ #
1653
+ # @overload read_file(workspace: nil, path: nil)
1654
+ # Pass arguments to `read_file` via keyword arguments. Note that at
1655
+ # least one keyword argument is required. To specify no parameters, or to keep all
1656
+ # the default parameter values, pass an empty Hash as a request object (see above).
1657
+ #
1658
+ # @param workspace [::String]
1659
+ # Required. The workspace's name.
1660
+ # @param path [::String]
1661
+ # Required. The file's full path including filename, relative to the workspace root.
1662
+ # @yield [result, operation] Access the result along with the TransportOperation object
1663
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
1664
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1665
+ #
1666
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadFileResponse]
1667
+ #
1668
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1669
+ def read_file request, options = nil
1670
+ raise ::ArgumentError, "request must be provided" if request.nil?
1671
+
1672
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ReadFileRequest
1673
+
1674
+ # Converts hash and nil to an options object
1675
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1676
+
1677
+ # Customize the options with defaults
1678
+ call_metadata = @config.rpcs.read_file.metadata.to_h
1679
+
1680
+ # Set x-goog-api-client and x-goog-user-project headers
1681
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1682
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1683
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1684
+ transports_version_send: [:rest]
1685
+
1686
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1687
+
1688
+ options.apply_defaults timeout: @config.rpcs.read_file.timeout,
1689
+ metadata: call_metadata,
1690
+ retry_policy: @config.rpcs.read_file.retry_policy
1691
+
1692
+ options.apply_defaults timeout: @config.timeout,
1693
+ metadata: @config.metadata,
1694
+ retry_policy: @config.retry_policy
1695
+
1696
+ @dataform_stub.read_file request, options do |result, operation|
1697
+ yield result, operation if block_given?
1698
+ return result
1699
+ end
1700
+ rescue ::Gapic::Rest::Error => e
1701
+ raise ::Google::Cloud::Error.from_error(e)
1702
+ end
1703
+
1704
+ ##
1705
+ # Deletes a file (inside a Workspace).
1706
+ #
1707
+ # @overload remove_file(request, options = nil)
1708
+ # Pass arguments to `remove_file` via a request object, either of type
1709
+ # {::Google::Cloud::Dataform::V1beta1::RemoveFileRequest} or an equivalent Hash.
1710
+ #
1711
+ # @param request [::Google::Cloud::Dataform::V1beta1::RemoveFileRequest, ::Hash]
1712
+ # A request object representing the call parameters. Required. To specify no
1713
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1714
+ # @param options [::Gapic::CallOptions, ::Hash]
1715
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1716
+ #
1717
+ # @overload remove_file(workspace: nil, path: nil)
1718
+ # Pass arguments to `remove_file` via keyword arguments. Note that at
1719
+ # least one keyword argument is required. To specify no parameters, or to keep all
1720
+ # the default parameter values, pass an empty Hash as a request object (see above).
1721
+ #
1722
+ # @param workspace [::String]
1723
+ # Required. The workspace's name.
1724
+ # @param path [::String]
1725
+ # Required. The file's full path including filename, relative to the workspace root.
1726
+ # @yield [result, operation] Access the result along with the TransportOperation object
1727
+ # @yieldparam result [::Google::Protobuf::Empty]
1728
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1729
+ #
1730
+ # @return [::Google::Protobuf::Empty]
1731
+ #
1732
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1733
+ def remove_file request, options = nil
1734
+ raise ::ArgumentError, "request must be provided" if request.nil?
1735
+
1736
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::RemoveFileRequest
1737
+
1738
+ # Converts hash and nil to an options object
1739
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1740
+
1741
+ # Customize the options with defaults
1742
+ call_metadata = @config.rpcs.remove_file.metadata.to_h
1743
+
1744
+ # Set x-goog-api-client and x-goog-user-project headers
1745
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1746
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1747
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1748
+ transports_version_send: [:rest]
1749
+
1750
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1751
+
1752
+ options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
1753
+ metadata: call_metadata,
1754
+ retry_policy: @config.rpcs.remove_file.retry_policy
1755
+
1756
+ options.apply_defaults timeout: @config.timeout,
1757
+ metadata: @config.metadata,
1758
+ retry_policy: @config.retry_policy
1759
+
1760
+ @dataform_stub.remove_file request, options do |result, operation|
1761
+ yield result, operation if block_given?
1762
+ return result
1763
+ end
1764
+ rescue ::Gapic::Rest::Error => e
1765
+ raise ::Google::Cloud::Error.from_error(e)
1766
+ end
1767
+
1768
+ ##
1769
+ # Moves a file (inside a Workspace) to a new location.
1770
+ #
1771
+ # @overload move_file(request, options = nil)
1772
+ # Pass arguments to `move_file` via a request object, either of type
1773
+ # {::Google::Cloud::Dataform::V1beta1::MoveFileRequest} or an equivalent Hash.
1774
+ #
1775
+ # @param request [::Google::Cloud::Dataform::V1beta1::MoveFileRequest, ::Hash]
1776
+ # A request object representing the call parameters. Required. To specify no
1777
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1778
+ # @param options [::Gapic::CallOptions, ::Hash]
1779
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1780
+ #
1781
+ # @overload move_file(workspace: nil, path: nil, new_path: nil)
1782
+ # Pass arguments to `move_file` via keyword arguments. Note that at
1783
+ # least one keyword argument is required. To specify no parameters, or to keep all
1784
+ # the default parameter values, pass an empty Hash as a request object (see above).
1785
+ #
1786
+ # @param workspace [::String]
1787
+ # Required. The workspace's name.
1788
+ # @param path [::String]
1789
+ # Required. The file's full path including filename, relative to the workspace root.
1790
+ # @param new_path [::String]
1791
+ # Required. The file's new path including filename, relative to the workspace root.
1792
+ # @yield [result, operation] Access the result along with the TransportOperation object
1793
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
1794
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1795
+ #
1796
+ # @return [::Google::Cloud::Dataform::V1beta1::MoveFileResponse]
1797
+ #
1798
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1799
+ def move_file request, options = nil
1800
+ raise ::ArgumentError, "request must be provided" if request.nil?
1801
+
1802
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFileRequest
1803
+
1804
+ # Converts hash and nil to an options object
1805
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1806
+
1807
+ # Customize the options with defaults
1808
+ call_metadata = @config.rpcs.move_file.metadata.to_h
1809
+
1810
+ # Set x-goog-api-client and x-goog-user-project headers
1811
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1812
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1813
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1814
+ transports_version_send: [:rest]
1815
+
1816
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1817
+
1818
+ options.apply_defaults timeout: @config.rpcs.move_file.timeout,
1819
+ metadata: call_metadata,
1820
+ retry_policy: @config.rpcs.move_file.retry_policy
1821
+
1822
+ options.apply_defaults timeout: @config.timeout,
1823
+ metadata: @config.metadata,
1824
+ retry_policy: @config.retry_policy
1825
+
1826
+ @dataform_stub.move_file request, options do |result, operation|
1827
+ yield result, operation if block_given?
1828
+ return result
1829
+ end
1830
+ rescue ::Gapic::Rest::Error => e
1831
+ raise ::Google::Cloud::Error.from_error(e)
1832
+ end
1833
+
1834
+ ##
1835
+ # Writes to a file (inside a Workspace).
1836
+ #
1837
+ # @overload write_file(request, options = nil)
1838
+ # Pass arguments to `write_file` via a request object, either of type
1839
+ # {::Google::Cloud::Dataform::V1beta1::WriteFileRequest} or an equivalent Hash.
1840
+ #
1841
+ # @param request [::Google::Cloud::Dataform::V1beta1::WriteFileRequest, ::Hash]
1842
+ # A request object representing the call parameters. Required. To specify no
1843
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1844
+ # @param options [::Gapic::CallOptions, ::Hash]
1845
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1846
+ #
1847
+ # @overload write_file(workspace: nil, path: nil, contents: nil)
1848
+ # Pass arguments to `write_file` via keyword arguments. Note that at
1849
+ # least one keyword argument is required. To specify no parameters, or to keep all
1850
+ # the default parameter values, pass an empty Hash as a request object (see above).
1851
+ #
1852
+ # @param workspace [::String]
1853
+ # Required. The workspace's name.
1854
+ # @param path [::String]
1855
+ # Required. The file.
1856
+ # @param contents [::String]
1857
+ # Required. The file's contents.
1858
+ # @yield [result, operation] Access the result along with the TransportOperation object
1859
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
1860
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1861
+ #
1862
+ # @return [::Google::Cloud::Dataform::V1beta1::WriteFileResponse]
1863
+ #
1864
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1865
+ def write_file request, options = nil
1866
+ raise ::ArgumentError, "request must be provided" if request.nil?
1867
+
1868
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::WriteFileRequest
1869
+
1870
+ # Converts hash and nil to an options object
1871
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1872
+
1873
+ # Customize the options with defaults
1874
+ call_metadata = @config.rpcs.write_file.metadata.to_h
1875
+
1876
+ # Set x-goog-api-client and x-goog-user-project headers
1877
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1878
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1879
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1880
+ transports_version_send: [:rest]
1881
+
1882
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1883
+
1884
+ options.apply_defaults timeout: @config.rpcs.write_file.timeout,
1885
+ metadata: call_metadata,
1886
+ retry_policy: @config.rpcs.write_file.retry_policy
1887
+
1888
+ options.apply_defaults timeout: @config.timeout,
1889
+ metadata: @config.metadata,
1890
+ retry_policy: @config.retry_policy
1891
+
1892
+ @dataform_stub.write_file request, options do |result, operation|
1893
+ yield result, operation if block_given?
1894
+ return result
1895
+ end
1896
+ rescue ::Gapic::Rest::Error => e
1897
+ raise ::Google::Cloud::Error.from_error(e)
1898
+ end
1899
+
1900
+ ##
1901
+ # Lists CompilationResults in a given Repository.
1902
+ #
1903
+ # @overload list_compilation_results(request, options = nil)
1904
+ # Pass arguments to `list_compilation_results` via a request object, either of type
1905
+ # {::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest} or an equivalent Hash.
1906
+ #
1907
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest, ::Hash]
1908
+ # A request object representing the call parameters. Required. To specify no
1909
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1910
+ # @param options [::Gapic::CallOptions, ::Hash]
1911
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1912
+ #
1913
+ # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil)
1914
+ # Pass arguments to `list_compilation_results` via keyword arguments. Note that at
1915
+ # least one keyword argument is required. To specify no parameters, or to keep all
1916
+ # the default parameter values, pass an empty Hash as a request object (see above).
1917
+ #
1918
+ # @param parent [::String]
1919
+ # Required. The repository in which to list compilation results. Must be in the
1920
+ # format `projects/*/locations/*/repositories/*`.
1921
+ # @param page_size [::Integer]
1922
+ # Optional. Maximum number of compilation results to return. The server may return
1923
+ # fewer items than requested. If unspecified, the server will pick an
1924
+ # appropriate default.
1925
+ # @param page_token [::String]
1926
+ # Optional. Page token received from a previous `ListCompilationResults` call.
1927
+ # Provide this to retrieve the subsequent page.
1928
+ #
1929
+ # When paginating, all other parameters provided to `ListCompilationResults`
1930
+ # must match the call that provided the page token.
1931
+ # @yield [result, operation] Access the result along with the TransportOperation object
1932
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1933
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1934
+ #
1935
+ # @return [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1936
+ #
1937
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1938
+ def list_compilation_results request, options = nil
1939
+ raise ::ArgumentError, "request must be provided" if request.nil?
1940
+
1941
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest
1942
+
1943
+ # Converts hash and nil to an options object
1944
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1945
+
1946
+ # Customize the options with defaults
1947
+ call_metadata = @config.rpcs.list_compilation_results.metadata.to_h
1948
+
1949
+ # Set x-goog-api-client and x-goog-user-project headers
1950
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1951
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1952
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
1953
+ transports_version_send: [:rest]
1954
+
1955
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1956
+
1957
+ options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
1958
+ metadata: call_metadata,
1959
+ retry_policy: @config.rpcs.list_compilation_results.retry_policy
1960
+
1961
+ options.apply_defaults timeout: @config.timeout,
1962
+ metadata: @config.metadata,
1963
+ retry_policy: @config.retry_policy
1964
+
1965
+ @dataform_stub.list_compilation_results request, options do |result, operation|
1966
+ yield result, operation if block_given?
1967
+ return result
1968
+ end
1969
+ rescue ::Gapic::Rest::Error => e
1970
+ raise ::Google::Cloud::Error.from_error(e)
1971
+ end
1972
+
1973
+ ##
1974
+ # Fetches a single CompilationResult.
1975
+ #
1976
+ # @overload get_compilation_result(request, options = nil)
1977
+ # Pass arguments to `get_compilation_result` via a request object, either of type
1978
+ # {::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest} or an equivalent Hash.
1979
+ #
1980
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest, ::Hash]
1981
+ # A request object representing the call parameters. Required. To specify no
1982
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1983
+ # @param options [::Gapic::CallOptions, ::Hash]
1984
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1985
+ #
1986
+ # @overload get_compilation_result(name: nil)
1987
+ # Pass arguments to `get_compilation_result` via keyword arguments. Note that at
1988
+ # least one keyword argument is required. To specify no parameters, or to keep all
1989
+ # the default parameter values, pass an empty Hash as a request object (see above).
1990
+ #
1991
+ # @param name [::String]
1992
+ # Required. The compilation result's name.
1993
+ # @yield [result, operation] Access the result along with the TransportOperation object
1994
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1995
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1996
+ #
1997
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1998
+ #
1999
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2000
+ def get_compilation_result request, options = nil
2001
+ raise ::ArgumentError, "request must be provided" if request.nil?
2002
+
2003
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest
2004
+
2005
+ # Converts hash and nil to an options object
2006
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2007
+
2008
+ # Customize the options with defaults
2009
+ call_metadata = @config.rpcs.get_compilation_result.metadata.to_h
2010
+
2011
+ # Set x-goog-api-client and x-goog-user-project headers
2012
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2013
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2014
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2015
+ transports_version_send: [:rest]
2016
+
2017
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2018
+
2019
+ options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
2020
+ metadata: call_metadata,
2021
+ retry_policy: @config.rpcs.get_compilation_result.retry_policy
2022
+
2023
+ options.apply_defaults timeout: @config.timeout,
2024
+ metadata: @config.metadata,
2025
+ retry_policy: @config.retry_policy
2026
+
2027
+ @dataform_stub.get_compilation_result request, options do |result, operation|
2028
+ yield result, operation if block_given?
2029
+ return result
2030
+ end
2031
+ rescue ::Gapic::Rest::Error => e
2032
+ raise ::Google::Cloud::Error.from_error(e)
2033
+ end
2034
+
2035
+ ##
2036
+ # Creates a new CompilationResult in a given project and location.
2037
+ #
2038
+ # @overload create_compilation_result(request, options = nil)
2039
+ # Pass arguments to `create_compilation_result` via a request object, either of type
2040
+ # {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
2041
+ #
2042
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
2043
+ # A request object representing the call parameters. Required. To specify no
2044
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2045
+ # @param options [::Gapic::CallOptions, ::Hash]
2046
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2047
+ #
2048
+ # @overload create_compilation_result(parent: nil, compilation_result: nil)
2049
+ # Pass arguments to `create_compilation_result` via keyword arguments. Note that at
2050
+ # least one keyword argument is required. To specify no parameters, or to keep all
2051
+ # the default parameter values, pass an empty Hash as a request object (see above).
2052
+ #
2053
+ # @param parent [::String]
2054
+ # Required. The repository in which to create the compilation result. Must be in the
2055
+ # format `projects/*/locations/*/repositories/*`.
2056
+ # @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
2057
+ # Required. The compilation result to create.
2058
+ # @yield [result, operation] Access the result along with the TransportOperation object
2059
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2060
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2061
+ #
2062
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
2063
+ #
2064
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2065
+ def create_compilation_result request, options = nil
2066
+ raise ::ArgumentError, "request must be provided" if request.nil?
2067
+
2068
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
2069
+
2070
+ # Converts hash and nil to an options object
2071
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2072
+
2073
+ # Customize the options with defaults
2074
+ call_metadata = @config.rpcs.create_compilation_result.metadata.to_h
2075
+
2076
+ # Set x-goog-api-client and x-goog-user-project headers
2077
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2078
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2079
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2080
+ transports_version_send: [:rest]
2081
+
2082
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2083
+
2084
+ options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
2085
+ metadata: call_metadata,
2086
+ retry_policy: @config.rpcs.create_compilation_result.retry_policy
2087
+
2088
+ options.apply_defaults timeout: @config.timeout,
2089
+ metadata: @config.metadata,
2090
+ retry_policy: @config.retry_policy
2091
+
2092
+ @dataform_stub.create_compilation_result request, options do |result, operation|
2093
+ yield result, operation if block_given?
2094
+ return result
2095
+ end
2096
+ rescue ::Gapic::Rest::Error => e
2097
+ raise ::Google::Cloud::Error.from_error(e)
2098
+ end
2099
+
2100
+ ##
2101
+ # Returns CompilationResultActions in a given CompilationResult.
2102
+ #
2103
+ # @overload query_compilation_result_actions(request, options = nil)
2104
+ # Pass arguments to `query_compilation_result_actions` via a request object, either of type
2105
+ # {::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest} or an equivalent Hash.
2106
+ #
2107
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest, ::Hash]
2108
+ # A request object representing the call parameters. Required. To specify no
2109
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2110
+ # @param options [::Gapic::CallOptions, ::Hash]
2111
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2112
+ #
2113
+ # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil)
2114
+ # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at
2115
+ # least one keyword argument is required. To specify no parameters, or to keep all
2116
+ # the default parameter values, pass an empty Hash as a request object (see above).
2117
+ #
2118
+ # @param name [::String]
2119
+ # Required. The compilation result's name.
2120
+ # @param page_size [::Integer]
2121
+ # Optional. Maximum number of compilation results to return. The server may return
2122
+ # fewer items than requested. If unspecified, the server will pick an
2123
+ # appropriate default.
2124
+ # @param page_token [::String]
2125
+ # Optional. Page token received from a previous `QueryCompilationResultActions` call.
2126
+ # Provide this to retrieve the subsequent page.
2127
+ #
2128
+ # When paginating, all other parameters provided to
2129
+ # `QueryCompilationResultActions` must match the call that provided the page
2130
+ # token.
2131
+ # @param filter [::String]
2132
+ # Optional. Optional filter for the returned list. Filtering is only currently
2133
+ # supported on the `file_path` field.
2134
+ # @yield [result, operation] Access the result along with the TransportOperation object
2135
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
2136
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2137
+ #
2138
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CompilationResultAction>]
2139
+ #
2140
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2141
+ def query_compilation_result_actions request, options = nil
2142
+ raise ::ArgumentError, "request must be provided" if request.nil?
2143
+
2144
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest
2145
+
2146
+ # Converts hash and nil to an options object
2147
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2148
+
2149
+ # Customize the options with defaults
2150
+ call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
2151
+
2152
+ # Set x-goog-api-client and x-goog-user-project headers
2153
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2154
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2155
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2156
+ transports_version_send: [:rest]
2157
+
2158
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2159
+
2160
+ options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
2161
+ metadata: call_metadata,
2162
+ retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy
2163
+
2164
+ options.apply_defaults timeout: @config.timeout,
2165
+ metadata: @config.metadata,
2166
+ retry_policy: @config.retry_policy
2167
+
2168
+ @dataform_stub.query_compilation_result_actions request, options do |result, operation|
2169
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options
2170
+ yield result, operation if block_given?
2171
+ return result
2172
+ end
2173
+ rescue ::Gapic::Rest::Error => e
2174
+ raise ::Google::Cloud::Error.from_error(e)
2175
+ end
2176
+
2177
+ ##
2178
+ # Lists WorkflowInvocations in a given Repository.
2179
+ #
2180
+ # @overload list_workflow_invocations(request, options = nil)
2181
+ # Pass arguments to `list_workflow_invocations` via a request object, either of type
2182
+ # {::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest} or an equivalent Hash.
2183
+ #
2184
+ # @param request [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest, ::Hash]
2185
+ # A request object representing the call parameters. Required. To specify no
2186
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2187
+ # @param options [::Gapic::CallOptions, ::Hash]
2188
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2189
+ #
2190
+ # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil)
2191
+ # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at
2192
+ # least one keyword argument is required. To specify no parameters, or to keep all
2193
+ # the default parameter values, pass an empty Hash as a request object (see above).
2194
+ #
2195
+ # @param parent [::String]
2196
+ # Required. The parent resource of the WorkflowInvocation type. Must be in the
2197
+ # format `projects/*/locations/*/repositories/*`.
2198
+ # @param page_size [::Integer]
2199
+ # Optional. Maximum number of workflow invocations to return. The server may return
2200
+ # fewer items than requested. If unspecified, the server will pick an
2201
+ # appropriate default.
2202
+ # @param page_token [::String]
2203
+ # Optional. Page token received from a previous `ListWorkflowInvocations` call.
2204
+ # Provide this to retrieve the subsequent page.
2205
+ #
2206
+ # When paginating, all other parameters provided to `ListWorkflowInvocations`
2207
+ # must match the call that provided the page token.
2208
+ # @yield [result, operation] Access the result along with the TransportOperation object
2209
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
2210
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2211
+ #
2212
+ # @return [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
2213
+ #
2214
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2215
+ def list_workflow_invocations request, options = nil
2216
+ raise ::ArgumentError, "request must be provided" if request.nil?
2217
+
2218
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest
2219
+
2220
+ # Converts hash and nil to an options object
2221
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2222
+
2223
+ # Customize the options with defaults
2224
+ call_metadata = @config.rpcs.list_workflow_invocations.metadata.to_h
2225
+
2226
+ # Set x-goog-api-client and x-goog-user-project headers
2227
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2228
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2229
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2230
+ transports_version_send: [:rest]
2231
+
2232
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2233
+
2234
+ options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout,
2235
+ metadata: call_metadata,
2236
+ retry_policy: @config.rpcs.list_workflow_invocations.retry_policy
2237
+
2238
+ options.apply_defaults timeout: @config.timeout,
2239
+ metadata: @config.metadata,
2240
+ retry_policy: @config.retry_policy
2241
+
2242
+ @dataform_stub.list_workflow_invocations request, options do |result, operation|
2243
+ yield result, operation if block_given?
2244
+ return result
2245
+ end
2246
+ rescue ::Gapic::Rest::Error => e
2247
+ raise ::Google::Cloud::Error.from_error(e)
2248
+ end
2249
+
2250
+ ##
2251
+ # Fetches a single WorkflowInvocation.
2252
+ #
2253
+ # @overload get_workflow_invocation(request, options = nil)
2254
+ # Pass arguments to `get_workflow_invocation` via a request object, either of type
2255
+ # {::Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest} or an equivalent Hash.
2256
+ #
2257
+ # @param request [::Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest, ::Hash]
2258
+ # A request object representing the call parameters. Required. To specify no
2259
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2260
+ # @param options [::Gapic::CallOptions, ::Hash]
2261
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2262
+ #
2263
+ # @overload get_workflow_invocation(name: nil)
2264
+ # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at
2265
+ # least one keyword argument is required. To specify no parameters, or to keep all
2266
+ # the default parameter values, pass an empty Hash as a request object (see above).
2267
+ #
2268
+ # @param name [::String]
2269
+ # Required. The workflow invocation resource's name.
2270
+ # @yield [result, operation] Access the result along with the TransportOperation object
2271
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
2272
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2273
+ #
2274
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
2275
+ #
2276
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2277
+ def get_workflow_invocation request, options = nil
2278
+ raise ::ArgumentError, "request must be provided" if request.nil?
2279
+
2280
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest
2281
+
2282
+ # Converts hash and nil to an options object
2283
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2284
+
2285
+ # Customize the options with defaults
2286
+ call_metadata = @config.rpcs.get_workflow_invocation.metadata.to_h
2287
+
2288
+ # Set x-goog-api-client and x-goog-user-project headers
2289
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2290
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2291
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2292
+ transports_version_send: [:rest]
2293
+
2294
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2295
+
2296
+ options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout,
2297
+ metadata: call_metadata,
2298
+ retry_policy: @config.rpcs.get_workflow_invocation.retry_policy
2299
+
2300
+ options.apply_defaults timeout: @config.timeout,
2301
+ metadata: @config.metadata,
2302
+ retry_policy: @config.retry_policy
2303
+
2304
+ @dataform_stub.get_workflow_invocation request, options do |result, operation|
2305
+ yield result, operation if block_given?
2306
+ return result
2307
+ end
2308
+ rescue ::Gapic::Rest::Error => e
2309
+ raise ::Google::Cloud::Error.from_error(e)
2310
+ end
2311
+
2312
+ ##
2313
+ # Creates a new WorkflowInvocation in a given Repository.
2314
+ #
2315
+ # @overload create_workflow_invocation(request, options = nil)
2316
+ # Pass arguments to `create_workflow_invocation` via a request object, either of type
2317
+ # {::Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest} or an equivalent Hash.
2318
+ #
2319
+ # @param request [::Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest, ::Hash]
2320
+ # A request object representing the call parameters. Required. To specify no
2321
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2322
+ # @param options [::Gapic::CallOptions, ::Hash]
2323
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2324
+ #
2325
+ # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil)
2326
+ # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at
2327
+ # least one keyword argument is required. To specify no parameters, or to keep all
2328
+ # the default parameter values, pass an empty Hash as a request object (see above).
2329
+ #
2330
+ # @param parent [::String]
2331
+ # Required. The repository in which to create the workflow invocation. Must be in the
2332
+ # format `projects/*/locations/*/repositories/*`.
2333
+ # @param workflow_invocation [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation, ::Hash]
2334
+ # Required. The workflow invocation resource to create.
2335
+ # @yield [result, operation] Access the result along with the TransportOperation object
2336
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
2337
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2338
+ #
2339
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
2340
+ #
2341
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2342
+ def create_workflow_invocation request, options = nil
2343
+ raise ::ArgumentError, "request must be provided" if request.nil?
2344
+
2345
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest
2346
+
2347
+ # Converts hash and nil to an options object
2348
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2349
+
2350
+ # Customize the options with defaults
2351
+ call_metadata = @config.rpcs.create_workflow_invocation.metadata.to_h
2352
+
2353
+ # Set x-goog-api-client and x-goog-user-project headers
2354
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2355
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2356
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2357
+ transports_version_send: [:rest]
2358
+
2359
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2360
+
2361
+ options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout,
2362
+ metadata: call_metadata,
2363
+ retry_policy: @config.rpcs.create_workflow_invocation.retry_policy
2364
+
2365
+ options.apply_defaults timeout: @config.timeout,
2366
+ metadata: @config.metadata,
2367
+ retry_policy: @config.retry_policy
2368
+
2369
+ @dataform_stub.create_workflow_invocation request, options do |result, operation|
2370
+ yield result, operation if block_given?
2371
+ return result
2372
+ end
2373
+ rescue ::Gapic::Rest::Error => e
2374
+ raise ::Google::Cloud::Error.from_error(e)
2375
+ end
2376
+
2377
+ ##
2378
+ # Deletes a single WorkflowInvocation.
2379
+ #
2380
+ # @overload delete_workflow_invocation(request, options = nil)
2381
+ # Pass arguments to `delete_workflow_invocation` via a request object, either of type
2382
+ # {::Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest} or an equivalent Hash.
2383
+ #
2384
+ # @param request [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest, ::Hash]
2385
+ # A request object representing the call parameters. Required. To specify no
2386
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2387
+ # @param options [::Gapic::CallOptions, ::Hash]
2388
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2389
+ #
2390
+ # @overload delete_workflow_invocation(name: nil)
2391
+ # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at
2392
+ # least one keyword argument is required. To specify no parameters, or to keep all
2393
+ # the default parameter values, pass an empty Hash as a request object (see above).
2394
+ #
2395
+ # @param name [::String]
2396
+ # Required. The workflow invocation resource's name.
2397
+ # @yield [result, operation] Access the result along with the TransportOperation object
2398
+ # @yieldparam result [::Google::Protobuf::Empty]
2399
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2400
+ #
2401
+ # @return [::Google::Protobuf::Empty]
2402
+ #
2403
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2404
+ def delete_workflow_invocation request, options = nil
2405
+ raise ::ArgumentError, "request must be provided" if request.nil?
2406
+
2407
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest
2408
+
2409
+ # Converts hash and nil to an options object
2410
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2411
+
2412
+ # Customize the options with defaults
2413
+ call_metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h
2414
+
2415
+ # Set x-goog-api-client and x-goog-user-project headers
2416
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2417
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2418
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2419
+ transports_version_send: [:rest]
2420
+
2421
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2422
+
2423
+ options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout,
2424
+ metadata: call_metadata,
2425
+ retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy
2426
+
2427
+ options.apply_defaults timeout: @config.timeout,
2428
+ metadata: @config.metadata,
2429
+ retry_policy: @config.retry_policy
2430
+
2431
+ @dataform_stub.delete_workflow_invocation request, options do |result, operation|
2432
+ yield result, operation if block_given?
2433
+ return result
2434
+ end
2435
+ rescue ::Gapic::Rest::Error => e
2436
+ raise ::Google::Cloud::Error.from_error(e)
2437
+ end
2438
+
2439
+ ##
2440
+ # Requests cancellation of a running WorkflowInvocation.
2441
+ #
2442
+ # @overload cancel_workflow_invocation(request, options = nil)
2443
+ # Pass arguments to `cancel_workflow_invocation` via a request object, either of type
2444
+ # {::Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest} or an equivalent Hash.
2445
+ #
2446
+ # @param request [::Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest, ::Hash]
2447
+ # A request object representing the call parameters. Required. To specify no
2448
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2449
+ # @param options [::Gapic::CallOptions, ::Hash]
2450
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2451
+ #
2452
+ # @overload cancel_workflow_invocation(name: nil)
2453
+ # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at
2454
+ # least one keyword argument is required. To specify no parameters, or to keep all
2455
+ # the default parameter values, pass an empty Hash as a request object (see above).
2456
+ #
2457
+ # @param name [::String]
2458
+ # Required. The workflow invocation resource's name.
2459
+ # @yield [result, operation] Access the result along with the TransportOperation object
2460
+ # @yieldparam result [::Google::Protobuf::Empty]
2461
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2462
+ #
2463
+ # @return [::Google::Protobuf::Empty]
2464
+ #
2465
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2466
+ def cancel_workflow_invocation request, options = nil
2467
+ raise ::ArgumentError, "request must be provided" if request.nil?
2468
+
2469
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest
2470
+
2471
+ # Converts hash and nil to an options object
2472
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2473
+
2474
+ # Customize the options with defaults
2475
+ call_metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h
2476
+
2477
+ # Set x-goog-api-client and x-goog-user-project headers
2478
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2479
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2480
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2481
+ transports_version_send: [:rest]
2482
+
2483
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2484
+
2485
+ options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout,
2486
+ metadata: call_metadata,
2487
+ retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy
2488
+
2489
+ options.apply_defaults timeout: @config.timeout,
2490
+ metadata: @config.metadata,
2491
+ retry_policy: @config.retry_policy
2492
+
2493
+ @dataform_stub.cancel_workflow_invocation request, options do |result, operation|
2494
+ yield result, operation if block_given?
2495
+ return result
2496
+ end
2497
+ rescue ::Gapic::Rest::Error => e
2498
+ raise ::Google::Cloud::Error.from_error(e)
2499
+ end
2500
+
2501
+ ##
2502
+ # Returns WorkflowInvocationActions in a given WorkflowInvocation.
2503
+ #
2504
+ # @overload query_workflow_invocation_actions(request, options = nil)
2505
+ # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type
2506
+ # {::Google::Cloud::Dataform::V1beta1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash.
2507
+ #
2508
+ # @param request [::Google::Cloud::Dataform::V1beta1::QueryWorkflowInvocationActionsRequest, ::Hash]
2509
+ # A request object representing the call parameters. Required. To specify no
2510
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2511
+ # @param options [::Gapic::CallOptions, ::Hash]
2512
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2513
+ #
2514
+ # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil)
2515
+ # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at
2516
+ # least one keyword argument is required. To specify no parameters, or to keep all
2517
+ # the default parameter values, pass an empty Hash as a request object (see above).
2518
+ #
2519
+ # @param name [::String]
2520
+ # Required. The workflow invocation's name.
2521
+ # @param page_size [::Integer]
2522
+ # Optional. Maximum number of workflow invocations to return. The server may return
2523
+ # fewer items than requested. If unspecified, the server will pick an
2524
+ # appropriate default.
2525
+ # @param page_token [::String]
2526
+ # Optional. Page token received from a previous `QueryWorkflowInvocationActions` call.
2527
+ # Provide this to retrieve the subsequent page.
2528
+ #
2529
+ # When paginating, all other parameters provided to
2530
+ # `QueryWorkflowInvocationActions` must match the call that provided the page
2531
+ # token.
2532
+ # @yield [result, operation] Access the result along with the TransportOperation object
2533
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction>]
2534
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2535
+ #
2536
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction>]
2537
+ #
2538
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2539
+ def query_workflow_invocation_actions request, options = nil
2540
+ raise ::ArgumentError, "request must be provided" if request.nil?
2541
+
2542
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryWorkflowInvocationActionsRequest
2543
+
2544
+ # Converts hash and nil to an options object
2545
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2546
+
2547
+ # Customize the options with defaults
2548
+ call_metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h
2549
+
2550
+ # Set x-goog-api-client and x-goog-user-project headers
2551
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2552
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2553
+ gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
2554
+ transports_version_send: [:rest]
2555
+
2556
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2557
+
2558
+ options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout,
2559
+ metadata: call_metadata,
2560
+ retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy
2561
+
2562
+ options.apply_defaults timeout: @config.timeout,
2563
+ metadata: @config.metadata,
2564
+ retry_policy: @config.retry_policy
2565
+
2566
+ @dataform_stub.query_workflow_invocation_actions request, options do |result, operation|
2567
+ result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, "workflow_invocation_actions", request, result, options
2568
+ yield result, operation if block_given?
2569
+ return result
2570
+ end
2571
+ rescue ::Gapic::Rest::Error => e
2572
+ raise ::Google::Cloud::Error.from_error(e)
2573
+ end
2574
+
2575
+ ##
2576
+ # Configuration class for the Dataform REST API.
2577
+ #
2578
+ # This class represents the configuration for Dataform REST,
2579
+ # providing control over timeouts, retry behavior, logging, transport
2580
+ # parameters, and other low-level controls. Certain parameters can also be
2581
+ # applied individually to specific RPCs. See
2582
+ # {::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client::Configuration::Rpcs}
2583
+ # for a list of RPCs that can be configured independently.
2584
+ #
2585
+ # Configuration can be applied globally to all clients, or to a single client
2586
+ # on construction.
2587
+ #
2588
+ # @example
2589
+ #
2590
+ # # Modify the global config, setting the timeout for
2591
+ # # list_repositories to 20 seconds,
2592
+ # # and all remaining timeouts to 10 seconds.
2593
+ # ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.configure do |config|
2594
+ # config.timeout = 10.0
2595
+ # config.rpcs.list_repositories.timeout = 20.0
2596
+ # end
2597
+ #
2598
+ # # Apply the above configuration only to a new client.
2599
+ # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new do |config|
2600
+ # config.timeout = 10.0
2601
+ # config.rpcs.list_repositories.timeout = 20.0
2602
+ # end
2603
+ #
2604
+ # @!attribute [rw] endpoint
2605
+ # The hostname or hostname:port of the service endpoint.
2606
+ # Defaults to `"dataform.googleapis.com"`.
2607
+ # @return [::String]
2608
+ # @!attribute [rw] credentials
2609
+ # Credentials to send with calls. You may provide any of the following types:
2610
+ # * (`String`) The path to a service account key file in JSON format
2611
+ # * (`Hash`) A service account key as a Hash
2612
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
2613
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2614
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2615
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2616
+ # * (`nil`) indicating no credentials
2617
+ # @return [::Object]
2618
+ # @!attribute [rw] scope
2619
+ # The OAuth scopes
2620
+ # @return [::Array<::String>]
2621
+ # @!attribute [rw] lib_name
2622
+ # The library name as recorded in instrumentation and logging
2623
+ # @return [::String]
2624
+ # @!attribute [rw] lib_version
2625
+ # The library version as recorded in instrumentation and logging
2626
+ # @return [::String]
2627
+ # @!attribute [rw] timeout
2628
+ # The call timeout in seconds.
2629
+ # @return [::Numeric]
2630
+ # @!attribute [rw] metadata
2631
+ # Additional headers to be sent with the call.
2632
+ # @return [::Hash{::Symbol=>::String}]
2633
+ # @!attribute [rw] retry_policy
2634
+ # The retry policy. The value is a hash with the following keys:
2635
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2636
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2637
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2638
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2639
+ # trigger a retry.
2640
+ # @return [::Hash]
2641
+ # @!attribute [rw] quota_project
2642
+ # A separate project against which to charge quota.
2643
+ # @return [::String]
2644
+ #
2645
+ class Configuration
2646
+ extend ::Gapic::Config
2647
+
2648
+ DEFAULT_ENDPOINT = "dataform.googleapis.com"
2649
+
2650
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2651
+ config_attr :credentials, nil do |value|
2652
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2653
+ allowed.any? { |klass| klass === value }
2654
+ end
2655
+ config_attr :scope, nil, ::String, ::Array, nil
2656
+ config_attr :lib_name, nil, ::String, nil
2657
+ config_attr :lib_version, nil, ::String, nil
2658
+ config_attr :timeout, nil, ::Numeric, nil
2659
+ config_attr :metadata, nil, ::Hash, nil
2660
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2661
+ config_attr :quota_project, nil, ::String, nil
2662
+
2663
+ # @private
2664
+ # Overrides for http bindings for the RPCs of this service
2665
+ # are only used when this service is used as mixin, and only
2666
+ # by the host service.
2667
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
2668
+ config_attr :bindings_override, {}, ::Hash, nil
2669
+
2670
+ # @private
2671
+ def initialize parent_config = nil
2672
+ @parent_config = parent_config unless parent_config.nil?
2673
+
2674
+ yield self if block_given?
2675
+ end
2676
+
2677
+ ##
2678
+ # Configurations for individual RPCs
2679
+ # @return [Rpcs]
2680
+ #
2681
+ def rpcs
2682
+ @rpcs ||= begin
2683
+ parent_rpcs = nil
2684
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
2685
+ Rpcs.new parent_rpcs
2686
+ end
2687
+ end
2688
+
2689
+ ##
2690
+ # Configuration RPC class for the Dataform API.
2691
+ #
2692
+ # Includes fields providing the configuration for each RPC in this service.
2693
+ # Each configuration object is of type `Gapic::Config::Method` and includes
2694
+ # the following configuration fields:
2695
+ #
2696
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
2697
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
2698
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
2699
+ # include the following keys:
2700
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2701
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2702
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2703
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2704
+ # trigger a retry.
2705
+ #
2706
+ class Rpcs
2707
+ ##
2708
+ # RPC-specific configuration for `list_repositories`
2709
+ # @return [::Gapic::Config::Method]
2710
+ #
2711
+ attr_reader :list_repositories
2712
+ ##
2713
+ # RPC-specific configuration for `get_repository`
2714
+ # @return [::Gapic::Config::Method]
2715
+ #
2716
+ attr_reader :get_repository
2717
+ ##
2718
+ # RPC-specific configuration for `create_repository`
2719
+ # @return [::Gapic::Config::Method]
2720
+ #
2721
+ attr_reader :create_repository
2722
+ ##
2723
+ # RPC-specific configuration for `update_repository`
2724
+ # @return [::Gapic::Config::Method]
2725
+ #
2726
+ attr_reader :update_repository
2727
+ ##
2728
+ # RPC-specific configuration for `delete_repository`
2729
+ # @return [::Gapic::Config::Method]
2730
+ #
2731
+ attr_reader :delete_repository
2732
+ ##
2733
+ # RPC-specific configuration for `fetch_remote_branches`
2734
+ # @return [::Gapic::Config::Method]
2735
+ #
2736
+ attr_reader :fetch_remote_branches
2737
+ ##
2738
+ # RPC-specific configuration for `list_workspaces`
2739
+ # @return [::Gapic::Config::Method]
2740
+ #
2741
+ attr_reader :list_workspaces
2742
+ ##
2743
+ # RPC-specific configuration for `get_workspace`
2744
+ # @return [::Gapic::Config::Method]
2745
+ #
2746
+ attr_reader :get_workspace
2747
+ ##
2748
+ # RPC-specific configuration for `create_workspace`
2749
+ # @return [::Gapic::Config::Method]
2750
+ #
2751
+ attr_reader :create_workspace
2752
+ ##
2753
+ # RPC-specific configuration for `delete_workspace`
2754
+ # @return [::Gapic::Config::Method]
2755
+ #
2756
+ attr_reader :delete_workspace
2757
+ ##
2758
+ # RPC-specific configuration for `install_npm_packages`
2759
+ # @return [::Gapic::Config::Method]
2760
+ #
2761
+ attr_reader :install_npm_packages
2762
+ ##
2763
+ # RPC-specific configuration for `pull_git_commits`
2764
+ # @return [::Gapic::Config::Method]
2765
+ #
2766
+ attr_reader :pull_git_commits
2767
+ ##
2768
+ # RPC-specific configuration for `push_git_commits`
2769
+ # @return [::Gapic::Config::Method]
2770
+ #
2771
+ attr_reader :push_git_commits
2772
+ ##
2773
+ # RPC-specific configuration for `fetch_file_git_statuses`
2774
+ # @return [::Gapic::Config::Method]
2775
+ #
2776
+ attr_reader :fetch_file_git_statuses
2777
+ ##
2778
+ # RPC-specific configuration for `fetch_git_ahead_behind`
2779
+ # @return [::Gapic::Config::Method]
2780
+ #
2781
+ attr_reader :fetch_git_ahead_behind
2782
+ ##
2783
+ # RPC-specific configuration for `commit_workspace_changes`
2784
+ # @return [::Gapic::Config::Method]
2785
+ #
2786
+ attr_reader :commit_workspace_changes
2787
+ ##
2788
+ # RPC-specific configuration for `reset_workspace_changes`
2789
+ # @return [::Gapic::Config::Method]
2790
+ #
2791
+ attr_reader :reset_workspace_changes
2792
+ ##
2793
+ # RPC-specific configuration for `fetch_file_diff`
2794
+ # @return [::Gapic::Config::Method]
2795
+ #
2796
+ attr_reader :fetch_file_diff
2797
+ ##
2798
+ # RPC-specific configuration for `query_directory_contents`
2799
+ # @return [::Gapic::Config::Method]
2800
+ #
2801
+ attr_reader :query_directory_contents
2802
+ ##
2803
+ # RPC-specific configuration for `make_directory`
2804
+ # @return [::Gapic::Config::Method]
2805
+ #
2806
+ attr_reader :make_directory
2807
+ ##
2808
+ # RPC-specific configuration for `remove_directory`
2809
+ # @return [::Gapic::Config::Method]
2810
+ #
2811
+ attr_reader :remove_directory
2812
+ ##
2813
+ # RPC-specific configuration for `move_directory`
2814
+ # @return [::Gapic::Config::Method]
2815
+ #
2816
+ attr_reader :move_directory
2817
+ ##
2818
+ # RPC-specific configuration for `read_file`
2819
+ # @return [::Gapic::Config::Method]
2820
+ #
2821
+ attr_reader :read_file
2822
+ ##
2823
+ # RPC-specific configuration for `remove_file`
2824
+ # @return [::Gapic::Config::Method]
2825
+ #
2826
+ attr_reader :remove_file
2827
+ ##
2828
+ # RPC-specific configuration for `move_file`
2829
+ # @return [::Gapic::Config::Method]
2830
+ #
2831
+ attr_reader :move_file
2832
+ ##
2833
+ # RPC-specific configuration for `write_file`
2834
+ # @return [::Gapic::Config::Method]
2835
+ #
2836
+ attr_reader :write_file
2837
+ ##
2838
+ # RPC-specific configuration for `list_compilation_results`
2839
+ # @return [::Gapic::Config::Method]
2840
+ #
2841
+ attr_reader :list_compilation_results
2842
+ ##
2843
+ # RPC-specific configuration for `get_compilation_result`
2844
+ # @return [::Gapic::Config::Method]
2845
+ #
2846
+ attr_reader :get_compilation_result
2847
+ ##
2848
+ # RPC-specific configuration for `create_compilation_result`
2849
+ # @return [::Gapic::Config::Method]
2850
+ #
2851
+ attr_reader :create_compilation_result
2852
+ ##
2853
+ # RPC-specific configuration for `query_compilation_result_actions`
2854
+ # @return [::Gapic::Config::Method]
2855
+ #
2856
+ attr_reader :query_compilation_result_actions
2857
+ ##
2858
+ # RPC-specific configuration for `list_workflow_invocations`
2859
+ # @return [::Gapic::Config::Method]
2860
+ #
2861
+ attr_reader :list_workflow_invocations
2862
+ ##
2863
+ # RPC-specific configuration for `get_workflow_invocation`
2864
+ # @return [::Gapic::Config::Method]
2865
+ #
2866
+ attr_reader :get_workflow_invocation
2867
+ ##
2868
+ # RPC-specific configuration for `create_workflow_invocation`
2869
+ # @return [::Gapic::Config::Method]
2870
+ #
2871
+ attr_reader :create_workflow_invocation
2872
+ ##
2873
+ # RPC-specific configuration for `delete_workflow_invocation`
2874
+ # @return [::Gapic::Config::Method]
2875
+ #
2876
+ attr_reader :delete_workflow_invocation
2877
+ ##
2878
+ # RPC-specific configuration for `cancel_workflow_invocation`
2879
+ # @return [::Gapic::Config::Method]
2880
+ #
2881
+ attr_reader :cancel_workflow_invocation
2882
+ ##
2883
+ # RPC-specific configuration for `query_workflow_invocation_actions`
2884
+ # @return [::Gapic::Config::Method]
2885
+ #
2886
+ attr_reader :query_workflow_invocation_actions
2887
+
2888
+ # @private
2889
+ def initialize parent_rpcs = nil
2890
+ list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
2891
+ @list_repositories = ::Gapic::Config::Method.new list_repositories_config
2892
+ get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
2893
+ @get_repository = ::Gapic::Config::Method.new get_repository_config
2894
+ create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
2895
+ @create_repository = ::Gapic::Config::Method.new create_repository_config
2896
+ update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
2897
+ @update_repository = ::Gapic::Config::Method.new update_repository_config
2898
+ delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
2899
+ @delete_repository = ::Gapic::Config::Method.new delete_repository_config
2900
+ fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches
2901
+ @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config
2902
+ list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces
2903
+ @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config
2904
+ get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace
2905
+ @get_workspace = ::Gapic::Config::Method.new get_workspace_config
2906
+ create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace
2907
+ @create_workspace = ::Gapic::Config::Method.new create_workspace_config
2908
+ delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace
2909
+ @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config
2910
+ install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages
2911
+ @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config
2912
+ pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits
2913
+ @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config
2914
+ push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits
2915
+ @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config
2916
+ fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses
2917
+ @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config
2918
+ fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind
2919
+ @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config
2920
+ commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes
2921
+ @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config
2922
+ reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes
2923
+ @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config
2924
+ fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff
2925
+ @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config
2926
+ query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents
2927
+ @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config
2928
+ make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory
2929
+ @make_directory = ::Gapic::Config::Method.new make_directory_config
2930
+ remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory
2931
+ @remove_directory = ::Gapic::Config::Method.new remove_directory_config
2932
+ move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory
2933
+ @move_directory = ::Gapic::Config::Method.new move_directory_config
2934
+ read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file
2935
+ @read_file = ::Gapic::Config::Method.new read_file_config
2936
+ remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file
2937
+ @remove_file = ::Gapic::Config::Method.new remove_file_config
2938
+ move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file
2939
+ @move_file = ::Gapic::Config::Method.new move_file_config
2940
+ write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file
2941
+ @write_file = ::Gapic::Config::Method.new write_file_config
2942
+ list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results
2943
+ @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config
2944
+ get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result
2945
+ @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config
2946
+ create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result
2947
+ @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config
2948
+ query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions
2949
+ @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config
2950
+ list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations
2951
+ @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config
2952
+ get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation
2953
+ @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config
2954
+ create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation
2955
+ @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config
2956
+ delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation
2957
+ @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config
2958
+ cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation
2959
+ @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config
2960
+ query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions
2961
+ @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config
2962
+
2963
+ yield self if block_given?
2964
+ end
2965
+ end
2966
+ end
2967
+ end
2968
+ end
2969
+ end
2970
+ end
2971
+ end
2972
+ end
2973
+ end