o
    ɶd3                     @   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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d(d) Zd*S )+Groupa  
    A collection of users who all need the same type of access to a particular set of resources or compartment.
    For conceptual information about groups and other IAM Service components, see
    `Overview of IAM`__.

    If you're federating with an identity provider (IdP), you need to create mappings between the groups
    defined in the IdP and groups you define in the IAM service. For more information, see
    `Identity Providers and Federation`__. Also see
    :class:`IdentityProvider` and
    :class:`IdpGroupMapping`.

    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/getstarted/identity-domains.htm
    __ 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   sn   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 Group 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 Group.
        :type id: str

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Group.
            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 Group.
        :type inactive_status: int

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

        :param defined_tags:
            The value to assign to the defined_tags property of this Group.
        :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time_createdlifecycle_stateinactive_statusfreeform_tagsdefined_tagsr   ZcompartmentIdr   r   ZtimeCreatedZlifecycleStateZinactiveStatusZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_name_description_time_created_lifecycle_state_inactive_status_freeform_tags_defined_tags)selfkwargs r#   =usr/lib/python3.10/site-packages/oci/identity/models/group.py__init__9   s:   -
zGroup.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Group.
        The OCID of the group.


        :return: The id of this Group.
        :rtype: str
        r   r!   r#   r#   r$   r         
zGroup.idc                 C   
   || _ dS )z
        Sets the id of this Group.
        The OCID of the group.


        :param id: The id of this Group.
        :type: str
        Nr'   )r!   r   r#   r#   r$   r         

c                 C   r&   )z
        **[Required]** Gets the compartment_id of this Group.
        The OCID of the tenancy containing the group.


        :return: The compartment_id of this Group.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zGroup.compartment_idc                 C   r*   )z
        Sets the compartment_id of this Group.
        The OCID of the tenancy containing the group.


        :param compartment_id: The compartment_id of this Group.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )a  
        **[Required]** Gets the name of this Group.
        The name you assign to the group during creation. The name must be unique across all groups in
        the tenancy and cannot be changed.


        :return: The name of this Group.
        :rtype: str
        r   r(   r#   r#   r$   r      s   z
Group.namec                 C   r*   )a  
        Sets the name of this Group.
        The name you assign to the group during creation. The name must be unique across all groups in
        the tenancy and cannot be changed.


        :param name: The name of this Group.
        :type: str
        Nr-   )r!   r   r#   r#   r$   r      s   
c                 C   r&   )aF  
        **[Required]** Gets the description of this Group.
        The description you assign to the group. Does not have to be unique, and it's changeable.

        (For tenancies that support identity domains) You can have an empty description.


        :return: The description of this Group.
        :rtype: str
        r   r(   r#   r#   r$   r         zGroup.descriptionc                 C   r*   )aA  
        Sets the description of this Group.
        The description you assign to the group. Does not have to be unique, and it's changeable.

        (For tenancies that support identity domains) You can have an empty description.


        :param description: The description of this Group.
        :type: str
        Nr.   )r!   r   r#   r#   r$   r         
c                 C   r&   )a  
        **[Required]** Gets the time_created of this Group.
        Date and time the group was created, in the format defined by RFC3339.

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


        :return: The time_created of this Group.
        :rtype: datetime
        r   r(   r#   r#   r$   r      r/   zGroup.time_createdc                 C   r*   )a	  
        Sets the time_created of this Group.
        Date and time the group was created, in the format defined by RFC3339.

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


        :param time_created: The time_created of this Group.
        :type: datetime
        Nr1   )r!   r   r#   r#   r$   r      r0   c                 C   r&   )a  
        **[Required]** Gets the lifecycle_state of this Group.
        The group's current state. After creating a group, 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 Group.
        :rtype: str
        )r   r(   r#   r#   r$   r   	     zGroup.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )a$  
        Sets the lifecycle_state of this Group.
        The group's current state. After creating a group, make sure its `lifecycleState` changes from CREATING to
        ACTIVE before using it.


        :param lifecycle_state: The lifecycle_state of this Group.
        :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 Group.
        The detailed status of INACTIVE lifecycleState.


        :return: The inactive_status of this Group.
        :rtype: int
        r   r(   r#   r#   r$   r   )  r)   zGroup.inactive_statusc                 C   r*   )z
        Sets the inactive_status of this Group.
        The detailed status of INACTIVE lifecycleState.


        :param inactive_status: The inactive_status of this Group.
        :type: int
        Nr3   )r!   r   r#   r#   r$   r   5  r+   c                 C   r&   )a  
        Gets the freeform_tags of this Group.
        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 Group.
        :rtype: dict(str, str)
        r   r(   r#   r#   r$   r   A  r2   zGroup.freeform_tagsc                 C   r*   )a  
        Sets the freeform_tags of this Group.
        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 Group.
        :type: dict(str, str)
        Nr4   )r!   r   r#   r#   r$   r   Q     
c                 C   r&   )a  
        Gets the defined_tags of this Group.
        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 Group.
        :rtype: dict(str, dict(str, object))
        r    r(   r#   r#   r$   r   a  r2   zGroup.defined_tagsc                 C   r*   )a  
        Sets the defined_tags of this Group.
        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 Group.
        :type: dict(str, dict(str, object))
        Nr6   )r!   r   r#   r#   r$   r   q  r5   c                 C   s   t | S N)r   r(   r#   r#   r$   __repr__  s   zGroup.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r!   otherr#   r#   r$   __eq__  s   zGroup.__eq__c                 C   s
   | |k S r7   r#   r:   r#   r#   r$   __ne__  s   
zGroup.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr%   propertyr   setterr   r   r   r   r   r   r   r   r8   r<   r=   r#   r#   r#   r$   r      s^    N

















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r#   r#   r#   r$   <module>   s   