o
    ɶdV                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s
  e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
d Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejd d Zed!d" Zejd#d" Zed$d% Zejd&d% Zed'd( Zejd)d( Zed*d+ Zejd,d+ Zed-d. Zejd/d. Zed0d1 Zejd2d1 Zed3d4 Zejd5d4 Zed6d7 Zejd8d7 Zed9d: Zejd;d: Zed<d= Zejd>d= Zd?d@ Z dAdB Z!dCdD Z"dES )FGatewaya  
    A gateway is a virtual network appliance in a regional subnet. A gateway routes inbound traffic to back-end services including public, private, and partner HTTP APIs, as well as Oracle Functions. Avoid entering confidential information. For more information, see
    `API Gateway Concepts`__.

    __ https://docs.cloud.oracle.com/iaas/Content/APIGateway/Concepts/apigatewayconcepts.htm
    PUBLICPRIVATECREATINGACTIVEUPDATINGDELETINGDELETEDFAILEDc                 K   sB  i ddddddddddddd	d
dd
dddddddddddddddddd| _ i ddddddddddddd	ddd dd!dd"dddd#dd$dd%dd&dd'dd(| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _	d)| _
d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)S )*a  
        Initializes a new Gateway object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this Gateway.
        :type id: str

        :param display_name:
            The value to assign to the display_name property of this Gateway.
        :type display_name: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Gateway.
        :type compartment_id: str

        :param endpoint_type:
            The value to assign to the endpoint_type property of this Gateway.
            Allowed values for this property are: "PUBLIC", "PRIVATE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type endpoint_type: str

        :param subnet_id:
            The value to assign to the subnet_id property of this Gateway.
        :type subnet_id: str

        :param network_security_group_ids:
            The value to assign to the network_security_group_ids property of this Gateway.
        :type network_security_group_ids: list[str]

        :param time_created:
            The value to assign to the time_created property of this Gateway.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this Gateway.
        :type time_updated: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Gateway.
            Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this Gateway.
        :type lifecycle_details: str

        :param hostname:
            The value to assign to the hostname property of this Gateway.
        :type hostname: str

        :param certificate_id:
            The value to assign to the certificate_id property of this Gateway.
        :type certificate_id: str

        :param ip_addresses:
            The value to assign to the ip_addresses property of this Gateway.
        :type ip_addresses: list[oci.apigateway.models.IpAddress]

        :param response_cache_details:
            The value to assign to the response_cache_details property of this Gateway.
        :type response_cache_details: oci.apigateway.models.ResponseCacheDetails

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Gateway.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Gateway.
        :type defined_tags: dict(str, dict(str, object))

        :param ca_bundles:
            The value to assign to the ca_bundles property of this Gateway.
        :type ca_bundles: list[oci.apigateway.models.CaBundle]

        idstrdisplay_namecompartment_idendpoint_type	subnet_idnetwork_security_group_idsz	list[str]time_createddatetimetime_updatedlifecycle_statelifecycle_detailshostnamecertificate_idip_addresseszlist[IpAddress]response_cache_detailsZResponseCacheDetailsfreeform_tagszdict(str, str)defined_tagszdict(str, dict(str, object))
ca_bundleszlist[CaBundle]ZdisplayNameZcompartmentIdZendpointTypeZsubnetIdZnetworkSecurityGroupIdsZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZcertificateIdZipAddressesZresponseCacheDetailsZfreeformTagsZdefinedTagsZ	caBundlesN)Zswagger_typesZattribute_map_id_display_name_compartment_id_endpoint_type
_subnet_id_network_security_group_ids_time_created_time_updated_lifecycle_state_lifecycle_details	_hostname_certificate_id_ip_addresses_response_cache_details_freeform_tags_defined_tags_ca_bundles)selfkwargs r5   Ausr/lib/python3.10/site-packages/oci/apigateway/models/gateway.py__init__5   s   N	
	

zGateway.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Gateway.
        The `OCID`__ of the resource.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The id of this Gateway.
        :rtype: str
        r"   r3   r5   r5   r6   r         z
Gateway.idc                 C   
   || _ dS )z
        Sets the id of this Gateway.
        The `OCID`__ of the resource.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param id: The id of this Gateway.
        :type: str
        Nr9   )r3   r   r5   r5   r6   r         
c                 C   r8   )a%  
        Gets the display_name of this Gateway.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.

        Example: `My new resource`


        :return: The display_name of this Gateway.
        :rtype: str
        r#   r:   r5   r5   r6   r         zGateway.display_namec                 C   r<   )a0  
        Sets the display_name of this Gateway.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.

        Example: `My new resource`


        :param display_name: The display_name of this Gateway.
        :type: str
        Nr>   )r3   r   r5   r5   r6   r         
