o
    ɶd%O                     @   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
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/d0 Zejd1d0 Zed2d3 Zejd4d3 Zed5d6 Zejd7d6 Zed8d9 Zejd:d9 Zed;d< Z e jd=d< Z d>d? Z!d@dA Z"dBdC Z#dDS )EPoolz"
    A Data Flow pool object.
    ACCEPTED	SCHEDULEDCREATINGACTIVESTOPPINGSTOPPEDUPDATINGDELETINGDELETEDFAILEDc                 K   s0  i 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| _ i 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%| _d%S )&a7  
        Initializes a new Pool object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

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

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

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

        :param id:
            The value to assign to the id property of this Pool.
        :type id: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this Pool.
        :type lifecycle_details: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Pool.
            Allowed values for this property are: "ACCEPTED", "SCHEDULED", "CREATING", "ACTIVE", "STOPPING", "STOPPED", "UPDATING", "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 owner_principal_id:
            The value to assign to the owner_principal_id property of this Pool.
        :type owner_principal_id: str

        :param owner_user_name:
            The value to assign to the owner_user_name property of this Pool.
        :type owner_user_name: str

        :param pool_metrics:
            The value to assign to the pool_metrics property of this Pool.
        :type pool_metrics: oci.data_flow.models.PoolMetrics

        :param configurations:
            The value to assign to the configurations property of this Pool.
        :type configurations: list[oci.data_flow.models.PoolConfig]

        :param schedules:
            The value to assign to the schedules property of this Pool.
        :type schedules: list[oci.data_flow.models.PoolSchedule]

        :param idle_timeout_in_minutes:
            The value to assign to the idle_timeout_in_minutes property of this Pool.
        :type idle_timeout_in_minutes: int

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

        :param time_updated:
            The value to assign to the time_updated property of this Pool.
        :type time_updated: datetime

        compartment_idstrdefined_tagszdict(str, dict(str, object))descriptiondisplay_namefreeform_tagszdict(str, str)idlifecycle_detailslifecycle_stateowner_principal_idowner_user_namepool_metricsZPoolMetricsconfigurationszlist[PoolConfig]	scheduleszlist[PoolSchedule]idle_timeout_in_minutesinttime_createddatetimetime_updatedZcompartmentIdZdefinedTagsZdisplayNameZfreeformTagsZlifecycleDetailsZlifecycleStateZownerPrincipalIdZownerUserNameZpoolMetricsZidleTimeoutInMinutesZtimeCreatedZtimeUpdatedN)Zswagger_typesZattribute_map_compartment_id_defined_tags_description_display_name_freeform_tags_id_lifecycle_details_lifecycle_state_owner_principal_id_owner_user_name_pool_metrics_configurations
_schedules_idle_timeout_in_minutes_time_created_time_updated)selfkwargs r6   =usr/lib/python3.10/site-packages/oci/data_flow/models/pool.py__init__:   s   H	
	

zPool.__init__c                 C      | j S )z
        **[Required]** Gets the compartment_id of this Pool.
        The OCID of a compartment.


        :return: The compartment_id of this Pool.
        :rtype: str
        r$   r4   r6   r6   r7   r         
zPool.compartment_idc                 C   
   || _ dS )z
        Sets the compartment_id of this Pool.
        The OCID of a compartment.


        :param compartment_id: The compartment_id of this Pool.
        :type: str
        Nr:   )r4   r   r6   r6   r7   r         

c                 C   r9   )a  
        **[Required]** Gets the defined_tags of this Pool.
        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 Pool.
        :rtype: dict(str, dict(str, object))
        r%   r;   r6   r6   r7   r         zPool.defined_tagsc                 C   r=   )a  
        Sets the defined_tags of this Pool.
        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 Pool.
        :type: dict(str, dict(str, object))
        Nr?   )r4   r   r6   r6   r7   r         
