File: //lib/python3.9/site-packages/oci/database/models/__pycache__/patch_details.cpython-39.pyc
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 ZdZdZdZdd� Zedd� �Zej dd� �Zed d
� �Z
e
j dd
� �Z
edd
� �Zej dd
� �Zdd� Zdd� Z
dd� ZdS )�PatchDetailsz�
The details about what actions to perform and using what patch to the specified target.
This is part of an update request that is applied to a version field on the target such
as DB system, Database Home, etc.
�APPLY�PRECHECKc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a�
Initializes a new PatchDetails object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param patch_id:
The value to assign to the patch_id property of this PatchDetails.
:type patch_id: str
:param database_software_image_id:
The value to assign to the database_software_image_id property of this PatchDetails.
:type database_software_image_id: str
:param action:
The value to assign to the action property of this PatchDetails.
Allowed values for this property are: "APPLY", "PRECHECK"
:type action: str
�str)�patch_id�database_software_image_id�actionZpatchIdZdatabaseSoftwareImageIdr N)Z
swagger_typesZ
attribute_map� _patch_id�_database_software_image_id�_action)�self�kwargs� r �E/usr/lib/python3.9/site-packages/oci/database/models/patch_details.py�__init__ s ��zPatchDetails.__init__c C s | j S )z�
Gets the patch_id of this PatchDetails.
The `OCID`__ of the patch.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The patch_id of this PatchDetails.
:rtype: str
�r
�r r r r r
? s zPatchDetails.patch_idc C s
|| _ dS )a
Sets the patch_id of this PatchDetails.
The `OCID`__ of the patch.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param patch_id: The patch_id of this PatchDetails.
:type: str
Nr )r r
r r r r
M s c C s | j S )a/
Gets the database_software_image_id of this PatchDetails.
The `OCID`__ of the database software image.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The database_software_image_id of this PatchDetails.
:rtype: str
�r r r r r r [ s z'PatchDetails.database_software_image_idc C s
|| _ dS )aH
Sets the database_software_image_id of this PatchDetails.
The `OCID`__ of the database software image.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param database_software_image_id: The database_software_image_id of this PatchDetails.
:type: str
Nr )r r r r r r i s c C s | j S )z�
Gets the action of this PatchDetails.
The action to perform on the patch.
Allowed values for this property are: "APPLY", "PRECHECK"
:return: The action of this PatchDetails.
:rtype: str
)r r r r r r w s zPatchDetails.actionc C s* ddg}t ||�s td|� ���|| _dS )z�
Sets the action of this PatchDetails.
The action to perform on the patch.
:param action: The action of this PatchDetails.
:type: str
r r z3Invalid value for `action`, must be None or one of N)r �
ValueErrorr )r r Zallowed_valuesr r r r � s
�c C s t | �S �N)r r r r r �__repr__� s zPatchDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zPatchDetails.__eq__c C s
| |k S r r r r r r �__ne__� s zPatchDetails.__ne__N)�__name__�
__module__�__qualname__�__doc__ZACTION_APPLYZACTION_PRECHECKr �propertyr
�setterr r r r r r r r r r s&