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 )�Servicezk A Service which can be used to identify the running service. It uses port & protocol information. �TCP_SERVICE�UDP_SERVICEc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a6 Initializes a new Service 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.TcpService` * :class:`~oci.network_firewall.models.UdpService` 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 Service. Allowed values for this property are: "TCP_SERVICE", "UDP_SERVICE", '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 Service. :type name: str :param parent_resource_id: The value to assign to the parent_resource_id property of this Service. :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 �G/usr/lib/python3.9/site-packages/oci/network_firewall/models/service.py�__init__ s ��zService.__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 Z TcpServicer Z UdpServicer Nr )Zobject_dictionaryr r r r �get_subtypeC s zService.get_subtypec C s | j S )ah **[Required]** Gets the type of this Service. Describes the type of Service. Allowed values for this property are: "TCP_SERVICE", "UDP_SERVICE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this Service. :rtype: str )r �r r r r r S s zService.typec C s ddg}t ||�sd}|| _dS )z� Sets the type of this Service. Describes the type of Service. :param type: The type of this Service. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r b s c C s | j S )z� **[Required]** Gets the name of this Service. Name of the service. :return: The name of this Service. :rtype: str �r r r r r r q s zService.namec C s || _ dS )z� Sets the name of this Service. Name of the service. :param name: The name of this Service. :type: str Nr )r r r r r r } s c C s | j S )z� **[Required]** Gets the parent_resource_id of this Service. OCID of the Network Firewall Policy this service belongs to. :return: The parent_resource_id of this Service. :rtype: str �r r r r r r � s zService.parent_resource_idc C s || _ dS )z� Sets the parent_resource_id of this Service. OCID of the Network Firewall Policy this service belongs to. :param parent_resource_id: The parent_resource_id of this Service. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zService.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zService.__eq__c C s | |k S r r r r r r �__ne__� s zService.__ne__N)�__name__� __module__�__qualname__�__doc__ZTYPE_TCP_SERVICEZTYPE_UDP_SERVICEr �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