o
    ɶdE                     @   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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d.d/ Zejd0d/ Zed1d2 Zejd3d2 Zd4d5 Zd6d7 Zd8d9 Zd:S );
WaasPolicya1  
    The details of a Web Application Acceleration and Security (WAAS) policy. A policy describes how the WAAS service should operate for the configured web application.

    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
    CREATINGACTIVEFAILEDUPDATINGDELETINGDELETEDc                 K   s   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 WaasPolicy 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 WaasPolicy.
        :type id: str

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

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

        :param domain:
            The value to assign to the domain property of this WaasPolicy.
        :type domain: str

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

        :param cname:
            The value to assign to the cname property of this WaasPolicy.
        :type cname: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this WaasPolicy.
            Allowed values for this property are: "CREATING", "ACTIVE", "FAILED", "UPDATING", "DELETING", "DELETED", '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 WaasPolicy.
        :type time_created: datetime

        :param origins:
            The value to assign to the origins property of this WaasPolicy.
        :type origins: dict(str, Origin)

        :param origin_groups:
            The value to assign to the origin_groups property of this WaasPolicy.
        :type origin_groups: dict(str, OriginGroup)

        :param policy_config:
            The value to assign to the policy_config property of this WaasPolicy.
        :type policy_config: oci.waas.models.PolicyConfig

        :param waf_config:
            The value to assign to the waf_config property of this WaasPolicy.
        :type waf_config: oci.waas.models.WafConfig

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

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

        strz	list[str]datetimezdict(str, Origin)zdict(str, OriginGroup)ZPolicyConfigZ	WafConfigzdict(str, str)zdict(str, dict(str, object)))idcompartment_iddisplay_namedomainadditional_domainscnamelifecycle_statetime_createdoriginsorigin_groupspolicy_config
waf_configfreeform_tagsdefined_tagsr   ZcompartmentIdZdisplayNamer   ZadditionalDomainsr   ZlifecycleStateZtimeCreatedr   ZoriginGroupsZpolicyConfigZ	wafConfigZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_display_name_domain_additional_domains_cname_lifecycle_state_time_created_origins_origin_groups_policy_config_waf_config_freeform_tags_defined_tags)selfkwargs r-   ?usr/lib/python3.10/site-packages/oci/waas/models/waas_policy.py__init__,   sX   A
zWaasPolicy.__init__c                 C      | j S )z
        Gets the id of this WaasPolicy.
        The `OCID`__ of the WAAS policy.

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


        :return: The id of this WaasPolicy.
        :rtype: str
        r   r+   r-   r-   r.   r         zWaasPolicy.idc                 C   
   || _ dS )z
        Sets the id of this WaasPolicy.
        The `OCID`__ of the WAAS policy.

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


        :param id: The id of this WaasPolicy.
        :type: str
        Nr1   )r+   r   r-   r-   r.   r         
c                 C   r0   )a  
        Gets the compartment_id of this WaasPolicy.
        The `OCID`__ of the WAAS policy's compartment.

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


        :return: The compartment_id of this WaasPolicy.
        :rtype: str
        r   r2   r-   r-   r.   r      r3   zWaasPolicy.compartment_idc                 C   r4   )a"  
        Sets the compartment_id of this WaasPolicy.
        The `OCID`__ of the WAAS policy's compartment.

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


        :param compartment_id: The compartment_id of this WaasPolicy.
        :type: str
        Nr6   )r+   r   r-   r-   r.   r      r5   c                 C   r0   )z
        Gets the display_name of this WaasPolicy.
        The user-friendly name of the WAAS policy. The name can be changed and does not need to be unique.


        :return: The display_name of this WaasPolicy.
        :rtype: str
        r   r2   r-   r-   r.   r         
zWaasPolicy.display_namec                 C   r4   )z
        Sets the display_name of this WaasPolicy.
        The user-friendly name of the WAAS policy. The name can be changed and does not need to be unique.


        :param display_name: The display_name of this WaasPolicy.
        :type: str
        Nr7   )r+   r   r-   r-   r.   r         

c                 C   r0   )z
        Gets the domain of this WaasPolicy.
        The web application domain that the WAAS policy protects.


        :return: The domain of this WaasPolicy.
        :rtype: str
        r    r2   r-   r-   r.   r      r8   zWaasPolicy.domainc                 C   r4   )z
        Sets the domain of this WaasPolicy.
        The web application domain that the WAAS policy protects.


        :param domain: The domain of this WaasPolicy.
        :type: str
        Nr:   )r+   r   r-   r-   r.   r      r9   c                 C   r0   )z
        Gets the additional_domains of this WaasPolicy.
        An array of additional domains for this web application.


        :return: The additional_domains of this WaasPolicy.
        :rtype: list[str]
        r!   r2   r-   r-   r.   r     r8   zWaasPolicy.additional_domainsc                 C   r4   )z
        Sets the additional_domains of this WaasPolicy.
        An array of additional domains for this web application.


        :param additional_domains: The additional_domains of this WaasPolicy.
        :type: list[str]
        Nr;   )r+   r   r-   r-   r.   r     r9   c                 C   r0   )a  
        Gets the cname of this WaasPolicy.
        The CNAME record to add to your DNS configuration to route traffic for the domain, and all additional domains, through the WAF.


        :return: The cname of this WaasPolicy.
        :rtype: str
        r"   r2   r-   r-   r.   r     r8   zWaasPolicy.cnamec                 C   r4   )a  
        Sets the cname of this WaasPolicy.
        The CNAME record to add to your DNS configuration to route traffic for the domain, and all additional domains, through the WAF.


        :param cname: The cname of this WaasPolicy.
        :type: str
        Nr<   )r+   r   r-   r-   r.   r   )  r9   c                 C   r0   )a  
        Gets the lifecycle_state of this WaasPolicy.
        The current lifecycle state of the WAAS policy.

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


        :return: The lifecycle_state of this WaasPolicy.
        :rtype: str
        )r#   r2   r-   r-   r.   r   5  s   zWaasPolicy.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this WaasPolicy.
        The current lifecycle state of the WAAS policy.


        :param lifecycle_state: The lifecycle_state of this WaasPolicy.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r#   )r+   r   Zallowed_valuesr-   r-   r.   r   D  s   


