ruạṛ
a O��f�O � @ 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$d%� Z&e'd&d'� �Z(e(j)d(d'� �Z(e'd)d*� �Z*e*j)d+d*� �Z*e'd,d-� �Z+e+j)d.d-� �Z+e'd/d0� �Z,e,j)d1d0� �Z,e'd2d3� �Z-e-j)d4d3� �Z-e'd5d6� �Z.e.j)d7d6� �Z.e'd8d9� �Z/e/j)d:d9� �Z/e'd;d<� �Z0e0j)d=d<� �Z0e'd>d?� �Z1e1j)d@d?� �Z1dAdB� Z2dCdD� Z3dEdF� Z4dGS )H�WorkRequestz; The status of an asynchronous task in the system. �CREATE_DBSYSTEM�UPDATE_DBSYSTEM�DELETE_DBSYSTEM�START_DBSYSTEM� STOP_DBSYSTEM�RESTART_DBSYSTEM�ADD_ANALYTICS_CLUSTER�UPDATE_ANALYTICS_CLUSTER�DELETE_ANALYTICS_CLUSTER�START_ANALYTICS_CLUSTER�STOP_ANALYTICS_CLUSTER�RESTART_ANALYTICS_CLUSTER�*GENERATE_ANALYTICS_CLUSTER_MEMORY_ESTIMATE�ADD_HEATWAVE_CLUSTER�UPDATE_HEATWAVE_CLUSTER�DELETE_HEATWAVE_CLUSTER�START_HEATWAVE_CLUSTER�STOP_HEATWAVE_CLUSTER�RESTART_HEATWAVE_CLUSTER�)GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATE�CREATE_REPLICA�UPDATE_REPLICA�DELETE_REPLICA�CREATE_CHANNEL�UPDATE_CHANNEL�RESUME_CHANNEL� RESET_CHANNEL�DELETE_CHANNEL�ACCEPTED�IN_PROGRESS�FAILED� SUCCEEDED� CANCELING�CANCELEDc K sn dddddddddd� | _ dddd d ddd dd� | _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 operation_type: The value to assign to the operation_type property of this WorkRequest. Allowed values for this property are: "CREATE_DBSYSTEM", "UPDATE_DBSYSTEM", "DELETE_DBSYSTEM", "START_DBSYSTEM", "STOP_DBSYSTEM", "RESTART_DBSYSTEM", "ADD_ANALYTICS_CLUSTER", "UPDATE_ANALYTICS_CLUSTER", "DELETE_ANALYTICS_CLUSTER", "START_ANALYTICS_CLUSTER", "STOP_ANALYTICS_CLUSTER", "RESTART_ANALYTICS_CLUSTER", "GENERATE_ANALYTICS_CLUSTER_MEMORY_ESTIMATE", "ADD_HEATWAVE_CLUSTER", "UPDATE_HEATWAVE_CLUSTER", "DELETE_HEATWAVE_CLUSTER", "START_HEATWAVE_CLUSTER", "STOP_HEATWAVE_CLUSTER", "RESTART_HEATWAVE_CLUSTER", "GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATE", "CREATE_REPLICA", "UPDATE_REPLICA", "DELETE_REPLICA", "CREATE_CHANNEL", "UPDATE_CHANNEL", "RESUME_CHANNEL", "RESET_CHANNEL", "DELETE_CHANNEL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str :param status: The value to assign to the status property of this WorkRequest. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param compartment_id: The value to assign to the compartment_id property of this WorkRequest. :type compartment_id: str :param resources: The value to assign to the resources property of this WorkRequest. :type resources: list[oci.mysql.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�operation_type�status�compartment_id� resources�percent_complete� time_accepted�time_started� time_finishedr, � operationTyper. � compartmentIdr0 �percentComplete�timeAccepted�timeStarted�timeFinishedN)� swagger_types� attribute_map�_id�_operation_type�_status�_compartment_id� _resources�_percent_complete�_time_accepted� _time_started�_time_finished)�self�kwargs� rH ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/mysql/models/work_request.py�__init__� s: /� �zWorkRequest.__init__c C s | j S )z� **[Required]** Gets the id of this WorkRequest. The id of the work request. :return: The id of this WorkRequest. :rtype: str �r= �rF rH rH rI r, � s zWorkRequest.idc C s || _ dS )z� Sets the id of this WorkRequest. The id of the work request. :param id: The id of this WorkRequest. :type: str NrK )rF r, rH rH rI r, � s c C s | j S )a **[Required]** Gets the operation_type of this WorkRequest. the original operation ID requested Allowed values for this property are: "CREATE_DBSYSTEM", "UPDATE_DBSYSTEM", "DELETE_DBSYSTEM", "START_DBSYSTEM", "STOP_DBSYSTEM", "RESTART_DBSYSTEM", "ADD_ANALYTICS_CLUSTER", "UPDATE_ANALYTICS_CLUSTER", "DELETE_ANALYTICS_CLUSTER", "START_ANALYTICS_CLUSTER", "STOP_ANALYTICS_CLUSTER", "RESTART_ANALYTICS_CLUSTER", "GENERATE_ANALYTICS_CLUSTER_MEMORY_ESTIMATE", "ADD_HEATWAVE_CLUSTER", "UPDATE_HEATWAVE_CLUSTER", "DELETE_HEATWAVE_CLUSTER", "START_HEATWAVE_CLUSTER", "STOP_HEATWAVE_CLUSTER", "RESTART_HEATWAVE_CLUSTER", "GENERATE_HEATWAVE_CLUSTER_MEMORY_ESTIMATE", "CREATE_REPLICA", "UPDATE_REPLICA", "DELETE_REPLICA", "CREATE_CHANNEL", "UPDATE_CHANNEL", "RESUME_CHANNEL", "RESET_CHANNEL", "DELETE_CHANNEL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The operation_type of this WorkRequest. :rtype: str )r>