Kebijakan untuk penguncian objek. Jika disetel, pembuatan versi objek akan diaktifkan dan semua objek yang disimpan dalam bucket akan tunduk pada kebijakan ini. Objek yang dikunci tidak dapat dihapus hingga masa berlaku kunci berakhir. LockingPolicy harus diaktifkan saat membuat bucket dan tidak dapat dinonaktifkan setelahnya. Jika tidak disetel, penguncian dan pembuatan versi objek akan dinonaktifkan dan tidak dapat diaktifkan.
BucketSpec
BucketSpec menentukan status yang diinginkan dari Resource Bucket.
DefaultObjectRetentionDays menentukan jumlah minimum hari setiap versi setiap objek akan dipertahankan. Objek tidak dapat dihapus selama periode retensi. Jika bucket berisi objek apa pun, bucket tersebut juga tidak dapat dihapus. Jika tidak ditentukan, periode retensi objek default tidak ditetapkan. DefaultObjectRetentionDays dapat diubah setelah dibuat, tetapi perubahan hanya akan berlaku untuk objek dan versi baru. Objek dan versi yang ada akan tetap menggunakan nilai sebelumnya.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)"]]