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 ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Ze dd� �Z e jdd� �Z dd� Zdd� Zdd� ZdS )�Applicationzx A protocol identifier (such as TCP, UDP, or ICMP) and protocol-specific parameters (such as a port range). �ICMP�ICMP_V6c K s2 dddd�| _ dddd�| _d| _d| _d| _dS )aF Initializes a new Application object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.network_firewall.models.IcmpApplication` * :class:`~oci.network_firewall.models.Icmp6Application` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this Application. Allowed values for this property are: "ICMP", "ICMP_V6", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param name: The value to assign to the name property of this Application. :type name: str :param parent_resource_id: The value to assign to the parent_resource_id property of this Application. :type parent_resource_id: str �str)�type�name�parent_resource_idr r ZparentResourceIdN)Z swagger_typesZ attribute_map�_type�_name�_parent_resource_id)�self�kwargs� r �K/usr/lib/python3.9/site-packages/oci/network_firewall/models/application.py�__init__ s ��zApplication.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZIcmpApplicationr ZIcmp6Applicationr Nr )Zobject_dictionaryr r r r �get_subtypeD s zApplication.get_subtypec C s | j S )ai **[Required]** Gets the type of this Application. Describes the type of Application. Allowed values for this property are: "ICMP", "ICMP_V6", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this Application. :rtype: str )r �r r r r r T s zApplication.typec C s ddg}t ||�sd}|| _dS )z� Sets the type of this Application. Describes the type of Application. :param type: The type of this Application. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r c s c C s | j S )z� **[Required]** Gets the name of this Application. Name of the application. :return: The name of this Application. :rtype: str �r r r r r r r s zApplication.namec C s || _ dS )z� Sets the name of this Application. Name of the application. :param name: The name of this Application. :type: str Nr )r r r r r r ~ s c C s | j S )z� **[Required]** Gets the parent_resource_id of this Application. OCID of the Network Firewall Policy this application belongs to. :return: The parent_resource_id of this Application. :rtype: str �r r r r r r � s zApplication.parent_resource_idc C s || _ dS )z� Sets the parent_resource_id of this Application. OCID of the Network Firewall Policy this application belongs to. :param parent_resource_id: The parent_resource_id of this Application. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zApplication.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zApplication.__eq__c C s | |k S r r r r r r �__ne__� s zApplication.__ne__N)�__name__� __module__�__qualname__�__doc__Z TYPE_ICMPZTYPE_ICMP_V6r �staticmethodr �propertyr �setterr r r r r r r r r r s* ) r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn