SandboxCommandSummary

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

Bases: object

Sandbox command resource summary.

Methods:

__init__(**kwargs)

Initializes a new SandboxCommandSummary object with values from keyword arguments.

Attributes:

args

Gets the args of this SandboxCommandSummary.

command

[Required] Gets the command of this SandboxCommandSummary.

cwd

Gets the cwd of this SandboxCommandSummary.

exit_code

Gets the exit_code of this SandboxCommandSummary.

id

[Required] Gets the id of this SandboxCommandSummary.

sandbox_id

[Required] Gets the sandbox_id of this SandboxCommandSummary.

time_created

Gets the time_created of this SandboxCommandSummary.

time_finished

Gets the time_finished of this SandboxCommandSummary.

time_started

Gets the time_started of this SandboxCommandSummary.

time_updated

Gets the time_updated of this SandboxCommandSummary.

__init__(**kwargs)

Initializes a new SandboxCommandSummary 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 SandboxCommandSummary.

  • sandbox_id (str) – The value to assign to the sandbox_id property of this SandboxCommandSummary.

  • cwd (str) – The value to assign to the cwd property of this SandboxCommandSummary.

  • command (str) – The value to assign to the command property of this SandboxCommandSummary.

  • args (list[str]) – The value to assign to the args property of this SandboxCommandSummary.

  • exit_code (int) – The value to assign to the exit_code property of this SandboxCommandSummary.

  • time_created (datetime) – The value to assign to the time_created property of this SandboxCommandSummary.

  • time_updated (datetime) – The value to assign to the time_updated property of this SandboxCommandSummary.

  • time_started (datetime) – The value to assign to the time_started property of this SandboxCommandSummary.

  • time_finished (datetime) – The value to assign to the time_finished property of this SandboxCommandSummary.

property args

Gets the args of this SandboxCommandSummary. Command arguments.

Returns

The args of this SandboxCommandSummary.

Return type

list[str]

property command

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

Returns

The command of this SandboxCommandSummary.

Return type

str

property cwd

Gets the cwd of this SandboxCommandSummary. Absolute directory path used as the working directory for command execution in the sandbox.

Returns

The cwd of this SandboxCommandSummary.

Return type

str

property exit_code

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

Returns

The exit_code of this SandboxCommandSummary.

Return type

int

property id

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

Returns

The id of this SandboxCommandSummary.

Return type

str

property sandbox_id

[Required] Gets the sandbox_id of this SandboxCommandSummary. Sandbox identifier that this command runs against.

Returns

The sandbox_id of this SandboxCommandSummary.

Return type

str

property time_created

Gets the time_created of this SandboxCommandSummary. The date and time the command was created, in RFC 3339 format.

Returns

The time_created of this SandboxCommandSummary.

Return type

datetime

property time_finished

Gets the time_finished of this SandboxCommandSummary. The date and time command execution finished, in RFC 3339 format.

Returns

The time_finished of this SandboxCommandSummary.

Return type

datetime

property time_started

Gets the time_started of this SandboxCommandSummary. The date and time command execution started, in RFC 3339 format.

Returns

The time_started of this SandboxCommandSummary.

Return type

datetime

property time_updated

Gets the time_updated of this SandboxCommandSummary. The date and time the command was last updated, in RFC 3339 format.

Returns

The time_updated of this SandboxCommandSummary.

Return type

datetime