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

NameTypeJSON nameDescription
AnnotationsModels.Storage.Bucket_annotations?annotationsAt most 256 KiB in all; never policy input.
BackendModestring?backendModeBackend driver mode: SIMULATED when backed by the fake driver, SEAWEED_S3 on a live gateway.
BlockPublicAccessbool?blockPublicAccessPublic 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.
CorsRulesList<Models.Storage.BucketCorsRule>?corsRulesCORS rules the S3 endpoint applies to browser calls (at most 100; empty means no cross-origin call is allowed).
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
LabelsModels.Storage.Bucket_labels?labelsAt most 64.
LifecycleRulesList<Models.Storage.BucketLifecycleRule>?lifecycleRulesLifecycle rules (at most 100; defaults to 7-day incomplete-multipart cleanup per ADR-0508).
Locationstring?locationLocation ID where the bucket is homed (for example lab-de1).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
ObjectLockModels.Storage.BucketObjectLock?objectLockObject 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.
PublicReadbool?publicReadPublic anonymous object reads on the content domain only (https://{bucket}.s3.{location}.{content-domain}); off by default, requires trust tier T1 (ADR-0508).
PublicUrlstring?publicUrlPublic virtual-hosted content URL when publicRead is true (https://{bucket}.s3.{location}.{content-domain}; ADR-0508).
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
S3Endpointstring?s3EndpointS3 path-style endpoint on the content domain (never the API domain; ADR-0508).
Simulatedbool?simulatedTrue when backed by FakeObjectStorageDriver in lab/test environments rather than a live SeaweedFS S3 gateway.
StateModels.Storage.BucketState?stateBucket lifecycle states.
StorageClassstring?storageClassStorage class: STANDARD (default; archive tier arrives at P5 per ADR-0508).
SuspendReasonstring?suspendReasonWhy the platform paused a bucket, for example spend-cap (ADR-1103 §7); clears automatically when the cause clears.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
UsageByteslong?usageBytesTotal stored bytes across live and noncurrent objects.
UsageObjectslong?usageObjectsTotal stored object versions in the bucket.
Versioningbool?versioningObject versioning (off by default; paid or trust tier T1 projects; ADR-0508). Cannot be turned off while Object Lock is on.