@@ -47,15 +47,19 @@ service StorageControl {
4747 "https://www.googleapis.com/auth/devstorage.read_only,"
4848 "https://www.googleapis.com/auth/devstorage.read_write" ;
4949
50- // Creates a new folder.
50+ // Creates a new folder. This operation is only applicable to a hierarchical
51+ // namespace enabled bucket.
52+ // Hierarchical namespace buckets are in allowlist preview.
5153 rpc CreateFolder (CreateFolderRequest ) returns (Folder ) {
5254 option (google.api.routing ) = {
5355 routing_parameters { field : "parent" path_template : "{bucket=**}" }
5456 };
5557 option (google.api.method_signature ) = "parent,folder,folder_id" ;
5658 }
5759
58- // Permanently deletes an empty folder.
60+ // Permanently deletes an empty folder. This operation is only applicable to a
61+ // hierarchical namespace enabled bucket.
62+ // Hierarchical namespace buckets are in allowlist preview.
5963 rpc DeleteFolder (DeleteFolderRequest ) returns (google.protobuf.Empty ) {
6064 option (google.api.routing ) = {
6165 routing_parameters {
@@ -66,7 +70,9 @@ service StorageControl {
6670 option (google.api.method_signature ) = "name" ;
6771 }
6872
69- // Returns metadata for the specified folder.
73+ // Returns metadata for the specified folder. This operation is only
74+ // applicable to a hierarchical namespace enabled bucket.
75+ // Hierarchical namespace buckets are in allowlist preview.
7076 rpc GetFolder (GetFolderRequest ) returns (Folder ) {
7177 option (google.api.routing ) = {
7278 routing_parameters {
@@ -77,17 +83,21 @@ service StorageControl {
7783 option (google.api.method_signature ) = "name" ;
7884 }
7985
80- // Retrieves a list of folders for a given bucket.
86+ // Retrieves a list of folders. This operation is only applicable to a
87+ // hierarchical namespace enabled bucket.
88+ // Hierarchical namespace buckets are in allowlist preview.
8189 rpc ListFolders (ListFoldersRequest ) returns (ListFoldersResponse ) {
8290 option (google.api.routing ) = {
8391 routing_parameters { field : "parent" path_template : "{bucket=**}" }
8492 };
8593 option (google.api.method_signature ) = "parent" ;
8694 }
8795
88- // Renames a source folder to a destination folder. During a rename, the
96+ // Renames a source folder to a destination folder. This operation is only
97+ // applicable to a hierarchical namespace enabled bucket. During a rename, the
8998 // source and destination folders are locked until the long running operation
9099 // completes.
100+ // Hierarchical namespace buckets are in allowlist preview.
91101 rpc RenameFolder (RenameFolderRequest ) returns (google.longrunning.Operation ) {
92102 option (google.api.routing ) = {
93103 routing_parameters {
@@ -161,7 +171,9 @@ message PendingRenameInfo {
161171 string operation = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
162172}
163173
164- // A folder.
174+ // A folder resource. This resource can only exist in a hierarchical namespace
175+ // enabled bucket.
176+ // Hierarchical namespace buckets are in allowlist preview.
165177message Folder {
166178 option (google.api.resource ) = {
167179 type : "storage.googleapis.com/Folder"
@@ -195,7 +207,9 @@ message Folder {
195207 [(google.api.field_behavior ) = OUTPUT_ONLY ];
196208}
197209
198- // Request message for GetFolder.
210+ // Request message for GetFolder. This operation is only applicable to a
211+ // hierarchical namespace enabled bucket.
212+ // Hierarchical namespace buckets are in allowlist preview.
199213message GetFolderRequest {
200214 // Required. Name of the folder.
201215 // Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
@@ -220,9 +234,12 @@ message GetFolderRequest {
220234 ];
221235}
222236
223- // Request message for CreateFolder.
237+ // Request message for CreateFolder. This operation is only applicable to a
238+ // hierarchical namespace enabled bucket.
239+ // Hierarchical namespace buckets are in allowlist preview.
224240message CreateFolderRequest {
225- // Required. Name of the bucket in which the folder will reside.
241+ // Required. Name of the bucket in which the folder will reside. The bucket
242+ // must be a hierarchical namespace enabled bucket.
226243 string parent = 1 [
227244 (google.api.field_behavior ) = REQUIRED ,
228245 (google.api.resource_reference ) = {
@@ -248,15 +265,16 @@ message CreateFolderRequest {
248265 bool recursive = 4 [(google.api.field_behavior ) = OPTIONAL ];
249266
250267 // Optional. A unique identifier for this request. UUID is the recommended
251- // format, but other formats are still accepted. This request is only
252- // idempotent if a `request_id` is provided.
268+ // format, but other formats are still accepted.
253269 string request_id = 5 [
254270 (google.api.field_info ).format = UUID4 ,
255271 (google.api.field_behavior ) = OPTIONAL
256272 ];
257273}
258274
259- // Request message for DeleteFolder.
275+ // Request message for DeleteFolder. This operation is only applicable to a
276+ // hierarchical namespace enabled bucket.
277+ // Hierarchical namespace buckets are in allowlist preview.
260278message DeleteFolderRequest {
261279 // Required. Name of the folder.
262280 // Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
@@ -274,17 +292,19 @@ message DeleteFolderRequest {
274292 optional int64 if_metageneration_not_match = 4 ;
275293
276294 // Optional. A unique identifier for this request. UUID is the recommended
277- // format, but other formats are still accepted. This request is only
278- // idempotent if a `request_id` is provided.
295+ // format, but other formats are still accepted.
279296 string request_id = 5 [
280297 (google.api.field_info ).format = UUID4 ,
281298 (google.api.field_behavior ) = OPTIONAL
282299 ];
283300}
284301
285- // Request message for ListFolders.
302+ // Request message for ListFolders. This operation is only applicable to a
303+ // hierarchical namespace enabled bucket.
304+ // Hierarchical namespace buckets are in allowlist preview.
286305message ListFoldersRequest {
287- // Required. Name of the bucket in which to look for folders.
306+ // Required. Name of the bucket in which to look for folders. The bucket must
307+ // be a hierarchical namespace enabled bucket.
288308 string parent = 1 [
289309 (google.api.field_behavior ) = REQUIRED ,
290310 (google.api.resource_reference ) = {
@@ -339,7 +359,9 @@ message ListFoldersResponse {
339359 string next_page_token = 2 ;
340360}
341361
342- // Request message for RenameFolder.
362+ // Request message for RenameFolder. This operation is only applicable to a
363+ // hierarchical namespace enabled bucket.
364+ // Hierarchical namespace buckets are in allowlist preview.
343365message RenameFolderRequest {
344366 // Required. Name of the source folder being renamed.
345367 // Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
0 commit comments