Skip to content

Commit 686ee03

Browse files
feat: Automated regeneration of storage v1 client (googleapis#25727)
Auto-created at 2026-02-15 10:32:10 +0000 using the toys pull request generator.
1 parent 0981b8f commit 686ee03

File tree

4 files changed

+55
-2
lines changed

4 files changed

+55
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381545,6 +381545,11 @@
381545381545
"/storage:v1/storage.folders.delete/folder": folder
381546381546
"/storage:v1/storage.folders.delete/ifMetagenerationMatch": if_metageneration_match
381547381547
"/storage:v1/storage.folders.delete/ifMetagenerationNotMatch": if_metageneration_not_match
381548+
"/storage:v1/storage.folders.deleteRecursive": delete_folder_recursive
381549+
"/storage:v1/storage.folders.deleteRecursive/bucket": bucket
381550+
"/storage:v1/storage.folders.deleteRecursive/folder": folder
381551+
"/storage:v1/storage.folders.deleteRecursive/ifMetagenerationMatch": if_metageneration_match
381552+
"/storage:v1/storage.folders.deleteRecursive/ifMetagenerationNotMatch": if_metageneration_not_match
381548381553
"/storage:v1/storage.folders.get": get_folder
381549381554
"/storage:v1/storage.folders.get/bucket": bucket
381550381555
"/storage:v1/storage.folders.get/folder": folder

generated/google-apis-storage_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-storage_v1
22

3+
### v0.61.0 (2026-02-15)
4+
5+
* Regenerated from discovery document revision 20260204
6+
37
### v0.60.0 (2026-02-08)
48

59
* Regenerated from discovery document revision 20260131

generated/google-apis-storage_v1/lib/google/apis/storage_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module StorageV1
1818
# Version of the google-apis-storage_v1 gem
19-
GEM_VERSION = "0.60.0"
19+
GEM_VERSION = "0.61.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260131"
25+
REVISION = "20260204"
2626
end
2727
end
2828
end

generated/google-apis-storage_v1/lib/google/apis/storage_v1/service.rb

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)