ruạṛ
a N��f�6 � @ 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 ZdZdZdZdZdZdd� Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Ze dd� �Z e jdd� �Z e dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Zd d!� Zd"d#� Zd$d%� Zd&S )'�NetworkSecurityGroupa& A *network security group* (NSG) provides virtual firewall rules for a specific set of :class:`Vnic` in a VCN. Compare NSGs with :class:`SecurityList`, which provide virtual firewall rules to all the VNICs in a *subnet*. A network security group consists of two items: * The set of :class:`Vnic` that all have the same security rule needs (for example, a group of Compute instances all running the same application) * A set of NSG :class:`SecurityRule` that apply to the VNICs in the group After creating an NSG, you can add VNICs and security rules to it. For example, when you create an instance, you can specify one or more NSGs to add the instance to (see :func:`create_vnic_details`). Or you can add an existing instance to an NSG with :func:`update_vnic`. To add security rules to an NSG, see :func:`add_network_security_group_security_rules`. To list the VNICs in an NSG, see :func:`list_network_security_group_vnics`. To list the security rules in an NSG, see :func:`list_network_security_group_security_rules`. For more information about network security groups, see `Network Security Groups`__. **Important:** Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, Linux iptables, Windows firewall). If there are issues with some type of access to an instance, make sure all of the following are set correctly: * Any security rules in any NSGs the instance's VNIC belongs to * Any :class:`SecurityList` associated with the instance's subnet * The instance's OS firewall rules To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/networksecuritygroups.htm __ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm �PROVISIONING� AVAILABLE�TERMINATING� TERMINATEDc K sd ddddddddd�| _ dddd d ddd d�| _d| _d| _d| _d| _d| _d| _d| _d| _ dS )a� Initializes a new NetworkSecurityGroup object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param compartment_id: The value to assign to the compartment_id property of this NetworkSecurityGroup. :type compartment_id: str :param defined_tags: The value to assign to the defined_tags property of this NetworkSecurityGroup. :type defined_tags: dict(str, dict(str, object)) :param display_name: The value to assign to the display_name property of this NetworkSecurityGroup. :type display_name: str :param freeform_tags: The value to assign to the freeform_tags property of this NetworkSecurityGroup. :type freeform_tags: dict(str, str) :param id: The value to assign to the id property of this NetworkSecurityGroup. :type id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this NetworkSecurityGroup. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: The value to assign to the time_created property of this NetworkSecurityGroup. :type time_created: datetime :param vcn_id: The value to assign to the vcn_id property of this NetworkSecurityGroup. :type vcn_id: str �strzdict(str, dict(str, object))zdict(str, str)�datetime)�compartment_id�defined_tags�display_name� freeform_tags�id�lifecycle_state�time_created�vcn_id� compartmentId�definedTags�displayName�freeformTagsr �lifecycleState�timeCreated�vcnIdN) � swagger_types� attribute_map�_compartment_id� _defined_tags� _display_name�_freeform_tags�_id�_lifecycle_state� _time_created�_vcn_id)�self�kwargs� r( ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/core/models/network_security_group.py�__init__H s4 )��zNetworkSecurityGroup.__init__c C s | j S )aP **[Required]** Gets the compartment_id of this NetworkSecurityGroup. The `OCID`__ of the compartment the network security group is in. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this NetworkSecurityGroup. :rtype: str �r �r&