SandboxCommand

class oci.generative_ai_sandbox.models.SandboxCommand(**kwargs)

Bases: object

Sandbox command resource representation.

Methods:

__init__(**kwargs)

Initializes a new SandboxCommand object with values from keyword arguments.

Attributes:

args

Gets the args of this SandboxCommand.

command

[Required] Gets the command of this SandboxCommand.

cwd

Gets the cwd of this SandboxCommand.

environment_variables

Gets the environment_variables of this SandboxCommand.

exit_code

Gets the exit_code of this SandboxCommand.

id

[Required] Gets the id of this SandboxCommand.

output

Gets the output of this SandboxCommand.

sandbox_id

[Required] Gets the sandbox_id of this SandboxCommand.

time_created

Gets the time_created of this SandboxCommand.

time_finished

Gets the time_finished of this SandboxCommand.

time_started

Gets the time_started of this SandboxCommand.

time_updated

Gets 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.

property args

Gets the args of this SandboxCommand. Command arguments.

Returns

The args of this SandboxCommand.

Return type

list[str]

property command

[Required] Gets the command of this SandboxCommand. The command executed in the sandbox runtime.

Returns

The command of this SandboxCommand.

Return type

str

property 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

property 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]

property exit_code

Gets the exit_code of this SandboxCommand. Process exit code when available.

Returns

The exit_code of this SandboxCommand.

Return type

int

property id

[Required] Gets the id of this SandboxCommand. Sandbox command identifier.

Returns

The id of this SandboxCommand.

Return type

str

property output

Gets the output of this SandboxCommand.

Returns

The output of this SandboxCommand.

Return type

oci.generative_ai_sandbox.models.SandboxCommandOutput

property 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

property 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

property 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

property 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

property 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