google-cloud-dataform-v1beta1 0.15.0 → 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/lib/google/cloud/dataform/v1beta1/dataform/client.rb +367 -19
- data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +21 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +346 -19
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +186 -0
- data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +11 -1
- data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +8 -0
- data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/dataform/v1beta1/dataform.rb +242 -26
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b717e1aaa5827400300c139438ab9472276e6089500973bd92cfda58bcea9bb
|
|
4
|
+
data.tar.gz: baa2818da409e79bc2689e5792d923cce0499fcd61bafe7077eae6664870dd01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac790311c0d89ac6e7a848aa85c5363cdb622c82b2addcc6e0249a9687009127819c3bb0835c9061dcc0283ed554a85dca0185a910c58c231a0e9087ed03e664
|
|
7
|
+
data.tar.gz: 2a0d52d9032f548a5b846002f32d074b773d17e8cd89185435bf61be80824be6f4c6491d906e8c0b0c14d56aa48f0ba60555c2f68d583531f4869d73685577f7
|
|
@@ -339,6 +339,8 @@ module Google
|
|
|
339
339
|
# @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
|
|
340
340
|
# Required. The TeamFolder to create.
|
|
341
341
|
# @param team_folder_id [::String]
|
|
342
|
+
# Deprecated: This field is not used. The resource name is generated
|
|
343
|
+
# automatically.
|
|
342
344
|
# The ID to use for the TeamFolder, which will become the final component of
|
|
343
345
|
# the TeamFolder's resource name.
|
|
344
346
|
#
|
|
@@ -579,6 +581,110 @@ module Google
|
|
|
579
581
|
raise ::Google::Cloud::Error.from_error(e)
|
|
580
582
|
end
|
|
581
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
|
+
|
|
582
688
|
##
|
|
583
689
|
# Returns the contents of a given TeamFolder.
|
|
584
690
|
#
|
|
@@ -598,7 +704,7 @@ module Google
|
|
|
598
704
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
599
705
|
#
|
|
600
706
|
# @param team_folder [::String]
|
|
601
|
-
# Required.
|
|
707
|
+
# Required. Resource name of the TeamFolder to list contents for.
|
|
602
708
|
# Format: `projects/*/locations/*/teamFolders/*`.
|
|
603
709
|
# @param page_size [::Integer]
|
|
604
710
|
# Optional. Maximum number of paths to return. The server may return fewer
|
|
@@ -617,14 +723,16 @@ module Google
|
|
|
617
723
|
# order. Supported keywords: `display_name` (default), `create_time`,
|
|
618
724
|
# last_modified_time.
|
|
619
725
|
# Examples:
|
|
620
|
-
#
|
|
621
|
-
#
|
|
726
|
+
#
|
|
727
|
+
# * `orderBy="display_name"`
|
|
728
|
+
# * `orderBy="display_name desc"`
|
|
622
729
|
# @param filter [::String]
|
|
623
730
|
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
624
731
|
# only supported on the `display_name` field.
|
|
625
732
|
#
|
|
626
733
|
# Example:
|
|
627
|
-
#
|
|
734
|
+
#
|
|
735
|
+
# * `filter="display_name="MyFolder""`
|
|
628
736
|
#
|
|
629
737
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
630
738
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
|
|
@@ -719,9 +827,9 @@ module Google
|
|
|
719
827
|
# Required. Location in which to query TeamFolders.
|
|
720
828
|
# Format: `projects/*/locations/*`.
|
|
721
829
|
# @param page_size [::Integer]
|
|
722
|
-
# Optional. Maximum number of TeamFolders to return. The server may return
|
|
723
|
-
# fewer items than requested. If unspecified, the server will pick
|
|
724
|
-
#
|
|
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.
|
|
725
833
|
# @param page_token [::String]
|
|
726
834
|
# Optional. Page token received from a previous `SearchTeamFolders` call.
|
|
727
835
|
# Provide this to retrieve the subsequent page.
|
|
@@ -733,14 +841,16 @@ module Google
|
|
|
733
841
|
# Optional. Field to additionally sort results by.
|
|
734
842
|
# Supported keywords: `display_name` (default), `create_time`,
|
|
735
843
|
# `last_modified_time`. Examples:
|
|
736
|
-
#
|
|
737
|
-
#
|
|
844
|
+
#
|
|
845
|
+
# * `orderBy="display_name"`
|
|
846
|
+
# * `orderBy="display_name desc"`
|
|
738
847
|
# @param filter [::String]
|
|
739
848
|
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
740
849
|
# only supported on the `display_name` field.
|
|
741
850
|
#
|
|
742
851
|
# Example:
|
|
743
|
-
#
|
|
852
|
+
#
|
|
853
|
+
# * `filter="display_name="MyFolder""`
|
|
744
854
|
#
|
|
745
855
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
746
856
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
|
|
@@ -921,6 +1031,8 @@ module Google
|
|
|
921
1031
|
# @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
|
|
922
1032
|
# Required. The Folder to create.
|
|
923
1033
|
# @param folder_id [::String]
|
|
1034
|
+
# Deprecated: This field is not used. The resource name is generated
|
|
1035
|
+
# automatically.
|
|
924
1036
|
# The ID to use for the Folder, which will become the final component of
|
|
925
1037
|
# the Folder's resource name.
|
|
926
1038
|
#
|
|
@@ -1163,6 +1275,110 @@ module Google
|
|
|
1163
1275
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1164
1276
|
end
|
|
1165
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
|
+
|
|
1166
1382
|
##
|
|
1167
1383
|
# Returns the contents of a given Folder.
|
|
1168
1384
|
#
|
|
@@ -1182,7 +1398,7 @@ module Google
|
|
|
1182
1398
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1183
1399
|
#
|
|
1184
1400
|
# @param folder [::String]
|
|
1185
|
-
# Required.
|
|
1401
|
+
# Required. Resource name of the Folder to list contents for.
|
|
1186
1402
|
# Format: projects/*/locations/*/folders/*
|
|
1187
1403
|
# @param page_size [::Integer]
|
|
1188
1404
|
# Optional. Maximum number of paths to return. The server may return fewer
|
|
@@ -1201,14 +1417,16 @@ module Google
|
|
|
1201
1417
|
# order. Supported keywords: display_name (default), create_time,
|
|
1202
1418
|
# last_modified_time.
|
|
1203
1419
|
# Examples:
|
|
1204
|
-
#
|
|
1205
|
-
#
|
|
1420
|
+
#
|
|
1421
|
+
# * `orderBy="display_name"`
|
|
1422
|
+
# * `orderBy="display_name desc"`
|
|
1206
1423
|
# @param filter [::String]
|
|
1207
1424
|
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
1208
1425
|
# only supported on the `display_name` field.
|
|
1209
1426
|
#
|
|
1210
1427
|
# Example:
|
|
1211
|
-
#
|
|
1428
|
+
#
|
|
1429
|
+
# * `filter="display_name="MyFolder""`
|
|
1212
1430
|
#
|
|
1213
1431
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1214
1432
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
|
|
@@ -1301,7 +1519,7 @@ module Google
|
|
|
1301
1519
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1302
1520
|
#
|
|
1303
1521
|
# @param location [::String]
|
|
1304
|
-
# Required. Location of the user root folder
|
|
1522
|
+
# Required. Location of the user root folder to list contents for.
|
|
1305
1523
|
# Format: projects/*/locations/*
|
|
1306
1524
|
# @param page_size [::Integer]
|
|
1307
1525
|
# Optional. Maximum number of paths to return. The server may return fewer
|
|
@@ -1319,14 +1537,16 @@ module Google
|
|
|
1319
1537
|
# Will order Folders before Repositories, and then by `order_by` in ascending
|
|
1320
1538
|
# order. Supported keywords: display_name (default), created_at,
|
|
1321
1539
|
# last_modified_at. Examples:
|
|
1322
|
-
#
|
|
1323
|
-
#
|
|
1540
|
+
#
|
|
1541
|
+
# * `orderBy="display_name"`
|
|
1542
|
+
# * `orderBy="display_name desc"`
|
|
1324
1543
|
# @param filter [::String]
|
|
1325
1544
|
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
1326
1545
|
# only supported on the `display_name` field.
|
|
1327
1546
|
#
|
|
1328
1547
|
# Example:
|
|
1329
|
-
#
|
|
1548
|
+
#
|
|
1549
|
+
# * `filter="display_name="MyFolder""`
|
|
1330
1550
|
#
|
|
1331
1551
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1332
1552
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
|
|
@@ -1970,6 +2190,108 @@ module Google
|
|
|
1970
2190
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1971
2191
|
end
|
|
1972
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
|
+
|
|
1973
2295
|
##
|
|
1974
2296
|
# Moves a Repository to a new location.
|
|
1975
2297
|
#
|
|
@@ -3730,7 +4052,7 @@ module Google
|
|
|
3730
4052
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3731
4053
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
3732
4054
|
#
|
|
3733
|
-
# @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)
|
|
3734
4056
|
# Pass arguments to `query_directory_contents` via keyword arguments. Note that at
|
|
3735
4057
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3736
4058
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -3751,6 +4073,11 @@ module Google
|
|
|
3751
4073
|
# When paginating, all other parameters provided to
|
|
3752
4074
|
# `QueryDirectoryContents`, with the exception of `page_size`, must match the
|
|
3753
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.
|
|
3754
4081
|
#
|
|
3755
4082
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
3756
4083
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
|
|
@@ -7083,6 +7410,11 @@ module Google
|
|
|
7083
7410
|
#
|
|
7084
7411
|
attr_reader :delete_team_folder
|
|
7085
7412
|
##
|
|
7413
|
+
# RPC-specific configuration for `delete_team_folder_tree`
|
|
7414
|
+
# @return [::Gapic::Config::Method]
|
|
7415
|
+
#
|
|
7416
|
+
attr_reader :delete_team_folder_tree
|
|
7417
|
+
##
|
|
7086
7418
|
# RPC-specific configuration for `query_team_folder_contents`
|
|
7087
7419
|
# @return [::Gapic::Config::Method]
|
|
7088
7420
|
#
|
|
@@ -7113,6 +7445,11 @@ module Google
|
|
|
7113
7445
|
#
|
|
7114
7446
|
attr_reader :delete_folder
|
|
7115
7447
|
##
|
|
7448
|
+
# RPC-specific configuration for `delete_folder_tree`
|
|
7449
|
+
# @return [::Gapic::Config::Method]
|
|
7450
|
+
#
|
|
7451
|
+
attr_reader :delete_folder_tree
|
|
7452
|
+
##
|
|
7116
7453
|
# RPC-specific configuration for `query_folder_contents`
|
|
7117
7454
|
# @return [::Gapic::Config::Method]
|
|
7118
7455
|
#
|
|
@@ -7153,6 +7490,11 @@ module Google
|
|
|
7153
7490
|
#
|
|
7154
7491
|
attr_reader :delete_repository
|
|
7155
7492
|
##
|
|
7493
|
+
# RPC-specific configuration for `delete_repository_long_running`
|
|
7494
|
+
# @return [::Gapic::Config::Method]
|
|
7495
|
+
#
|
|
7496
|
+
attr_reader :delete_repository_long_running
|
|
7497
|
+
##
|
|
7156
7498
|
# RPC-specific configuration for `move_repository`
|
|
7157
7499
|
# @return [::Gapic::Config::Method]
|
|
7158
7500
|
#
|
|
@@ -7428,6 +7770,8 @@ module Google
|
|
|
7428
7770
|
@update_team_folder = ::Gapic::Config::Method.new update_team_folder_config
|
|
7429
7771
|
delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder
|
|
7430
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
|
|
7431
7775
|
query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents
|
|
7432
7776
|
@query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config
|
|
7433
7777
|
search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders
|
|
@@ -7440,6 +7784,8 @@ module Google
|
|
|
7440
7784
|
@update_folder = ::Gapic::Config::Method.new update_folder_config
|
|
7441
7785
|
delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder
|
|
7442
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
|
|
7443
7789
|
query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents
|
|
7444
7790
|
@query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config
|
|
7445
7791
|
query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents
|
|
@@ -7456,6 +7802,8 @@ module Google
|
|
|
7456
7802
|
@update_repository = ::Gapic::Config::Method.new update_repository_config
|
|
7457
7803
|
delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
|
|
7458
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
|
|
7459
7807
|
move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository
|
|
7460
7808
|
@move_repository = ::Gapic::Config::Method.new move_repository_config
|
|
7461
7809
|
commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes
|
|
@@ -125,6 +125,27 @@ module Google
|
|
|
125
125
|
"projects/#{project}/locations/#{location}/folders/#{folder}"
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
+
##
|
|
129
|
+
# Create a fully-qualified GitRepositoryLink resource string.
|
|
130
|
+
#
|
|
131
|
+
# The resource will be in the following format:
|
|
132
|
+
#
|
|
133
|
+
# `projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}`
|
|
134
|
+
#
|
|
135
|
+
# @param project [String]
|
|
136
|
+
# @param location [String]
|
|
137
|
+
# @param connection [String]
|
|
138
|
+
# @param git_repository_link [String]
|
|
139
|
+
#
|
|
140
|
+
# @return [::String]
|
|
141
|
+
def git_repository_link_path project:, location:, connection:, git_repository_link:
|
|
142
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
143
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
144
|
+
raise ::ArgumentError, "connection cannot contain /" if connection.to_s.include? "/"
|
|
145
|
+
|
|
146
|
+
"projects/#{project}/locations/#{location}/connections/#{connection}/gitRepositoryLinks/#{git_repository_link}"
|
|
147
|
+
end
|
|
148
|
+
|
|
128
149
|
##
|
|
129
150
|
# Create a fully-qualified Location resource string.
|
|
130
151
|
#
|