Constants

Constants used acros google.cloud.storage modules.

google.cloud.storage.constants.STANDARD_STORAGE_CLASS( = 'STANDARD )

Storage class for objects accessed more than once per month.

See: https://cloud.google.com/storage/docs/storage-classes

google.cloud.storage.constants.NEARLINE_STORAGE_CLASS( = 'NEARLINE )

Storage class for objects accessed at most once per month.

See: https://cloud.google.com/storage/docs/storage-classes

google.cloud.storage.constants.COLDLINE_STORAGE_CLASS( = 'COLDLINE )

Storage class for objects accessed at most once per year.

See: https://cloud.google.com/storage/docs/storage-classes

google.cloud.storage.constants.ARCHIVE_STORAGE_CLASS( = 'ARCHIVE )

Storage class for objects accessed less frequently than once per year.

See: https://cloud.google.com/storage/docs/storage-classes

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 is MULTI_REGION_LOCATION_TYPE.

See: https://cloud.google.com/storage/docs/storage-classes

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 is REGION_LOCATION_TYPE.

See: https://cloud.google.com/storage/docs/storage-classes

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