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                   @   sf  e 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d+d,„ Zd-d.„ Zd/d0„ Zd1S )2Ú
ApiSummaryz
    A summary of the API.
    ÚCREATINGÚACTIVEÚUPDATINGÚDELETINGÚDELETEDÚFAILEDc                 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 )aY  
        Initializes a new ApiSummary 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 ApiSummary.
        :type id: str

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this ApiSummary.
            Allowed values for this property are: "CREATING", "ACTIVE", "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 lifecycle_details:
            The value to assign to the lifecycle_details property of this ApiSummary.
        :type lifecycle_details: str

        :param specification_type:
            The value to assign to the specification_type property of this ApiSummary.
        :type specification_type: str

        :param validation_results:
            The value to assign to the validation_results property of this ApiSummary.
        :type validation_results: list[oci.apigateway.models.ApiValidationResult]

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

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

        ÚstrÚdatetimezlist[ApiValidationResult]zdict(str, str)zdict(str, dict(str, object)))ÚidÚdisplay_nameÚcompartment_idÚtime_createdÚtime_updatedÚlifecycle_stateÚlifecycle_detailsÚspecification_typeÚvalidation_resultsÚfreeform_tagsÚdefined_tagsr   ZdisplayNameZcompartmentIdZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZspecificationTypeZvalidationResultsZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_idÚ_display_nameÚ_compartment_idÚ_time_createdÚ_time_updatedÚ_lifecycle_stateÚ_lifecycle_detailsÚ_specification_typeÚ_validation_resultsÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r'   úEusr/lib/python3.10/site-packages/oci/apigateway/models/api_summary.pyÚ__init__*   sF   5õõ
