o
    ɶdMV                     @   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d9d: Zd;d< Zd=d> Z d?S )@Stacka  
    The properties that define a stack.
    A stack is the collection of Oracle Cloud Infrastructure resources corresponding to a given Terraform configuration.
    For instructions on managing stacks, see
    `Managing Stacks`__.
    For more information about stacks, see
    `Key Concepts`__.

    __ https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Tasks/stacks.htm
    __ https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#concepts__stackdefinition
    CREATINGACTIVEDELETINGDELETEDFAILEDNOT_CHECKEDIN_SYNCDRIFTEDc                 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| _d| _d| _dS )a  
        Initializes a new Stack 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 Stack.
        :type id: str

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Stack.
            Allowed values for this property are: "CREATING", "ACTIVE", "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 config_source:
            The value to assign to the config_source property of this Stack.
        :type config_source: oci.resource_manager.models.ConfigSource

        :param custom_terraform_provider:
            The value to assign to the custom_terraform_provider property of this Stack.
        :type custom_terraform_provider: oci.resource_manager.models.CustomTerraformProvider

        :param is_third_party_provider_experience_enabled:
            The value to assign to the is_third_party_provider_experience_enabled property of this Stack.
        :type is_third_party_provider_experience_enabled: bool

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

        :param terraform_version:
            The value to assign to the terraform_version property of this Stack.
        :type terraform_version: str

        :param stack_drift_status:
            The value to assign to the stack_drift_status property of this Stack.
            Allowed values for this property are: "NOT_CHECKED", "IN_SYNC", "DRIFTED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type stack_drift_status: str

        :param time_drift_last_checked:
            The value to assign to the time_drift_last_checked property of this Stack.
        :type time_drift_last_checked: datetime

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

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

        strdatetimeZConfigSourceZCustomTerraformProviderboolzdict(str, str)zdict(str, dict(str, object)))idcompartment_iddisplay_namedescriptiontime_createdlifecycle_stateconfig_sourcecustom_terraform_provider*is_third_party_provider_experience_enabled	variablesterraform_versionstack_drift_statustime_drift_last_checkedfreeform_tagsdefined_tagsr   ZcompartmentIdZdisplayNamer   ZtimeCreatedZlifecycleStateZconfigSourceZcustomTerraformProviderZ%isThirdPartyProviderExperienceEnabledr   ZterraformVersionZstackDriftStatusZtimeDriftLastCheckedZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_display_name_description_time_created_lifecycle_state_config_source_custom_terraform_provider+_is_third_party_provider_experience_enabled
_variables_terraform_version_stack_drift_status_time_drift_last_checked_freeform_tags_defined_tags)selfkwargs r2   Eusr/lib/python3.10/site-packages/oci/resource_manager/models/stack.py__init__:   s^   G
zStack.__init__c                 C      | j S )z
        Gets the id of this Stack.
        Unique identifier (`OCID`__) for the stack.

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


        :return: The id of this Stack.
        :rtype: str
        r!   r0   r2   r2   r3   r         zStack.idc                 C   
   || _ dS )z
        Sets the id of this Stack.
        Unique identifier (`OCID`__) for the stack.

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


        :param id: The id of this Stack.
        :type: str
        Nr6   )r0   r   r2   r2   r3   r         
c                 C   r5   )a.  
        Gets the compartment_id of this Stack.
        Unique identifier (`OCID`__) for the compartment where the stack is located.

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


        :return: The compartment_id of this Stack.
        :rtype: str
        r"   r7   r2   r2   r3   r      r8   zStack.compartment_idc                 C   r9   )a;  
        Sets the compartment_id of this Stack.
        Unique identifier (`OCID`__) for the compartment where the stack is located.

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


        :param compartment_id: The compartment_id of this Stack.
        :type: str
        Nr;   )r0   r   r2   r2   r3   r      r:   c                 C   r5   )z
        Gets the display_name of this Stack.
        Human-readable name of the stack.


        :return: The display_name of this Stack.
        :rtype: str
        r#   r7   r2   r2   r3   r         
zStack.display_namec                 C   r9   )z
        Sets the display_name of this Stack.
        Human-readable name of the stack.


        :param display_name: The display_name of this Stack.
        :type: str
        Nr<   )r0   r   r2   r2   r3   r         

