ResourceOperation¶
- class oci.ocvp.models.ResourceOperation(**kwargs)¶
Bases:
objectStatus of the operation performed on the SDDC / Clster / ESXi host.
Attributes:
A constant which can be used with the operation_status property of a ResourceOperation.
A constant which can be used with the operation_status property of a ResourceOperation.
A constant which can be used with the operation_status property of a ResourceOperation.
A constant which can be used with the operation_status property of a ResourceOperation.
[Required] Gets the operation_name of this ResourceOperation.
[Required] Gets the operation_status of this ResourceOperation.
Gets the time_operation_finished of this ResourceOperation.
[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