o
    ɶdA                     @   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                   @   sn  e Zd ZdZdZdZdZdZdZdd Z	e
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d,d- Zd.d/ Zd0d1 Zd2S )3IdentityProviderax  
    The resulting base object when you add an identity provider to your tenancy. A
    :class:`Saml2IdentityProvider`
    is a specific type of `IdentityProvider` that supports the SAML 2.0 protocol. Each
    `IdentityProvider` object has its own OCID. For more information, see
    `Identity Providers and Federation`__.

    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 `Get Started with Policies`__.

    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string
    values using the API.

    __ https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm
    __ https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm
    CREATINGACTIVEINACTIVE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S )a	  
        Initializes a new IdentityProvider 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.identity.models.Saml2IdentityProvider`

        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 IdentityProvider.
        :type id: str

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

        :param name:
            The value to assign to the name property of this IdentityProvider.
        :type name: str

        :param description:
            The value to assign to the description property of this IdentityProvider.
        :type description: str

        :param product_type:
            The value to assign to the product_type property of this IdentityProvider.
        :type product_type: str

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

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

        :param inactive_status:
            The value to assign to the inactive_status property of this IdentityProvider.
        :type inactive_status: int

        :param protocol:
            The value to assign to the protocol property of this IdentityProvider.
        :type protocol: str

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

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

        strdatetimeintzdict(str, str)zdict(str, dict(str, object)))idcompartment_idnamedescriptionproduct_typetime_createdlifecycle_stateinactive_statusprotocolfreeform_tagsdefined_tagsr   ZcompartmentIdr   r   ZproductTypeZtimeCreatedZlifecycleStateZinactiveStatusr   ZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_name_description_product_type_time_created_lifecycle_state_inactive_status	_protocol_freeform_tags_defined_tags)selfkwargs r'   Iusr/lib/python3.10/site-packages/oci/identity/models/identity_provider.py__init__4   sF   9
zIdentityProvider.__init__c                 C   s   | d }|dkr
dS dS )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   ZSAML2ZSaml2IdentityProviderr   r'   )Zobject_dictionarytyper'   r'   r(   get_subtype   s   zIdentityProvider.get_subtypec                 C      | j S )z
        **[Required]** Gets the id of this IdentityProvider.
        The OCID of the `IdentityProvider`.


        :return: The id of this IdentityProvider.
        :rtype: str
        r   r%   r'   r'   r(   r         
zIdentityProvider.idc                 C   
   || _ dS )z
        Sets the id of this IdentityProvider.
        The OCID of the `IdentityProvider`.


        :param id: The id of this IdentityProvider.
        :type: str
        Nr-   )r%   r   r'   r'   r(   r         

c                 C   r,   )z
        **[Required]** Gets the compartment_id of this IdentityProvider.
        The OCID of the tenancy containing the `IdentityProvider`.


        :return: The compartment_id of this IdentityProvider.
        :rtype: str
        r   r.   r'   r'   r(   r      r/   zIdentityProvider.compartment_idc                 C   r0   )z
        Sets the compartment_id of this IdentityProvider.
        The OCID of the tenancy containing the `IdentityProvider`.


        :param compartment_id: The compartment_id of this IdentityProvider.
        :type: str
        Nr2   )r%   r   r'   r'   r(   r      r1   c                 C   r,   )a  
        **[Required]** Gets the name of this IdentityProvider.
        The name you assign to the `IdentityProvider` during creation. The name
        must be unique across all `IdentityProvider` objects in the tenancy and
        cannot be changed. This is the name federated users see when choosing
        which identity provider to use when signing in to the Oracle Cloud Infrastructure
        Console.


        :return: The name of this IdentityProvider.
        :rtype: str
        r   r.   r'   r'   r(   r         zIdentityProvider.namec                 C   r0   )a  
        Sets the name of this IdentityProvider.
        The name you assign to the `IdentityProvider` during creation. The name
        must be unique across all `IdentityProvider` objects in the tenancy and
        cannot be changed. This is the name federated users see when choosing
        which identity provider to use when signing in to the Oracle Cloud Infrastructure
        Console.


        :param name: The name of this IdentityProvider.
        :type: str
        Nr3   )r%   r   r'   r'   r(   r         
c                 C   r,   )a'  
        **[Required]** Gets the description of this IdentityProvider.
        The description you assign to the `IdentityProvider` during creation. Does
        not have to be unique, and it's changeable.


        :return: The description of this IdentityProvider.
        :rtype: str
        r   r.   r'   r'   r(   r      s   zIdentityProvider.descriptionc                 C   r0   )a"  
        Sets the description of this IdentityProvider.
        The description you assign to the `IdentityProvider` during creation. Does
        not have to be unique, and it's changeable.


        :param description: The description of this IdentityProvider.
        :type: str
        Nr6   )r%   r   r'   r'   r(   r      s   
c                 C   r,   )a  
        **[Required]** Gets the product_type of this IdentityProvider.
        The identity provider service or product.
        Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft
        Active Directory Federation Services (ADFS).

        Allowed values are:
        - `ADFS`
        - `IDCS`

        Example: `IDCS`


        :return: The product_type of this IdentityProvider.
        :rtype: str
        r   r.   r'   r'   r(   r     s   zIdentityProvider.product_typec                 C   r0   )a  
        Sets the product_type of this IdentityProvider.
        The identity provider service or product.
        Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft
        Active Directory Federation Services (ADFS).

        Allowed values are:
        - `ADFS`
        - `IDCS`

        Example: `IDCS`


        :param product_type: The product_type of this IdentityProvider.
        :type: str
        Nr7   )r%   r   r'   r'   r(   r     s   
c                 C   r,   )a0  
        **[Required]** Gets the time_created of this IdentityProvider.
        Date and time the `IdentityProvider` was created, in the format defined by RFC3339.

        Example: `2016-08-25T21:10:29.600Z`


        :return: The time_created of this IdentityProvider.
        :rtype: datetime
        r   r.   r'   r'   r(   r   3     zIdentityProvider.time_createdc                 C   r0   )a,  
        Sets the time_created of this IdentityProvider.
        Date and time the `IdentityProvider` was created, in the format defined by RFC3339.

        Example: `2016-08-25T21:10:29.600Z`


        :param time_created: The time_created of this IdentityProvider.
        :type: datetime
        Nr8   )r%   r   r'   r'   r(   r   A     
c                 C   r,   )a  
        **[Required]** Gets the lifecycle_state of this IdentityProvider.
        The current state. After creating an `IdentityProvider`, make sure its
        `lifecycleState` changes from CREATING to ACTIVE before using it.

        Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "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 IdentityProvider.
        :rtype: str
        )r    r.   r'   r'   r(   r   O  r4   z IdentityProvider.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )a@  
        Sets the lifecycle_state of this IdentityProvider.
        The current state. After creating an `IdentityProvider`, make sure its
        `lifecycleState` changes from CREATING to ACTIVE before using it.


        :param lifecycle_state: The lifecycle_state of this IdentityProvider.
        :type: str
        )r   r   r	   r
   r   ZUNKNOWN_ENUM_VALUEN)r   r    )r%   r   Zallowed_valuesr'   r'   r(   r   _  s   

c                 C   r,   )z
        Gets the inactive_status of this IdentityProvider.
        The detailed status of INACTIVE lifecycleState.


        :return: The inactive_status of this IdentityProvider.
        :rtype: int
        r!   r.   r'   r'   r(   r   o  r/   z IdentityProvider.inactive_statusc                 C   r0   )z
        Sets the inactive_status of this IdentityProvider.
        The detailed status of INACTIVE lifecycleState.


        :param inactive_status: The inactive_status of this IdentityProvider.
        :type: int
        Nr;   )r%   r   r'   r'   r(   r   {  r1   c                 C   r,   )z
        **[Required]** Gets the protocol of this IdentityProvider.
        The protocol used for federation. Allowed value: `SAML2`.

        Example: `SAML2`


        :return: The protocol of this IdentityProvider.
        :rtype: str
        r"   r.   r'   r'   r(   r     r9   zIdentityProvider.protocolc                 C   r0   )z
        Sets the protocol of this IdentityProvider.
        The protocol used for federation. Allowed value: `SAML2`.

        Example: `SAML2`


        :param protocol: The protocol of this IdentityProvider.
        :type: str
        Nr<   )r%   r   r'   r'   r(   r     r:   c                 C   r,   )a  
        Gets the freeform_tags of this IdentityProvider.
        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 IdentityProvider.
        :rtype: dict(str, str)
        r#   r.   r'   r'   r(   r     r4   zIdentityProvider.freeform_tagsc                 C   r0   )a  
        Sets the freeform_tags of this IdentityProvider.
        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 IdentityProvider.
        :type: dict(str, str)
        Nr=   )r%   r   r'   r'   r(   r     r5   c                 C   r,   )a  
        Gets the defined_tags of this IdentityProvider.
        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 IdentityProvider.
        :rtype: dict(str, dict(str, object))
        r$   r.   r'   r'   r(   r     r4   zIdentityProvider.defined_tagsc                 C   r0   )a  
        Sets the defined_tags of this IdentityProvider.
        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 IdentityProvider.
        :type: dict(str, dict(str, object))
        Nr>   )r%   r   r'   r'   r(   r     r5   c                 C   s   t | S N)r   r.   r'   r'   r(   __repr__  s   zIdentityProvider.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r%   otherr'   r'   r(   __eq__  s   zIdentityProvider.__eq__c                 C   s
   | |k S r?   r'   rB   r'   r'   r(   __ne__  s   
zIdentityProvider.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr)   staticmethodr+   propertyr   setterr   r   r   r   r   r   r   r   r   r   r@   rD   rE   r'   r'   r'   r(   r      sr    `






















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r'   r'   r'   r(   <module>   s   