WorkRequestError

class oci.oda.models.WorkRequestError(**kwargs)

Bases: object

Description of the unexpected error that prevented completion of the request.

Methods:

__init__(**kwargs)

Initializes a new WorkRequestError object with values from keyword arguments.

Attributes:

code

[Required] Gets the code of this WorkRequestError.

message

[Required] Gets the message of this WorkRequestError.

time_stamp

[Required] Gets the time_stamp 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
  • 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.

  • time_stamp (datetime) – The value to assign to the time_stamp 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 at (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm)

Returns

The code of this WorkRequestError.

Return type

str

property message

[Required] Gets the message of this WorkRequestError. A human-readable description of the issue.

Returns

The message of this WorkRequestError.

Return type

str

property time_stamp

[Required] Gets the time_stamp of this WorkRequestError. When the error occurred. A date-time string as described in RFC 3339, section 14.29.

Returns

The time_stamp of this WorkRequestError.

Return type

datetime