Skip to content

Commit 1125069

Browse files
Google APIscopybara-github
authored andcommitted
docs: update storage control documentation and add PHP for publishing
PiperOrigin-RevId: 626165497
1 parent fde351d commit 1125069

2 files changed

Lines changed: 53 additions & 20 deletions

File tree

google/storage/control/v2/storage_control.proto

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
165177
message 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.
199213
message 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.
224240
message 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.
260278
message 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.
286305
message 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.
343365
message RenameFolderRequest {
344366
// Required. Name of the source folder being renamed.
345367
// Format: `projects/{project}/buckets/{bucket}/folders/{folder}`

google/storage/control/v2/storage_v2.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
type: google.api.Service
22
config_version: 3
33
name: storage.googleapis.com
4-
title: Cloud Storage API
4+
title: Storage Control API
55

66
apis:
77
- name: google.longrunning.Operations
@@ -12,7 +12,14 @@ types:
1212
- name: google.storage.control.v2.RenameFolderMetadata
1313

1414
documentation:
15-
summary: 'Lets you store and retrieve potentially-large, immutable data objects.'
15+
summary: |-
16+
The Storage Control API lets you perform metadata-specific, control plane,
17+
and long-running operations.
18+
19+
The Storage Control API creates one space to perform metadata-specific,
20+
control plane, and long-running operations apart from the Storage API.
21+
Separating these operations from the Storage API improves API
22+
standardization and lets you run faster releases.
1623
overview: |-
1724
The Google Cloud Storage API allows applications to read and write data
1825
through the abstractions of buckets and objects, which are similar to
@@ -77,7 +84,7 @@ publishing:
7784
doc_tag_prefix: storage
7885
organization: CLOUD
7986
library_settings:
80-
- version: google.cloud.storage.control.v2
87+
- version: google.storage.control.v2
8188
launch_stage: ALPHA
8289
java_settings:
8390
common:
@@ -87,6 +94,10 @@ publishing:
8794
common:
8895
destinations:
8996
- PACKAGE_MANAGER
97+
php_settings:
98+
common:
99+
destinations:
100+
- PACKAGE_MANAGER
90101
python_settings:
91102
common:
92103
destinations:

0 commit comments

Comments
 (0)