o
    ëÉ¶d‡  ã                   @   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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 )ÚRegionSubscriptiona‘  
    An object that represents your tenancy's access to a particular region (i.e., a subscription), the status of that
    access, and whether that region is the home region. For more information, see `Managing Regions`__.

    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`__.

    __ https://docs.cloud.oracle.com/Content/Identity/regions/managingregions.htm
    __ https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm
    ÚREADYÚIN_PROGRESSc                 K   s<   dddddœ| _ dddddœ| _d| _d| _d| _d| _dS )	aØ  
        Initializes a new RegionSubscription object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param region_key:
            The value to assign to the region_key property of this RegionSubscription.
        :type region_key: str

        :param region_name:
            The value to assign to the region_name property of this RegionSubscription.
        :type region_name: str

        :param status:
            The value to assign to the status property of this RegionSubscription.
            Allowed values for this property are: "READY", "IN_PROGRESS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type status: str

        :param is_home_region:
            The value to assign to the is_home_region property of this RegionSubscription.
        :type is_home_region: bool

        ÚstrÚbool)Ú
region_keyÚregion_nameÚstatusÚis_home_regionZ	regionKeyZ
regionNamer   ZisHomeRegionN)Zswagger_typesZattribute_mapÚ_region_keyÚ_region_nameÚ_statusÚ_is_home_region)ÚselfÚkwargs© r   úKusr/lib/python3.10/site-packages/oci/identity/models/region_subscription.pyÚ__init__"   s   üü
zRegionSubscription.__init__c                 C   ó   | j S )aŠ  
        **[Required]** Gets the region_key of this RegionSubscription.
        The region's key. See `Regions and Availability Domains`__
        for the full list of supported 3-letter region codes.

        Example: `PHX`

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


        :return: The region_key of this RegionSubscription.
        :rtype: str
        ©r   ©r   r   r   r   r   M   ó   zRegionSubscription.region_keyc                 C   ó
   || _ dS )a„  
        Sets the region_key of this RegionSubscription.
        The region's key. See `Regions and Availability Domains`__
        for the full list of supported 3-letter region codes.

        Example: `PHX`

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


        :param region_key: The region_key of this RegionSubscription.
        :type: str
        Nr   )r   r   r   r   r   r   ^   ó   
c                 C   r   )a  
        **[Required]** Gets the region_name of this RegionSubscription.
        The region's name. See `Regions and Availability Domains`__
        for the full list of supported region names.

        Example: `us-phoenix-1`

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


        :return: The region_name of this RegionSubscription.
        :rtype: str
        ©r   r   r   r   r   r   o   r   zRegionSubscription.region_namec                 C   r   )aˆ  
        Sets the region_name of this RegionSubscription.
        The region's name. See `Regions and Availability Domains`__
        for the full list of supported region names.

        Example: `us-phoenix-1`

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


        :param region_name: The region_name of this RegionSubscription.
        :type: str
        Nr   )r   r   r   r   r   r   €   r   c                 C   r   )a}  
        **[Required]** Gets the status of this RegionSubscription.
        The region subscription status.

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


        :return: The status of this RegionSubscription.
        :rtype: str
        )r   r   r   r   r   r   ‘   s   zRegionSubscription.statusc                 C   s    ddg}t ||ƒsd}|| _dS )z¸
        Sets the status of this RegionSubscription.
        The region subscription status.


        :param status: The status of this RegionSubscription.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r       s   


c                 C   r   )zæ
        **[Required]** Gets the is_home_region of this RegionSubscription.
        Indicates if the region is the home region or not.


        :return: The is_home_region of this RegionSubscription.
        :rtype: bool
        ©r   r   r   r   r   r   ¯   s   
z!RegionSubscription.is_home_regionc                 C   r   )zä
        Sets the is_home_region of this RegionSubscription.
        Indicates if the region is the home region or not.


        :param is_home_region: The is_home_region of this RegionSubscription.
        :type: bool
        Nr   )r   r   r   r   r   r   »   s   

c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__Ç   s   zRegionSubscription.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__Ê   s   zRegionSubscription.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__Ð   s   
zRegionSubscription.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZSTATUS_READYZSTATUS_IN_PROGRESSr   Úpropertyr   Úsetterr   r   r   r!   r%   r&   r   r   r   r   r      s0    +







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   