UpdateWorkRequestDetails

class oci.os_management_hub.models.UpdateWorkRequestDetails(**kwargs)

Bases: object

Provides the information used to update a work request.

Attributes

STATUS_ACCEPTED A constant which can be used with the status property of a UpdateWorkRequestDetails.
STATUS_CANCELED A constant which can be used with the status property of a UpdateWorkRequestDetails.
STATUS_CANCELING A constant which can be used with the status property of a UpdateWorkRequestDetails.
STATUS_FAILED A constant which can be used with the status property of a UpdateWorkRequestDetails.
STATUS_IN_PROGRESS A constant which can be used with the status property of a UpdateWorkRequestDetails.
STATUS_SUCCEEDED A constant which can be used with the status property of a UpdateWorkRequestDetails.
description Gets the description of this UpdateWorkRequestDetails.
display_name Gets the display_name of this UpdateWorkRequestDetails.
percent_complete Gets the percent_complete of this UpdateWorkRequestDetails.
status [Required] Gets the status of this UpdateWorkRequestDetails.
time_finished 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_SUCCEEDED = 'SUCCEEDED'

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

__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: “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: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”

Returns:The status of this UpdateWorkRequestDetails.
Return type:str
time_finished

Gets the time_finished of this UpdateWorkRequestDetails. The date and time the object was finished, as described in RFC 3339.

Returns:The time_finished of this UpdateWorkRequestDetails.
Return type:datetime