c                 C   r8   )a9  
        **[Required]** Gets the compartment_id of this Gateway.
        The `OCID`__ of the compartment in which the
        resource is created.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this Gateway.
        :rtype: str
        r$   r:   r5   r5   r6   r      r?   zGateway.compartment_idc                 C   r<   )a7  
        Sets the compartment_id of this Gateway.
        The `OCID`__ of the compartment in which the
        resource is created.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this Gateway.
        :type: str
        NrA   )r3   r   r5   r5   r6   r     r@   c                 C   r8   )a  
        **[Required]** Gets the endpoint_type of this Gateway.
        Gateway endpoint type. `PUBLIC` will have a public ip address assigned to it, while `PRIVATE` will only be
        accessible on a private IP address on the subnet.

        Example: `PUBLIC` or `PRIVATE`

        Allowed values for this property are: "PUBLIC", "PRIVATE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The endpoint_type of this Gateway.
        :rtype: str
        )r%   r:   r5   r5   r6   r        zGateway.endpoint_typec                 C   s    ddg}t ||sd}|| _dS )ad  
        Sets the endpoint_type of this Gateway.
        Gateway endpoint type. `PUBLIC` will have a public ip address assigned to it, while `PRIVATE` will only be
        accessible on a private IP address on the subnet.

        Example: `PUBLIC` or `PRIVATE`


        :param endpoint_type: The endpoint_type of this Gateway.
        :type: str
        r   r   UNKNOWN_ENUM_VALUEN)r   r%   )r3   r   allowed_valuesr5   r5   r6   r   '  s   

c                 C   r8   )a!  
        Gets the subnet_id of this Gateway.
        The `OCID`__ of the subnet in which
        related resources are created.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The subnet_id of this Gateway.
        :rtype: str
        r&   r:   r5   r5   r6   r   9  r?   zGateway.subnet_idc                 C   r<   )a)  
        Sets the subnet_id of this Gateway.
        The `OCID`__ of the subnet in which
        related resources are created.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param subnet_id: The subnet_id of this Gateway.
        :type: str
        NrE   )r3   r   r5   r5   r6   r   H  r@   c                 C   r8   )z
        Gets the network_security_group_ids of this Gateway.
        An array of Network Security Groups OCIDs associated with this API Gateway.


        :return: The network_security_group_ids of this Gateway.
        :rtype: list[str]
        r'   r:   r5   r5   r6   r   W     
z"Gateway.network_security_group_idsc                 C   r<   )a  
        Sets the network_security_group_ids of this Gateway.
        An array of Network Security Groups OCIDs associated with this API Gateway.


        :param network_security_group_ids: The network_security_group_ids of this Gateway.
        :type: list[str]
        NrF   )r3   r   r5   r5   r6   r   c     

c                 C   r8   )z
        Gets the time_created of this Gateway.
        The time this resource was created. An RFC3339 formatted datetime string.


        :return: The time_created of this Gateway.
        :rtype: datetime
        r(   r:   r5   r5   r6   r   o  rG   zGateway.time_createdc                 C   r<   )z
        Sets the time_created of this Gateway.
        The time this resource was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this Gateway.
        :type: datetime
        NrI   )r3   r   r5   r5   r6   r   {  rH   c                 C   r8   )z
        Gets the time_updated of this Gateway.
        The time this resource was last updated. An RFC3339 formatted datetime string.


        :return: The time_updated of this Gateway.
        :rtype: datetime
        r)   r:   r5   r5   r6   r     rG   zGateway.time_updatedc                 C   r<   )z
        Sets the time_updated of this Gateway.
        The time this resource was last updated. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this Gateway.
        :type: datetime
        NrJ   )r3   r   r5   r5   r6   r     rH   c                 C   r8   )a  
        Gets the lifecycle_state of this Gateway.
        The current state of the gateway.

        Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Gateway.
        :rtype: str
        )r*   r:   r5   r5   r6   r     r?   zGateway.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Gateway.
        The current state of the gateway.


        :param lifecycle_state: The lifecycle_state of this Gateway.
        :type: str
        )r	   r
   r   r   r   r   rC   N)r   r*   )r3   r   rD   r5   r5   r6   r     s   