zApiSummary.__init__c                 C   ó   | j S )zû
        **[Required]** Gets the id of this ApiSummary.
        The `OCID`__ of the resource.

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


        :return: The id of this ApiSummary.
        :rtype: str
        ©r   ©r%   r'   r'   r(   r   †   s   zApiSummary.idc                 C   ó
   || _ dS )zí
        Sets the id of this ApiSummary.
        The `OCID`__ of the resource.

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


        :param id: The id of this ApiSummary.
        :type: str
        Nr+   )r%   r   r'   r'   r(   r   ”   s   
c                 C   r*   )a+  
        Gets the display_name of this ApiSummary.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.

        Example: `My new resource`


        :return: The display_name of this ApiSummary.
        :rtype: str
        ©r   r,   r'   r'   r(   r   ¢   ó   zApiSummary.display_namec                 C   r-   )a6  
        Sets the display_name of this ApiSummary.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.

        Example: `My new resource`


        :param display_name: The display_name of this ApiSummary.
        :type: str
        Nr.   )r%   r   r'   r'   r(   r   ±   ó   
c                 C   r*   )a?  
        **[Required]** Gets the compartment_id of this ApiSummary.
        The `OCID`__ of the compartment in which the
        resource is created.

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


        :return: The compartment_id of this ApiSummary.
        :rtype: str
        ©r   r,   r'   r'   r(   r   À   r/   zApiSummary.compartment_idc                 C   r-   )a=  
        Sets the compartment_id of this ApiSummary.
        The `OCID`__ of the compartment in which the
        resource is created.

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


        :param compartment_id: The compartment_id of this ApiSummary.
        :type: str
        Nr1   )r%   r   r'   r'   r(   r   Ï   r0   c                 C   r*   )zÞ
        Gets the time_created of this ApiSummary.
        The time this resource was created. An RFC3339 formatted datetime string.


        :return: The time_created of this ApiSummary.
        :rtype: datetime
        ©r   r,   r'   r'   r(   r   Þ   ó   
zApiSummary.time_createdc                 C   r-   )zé
        Sets the time_created of this ApiSummary.
        The time this resource was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this ApiSummary.
        :type: datetime
        Nr2   )r%   r   r'   r'   r(   r   ê   ó   

c                 C   r*   )zã
        Gets the time_updated of this ApiSummary.
        The time this resource was last updated. An RFC3339 formatted datetime string.


        :return: The time_updated of this ApiSummary.
        :rtype: datetime
        ©r   r,   r'   r'   r(   r   ö   r3   zApiSummary.time_updatedc                 C   r-   )zî
        Sets the time_updated of this ApiSummary.
        The time this resource was last updated. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this ApiSummary.
        :type: datetime
        Nr5   )r%   r   r'   r'   r(   r     r4   c                 C   r*   )a™  
        Gets the lifecycle_state of this ApiSummary.
        The current state of the API.

        Allowed values for this property are: "CREATING", "ACTIVE", "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 ApiSummary.
        :rtype: str
        )r   r,   r'   r'   r(   r     r/   zApiSummary.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÁ
        Sets the lifecycle_state of this ApiSummary.
        The current state of the API.


        :param lifecycle_state: The lifecycle_state of this ApiSummary.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r%   r   Zallowed_valuesr'   r'   r(   r     s   


c                 C   r*   )aS  
        Gets the lifecycle_details of this ApiSummary.
        A message describing the current lifecycleState in more detail. For ACTIVE
        state it describes if the document has been validated and the possible values are:
        - 'New' for just updated API Specifications
        - 'Validating' for a document which is being validated.
        - 'Valid' the document has been validated without any errors or warnings
        - 'Warning' the document has been validated and contains warnings
        - 'Error' the document has been validated and contains errors
        - 'Failed' the document validation failed
        - 'Canceled' the document validation was canceled

        For other states it may provide more details like actionable information.


        :return: The lifecycle_details of this ApiSummary.
        :rtype: str
        ©r    r,   r'   r'   r(   r   ,  s   zApiSummary.lifecycle_detailsc                 C   r-   )ac  
        Sets the lifecycle_details of this ApiSummary.
        A message describing the current lifecycleState in more detail. For ACTIVE
        state it describes if the document has been validated and the possible values are:
        - 'New' for just updated API Specifications
        - 'Validating' for a document which is being validated.
        - 'Valid' the document has been validated without any errors or warnings
        - 'Warning' the document has been validated and contains warnings
        - 'Error' the document has been validated and contains errors
        - 'Failed' the document validation failed
        - 'Canceled' the document validation was canceled

        For other states it may provide more details like actionable information.


        :param lifecycle_details: The lifecycle_details of this ApiSummary.
        :type: str
        Nr6   )r%   r   r'   r'   r(   r   B  s   
c                 C   r*   )z»
        Gets the specification_type of this ApiSummary.
        Type of API Specification file.


        :return: The specification_type of this ApiSummary.
        :rtype: str
        ©r!   r,   r'   r'   r(   r   X  r3   zApiSummary.specification_typec                 C   r-   )zÌ
        Sets the specification_type of this ApiSummary.
        Type of API Specification file.


        :param specification_type: The specification_type of this ApiSummary.
        :type: str
        Nr7   )r%   r   r'   r'   r(   r   d  r4   c                 C   r*   )zö
        Gets the validation_results of this ApiSummary.
        Status of each feature available from the API.


        :return: The validation_results of this ApiSummary.
        :rtype: list[oci.apigateway.models.ApiValidationResult]
        ©r"   r,   r'   r'   r(   r   p  r3   zApiSummary.validation_resultsc                 C   r-   )a  
        Sets the validation_results of this ApiSummary.
        Status of each feature available from the API.


        :param validation_results: The validation_results of this ApiSummary.
        :type: list[oci.apigateway.models.ApiValidationResult]
        Nr8   )r%   r   r'   r'   r(   r   |  r4   c                 C   r*   )aÎ  
        Gets the freeform_tags of this ApiSummary.
        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 ApiSummary.
        :rtype: dict(str, str)
        ©r#   r,   r'   r'   r(   r   ˆ  ó   zApiSummary.freeform_tagsc                 C   r-   )aÚ  
        Sets the freeform_tags of this ApiSummary.
        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 ApiSummary.
        :type: dict(str, str)
        Nr9   )r%   r   r'   r'   r(   r   š  ó   
c                 C   r*   )aÄ  
        Gets the defined_tags of this ApiSummary.
        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 ApiSummary.
        :rtype: dict(str, dict(str, object))
        ©r$   r,   r'   r'   r(   r   ¬  r:   zApiSummary.defined_tagsc                 C   r-   )aÏ  
        Sets the defined_tags of this ApiSummary.
        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 ApiSummary.
        :type: dict(str, dict(str, object))
        Nr<   )r%   r   r'   r'   r(   r   ¾  r;   c                 C   s   t | ƒS ©N)r   r,   r'   r'   r(   Ú__repr__Ð  s   zApiSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r%   Úotherr'   r'   r(   Ú__eq__Ó  s   zApiSummary.__eq__c                 C   s
   | |k S r=   r'   r@   r'   r'   r(   Ú__ne__Ù  s   
zApiSummary.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr)   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r>   rB   rC   r'   r'   r'   r(   r      sp    \





















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r'   r'   r'   r(   Ú<module>   s   