ruạṛ
a ���f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Ze dd� �Z e jdd� �Z dd� Zdd� Zdd� ZdS )�DataSourceSummaryzL The information about the dataSources that agent is associated to. �KUBERNETES_CLUSTER�PROMETHEUS_EMITTERc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )ao Initializes a new DataSourceSummary 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.management_agent.models.PrometheusEmitterDataSourceSummary` * :class:`~oci.management_agent.models.KubernetesClusterDataSourceSummary` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param key: The value to assign to the key property of this DataSourceSummary. :type key: str :param type: The value to assign to the type property of this DataSourceSummary. Allowed values for this property are: "KUBERNETES_CLUSTER", "PROMETHEUS_EMITTER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param name: The value to assign to the name property of this DataSourceSummary. :type name: str �str)�key�type�namer r r N)Z swagger_typesZ attribute_map�_key�_type�_name)�self�kwargs� r �S/usr/lib/python3.9/site-packages/oci/management_agent/models/data_source_summary.py�__init__ s ��zDataSourceSummary.__init__c C s( | d }|dkrdS |dkr dS dS dS )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"PrometheusEmitterDataSourceSummaryr Z"KubernetesClusterDataSourceSummaryr Nr )Zobject_dictionaryr r r r �get_subtypeC s zDataSourceSummary.get_subtypec C s | j S )z� **[Required]** Gets the key of this DataSourceSummary. Data source type and name identifier. :return: The key of this DataSourceSummary. :rtype: str �r �r r r r r S s zDataSourceSummary.keyc C s || _ dS )z� Sets the key of this DataSourceSummary. Data source type and name identifier. :param key: The key of this DataSourceSummary. :type: str Nr )r r r r r r _ s c C s | j S )a� **[Required]** Gets the type of this DataSourceSummary. The type of the dataSource. Allowed values for this property are: "KUBERNETES_CLUSTER", "PROMETHEUS_EMITTER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this DataSourceSummary. :rtype: str )r r r r r r k s zDataSourceSummary.typec C s ddg}t ||�sd}|| _dS )z� Sets the type of this DataSourceSummary. The type of the dataSource. :param type: The type of this DataSourceSummary. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r z s c C s | j S )z� **[Required]** Gets the name of this DataSourceSummary. Unique name of the dataSource. :return: The name of this DataSourceSummary. :rtype: str �r r r r r r � s zDataSourceSummary.namec C s || _ dS )z� Sets the name of this DataSourceSummary. Unique name of the dataSource. :param name: The name of this DataSourceSummary. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zDataSourceSummary.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDataSourceSummary.__eq__c C s | |k S r r r r r r �__ne__� s zDataSourceSummary.__ne__N)�__name__� __module__�__qualname__�__doc__ZTYPE_KUBERNETES_CLUSTERZTYPE_PROMETHEUS_EMITTERr �staticmethodr �propertyr �setterr r r r r r r r r r s* ) r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn