SandboxSnapshot¶
-
class
oci.generative_ai_sandbox.models.SandboxSnapshot(**kwargs)¶ Bases:
objectSandbox snapshot resource representation.
Attributes
LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a SandboxSnapshot. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a SandboxSnapshot. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a SandboxSnapshot. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a SandboxSnapshot. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a SandboxSnapshot. display_nameGets the display_name of this SandboxSnapshot. expiration_durationGets the expiration_duration of this SandboxSnapshot. id[Required] Gets the id of this SandboxSnapshot. lifecycle_state[Required] Gets the lifecycle_state of this SandboxSnapshot. project_idGets the project_id of this SandboxSnapshot. runtimeGets the runtime of this SandboxSnapshot. sandbox_idGets the sandbox_id of this SandboxSnapshot. size_bytesGets the size_bytes of this SandboxSnapshot. time_createdGets the time_created of this SandboxSnapshot. time_expiresGets the time_expires of this SandboxSnapshot. time_updatedGets the time_updated of this SandboxSnapshot. Methods
__init__(**kwargs)Initializes a new SandboxSnapshot object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a SandboxSnapshot. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a SandboxSnapshot. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a SandboxSnapshot. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a SandboxSnapshot. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a SandboxSnapshot. This constant has a value of “FAILED”
-
__init__(**kwargs)¶ Initializes a new SandboxSnapshot object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this SandboxSnapshot.
- display_name (str) – The value to assign to the display_name property of this SandboxSnapshot.
- project_id (str) – The value to assign to the project_id property of this SandboxSnapshot.
- sandbox_id (str) – The value to assign to the sandbox_id property of this SandboxSnapshot.
- runtime (str) – The value to assign to the runtime property of this SandboxSnapshot.
- expiration_duration (str) – The value to assign to the expiration_duration property of this SandboxSnapshot.
- size_bytes (int) – The value to assign to the size_bytes property of this SandboxSnapshot.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this SandboxSnapshot. Allowed values for this property are: “CREATING”, “ACTIVE”, “FAILED”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_created (datetime) – The value to assign to the time_created property of this SandboxSnapshot.
- time_updated (datetime) – The value to assign to the time_updated property of this SandboxSnapshot.
- time_expires (datetime) – The value to assign to the time_expires property of this SandboxSnapshot.
-
display_name¶ Gets the display_name of this SandboxSnapshot. Display name for the sandbox snapshot.
Returns: The display_name of this SandboxSnapshot. Return type: str
-
expiration_duration¶ Gets the expiration_duration of this SandboxSnapshot. Duration after creation before the sandbox snapshot expires, in ISO 8601 duration format. For example, P7D for 7 days or PT24H for 24 hours.
Returns: The expiration_duration of this SandboxSnapshot. Return type: str
-
id¶ [Required] Gets the id of this SandboxSnapshot. Sandbox snapshot identifier.
Returns: The id of this SandboxSnapshot. Return type: str
-
lifecycle_state¶ [Required] Gets the lifecycle_state of this SandboxSnapshot. The current state of the SandboxSnapshot.
Allowed values for this property are: “CREATING”, “ACTIVE”, “FAILED”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this SandboxSnapshot. Return type: str
-
project_id¶ Gets the project_id of this SandboxSnapshot. Project identifier that the sandbox snapshot belongs to.
Returns: The project_id of this SandboxSnapshot. Return type: str
-
runtime¶ Gets the runtime of this SandboxSnapshot. Runtime identifier for the sandbox snapshot.
Returns: The runtime of this SandboxSnapshot. Return type: str
-
sandbox_id¶ Gets the sandbox_id of this SandboxSnapshot. Identifier of the sandbox used to create the sandbox snapshot.
Returns: The sandbox_id of this SandboxSnapshot. Return type: str
-
size_bytes¶ Gets the size_bytes of this SandboxSnapshot. Size of the sandbox snapshot archive in bytes.
Returns: The size_bytes of this SandboxSnapshot. Return type: int
-
time_created¶ Gets the time_created of this SandboxSnapshot. The date and time the sandbox snapshot was created, in RFC 3339 format.
Returns: The time_created of this SandboxSnapshot. Return type: datetime
-
time_expires¶ Gets the time_expires of this SandboxSnapshot. The date and time the sandbox snapshot expires, in RFC 3339 format.
Returns: The time_expires of this SandboxSnapshot. Return type: datetime
-
time_updated¶ Gets the time_updated of this SandboxSnapshot. The date and time the sandbox snapshot was last updated, in RFC 3339 format.
Returns: The time_updated of this SandboxSnapshot. Return type: datetime
-