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 ZdZdZdZdZdZdZdZ dZ dZdd � Ze d d� �Zejdd� �Ze d d� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd � �Zejd!d � �Zd"d#� Zd$d%� Zd&d'� Zd(S ))�Patchz Patch model. �APPLY�PRECHECK� AVAILABLE�SUCCESS�IN_PROGRESS�FAILEDc K sd ddddddddd�| _ ddddd d ddd�| _d | _d | _d | _d | _d | _d | _d | _d | _ d S )aq Initializes a new Patch 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 Patch. :type id: str :param description: The value to assign to the description property of this Patch. :type description: str :param last_action: The value to assign to the last_action property of this Patch. Allowed values for this property are: "APPLY", "PRECHECK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type last_action: str :param available_actions: The value to assign to the available_actions property of this Patch. Allowed values for items in this list are: "APPLY", "PRECHECK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type available_actions: list[str] :param lifecycle_details: The value to assign to the lifecycle_details property of this Patch. :type lifecycle_details: str :param lifecycle_state: The value to assign to the lifecycle_state property of this Patch. Allowed values for this property are: "AVAILABLE", "SUCCESS", "IN_PROGRESS", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_released: The value to assign to the time_released property of this Patch. :type time_released: datetime :param version: The value to assign to the version property of this Patch. :type version: str �strz list[str]Zdatetime)�id�description�last_action�available_actions�lifecycle_details�lifecycle_state� time_released�versionr r Z lastActionZavailableActionsZlifecycleDetailsZlifecycleStateZtimeReleasedr N) Z swagger_typesZ attribute_map�_id�_description�_last_action�_available_actions�_lifecycle_details�_lifecycle_state�_time_released�_version)�self�kwargs� r �=/usr/lib/python3.9/site-packages/oci/database/models/patch.py�__init__2 s4 -��zPatch.__init__c C s | j S )z� **[Required]** Gets the id of this Patch. The `OCID`__ of the patch. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this Patch. :rtype: str �r �r r r r! r } s zPatch.idc C s || _ dS )z� Sets the id of this Patch. The `OCID`__ of the patch. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this Patch. :type: str Nr# )r r r r r! r � s c C s | j S )z� **[Required]** Gets the description of this Patch. The text describing this patch package. :return: The description of this Patch. :rtype: str �r r$ r r r! r � s zPatch.descriptionc C s || _ dS )z� Sets the description of this Patch. The text describing this patch package. :param description: The description of this Patch. :type: str Nr% )r r r r r! r � s c C s | j S )a{ Gets the last_action of this Patch. Action that is currently being performed or was completed last. Allowed values for this property are: "APPLY", "PRECHECK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The last_action of this Patch. :rtype: str )r r$ r r r! r � s zPatch.last_actionc C s ddg}t ||�sd}|| _dS )z� Sets the last_action of this Patch. Action that is currently being performed or was completed last. :param last_action: The last_action of this Patch. :type: str r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r! r � s c C s | j S )a� Gets the available_actions of this Patch. Actions that can possibly be performed using this patch. Allowed values for items in this list are: "APPLY", "PRECHECK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The available_actions of this Patch. :rtype: list[str] �r r$ r r r! r � s zPatch.available_actionsc s0 ddg� |r&� fdd�|D �|dd�<