SandboxCommand¶
-
class
oci.generative_ai_sandbox.models.SandboxCommand(**kwargs)¶ Bases:
objectSandbox command resource representation.
Methods
__init__(**kwargs)Initializes a new SandboxCommand object with values from keyword arguments. Attributes
argsGets the args of this SandboxCommand. command[Required] Gets the command of this SandboxCommand. cwdGets the cwd of this SandboxCommand. environment_variablesGets the environment_variables of this SandboxCommand. exit_codeGets the exit_code of this SandboxCommand. id[Required] Gets the id of this SandboxCommand. outputGets the output of this SandboxCommand. sandbox_id[Required] Gets the sandbox_id of this SandboxCommand. time_createdGets the time_created of this SandboxCommand. time_finishedGets the time_finished of this SandboxCommand. time_startedGets the time_started of this SandboxCommand. time_updatedGets the time_updated of this SandboxCommand. -
__init__(**kwargs)¶ Initializes a new SandboxCommand 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 SandboxCommand.
- sandbox_id (str) – The value to assign to the sandbox_id property of this SandboxCommand.
- cwd (str) – The value to assign to the cwd property of this SandboxCommand.
- command (str) – The value to assign to the command property of this SandboxCommand.
- args (list[str]) – The value to assign to the args property of this SandboxCommand.
- environment_variables (list[oci.generative_ai_sandbox.models.EnvironmentVariable]) – The value to assign to the environment_variables property of this SandboxCommand.
- exit_code (int) – The value to assign to the exit_code property of this SandboxCommand.
- output (oci.generative_ai_sandbox.models.SandboxCommandOutput) – The value to assign to the output property of this SandboxCommand.
- time_created (datetime) – The value to assign to the time_created property of this SandboxCommand.
- time_updated (datetime) – The value to assign to the time_updated property of this SandboxCommand.
- time_started (datetime) – The value to assign to the time_started property of this SandboxCommand.
- time_finished (datetime) – The value to assign to the time_finished property of this SandboxCommand.
-
args¶ Gets the args of this SandboxCommand. Command arguments.
Returns: The args of this SandboxCommand. Return type: list[str]
-
command¶ [Required] Gets the command of this SandboxCommand. The command executed in the sandbox runtime.
Returns: The command of this SandboxCommand. Return type: str
-
cwd¶ Gets the cwd of this SandboxCommand. Absolute directory path used as the working directory for command execution in the sandbox.
Returns: The cwd of this SandboxCommand. Return type: str
-
environment_variables¶ Gets the environment_variables of this SandboxCommand. Environment variables injected into the command execution.
Returns: The environment_variables of this SandboxCommand. Return type: list[oci.generative_ai_sandbox.models.EnvironmentVariable]
-
exit_code¶ Gets the exit_code of this SandboxCommand. Process exit code when available.
Returns: The exit_code of this SandboxCommand. Return type: int
-
id¶ [Required] Gets the id of this SandboxCommand. Sandbox command identifier.
Returns: The id of this SandboxCommand. Return type: str
-
output¶ Gets the output of this SandboxCommand.
Returns: The output of this SandboxCommand. Return type: oci.generative_ai_sandbox.models.SandboxCommandOutput
-
sandbox_id¶ [Required] Gets the sandbox_id of this SandboxCommand. Sandbox identifier that this command runs against.
Returns: The sandbox_id of this SandboxCommand. Return type: str
-
time_created¶ Gets the time_created of this SandboxCommand. The date and time the command was created, in RFC 3339 format.
Returns: The time_created of this SandboxCommand. Return type: datetime
-
time_finished¶ Gets the time_finished of this SandboxCommand. The date and time command execution finished, in RFC 3339 format.
Returns: The time_finished of this SandboxCommand. Return type: datetime
-
time_started¶ Gets the time_started of this SandboxCommand. The date and time command execution started, in RFC 3339 format.
Returns: The time_started of this SandboxCommand. Return type: datetime
-
time_updated¶ Gets the time_updated of this SandboxCommand. The date and time the command was last updated, in RFC 3339 format.
Returns: The time_updated of this SandboxCommand. Return type: datetime
-