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
|
@@ -326,6 +326,8 @@ module Google
|
|
|
326
326
|
# @param team_folder [::Google::Cloud::Dataform::V1beta1::TeamFolder, ::Hash]
|
|
327
327
|
# Required. The TeamFolder to create.
|
|
328
328
|
# @param team_folder_id [::String]
|
|
329
|
+
# Deprecated: This field is not used. The resource name is generated
|
|
330
|
+
# automatically.
|
|
329
331
|
# The ID to use for the TeamFolder, which will become the final component of
|
|
330
332
|
# the TeamFolder's resource name.
|
|
331
333
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -545,6 +547,103 @@ module Google
|
|
|
545
547
|
raise ::Google::Cloud::Error.from_error(e)
|
|
546
548
|
end
|
|
547
549
|
|
|
550
|
+
##
|
|
551
|
+
# Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
|
|
552
|
+
# ReleaseConfigs, and WorkflowConfigs).
|
|
553
|
+
#
|
|
554
|
+
# @overload delete_team_folder_tree(request, options = nil)
|
|
555
|
+
# Pass arguments to `delete_team_folder_tree` via a request object, either of type
|
|
556
|
+
# {::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest} or an equivalent Hash.
|
|
557
|
+
#
|
|
558
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest, ::Hash]
|
|
559
|
+
# A request object representing the call parameters. Required. To specify no
|
|
560
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
561
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
563
|
+
#
|
|
564
|
+
# @overload delete_team_folder_tree(name: nil, force: nil)
|
|
565
|
+
# Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at
|
|
566
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
567
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
568
|
+
#
|
|
569
|
+
# @param name [::String]
|
|
570
|
+
# Required. The TeamFolder's name.
|
|
571
|
+
# Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder}
|
|
572
|
+
# @param force [::Boolean]
|
|
573
|
+
# Optional. If `false` (default): The operation will fail if any
|
|
574
|
+
# Repository within the folder hierarchy has associated Release Configs or
|
|
575
|
+
# Workflow Configs.
|
|
576
|
+
#
|
|
577
|
+
# If `true`: The operation will attempt to delete everything, including any
|
|
578
|
+
# Release Configs and Workflow Configs linked to Repositories within the
|
|
579
|
+
# folder hierarchy. This permanently removes schedules and resources.
|
|
580
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
581
|
+
# @yieldparam result [::Gapic::Operation]
|
|
582
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
583
|
+
#
|
|
584
|
+
# @return [::Gapic::Operation]
|
|
585
|
+
#
|
|
586
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
587
|
+
#
|
|
588
|
+
# @example Basic example
|
|
589
|
+
# require "google/cloud/dataform/v1beta1"
|
|
590
|
+
#
|
|
591
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
592
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
|
|
593
|
+
#
|
|
594
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
595
|
+
# request = Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest.new
|
|
596
|
+
#
|
|
597
|
+
# # Call the delete_team_folder_tree method.
|
|
598
|
+
# result = client.delete_team_folder_tree request
|
|
599
|
+
#
|
|
600
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
601
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
602
|
+
# # Here is how to wait for a response.
|
|
603
|
+
# result.wait_until_done! timeout: 60
|
|
604
|
+
# if result.response?
|
|
605
|
+
# p result.response
|
|
606
|
+
# else
|
|
607
|
+
# puts "No response received."
|
|
608
|
+
# end
|
|
609
|
+
#
|
|
610
|
+
def delete_team_folder_tree request, options = nil
|
|
611
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
612
|
+
|
|
613
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest
|
|
614
|
+
|
|
615
|
+
# Converts hash and nil to an options object
|
|
616
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
617
|
+
|
|
618
|
+
# Customize the options with defaults
|
|
619
|
+
call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h
|
|
620
|
+
|
|
621
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
622
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
623
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
624
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
|
625
|
+
transports_version_send: [:rest]
|
|
626
|
+
|
|
627
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
628
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
629
|
+
|
|
630
|
+
options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout,
|
|
631
|
+
metadata: call_metadata,
|
|
632
|
+
retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy
|
|
633
|
+
|
|
634
|
+
options.apply_defaults timeout: @config.timeout,
|
|
635
|
+
metadata: @config.metadata,
|
|
636
|
+
retry_policy: @config.retry_policy
|
|
637
|
+
|
|
638
|
+
@dataform_stub.delete_team_folder_tree request, options do |result, operation|
|
|
639
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
640
|
+
yield result, operation if block_given?
|
|
641
|
+
throw :response, result
|
|
642
|
+
end
|
|
643
|
+
rescue ::Gapic::Rest::Error => e
|
|
644
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
645
|
+
end
|
|
646
|
+
|
|
548
647
|
##
|
|
549
648
|
# Returns the contents of a given TeamFolder.
|
|
550
649
|
#
|
|
@@ -564,7 +663,7 @@ module Google
|
|
|
564
663
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
565
664
|
#
|
|
566
665
|
# @param team_folder [::String]
|
|
567
|
-
# Required.
|
|
666
|
+
# Required. Resource name of the TeamFolder to list contents for.
|
|
568
667
|
# Format: `projects/*/locations/*/teamFolders/*`.
|
|
569
668
|
# @param page_size [::Integer]
|
|
570
669
|
# Optional. Maximum number of paths to return. The server may return fewer
|
|
@@ -583,14 +682,16 @@ module Google
|
|
|
583
682
|
# order. Supported keywords: `display_name` (default), `create_time`,
|
|
584
683
|
# last_modified_time.
|
|
585
684
|
# Examples:
|
|
586
|
-
#
|
|
587
|
-
#
|
|
685
|
+
#
|
|
686
|
+
# * `orderBy="display_name"`
|
|
687
|
+
# * `orderBy="display_name desc"`
|
|
588
688
|
# @param filter [::String]
|
|
589
689
|
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
590
690
|
# only supported on the `display_name` field.
|
|
591
691
|
#
|
|
592
692
|
# Example:
|
|
593
|
-
#
|
|
693
|
+
#
|
|
694
|
+
# * `filter="display_name="MyFolder""`
|
|
594
695
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
595
696
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>]
|
|
596
697
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -678,9 +779,9 @@ module Google
|
|
|
678
779
|
# Required. Location in which to query TeamFolders.
|
|
679
780
|
# Format: `projects/*/locations/*`.
|
|
680
781
|
# @param page_size [::Integer]
|
|
681
|
-
# Optional. Maximum number of TeamFolders to return. The server may return
|
|
682
|
-
# fewer items than requested. If unspecified, the server will pick
|
|
683
|
-
#
|
|
782
|
+
# Optional. Maximum number of `TeamFolders` to return. The server may return
|
|
783
|
+
# fewer items than requested. If unspecified, the server will pick a default
|
|
784
|
+
# of `page_size` = 50.
|
|
684
785
|
# @param page_token [::String]
|
|
685
786
|
# Optional. Page token received from a previous `SearchTeamFolders` call.
|
|
686
787
|
# Provide this to retrieve the subsequent page.
|
|
@@ -692,14 +793,16 @@ module Google
|
|
|
692
793
|
# Optional. Field to additionally sort results by.
|
|
693
794
|
# Supported keywords: `display_name` (default), `create_time`,
|
|
694
795
|
# `last_modified_time`. Examples:
|
|
695
|
-
#
|
|
696
|
-
#
|
|
796
|
+
#
|
|
797
|
+
# * `orderBy="display_name"`
|
|
798
|
+
# * `orderBy="display_name desc"`
|
|
697
799
|
# @param filter [::String]
|
|
698
800
|
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
699
801
|
# only supported on the `display_name` field.
|
|
700
802
|
#
|
|
701
803
|
# Example:
|
|
702
|
-
#
|
|
804
|
+
#
|
|
805
|
+
# * `filter="display_name="MyFolder""`
|
|
703
806
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
704
807
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::SearchTeamFoldersResponse::TeamFolderSearchResult>]
|
|
705
808
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -866,6 +969,8 @@ module Google
|
|
|
866
969
|
# @param folder [::Google::Cloud::Dataform::V1beta1::Folder, ::Hash]
|
|
867
970
|
# Required. The Folder to create.
|
|
868
971
|
# @param folder_id [::String]
|
|
972
|
+
# Deprecated: This field is not used. The resource name is generated
|
|
973
|
+
# automatically.
|
|
869
974
|
# The ID to use for the Folder, which will become the final component of
|
|
870
975
|
# the Folder's resource name.
|
|
871
976
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1087,6 +1192,103 @@ module Google
|
|
|
1087
1192
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1088
1193
|
end
|
|
1089
1194
|
|
|
1195
|
+
##
|
|
1196
|
+
# Deletes a Folder with its contents (Folders, Repositories, Workspaces,
|
|
1197
|
+
# ReleaseConfigs, and WorkflowConfigs).
|
|
1198
|
+
#
|
|
1199
|
+
# @overload delete_folder_tree(request, options = nil)
|
|
1200
|
+
# Pass arguments to `delete_folder_tree` via a request object, either of type
|
|
1201
|
+
# {::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest} or an equivalent Hash.
|
|
1202
|
+
#
|
|
1203
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest, ::Hash]
|
|
1204
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1205
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1206
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1207
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1208
|
+
#
|
|
1209
|
+
# @overload delete_folder_tree(name: nil, force: nil)
|
|
1210
|
+
# Pass arguments to `delete_folder_tree` via keyword arguments. Note that at
|
|
1211
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1212
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1213
|
+
#
|
|
1214
|
+
# @param name [::String]
|
|
1215
|
+
# Required. The Folder's name.
|
|
1216
|
+
# Format: projects/\\{project}/locations/\\{location}/folders/\\{folder}
|
|
1217
|
+
# @param force [::Boolean]
|
|
1218
|
+
# Optional. If `false` (default): The operation will fail if any
|
|
1219
|
+
# Repository within the folder hierarchy has associated Release Configs or
|
|
1220
|
+
# Workflow Configs.
|
|
1221
|
+
#
|
|
1222
|
+
# If `true`: The operation will attempt to delete everything, including any
|
|
1223
|
+
# Release Configs and Workflow Configs linked to Repositories within the
|
|
1224
|
+
# folder hierarchy. This permanently removes schedules and resources.
|
|
1225
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1226
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1227
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1228
|
+
#
|
|
1229
|
+
# @return [::Gapic::Operation]
|
|
1230
|
+
#
|
|
1231
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1232
|
+
#
|
|
1233
|
+
# @example Basic example
|
|
1234
|
+
# require "google/cloud/dataform/v1beta1"
|
|
1235
|
+
#
|
|
1236
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1237
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
|
|
1238
|
+
#
|
|
1239
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1240
|
+
# request = Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest.new
|
|
1241
|
+
#
|
|
1242
|
+
# # Call the delete_folder_tree method.
|
|
1243
|
+
# result = client.delete_folder_tree request
|
|
1244
|
+
#
|
|
1245
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1246
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1247
|
+
# # Here is how to wait for a response.
|
|
1248
|
+
# result.wait_until_done! timeout: 60
|
|
1249
|
+
# if result.response?
|
|
1250
|
+
# p result.response
|
|
1251
|
+
# else
|
|
1252
|
+
# puts "No response received."
|
|
1253
|
+
# end
|
|
1254
|
+
#
|
|
1255
|
+
def delete_folder_tree request, options = nil
|
|
1256
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1257
|
+
|
|
1258
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest
|
|
1259
|
+
|
|
1260
|
+
# Converts hash and nil to an options object
|
|
1261
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1262
|
+
|
|
1263
|
+
# Customize the options with defaults
|
|
1264
|
+
call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h
|
|
1265
|
+
|
|
1266
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1267
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1268
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1269
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
|
1270
|
+
transports_version_send: [:rest]
|
|
1271
|
+
|
|
1272
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1273
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1274
|
+
|
|
1275
|
+
options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout,
|
|
1276
|
+
metadata: call_metadata,
|
|
1277
|
+
retry_policy: @config.rpcs.delete_folder_tree.retry_policy
|
|
1278
|
+
|
|
1279
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1280
|
+
metadata: @config.metadata,
|
|
1281
|
+
retry_policy: @config.retry_policy
|
|
1282
|
+
|
|
1283
|
+
@dataform_stub.delete_folder_tree request, options do |result, operation|
|
|
1284
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1285
|
+
yield result, operation if block_given?
|
|
1286
|
+
throw :response, result
|
|
1287
|
+
end
|
|
1288
|
+
rescue ::Gapic::Rest::Error => e
|
|
1289
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1290
|
+
end
|
|
1291
|
+
|
|
1090
1292
|
##
|
|
1091
1293
|
# Returns the contents of a given Folder.
|
|
1092
1294
|
#
|
|
@@ -1106,7 +1308,7 @@ module Google
|
|
|
1106
1308
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1107
1309
|
#
|
|
1108
1310
|
# @param folder [::String]
|
|
1109
|
-
# Required.
|
|
1311
|
+
# Required. Resource name of the Folder to list contents for.
|
|
1110
1312
|
# Format: projects/*/locations/*/folders/*
|
|
1111
1313
|
# @param page_size [::Integer]
|
|
1112
1314
|
# Optional. Maximum number of paths to return. The server may return fewer
|
|
@@ -1125,14 +1327,16 @@ module Google
|
|
|
1125
1327
|
# order. Supported keywords: display_name (default), create_time,
|
|
1126
1328
|
# last_modified_time.
|
|
1127
1329
|
# Examples:
|
|
1128
|
-
#
|
|
1129
|
-
#
|
|
1330
|
+
#
|
|
1331
|
+
# * `orderBy="display_name"`
|
|
1332
|
+
# * `orderBy="display_name desc"`
|
|
1130
1333
|
# @param filter [::String]
|
|
1131
1334
|
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
1132
1335
|
# only supported on the `display_name` field.
|
|
1133
1336
|
#
|
|
1134
1337
|
# Example:
|
|
1135
|
-
#
|
|
1338
|
+
#
|
|
1339
|
+
# * `filter="display_name="MyFolder""`
|
|
1136
1340
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1137
1341
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryFolderContentsResponse::FolderContentsEntry>]
|
|
1138
1342
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1218,7 +1422,7 @@ module Google
|
|
|
1218
1422
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1219
1423
|
#
|
|
1220
1424
|
# @param location [::String]
|
|
1221
|
-
# Required. Location of the user root folder
|
|
1425
|
+
# Required. Location of the user root folder to list contents for.
|
|
1222
1426
|
# Format: projects/*/locations/*
|
|
1223
1427
|
# @param page_size [::Integer]
|
|
1224
1428
|
# Optional. Maximum number of paths to return. The server may return fewer
|
|
@@ -1236,14 +1440,16 @@ module Google
|
|
|
1236
1440
|
# Will order Folders before Repositories, and then by `order_by` in ascending
|
|
1237
1441
|
# order. Supported keywords: display_name (default), created_at,
|
|
1238
1442
|
# last_modified_at. Examples:
|
|
1239
|
-
#
|
|
1240
|
-
#
|
|
1443
|
+
#
|
|
1444
|
+
# * `orderBy="display_name"`
|
|
1445
|
+
# * `orderBy="display_name desc"`
|
|
1241
1446
|
# @param filter [::String]
|
|
1242
1447
|
# Optional. Optional filtering for the returned list. Filtering is currently
|
|
1243
1448
|
# only supported on the `display_name` field.
|
|
1244
1449
|
#
|
|
1245
1450
|
# Example:
|
|
1246
|
-
#
|
|
1451
|
+
#
|
|
1452
|
+
# * `filter="display_name="MyFolder""`
|
|
1247
1453
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1248
1454
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::QueryUserRootContentsResponse::RootContentsEntry>]
|
|
1249
1455
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1838,6 +2044,101 @@ module Google
|
|
|
1838
2044
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1839
2045
|
end
|
|
1840
2046
|
|
|
2047
|
+
##
|
|
2048
|
+
# Deletes a single repository asynchronously.
|
|
2049
|
+
#
|
|
2050
|
+
# @overload delete_repository_long_running(request, options = nil)
|
|
2051
|
+
# Pass arguments to `delete_repository_long_running` via a request object, either of type
|
|
2052
|
+
# {::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest} or an equivalent Hash.
|
|
2053
|
+
#
|
|
2054
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest, ::Hash]
|
|
2055
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2056
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2057
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2058
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2059
|
+
#
|
|
2060
|
+
# @overload delete_repository_long_running(name: nil, force: nil)
|
|
2061
|
+
# Pass arguments to `delete_repository_long_running` via keyword arguments. Note that at
|
|
2062
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2063
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2064
|
+
#
|
|
2065
|
+
# @param name [::String]
|
|
2066
|
+
# Required. The repository's name.
|
|
2067
|
+
# @param force [::Boolean]
|
|
2068
|
+
# Optional. If set to true, child resources of this repository (compilation
|
|
2069
|
+
# results and workflow invocations) will also be deleted. Otherwise, the
|
|
2070
|
+
# request will only succeed if the repository has no child resources.
|
|
2071
|
+
#
|
|
2072
|
+
# **Note:** *This flag doesn't support deletion of workspaces, release
|
|
2073
|
+
# configs or workflow configs. If any of such resources exists in the
|
|
2074
|
+
# repository, the request will fail.*
|
|
2075
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2076
|
+
# @yieldparam result [::Gapic::Operation]
|
|
2077
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2078
|
+
#
|
|
2079
|
+
# @return [::Gapic::Operation]
|
|
2080
|
+
#
|
|
2081
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2082
|
+
#
|
|
2083
|
+
# @example Basic example
|
|
2084
|
+
# require "google/cloud/dataform/v1beta1"
|
|
2085
|
+
#
|
|
2086
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2087
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
|
|
2088
|
+
#
|
|
2089
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2090
|
+
# request = Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest.new
|
|
2091
|
+
#
|
|
2092
|
+
# # Call the delete_repository_long_running method.
|
|
2093
|
+
# result = client.delete_repository_long_running request
|
|
2094
|
+
#
|
|
2095
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2096
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2097
|
+
# # Here is how to wait for a response.
|
|
2098
|
+
# result.wait_until_done! timeout: 60
|
|
2099
|
+
# if result.response?
|
|
2100
|
+
# p result.response
|
|
2101
|
+
# else
|
|
2102
|
+
# puts "No response received."
|
|
2103
|
+
# end
|
|
2104
|
+
#
|
|
2105
|
+
def delete_repository_long_running request, options = nil
|
|
2106
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2107
|
+
|
|
2108
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest
|
|
2109
|
+
|
|
2110
|
+
# Converts hash and nil to an options object
|
|
2111
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2112
|
+
|
|
2113
|
+
# Customize the options with defaults
|
|
2114
|
+
call_metadata = @config.rpcs.delete_repository_long_running.metadata.to_h
|
|
2115
|
+
|
|
2116
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2117
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2118
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2119
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
|
2120
|
+
transports_version_send: [:rest]
|
|
2121
|
+
|
|
2122
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2123
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2124
|
+
|
|
2125
|
+
options.apply_defaults timeout: @config.rpcs.delete_repository_long_running.timeout,
|
|
2126
|
+
metadata: call_metadata,
|
|
2127
|
+
retry_policy: @config.rpcs.delete_repository_long_running.retry_policy
|
|
2128
|
+
|
|
2129
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2130
|
+
metadata: @config.metadata,
|
|
2131
|
+
retry_policy: @config.retry_policy
|
|
2132
|
+
|
|
2133
|
+
@dataform_stub.delete_repository_long_running request, options do |result, operation|
|
|
2134
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
2135
|
+
yield result, operation if block_given?
|
|
2136
|
+
throw :response, result
|
|
2137
|
+
end
|
|
2138
|
+
rescue ::Gapic::Rest::Error => e
|
|
2139
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2140
|
+
end
|
|
2141
|
+
|
|
1841
2142
|
##
|
|
1842
2143
|
# Moves a Repository to a new location.
|
|
1843
2144
|
#
|
|
@@ -3465,7 +3766,7 @@ module Google
|
|
|
3465
3766
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3466
3767
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
3467
3768
|
#
|
|
3468
|
-
# @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil)
|
|
3769
|
+
# @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil)
|
|
3469
3770
|
# Pass arguments to `query_directory_contents` via keyword arguments. Note that at
|
|
3470
3771
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3471
3772
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -3486,6 +3787,11 @@ module Google
|
|
|
3486
3787
|
# When paginating, all other parameters provided to
|
|
3487
3788
|
# `QueryDirectoryContents`, with the exception of `page_size`, must match the
|
|
3488
3789
|
# call that provided the page token.
|
|
3790
|
+
# @param view [::Google::Cloud::Dataform::V1beta1::DirectoryContentsView]
|
|
3791
|
+
# Optional. Specifies the metadata to return for each directory entry.
|
|
3792
|
+
# If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
|
|
3793
|
+
# Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
|
|
3794
|
+
# CMEK-protected workspaces.
|
|
3489
3795
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3490
3796
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::DirectoryEntry>]
|
|
3491
3797
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -6550,6 +6856,11 @@ module Google
|
|
|
6550
6856
|
#
|
|
6551
6857
|
attr_reader :delete_team_folder
|
|
6552
6858
|
##
|
|
6859
|
+
# RPC-specific configuration for `delete_team_folder_tree`
|
|
6860
|
+
# @return [::Gapic::Config::Method]
|
|
6861
|
+
#
|
|
6862
|
+
attr_reader :delete_team_folder_tree
|
|
6863
|
+
##
|
|
6553
6864
|
# RPC-specific configuration for `query_team_folder_contents`
|
|
6554
6865
|
# @return [::Gapic::Config::Method]
|
|
6555
6866
|
#
|
|
@@ -6580,6 +6891,11 @@ module Google
|
|
|
6580
6891
|
#
|
|
6581
6892
|
attr_reader :delete_folder
|
|
6582
6893
|
##
|
|
6894
|
+
# RPC-specific configuration for `delete_folder_tree`
|
|
6895
|
+
# @return [::Gapic::Config::Method]
|
|
6896
|
+
#
|
|
6897
|
+
attr_reader :delete_folder_tree
|
|
6898
|
+
##
|
|
6583
6899
|
# RPC-specific configuration for `query_folder_contents`
|
|
6584
6900
|
# @return [::Gapic::Config::Method]
|
|
6585
6901
|
#
|
|
@@ -6620,6 +6936,11 @@ module Google
|
|
|
6620
6936
|
#
|
|
6621
6937
|
attr_reader :delete_repository
|
|
6622
6938
|
##
|
|
6939
|
+
# RPC-specific configuration for `delete_repository_long_running`
|
|
6940
|
+
# @return [::Gapic::Config::Method]
|
|
6941
|
+
#
|
|
6942
|
+
attr_reader :delete_repository_long_running
|
|
6943
|
+
##
|
|
6623
6944
|
# RPC-specific configuration for `move_repository`
|
|
6624
6945
|
# @return [::Gapic::Config::Method]
|
|
6625
6946
|
#
|
|
@@ -6895,6 +7216,8 @@ module Google
|
|
|
6895
7216
|
@update_team_folder = ::Gapic::Config::Method.new update_team_folder_config
|
|
6896
7217
|
delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder
|
|
6897
7218
|
@delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config
|
|
7219
|
+
delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree
|
|
7220
|
+
@delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config
|
|
6898
7221
|
query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents
|
|
6899
7222
|
@query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config
|
|
6900
7223
|
search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders
|
|
@@ -6907,6 +7230,8 @@ module Google
|
|
|
6907
7230
|
@update_folder = ::Gapic::Config::Method.new update_folder_config
|
|
6908
7231
|
delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder
|
|
6909
7232
|
@delete_folder = ::Gapic::Config::Method.new delete_folder_config
|
|
7233
|
+
delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree
|
|
7234
|
+
@delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config
|
|
6910
7235
|
query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents
|
|
6911
7236
|
@query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config
|
|
6912
7237
|
query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents
|
|
@@ -6923,6 +7248,8 @@ module Google
|
|
|
6923
7248
|
@update_repository = ::Gapic::Config::Method.new update_repository_config
|
|
6924
7249
|
delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
|
|
6925
7250
|
@delete_repository = ::Gapic::Config::Method.new delete_repository_config
|
|
7251
|
+
delete_repository_long_running_config = parent_rpcs.delete_repository_long_running if parent_rpcs.respond_to? :delete_repository_long_running
|
|
7252
|
+
@delete_repository_long_running = ::Gapic::Config::Method.new delete_repository_long_running_config
|
|
6926
7253
|
move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository
|
|
6927
7254
|
@move_repository = ::Gapic::Config::Method.new move_repository_config
|
|
6928
7255
|
commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes
|