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.
@@ -233,6 +233,46 @@ module Google
233
233
  end
234
234
  end
235
235
 
236
+ ##
237
+ # Baseline implementation for the delete_team_folder_tree REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @param options [::Gapic::CallOptions]
242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
243
+ #
244
+ # @yield [result, operation] Access the result along with the TransportOperation object
245
+ # @yieldparam result [::Google::Longrunning::Operation]
246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
247
+ #
248
+ # @return [::Google::Longrunning::Operation]
249
+ # A result object deserialized from the server's reply
250
+ def delete_team_folder_tree request_pb, options = nil
251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
+
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_tree_request request_pb
254
+ query_string_params = if query_string_params.any?
255
+ query_string_params.to_h { |p| p.split "=", 2 }
256
+ else
257
+ {}
258
+ end
259
+
260
+ response = @client_stub.make_http_request(
261
+ verb,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "delete_team_folder_tree",
266
+ options: options
267
+ )
268
+ operation = ::Gapic::Rest::TransportOperation.new response
269
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
274
+ end
275
+
236
276
  ##
237
277
  # Baseline implementation for the query_team_folder_contents REST call
238
278
  #
@@ -473,6 +513,46 @@ module Google
473
513
  end
474
514
  end
475
515
 
516
+ ##
517
+ # Baseline implementation for the delete_folder_tree REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest]
520
+ # A request object representing the call parameters. Required.
521
+ # @param options [::Gapic::CallOptions]
522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
+ #
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
525
+ # @yieldparam result [::Google::Longrunning::Operation]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Longrunning::Operation]
529
+ # A result object deserialized from the server's reply
530
+ def delete_folder_tree request_pb, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
+
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_tree_request request_pb
534
+ query_string_params = if query_string_params.any?
535
+ query_string_params.to_h { |p| p.split "=", 2 }
536
+ else
537
+ {}
538
+ end
539
+
540
+ response = @client_stub.make_http_request(
541
+ verb,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "delete_folder_tree",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
554
+ end
555
+
476
556
  ##
477
557
  # Baseline implementation for the query_folder_contents REST call
478
558
  #
@@ -793,6 +873,46 @@ module Google
793
873
  end
794
874
  end
795
875
 
876
+ ##
877
+ # Baseline implementation for the delete_repository_long_running REST call
878
+ #
879
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest]
880
+ # A request object representing the call parameters. Required.
881
+ # @param options [::Gapic::CallOptions]
882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
+ #
884
+ # @yield [result, operation] Access the result along with the TransportOperation object
885
+ # @yieldparam result [::Google::Longrunning::Operation]
886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
+ #
888
+ # @return [::Google::Longrunning::Operation]
889
+ # A result object deserialized from the server's reply
890
+ def delete_repository_long_running request_pb, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
+
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_long_running_request request_pb
894
+ query_string_params = if query_string_params.any?
895
+ query_string_params.to_h { |p| p.split "=", 2 }
896
+ else
897
+ {}
898
+ end
899
+
900
+ response = @client_stub.make_http_request(
901
+ verb,
902
+ uri: uri,
903
+ body: body || "",
904
+ params: query_string_params,
905
+ method_name: "delete_repository_long_running",
906
+ options: options
907
+ )
908
+ operation = ::Gapic::Rest::TransportOperation.new response
909
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
910
+ catch :response do
911
+ yield result, operation if block_given?
912
+ result
913
+ end
914
+ end
915
+
796
916
  ##
797
917
  # Baseline implementation for the move_repository REST call
798
918
  #
@@ -2999,6 +3119,28 @@ module Google
2999
3119
  transcoder.transcode request_pb
3000
3120
  end
3001
3121
 
3122
+ ##
3123
+ # @private
3124
+ #
3125
+ # GRPC transcoding helper method for the delete_team_folder_tree REST call
3126
+ #
3127
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteTeamFolderTreeRequest]
3128
+ # A request object representing the call parameters. Required.
3129
+ # @return [Array(String, [String, nil], Hash{String => String})]
3130
+ # Uri, Body, Query string parameters
3131
+ def self.transcode_delete_team_folder_tree_request request_pb
3132
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3133
+ .with_bindings(
3134
+ uri_method: :post,
3135
+ uri_template: "/v1beta1/{name}:deleteTree",
3136
+ body: "*",
3137
+ matches: [
3138
+ ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false]
3139
+ ]
3140
+ )
3141
+ transcoder.transcode request_pb
3142
+ end
3143
+
3002
3144
  ##
3003
3145
  # @private
3004
3146
  #
@@ -3127,6 +3269,28 @@ module Google
3127
3269
  transcoder.transcode request_pb
3128
3270
  end
3129
3271
 
3272
+ ##
3273
+ # @private
3274
+ #
3275
+ # GRPC transcoding helper method for the delete_folder_tree REST call
3276
+ #
3277
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteFolderTreeRequest]
3278
+ # A request object representing the call parameters. Required.
3279
+ # @return [Array(String, [String, nil], Hash{String => String})]
3280
+ # Uri, Body, Query string parameters
3281
+ def self.transcode_delete_folder_tree_request request_pb
3282
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3283
+ .with_bindings(
3284
+ uri_method: :post,
3285
+ uri_template: "/v1beta1/{name}:deleteTree",
3286
+ body: "*",
3287
+ matches: [
3288
+ ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false]
3289
+ ]
3290
+ )
3291
+ transcoder.transcode request_pb
3292
+ end
3293
+
3130
3294
  ##
3131
3295
  # @private
3132
3296
  #
@@ -3298,6 +3462,28 @@ module Google
3298
3462
  transcoder.transcode request_pb
3299
3463
  end
3300
3464
 
3465
+ ##
3466
+ # @private
3467
+ #
3468
+ # GRPC transcoding helper method for the delete_repository_long_running REST call
3469
+ #
3470
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteRepositoryLongRunningRequest]
3471
+ # A request object representing the call parameters. Required.
3472
+ # @return [Array(String, [String, nil], Hash{String => String})]
3473
+ # Uri, Body, Query string parameters
3474
+ def self.transcode_delete_repository_long_running_request request_pb
3475
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3476
+ .with_bindings(
3477
+ uri_method: :post,
3478
+ uri_template: "/v1beta1/{name}:deleteLongRunning",
3479
+ body: "*",
3480
+ matches: [
3481
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3482
+ ]
3483
+ )
3484
+ transcoder.transcode request_pb
3485
+ end
3486
+
3301
3487
  ##
3302
3488
  # @private
3303
3489
  #