c                 C   r9   )z
        Gets the description of this Pool.
        A user-friendly description. Avoid entering confidential information.


        :return: The description of this Pool.
        :rtype: str
        r&   r;   r6   r6   r7   r      r<   zPool.descriptionc                 C   r=   )z
        Sets the description of this Pool.
        A user-friendly description. Avoid entering confidential information.


        :param description: The description of this Pool.
        :type: str
        NrB   )r4   r   r6   r6   r7   r      r>   c                 C   r9   )z
        **[Required]** Gets the display_name of this Pool.
        A user-friendly name. It does not have to be unique. Avoid entering confidential information.


        :return: The display_name of this Pool.
        :rtype: str
        r'   r;   r6   r6   r7   r     r<   zPool.display_namec                 C   r=   )z
        Sets the display_name of this Pool.
        A user-friendly name. It does not have to be unique. Avoid entering confidential information.


        :param display_name: The display_name of this Pool.
        :type: str
        NrC   )r4   r   r6   r6   r7   r     r>   c                 C   r9   )a  
        **[Required]** Gets the freeform_tags of this Pool.
        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/iaas/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Pool.
        :rtype: dict(str, str)
        r(   r;   r6   r6   r7   r     s   zPool.freeform_tagsc                 C   r=   )a  
        Sets the freeform_tags of this Pool.
        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/iaas/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Pool.
        :type: dict(str, str)
        NrD   )r4   r   r6   r6   r7   r   /  s   
c                 C   r9   )z
        **[Required]** Gets the id of this Pool.
        The OCID of a pool. Unique Id to indentify a dataflow pool resource.


        :return: The id of this Pool.
        :rtype: str
        r)   r;   r6   r6   r7   r   ?  r<   zPool.idc                 C   r=   )z
        Sets the id of this Pool.
        The OCID of a pool. Unique Id to indentify a dataflow pool resource.


        :param id: The id of this Pool.
        :type: str
        NrE   )r4   r   r6   r6   r7   r   K  r>   c                 C   r9   )z
        Gets the lifecycle_details of this Pool.
        The detailed messages about the lifecycle state.


        :return: The lifecycle_details of this Pool.
        :rtype: str
        r*   r;   r6   r6   r7   r   W  r<   zPool.lifecycle_detailsc                 C   r=   )z
        Sets the lifecycle_details of this Pool.
        The detailed messages about the lifecycle state.


        :param lifecycle_details: The lifecycle_details of this Pool.
        :type: str
        NrF   )r4   r   r6   r6   r7   r   c  r>   c                 C   r9   )a  
        **[Required]** Gets the lifecycle_state of this Pool.
        The current state of this pool.

        Allowed values for this property are: "ACCEPTED", "SCHEDULED", "CREATING", "ACTIVE", "STOPPING", "STOPPED", "UPDATING", "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 Pool.
        :rtype: str
        )r+   r;   r6   r6   r7   r   o  r@   zPool.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Pool.
        The current state of this pool.


        :param lifecycle_state: The lifecycle_state of this Pool.
        :type: str
        )
r   r   r	   r
   r   r   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r+   )r4   r   Zallowed_valuesr6   r6   r7   r   ~  s   


c                 C   r9   )z
        **[Required]** Gets the owner_principal_id of this Pool.
        The OCID of the user who created the resource.


        :return: The owner_principal_id of this Pool.
        :rtype: str
        r,   r;   r6   r6   r7   r     r<   zPool.owner_principal_idc                 C   r=   )z
        Sets the owner_principal_id of this Pool.
        The OCID of the user who created the resource.


        :param owner_principal_id: The owner_principal_id of this Pool.
        :type: str
        NrG   )r4   r   r6   r6   r7   r     r>   c                 C   r9   )aM  
        Gets the owner_user_name of this Pool.
        The username of the user who created the resource.  If the username of the owner does not exist,
        `null` will be returned and the caller should refer to the ownerPrincipalId value instead.


        :return: The owner_user_name of this Pool.
        :rtype: str
        r-   r;   r6   r6   r7   r        zPool.owner_user_namec                 C   r=   )a[  
        Sets the owner_user_name of this Pool.
        The username of the user who created the resource.  If the username of the owner does not exist,
        `null` will be returned and the caller should refer to the ownerPrincipalId value instead.


        :param owner_user_name: The owner_user_name of this Pool.
        :type: str
        NrH   )r4   r   r6   r6   r7   r        
