Bucket
Bucket record returned by the Storage API.
| Name | Type | Definition |
|---|---|---|
name | string | Bucket name. |
project_id | string | Project that owns the bucket. |
public | boolean | Whether objects in this bucket are publicly accessible. |
location | "apac" | "eeur" | "enam" | "oc" | "weur" | "wnam" | Physical or logical storage location for bucket data. |
allowed_mime_types | string[] | MIME types accepted by this bucket. An empty array means the bucket does not restrict uploads by MIME type. |
file_size_limit | number | Maximum direct object upload size in bytes. `0` means there is no bucket-specific limit. Platform-wide upload limits may still apply. |
allow_overwrite | boolean | Whether uploading an existing object key is allowed to replace the object. |
signed_url_expiry_seconds | number | Default signed URL expiry in seconds for this bucket. |
attributes | JsonObject | User-defined bucket metadata. |
created_at | string | Timestamp when the bucket was created. |
updated_at | string | Timestamp when the bucket was last updated. |
Example
{ "name": "string", "project_id": "string", "public": true, "location": "apac", "allowed_mime_types": [ "string" ], "file_size_limit": 0, "allow_overwrite": true, "signed_url_expiry_seconds": 0, "attributes": {}, "created_at": "string", "updated_at": "string"}