google-cloud-dataform-v1beta1 0.14.1 → 0.16.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/AUTHENTICATION.md +4 -4
- data/README.md +5 -5
- data/lib/google/cloud/dataform/v1beta1/bindings_override.rb +0 -57
- data/lib/google/cloud/dataform/v1beta1/dataform/client.rb +2189 -49
- data/lib/google/cloud/dataform/v1beta1/dataform/operations.rb +843 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +59 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +2065 -66
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/operations.rb +927 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +1782 -482
- data/lib/google/cloud/dataform/v1beta1/dataform/rest.rb +1 -0
- data/lib/google/cloud/dataform/v1beta1/dataform.rb +1 -0
- data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +48 -28
- data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +56 -0
- data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
- data/lib/google/longrunning/bindings_override.rb +71 -0
- data/lib/google/longrunning/operations/client.rb +954 -0
- data/lib/google/longrunning/operations/credentials.rb +40 -0
- data/lib/google/longrunning/operations/operations.rb +839 -0
- data/lib/google/longrunning/operations/rest/client.rb +777 -0
- data/lib/google/longrunning/operations/rest/operations.rb +923 -0
- data/lib/google/longrunning/operations/rest/service_stub.rb +322 -0
- data/lib/google/longrunning/operations/rest.rb +57 -0
- data/lib/google/longrunning/operations.rb +59 -0
- data/lib/google/longrunning/rest.rb +34 -0
- data/lib/google/longrunning.rb +41 -0
- data/lib/google-cloud-dataform-v1beta1.rb +1 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/dataform/v1beta1/dataform.rb +870 -9
- data/proto_docs/google/longrunning/operations.rb +191 -0
- metadata +32 -4
|
@@ -152,6 +152,13 @@ module Google
|
|
|
152
152
|
@quota_project_id = @config.quota_project
|
|
153
153
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
154
154
|
|
|
155
|
+
@operations_client = Operations.new do |config|
|
|
156
|
+
config.credentials = credentials
|
|
157
|
+
config.quota_project = @quota_project_id
|
|
158
|
+
config.endpoint = @config.endpoint
|
|
159
|
+
config.universe_domain = @config.universe_domain
|
|
160
|
+
end
|
|
161
|
+
|
|
155
162
|
@dataform_stub = ::Gapic::ServiceStub.new(
|
|
156
163
|
::Google::Cloud::Dataform::V1beta1::Dataform::Stub,
|
|
157
164
|
credentials: credentials,
|
|
@@ -164,57 +171,1550 @@ module Google
|
|
|
164
171
|
logger: @config.logger
|
|
165
172
|
)
|
|
166
173
|
|
|
167
|
-
@dataform_stub.stub_logger&.info do |entry|
|
|
168
|
-
entry.set_system_name
|
|
169
|
-
entry.set_service
|
|
170
|
-
entry.message = "Created client for #{entry.service}"
|
|
171
|
-
entry.set_credentials_fields credentials
|
|
172
|
-
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
173
|
-
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
174
|
-
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
175
|
-
end
|
|
174
|
+
@dataform_stub.stub_logger&.info do |entry|
|
|
175
|
+
entry.set_system_name
|
|
176
|
+
entry.set_service
|
|
177
|
+
entry.message = "Created client for #{entry.service}"
|
|
178
|
+
entry.set_credentials_fields credentials
|
|
179
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
180
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
181
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
|
185
|
+
config.credentials = credentials
|
|
186
|
+
config.quota_project = @quota_project_id
|
|
187
|
+
config.endpoint = @dataform_stub.endpoint
|
|
188
|
+
config.universe_domain = @dataform_stub.universe_domain
|
|
189
|
+
config.logger = @dataform_stub.logger if config.respond_to? :logger=
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
|
193
|
+
config.credentials = credentials
|
|
194
|
+
config.quota_project = @quota_project_id
|
|
195
|
+
config.endpoint = @dataform_stub.endpoint
|
|
196
|
+
config.universe_domain = @dataform_stub.universe_domain
|
|
197
|
+
config.logger = @dataform_stub.logger if config.respond_to? :logger=
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
##
|
|
202
|
+
# Get the associated client for long-running operations.
|
|
203
|
+
#
|
|
204
|
+
# @return [::Google::Cloud::Dataform::V1beta1::Dataform::Operations]
|
|
205
|
+
#
|
|
206
|
+
attr_reader :operations_client
|
|
207
|
+
|
|
208
|
+
##
|
|
209
|
+
# Get the associated client for mix-in of the Locations.
|
|
210
|
+
#
|
|
211
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
|
212
|
+
#
|
|
213
|
+
attr_reader :location_client
|
|
214
|
+
|
|
215
|
+
##
|
|
216
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
|
217
|
+
#
|
|
218
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
|
219
|
+
#
|
|
220
|
+
attr_reader :iam_policy_client
|
|
221
|
+
|
|
222
|
+
##
|
|
223
|
+
# The logger used for request/response debug logging.
|
|
224
|
+
#
|
|
225
|
+
# @return [Logger]
|
|
226
|
+
#
|
|
227
|
+
def logger
|
|
228
|
+
@dataform_stub.logger
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Service calls
|
|
232
|
+
|
|
233
|
+
##
|
|
234
|
+
# Fetches a single TeamFolder.
|
|
235
|
+
#
|
|
236
|
+
# @overload get_team_folder(request, options = nil)
|
|
237
|
+
# Pass arguments to `get_team_folder` via a request object, either of type
|
|
238
|
+
# {::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest} or an equivalent Hash.
|
|
239
|
+
#
|
|
240
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest, ::Hash]
|
|
241
|
+
# A request object representing the call parameters. Required. To specify no
|
|
242
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
243
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
244
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
245
|
+
#
|
|
246
|
+
# @overload get_team_folder(name: nil)
|
|
247
|
+
# Pass arguments to `get_team_folder` via keyword arguments. Note that at
|
|
248
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
249
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
250
|
+
#
|
|
251
|
+
# @param name [::String]
|
|
252
|
+
# Required. The TeamFolder's name.
|
|
253
|
+
#
|
|
254
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
255
|
+
# @yieldparam response [::Google::Cloud::Dataform::V1beta1::TeamFolder]
|
|
256
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
257
|
+
#
|
|
258
|
+
# @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
|
|
259
|
+
#
|
|
260
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
261
|
+
#
|
|
262
|
+
# @example Basic example
|
|
263
|
+
# require "google/cloud/dataform/v1beta1"
|
|
264
|
+
#
|
|
265
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
266
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
267
|
+
#
|
|
268
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
269
|
+
# request = Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest.new
|
|
270
|
+
#
|
|
271
|
+
# # Call the get_team_folder method.
|
|
272
|
+
# result = client.get_team_folder request
|
|
273
|
+
#
|
|
274
|
+
# # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
|
|
275
|
+
# p result
|
|
276
|
+
#
|
|
277
|
+
def get_team_folder request, options = nil
|
|
278
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
279
|
+
|
|
280
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetTeamFolderRequest
|
|
281
|
+
|
|
282
|
+
# Converts hash and nil to an options object
|
|
283
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
284
|
+
|
|
285
|
+
# Customize the options with defaults
|
|
286
|
+
metadata = @config.rpcs.get_team_folder.metadata.to_h
|
|
287
|
+
|
|
288
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
289
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
290
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
291
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
292
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
293
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
294
|
+
|
|
295
|
+
header_params = {}
|
|
296
|
+
if request.name
|
|
297
|
+
header_params["name"] = request.name
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
301
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
302
|
+
|
|
303
|
+
options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout,
|
|
304
|
+
metadata: metadata,
|
|
305
|
+
retry_policy: @config.rpcs.get_team_folder.retry_policy
|
|
306
|
+
|
|
307
|
+
options.apply_defaults timeout: @config.timeout,
|
|
308
|
+
metadata: @config.metadata,
|
|
309
|
+
retry_policy: @config.retry_policy
|
|
310
|
+
|
|
311
|
+
@dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation|
|
|
312
|
+
yield response, operation if block_given?
|
|
313
|
+
end
|
|
314
|
+
rescue ::GRPC::BadStatus => e
|
|
315
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
##
|
|
319
|
+
# Creates a new TeamFolder in a given project and location.
|
|
320
|
+
#
|
|
321
|
+
# @overload create_team_folder(request, options = nil)
|
|
322
|
+
# Pass arguments to `create_team_folder` via a request object, either of type
|
|
323
|
+
# {::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest} or an equivalent Hash.
|
|
324
|
+
#
|
|
325
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest, ::Hash]
|
|
326
|
+
# A request object representing the call parameters. Required. To specify no
|
|
327
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
328
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
329
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
330
|
+
#
|
|
331
|
+
# @overload create_team_folder(parent: nil, team_folder: nil, team_folder_id: nil)
|
|
332
|
+
# Pass arguments to `create_team_folder` via keyword arguments. Note that at
|
|
333
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
334
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
335
|
+
#
|
|
336
|
+
# @param parent [::String]
|
|
337
|
+
# Required. The location in which to create the TeamFolder. Must be in the
|
|
338
|
+
# format `projects/*/locations/*`.
|
|
339
|
+
# @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
|
|
340
|
+
# Required. The TeamFolder to create.
|
|
341
|
+
# @param team_folder_id [::String]
|
|
342
|
+
# Deprecated: This field is not used. The resource name is generated
|
|
343
|
+
# automatically.
|
|
344
|
+
# The ID to use for the TeamFolder, which will become the final component of
|
|
345
|
+
# the TeamFolder's resource name.
|
|
346
|
+
#
|
|
347
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
348
|
+
# @yieldparam response [::Google::Cloud::Dataform::V1beta1::TeamFolder]
|
|
349
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
350
|
+
#
|
|
351
|
+
# @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
|
|
352
|
+
#
|
|
353
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
354
|
+
#
|
|
355
|
+
# @example Basic example
|
|
356
|
+
# require "google/cloud/dataform/v1beta1"
|
|
357
|
+
#
|
|
358
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
359
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
360
|
+
#
|
|
361
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
362
|
+
# request = Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest.new
|
|
363
|
+
#
|
|
364
|
+
# # Call the create_team_folder method.
|
|
365
|
+
# result = client.create_team_folder request
|
|
366
|
+
#
|
|
367
|
+
# # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
|
|
368
|
+
# p result
|
|
369
|
+
#
|
|
370
|
+
def create_team_folder request, options = nil
|
|
371
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
372
|
+
|
|
373
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateTeamFolderRequest
|
|
374
|
+
|
|
375
|
+
# Converts hash and nil to an options object
|
|
376
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
377
|
+
|
|
378
|
+
# Customize the options with defaults
|
|
379
|
+
metadata = @config.rpcs.create_team_folder.metadata.to_h
|
|
380
|
+
|
|
381
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
382
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
383
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
384
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
385
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
386
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
387
|
+
|
|
388
|
+
header_params = {}
|
|
389
|
+
if request.parent
|
|
390
|
+
header_params["parent"] = request.parent
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
394
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
395
|
+
|
|
396
|
+
options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout,
|
|
397
|
+
metadata: metadata,
|
|
398
|
+
retry_policy: @config.rpcs.create_team_folder.retry_policy
|
|
399
|
+
|
|
400
|
+
options.apply_defaults timeout: @config.timeout,
|
|
401
|
+
metadata: @config.metadata,
|
|
402
|
+
retry_policy: @config.retry_policy
|
|
403
|
+
|
|
404
|
+
@dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation|
|
|
405
|
+
yield response, operation if block_given?
|
|
406
|
+
end
|
|
407
|
+
rescue ::GRPC::BadStatus => e
|
|
408
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
##
|
|
412
|
+
# Updates a single TeamFolder.
|
|
413
|
+
#
|
|
414
|
+
# @overload update_team_folder(request, options = nil)
|
|
415
|
+
# Pass arguments to `update_team_folder` via a request object, either of type
|
|
416
|
+
# {::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest} or an equivalent Hash.
|
|
417
|
+
#
|
|
418
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest, ::Hash]
|
|
419
|
+
# A request object representing the call parameters. Required. To specify no
|
|
420
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
421
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
422
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
423
|
+
#
|
|
424
|
+
# @overload update_team_folder(update_mask: nil, team_folder: nil)
|
|
425
|
+
# Pass arguments to `update_team_folder` via keyword arguments. Note that at
|
|
426
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
427
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
428
|
+
#
|
|
429
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
430
|
+
# Optional. Specifies the fields to be updated in the Folder. If left unset,
|
|
431
|
+
# all fields will be updated.
|
|
432
|
+
# @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
|
|
433
|
+
# Required. The updated TeamFolder.
|
|
434
|
+
#
|
|
435
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
436
|
+
# @yieldparam response [::Google::Cloud::Dataform::V1beta1::TeamFolder]
|
|
437
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
438
|
+
#
|
|
439
|
+
# @return [::Google::Cloud::Dataform::V1beta1::TeamFolder]
|
|
440
|
+
#
|
|
441
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
442
|
+
#
|
|
443
|
+
# @example Basic example
|
|
444
|
+
# require "google/cloud/dataform/v1beta1"
|
|
445
|
+
#
|
|
446
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
447
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
448
|
+
#
|
|
449
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
450
|
+
# request = Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest.new
|
|
451
|
+
#
|
|
452
|
+
# # Call the update_team_folder method.
|
|
453
|
+
# result = client.update_team_folder request
|
|
454
|
+
#
|
|
455
|
+
# # The returned object is of type Google::Cloud::Dataform::V1beta1::TeamFolder.
|
|
456
|
+
# p result
|
|
457
|
+
#
|
|
458
|
+
def update_team_folder request, options = nil
|
|
459
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
460
|
+
|
|
461
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateTeamFolderRequest
|
|
462
|
+
|
|
463
|
+
# Converts hash and nil to an options object
|
|
464
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
465
|
+
|
|
466
|
+
# Customize the options with defaults
|
|
467
|
+
metadata = @config.rpcs.update_team_folder.metadata.to_h
|
|
468
|
+
|
|
469
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
470
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
471
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
472
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
473
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
474
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
475
|
+
|
|
476
|
+
header_params = {}
|
|
477
|
+
if request.team_folder&.name
|
|
478
|
+
header_params["team_folder.name"] = request.team_folder.name
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
482
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
483
|
+
|
|
484
|
+
options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout,
|
|
485
|
+
metadata: metadata,
|
|
486
|
+
retry_policy: @config.rpcs.update_team_folder.retry_policy
|
|
487
|
+
|
|
488
|
+
options.apply_defaults timeout: @config.timeout,
|
|
489
|
+
metadata: @config.metadata,
|
|
490
|
+
retry_policy: @config.retry_policy
|
|
491
|
+
|
|
492
|
+
@dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation|
|
|
493
|
+
yield response, operation if block_given?
|
|
494
|
+
end
|
|
495
|
+
rescue ::GRPC::BadStatus => e
|
|
496
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
##
|
|
500
|
+
# Deletes a single TeamFolder.
|
|
501
|
+
#
|
|
502
|
+
# @overload delete_team_folder(request, options = nil)
|
|
503
|
+
# Pass arguments to `delete_team_folder` via a request object, either of type
|
|
504
|
+
# {::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest} or an equivalent Hash.
|
|
505
|
+
#
|
|
506
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest, ::Hash]
|
|
507
|
+
# A request object representing the call parameters. Required. To specify no
|
|
508
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
509
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
510
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
511
|
+
#
|
|
512
|
+
# @overload delete_team_folder(name: nil)
|
|
513
|
+
# Pass arguments to `delete_team_folder` via keyword arguments. Note that at
|
|
514
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
515
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
516
|
+
#
|
|
517
|
+
# @param name [::String]
|
|
518
|
+
# Required. The TeamFolder's name.
|
|
519
|
+
#
|
|
520
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
521
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
|
522
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
523
|
+
#
|
|
524
|
+
# @return [::Google::Protobuf::Empty]
|
|
525
|
+
#
|
|
526
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
527
|
+
#
|
|
528
|
+
# @example Basic example
|
|
529
|
+
# require "google/cloud/dataform/v1beta1"
|
|
530
|
+
#
|
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
532
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
533
|
+
#
|
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
535
|
+
# request = Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest.new
|
|
536
|
+
#
|
|
537
|
+
# # Call the delete_team_folder method.
|
|
538
|
+
# result = client.delete_team_folder request
|
|
539
|
+
#
|
|
540
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
541
|
+
# p result
|
|
542
|
+
#
|
|
543
|
+
def delete_team_folder request, options = nil
|
|
544
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
545
|
+
|
|
546
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderRequest
|
|
547
|
+
|
|
548
|
+
# Converts hash and nil to an options object
|
|
549
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
550
|
+
|
|
551
|
+
# Customize the options with defaults
|
|
552
|
+
metadata = @config.rpcs.delete_team_folder.metadata.to_h
|
|
553
|
+
|
|
554
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
555
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
556
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
557
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
558
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
559
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
560
|
+
|
|
561
|
+
header_params = {}
|
|
562
|
+
if request.name
|
|
563
|
+
header_params["name"] = request.name
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
567
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
568
|
+
|
|
569
|
+
options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout,
|
|
570
|
+
metadata: metadata,
|
|
571
|
+
retry_policy: @config.rpcs.delete_team_folder.retry_policy
|
|
572
|
+
|
|
573
|
+
options.apply_defaults timeout: @config.timeout,
|
|
574
|
+
metadata: @config.metadata,
|
|
575
|
+
retry_policy: @config.retry_policy
|
|
576
|
+
|
|
577
|
+
@dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation|
|
|
578
|
+
yield response, operation if block_given?
|
|
579
|
+
end
|
|
580
|
+
rescue ::GRPC::BadStatus => e
|
|
581
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
##
|
|
585
|
+
# Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
|
|
586
|
+
# ReleaseConfigs, and WorkflowConfigs).
|
|
587
|
+
#
|
|
588
|
+
# @overload delete_team_folder_tree(request, options = nil)
|
|
589
|
+
# Pass arguments to `delete_team_folder_tree` via a request object, either of type
|
|
590
|
+
# {::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest} or an equivalent Hash.
|
|
591
|
+
#
|
|
592
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest, ::Hash]
|
|
593
|
+
# A request object representing the call parameters. Required. To specify no
|
|
594
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
595
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
596
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
597
|
+
#
|
|
598
|
+
# @overload delete_team_folder_tree(name: nil, force: nil)
|
|
599
|
+
# Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at
|
|
600
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
601
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
602
|
+
#
|
|
603
|
+
# @param name [::String]
|
|
604
|
+
# Required. The TeamFolder's name.
|
|
605
|
+
# Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder}
|
|
606
|
+
# @param force [::Boolean]
|
|
607
|
+
# Optional. If `false` (default): The operation will fail if any
|
|
608
|
+
# Repository within the folder hierarchy has associated Release Configs or
|
|
609
|
+
# Workflow Configs.
|
|
610
|
+
#
|
|
611
|
+
# If `true`: The operation will attempt to delete everything, including any
|
|
612
|
+
# Release Configs and Workflow Configs linked to Repositories within the
|
|
613
|
+
# folder hierarchy. This permanently removes schedules and resources.
|
|
614
|
+
#
|
|
615
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
616
|
+
# @yieldparam response [::Gapic::Operation]
|
|
617
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
618
|
+
#
|
|
619
|
+
# @return [::Gapic::Operation]
|
|
620
|
+
#
|
|
621
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
622
|
+
#
|
|
623
|
+
# @example Basic example
|
|
624
|
+
# require "google/cloud/dataform/v1beta1"
|
|
625
|
+
#
|
|
626
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
627
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
628
|
+
#
|
|
629
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
630
|
+
# request = Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest.new
|
|
631
|
+
#
|
|
632
|
+
# # Call the delete_team_folder_tree method.
|
|
633
|
+
# result = client.delete_team_folder_tree request
|
|
634
|
+
#
|
|
635
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
636
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
637
|
+
# # Here is how to wait for a response.
|
|
638
|
+
# result.wait_until_done! timeout: 60
|
|
639
|
+
# if result.response?
|
|
640
|
+
# p result.response
|
|
641
|
+
# else
|
|
642
|
+
# puts "No response received."
|
|
643
|
+
# end
|
|
644
|
+
#
|
|
645
|
+
def delete_team_folder_tree request, options = nil
|
|
646
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
647
|
+
|
|
648
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest
|
|
649
|
+
|
|
650
|
+
# Converts hash and nil to an options object
|
|
651
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
652
|
+
|
|
653
|
+
# Customize the options with defaults
|
|
654
|
+
metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h
|
|
655
|
+
|
|
656
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
657
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
658
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
659
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
660
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
661
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
662
|
+
|
|
663
|
+
header_params = {}
|
|
664
|
+
if request.name
|
|
665
|
+
header_params["name"] = request.name
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
669
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
670
|
+
|
|
671
|
+
options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout,
|
|
672
|
+
metadata: metadata,
|
|
673
|
+
retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy
|
|
674
|
+
|
|
675
|
+
options.apply_defaults timeout: @config.timeout,
|
|
676
|
+
metadata: @config.metadata,
|
|
677
|
+
retry_policy: @config.retry_policy
|
|
678
|
+
|
|
679
|
+
@dataform_stub.call_rpc :delete_team_folder_tree, request, options: options do |response, operation|
|
|
680
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
681
|
+
yield response, operation if block_given?
|
|
682
|
+
throw :response, response
|
|
683
|
+
end
|
|
684
|
+
rescue ::GRPC::BadStatus => e
|
|
685
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
##
|
|
689
|
+
# Returns the contents of a given TeamFolder.
|
|
690
|
+
#
|
|
691
|
+
# @overload query_team_folder_contents(request, options = nil)
|
|
692
|
+
# Pass arguments to `query_team_folder_contents` via a request object, either of type
|
|
693
|
+
# {::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest} or an equivalent Hash.
|
|
694
|
+
#
|
|
695
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest, ::Hash]
|
|
696
|
+
# A request object representing the call parameters. Required. To specify no
|
|
697
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
698
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
699
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
700
|
+
#
|
|
701
|
+
# @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
|
702
|
+
# Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at
|
|
703
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
704
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
705
|
+
#
|
|
706
|
+
# @param team_folder [::String]
|
|
707
|
+
# Required. Resource name of the TeamFolder to list contents for.
|
|
708
|
+
# Format: `projects/*/locations/*/teamFolders/*`.
|
|
709
|
+
# @param page_size [::Integer]
|
|
710
|
+
# Optional. Maximum number of paths to return. The server may return fewer
|
|
711
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
|
712
|
+
# default.
|
|
713
|
+
# @param page_token [::String]
|
|
714
|
+
# Optional. Page token received from a previous `QueryTeamFolderContents`
|
|
715
|
+
# call. Provide this to retrieve the subsequent page.
|
|
716
|
+
#
|
|
717
|
+
# When paginating, all other parameters provided to
|
|
718
|
+
# `QueryTeamFolderContents`, with the exception of `page_size`, must match
|
|
719
|
+
# the call that provided the page token.
|
|
720
|
+
# @param order_by [::String]
|
|
721
|
+
# Optional. Field to additionally sort results by.
|
|
722
|
+
# Will order Folders before Repositories, and then by `order_by` in ascending
|
|
723
|
+
# order. Supported keywords: `display_name` (default), `create_time`,
|
|
724
|
+
# last_modified_time.
|
|
725
|
+
# Examples:
|
|
726
|
+
#
|
|
727
|
+
# * `orderBy="display_name"`
|
|
728
|
+
# * `orderBy="display_name desc"`
|
|
729
|
+
# @param filter [::String]
|
|
730
|
+
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
731
|
+
# only supported on the `display_name` field.
|
|
732
|
+
#
|
|
733
|
+
# Example:
|
|
734
|
+
#
|
|
735
|
+
# * `filter="display_name="MyFolder""`
|
|
736
|
+
#
|
|
737
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
738
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
|
|
739
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
740
|
+
#
|
|
741
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
|
|
742
|
+
#
|
|
743
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
744
|
+
#
|
|
745
|
+
# @example Basic example
|
|
746
|
+
# require "google/cloud/dataform/v1beta1"
|
|
747
|
+
#
|
|
748
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
749
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
750
|
+
#
|
|
751
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
752
|
+
# request = Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest.new
|
|
753
|
+
#
|
|
754
|
+
# # Call the query_team_folder_contents method.
|
|
755
|
+
# result = client.query_team_folder_contents request
|
|
756
|
+
#
|
|
757
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
758
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
759
|
+
# result.each do |item|
|
|
760
|
+
# # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry.
|
|
761
|
+
# p item
|
|
762
|
+
# end
|
|
763
|
+
#
|
|
764
|
+
def query_team_folder_contents request, options = nil
|
|
765
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
766
|
+
|
|
767
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsRequest
|
|
768
|
+
|
|
769
|
+
# Converts hash and nil to an options object
|
|
770
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
771
|
+
|
|
772
|
+
# Customize the options with defaults
|
|
773
|
+
metadata = @config.rpcs.query_team_folder_contents.metadata.to_h
|
|
774
|
+
|
|
775
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
776
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
777
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
778
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
779
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
780
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
781
|
+
|
|
782
|
+
header_params = {}
|
|
783
|
+
if request.team_folder
|
|
784
|
+
header_params["team_folder"] = request.team_folder
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
788
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
789
|
+
|
|
790
|
+
options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout,
|
|
791
|
+
metadata: metadata,
|
|
792
|
+
retry_policy: @config.rpcs.query_team_folder_contents.retry_policy
|
|
793
|
+
|
|
794
|
+
options.apply_defaults timeout: @config.timeout,
|
|
795
|
+
metadata: @config.metadata,
|
|
796
|
+
retry_policy: @config.retry_policy
|
|
797
|
+
|
|
798
|
+
@dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation|
|
|
799
|
+
response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options
|
|
800
|
+
yield response, operation if block_given?
|
|
801
|
+
throw :response, response
|
|
802
|
+
end
|
|
803
|
+
rescue ::GRPC::BadStatus => e
|
|
804
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
##
|
|
808
|
+
# Returns all TeamFolders in a given location that the caller has access to
|
|
809
|
+
# and match the provided filter.
|
|
810
|
+
#
|
|
811
|
+
# @overload search_team_folders(request, options = nil)
|
|
812
|
+
# Pass arguments to `search_team_folders` via a request object, either of type
|
|
813
|
+
# {::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest} or an equivalent Hash.
|
|
814
|
+
#
|
|
815
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest, ::Hash]
|
|
816
|
+
# A request object representing the call parameters. Required. To specify no
|
|
817
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
818
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
819
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
820
|
+
#
|
|
821
|
+
# @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
|
822
|
+
# Pass arguments to `search_team_folders` via keyword arguments. Note that at
|
|
823
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
824
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
825
|
+
#
|
|
826
|
+
# @param location [::String]
|
|
827
|
+
# Required. Location in which to query TeamFolders.
|
|
828
|
+
# Format: `projects/*/locations/*`.
|
|
829
|
+
# @param page_size [::Integer]
|
|
830
|
+
# Optional. Maximum number of `TeamFolders` to return. The server may return
|
|
831
|
+
# fewer items than requested. If unspecified, the server will pick a default
|
|
832
|
+
# of `page_size` = 50.
|
|
833
|
+
# @param page_token [::String]
|
|
834
|
+
# Optional. Page token received from a previous `SearchTeamFolders` call.
|
|
835
|
+
# Provide this to retrieve the subsequent page.
|
|
836
|
+
#
|
|
837
|
+
# When paginating, all other parameters provided to
|
|
838
|
+
# `SearchTeamFolders`, with the exception of `page_size`, must
|
|
839
|
+
# match the call that provided the page token.
|
|
840
|
+
# @param order_by [::String]
|
|
841
|
+
# Optional. Field to additionally sort results by.
|
|
842
|
+
# Supported keywords: `display_name` (default), `create_time`,
|
|
843
|
+
# `last_modified_time`. Examples:
|
|
844
|
+
#
|
|
845
|
+
# * `orderBy="display_name"`
|
|
846
|
+
# * `orderBy="display_name desc"`
|
|
847
|
+
# @param filter [::String]
|
|
848
|
+
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
849
|
+
# only supported on the `display_name` field.
|
|
850
|
+
#
|
|
851
|
+
# Example:
|
|
852
|
+
#
|
|
853
|
+
# * `filter="display_name="MyFolder""`
|
|
854
|
+
#
|
|
855
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
856
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
|
|
857
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
858
|
+
#
|
|
859
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
|
|
860
|
+
#
|
|
861
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
862
|
+
#
|
|
863
|
+
# @example Basic example
|
|
864
|
+
# require "google/cloud/dataform/v1beta1"
|
|
865
|
+
#
|
|
866
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
867
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
868
|
+
#
|
|
869
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
870
|
+
# request = Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest.new
|
|
871
|
+
#
|
|
872
|
+
# # Call the search_team_folders method.
|
|
873
|
+
# result = client.search_team_folders request
|
|
874
|
+
#
|
|
875
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
876
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
877
|
+
# result.each do |item|
|
|
878
|
+
# # Each element is of type ::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult.
|
|
879
|
+
# p item
|
|
880
|
+
# end
|
|
881
|
+
#
|
|
882
|
+
def search_team_folders request, options = nil
|
|
883
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
884
|
+
|
|
885
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersRequest
|
|
886
|
+
|
|
887
|
+
# Converts hash and nil to an options object
|
|
888
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
889
|
+
|
|
890
|
+
# Customize the options with defaults
|
|
891
|
+
metadata = @config.rpcs.search_team_folders.metadata.to_h
|
|
892
|
+
|
|
893
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
894
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
895
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
896
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
897
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
898
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
899
|
+
|
|
900
|
+
header_params = {}
|
|
901
|
+
if request.location
|
|
902
|
+
header_params["location"] = request.location
|
|
903
|
+
end
|
|
904
|
+
|
|
905
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
906
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
907
|
+
|
|
908
|
+
options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout,
|
|
909
|
+
metadata: metadata,
|
|
910
|
+
retry_policy: @config.rpcs.search_team_folders.retry_policy
|
|
911
|
+
|
|
912
|
+
options.apply_defaults timeout: @config.timeout,
|
|
913
|
+
metadata: @config.metadata,
|
|
914
|
+
retry_policy: @config.retry_policy
|
|
915
|
+
|
|
916
|
+
@dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation|
|
|
917
|
+
response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options
|
|
918
|
+
yield response, operation if block_given?
|
|
919
|
+
throw :response, response
|
|
920
|
+
end
|
|
921
|
+
rescue ::GRPC::BadStatus => e
|
|
922
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
##
|
|
926
|
+
# Fetches a single Folder.
|
|
927
|
+
#
|
|
928
|
+
# @overload get_folder(request, options = nil)
|
|
929
|
+
# Pass arguments to `get_folder` via a request object, either of type
|
|
930
|
+
# {::Google::Cloud::Dataform::V1beta1::GetFolderRequest} or an equivalent Hash.
|
|
931
|
+
#
|
|
932
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::GetFolderRequest, ::Hash]
|
|
933
|
+
# A request object representing the call parameters. Required. To specify no
|
|
934
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
935
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
936
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
937
|
+
#
|
|
938
|
+
# @overload get_folder(name: nil)
|
|
939
|
+
# Pass arguments to `get_folder` via keyword arguments. Note that at
|
|
940
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
941
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
942
|
+
#
|
|
943
|
+
# @param name [::String]
|
|
944
|
+
# Required. The Folder's name.
|
|
945
|
+
#
|
|
946
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
947
|
+
# @yieldparam response [::Google::Cloud::Dataform::V1beta1::Folder]
|
|
948
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
949
|
+
#
|
|
950
|
+
# @return [::Google::Cloud::Dataform::V1beta1::Folder]
|
|
951
|
+
#
|
|
952
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
953
|
+
#
|
|
954
|
+
# @example Basic example
|
|
955
|
+
# require "google/cloud/dataform/v1beta1"
|
|
956
|
+
#
|
|
957
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
958
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
959
|
+
#
|
|
960
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
961
|
+
# request = Google::Cloud::Dataform::V1beta1::GetFolderRequest.new
|
|
962
|
+
#
|
|
963
|
+
# # Call the get_folder method.
|
|
964
|
+
# result = client.get_folder request
|
|
965
|
+
#
|
|
966
|
+
# # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
|
|
967
|
+
# p result
|
|
968
|
+
#
|
|
969
|
+
def get_folder request, options = nil
|
|
970
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
971
|
+
|
|
972
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::GetFolderRequest
|
|
973
|
+
|
|
974
|
+
# Converts hash and nil to an options object
|
|
975
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
976
|
+
|
|
977
|
+
# Customize the options with defaults
|
|
978
|
+
metadata = @config.rpcs.get_folder.metadata.to_h
|
|
979
|
+
|
|
980
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
981
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
982
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
983
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
984
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
985
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
986
|
+
|
|
987
|
+
header_params = {}
|
|
988
|
+
if request.name
|
|
989
|
+
header_params["name"] = request.name
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
993
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
994
|
+
|
|
995
|
+
options.apply_defaults timeout: @config.rpcs.get_folder.timeout,
|
|
996
|
+
metadata: metadata,
|
|
997
|
+
retry_policy: @config.rpcs.get_folder.retry_policy
|
|
998
|
+
|
|
999
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1000
|
+
metadata: @config.metadata,
|
|
1001
|
+
retry_policy: @config.retry_policy
|
|
1002
|
+
|
|
1003
|
+
@dataform_stub.call_rpc :get_folder, request, options: options do |response, operation|
|
|
1004
|
+
yield response, operation if block_given?
|
|
1005
|
+
end
|
|
1006
|
+
rescue ::GRPC::BadStatus => e
|
|
1007
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
##
|
|
1011
|
+
# Creates a new Folder in a given project and location.
|
|
1012
|
+
#
|
|
1013
|
+
# @overload create_folder(request, options = nil)
|
|
1014
|
+
# Pass arguments to `create_folder` via a request object, either of type
|
|
1015
|
+
# {::Google::Cloud::Dataform::V1beta1::CreateFolderRequest} or an equivalent Hash.
|
|
1016
|
+
#
|
|
1017
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::CreateFolderRequest, ::Hash]
|
|
1018
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1019
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1020
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1021
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1022
|
+
#
|
|
1023
|
+
# @overload create_folder(parent: nil, folder: nil, folder_id: nil)
|
|
1024
|
+
# Pass arguments to `create_folder` via keyword arguments. Note that at
|
|
1025
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1026
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1027
|
+
#
|
|
1028
|
+
# @param parent [::String]
|
|
1029
|
+
# Required. The location in which to create the Folder. Must be in the format
|
|
1030
|
+
# `projects/*/locations/*`.
|
|
1031
|
+
# @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
|
|
1032
|
+
# Required. The Folder to create.
|
|
1033
|
+
# @param folder_id [::String]
|
|
1034
|
+
# Deprecated: This field is not used. The resource name is generated
|
|
1035
|
+
# automatically.
|
|
1036
|
+
# The ID to use for the Folder, which will become the final component of
|
|
1037
|
+
# the Folder's resource name.
|
|
1038
|
+
#
|
|
1039
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1040
|
+
# @yieldparam response [::Google::Cloud::Dataform::V1beta1::Folder]
|
|
1041
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1042
|
+
#
|
|
1043
|
+
# @return [::Google::Cloud::Dataform::V1beta1::Folder]
|
|
1044
|
+
#
|
|
1045
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1046
|
+
#
|
|
1047
|
+
# @example Basic example
|
|
1048
|
+
# require "google/cloud/dataform/v1beta1"
|
|
1049
|
+
#
|
|
1050
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1051
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
1052
|
+
#
|
|
1053
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1054
|
+
# request = Google::Cloud::Dataform::V1beta1::CreateFolderRequest.new
|
|
1055
|
+
#
|
|
1056
|
+
# # Call the create_folder method.
|
|
1057
|
+
# result = client.create_folder request
|
|
1058
|
+
#
|
|
1059
|
+
# # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
|
|
1060
|
+
# p result
|
|
1061
|
+
#
|
|
1062
|
+
def create_folder request, options = nil
|
|
1063
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1064
|
+
|
|
1065
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateFolderRequest
|
|
1066
|
+
|
|
1067
|
+
# Converts hash and nil to an options object
|
|
1068
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1069
|
+
|
|
1070
|
+
# Customize the options with defaults
|
|
1071
|
+
metadata = @config.rpcs.create_folder.metadata.to_h
|
|
1072
|
+
|
|
1073
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1074
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1075
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1076
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
1077
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1078
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1079
|
+
|
|
1080
|
+
header_params = {}
|
|
1081
|
+
if request.parent
|
|
1082
|
+
header_params["parent"] = request.parent
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1086
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1087
|
+
|
|
1088
|
+
options.apply_defaults timeout: @config.rpcs.create_folder.timeout,
|
|
1089
|
+
metadata: metadata,
|
|
1090
|
+
retry_policy: @config.rpcs.create_folder.retry_policy
|
|
1091
|
+
|
|
1092
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1093
|
+
metadata: @config.metadata,
|
|
1094
|
+
retry_policy: @config.retry_policy
|
|
1095
|
+
|
|
1096
|
+
@dataform_stub.call_rpc :create_folder, request, options: options do |response, operation|
|
|
1097
|
+
yield response, operation if block_given?
|
|
1098
|
+
end
|
|
1099
|
+
rescue ::GRPC::BadStatus => e
|
|
1100
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1101
|
+
end
|
|
1102
|
+
|
|
1103
|
+
##
|
|
1104
|
+
# Updates a single Folder.
|
|
1105
|
+
#
|
|
1106
|
+
# @overload update_folder(request, options = nil)
|
|
1107
|
+
# Pass arguments to `update_folder` via a request object, either of type
|
|
1108
|
+
# {::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest} or an equivalent Hash.
|
|
1109
|
+
#
|
|
1110
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest, ::Hash]
|
|
1111
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1112
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1113
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1114
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1115
|
+
#
|
|
1116
|
+
# @overload update_folder(update_mask: nil, folder: nil)
|
|
1117
|
+
# Pass arguments to `update_folder` via keyword arguments. Note that at
|
|
1118
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1119
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1120
|
+
#
|
|
1121
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1122
|
+
# Optional. Specifies the fields to be updated in the Folder. If left unset,
|
|
1123
|
+
# all fields that can be updated, will be updated. A few fields cannot be
|
|
1124
|
+
# updated and will be ignored if specified in the update_mask (e.g.
|
|
1125
|
+
# parent_name, team_folder_name).
|
|
1126
|
+
# @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
|
|
1127
|
+
# Required. The updated Folder.
|
|
1128
|
+
#
|
|
1129
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1130
|
+
# @yieldparam response [::Google::Cloud::Dataform::V1beta1::Folder]
|
|
1131
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1132
|
+
#
|
|
1133
|
+
# @return [::Google::Cloud::Dataform::V1beta1::Folder]
|
|
1134
|
+
#
|
|
1135
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1136
|
+
#
|
|
1137
|
+
# @example Basic example
|
|
1138
|
+
# require "google/cloud/dataform/v1beta1"
|
|
1139
|
+
#
|
|
1140
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1141
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
1142
|
+
#
|
|
1143
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1144
|
+
# request = Google::Cloud::Dataform::V1beta1::UpdateFolderRequest.new
|
|
1145
|
+
#
|
|
1146
|
+
# # Call the update_folder method.
|
|
1147
|
+
# result = client.update_folder request
|
|
1148
|
+
#
|
|
1149
|
+
# # The returned object is of type Google::Cloud::Dataform::V1beta1::Folder.
|
|
1150
|
+
# p result
|
|
1151
|
+
#
|
|
1152
|
+
def update_folder request, options = nil
|
|
1153
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1154
|
+
|
|
1155
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::UpdateFolderRequest
|
|
1156
|
+
|
|
1157
|
+
# Converts hash and nil to an options object
|
|
1158
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1159
|
+
|
|
1160
|
+
# Customize the options with defaults
|
|
1161
|
+
metadata = @config.rpcs.update_folder.metadata.to_h
|
|
1162
|
+
|
|
1163
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1164
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1165
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1166
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
1167
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1168
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1169
|
+
|
|
1170
|
+
header_params = {}
|
|
1171
|
+
if request.folder&.name
|
|
1172
|
+
header_params["folder.name"] = request.folder.name
|
|
1173
|
+
end
|
|
1174
|
+
|
|
1175
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1176
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1177
|
+
|
|
1178
|
+
options.apply_defaults timeout: @config.rpcs.update_folder.timeout,
|
|
1179
|
+
metadata: metadata,
|
|
1180
|
+
retry_policy: @config.rpcs.update_folder.retry_policy
|
|
1181
|
+
|
|
1182
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1183
|
+
metadata: @config.metadata,
|
|
1184
|
+
retry_policy: @config.retry_policy
|
|
1185
|
+
|
|
1186
|
+
@dataform_stub.call_rpc :update_folder, request, options: options do |response, operation|
|
|
1187
|
+
yield response, operation if block_given?
|
|
1188
|
+
end
|
|
1189
|
+
rescue ::GRPC::BadStatus => e
|
|
1190
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1191
|
+
end
|
|
1192
|
+
|
|
1193
|
+
##
|
|
1194
|
+
# Deletes a single Folder.
|
|
1195
|
+
#
|
|
1196
|
+
# @overload delete_folder(request, options = nil)
|
|
1197
|
+
# Pass arguments to `delete_folder` via a request object, either of type
|
|
1198
|
+
# {::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest} or an equivalent Hash.
|
|
1199
|
+
#
|
|
1200
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest, ::Hash]
|
|
1201
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1202
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1203
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1204
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1205
|
+
#
|
|
1206
|
+
# @overload delete_folder(name: nil)
|
|
1207
|
+
# Pass arguments to `delete_folder` via keyword arguments. Note that at
|
|
1208
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1209
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1210
|
+
#
|
|
1211
|
+
# @param name [::String]
|
|
1212
|
+
# Required. The Folder's name.
|
|
1213
|
+
#
|
|
1214
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1215
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
|
1216
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1217
|
+
#
|
|
1218
|
+
# @return [::Google::Protobuf::Empty]
|
|
1219
|
+
#
|
|
1220
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1221
|
+
#
|
|
1222
|
+
# @example Basic example
|
|
1223
|
+
# require "google/cloud/dataform/v1beta1"
|
|
1224
|
+
#
|
|
1225
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1226
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
1227
|
+
#
|
|
1228
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1229
|
+
# request = Google::Cloud::Dataform::V1beta1::DeleteFolderRequest.new
|
|
1230
|
+
#
|
|
1231
|
+
# # Call the delete_folder method.
|
|
1232
|
+
# result = client.delete_folder request
|
|
1233
|
+
#
|
|
1234
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
1235
|
+
# p result
|
|
1236
|
+
#
|
|
1237
|
+
def delete_folder request, options = nil
|
|
1238
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1239
|
+
|
|
1240
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteFolderRequest
|
|
1241
|
+
|
|
1242
|
+
# Converts hash and nil to an options object
|
|
1243
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1244
|
+
|
|
1245
|
+
# Customize the options with defaults
|
|
1246
|
+
metadata = @config.rpcs.delete_folder.metadata.to_h
|
|
1247
|
+
|
|
1248
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1249
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1250
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1251
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
1252
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1253
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1254
|
+
|
|
1255
|
+
header_params = {}
|
|
1256
|
+
if request.name
|
|
1257
|
+
header_params["name"] = request.name
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1261
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1262
|
+
|
|
1263
|
+
options.apply_defaults timeout: @config.rpcs.delete_folder.timeout,
|
|
1264
|
+
metadata: metadata,
|
|
1265
|
+
retry_policy: @config.rpcs.delete_folder.retry_policy
|
|
1266
|
+
|
|
1267
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1268
|
+
metadata: @config.metadata,
|
|
1269
|
+
retry_policy: @config.retry_policy
|
|
1270
|
+
|
|
1271
|
+
@dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation|
|
|
1272
|
+
yield response, operation if block_given?
|
|
1273
|
+
end
|
|
1274
|
+
rescue ::GRPC::BadStatus => e
|
|
1275
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1276
|
+
end
|
|
1277
|
+
|
|
1278
|
+
##
|
|
1279
|
+
# Deletes a Folder with its contents (Folders, Repositories, Workspaces,
|
|
1280
|
+
# ReleaseConfigs, and WorkflowConfigs).
|
|
1281
|
+
#
|
|
1282
|
+
# @overload delete_folder_tree(request, options = nil)
|
|
1283
|
+
# Pass arguments to `delete_folder_tree` via a request object, either of type
|
|
1284
|
+
# {::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest} or an equivalent Hash.
|
|
1285
|
+
#
|
|
1286
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest, ::Hash]
|
|
1287
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1288
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1289
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1290
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1291
|
+
#
|
|
1292
|
+
# @overload delete_folder_tree(name: nil, force: nil)
|
|
1293
|
+
# Pass arguments to `delete_folder_tree` via keyword arguments. Note that at
|
|
1294
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1295
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1296
|
+
#
|
|
1297
|
+
# @param name [::String]
|
|
1298
|
+
# Required. The Folder's name.
|
|
1299
|
+
# Format: projects/\\{project}/locations/\\{location}/folders/\\{folder}
|
|
1300
|
+
# @param force [::Boolean]
|
|
1301
|
+
# Optional. If `false` (default): The operation will fail if any
|
|
1302
|
+
# Repository within the folder hierarchy has associated Release Configs or
|
|
1303
|
+
# Workflow Configs.
|
|
1304
|
+
#
|
|
1305
|
+
# If `true`: The operation will attempt to delete everything, including any
|
|
1306
|
+
# Release Configs and Workflow Configs linked to Repositories within the
|
|
1307
|
+
# folder hierarchy. This permanently removes schedules and resources.
|
|
1308
|
+
#
|
|
1309
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1310
|
+
# @yieldparam response [::Gapic::Operation]
|
|
1311
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1312
|
+
#
|
|
1313
|
+
# @return [::Gapic::Operation]
|
|
1314
|
+
#
|
|
1315
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1316
|
+
#
|
|
1317
|
+
# @example Basic example
|
|
1318
|
+
# require "google/cloud/dataform/v1beta1"
|
|
1319
|
+
#
|
|
1320
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1321
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
1322
|
+
#
|
|
1323
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1324
|
+
# request = Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest.new
|
|
1325
|
+
#
|
|
1326
|
+
# # Call the delete_folder_tree method.
|
|
1327
|
+
# result = client.delete_folder_tree request
|
|
1328
|
+
#
|
|
1329
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1330
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1331
|
+
# # Here is how to wait for a response.
|
|
1332
|
+
# result.wait_until_done! timeout: 60
|
|
1333
|
+
# if result.response?
|
|
1334
|
+
# p result.response
|
|
1335
|
+
# else
|
|
1336
|
+
# puts "No response received."
|
|
1337
|
+
# end
|
|
1338
|
+
#
|
|
1339
|
+
def delete_folder_tree request, options = nil
|
|
1340
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1341
|
+
|
|
1342
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest
|
|
1343
|
+
|
|
1344
|
+
# Converts hash and nil to an options object
|
|
1345
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1346
|
+
|
|
1347
|
+
# Customize the options with defaults
|
|
1348
|
+
metadata = @config.rpcs.delete_folder_tree.metadata.to_h
|
|
1349
|
+
|
|
1350
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1351
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1352
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1353
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
1354
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1355
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1356
|
+
|
|
1357
|
+
header_params = {}
|
|
1358
|
+
if request.name
|
|
1359
|
+
header_params["name"] = request.name
|
|
1360
|
+
end
|
|
1361
|
+
|
|
1362
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1363
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1364
|
+
|
|
1365
|
+
options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout,
|
|
1366
|
+
metadata: metadata,
|
|
1367
|
+
retry_policy: @config.rpcs.delete_folder_tree.retry_policy
|
|
1368
|
+
|
|
1369
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1370
|
+
metadata: @config.metadata,
|
|
1371
|
+
retry_policy: @config.retry_policy
|
|
1372
|
+
|
|
1373
|
+
@dataform_stub.call_rpc :delete_folder_tree, request, options: options do |response, operation|
|
|
1374
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
1375
|
+
yield response, operation if block_given?
|
|
1376
|
+
throw :response, response
|
|
1377
|
+
end
|
|
1378
|
+
rescue ::GRPC::BadStatus => e
|
|
1379
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1380
|
+
end
|
|
1381
|
+
|
|
1382
|
+
##
|
|
1383
|
+
# Returns the contents of a given Folder.
|
|
1384
|
+
#
|
|
1385
|
+
# @overload query_folder_contents(request, options = nil)
|
|
1386
|
+
# Pass arguments to `query_folder_contents` via a request object, either of type
|
|
1387
|
+
# {::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest} or an equivalent Hash.
|
|
1388
|
+
#
|
|
1389
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest, ::Hash]
|
|
1390
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1391
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1392
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1393
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1394
|
+
#
|
|
1395
|
+
# @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
|
1396
|
+
# Pass arguments to `query_folder_contents` via keyword arguments. Note that at
|
|
1397
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1398
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1399
|
+
#
|
|
1400
|
+
# @param folder [::String]
|
|
1401
|
+
# Required. Resource name of the Folder to list contents for.
|
|
1402
|
+
# Format: projects/*/locations/*/folders/*
|
|
1403
|
+
# @param page_size [::Integer]
|
|
1404
|
+
# Optional. Maximum number of paths to return. The server may return fewer
|
|
1405
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
|
1406
|
+
# default.
|
|
1407
|
+
# @param page_token [::String]
|
|
1408
|
+
# Optional. Page token received from a previous `QueryFolderContents` call.
|
|
1409
|
+
# Provide this to retrieve the subsequent page.
|
|
1410
|
+
#
|
|
1411
|
+
# When paginating, all other parameters provided to
|
|
1412
|
+
# `QueryFolderContents`, with the exception of `page_size`, must match the
|
|
1413
|
+
# call that provided the page token.
|
|
1414
|
+
# @param order_by [::String]
|
|
1415
|
+
# Optional. Field to additionally sort results by.
|
|
1416
|
+
# Will order Folders before Repositories, and then by `order_by` in ascending
|
|
1417
|
+
# order. Supported keywords: display_name (default), create_time,
|
|
1418
|
+
# last_modified_time.
|
|
1419
|
+
# Examples:
|
|
1420
|
+
#
|
|
1421
|
+
# * `orderBy="display_name"`
|
|
1422
|
+
# * `orderBy="display_name desc"`
|
|
1423
|
+
# @param filter [::String]
|
|
1424
|
+
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
1425
|
+
# only supported on the `display_name` field.
|
|
1426
|
+
#
|
|
1427
|
+
# Example:
|
|
1428
|
+
#
|
|
1429
|
+
# * `filter="display_name="MyFolder""`
|
|
1430
|
+
#
|
|
1431
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1432
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
|
|
1433
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1434
|
+
#
|
|
1435
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
|
|
1436
|
+
#
|
|
1437
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1438
|
+
#
|
|
1439
|
+
# @example Basic example
|
|
1440
|
+
# require "google/cloud/dataform/v1beta1"
|
|
1441
|
+
#
|
|
1442
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1443
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
1444
|
+
#
|
|
1445
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1446
|
+
# request = Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest.new
|
|
1447
|
+
#
|
|
1448
|
+
# # Call the query_folder_contents method.
|
|
1449
|
+
# result = client.query_folder_contents request
|
|
1450
|
+
#
|
|
1451
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1452
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1453
|
+
# result.each do |item|
|
|
1454
|
+
# # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry.
|
|
1455
|
+
# p item
|
|
1456
|
+
# end
|
|
1457
|
+
#
|
|
1458
|
+
def query_folder_contents request, options = nil
|
|
1459
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1460
|
+
|
|
1461
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::QueryFolderContentsRequest
|
|
1462
|
+
|
|
1463
|
+
# Converts hash and nil to an options object
|
|
1464
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1465
|
+
|
|
1466
|
+
# Customize the options with defaults
|
|
1467
|
+
metadata = @config.rpcs.query_folder_contents.metadata.to_h
|
|
1468
|
+
|
|
1469
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1470
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1471
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1472
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
1473
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1474
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1475
|
+
|
|
1476
|
+
header_params = {}
|
|
1477
|
+
if request.folder
|
|
1478
|
+
header_params["folder"] = request.folder
|
|
1479
|
+
end
|
|
1480
|
+
|
|
1481
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1482
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1483
|
+
|
|
1484
|
+
options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout,
|
|
1485
|
+
metadata: metadata,
|
|
1486
|
+
retry_policy: @config.rpcs.query_folder_contents.retry_policy
|
|
1487
|
+
|
|
1488
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1489
|
+
metadata: @config.metadata,
|
|
1490
|
+
retry_policy: @config.retry_policy
|
|
1491
|
+
|
|
1492
|
+
@dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation|
|
|
1493
|
+
response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options
|
|
1494
|
+
yield response, operation if block_given?
|
|
1495
|
+
throw :response, response
|
|
1496
|
+
end
|
|
1497
|
+
rescue ::GRPC::BadStatus => e
|
|
1498
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1499
|
+
end
|
|
1500
|
+
|
|
1501
|
+
##
|
|
1502
|
+
# Returns the contents of a caller's root folder in a given location.
|
|
1503
|
+
# The root folder contains all resources that are created by the user and not
|
|
1504
|
+
# contained in any other folder.
|
|
1505
|
+
#
|
|
1506
|
+
# @overload query_user_root_contents(request, options = nil)
|
|
1507
|
+
# Pass arguments to `query_user_root_contents` via a request object, either of type
|
|
1508
|
+
# {::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest} or an equivalent Hash.
|
|
1509
|
+
#
|
|
1510
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest, ::Hash]
|
|
1511
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1512
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1513
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1514
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1515
|
+
#
|
|
1516
|
+
# @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
|
1517
|
+
# Pass arguments to `query_user_root_contents` via keyword arguments. Note that at
|
|
1518
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1519
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1520
|
+
#
|
|
1521
|
+
# @param location [::String]
|
|
1522
|
+
# Required. Location of the user root folder to list contents for.
|
|
1523
|
+
# Format: projects/*/locations/*
|
|
1524
|
+
# @param page_size [::Integer]
|
|
1525
|
+
# Optional. Maximum number of paths to return. The server may return fewer
|
|
1526
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
|
1527
|
+
# default.
|
|
1528
|
+
# @param page_token [::String]
|
|
1529
|
+
# Optional. Page token received from a previous `QueryUserRootContents` call.
|
|
1530
|
+
# Provide this to retrieve the subsequent page.
|
|
1531
|
+
#
|
|
1532
|
+
# When paginating, all other parameters provided to
|
|
1533
|
+
# `QueryUserRootFolderContents`, with the exception of `page_size`, must
|
|
1534
|
+
# match the call that provided the page token.
|
|
1535
|
+
# @param order_by [::String]
|
|
1536
|
+
# Optional. Field to additionally sort results by.
|
|
1537
|
+
# Will order Folders before Repositories, and then by `order_by` in ascending
|
|
1538
|
+
# order. Supported keywords: display_name (default), created_at,
|
|
1539
|
+
# last_modified_at. Examples:
|
|
1540
|
+
#
|
|
1541
|
+
# * `orderBy="display_name"`
|
|
1542
|
+
# * `orderBy="display_name desc"`
|
|
1543
|
+
# @param filter [::String]
|
|
1544
|
+
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
1545
|
+
# only supported on the `display_name` field.
|
|
1546
|
+
#
|
|
1547
|
+
# Example:
|
|
1548
|
+
#
|
|
1549
|
+
# * `filter="display_name="MyFolder""`
|
|
1550
|
+
#
|
|
1551
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1552
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
|
|
1553
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1554
|
+
#
|
|
1555
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
|
|
1556
|
+
#
|
|
1557
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1558
|
+
#
|
|
1559
|
+
# @example Basic example
|
|
1560
|
+
# require "google/cloud/dataform/v1beta1"
|
|
1561
|
+
#
|
|
1562
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1563
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
1564
|
+
#
|
|
1565
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1566
|
+
# request = Google::Cloud::Dataform::V1beta1::QueryUserRootContentsRequest.new
|
|
1567
|
+
#
|
|
1568
|
+
# # Call the query_user_root_contents method.
|
|
1569
|
+
# result = client.query_user_root_contents request
|
|
1570
|
+
#
|
|
1571
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1572
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1573
|
+
# result.each do |item|
|
|
1574
|
+
# # Each element is of type ::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry.
|
|
1575
|
+
# p item
|
|
1576
|
+
# end
|
|
1577
|
+
#
|
|
1578
|
+
def query_user_root_contents 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::QueryUserRootContentsRequest
|
|
176
1582
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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.query_user_root_contents.metadata.to_h
|
|
1588
|
+
|
|
1589
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version 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-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1594
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1595
|
+
|
|
1596
|
+
header_params = {}
|
|
1597
|
+
if request.location
|
|
1598
|
+
header_params["location"] = request.location
|
|
183
1599
|
end
|
|
184
1600
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
1601
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1602
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1603
|
+
|
|
1604
|
+
options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout,
|
|
1605
|
+
metadata: metadata,
|
|
1606
|
+
retry_policy: @config.rpcs.query_user_root_contents.retry_policy
|
|
1607
|
+
|
|
1608
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1609
|
+
metadata: @config.metadata,
|
|
1610
|
+
retry_policy: @config.retry_policy
|
|
1611
|
+
|
|
1612
|
+
@dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation|
|
|
1613
|
+
response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options
|
|
1614
|
+
yield response, operation if block_given?
|
|
1615
|
+
throw :response, response
|
|
191
1616
|
end
|
|
1617
|
+
rescue ::GRPC::BadStatus => e
|
|
1618
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
192
1619
|
end
|
|
193
1620
|
|
|
194
1621
|
##
|
|
195
|
-
#
|
|
1622
|
+
# Moves a Folder to a new Folder, TeamFolder, or the root location.
|
|
196
1623
|
#
|
|
197
|
-
# @
|
|
1624
|
+
# @overload move_folder(request, options = nil)
|
|
1625
|
+
# Pass arguments to `move_folder` via a request object, either of type
|
|
1626
|
+
# {::Google::Cloud::Dataform::V1beta1::MoveFolderRequest} or an equivalent Hash.
|
|
198
1627
|
#
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
#
|
|
1628
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::MoveFolderRequest, ::Hash]
|
|
1629
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1630
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1631
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1632
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
203
1633
|
#
|
|
204
|
-
# @
|
|
1634
|
+
# @overload move_folder(name: nil, destination_containing_folder: nil)
|
|
1635
|
+
# Pass arguments to `move_folder` via keyword arguments. Note that at
|
|
1636
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1637
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
205
1638
|
#
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
# The
|
|
1639
|
+
# @param name [::String]
|
|
1640
|
+
# Required. The full resource name of the Folder to move.
|
|
1641
|
+
# @param destination_containing_folder [::String]
|
|
1642
|
+
# Optional. The name of the Folder, TeamFolder, or root location to move the
|
|
1643
|
+
# Folder to. Can be in the format of: "" to move into the root User folder,
|
|
1644
|
+
# `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
|
|
210
1645
|
#
|
|
211
|
-
# @
|
|
1646
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1647
|
+
# @yieldparam response [::Gapic::Operation]
|
|
1648
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
212
1649
|
#
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
1650
|
+
# @return [::Gapic::Operation]
|
|
1651
|
+
#
|
|
1652
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1653
|
+
#
|
|
1654
|
+
# @example Basic example
|
|
1655
|
+
# require "google/cloud/dataform/v1beta1"
|
|
1656
|
+
#
|
|
1657
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1658
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
1659
|
+
#
|
|
1660
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1661
|
+
# request = Google::Cloud::Dataform::V1beta1::MoveFolderRequest.new
|
|
1662
|
+
#
|
|
1663
|
+
# # Call the move_folder method.
|
|
1664
|
+
# result = client.move_folder request
|
|
1665
|
+
#
|
|
1666
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1667
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1668
|
+
# # Here is how to wait for a response.
|
|
1669
|
+
# result.wait_until_done! timeout: 60
|
|
1670
|
+
# if result.response?
|
|
1671
|
+
# p result.response
|
|
1672
|
+
# else
|
|
1673
|
+
# puts "No response received."
|
|
1674
|
+
# end
|
|
1675
|
+
#
|
|
1676
|
+
def move_folder request, options = nil
|
|
1677
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
216
1678
|
|
|
217
|
-
|
|
1679
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveFolderRequest
|
|
1680
|
+
|
|
1681
|
+
# Converts hash and nil to an options object
|
|
1682
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1683
|
+
|
|
1684
|
+
# Customize the options with defaults
|
|
1685
|
+
metadata = @config.rpcs.move_folder.metadata.to_h
|
|
1686
|
+
|
|
1687
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1688
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1689
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1690
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
1691
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1692
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1693
|
+
|
|
1694
|
+
header_params = {}
|
|
1695
|
+
if request.name
|
|
1696
|
+
header_params["name"] = request.name
|
|
1697
|
+
end
|
|
1698
|
+
|
|
1699
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1700
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1701
|
+
|
|
1702
|
+
options.apply_defaults timeout: @config.rpcs.move_folder.timeout,
|
|
1703
|
+
metadata: metadata,
|
|
1704
|
+
retry_policy: @config.rpcs.move_folder.retry_policy
|
|
1705
|
+
|
|
1706
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1707
|
+
metadata: @config.metadata,
|
|
1708
|
+
retry_policy: @config.retry_policy
|
|
1709
|
+
|
|
1710
|
+
@dataform_stub.call_rpc :move_folder, request, options: options do |response, operation|
|
|
1711
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
1712
|
+
yield response, operation if block_given?
|
|
1713
|
+
throw :response, response
|
|
1714
|
+
end
|
|
1715
|
+
rescue ::GRPC::BadStatus => e
|
|
1716
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1717
|
+
end
|
|
218
1718
|
|
|
219
1719
|
##
|
|
220
1720
|
# Lists Repositories in a given project and location.
|
|
@@ -618,9 +2118,13 @@ module Google
|
|
|
618
2118
|
# @param name [::String]
|
|
619
2119
|
# Required. The repository's name.
|
|
620
2120
|
# @param force [::Boolean]
|
|
621
|
-
# Optional. If set to true,
|
|
622
|
-
#
|
|
623
|
-
# no child resources.
|
|
2121
|
+
# Optional. If set to true, child resources of this repository (compilation
|
|
2122
|
+
# results and workflow invocations) will also be deleted. Otherwise, the
|
|
2123
|
+
# request will only succeed if the repository has no child resources.
|
|
2124
|
+
#
|
|
2125
|
+
# **Note:** *This flag doesn't support deletion of workspaces, release
|
|
2126
|
+
# configs or workflow configs. If any of such resources exists in the
|
|
2127
|
+
# repository, the request will fail.*.
|
|
624
2128
|
#
|
|
625
2129
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
626
2130
|
# @yieldparam response [::Google::Protobuf::Empty]
|
|
@@ -648,13 +2152,212 @@ module Google
|
|
|
648
2152
|
def delete_repository request, options = nil
|
|
649
2153
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
650
2154
|
|
|
651
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
|
|
2155
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryRequest
|
|
2156
|
+
|
|
2157
|
+
# Converts hash and nil to an options object
|
|
2158
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2159
|
+
|
|
2160
|
+
# Customize the options with defaults
|
|
2161
|
+
metadata = @config.rpcs.delete_repository.metadata.to_h
|
|
2162
|
+
|
|
2163
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2164
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2165
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2166
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
2167
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2168
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2169
|
+
|
|
2170
|
+
header_params = {}
|
|
2171
|
+
if request.name
|
|
2172
|
+
header_params["name"] = request.name
|
|
2173
|
+
end
|
|
2174
|
+
|
|
2175
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
2176
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
2177
|
+
|
|
2178
|
+
options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
|
|
2179
|
+
metadata: metadata,
|
|
2180
|
+
retry_policy: @config.rpcs.delete_repository.retry_policy
|
|
2181
|
+
|
|
2182
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2183
|
+
metadata: @config.metadata,
|
|
2184
|
+
retry_policy: @config.retry_policy
|
|
2185
|
+
|
|
2186
|
+
@dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation|
|
|
2187
|
+
yield response, operation if block_given?
|
|
2188
|
+
end
|
|
2189
|
+
rescue ::GRPC::BadStatus => e
|
|
2190
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2191
|
+
end
|
|
2192
|
+
|
|
2193
|
+
##
|
|
2194
|
+
# Deletes a single repository asynchronously.
|
|
2195
|
+
#
|
|
2196
|
+
# @overload delete_repository_long_running(request, options = nil)
|
|
2197
|
+
# Pass arguments to `delete_repository_long_running` via a request object, either of type
|
|
2198
|
+
# {::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest} or an equivalent Hash.
|
|
2199
|
+
#
|
|
2200
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest, ::Hash]
|
|
2201
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2202
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2203
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2204
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2205
|
+
#
|
|
2206
|
+
# @overload delete_repository_long_running(name: nil, force: nil)
|
|
2207
|
+
# Pass arguments to `delete_repository_long_running` via keyword arguments. Note that at
|
|
2208
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2209
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2210
|
+
#
|
|
2211
|
+
# @param name [::String]
|
|
2212
|
+
# Required. The repository's name.
|
|
2213
|
+
# @param force [::Boolean]
|
|
2214
|
+
# Optional. If set to true, child resources of this repository (compilation
|
|
2215
|
+
# results and workflow invocations) will also be deleted. Otherwise, the
|
|
2216
|
+
# request will only succeed if the repository has no child resources.
|
|
2217
|
+
#
|
|
2218
|
+
# **Note:** *This flag doesn't support deletion of workspaces, release
|
|
2219
|
+
# configs or workflow configs. If any of such resources exists in the
|
|
2220
|
+
# repository, the request will fail.*
|
|
2221
|
+
#
|
|
2222
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
2223
|
+
# @yieldparam response [::Gapic::Operation]
|
|
2224
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
2225
|
+
#
|
|
2226
|
+
# @return [::Gapic::Operation]
|
|
2227
|
+
#
|
|
2228
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
2229
|
+
#
|
|
2230
|
+
# @example Basic example
|
|
2231
|
+
# require "google/cloud/dataform/v1beta1"
|
|
2232
|
+
#
|
|
2233
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2234
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
2235
|
+
#
|
|
2236
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2237
|
+
# request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest.new
|
|
2238
|
+
#
|
|
2239
|
+
# # Call the delete_repository_long_running method.
|
|
2240
|
+
# result = client.delete_repository_long_running request
|
|
2241
|
+
#
|
|
2242
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2243
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2244
|
+
# # Here is how to wait for a response.
|
|
2245
|
+
# result.wait_until_done! timeout: 60
|
|
2246
|
+
# if result.response?
|
|
2247
|
+
# p result.response
|
|
2248
|
+
# else
|
|
2249
|
+
# puts "No response received."
|
|
2250
|
+
# end
|
|
2251
|
+
#
|
|
2252
|
+
def delete_repository_long_running request, options = nil
|
|
2253
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2254
|
+
|
|
2255
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest
|
|
2256
|
+
|
|
2257
|
+
# Converts hash and nil to an options object
|
|
2258
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2259
|
+
|
|
2260
|
+
# Customize the options with defaults
|
|
2261
|
+
metadata = @config.rpcs.delete_repository_long_running.metadata.to_h
|
|
2262
|
+
|
|
2263
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2264
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2265
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2266
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
2267
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2268
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2269
|
+
|
|
2270
|
+
header_params = {}
|
|
2271
|
+
if request.name
|
|
2272
|
+
header_params["name"] = request.name
|
|
2273
|
+
end
|
|
2274
|
+
|
|
2275
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
2276
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
2277
|
+
|
|
2278
|
+
options.apply_defaults timeout: @config.rpcs.delete_repository_long_running.timeout,
|
|
2279
|
+
metadata: metadata,
|
|
2280
|
+
retry_policy: @config.rpcs.delete_repository_long_running.retry_policy
|
|
2281
|
+
|
|
2282
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2283
|
+
metadata: @config.metadata,
|
|
2284
|
+
retry_policy: @config.retry_policy
|
|
2285
|
+
|
|
2286
|
+
@dataform_stub.call_rpc :delete_repository_long_running, request, options: options do |response, operation|
|
|
2287
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
2288
|
+
yield response, operation if block_given?
|
|
2289
|
+
throw :response, response
|
|
2290
|
+
end
|
|
2291
|
+
rescue ::GRPC::BadStatus => e
|
|
2292
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2293
|
+
end
|
|
2294
|
+
|
|
2295
|
+
##
|
|
2296
|
+
# Moves a Repository to a new location.
|
|
2297
|
+
#
|
|
2298
|
+
# @overload move_repository(request, options = nil)
|
|
2299
|
+
# Pass arguments to `move_repository` via a request object, either of type
|
|
2300
|
+
# {::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest} or an equivalent Hash.
|
|
2301
|
+
#
|
|
2302
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest, ::Hash]
|
|
2303
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2304
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2305
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2306
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2307
|
+
#
|
|
2308
|
+
# @overload move_repository(name: nil, destination_containing_folder: nil)
|
|
2309
|
+
# Pass arguments to `move_repository` via keyword arguments. Note that at
|
|
2310
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2311
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2312
|
+
#
|
|
2313
|
+
# @param name [::String]
|
|
2314
|
+
# Required. The full resource name of the repository to move.
|
|
2315
|
+
# @param destination_containing_folder [::String]
|
|
2316
|
+
# Optional. The name of the Folder, TeamFolder, or root location to move the
|
|
2317
|
+
# repository to. Can be in the format of: "" to move into the root User
|
|
2318
|
+
# folder, `projects/*/locations/*/folders/*`,
|
|
2319
|
+
# `projects/*/locations/*/teamFolders/*`
|
|
2320
|
+
#
|
|
2321
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
2322
|
+
# @yieldparam response [::Gapic::Operation]
|
|
2323
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
2324
|
+
#
|
|
2325
|
+
# @return [::Gapic::Operation]
|
|
2326
|
+
#
|
|
2327
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
2328
|
+
#
|
|
2329
|
+
# @example Basic example
|
|
2330
|
+
# require "google/cloud/dataform/v1beta1"
|
|
2331
|
+
#
|
|
2332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2333
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
2334
|
+
#
|
|
2335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2336
|
+
# request = Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest.new
|
|
2337
|
+
#
|
|
2338
|
+
# # Call the move_repository method.
|
|
2339
|
+
# result = client.move_repository request
|
|
2340
|
+
#
|
|
2341
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2342
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2343
|
+
# # Here is how to wait for a response.
|
|
2344
|
+
# result.wait_until_done! timeout: 60
|
|
2345
|
+
# if result.response?
|
|
2346
|
+
# p result.response
|
|
2347
|
+
# else
|
|
2348
|
+
# puts "No response received."
|
|
2349
|
+
# end
|
|
2350
|
+
#
|
|
2351
|
+
def move_repository request, options = nil
|
|
2352
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2353
|
+
|
|
2354
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::MoveRepositoryRequest
|
|
652
2355
|
|
|
653
2356
|
# Converts hash and nil to an options object
|
|
654
2357
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
655
2358
|
|
|
656
2359
|
# Customize the options with defaults
|
|
657
|
-
metadata = @config.rpcs.
|
|
2360
|
+
metadata = @config.rpcs.move_repository.metadata.to_h
|
|
658
2361
|
|
|
659
2362
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
660
2363
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -671,16 +2374,18 @@ module Google
|
|
|
671
2374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
672
2375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
673
2376
|
|
|
674
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2377
|
+
options.apply_defaults timeout: @config.rpcs.move_repository.timeout,
|
|
675
2378
|
metadata: metadata,
|
|
676
|
-
retry_policy: @config.rpcs.
|
|
2379
|
+
retry_policy: @config.rpcs.move_repository.retry_policy
|
|
677
2380
|
|
|
678
2381
|
options.apply_defaults timeout: @config.timeout,
|
|
679
2382
|
metadata: @config.metadata,
|
|
680
2383
|
retry_policy: @config.retry_policy
|
|
681
2384
|
|
|
682
|
-
@dataform_stub.call_rpc :
|
|
2385
|
+
@dataform_stub.call_rpc :move_repository, request, options: options do |response, operation|
|
|
2386
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
683
2387
|
yield response, operation if block_given?
|
|
2388
|
+
throw :response, response
|
|
684
2389
|
end
|
|
685
2390
|
rescue ::GRPC::BadStatus => e
|
|
686
2391
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2347,7 +4052,7 @@ module Google
|
|
|
2347
4052
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2348
4053
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2349
4054
|
#
|
|
2350
|
-
# @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
|
|
4055
|
+
# @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil)
|
|
2351
4056
|
# Pass arguments to `query_directory_contents` via keyword arguments. Note that at
|
|
2352
4057
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2353
4058
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -2368,6 +4073,11 @@ module Google
|
|
|
2368
4073
|
# When paginating, all other parameters provided to
|
|
2369
4074
|
# `QueryDirectoryContents`, with the exception of `page_size`, must match the
|
|
2370
4075
|
# call that provided the page token.
|
|
4076
|
+
# @param view [::Google::Cloud::Dataform::V1beta1::DirectoryContentsView]
|
|
4077
|
+
# Optional. Specifies the metadata to return for each directory entry.
|
|
4078
|
+
# If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
|
|
4079
|
+
# Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
|
|
4080
|
+
# CMEK-protected workspaces.
|
|
2371
4081
|
#
|
|
2372
4082
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
2373
4083
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
|
|
@@ -5206,6 +6916,294 @@ module Google
|
|
|
5206
6916
|
raise ::Google::Cloud::Error.from_error(e)
|
|
5207
6917
|
end
|
|
5208
6918
|
|
|
6919
|
+
##
|
|
6920
|
+
# Gets the access control policy for a resource.
|
|
6921
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
6922
|
+
# set.
|
|
6923
|
+
#
|
|
6924
|
+
# @overload get_iam_policy(request, options = nil)
|
|
6925
|
+
# Pass arguments to `get_iam_policy` via a request object, either of type
|
|
6926
|
+
# {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
|
|
6927
|
+
#
|
|
6928
|
+
# @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
|
|
6929
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6930
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6931
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6932
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
6933
|
+
#
|
|
6934
|
+
# @overload get_iam_policy(resource: nil, options: nil)
|
|
6935
|
+
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
|
6936
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6937
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6938
|
+
#
|
|
6939
|
+
# @param resource [::String]
|
|
6940
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
6941
|
+
# See the operation documentation for the appropriate value for this field.
|
|
6942
|
+
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
6943
|
+
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
6944
|
+
# `GetIamPolicy`.
|
|
6945
|
+
#
|
|
6946
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
6947
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
6948
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
6949
|
+
#
|
|
6950
|
+
# @return [::Google::Iam::V1::Policy]
|
|
6951
|
+
#
|
|
6952
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
6953
|
+
#
|
|
6954
|
+
# @example Basic example
|
|
6955
|
+
# require "google/cloud/dataform/v1beta1"
|
|
6956
|
+
#
|
|
6957
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6958
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
6959
|
+
#
|
|
6960
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6961
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
|
6962
|
+
#
|
|
6963
|
+
# # Call the get_iam_policy method.
|
|
6964
|
+
# result = client.get_iam_policy request
|
|
6965
|
+
#
|
|
6966
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
6967
|
+
# p result
|
|
6968
|
+
#
|
|
6969
|
+
def get_iam_policy request, options = nil
|
|
6970
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6971
|
+
|
|
6972
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
|
|
6973
|
+
|
|
6974
|
+
# Converts hash and nil to an options object
|
|
6975
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6976
|
+
|
|
6977
|
+
# Customize the options with defaults
|
|
6978
|
+
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
|
6979
|
+
|
|
6980
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6981
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6982
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6983
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
6984
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6985
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6986
|
+
|
|
6987
|
+
header_params = {}
|
|
6988
|
+
if request.resource
|
|
6989
|
+
header_params["resource"] = request.resource
|
|
6990
|
+
end
|
|
6991
|
+
|
|
6992
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
6993
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
6994
|
+
|
|
6995
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
|
6996
|
+
metadata: metadata,
|
|
6997
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
|
6998
|
+
|
|
6999
|
+
options.apply_defaults timeout: @config.timeout,
|
|
7000
|
+
metadata: @config.metadata,
|
|
7001
|
+
retry_policy: @config.retry_policy
|
|
7002
|
+
|
|
7003
|
+
@dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
|
7004
|
+
yield response, operation if block_given?
|
|
7005
|
+
end
|
|
7006
|
+
rescue ::GRPC::BadStatus => e
|
|
7007
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
7008
|
+
end
|
|
7009
|
+
|
|
7010
|
+
##
|
|
7011
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
7012
|
+
# existing policy.
|
|
7013
|
+
#
|
|
7014
|
+
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
|
7015
|
+
#
|
|
7016
|
+
# @overload set_iam_policy(request, options = nil)
|
|
7017
|
+
# Pass arguments to `set_iam_policy` via a request object, either of type
|
|
7018
|
+
# {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
|
7019
|
+
#
|
|
7020
|
+
# @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
|
|
7021
|
+
# A request object representing the call parameters. Required. To specify no
|
|
7022
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
7023
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
7024
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
7025
|
+
#
|
|
7026
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
7027
|
+
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
7028
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
7029
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
7030
|
+
#
|
|
7031
|
+
# @param resource [::String]
|
|
7032
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
7033
|
+
# See the operation documentation for the appropriate value for this field.
|
|
7034
|
+
# @param policy [::Google::Iam::V1::Policy, ::Hash]
|
|
7035
|
+
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
7036
|
+
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
7037
|
+
# valid policy but certain Cloud Platform services (such as Projects)
|
|
7038
|
+
# might reject them.
|
|
7039
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
7040
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
7041
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
7042
|
+
# following default mask is used:
|
|
7043
|
+
#
|
|
7044
|
+
# `paths: "bindings, etag"`
|
|
7045
|
+
#
|
|
7046
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
7047
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
7048
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
7049
|
+
#
|
|
7050
|
+
# @return [::Google::Iam::V1::Policy]
|
|
7051
|
+
#
|
|
7052
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
7053
|
+
#
|
|
7054
|
+
# @example Basic example
|
|
7055
|
+
# require "google/cloud/dataform/v1beta1"
|
|
7056
|
+
#
|
|
7057
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
7058
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
7059
|
+
#
|
|
7060
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
7061
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
|
7062
|
+
#
|
|
7063
|
+
# # Call the set_iam_policy method.
|
|
7064
|
+
# result = client.set_iam_policy request
|
|
7065
|
+
#
|
|
7066
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
7067
|
+
# p result
|
|
7068
|
+
#
|
|
7069
|
+
def set_iam_policy request, options = nil
|
|
7070
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
7071
|
+
|
|
7072
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
|
|
7073
|
+
|
|
7074
|
+
# Converts hash and nil to an options object
|
|
7075
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
7076
|
+
|
|
7077
|
+
# Customize the options with defaults
|
|
7078
|
+
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
|
7079
|
+
|
|
7080
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
7081
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
7082
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
7083
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
7084
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
7085
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
7086
|
+
|
|
7087
|
+
header_params = {}
|
|
7088
|
+
if request.resource
|
|
7089
|
+
header_params["resource"] = request.resource
|
|
7090
|
+
end
|
|
7091
|
+
|
|
7092
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
7093
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
7094
|
+
|
|
7095
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
|
7096
|
+
metadata: metadata,
|
|
7097
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
|
7098
|
+
|
|
7099
|
+
options.apply_defaults timeout: @config.timeout,
|
|
7100
|
+
metadata: @config.metadata,
|
|
7101
|
+
retry_policy: @config.retry_policy
|
|
7102
|
+
|
|
7103
|
+
@dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
|
7104
|
+
yield response, operation if block_given?
|
|
7105
|
+
end
|
|
7106
|
+
rescue ::GRPC::BadStatus => e
|
|
7107
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
7108
|
+
end
|
|
7109
|
+
|
|
7110
|
+
##
|
|
7111
|
+
# Returns permissions that a caller has on the specified resource.
|
|
7112
|
+
# If the resource does not exist, this will return an empty set of
|
|
7113
|
+
# permissions, not a `NOT_FOUND` error.
|
|
7114
|
+
#
|
|
7115
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
7116
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
7117
|
+
# may "fail open" without warning.
|
|
7118
|
+
#
|
|
7119
|
+
# @overload test_iam_permissions(request, options = nil)
|
|
7120
|
+
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
|
7121
|
+
# {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
|
|
7122
|
+
#
|
|
7123
|
+
# @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
|
|
7124
|
+
# A request object representing the call parameters. Required. To specify no
|
|
7125
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
7126
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
7127
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
7128
|
+
#
|
|
7129
|
+
# @overload test_iam_permissions(resource: nil, permissions: nil)
|
|
7130
|
+
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
|
7131
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
7132
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
7133
|
+
#
|
|
7134
|
+
# @param resource [::String]
|
|
7135
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
7136
|
+
# See the operation documentation for the appropriate value for this field.
|
|
7137
|
+
# @param permissions [::Array<::String>]
|
|
7138
|
+
# The set of permissions to check for the `resource`. Permissions with
|
|
7139
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
7140
|
+
# information see
|
|
7141
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
7142
|
+
#
|
|
7143
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
7144
|
+
# @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
|
|
7145
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
7146
|
+
#
|
|
7147
|
+
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
|
7148
|
+
#
|
|
7149
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
7150
|
+
#
|
|
7151
|
+
# @example Basic example
|
|
7152
|
+
# require "google/cloud/dataform/v1beta1"
|
|
7153
|
+
#
|
|
7154
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
7155
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
7156
|
+
#
|
|
7157
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
7158
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
|
7159
|
+
#
|
|
7160
|
+
# # Call the test_iam_permissions method.
|
|
7161
|
+
# result = client.test_iam_permissions request
|
|
7162
|
+
#
|
|
7163
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
|
7164
|
+
# p result
|
|
7165
|
+
#
|
|
7166
|
+
def test_iam_permissions request, options = nil
|
|
7167
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
7168
|
+
|
|
7169
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
|
|
7170
|
+
|
|
7171
|
+
# Converts hash and nil to an options object
|
|
7172
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
7173
|
+
|
|
7174
|
+
# Customize the options with defaults
|
|
7175
|
+
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
|
7176
|
+
|
|
7177
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
7178
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
7179
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
7180
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
7181
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
7182
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
7183
|
+
|
|
7184
|
+
header_params = {}
|
|
7185
|
+
if request.resource
|
|
7186
|
+
header_params["resource"] = request.resource
|
|
7187
|
+
end
|
|
7188
|
+
|
|
7189
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
7190
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
7191
|
+
|
|
7192
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
|
7193
|
+
metadata: metadata,
|
|
7194
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
|
7195
|
+
|
|
7196
|
+
options.apply_defaults timeout: @config.timeout,
|
|
7197
|
+
metadata: @config.metadata,
|
|
7198
|
+
retry_policy: @config.retry_policy
|
|
7199
|
+
|
|
7200
|
+
@dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
|
7201
|
+
yield response, operation if block_given?
|
|
7202
|
+
end
|
|
7203
|
+
rescue ::GRPC::BadStatus => e
|
|
7204
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
7205
|
+
end
|
|
7206
|
+
|
|
5209
7207
|
##
|
|
5210
7208
|
# Configuration class for the Dataform API.
|
|
5211
7209
|
#
|
|
@@ -5222,17 +7220,17 @@ module Google
|
|
|
5222
7220
|
# @example
|
|
5223
7221
|
#
|
|
5224
7222
|
# # Modify the global config, setting the timeout for
|
|
5225
|
-
# #
|
|
7223
|
+
# # get_team_folder to 20 seconds,
|
|
5226
7224
|
# # and all remaining timeouts to 10 seconds.
|
|
5227
7225
|
# ::Google::Cloud::Dataform::V1beta1::Dataform::Client.configure do |config|
|
|
5228
7226
|
# config.timeout = 10.0
|
|
5229
|
-
# config.rpcs.
|
|
7227
|
+
# config.rpcs.get_team_folder.timeout = 20.0
|
|
5230
7228
|
# end
|
|
5231
7229
|
#
|
|
5232
7230
|
# # Apply the above configuration only to a new client.
|
|
5233
7231
|
# client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new do |config|
|
|
5234
7232
|
# config.timeout = 10.0
|
|
5235
|
-
# config.rpcs.
|
|
7233
|
+
# config.rpcs.get_team_folder.timeout = 20.0
|
|
5236
7234
|
# end
|
|
5237
7235
|
#
|
|
5238
7236
|
# @!attribute [rw] endpoint
|
|
@@ -5302,6 +7300,7 @@ module Google
|
|
|
5302
7300
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
5303
7301
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
5304
7302
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
7303
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
5305
7304
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
5306
7305
|
# trigger a retry.
|
|
5307
7306
|
# @return [::Hash]
|
|
@@ -5385,10 +7384,86 @@ module Google
|
|
|
5385
7384
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
5386
7385
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
5387
7386
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
7387
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
5388
7388
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
5389
7389
|
# trigger a retry.
|
|
5390
7390
|
#
|
|
5391
7391
|
class Rpcs
|
|
7392
|
+
##
|
|
7393
|
+
# RPC-specific configuration for `get_team_folder`
|
|
7394
|
+
# @return [::Gapic::Config::Method]
|
|
7395
|
+
#
|
|
7396
|
+
attr_reader :get_team_folder
|
|
7397
|
+
##
|
|
7398
|
+
# RPC-specific configuration for `create_team_folder`
|
|
7399
|
+
# @return [::Gapic::Config::Method]
|
|
7400
|
+
#
|
|
7401
|
+
attr_reader :create_team_folder
|
|
7402
|
+
##
|
|
7403
|
+
# RPC-specific configuration for `update_team_folder`
|
|
7404
|
+
# @return [::Gapic::Config::Method]
|
|
7405
|
+
#
|
|
7406
|
+
attr_reader :update_team_folder
|
|
7407
|
+
##
|
|
7408
|
+
# RPC-specific configuration for `delete_team_folder`
|
|
7409
|
+
# @return [::Gapic::Config::Method]
|
|
7410
|
+
#
|
|
7411
|
+
attr_reader :delete_team_folder
|
|
7412
|
+
##
|
|
7413
|
+
# RPC-specific configuration for `delete_team_folder_tree`
|
|
7414
|
+
# @return [::Gapic::Config::Method]
|
|
7415
|
+
#
|
|
7416
|
+
attr_reader :delete_team_folder_tree
|
|
7417
|
+
##
|
|
7418
|
+
# RPC-specific configuration for `query_team_folder_contents`
|
|
7419
|
+
# @return [::Gapic::Config::Method]
|
|
7420
|
+
#
|
|
7421
|
+
attr_reader :query_team_folder_contents
|
|
7422
|
+
##
|
|
7423
|
+
# RPC-specific configuration for `search_team_folders`
|
|
7424
|
+
# @return [::Gapic::Config::Method]
|
|
7425
|
+
#
|
|
7426
|
+
attr_reader :search_team_folders
|
|
7427
|
+
##
|
|
7428
|
+
# RPC-specific configuration for `get_folder`
|
|
7429
|
+
# @return [::Gapic::Config::Method]
|
|
7430
|
+
#
|
|
7431
|
+
attr_reader :get_folder
|
|
7432
|
+
##
|
|
7433
|
+
# RPC-specific configuration for `create_folder`
|
|
7434
|
+
# @return [::Gapic::Config::Method]
|
|
7435
|
+
#
|
|
7436
|
+
attr_reader :create_folder
|
|
7437
|
+
##
|
|
7438
|
+
# RPC-specific configuration for `update_folder`
|
|
7439
|
+
# @return [::Gapic::Config::Method]
|
|
7440
|
+
#
|
|
7441
|
+
attr_reader :update_folder
|
|
7442
|
+
##
|
|
7443
|
+
# RPC-specific configuration for `delete_folder`
|
|
7444
|
+
# @return [::Gapic::Config::Method]
|
|
7445
|
+
#
|
|
7446
|
+
attr_reader :delete_folder
|
|
7447
|
+
##
|
|
7448
|
+
# RPC-specific configuration for `delete_folder_tree`
|
|
7449
|
+
# @return [::Gapic::Config::Method]
|
|
7450
|
+
#
|
|
7451
|
+
attr_reader :delete_folder_tree
|
|
7452
|
+
##
|
|
7453
|
+
# RPC-specific configuration for `query_folder_contents`
|
|
7454
|
+
# @return [::Gapic::Config::Method]
|
|
7455
|
+
#
|
|
7456
|
+
attr_reader :query_folder_contents
|
|
7457
|
+
##
|
|
7458
|
+
# RPC-specific configuration for `query_user_root_contents`
|
|
7459
|
+
# @return [::Gapic::Config::Method]
|
|
7460
|
+
#
|
|
7461
|
+
attr_reader :query_user_root_contents
|
|
7462
|
+
##
|
|
7463
|
+
# RPC-specific configuration for `move_folder`
|
|
7464
|
+
# @return [::Gapic::Config::Method]
|
|
7465
|
+
#
|
|
7466
|
+
attr_reader :move_folder
|
|
5392
7467
|
##
|
|
5393
7468
|
# RPC-specific configuration for `list_repositories`
|
|
5394
7469
|
# @return [::Gapic::Config::Method]
|
|
@@ -5415,6 +7490,16 @@ module Google
|
|
|
5415
7490
|
#
|
|
5416
7491
|
attr_reader :delete_repository
|
|
5417
7492
|
##
|
|
7493
|
+
# RPC-specific configuration for `delete_repository_long_running`
|
|
7494
|
+
# @return [::Gapic::Config::Method]
|
|
7495
|
+
#
|
|
7496
|
+
attr_reader :delete_repository_long_running
|
|
7497
|
+
##
|
|
7498
|
+
# RPC-specific configuration for `move_repository`
|
|
7499
|
+
# @return [::Gapic::Config::Method]
|
|
7500
|
+
#
|
|
7501
|
+
attr_reader :move_repository
|
|
7502
|
+
##
|
|
5418
7503
|
# RPC-specific configuration for `commit_repository_changes`
|
|
5419
7504
|
# @return [::Gapic::Config::Method]
|
|
5420
7505
|
#
|
|
@@ -5659,9 +7744,54 @@ module Google
|
|
|
5659
7744
|
# @return [::Gapic::Config::Method]
|
|
5660
7745
|
#
|
|
5661
7746
|
attr_reader :update_config
|
|
7747
|
+
##
|
|
7748
|
+
# RPC-specific configuration for `get_iam_policy`
|
|
7749
|
+
# @return [::Gapic::Config::Method]
|
|
7750
|
+
#
|
|
7751
|
+
attr_reader :get_iam_policy
|
|
7752
|
+
##
|
|
7753
|
+
# RPC-specific configuration for `set_iam_policy`
|
|
7754
|
+
# @return [::Gapic::Config::Method]
|
|
7755
|
+
#
|
|
7756
|
+
attr_reader :set_iam_policy
|
|
7757
|
+
##
|
|
7758
|
+
# RPC-specific configuration for `test_iam_permissions`
|
|
7759
|
+
# @return [::Gapic::Config::Method]
|
|
7760
|
+
#
|
|
7761
|
+
attr_reader :test_iam_permissions
|
|
5662
7762
|
|
|
5663
7763
|
# @private
|
|
5664
7764
|
def initialize parent_rpcs = nil
|
|
7765
|
+
get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder
|
|
7766
|
+
@get_team_folder = ::Gapic::Config::Method.new get_team_folder_config
|
|
7767
|
+
create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder
|
|
7768
|
+
@create_team_folder = ::Gapic::Config::Method.new create_team_folder_config
|
|
7769
|
+
update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder
|
|
7770
|
+
@update_team_folder = ::Gapic::Config::Method.new update_team_folder_config
|
|
7771
|
+
delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder
|
|
7772
|
+
@delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config
|
|
7773
|
+
delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree
|
|
7774
|
+
@delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config
|
|
7775
|
+
query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents
|
|
7776
|
+
@query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config
|
|
7777
|
+
search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders
|
|
7778
|
+
@search_team_folders = ::Gapic::Config::Method.new search_team_folders_config
|
|
7779
|
+
get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder
|
|
7780
|
+
@get_folder = ::Gapic::Config::Method.new get_folder_config
|
|
7781
|
+
create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder
|
|
7782
|
+
@create_folder = ::Gapic::Config::Method.new create_folder_config
|
|
7783
|
+
update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder
|
|
7784
|
+
@update_folder = ::Gapic::Config::Method.new update_folder_config
|
|
7785
|
+
delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder
|
|
7786
|
+
@delete_folder = ::Gapic::Config::Method.new delete_folder_config
|
|
7787
|
+
delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree
|
|
7788
|
+
@delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config
|
|
7789
|
+
query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents
|
|
7790
|
+
@query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config
|
|
7791
|
+
query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents
|
|
7792
|
+
@query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config
|
|
7793
|
+
move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder
|
|
7794
|
+
@move_folder = ::Gapic::Config::Method.new move_folder_config
|
|
5665
7795
|
list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
|
|
5666
7796
|
@list_repositories = ::Gapic::Config::Method.new list_repositories_config
|
|
5667
7797
|
get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
|
|
@@ -5672,6 +7802,10 @@ module Google
|
|
|
5672
7802
|
@update_repository = ::Gapic::Config::Method.new update_repository_config
|
|
5673
7803
|
delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
|
|
5674
7804
|
@delete_repository = ::Gapic::Config::Method.new delete_repository_config
|
|
7805
|
+
delete_repository_long_running_config = parent_rpcs.delete_repository_long_running if parent_rpcs.respond_to? :delete_repository_long_running
|
|
7806
|
+
@delete_repository_long_running = ::Gapic::Config::Method.new delete_repository_long_running_config
|
|
7807
|
+
move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository
|
|
7808
|
+
@move_repository = ::Gapic::Config::Method.new move_repository_config
|
|
5675
7809
|
commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes
|
|
5676
7810
|
@commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config
|
|
5677
7811
|
read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file
|
|
@@ -5770,6 +7904,12 @@ module Google
|
|
|
5770
7904
|
@get_config = ::Gapic::Config::Method.new get_config_config
|
|
5771
7905
|
update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config
|
|
5772
7906
|
@update_config = ::Gapic::Config::Method.new update_config_config
|
|
7907
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
|
7908
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
|
7909
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
|
7910
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
|
7911
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
|
7912
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
|
5773
7913
|
|
|
5774
7914
|
yield self if block_given?
|
|
5775
7915
|
end
|