Constants¶
Constants used across google.cloud.storage modules.
See [Python Storage Client Constants Page](https://github.com/googleapis/python-storage/blob/main/google/cloud/storage/constants.py) for constants used across storage classes, location types, public access prevention, etc.
- google.cloud.storage.constants.STANDARD_STORAGE_CLASS = 'STANDARD'¶
Storage class for objects accessed more than once per month.
- google.cloud.storage.constants.NEARLINE_STORAGE_CLASS = 'NEARLINE'¶
Storage class for objects accessed at most once per month.
- google.cloud.storage.constants.COLDLINE_STORAGE_CLASS = 'COLDLINE'¶
Storage class for objects accessed at most once per year.
- google.cloud.storage.constants.ARCHIVE_STORAGE_CLASS = 'ARCHIVE'¶
Storage class for objects accessed less frequently than once per year.
- google.cloud.storage.constants.MULTI_REGIONAL_LEGACY_STORAGE_CLASS = 'MULTI_REGIONAL'¶
Legacy storage class.
Alias for
STANDARD_STORAGE_CLASS
.Can only be used for objects in buckets whose
location_type
isMULTI_REGION_LOCATION_TYPE
.
- google.cloud.storage.constants.REGIONAL_LEGACY_STORAGE_CLASS = 'REGIONAL'¶
Legacy storage class.
Alias for
STANDARD_STORAGE_CLASS
.Can only be used for objects in buckets whose
location_type
isREGION_LOCATION_TYPE
.
- google.cloud.storage.constants.DURABLE_REDUCED_AVAILABILITY_LEGACY_STORAGE_CLASS = 'DURABLE_REDUCED_AVAILABILITY'¶
Legacy storage class.
Similar to
NEARLINE_STORAGE_CLASS
.
- google.cloud.storage.constants.MULTI_REGION_LOCATION_TYPE = 'multi-region'¶
data will be replicated across regions in a multi-region.
Provides highest availability across largest area.
- Type
Location type
- google.cloud.storage.constants.REGION_LOCATION_TYPE = 'region'¶
data will be stored within a single region.
Provides lowest latency within a single region.
- Type
Location type
- google.cloud.storage.constants.DUAL_REGION_LOCATION_TYPE = 'dual-region'¶
data will be stored within two primary regions.
Provides high availability and low latency across two regions.
- Type
Location type
- google.cloud.storage.constants.PUBLIC_ACCESS_PREVENTION_ENFORCED = 'enforced'¶
Enforced public access prevention value.
See: https://cloud.google.com/storage/docs/public-access-prevention
- google.cloud.storage.constants.PUBLIC_ACCESS_PREVENTION_UNSPECIFIED = 'unspecified'¶
Unspecified public access prevention value.
DEPRECATED: Use ‘PUBLIC_ACCESS_PREVENTION_INHERITED’ instead.
See: https://cloud.google.com/storage/docs/public-access-prevention
- google.cloud.storage.constants.PUBLIC_ACCESS_PREVENTION_INHERITED = 'inherited'¶
Inherited public access prevention value.
See: https://cloud.google.com/storage/docs/public-access-prevention
- google.cloud.storage.constants.RPO_ASYNC_TURBO = 'ASYNC_TURBO'¶
The recovery point objective (RPO) indicates how quickly newly written objects are asynchronously replicated to a separate geographic location. When the RPO value is set to ASYNC_TURBO, the turbo replication feature is enabled.
See: https://cloud.google.com/storage/docs/managing-turbo-replication
- google.cloud.storage.constants.RPO_DEFAULT = 'DEFAULT'¶
The recovery point objective (RPO) indicates how quickly newly written objects are asynchronously replicated to a separate geographic location. When the RPO value is set to DEFAULT, the default replication behavior is enabled.
See: https://cloud.google.com/storage/docs/managing-turbo-replication