c                 C   r9   )z
        Gets the pool_metrics of this Pool.

        :return: The pool_metrics of this Pool.
        :rtype: oci.data_flow.models.PoolMetrics
        r.   r;   r6   r6   r7   r     s   zPool.pool_metricsc                 C   r=   )z
        Sets the pool_metrics of this Pool.

        :param pool_metrics: The pool_metrics of this Pool.
        :type: oci.data_flow.models.PoolMetrics
        NrK   )r4   r   r6   r6   r7   r     s   
c                 C   r9   )z
        **[Required]** Gets the configurations of this Pool.
        List of PoolConfig items.


        :return: The configurations of this Pool.
        :rtype: list[oci.data_flow.models.PoolConfig]
        r/   r;   r6   r6   r7   r     r<   zPool.configurationsc                 C   r=   )z
        Sets the configurations of this Pool.
        List of PoolConfig items.


        :param configurations: The configurations of this Pool.
        :type: list[oci.data_flow.models.PoolConfig]
        NrL   )r4   r   r6   r6   r7   r     r>   c                 C   r9   )z
        Gets the schedules of this Pool.
        A list of schedules for pool to auto start and stop.


        :return: The schedules of this Pool.
        :rtype: list[oci.data_flow.models.PoolSchedule]
        r0   r;   r6   r6   r7   r     r<   zPool.schedulesc                 C   r=   )z
        Sets the schedules of this Pool.
        A list of schedules for pool to auto start and stop.


        :param schedules: The schedules of this Pool.
        :type: list[oci.data_flow.models.PoolSchedule]
        NrM   )r4   r   r6   r6   r7   r     r>   c                 C   r9   )a_  
        Gets the idle_timeout_in_minutes of this Pool.
        Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period.
        If value not set, pool will not be auto stopped auto.


        :return: The idle_timeout_in_minutes of this Pool.
        :rtype: int
        r1   r;   r6   r6   r7   r     rI   zPool.idle_timeout_in_minutesc                 C   r=   )au  
        Sets the idle_timeout_in_minutes of this Pool.
        Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period.
        If value not set, pool will not be auto stopped auto.


        :param idle_timeout_in_minutes: The idle_timeout_in_minutes of this Pool.
        :type: int
        NrN   )r4   r   r6   r6   r7   r     rJ   c                 C   r9   )aK  
        **[Required]** Gets the time_created of this Pool.
        The date and time the resource was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_created of this Pool.
        :rtype: datetime
        r2   r;   r6   r6   r7   r!     r@   zPool.time_createdc                 C   r=   )aG  
        Sets the time_created of this Pool.
        The date and time the resource was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_created: The time_created of this Pool.
        :type: datetime
        NrO   )r4   r!   r6   r6   r7   r!   ,  rA   c                 C   r9   )aK  
        **[Required]** Gets the time_updated of this Pool.
        The date and time the resource was updated, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_updated of this Pool.
        :rtype: datetime
        r3   r;   r6   r6   r7   r#   ;  r@   zPool.time_updatedc                 C   r=   )aG  
        Sets the time_updated of this Pool.
        The date and time the resource was updated, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_updated: The time_updated of this Pool.
        :type: datetime
        NrP   )r4   r#   r6   r6   r7   r#   J  rA   c                 C   s   t | S N)r   r;   r6   r6   r7   __repr__Y  s   zPool.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r4   otherr6   r6   r7   __eq__\  s   zPool.__eq__c                 C   s
   | |k S rQ   r6   rT   r6   r6   r7   __ne__b  s   
zPool.__ne__N)$__name__
__module____qualname____doc__ZLIFECYCLE_STATE_ACCEPTEDZLIFECYCLE_STATE_SCHEDULEDZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_STOPPINGZLIFECYCLE_STATE_STOPPEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr8   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r!   r#   rR   rV   rW   r6   r6   r6   r7   r      s    




















	
	









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r6   r6   r6   r7   <module>   s   