ruạṛ
a O��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 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(d)� Z*e+d*d+� �Z,e,j-d,d+� �Z,e+d-d.� �Z.e.j-d/d.� �Z.e+d0d1� �Z/e/j-d2d1� �Z/e+d3d4� �Z0e0j-d5d4� �Z0e+d6d7� �Z1e1j-d8d7� �Z1e+d9d:� �Z2e2j-d;d:� �Z2e+d<d=� �Z3e3j-d>d=� �Z3e+d?d@� �Z4e4j-dAd@� �Z4e+dBdC� �Z5e5j-dDdC� �Z5e+dEdF� �Z6e6j-dGdF� �Z6e+dHdI� �Z7e7j-dJdI� �Z7dKdL� Z8dMdN� Z9dOdP� Z:dQS )R�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�ACCEPTED�IN_PROGRESS� SUCCEEDED�FAILED� CANCELING�CANCELEDc K s� dddddddddddd�| _ dddd d ddd dddd�| _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 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", '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]�float�datetime)�id�compartment_id�oda_instance_id�request_action�status�status_message� resources�percent_complete� time_accepted�time_started� time_finishedr0 � compartmentId� odaInstanceId� requestActionr4 � statusMessager6 �percentComplete�timeAccepted�timeStarted�timeFinishedN) � swagger_types� attribute_map�_id�_compartment_id�_oda_instance_id�_request_action�_status�_status_message� _resources�_percent_complete�_time_accepted� _time_started�_time_finished)�self�kwargs� rR �/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/oda/models/work_request.py�__init__� sF 7��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 �rE �rP rR rR rS r0 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 NrU )rP r0 rR rR rS r0 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 �rF rV rR rR rS r1 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 NrW )rP r1 rR rR rS r1 * 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 �rG rV rR rR rS r2 6 s zWorkRequest.oda_instance_idc C s || _ dS )z� Sets the oda_instance_id of this WorkRequest. The identifier of the Digital Assistant instance to which this work request pertains. :param oda_instance_id: The oda_instance_id of this WorkRequest. :type: str NrX )rP r2 rR rR rS r2 B s c C s | j S )a� **[Required]** Gets the request_action of this WorkRequest. The type of the operation that's associated with the work request. 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", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The request_action of this WorkRequest. :rtype: str )rH rV rR rR rS r3 N s zWorkRequest.request_actionc C s g d�}t ||�sd}|| _dS )z� Sets the request_action of this WorkRequest. The type of the operation that's associated with the work request. :param request_action: The request_action of this WorkRequest. :type: str ) r r r r r r r r r r r r r r r r r r r r r r r r r r r! r"