SDK reference / Models / Storage
Bucket
Kind: class
Namespace: Egulu.Sdk.Models.Storage
An S3-compatible object storage bucket encrypted under a per-bucket envelope KEK (ADR-0501, ADR-0508).
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Annotations | Models.Storage.Bucket_annotations? | annotations | At most 256 KiB in all; never policy input. |
BackendMode | string? | backendMode | Backend driver mode: SIMULATED when backed by the fake driver, SEAWEED_S3 on a live gateway. |
BlockPublicAccess | bool? | blockPublicAccess | Public access block: while true, publicRead cannot be turned on (and is refused on create); turning it on while publicRead is on is refused too, so a bucket is never half-blocked. Off by default. |
CorsRules | List<Models.Storage.BucketCorsRule>? | corsRules | CORS rules the S3 endpoint applies to browser calls (at most 100; empty means no cross-origin call is allowed). |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
DisplayName | string? | displayName | Up to 63 characters. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
Labels | Models.Storage.Bucket_labels? | labels | At most 64. |
LifecycleRules | List<Models.Storage.BucketLifecycleRule>? | lifecycleRules | Lifecycle rules (at most 100; defaults to 7-day incomplete-multipart cleanup per ADR-0508). |
Location | string? | location | Location ID where the bucket is homed (for example lab-de1). |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
ObjectLock | Models.Storage.BucketObjectLock? | objectLock | Object Lock (off by default; ADR-0508): turned on only when the bucket is created and never turned off; requires versioning and a paid project. Its default retention may change later and applies to new versions only. |
PublicRead | bool? | publicRead | Public anonymous object reads on the content domain only (https://{bucket}.s3.{location}.{content-domain}); off by default, requires trust tier T1 (ADR-0508). |
PublicUrl | string? | publicUrl | Public virtual-hosted content URL when publicRead is true (https://{bucket}.s3.{location}.{content-domain}; ADR-0508). |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
S3Endpoint | string? | s3Endpoint | S3 path-style endpoint on the content domain (never the API domain; ADR-0508). |
Simulated | bool? | simulated | True when backed by FakeObjectStorageDriver in lab/test environments rather than a live SeaweedFS S3 gateway. |
State | Models.Storage.BucketState? | state | Bucket lifecycle states. |
StorageClass | string? | storageClass | Storage class: STANDARD (default; archive tier arrives at P5 per ADR-0508). |
SuspendReason | string? | suspendReason | Why the platform paused a bucket, for example spend-cap (ADR-1103 §7); clears automatically when the cause clears. |
Uid | string? | uid | UUIDv7, never reused. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |
UsageBytes | long? | usageBytes | Total stored bytes across live and noncurrent objects. |
UsageObjects | long? | usageObjects | Total stored object versions in the bucket. |
Versioning | bool? | versioning | Object versioning (off by default; paid or trust tier T1 projects; ADR-0508). Cannot be turned off while Object Lock is on. |