ruạṛ
a ���f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zdd� Z dd� Zdd� ZdS )�WorkRequestErrorz> An error encountered while executing a work request. c K sP ddddddd�| _ ddddd d d�| _d| _d| _d| _d| _d| _d| _dS )a Initializes a new WorkRequestError object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this WorkRequestError. :type id: str :param work_request_id: The value to assign to the work_request_id property of this WorkRequestError. :type work_request_id: str :param code: The value to assign to the code property of this WorkRequestError. :type code: str :param message: The value to assign to the message property of this WorkRequestError. :type message: str :param is_retryable: The value to assign to the is_retryable property of this WorkRequestError. :type is_retryable: bool :param timestamp: The value to assign to the timestamp property of this WorkRequestError. :type timestamp: datetime �str�boolZdatetime)�id�work_request_id�code�message�is_retryable� timestampr Z workRequestIdr r ZisRetryabler N)Z swagger_typesZ attribute_map�_id�_work_request_id�_code�_message� _is_retryable� _timestamp)�self�kwargs� r �U/usr/lib/python3.9/site-packages/oci/database_management/models/work_request_error.py�__init__ s( � � zWorkRequestError.__init__c C s | j S )z� **[Required]** Gets the id of this WorkRequestError. The identifier of the work request error. :return: The id of this WorkRequestError. :rtype: str �r �r r r r r I s zWorkRequestError.idc C s || _ dS )z� Sets the id of this WorkRequestError. The identifier of the work request error. :param id: The id of this WorkRequestError. :type: str Nr )r r r r r r U s c C s | j S )z� **[Required]** Gets the work_request_id of this WorkRequestError. The OCID of the work request. :return: The work_request_id of this WorkRequestError. :rtype: str �r r r r r r a s z WorkRequestError.work_request_idc C s || _ dS )z� Sets the work_request_id of this WorkRequestError. The OCID of the work request. :param work_request_id: The work_request_id of this WorkRequestError. :type: str Nr )r r r r r r m s c C s | j S )a5 **[Required]** Gets the code of this WorkRequestError. A machine-usable code for the error that occurred. Error codes are listed on (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). :return: The code of this WorkRequestError. :rtype: str �r r r r r r y s zWorkRequestError.codec C s || _ dS )a) Sets the code of this WorkRequestError. A machine-usable code for the error that occurred. Error codes are listed on (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). :param code: The code of this WorkRequestError. :type: str Nr )r r r r r r � s c C s | j S )z� **[Required]** Gets the message of this WorkRequestError. A human-readable description of the issue that occurred. :return: The message of this WorkRequestError. :rtype: str �r r r r r r � s zWorkRequestError.messagec C s || _ dS )z� Sets the message of this WorkRequestError. A human-readable description of the issue that occurred. :param message: The message of this WorkRequestError. :type: str Nr )r r r r r r � s c C s | j S )z� Gets the is_retryable of this WorkRequestError. Determines if the work request error can be reproduced and tried again. :return: The is_retryable of this WorkRequestError. :rtype: bool �r r r r r r � s zWorkRequestError.is_retryablec C s || _ dS )z� Sets the is_retryable of this WorkRequestError. Determines if the work request error can be reproduced and tried again. :param is_retryable: The is_retryable of this WorkRequestError. :type: bool Nr )r r r r r r � s c C s | j S )aQ **[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. __ https://tools.ietf.org/rfc/rfc3339 :return: The timestamp of this WorkRequestError. :rtype: datetime �r r r r r r � s zWorkRequestError.timestampc C s || _ dS )aJ Sets 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. __ https://tools.ietf.org/rfc/rfc3339 :param timestamp: The timestamp of this WorkRequestError. :type: datetime Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zWorkRequestError.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zWorkRequestError.__eq__c C s | |k S r! r r$ r r r �__ne__� s zWorkRequestError.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r"