Policy for object locking. When set, object versioning is enabled and all objects stored in the bucket will be subject to this policy. A locked object cannot be deleted until the lock expires. LockingPolicy has to be enabled when creating the bucket and cannot be disabled afterwards. When unset, object locking and versioning is disabled and cannot be enabled.
BucketSpec
BucketSpec defines the desired state of the Bucket Resource.
Conditions specify the status of the bucket. Supported conditions include: - BucketReady: true indicates if the bucket has been provisioned and is ready for use
endpointstring
The DNS endpoint at which the bucket is reachable.
regionstring
The region where the bucket is stored.
LockingPolicy
LockingPolicy defines the strategy for locking the objects of the bucket.
DefaultObjectRetentionDays specifies the minimum number of days that each version of every object will be retained. An object cannot be deleted during the retention period. If a bucket contains any object, it cannot be deleted either. When unspecified, no default object retention period is set. DefaultObjectRetentionDays can be modified after creation, however the change will only take effect for new objects and versions. Existing objects and versions will still use the previous value.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eobject.gdc.goog/v1alpha1\u003c/code\u003e API group defines the schema for managing \u003ccode\u003eBucket\u003c/code\u003e resources, which represent storage buckets.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBucket\u003c/code\u003e resources have a \u003ccode\u003espec\u003c/code\u003e for desired state, including a description, storage class, and policies, and a \u003ccode\u003estatus\u003c/code\u003e for observed state, like fully qualified name, conditions, endpoint, and region.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBucketList\u003c/code\u003e is used to represent a list of \u003ccode\u003eBucket\u003c/code\u003e resources and includes metadata and the list of buckets.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBucketPolicy\u003c/code\u003e defines policies like \u003ccode\u003eLockingPolicy\u003c/code\u003e, which enables object versioning and locking, ensuring objects can't be deleted until the lock expires, and cannot be disabled after being set up.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLockingPolicy\u003c/code\u003e resource defines the \u003ccode\u003edefaultObjectRetentionDays\u003c/code\u003e, specifying the minimum duration an object version will be retained and not be deleted.\u003c/p\u003e\n"]]],[],null,["# Storage KRM API\n\nobject.gdc.goog/v1alpha1\n------------------------\n\nPackage v1alpha1 contains API Schema definitions for the object.gdc.goog v1alpha1 API group\n\n### Bucket\n\nBucket is the Schema for the buckets API\n\n*Appears in:*\n- [BucketList](#bucketlist)\n\n### BucketList\n\nBucketList contains a list of Bucket\n\n### BucketPolicy\n\n*Appears in:*\n- [BucketSpec](#bucketspec)\n\n### BucketSpec\n\nBucketSpec defines the desired state of the Bucket Resource.\n\n*Appears in:*\n- [Bucket](#bucket)\n\n### BucketStatus\n\nBucketStatus defines the observed state of Bucket\n\n*Appears in:*\n- [Bucket](#bucket)\n\n### LockingPolicy\n\nLockingPolicy defines the strategy for locking the objects of the bucket.\n\n*Appears in:*\n- [BucketPolicy](#bucketpolicy)"]]