ruạṛ
a ���fPF � @ 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 ZdZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Zejd)d(� �Zed*d+� �Zejd,d+� �Zed-d.� �Z e jd/d.� �Z ed0d1� �Z!e!jd2d1� �Z!ed3d4� �Z"e"jd5d4� �Z"d6d7� Z#d8d9� Z$d:d;� Z%d<S )=�WorkRequestSummaryz3 A description of the work request status. �CREATE_REDIS_CLUSTER�UPDATE_REDIS_CLUSTER�DELETE_REDIS_CLUSTER�MOVE_REDIS_CLUSTER�FAILOVER_REDIS_CLUSTER�CREATE_REDIS_CONFIG_SET�UPDATE_REDIS_CONFIG_SET�DELETE_REDIS_CONFIG_SET�MOVE_REDIS_CONFIG_SET�ACCEPTED�IN_PROGRESS�WAITING�NEEDS_ATTENTION�FAILED� SUCCEEDED� CANCELING�CANCELEDc K s� dddddddddddd�| _ dd d ddd dddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _dS )a. Initializes a new WorkRequestSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param operation_type: The value to assign to the operation_type property of this WorkRequestSummary. Allowed values for this property are: "CREATE_REDIS_CLUSTER", "UPDATE_REDIS_CLUSTER", "DELETE_REDIS_CLUSTER", "MOVE_REDIS_CLUSTER", "FAILOVER_REDIS_CLUSTER", "CREATE_REDIS_CONFIG_SET", "UPDATE_REDIS_CONFIG_SET", "DELETE_REDIS_CONFIG_SET", "MOVE_REDIS_CONFIG_SET", '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 WorkRequestSummary. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "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 id: The value to assign to the id property of this WorkRequestSummary. :type id: str :param compartment_id: The value to assign to the compartment_id property of this WorkRequestSummary. :type compartment_id: str :param resources: The value to assign to the resources property of this WorkRequestSummary. :type resources: list[oci.redis.models.WorkRequestResource] :param percent_complete: The value to assign to the percent_complete property of this WorkRequestSummary. :type percent_complete: float :param time_accepted: The value to assign to the time_accepted property of this WorkRequestSummary. :type time_accepted: datetime :param time_started: The value to assign to the time_started property of this WorkRequestSummary. :type time_started: datetime :param time_finished: The value to assign to the time_finished property of this WorkRequestSummary. :type time_finished: datetime :param freeform_tags: The value to assign to the freeform_tags property of this WorkRequestSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this WorkRequestSummary. :type defined_tags: dict(str, dict(str, object)) �strzlist[WorkRequestResource]�floatZdatetimezdict(str, str)zdict(str, dict(str, object)))�operation_type�status�id�compartment_id� resources�percent_complete� time_accepted�time_started� time_finished� freeform_tags�defined_tagsZ operationTyper r Z compartmentIdr ZpercentCompleteZtimeAcceptedZtimeStartedZtimeFinishedZfreeformTagsZdefinedTagsN) Z swagger_typesZ attribute_map�_operation_type�_status�_id�_compartment_id� _resources�_percent_complete�_time_accepted� _time_started�_time_finished�_freeform_tags� _defined_tags)�self�kwargs� r2 �I/usr/lib/python3.9/site-packages/oci/redis/models/work_request_summary.py�__init__V sF 7��zWorkRequestSummary.__init__c C s | j S )al **[Required]** Gets the operation_type of this WorkRequestSummary. The type of operation that spawned the work request. Allowed values for this property are: "CREATE_REDIS_CLUSTER", "UPDATE_REDIS_CLUSTER", "DELETE_REDIS_CLUSTER", "MOVE_REDIS_CLUSTER", "FAILOVER_REDIS_CLUSTER", "CREATE_REDIS_CONFIG_SET", "UPDATE_REDIS_CONFIG_SET", "DELETE_REDIS_CONFIG_SET", "MOVE_REDIS_CONFIG_SET", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The operation_type of this WorkRequestSummary. :rtype: str )r% �r0 r2 r2 r3 r � s z!WorkRequestSummary.operation_typec C s g d�}t ||�sd}|| _dS )z� Sets the operation_type of this WorkRequestSummary. The type of operation that spawned the work request. :param operation_type: The operation_type of this WorkRequestSummary. :type: str ) r r r r r r r r r �UNKNOWN_ENUM_VALUEN)r r% )r0 r �allowed_valuesr2 r2 r3 r � s c C s | j S )a� **[Required]** Gets the status of this WorkRequestSummary. The status of current work request. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this WorkRequestSummary. :rtype: str )r&