ruạṛ
a O��f5� � @ 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 ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Z e jd(d'� �Z ed)d*� �Z!e!jd+d*� �Z!ed,d-� �Z"e"jd.d-� �Z"ed/d0� �Z#e#jd1d0� �Z#ed2d3� �Z$e$jd4d3� �Z$ed5d6� �Z%e%jd7d6� �Z%ed8d9� �Z&e&jd:d9� �Z&ed;d<� �Z'e'jd=d<� �Z'ed>d?� �Z(e(jd@d?� �Z(edAdB� �Z)e)jdCdB� �Z)edDdE� �Z*e*jdFdE� �Z*edGdH� �Z+e+jdIdH� �Z+edJdK� �Z,e,jdLdK� �Z,edMdN� �Z-e-jdOdN� �Z-edPdQ� �Z.e.jdRdQ� �Z.edSdT� �Z/e/jdUdT� �Z/dVdW� Z0dXdY� Z1dZd[� Z2d\S )]�VirtualCircuita� For use with Oracle Cloud Infrastructure FastConnect. A virtual circuit is an isolated network path that runs over one or more physical network connections to provide a single, logical connection between the edge router on the customer's existing network and Oracle Cloud Infrastructure. *Private* virtual circuits support private peering, and *public* virtual circuits support public peering. For more information, see `FastConnect Overview`__. Each virtual circuit is made up of information shared between a customer, Oracle, and a provider (if the customer is using FastConnect via a provider). Who fills in a given property of a virtual circuit depends on whether the BGP session related to that virtual circuit goes from the customer's edge router to Oracle, or from the provider's edge router to Oracle. Also, in the case where the customer is using a provider, values for some of the properties may not be present immediately, but may get filled in as the provider and Oracle each do their part to provision the virtual circuit. 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/fastconnect.htm __ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm �CUSTOMER_MANAGED�PROVIDER_MANAGED�ORACLE_MANAGED�UP�DOWN�PENDING_PROVIDER� VERIFYING�PROVISIONING�PROVISIONED�FAILED�INACTIVE�TERMINATING� TERMINATED�ACTIVE� COLOCATED�LAYER2�LAYER3�PUBLIC�PRIVATEc K s� dddddddddddddddddddddd�| _ ddd d ddd ddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new VirtualCircuit object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param bandwidth_shape_name: The value to assign to the bandwidth_shape_name property of this VirtualCircuit. :type bandwidth_shape_name: str :param bgp_management: The value to assign to the bgp_management property of this VirtualCircuit. Allowed values for this property are: "CUSTOMER_MANAGED", "PROVIDER_MANAGED", "ORACLE_MANAGED" :type bgp_management: str :param bgp_session_state: The value to assign to the bgp_session_state property of this VirtualCircuit. Allowed values for this property are: "UP", "DOWN" :type bgp_session_state: str :param compartment_id: The value to assign to the compartment_id property of this VirtualCircuit. :type compartment_id: str :param cross_connect_mappings: The value to assign to the cross_connect_mappings property of this VirtualCircuit. :type cross_connect_mappings: list[oci.vn_monitoring.models.CrossConnectMapping] :param customer_bgp_asn: The value to assign to the customer_bgp_asn property of this VirtualCircuit. :type customer_bgp_asn: int :param display_name: The value to assign to the display_name property of this VirtualCircuit. :type display_name: str :param gateway_id: The value to assign to the gateway_id property of this VirtualCircuit. :type gateway_id: str :param id: The value to assign to the id property of this VirtualCircuit. :type id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this VirtualCircuit. Allowed values for this property are: "PENDING_PROVIDER", "VERIFYING", "PROVISIONING", "PROVISIONED", "FAILED", "INACTIVE", "TERMINATING", "TERMINATED" :type lifecycle_state: str :param oracle_bgp_asn: The value to assign to the oracle_bgp_asn property of this VirtualCircuit. :type oracle_bgp_asn: int :param provider_name: The value to assign to the provider_name property of this VirtualCircuit. :type provider_name: str :param provider_service_id: The value to assign to the provider_service_id property of this VirtualCircuit. :type provider_service_id: str :param provider_service_name: The value to assign to the provider_service_name property of this VirtualCircuit. :type provider_service_name: str :param provider_state: The value to assign to the provider_state property of this VirtualCircuit. Allowed values for this property are: "ACTIVE", "INACTIVE" :type provider_state: str :param public_prefixes: The value to assign to the public_prefixes property of this VirtualCircuit. :type public_prefixes: list[str] :param reference_comment: The value to assign to the reference_comment property of this VirtualCircuit. :type reference_comment: str :param region: The value to assign to the region property of this VirtualCircuit. :type region: str :param service_type: The value to assign to the service_type property of this VirtualCircuit. Allowed values for this property are: "COLOCATED", "LAYER2", "LAYER3" :type service_type: str :param time_created: The value to assign to the time_created property of this VirtualCircuit. :type time_created: datetime :param type: The value to assign to the type property of this VirtualCircuit. Allowed values for this property are: "PUBLIC", "PRIVATE" :type type: str �strzlist[CrossConnectMapping]�intz list[str]�datetime)�bandwidth_shape_name�bgp_management�bgp_session_state�compartment_id�cross_connect_mappings�customer_bgp_asn�display_name� gateway_id�id�lifecycle_state�oracle_bgp_asn� provider_name�provider_service_id�provider_service_name�provider_state�public_prefixes�reference_comment�region�service_type�time_created�type�bandwidthShapeName� bgpManagement�bgpSessionState� compartmentId�crossConnectMappings�customerBgpAsn�displayName� gatewayIdr% �lifecycleState�oracleBgpAsn�providerName�providerServiceId�providerServiceName� providerState�publicPrefixes�referenceCommentr. �serviceType�timeCreatedr1 N)� swagger_types� attribute_map�_bandwidth_shape_name�_bgp_management�_bgp_session_state�_compartment_id�_cross_connect_mappings�_customer_bgp_asn� _display_name�_gateway_id�_id�_lifecycle_state�_oracle_bgp_asn�_provider_name�_provider_service_id�_provider_service_name�_provider_state�_public_prefixes�_reference_comment�_region� _service_type� _time_created�_type)�self�kwargs� r] ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/vn_monitoring/models/virtual_circuit.py�__init__u s� a��zVirtualCircuit.__init__c C s | j S )a� Gets the bandwidth_shape_name of this VirtualCircuit. The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see :func:`list_fast_connect_provider_virtual_circuit_bandwidth_shapes`. Example: `10 Gbps` :return: The bandwidth_shape_name of this VirtualCircuit. :rtype: str �rF �r[ r] r] r^ r s z#VirtualCircuit.bandwidth_shape_namec C s || _ dS )a� Sets the bandwidth_shape_name of this VirtualCircuit. The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see :func:`list_fast_connect_provider_virtual_circuit_bandwidth_shapes`. Example: `10 Gbps` :param bandwidth_shape_name: The bandwidth_shape_name of this VirtualCircuit. :type: str Nr` )r[ r r] r] r^ r + s c C s | j S )a Gets the bgp_management of this VirtualCircuit. BGP management option. Allowed values for this property are: "CUSTOMER_MANAGED", "PROVIDER_MANAGED", "ORACLE_MANAGED" :return: The bgp_management of this VirtualCircuit. :rtype: str )rG ra r] r] r^ r ; s zVirtualCircuit.bgp_managementc C s* g d�}t ||�s td�|���|| _dS )z� Sets the bgp_management of this VirtualCircuit. BGP management option. :param bgp_management: The bgp_management of this VirtualCircuit. :type: str )r r r z>Invalid value for `bgp_management`, must be None or one of {0}N)r � ValueError�formatrG )r[ r �allowed_valuesr] r] r^ r I s ��c C s | j S )a Gets the bgp_session_state of this VirtualCircuit. The state of the BGP session associated with the virtual circuit. Allowed values for this property are: "UP", "DOWN" :return: The bgp_session_state of this VirtualCircuit. :rtype: str )rH ra r] r] r^ r [ s z VirtualCircuit.bgp_session_statec C s* ddg}t ||�s td�|���|| _dS )z� Sets the bgp_session_state of this VirtualCircuit. The state of the BGP session associated with the virtual circuit. :param bgp_session_state: The bgp_session_state of this VirtualCircuit. :type: str r r zAInvalid value for `bgp_session_state`, must be None or one of {0}N)r rb rc rH )r[ r rd r] r] r^ r i s ��c C s | j S )a3 Gets the compartment_id of this VirtualCircuit. The `OCID`__ of the compartment containing the virtual circuit. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this VirtualCircuit. :rtype: str �rI ra r] r] r^ r { s zVirtualCircuit.compartment_idc C s || _ dS )a@ Sets the compartment_id of this VirtualCircuit. The `OCID`__ of the compartment containing the virtual circuit. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this VirtualCircuit. :type: str Nre )r[ r r] r] r^ r � s c C s | j S )at Gets the cross_connect_mappings of this VirtualCircuit. An array of mappings, each containing properties for a cross-connect or cross-connect group that is associated with this virtual circuit. :return: The cross_connect_mappings of this VirtualCircuit. :rtype: list[oci.vn_monitoring.models.CrossConnectMapping] �rJ ra r] r] r^ r! � s z%VirtualCircuit.cross_connect_mappingsc C s || _ dS )a� Sets the cross_connect_mappings of this VirtualCircuit. An array of mappings, each containing properties for a cross-connect or cross-connect group that is associated with this virtual circuit. :param cross_connect_mappings: The cross_connect_mappings of this VirtualCircuit. :type: list[oci.vn_monitoring.models.CrossConnectMapping] Nrf )r[ r! r] r] r^ r! � s c C s | j S )a� Gets the customer_bgp_asn of this VirtualCircuit. The BGP ASN of the network at the other end of the BGP session from Oracle. If the session is between the customer's edge router and Oracle, the value is the customer's ASN. If the BGP session is between the provider's edge router and Oracle, the value is the provider's ASN. :return: The customer_bgp_asn of this VirtualCircuit. :rtype: int �rK ra r] r] r^ r"