o
    ɶd0                     @   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                   @   s6  e Zd ZdZdZdZdZdZdd Ze	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 ),Configz
    A configuration item, which has a number of mutually exclusive properties that can be used to set specific
    portions of the configuration.
    SPAN_FILTERMETRIC_GROUPAPDEXOPTIONSc              
   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 Config object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
        to a service operations then you should favor using a subclass over the base class:

        * :class:`~oci.apm_config.models.Options`
        * :class:`~oci.apm_config.models.MetricGroup`
        * :class:`~oci.apm_config.models.ApdexRules`
        * :class:`~oci.apm_config.models.SpanFilter`

        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 Config.
        :type id: str

        :param config_type:
            The value to assign to the config_type property of this Config.
            Allowed values for this property are: "SPAN_FILTER", "METRIC_GROUP", "APDEX", "OPTIONS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type config_type: str

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

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

        :param created_by:
            The value to assign to the created_by property of this Config.
        :type created_by: str

        :param updated_by:
            The value to assign to the updated_by property of this Config.
        :type updated_by: str

        :param etag:
            The value to assign to the etag property of this Config.
        :type etag: str

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

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

        strdatetimezdict(str, str)zdict(str, dict(str, object)))	idconfig_typetime_createdtime_updated
created_by
updated_byetagfreeform_tagsdefined_tagsr   
configTypeZtimeCreatedZtimeUpdatedZ	createdByZ	updatedByr   ZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_config_type_time_created_time_updated_created_by_updated_by_etag_freeform_tags_defined_tags)selfkwargs r"   @usr/lib/python3.10/site-packages/oci/apm_config/models/config.py__init__#   s:   4
zConfig.__init__c                 C   s<   | d }|dkr
dS |dkrdS |dkrdS |dkrd	S d
S )z
        Given the hash representation of a subtype of this class,
        use the info in the hash to return the class of the subtype.
        r   r
   ZOptionsr   ZMetricGroupr	   Z
ApdexRulesr   Z
SpanFilterr   r"   )Zobject_dictionarytyper"   r"   r#   get_subtypex   s   zConfig.get_subtypec                 C      | j S )a%  
        Gets the id of this Config.
        The `OCID`__ of the configuration item. An OCID is generated
        when the item is created.

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


        :return: The id of this Config.
        :rtype: str
        r   r    r"   r"   r#   r         z	Config.idc                 C   
   || _ dS )a&  
        Sets the id of this Config.
        The `OCID`__ of the configuration item. An OCID is generated
        when the item is created.

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


        :param id: The id of this Config.
        :type: str
        Nr(   )r    r   r"   r"   r#   r      s   
c                 C   r'   )a  
        **[Required]** Gets the config_type of this Config.
        The type of configuration item.

        Allowed values for this property are: "SPAN_FILTER", "METRIC_GROUP", "APDEX", "OPTIONS", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The config_type of this Config.
        :rtype: str
        )r   r)   r"   r"   r#   r      r*   zConfig.config_typec                 C   s    g d}t ||sd}|| _dS )z
        Sets the config_type of this Config.
        The type of configuration item.


        :param config_type: The config_type of this Config.
        :type: str
        )r   r   r	   r
   ZUNKNOWN_ENUM_VALUEN)r   r   )r    r   Zallowed_valuesr"   r"   r#   r      s   


c                 C   r'   )a?  
        Gets the time_created of this Config.
        The time the resource was created, expressed in `RFC 3339`__
        timestamp format.
        Example: `2020-02-12T22:47:12.613Z`

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


        :return: The time_created of this Config.
        :rtype: datetime
        r   r)   r"   r"   r#   r         zConfig.time_createdc                 C   r+   )aJ  
        Sets the time_created of this Config.
        The time the resource was created, expressed in `RFC 3339`__
        timestamp format.
        Example: `2020-02-12T22:47:12.613Z`

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


        :param time_created: The time_created of this Config.
        :type: datetime
        Nr,   )r    r   r"   r"   r#   r         
c                 C   r'   )a?  
        Gets the time_updated of this Config.
        The time the resource was updated, expressed in `RFC 3339`__
        timestamp format.
        Example: `2020-02-13T22:47:12.613Z`

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


        :return: The time_updated of this Config.
        :rtype: datetime
        r   r)   r"   r"   r#   r      r-   zConfig.time_updatedc                 C   r+   )aJ  
        Sets the time_updated of this Config.
        The time the resource was updated, expressed in `RFC 3339`__
        timestamp format.
        Example: `2020-02-13T22:47:12.613Z`

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


        :param time_updated: The time_updated of this Config.
        :type: datetime
        Nr/   )r    r   r"   r"   r#   r      r.   c                 C   r'   )z
        Gets the created_by of this Config.
        The `OCID`__ of a user.

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


        :return: The created_by of this Config.
        :rtype: str
        r   r)   r"   r"   r#   r   
     zConfig.created_byc                 C   r+   )z
        Sets the created_by of this Config.
        The `OCID`__ of a user.

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


        :param created_by: The created_by of this Config.
        :type: str
        Nr0   )r    r   r"   r"   r#   r        
c                 C   r'   )z
        Gets the updated_by of this Config.
        The `OCID`__ of a user.

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


        :return: The updated_by of this Config.
        :rtype: str
        r   r)   r"   r"   r#   r   &  r1   zConfig.updated_byc                 C   r+   )z
        Sets the updated_by of this Config.
        The `OCID`__ of a user.

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


        :param updated_by: The updated_by of this Config.
        :type: str
        Nr3   )r    r   r"   r"   r#   r   4  r2   c                 C   r'   )z
        Gets the etag of this Config.
        For optimistic concurrency control. See `if-match`.


        :return: The etag of this Config.
        :rtype: str
        r   r)   r"   r"   r#   r   B  s   
zConfig.etagc                 C   r+   )z
        Sets the etag of this Config.
        For optimistic concurrency control. See `if-match`.


        :param etag: The etag of this Config.
        :type: str
        Nr4   )r    r   r"   r"   r#   r   N  s   

c                 C   r'   )a3  
        Gets the freeform_tags of this Config.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Config.
        :rtype: dict(str, str)
        r   r)   r"   r"   r#   r   Z     zConfig.freeform_tagsc                 C   r+   )a?  
        Sets the freeform_tags of this Config.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Config.
        :type: dict(str, str)
        Nr5   )r    r   r"   r"   r#   r   g     
c                 C   r'   )a-  
        Gets the defined_tags of this Config.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Config.
        :rtype: dict(str, dict(str, object))
        r   r)   r"   r"   r#   r   t  r6   zConfig.defined_tagsc                 C   r+   )a8  
        Sets the defined_tags of this Config.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Config.
        :type: dict(str, dict(str, object))
        Nr8   )r    r   r"   r"   r#   r     r7   c                 C   s   t | S N)r   r)   r"   r"   r#   __repr__  s   zConfig.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r    otherr"   r"   r#   __eq__  s   zConfig.__eq__c                 C   s
   | |k S r9   r"   r<   r"   r"   r#   __ne__  s   
zConfig.__ne__N)__name__
__module____qualname____doc__ZCONFIG_TYPE_SPAN_FILTERZCONFIG_TYPE_METRIC_GROUPZCONFIG_TYPE_APDEXZCONFIG_TYPE_OPTIONSr$   staticmethodr&   propertyr   setterr   r   r   r   r   r   r   r   r:   r>   r?   r"   r"   r"   r#   r      s`    U


















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r"   r"   r"   r#   <module>   s   