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