c                 C   r8   )a7  
        Gets the lifecycle_details of this Gateway.
        A message describing the current state in more detail.
        For example, can be used to provide actionable information for a
        resource in a Failed state.


        :return: The lifecycle_details of this Gateway.
        :rtype: str
        r+   r:   r5   r5   r6   r     r;   zGateway.lifecycle_detailsc                 C   r<   )aG  
        Sets the lifecycle_details of this Gateway.
        A message describing the current state in more detail.
        For example, can be used to provide actionable information for a
        resource in a Failed state.


        :param lifecycle_details: The lifecycle_details of this Gateway.
        :type: str
        NrK   )r3   r   r5   r5   r6   r     r=   c                 C   r8   )z
        Gets the hostname of this Gateway.
        The hostname for APIs deployed on the gateway.


        :return: The hostname of this Gateway.
        :rtype: str
        r,   r:   r5   r5   r6   r     rG   zGateway.hostnamec                 C   r<   )z
        Sets the hostname of this Gateway.
        The hostname for APIs deployed on the gateway.


        :param hostname: The hostname of this Gateway.
        :type: str
        NrL   )r3   r   r5   r5   r6   r     rH   c                 C   r8   )z
        Gets the certificate_id of this Gateway.
        The `OCID`__ of the resource.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The certificate_id of this Gateway.
        :rtype: str
        r-   r:   r5   r5   r6   r     r;   zGateway.certificate_idc                 C   r<   )a  
        Sets the certificate_id of this Gateway.
        The `OCID`__ of the resource.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param certificate_id: The certificate_id of this Gateway.
        :type: str
        NrM   )r3   r   r5   r5   r6   r     r=   c                 C   r8   )z
        Gets the ip_addresses of this Gateway.
        An array of IP addresses associated with the gateway.


        :return: The ip_addresses of this Gateway.
        :rtype: list[oci.apigateway.models.IpAddress]
        r.   r:   r5   r5   r6   r     rG   zGateway.ip_addressesc                 C   r<   )z
        Sets the ip_addresses of this Gateway.
        An array of IP addresses associated with the gateway.


        :param ip_addresses: The ip_addresses of this Gateway.
        :type: list[oci.apigateway.models.IpAddress]
        NrN   )r3   r   r5   r5   r6   r     rH   c                 C   r8   )z
        Gets the response_cache_details of this Gateway.

        :return: The response_cache_details of this Gateway.
        :rtype: oci.apigateway.models.ResponseCacheDetails
        r/   r:   r5   r5   r6   r   %  s   zGateway.response_cache_detailsc                 C   r<   )z
        Sets the response_cache_details of this Gateway.

        :param response_cache_details: The response_cache_details of this Gateway.
        :type: oci.apigateway.models.ResponseCacheDetails
        NrO   )r3   r   r5   r5   r6   r   /  s   
c                 C   r8   )a  
        Gets the freeform_tags of this Gateway.
        Free-form tags for this resource. Each tag is a simple key-value pair
        with no predefined name, type, or namespace. For more information, see
        `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Gateway.
        :rtype: dict(str, str)
        r0   r:   r5   r5   r6   r   9  rB   zGateway.freeform_tagsc                 C   r<   )a  
        Sets the freeform_tags of this Gateway.
        Free-form tags for this resource. Each tag is a simple key-value pair
        with no predefined name, type, or namespace. For more information, see
        `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Gateway.
        :type: dict(str, str)
        NrP   )r3   r   r5   r5   r6   r   K     
c                 C   r8   )a  
        Gets the defined_tags of this Gateway.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, see
        `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Gateway.
        :rtype: dict(str, dict(str, object))
        r1   r:   r5   r5   r6   r    ]  rB   zGateway.defined_tagsc                 C   r<   )a  
        Sets the defined_tags of this Gateway.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, see
        `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Gateway.
        :type: dict(str, dict(str, object))
        NrR   )r3   r    r5   r5   r6   r    o  rQ   c                 C   r8   )z
        Gets the ca_bundles of this Gateway.
        An array of CA bundles that should be used on the Gateway for TLS validation.


        :return: The ca_bundles of this Gateway.
        :rtype: list[oci.apigateway.models.CaBundle]
        r2   r:   r5   r5   r6   r!     rG   zGateway.ca_bundlesc                 C   r<   )z
        Sets the ca_bundles of this Gateway.
        An array of CA bundles that should be used on the Gateway for TLS validation.


        :param ca_bundles: The ca_bundles of this Gateway.
        :type: list[oci.apigateway.models.CaBundle]
        NrS   )r3   r!   r5   r5   r6   r!     rH   c                 C   s   t | S N)r   r:   r5   r5   r6   __repr__  s   zGateway.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r3   otherr5   r5   r6   __eq__  s   zGateway.__eq__c                 C   s
   | |k S rT   r5   rW   r5   r5   r6   __ne__  s   
zGateway.__ne__N)#__name__
__module____qualname____doc__ZENDPOINT_TYPE_PUBLICZENDPOINT_TYPE_PRIVATEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr7   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   rU   rY   rZ   r5   r5   r5   r6   r      s    	 	


























	
	





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r5   r5   r5   r6   <module>   s   