c                 C   r5   )z
        Gets the description of this Stack.
        Description of the stack.


        :return: The description of this Stack.
        :rtype: str
        r$   r7   r2   r2   r3   r     r=   zStack.descriptionc                 C   r9   )z
        Sets the description of this Stack.
        Description of the stack.


        :param description: The description of this Stack.
        :type: str
        Nr?   )r0   r   r2   r2   r3   r     r>   c                 C   r5   )a  
        Gets the time_created of this Stack.
        The date and time at which the stack was created.
        Format is defined by RFC3339.
        Example: `2020-01-25T21:10:29.600Z`


        :return: The time_created of this Stack.
        :rtype: datetime
        r%   r7   r2   r2   r3   r     r8   zStack.time_createdc                 C   r9   )a  
        Sets the time_created of this Stack.
        The date and time at which the stack was created.
        Format is defined by RFC3339.
        Example: `2020-01-25T21:10:29.600Z`


        :param time_created: The time_created of this Stack.
        :type: datetime
        Nr@   )r0   r   r2   r2   r3   r   *  r:   c                 C   r5   )av  
        Gets the lifecycle_state of this Stack.
        The current lifecycle state of the stack.
        For more information about stack lifecycle states in Resource Manager, see
        `Key Concepts`__.

        __ https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#concepts__StackStates

        Allowed values for this property are: "CREATING", "ACTIVE", "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 Stack.
        :rtype: str
        )r&   r7   r2   r2   r3   r   8     zStack.lifecycle_statec                 C       g d}t ||sd}|| _dS )a  
        Sets the lifecycle_state of this Stack.
        The current lifecycle state of the stack.
        For more information about stack lifecycle states in Resource Manager, see
        `Key Concepts`__.

        __ https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#concepts__StackStates


        :param lifecycle_state: The lifecycle_state of this Stack.
        :type: str
        )r   r   r	   r
   r   UNKNOWN_ENUM_VALUEN)r   r&   )r0   r   allowed_valuesr2   r2   r3   r   K  s   

c                 C   r5   )z
        Gets the config_source of this Stack.

        :return: The config_source of this Stack.
        :rtype: oci.resource_manager.models.ConfigSource
        r'   r7   r2   r2   r3   r   ^     zStack.config_sourcec                 C   r9   )z
        Sets the config_source of this Stack.

        :param config_source: The config_source of this Stack.
        :type: oci.resource_manager.models.ConfigSource
        NrE   )r0   r   r2   r2   r3   r   h     
c                 C   r5   )z
        Gets the custom_terraform_provider of this Stack.

        :return: The custom_terraform_provider of this Stack.
        :rtype: oci.resource_manager.models.CustomTerraformProvider
        r(   r7   r2   r2   r3   r   r  rF   zStack.custom_terraform_providerc                 C   r9   )z
        Sets the custom_terraform_provider of this Stack.

        :param custom_terraform_provider: The custom_terraform_provider of this Stack.
        :type: oci.resource_manager.models.CustomTerraformProvider
        NrH   )r0   r   r2   r2   r3   r   |  rG   c                 C   r5   )a  
        Gets the is_third_party_provider_experience_enabled of this Stack.
        When `true`, the stack sources third-party Terraform providers from
        `Terraform Registry`__ and allows
        :func:`custom_terraform_provider`.
        For more information about stack sourcing of third-party Terraform providers, see
        `Third-party Provider Configuration`__.

        __ https://registry.terraform.io/browse/providers
        __ https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/terraformconfigresourcemanager.htm#third-party-providers


        :return: The is_third_party_provider_experience_enabled of this Stack.
        :rtype: bool
        r)   r7   r2   r2   r3   r     rA   z0Stack.is_third_party_provider_experience_enabledc                 C   r9   )a  
        Sets the is_third_party_provider_experience_enabled of this Stack.
        When `true`, the stack sources third-party Terraform providers from
        `Terraform Registry`__ and allows
        :func:`custom_terraform_provider`.
        For more information about stack sourcing of third-party Terraform providers, see
        `Third-party Provider Configuration`__.

        __ https://registry.terraform.io/browse/providers
        __ https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/terraformconfigresourcemanager.htm#third-party-providers


        :param is_third_party_provider_experience_enabled: The is_third_party_provider_experience_enabled of this Stack.
        :type: bool
        NrI   )r0   r   r2   r2   r3   r     s   
