WorkRequestError¶
- class oci.database_management.models.WorkRequestError(**kwargs)¶
Bases:
objectAn error encountered while executing a work request.
Methods:
__init__(**kwargs)Initializes a new WorkRequestError object with values from keyword arguments.
Attributes:
[Required] Gets the code of this WorkRequestError.
[Required] Gets the id of this WorkRequestError.
Gets the is_retryable of this WorkRequestError.
[Required] Gets the message of this WorkRequestError.
[Required] Gets the timestamp of this WorkRequestError.
[Required] Gets the work_request_id of this WorkRequestError.
- __init__(**kwargs)¶
Initializes a new WorkRequestError object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this WorkRequestError.
work_request_id (str) – The value to assign to the work_request_id property of this WorkRequestError.
code (str) – The value to assign to the code property of this WorkRequestError.
message (str) – The value to assign to the message property of this WorkRequestError.
is_retryable (bool) – The value to assign to the is_retryable property of this WorkRequestError.
timestamp (datetime) – The value to assign to the timestamp property of this WorkRequestError.
- property code¶
[Required] Gets the code of this WorkRequestError. A machine-usable code for the error that occurred. Error codes are listed on (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm).
- Returns
The code of this WorkRequestError.
- Return type
str
- property id¶
[Required] Gets the id of this WorkRequestError. The identifier of the work request error.
- Returns
The id of this WorkRequestError.
- Return type
str
- property is_retryable¶
Gets the is_retryable of this WorkRequestError. Determines if the work request error can be reproduced and tried again.
- Returns
The is_retryable of this WorkRequestError.
- Return type
bool
- property message¶
[Required] Gets the message of this WorkRequestError. A human-readable description of the issue that occurred.
- Returns
The message of this WorkRequestError.
- Return type
str
- property timestamp¶
[Required] Gets the timestamp of this WorkRequestError. The date and time the error occurred as described in RFC 3339. The precision for the time object is in milliseconds.
- Returns
The timestamp of this WorkRequestError.
- Return type
datetime
- property work_request_id¶
[Required] Gets the work_request_id of this WorkRequestError. The OCID of the work request.
- Returns
The work_request_id of this WorkRequestError.
- Return type
str