@@ -1475,6 +1475,50 @@ def delete_folder(bucket, folder, if_metageneration_match: nil, if_metageneratio
14751475 execute_or_queue_command ( command , &block )
14761476 end
14771477
1478+ # Deletes a folder recursively. Only applicable to buckets with hierarchical
1479+ # namespace enabled.
1480+ # @param [String] bucket
1481+ # Name of the bucket in which the folder resides.
1482+ # @param [String] folder
1483+ # Name of a folder.
1484+ # @param [Fixnum] if_metageneration_match
1485+ # If set, only deletes the folder if its metageneration matches this value.
1486+ # @param [Fixnum] if_metageneration_not_match
1487+ # If set, only deletes the folder if its metageneration does not match this
1488+ # value.
1489+ # @param [String] fields
1490+ # Selector specifying which fields to include in a partial response.
1491+ # @param [String] quota_user
1492+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1493+ # characters.
1494+ # @param [String] user_ip
1495+ # Deprecated. Please use quotaUser instead.
1496+ # @param [Google::Apis::RequestOptions] options
1497+ # Request-specific options
1498+ #
1499+ # @yield [result, err] Result & error if block supplied
1500+ # @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
1501+ # @yieldparam err [StandardError] error object if request failed
1502+ #
1503+ # @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
1504+ #
1505+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1506+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1507+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1508+ def delete_folder_recursive ( bucket , folder , if_metageneration_match : nil , if_metageneration_not_match : nil , fields : nil , quota_user : nil , user_ip : nil , options : nil , &block )
1509+ command = make_simple_command ( :post , 'b/{bucket}/folders/{folder}/deleteRecursive' , options )
1510+ command . response_representation = Google ::Apis ::StorageV1 ::GoogleLongrunningOperation ::Representation
1511+ command . response_class = Google ::Apis ::StorageV1 ::GoogleLongrunningOperation
1512+ command . params [ 'bucket' ] = bucket unless bucket . nil?
1513+ command . params [ 'folder' ] = folder unless folder . nil?
1514+ command . query [ 'ifMetagenerationMatch' ] = if_metageneration_match unless if_metageneration_match . nil?
1515+ command . query [ 'ifMetagenerationNotMatch' ] = if_metageneration_not_match unless if_metageneration_not_match . nil?
1516+ command . query [ 'fields' ] = fields unless fields . nil?
1517+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1518+ command . query [ 'userIp' ] = user_ip unless user_ip . nil?
1519+ execute_or_queue_command ( command , &block )
1520+ end
1521+
14781522 # Returns metadata for the specified folder. Only applicable to buckets with
14791523 # hierarchical namespace enabled.
14801524 # @param [String] bucket
0 commit comments