UpdateWorkRequestDetails¶
-
class
oci.os_management_hub.models.UpdateWorkRequestDetails(**kwargs)¶ Bases:
objectProvides the information used to update a work request.
Attributes
STATUS_ACCEPTEDA constant which can be used with the status property of a UpdateWorkRequestDetails. STATUS_CANCELEDA constant which can be used with the status property of a UpdateWorkRequestDetails. STATUS_CANCELINGA constant which can be used with the status property of a UpdateWorkRequestDetails. STATUS_FAILEDA constant which can be used with the status property of a UpdateWorkRequestDetails. STATUS_IN_PROGRESSA constant which can be used with the status property of a UpdateWorkRequestDetails. STATUS_SUCCEEDEDA constant which can be used with the status property of a UpdateWorkRequestDetails. STATUS_WAITINGA constant which can be used with the status property of a UpdateWorkRequestDetails. descriptionGets the description of this UpdateWorkRequestDetails. display_nameGets the display_name of this UpdateWorkRequestDetails. percent_completeGets the percent_complete of this UpdateWorkRequestDetails. status[Required] Gets the status of this UpdateWorkRequestDetails. time_finishedGets the time_finished of this UpdateWorkRequestDetails. Methods
__init__(**kwargs)Initializes a new UpdateWorkRequestDetails object with values from keyword arguments. -
STATUS_ACCEPTED= 'ACCEPTED'¶ A constant which can be used with the status property of a UpdateWorkRequestDetails. This constant has a value of “ACCEPTED”
-
STATUS_CANCELED= 'CANCELED'¶ A constant which can be used with the status property of a UpdateWorkRequestDetails. This constant has a value of “CANCELED”
-
STATUS_CANCELING= 'CANCELING'¶ A constant which can be used with the status property of a UpdateWorkRequestDetails. This constant has a value of “CANCELING”
-
STATUS_FAILED= 'FAILED'¶ A constant which can be used with the status property of a UpdateWorkRequestDetails. This constant has a value of “FAILED”
-
STATUS_IN_PROGRESS= 'IN_PROGRESS'¶ A constant which can be used with the status property of a UpdateWorkRequestDetails. This constant has a value of “IN_PROGRESS”
-
STATUS_SUCCEEDED= 'SUCCEEDED'¶ A constant which can be used with the status property of a UpdateWorkRequestDetails. This constant has a value of “SUCCEEDED”
-
STATUS_WAITING= 'WAITING'¶ A constant which can be used with the status property of a UpdateWorkRequestDetails. This constant has a value of “WAITING”
-
__init__(**kwargs)¶ Initializes a new UpdateWorkRequestDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - status (str) – The value to assign to the status property of this UpdateWorkRequestDetails. Allowed values for this property are: “WAITING”, “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”
- percent_complete (float) – The value to assign to the percent_complete property of this UpdateWorkRequestDetails.
- time_finished (datetime) – The value to assign to the time_finished property of this UpdateWorkRequestDetails.
- description (str) – The value to assign to the description property of this UpdateWorkRequestDetails.
- display_name (str) – The value to assign to the display_name property of this UpdateWorkRequestDetails.
-
description¶ Gets the description of this UpdateWorkRequestDetails. A short description about the work request.
Returns: The description of this UpdateWorkRequestDetails. Return type: str
-
display_name¶ Gets the display_name of this UpdateWorkRequestDetails. A short display for about the work request.
Returns: The display_name of this UpdateWorkRequestDetails. Return type: str
-
percent_complete¶ Gets the percent_complete of this UpdateWorkRequestDetails. The percentage complete of the operation tracked by this work request.
Returns: The percent_complete of this UpdateWorkRequestDetails. Return type: float
-
status¶ [Required] Gets the status of this UpdateWorkRequestDetails. Status of current work request.
Allowed values for this property are: “WAITING”, “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”
Returns: The status of this UpdateWorkRequestDetails. Return type: str
-