SandboxSnapshotSummary¶
- class oci.generative_ai_sandbox.models.SandboxSnapshotSummary(**kwargs)¶
Bases:
objectSandbox snapshot resource summary.
Methods:
__init__(**kwargs)Initializes a new SandboxSnapshotSummary object with values from keyword arguments.
Attributes:
Gets the display_name of this SandboxSnapshotSummary.
Gets the expiration_duration of this SandboxSnapshotSummary.
[Required] Gets the id of this SandboxSnapshotSummary.
[Required] Gets the lifecycle_state of this SandboxSnapshotSummary. The current state of the SandboxSnapshot. Allowed values are: - CREATING - ACTIVE - FAILED - DELETING - DELETED.
Gets the project_id of this SandboxSnapshotSummary.
Gets the runtime of this SandboxSnapshotSummary.
Gets the sandbox_id of this SandboxSnapshotSummary.
Gets the size_bytes of this SandboxSnapshotSummary.
Gets the time_created of this SandboxSnapshotSummary.
Gets the time_expires of this SandboxSnapshotSummary.
Gets the time_updated of this SandboxSnapshotSummary.
- __init__(**kwargs)¶
Initializes a new SandboxSnapshotSummary 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 SandboxSnapshotSummary.
display_name (str) – The value to assign to the display_name property of this SandboxSnapshotSummary.
project_id (str) – The value to assign to the project_id property of this SandboxSnapshotSummary.
sandbox_id (str) – The value to assign to the sandbox_id property of this SandboxSnapshotSummary.
runtime (str) – The value to assign to the runtime property of this SandboxSnapshotSummary.
expiration_duration (str) – The value to assign to the expiration_duration property of this SandboxSnapshotSummary.
size_bytes (int) – The value to assign to the size_bytes property of this SandboxSnapshotSummary.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this SandboxSnapshotSummary.
time_created (datetime) – The value to assign to the time_created property of this SandboxSnapshotSummary.
time_updated (datetime) – The value to assign to the time_updated property of this SandboxSnapshotSummary.
time_expires (datetime) – The value to assign to the time_expires property of this SandboxSnapshotSummary.
- property display_name¶
Gets the display_name of this SandboxSnapshotSummary. Display name for the sandbox snapshot.
- Returns
The display_name of this SandboxSnapshotSummary.
- Return type
str
- property expiration_duration¶
Gets the expiration_duration of this SandboxSnapshotSummary. 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 SandboxSnapshotSummary.
- Return type
str
- property id¶
[Required] Gets the id of this SandboxSnapshotSummary. Sandbox snapshot identifier.
- Returns
The id of this SandboxSnapshotSummary.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this SandboxSnapshotSummary. The current state of the SandboxSnapshot. Allowed values are:
CREATING
ACTIVE
FAILED
DELETING
DELETED
- Returns
The lifecycle_state of this SandboxSnapshotSummary.
- Return type
str
- property project_id¶
Gets the project_id of this SandboxSnapshotSummary. Project identifier that the sandbox snapshot belongs to.
- Returns
The project_id of this SandboxSnapshotSummary.
- Return type
str
- property runtime¶
Gets the runtime of this SandboxSnapshotSummary. Runtime identifier for the sandbox snapshot.
- Returns
The runtime of this SandboxSnapshotSummary.
- Return type
str
- property sandbox_id¶
Gets the sandbox_id of this SandboxSnapshotSummary. Identifier of the sandbox used to create the sandbox snapshot.
- Returns
The sandbox_id of this SandboxSnapshotSummary.
- Return type
str
- property size_bytes¶
Gets the size_bytes of this SandboxSnapshotSummary. Size of the sandbox snapshot archive in bytes.
- Returns
The size_bytes of this SandboxSnapshotSummary.
- Return type
int
- property time_created¶
Gets the time_created of this SandboxSnapshotSummary. The date and time the sandbox snapshot was created, in RFC 3339 format.
- Returns
The time_created of this SandboxSnapshotSummary.
- Return type
datetime
- property time_expires¶
Gets the time_expires of this SandboxSnapshotSummary. The date and time the sandbox snapshot expires, in RFC 3339 format.
- Returns
The time_expires of this SandboxSnapshotSummary.
- Return type
datetime
- property time_updated¶
Gets the time_updated of this SandboxSnapshotSummary. The date and time the sandbox snapshot was last updated, in RFC 3339 format.
- Returns
The time_updated of this SandboxSnapshotSummary.
- Return type
datetime