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 @ sn e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Ze dd � �Zejdd � �Zdd� Zdd� Zdd� ZdS )�AllowedSecurityConfigurationzE Defines the allowed security configuration for the traffic. �NSG�STATEFUL_NSG�INGRESS_SECURITY_LIST�STATEFUL_INGRESS_SECURITY_LIST�EGRESS_SECURITY_LIST�STATEFUL_EGRESS_SECURITY_LISTc K s ddi| _ ddi| _d| _dS )a Initializes a new AllowedSecurityConfiguration 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.vn_monitoring.models.StatefulEgressSecurityListConfiguration` * :class:`~oci.vn_monitoring.models.NsgConfiguration` * :class:`~oci.vn_monitoring.models.IngressSecurityListConfiguration` * :class:`~oci.vn_monitoring.models.StatefulIngressSecurityListConfiguration` * :class:`~oci.vn_monitoring.models.EgressSecurityListConfiguration` * :class:`~oci.vn_monitoring.models.StatefulNsgConfiguration` 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 AllowedSecurityConfiguration. Allowed values for this property are: "NSG", "STATEFUL_NSG", "INGRESS_SECURITY_LIST", "STATEFUL_INGRESS_SECURITY_LIST", "EGRESS_SECURITY_LIST", "STATEFUL_EGRESS_SECURITY_LIST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str �type�strN)Z swagger_typesZ attribute_map�_type)�self�kwargs� r �[/usr/lib/python3.9/site-packages/oci/vn_monitoring/models/allowed_security_configuration.py�__init__* s ��z%AllowedSecurityConfiguration.__init__c C sX | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS |dkrPd S 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 Z'StatefulEgressSecurityListConfigurationr ZNsgConfigurationr Z IngressSecurityListConfigurationr Z(StatefulIngressSecurityListConfigurationr ZEgressSecurityListConfigurationr ZStatefulNsgConfigurationr Nr )Zobject_dictionaryr r r r �get_subtypeI s z(AllowedSecurityConfiguration.get_subtypec C s | j S )a **[Required]** Gets the type of this AllowedSecurityConfiguration. The type of the allowed security configuration. Allowed values for this property are: "NSG", "STATEFUL_NSG", "INGRESS_SECURITY_LIST", "STATEFUL_INGRESS_SECURITY_LIST", "EGRESS_SECURITY_LIST", "STATEFUL_EGRESS_SECURITY_LIST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this AllowedSecurityConfiguration. :rtype: str )r �r r r r r e s z!AllowedSecurityConfiguration.typec C s g d�}t ||�sd}|| _dS )z� Sets the type of this AllowedSecurityConfiguration. The type of the allowed security configuration. :param type: The type of this AllowedSecurityConfiguration. :type: str )r r r r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r t s c C s t | �S �N)r r r r r �__repr__� s z%AllowedSecurityConfiguration.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z#AllowedSecurityConfiguration.__eq__c C s | |k S r r r r r r �__ne__� s z#AllowedSecurityConfiguration.__ne__N)�__name__� __module__�__qualname__�__doc__ZTYPE_NSGZTYPE_STATEFUL_NSGZTYPE_INGRESS_SECURITY_LISTZ#TYPE_STATEFUL_INGRESS_SECURITY_LISTZTYPE_EGRESS_SECURITY_LISTZ"TYPE_STATEFUL_EGRESS_SECURITY_LISTr �staticmethodr �propertyr �setterr r r r r r r r s"