ruạṛ
a ���f�m � @ 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 ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3d4� Z5e6d5d6� �Z7e7j8d7d6� �Z7e6d8d9� �Z9e9j8d:d9� �Z9e6d;d<� �Z:e:j8d=d<� �Z:e6d>d?� �Z;e;j8d@d?� �Z;e6dAdB� �Z<e<j8dCdB� �Z<e6dDdE� �Z=e=j8dFdE� �Z=e6dGdH� �Z>e>j8dIdH� �Z>e6dJdK� �Z?e?j8dLdK� �Z?e6dMdN� �Z@e@j8dOdN� �Z@e6dPdQ� �ZAeAj8dRdQ� �ZAe6dSdT� �ZBeBj8dUdT� �ZBe6dVdW� �ZCeCj8dXdW� �ZCdYdZ� ZDd[d\� ZEd]d^� ZFd_S )`�WorkRequestz@ The description of work request, including its status. �CREATE_ODA_INSTANCE�UPGRADE_ODA_INSTANCE�DELETE_ODA_INSTANCE�PURGE_ODA_INSTANCE�RECOVER_ODA_INSTANCE�STOP_ODA_INSTANCE�START_ODA_INSTANCE�CHANGE_ODA_INSTANCE_COMPARTMENT�CHANGE_CUST_ENC_KEY�DEACT_CUST_ENC_KEY�CREATE_ASSOCIATION�DELETE_ASSOCIATION�CREATE_PCS_INSTANCE�UPDATE_ENTITLEMENTS_FOR_CACCT�LOOKUP_ODA_INSTANCES_FOR_CACCT�CREATE_ODA_INSTANCE_ATTACHMENT�UPDATE_ODA_INSTANCE_ATTACHMENT�DELETE_ODA_INSTANCE_ATTACHMENT�CREATE_IMPORTED_PACKAGE�UPDATE_IMPORTED_PACKAGE�DELETE_IMPORTED_PACKAGE� IMPORT_BOT�CREATE_SKILL�CLONE_SKILL�EXTEND_SKILL� VERSION_SKILL�EXPORT_SKILL�CREATE_DIGITAL_ASSISTANT�CLONE_DIGITAL_ASSISTANT�EXTEND_DIGITAL_ASSISTANT�VERSION_DIGITAL_ASSISTANT�EXPORT_DIGITAL_ASSISTANT�CREATE_ODA_PRIVATE_ENDPOINT�DELETE_ODA_PRIVATE_ENDPOINT�UPDATE_ODA_PRIVATE_ENDPOINT�'CHANGE_ODA_PRIVATE_ENDPOINT_COMPARTMENT�&CREATE_ODA_PRIVATE_ENDPOINT_SCAN_PROXY�&DELETE_ODA_PRIVATE_ENDPOINT_SCAN_PROXY�&CREATE_ODA_PRIVATE_ENDPOINT_ATTACHMENT�&DELETE_ODA_PRIVATE_ENDPOINT_ATTACHMENT�TRAIN_SKILL�DELETE_SKILL_ENTITIES�IMPORT_SKILL_ENTITIES�ACCEPTED�IN_PROGRESS� SUCCEEDED�FAILED� CANCELING�CANCELEDc K s� ddddddddddddd�| _ dddd d ddd ddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ dS )a� Initializes a new WorkRequest 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 WorkRequest. :type id: str :param compartment_id: The value to assign to the compartment_id property of this WorkRequest. :type compartment_id: str :param oda_instance_id: The value to assign to the oda_instance_id property of this WorkRequest. :type oda_instance_id: str :param resource_id: The value to assign to the resource_id property of this WorkRequest. :type resource_id: str :param request_action: The value to assign to the request_action property of this WorkRequest. Allowed values for this property are: "CREATE_ODA_INSTANCE", "UPGRADE_ODA_INSTANCE", "DELETE_ODA_INSTANCE", "PURGE_ODA_INSTANCE", "RECOVER_ODA_INSTANCE", "STOP_ODA_INSTANCE", "START_ODA_INSTANCE", "CHANGE_ODA_INSTANCE_COMPARTMENT", "CHANGE_CUST_ENC_KEY", "DEACT_CUST_ENC_KEY", "CREATE_ASSOCIATION", "DELETE_ASSOCIATION", "CREATE_PCS_INSTANCE", "UPDATE_ENTITLEMENTS_FOR_CACCT", "LOOKUP_ODA_INSTANCES_FOR_CACCT", "CREATE_ODA_INSTANCE_ATTACHMENT", "UPDATE_ODA_INSTANCE_ATTACHMENT", "DELETE_ODA_INSTANCE_ATTACHMENT", "CREATE_IMPORTED_PACKAGE", "UPDATE_IMPORTED_PACKAGE", "DELETE_IMPORTED_PACKAGE", "IMPORT_BOT", "CREATE_SKILL", "CLONE_SKILL", "EXTEND_SKILL", "VERSION_SKILL", "EXPORT_SKILL", "CREATE_DIGITAL_ASSISTANT", "CLONE_DIGITAL_ASSISTANT", "EXTEND_DIGITAL_ASSISTANT", "VERSION_DIGITAL_ASSISTANT", "EXPORT_DIGITAL_ASSISTANT", "CREATE_ODA_PRIVATE_ENDPOINT", "DELETE_ODA_PRIVATE_ENDPOINT", "UPDATE_ODA_PRIVATE_ENDPOINT", "CHANGE_ODA_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ODA_PRIVATE_ENDPOINT_SCAN_PROXY", "DELETE_ODA_PRIVATE_ENDPOINT_SCAN_PROXY", "CREATE_ODA_PRIVATE_ENDPOINT_ATTACHMENT", "DELETE_ODA_PRIVATE_ENDPOINT_ATTACHMENT", "TRAIN_SKILL", "DELETE_SKILL_ENTITIES", "IMPORT_SKILL_ENTITIES", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type request_action: str :param status: The value to assign to the status property of this WorkRequest. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "SUCCEEDED", "FAILED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param status_message: The value to assign to the status_message property of this WorkRequest. :type status_message: str :param resources: The value to assign to the resources property of this WorkRequest. :type resources: list[oci.oda.models.WorkRequestResource] :param percent_complete: The value to assign to the percent_complete property of this WorkRequest. :type percent_complete: float :param time_accepted: The value to assign to the time_accepted property of this WorkRequest. :type time_accepted: datetime :param time_started: The value to assign to the time_started property of this WorkRequest. :type time_started: datetime :param time_finished: The value to assign to the time_finished property of this WorkRequest. :type time_finished: datetime �strzlist[WorkRequestResource]�floatZdatetime)�id�compartment_id�oda_instance_id�resource_id�request_action�status�status_message� resources�percent_complete� time_accepted�time_started� time_finishedr: Z compartmentIdZ odaInstanceIdZ resourceIdZ requestActionr? Z statusMessagerA ZpercentCompleteZtimeAcceptedZtimeStartedZtimeFinishedN)Z swagger_typesZ attribute_map�_id�_compartment_id�_oda_instance_id�_resource_id�_request_action�_status�_status_message� _resources�_percent_complete�_time_accepted� _time_started�_time_finished)�self�kwargs� rT �?/usr/lib/python3.9/site-packages/oci/oda/models/work_request.py�__init__� sL ;��zWorkRequest.__init__c C s | j S )z� **[Required]** Gets the id of this WorkRequest. The identifier of the work request. :return: The id of this WorkRequest. :rtype: str �rF �rR rT rT rU r: ; s zWorkRequest.idc C s || _ dS )z� Sets the id of this WorkRequest. The identifier of the work request. :param id: The id of this WorkRequest. :type: str NrW )rR r: rT rT rU r: G s c C s | j S )z� **[Required]** Gets the compartment_id of this WorkRequest. The identifier of the compartment that contains the work request. :return: The compartment_id of this WorkRequest. :rtype: str �rG rX rT rT rU r; S s zWorkRequest.compartment_idc C s || _ dS )z� Sets the compartment_id of this WorkRequest. The identifier of the compartment that contains the work request. :param compartment_id: The compartment_id of this WorkRequest. :type: str NrY )rR r; rT rT rU r; _ s c C s | j S )z� **[Required]** Gets the oda_instance_id of this WorkRequest. The identifier of the Digital Assistant instance to which this work request pertains. :return: The oda_instance_id of this WorkRequest. :rtype: str �rH rX rT rT rU r<