RestoreObjectsDetails¶
- class oci.object_storage.models.RestoreObjectsDetails(**kwargs)¶
Bases:
objectRestoreObjectsDetails model.
Methods:
__init__(**kwargs)Initializes a new RestoreObjectsDetails object with values from keyword arguments.
Attributes:
Gets the hours of this RestoreObjectsDetails.
[Required] Gets the object_name of this RestoreObjectsDetails.
Gets the version_id of this RestoreObjectsDetails.
- __init__(**kwargs)¶
Initializes a new RestoreObjectsDetails 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 RestoreObjectsDetails.
hours (int) – The value to assign to the hours property of this RestoreObjectsDetails.
version_id (str) – The value to assign to the version_id property of this RestoreObjectsDetails.
- property hours¶
Gets the hours of this RestoreObjectsDetails. The number of hours for which this object will be restored. By default objects will be restored for 24 hours. You can instead configure the duration using the hours parameter.
- Returns
The hours of this RestoreObjectsDetails.
- Return type
int
- property object_name¶
[Required] Gets the object_name of this RestoreObjectsDetails. An object that is in an archive storage tier and needs to be restored.
- Returns
The object_name of this RestoreObjectsDetails.
- Return type
str
- property version_id¶
Gets the version_id of this RestoreObjectsDetails. The versionId of the object to restore. Current object version is used by default.
- Returns
The version_id of this RestoreObjectsDetails.
- Return type
str