UpdateWorkRequestDetails¶
- class oci.os_management_hub.models.UpdateWorkRequestDetails(**kwargs)¶
Bases:
objectProvides the information used to update a work request.
Attributes:
A constant which can be used with the status property of a UpdateWorkRequestDetails.
A constant which can be used with the status property of a UpdateWorkRequestDetails.
A constant which can be used with the status property of a UpdateWorkRequestDetails.
A constant which can be used with the status property of a UpdateWorkRequestDetails.
A constant which can be used with the status property of a UpdateWorkRequestDetails.
A constant which can be used with the status property of a UpdateWorkRequestDetails.
A constant which can be used with the status property of a UpdateWorkRequestDetails.
A constant which can be used with the status property of a UpdateWorkRequestDetails.
Gets the description of this UpdateWorkRequestDetails.
Gets the display_name of this UpdateWorkRequestDetails.
Gets the percent_complete of this UpdateWorkRequestDetails.
[Required] Gets the status of this UpdateWorkRequestDetails.
Gets 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_SKIPPED = 'SKIPPED'¶
A constant which can be used with the status property of a UpdateWorkRequestDetails. This constant has a value of “SKIPPED”
- 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”, “SKIPPED”
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.
- property description¶
Gets the description of this UpdateWorkRequestDetails. A short description about the work request.
- Returns
The description of this UpdateWorkRequestDetails.
- Return type
str
- property 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
- property 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
- property 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”, “SKIPPED”
- Returns
The status of this UpdateWorkRequestDetails.
- Return type
str