c                 C   r5   )a  
        Gets the variables of this Stack.
        Terraform variables associated with this resource.
        Maximum number of variables supported is 250.
        The maximum size of each variable, including both name and value, is 8192 bytes.
        Example: `{"CompartmentId": "compartment-id-value"}`


        :return: The variables of this Stack.
        :rtype: dict(str, str)
        r*   r7   r2   r2   r3   r     s   zStack.variablesc                 C   r9   )a  
        Sets the variables of this Stack.
        Terraform variables associated with this resource.
        Maximum number of variables supported is 250.
        The maximum size of each variable, including both name and value, is 8192 bytes.
        Example: `{"CompartmentId": "compartment-id-value"}`


        :param variables: The variables of this Stack.
        :type: dict(str, str)
        NrJ   )r0   r   r2   r2   r3   r     s   
c                 C   r5   )z
        Gets the terraform_version of this Stack.
        The version of Terraform specified for the stack. Example: `0.12.x`


        :return: The terraform_version of this Stack.
        :rtype: str
        r+   r7   r2   r2   r3   r     r=   zStack.terraform_versionc                 C   r9   )z
        Sets the terraform_version of this Stack.
        The version of Terraform specified for the stack. Example: `0.12.x`


        :param terraform_version: The terraform_version of this Stack.
        :type: str
        NrK   )r0   r   r2   r2   r3   r     r>   c                 C   r5   )a  
        Gets the stack_drift_status of this Stack.
        Drift status of the stack.
        Drift refers to differences between the actual (current) state of the stack and the expected (defined) state of the stack.

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


        :return: The stack_drift_status of this Stack.
        :rtype: str
        )r,   r7   r2   r2   r3   r        zStack.stack_drift_statusc                 C   rB   )a@  
        Sets the stack_drift_status of this Stack.
        Drift status of the stack.
        Drift refers to differences between the actual (current) state of the stack and the expected (defined) state of the stack.


        :param stack_drift_status: The stack_drift_status of this Stack.
        :type: str
        )r   r   r   rC   N)r   r,   )r0   r   rD   r2   r2   r3   r     s   

c                 C   r5   )a0  
        Gets the time_drift_last_checked of this Stack.
        The date and time when the drift detection was last executed.
        Format is defined by RFC3339.
        Example: `2020-01-25T21:10:29.600Z`


        :return: The time_drift_last_checked of this Stack.
        :rtype: datetime
        r-   r7   r2   r2   r3   r     r8   zStack.time_drift_last_checkedc                 C   r9   )aF  
        Sets the time_drift_last_checked of this Stack.
        The date and time when the drift detection was last executed.
        Format is defined by RFC3339.
        Example: `2020-01-25T21:10:29.600Z`


        :param time_drift_last_checked: The time_drift_last_checked of this Stack.
        :type: datetime
        NrM   )r0   r   r2   r2   r3   r     r:   c                 C   r5   )a  
        Gets the freeform_tags of this Stack.
        Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

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


        :return: The freeform_tags of this Stack.
        :rtype: dict(str, str)
        r.   r7   r2   r2   r3   r     rL   zStack.freeform_tagsc                 C   r9   )a  
        Sets the freeform_tags of this Stack.
        Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

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


        :param freeform_tags: The freeform_tags of this Stack.
        :type: dict(str, str)
        NrN   )r0   r   r2   r2   r3   r   .     
c                 C   r5   )a  
        Gets the defined_tags of this Stack.
        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/iaas/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Stack.
        :rtype: dict(str, dict(str, object))
        r/   r7   r2   r2   r3   r    >  rL   zStack.defined_tagsc                 C   r9   )a  
        Sets the defined_tags of this Stack.
        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/iaas/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Stack.
        :type: dict(str, dict(str, object))
        NrP   )r0   r    r2   r2   r3   r    N  rO   c                 C   s   t | S N)r   r7   r2   r2   r3   __repr__^  s   zStack.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r0   otherr2   r2   r3   __eq__a  s   zStack.__eq__c                 C   s
   | |k S rQ   r2   rT   r2   r2   r3   __ne__g  s   
zStack.__ne__N)!__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDZSTACK_DRIFT_STATUS_NOT_CHECKEDZSTACK_DRIFT_STATUS_IN_SYNCZSTACK_DRIFT_STATUS_DRIFTEDr4   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r    rR   rV   rW   r2   r2   r2   r3   r      s    z












	
	
	
	













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r2   r2   r2   r3   <module>   s   