ResourceOperation

class oci.ocvp.models.ResourceOperation(**kwargs)

Bases: object

Status of the operation performed on the SDDC / Clster / ESXi host.

Attributes:

OPERATION_STATUS_FAILED

A constant which can be used with the operation_status property of a ResourceOperation.

OPERATION_STATUS_IN_PROGRESS

A constant which can be used with the operation_status property of a ResourceOperation.

OPERATION_STATUS_PARTIAL_SUCCEED

A constant which can be used with the operation_status property of a ResourceOperation.

OPERATION_STATUS_SUCCEEDED

A constant which can be used with the operation_status property of a ResourceOperation.

operation_name

[Required] Gets the operation_name of this ResourceOperation.

operation_status

[Required] Gets the operation_status of this ResourceOperation.

time_operation_finished

Gets the time_operation_finished of this ResourceOperation.

time_operation_started

[Required] Gets the time_operation_started of this ResourceOperation.

Methods:

__init__(**kwargs)

Initializes a new ResourceOperation object with values from keyword arguments.

OPERATION_STATUS_FAILED = 'FAILED'

A constant which can be used with the operation_status property of a ResourceOperation. This constant has a value of “FAILED”

OPERATION_STATUS_IN_PROGRESS = 'IN_PROGRESS'

A constant which can be used with the operation_status property of a ResourceOperation. This constant has a value of “IN_PROGRESS”

OPERATION_STATUS_PARTIAL_SUCCEED = 'PARTIAL_SUCCEED'

A constant which can be used with the operation_status property of a ResourceOperation. This constant has a value of “PARTIAL_SUCCEED”

OPERATION_STATUS_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the operation_status property of a ResourceOperation. This constant has a value of “SUCCEEDED”

__init__(**kwargs)

Initializes a new ResourceOperation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • operation_name (str) – The value to assign to the operation_name property of this ResourceOperation.

  • operation_status (str) – The value to assign to the operation_status property of this ResourceOperation. Allowed values for this property are: “IN_PROGRESS”, “FAILED”, “PARTIAL_SUCCEED”, “SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • time_operation_started (datetime) – The value to assign to the time_operation_started property of this ResourceOperation.

  • time_operation_finished (datetime) – The value to assign to the time_operation_finished property of this ResourceOperation.

property operation_name

[Required] Gets the operation_name of this ResourceOperation. Name of the operation.

Returns

The operation_name of this ResourceOperation.

Return type

str

property operation_status

[Required] Gets the operation_status of this ResourceOperation. The operation status.

Allowed values for this property are: “IN_PROGRESS”, “FAILED”, “PARTIAL_SUCCEED”, “SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The operation_status of this ResourceOperation.

Return type

str

property time_operation_finished

Gets the time_operation_finished of this ResourceOperation. The date and time the operation reached a terminal state, either FAILED OR SUCCEEDED. Format is defined by RFC3339.

Returns

The time_operation_finished of this ResourceOperation.

Return type

datetime

property time_operation_started

[Required] Gets the time_operation_started of this ResourceOperation. The date and time the operation started at IN_PROGRESS state, in the format defined by RFC3339.

Returns

The time_operation_started of this ResourceOperation.

Return type

datetime