UpdateObjectStorageTierDetails

class oci.object_storage.models.UpdateObjectStorageTierDetails(**kwargs)

Bases: object

To change the storage tier of an object, we specify the object name and the desired storage tier in the body. Objects can be moved between Standard and InfrequentAccess tiers and from Standard or InfrequentAccess tier to Archive tier. If a version id is specified, only the specified version of the object is moved to a different storage tier, else the current version is used.

Attributes

STORAGE_TIER_ARCHIVE A constant which can be used with the storage_tier property of a UpdateObjectStorageTierDetails.
STORAGE_TIER_INFREQUENT_ACCESS A constant which can be used with the storage_tier property of a UpdateObjectStorageTierDetails.
STORAGE_TIER_STANDARD A constant which can be used with the storage_tier property of a UpdateObjectStorageTierDetails.
object_name [Required] Gets the object_name of this UpdateObjectStorageTierDetails.
storage_tier [Required] Gets the storage_tier of this UpdateObjectStorageTierDetails.
version_id Gets the version_id of this UpdateObjectStorageTierDetails.

Methods

__init__(**kwargs) Initializes a new UpdateObjectStorageTierDetails object with values from keyword arguments.
STORAGE_TIER_ARCHIVE = 'Archive'

A constant which can be used with the storage_tier property of a UpdateObjectStorageTierDetails. This constant has a value of “Archive”

STORAGE_TIER_INFREQUENT_ACCESS = 'InfrequentAccess'

A constant which can be used with the storage_tier property of a UpdateObjectStorageTierDetails. This constant has a value of “InfrequentAccess”

STORAGE_TIER_STANDARD = 'Standard'

A constant which can be used with the storage_tier property of a UpdateObjectStorageTierDetails. This constant has a value of “Standard”

__init__(**kwargs)

Initializes a new UpdateObjectStorageTierDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • object_name (str) – The value to assign to the object_name property of this UpdateObjectStorageTierDetails.
  • storage_tier (str) – The value to assign to the storage_tier property of this UpdateObjectStorageTierDetails. Allowed values for this property are: “Standard”, “InfrequentAccess”, “Archive”
  • version_id (str) – The value to assign to the version_id property of this UpdateObjectStorageTierDetails.
object_name

[Required] Gets the object_name of this UpdateObjectStorageTierDetails. An object for which the storage tier needs to be changed.

Returns:The object_name of this UpdateObjectStorageTierDetails.
Return type:str
storage_tier

[Required] Gets the storage_tier of this UpdateObjectStorageTierDetails. The storage tier that the object should be moved to.

Allowed values for this property are: “Standard”, “InfrequentAccess”, “Archive”

Returns:The storage_tier of this UpdateObjectStorageTierDetails.
Return type:str
version_id

Gets the version_id of this UpdateObjectStorageTierDetails. The versionId of the object. Current object version is used by default.

Returns:The version_id of this UpdateObjectStorageTierDetails.
Return type:str