c                 C   r0   )z
        Gets the time_created of this WaasPolicy.
        The date and time the policy was created, expressed in RFC 3339 timestamp format.


        :return: The time_created of this WaasPolicy.
        :rtype: datetime
        r$   r2   r-   r-   r.   r   S  r8   zWaasPolicy.time_createdc                 C   r4   )z
        Sets the time_created of this WaasPolicy.
        The date and time the policy was created, expressed in RFC 3339 timestamp format.


        :param time_created: The time_created of this WaasPolicy.
        :type: datetime
        Nr=   )r+   r   r-   r-   r.   r   _  r9   c                 C   r0   )a  
        Gets the origins of this WaasPolicy.
        A map of host servers (origins) and their keys for the web application. Origin keys are used to associate origins to specific protection rules. The key should be a user-friendly name for the host. **Examples:** `primary` or `secondary`.


        :return: The origins of this WaasPolicy.
        :rtype: dict(str, Origin)
        r%   r2   r-   r-   r.   r   k  r8   zWaasPolicy.originsc                 C   r4   )a  
        Sets the origins of this WaasPolicy.
        A map of host servers (origins) and their keys for the web application. Origin keys are used to associate origins to specific protection rules. The key should be a user-friendly name for the host. **Examples:** `primary` or `secondary`.


        :param origins: The origins of this WaasPolicy.
        :type: dict(str, Origin)
        Nr>   )r+   r   r-   r-   r.   r   w  r9   c                 C   r0   )a  
        Gets the origin_groups of this WaasPolicy.
        The map of origin groups and their keys used to associate origins to the `wafConfig`. Origin groups allow you to apply weights to groups of origins for load balancing purposes. Origins with higher weights will receive larger proportions of client requests.


        :return: The origin_groups of this WaasPolicy.
        :rtype: dict(str, OriginGroup)
        r&   r2   r-   r-   r.   r     r8   zWaasPolicy.origin_groupsc                 C   r4   )a  
        Sets the origin_groups of this WaasPolicy.
        The map of origin groups and their keys used to associate origins to the `wafConfig`. Origin groups allow you to apply weights to groups of origins for load balancing purposes. Origins with higher weights will receive larger proportions of client requests.


        :param origin_groups: The origin_groups of this WaasPolicy.
        :type: dict(str, OriginGroup)
        Nr?   )r+   r   r-   r-   r.   r     r9   c                 C   r0   )z
        Gets the policy_config of this WaasPolicy.

        :return: The policy_config of this WaasPolicy.
        :rtype: oci.waas.models.PolicyConfig
        r'   r2   r-   r-   r.   r        zWaasPolicy.policy_configc                 C   r4   )z
        Sets the policy_config of this WaasPolicy.

        :param policy_config: The policy_config of this WaasPolicy.
        :type: oci.waas.models.PolicyConfig
        Nr@   )r+   r   r-   r-   r.   r        
c                 C   r0   )z
        Gets the waf_config of this WaasPolicy.

        :return: The waf_config of this WaasPolicy.
        :rtype: oci.waas.models.WafConfig
        r(   r2   r-   r-   r.   r     rA   zWaasPolicy.waf_configc                 C   r4   )z
        Sets the waf_config of this WaasPolicy.

        :param waf_config: The waf_config of this WaasPolicy.
        :type: oci.waas.models.WafConfig
        NrC   )r+   r   r-   r-   r.   r     rB   c                 C   r0   )a  
        Gets the freeform_tags of this WaasPolicy.
        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 WaasPolicy.
        :rtype: dict(str, str)
        r)   r2   r-   r-   r.   r        zWaasPolicy.freeform_tagsc                 C   r4   )a  
        Sets the freeform_tags of this WaasPolicy.
        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 WaasPolicy.
        :type: dict(str, str)
        NrD   )r+   r   r-   r-   r.   r        
c                 C   r0   )a  
        Gets the defined_tags of this WaasPolicy.
        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 WaasPolicy.
        :rtype: dict(str, dict(str, object))
        r*   r2   r-   r-   r.   r     rE   zWaasPolicy.defined_tagsc                 C   r4   )a  
        Sets the defined_tags of this WaasPolicy.
        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 WaasPolicy.
        :type: dict(str, dict(str, object))
        NrG   )r+   r   r-   r-   r.   r     rF   c                 C   s   t | S N)r   r2   r-   r-   r.   __repr__  s   zWaasPolicy.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r+   otherr-   r-   r.   __eq__
  s   zWaasPolicy.__eq__c                 C   s
   | |k S rH   r-   rK   r-   r-   r.   __ne__  s   
zWaasPolicy.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr/   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   rI   rM   rN   r-   r-   r-   r.   r      s    q




















	
	
	
	



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r-   r-   r-   r.   <module>   s   