<gh_stars>1-10
# coding: utf-8

"""
    Alertmanager API

    API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager)  # noqa: E501

    OpenAPI spec version: 0.0.1
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from swagger_client.models.alert import Alert  # noqa: F401,E501
from swagger_client.models.alert_status import AlertStatus  # noqa: F401,E501
from swagger_client.models.label_set import LabelSet  # noqa: F401,E501
from swagger_client.models.receiver import Receiver  # noqa: F401,E501


class GettableAlert(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'labels': 'LabelSet',
        'generator_url': 'str',
        'annotations': 'LabelSet',
        'receivers': 'list[Receiver]',
        'fingerprint': 'str',
        'starts_at': 'datetime',
        'updated_at': 'datetime',
        'ends_at': 'datetime',
        'status': 'AlertStatus'
    }

    attribute_map = {
        'labels': 'labels',
        'generator_url': 'generatorURL',
        'annotations': 'annotations',
        'receivers': 'receivers',
        'fingerprint': 'fingerprint',
        'starts_at': 'startsAt',
        'updated_at': 'updatedAt',
        'ends_at': 'endsAt',
        'status': 'status'
    }

    def __init__(self, labels=None, generator_url=None, annotations=None, receivers=None, fingerprint=None, starts_at=None, updated_at=None, ends_at=None, status=None):  # noqa: E501
        """GettableAlert - a model defined in Swagger"""  # noqa: E501

        self._labels = None
        self._generator_url = None
        self._annotations = None
        self._receivers = None
        self._fingerprint = None
        self._starts_at = None
        self._updated_at = None
        self._ends_at = None
        self._status = None
        self.discriminator = None

        self.labels = labels
        if generator_url is not None:
            self.generator_url = generator_url
        self.annotations = annotations
        self.receivers = receivers
        self.fingerprint = fingerprint
        self.starts_at = starts_at
        self.updated_at = updated_at
        self.ends_at = ends_at
        self.status = status

    @property
    def labels(self):
        """Gets the labels of this GettableAlert.  # noqa: E501


        :return: The labels of this GettableAlert.  # noqa: E501
        :rtype: LabelSet
        """
        return self._labels

    @labels.setter
    def labels(self, labels):
        """Sets the labels of this GettableAlert.


        :param labels: The labels of this GettableAlert.  # noqa: E501
        :type: LabelSet
        """
        if labels is None:
            raise ValueError("Invalid value for `labels`, must not be `None`")  # noqa: E501

        self._labels = labels

    @property
    def generator_url(self):
        """Gets the generator_url of this GettableAlert.  # noqa: E501


        :return: The generator_url of this GettableAlert.  # noqa: E501
        :rtype: str
        """
        return self._generator_url

    @generator_url.setter
    def generator_url(self, generator_url):
        """Sets the generator_url of this GettableAlert.


        :param generator_url: The generator_url of this GettableAlert.  # noqa: E501
        :type: str
        """

        self._generator_url = generator_url

    @property
    def annotations(self):
        """Gets the annotations of this GettableAlert.  # noqa: E501


        :return: The annotations of this GettableAlert.  # noqa: E501
        :rtype: LabelSet
        """
        return self._annotations

    @annotations.setter
    def annotations(self, annotations):
        """Sets the annotations of this GettableAlert.


        :param annotations: The annotations of this GettableAlert.  # noqa: E501
        :type: LabelSet
        """
        if annotations is None:
            raise ValueError("Invalid value for `annotations`, must not be `None`")  # noqa: E501

        self._annotations = annotations

    @property
    def receivers(self):
        """Gets the receivers of this GettableAlert.  # noqa: E501


        :return: The receivers of this GettableAlert.  # noqa: E501
        :rtype: list[Receiver]
        """
        return self._receivers

    @receivers.setter
    def receivers(self, receivers):
        """Sets the receivers of this GettableAlert.


        :param receivers: The receivers of this GettableAlert.  # noqa: E501
        :type: list[Receiver]
        """
        if receivers is None:
            raise ValueError("Invalid value for `receivers`, must not be `None`")  # noqa: E501

        self._receivers = receivers

    @property
    def fingerprint(self):
        """Gets the fingerprint of this GettableAlert.  # noqa: E501


        :return: The fingerprint of this GettableAlert.  # noqa: E501
        :rtype: str
        """
        return self._fingerprint

    @fingerprint.setter
    def fingerprint(self, fingerprint):
        """Sets the fingerprint of this GettableAlert.


        :param fingerprint: The fingerprint of this GettableAlert.  # noqa: E501
        :type: str
        """
        if fingerprint is None:
            raise ValueError("Invalid value for `fingerprint`, must not be `None`")  # noqa: E501

        self._fingerprint = fingerprint

    @property
    def starts_at(self):
        """Gets the starts_at of this GettableAlert.  # noqa: E501


        :return: The starts_at of this GettableAlert.  # noqa: E501
        :rtype: datetime
        """
        return self._starts_at

    @starts_at.setter
    def starts_at(self, starts_at):
        """Sets the starts_at of this GettableAlert.


        :param starts_at: The starts_at of this GettableAlert.  # noqa: E501
        :type: datetime
        """
        if starts_at is None:
            raise ValueError("Invalid value for `starts_at`, must not be `None`")  # noqa: E501

        self._starts_at = starts_at

    @property
    def updated_at(self):
        """Gets the updated_at of this GettableAlert.  # noqa: E501


        :return: The updated_at of this GettableAlert.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at):
        """Sets the updated_at of this GettableAlert.


        :param updated_at: The updated_at of this GettableAlert.  # noqa: E501
        :type: datetime
        """
        if updated_at is None:
            raise ValueError("Invalid value for `updated_at`, must not be `None`")  # noqa: E501

        self._updated_at = updated_at

    @property
    def ends_at(self):
        """Gets the ends_at of this GettableAlert.  # noqa: E501


        :return: The ends_at of this GettableAlert.  # noqa: E501
        :rtype: datetime
        """
        return self._ends_at

    @ends_at.setter
    def ends_at(self, ends_at):
        """Sets the ends_at of this GettableAlert.


        :param ends_at: The ends_at of this GettableAlert.  # noqa: E501
        :type: datetime
        """
        if ends_at is None:
            raise ValueError("Invalid value for `ends_at`, must not be `None`")  # noqa: E501

        self._ends_at = ends_at

    @property
    def status(self):
        """Gets the status of this GettableAlert.  # noqa: E501


        :return: The status of this GettableAlert.  # noqa: E501
        :rtype: AlertStatus
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this GettableAlert.


        :param status: The status of this GettableAlert.  # noqa: E501
        :type: AlertStatus
        """
        if status is None:
            raise ValueError("Invalid value for `status`, must not be `None`")  # noqa: E501

        self._status = status

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(GettableAlert, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, GettableAlert):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other

# coding: utf-8

"""
    Alertmanager API

    API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager)  # noqa: E501

    OpenAPI spec version: 0.0.1
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from swagger_client.models.alert import Alert  # noqa: F401,E501
from swagger_client.models.alert_status import AlertStatus  # noqa: F401,E501
from swagger_client.models.label_set import LabelSet  # noqa: F401,E501
from swagger_client.models.receiver import Receiver  # noqa: F401,E501


class GettableAlert(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'labels': 'LabelSet',
        'generator_url': 'str',
        'annotations': 'LabelSet',
        'receivers': 'list[Receiver]',
        'fingerprint': 'str',
        'starts_at': 'datetime',
        'updated_at': 'datetime',
        'ends_at': 'datetime',
        'status': 'AlertStatus'
    }

    attribute_map = {
        'labels': 'labels',
        'generator_url': 'generatorURL',
        'annotations': 'annotations',
        'receivers': 'receivers',
        'fingerprint': 'fingerprint',
        'starts_at': 'startsAt',
        'updated_at': 'updatedAt',
        'ends_at': 'endsAt',
        'status': 'status'
    }

    def __init__(self, labels=None, generator_url=None, annotations=None, receivers=None, fingerprint=None, starts_at=None, updated_at=None, ends_at=None, status=None):  # noqa: E501
        """GettableAlert - a model defined in Swagger"""  # noqa: E501

        self._labels = None
        self._generator_url = None
        self._annotations = None
        self._receivers = None
        self._fingerprint = None
        self._starts_at = None
        self._updated_at = None
        self._ends_at = None
        self._status = None
        self.discriminator = None

        self.labels = labels
        if generator_url is not None:
            self.generator_url = generator_url
        self.annotations = annotations
        self.receivers = receivers
        self.fingerprint = fingerprint
        self.starts_at = starts_at
        self.updated_at = updated_at
        self.ends_at = ends_at
        self.status = status

    @property
    def labels(self):
        """Gets the labels of this GettableAlert.  # noqa: E501


        :return: The labels of this GettableAlert.  # noqa: E501
        :rtype: LabelSet
        """
        return self._labels

    @labels.setter
    def labels(self, labels):
        """Sets the labels of this GettableAlert.


        :param labels: The labels of this GettableAlert.  # noqa: E501
        :type: LabelSet
        """
        if labels is None:
            raise ValueError("Invalid value for `labels`, must not be `None`")  # noqa: E501

        self._labels = labels

    @property
    def generator_url(self):
        """Gets the generator_url of this GettableAlert.  # noqa: E501


        :return: The generator_url of this GettableAlert.  # noqa: E501
        :rtype: str
        """
        return self._generator_url

    @generator_url.setter
    def generator_url(self, generator_url):
        """Sets the generator_url of this GettableAlert.


        :param generator_url: The generator_url of this GettableAlert.  # noqa: E501
        :type: str
        """

        self._generator_url = generator_url

    @property
    def annotations(self):
        """Gets the annotations of this GettableAlert.  # noqa: E501


        :return: The annotations of this GettableAlert.  # noqa: E501
        :rtype: LabelSet
        """
        return self._annotations

    @annotations.setter
    def annotations(self, annotations):
        """Sets the annotations of this GettableAlert.


        :param annotations: The annotations of this GettableAlert.  # noqa: E501
        :type: LabelSet
        """
        if annotations is None:
            raise ValueError("Invalid value for `annotations`, must not be `None`")  # noqa: E501

        self._annotations = annotations

    @property
    def receivers(self):
        """Gets the receivers of this GettableAlert.  # noqa: E501


        :return: The receivers of this GettableAlert.  # noqa: E501
        :rtype: list[Receiver]
        """
        return self._receivers

    @receivers.setter
    def receivers(self, receivers):
        """Sets the receivers of this GettableAlert.


        :param receivers: The receivers of this GettableAlert.  # noqa: E501
        :type: list[Receiver]
        """
        if receivers is None:
            raise ValueError("Invalid value for `receivers`, must not be `None`")  # noqa: E501

        self._receivers = receivers

    @property
    def fingerprint(self):
        """Gets the fingerprint of this GettableAlert.  # noqa: E501


        :return: The fingerprint of this GettableAlert.  # noqa: E501
        :rtype: str
        """
        return self._fingerprint

    @fingerprint.setter
    def fingerprint(self, fingerprint):
        """Sets the fingerprint of this GettableAlert.


        :param fingerprint: The fingerprint of this GettableAlert.  # noqa: E501
        :type: str
        """
        if fingerprint is None:
            raise ValueError("Invalid value for `fingerprint`, must not be `None`")  # noqa: E501

        self._fingerprint = fingerprint

    @property
    def starts_at(self):
        """Gets the starts_at of this GettableAlert.  # noqa: E501


        :return: The starts_at of this GettableAlert.  # noqa: E501
        :rtype: datetime
        """
        return self._starts_at

    @starts_at.setter
    def starts_at(self, starts_at):
        """Sets the starts_at of this GettableAlert.


        :param starts_at: The starts_at of this GettableAlert.  # noqa: E501
        :type: datetime
        """
        if starts_at is None:
            raise ValueError("Invalid value for `starts_at`, must not be `None`")  # noqa: E501

        self._starts_at = starts_at

    @property
    def updated_at(self):
        """Gets the updated_at of this GettableAlert.  # noqa: E501


        :return: The updated_at of this GettableAlert.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at):
        """Sets the updated_at of this GettableAlert.


        :param updated_at: The updated_at of this GettableAlert.  # noqa: E501
        :type: datetime
        """
        if updated_at is None:
            raise ValueError("Invalid value for `updated_at`, must not be `None`")  # noqa: E501

        self._updated_at = updated_at

    @property
    def ends_at(self):
        """Gets the ends_at of this GettableAlert.  # noqa: E501


        :return: The ends_at of this GettableAlert.  # noqa: E501
        :rtype: datetime
        """
        return self._ends_at

    @ends_at.setter
    def ends_at(self, ends_at):
        """Sets the ends_at of this GettableAlert.


        :param ends_at: The ends_at of this GettableAlert.  # noqa: E501
        :type: datetime
        """
        if ends_at is None:
            raise ValueError("Invalid value for `ends_at`, must not be `None`")  # noqa: E501

        self._ends_at = ends_at

    @property
    def status(self):
        """Gets the status of this GettableAlert.  # noqa: E501


        :return: The status of this GettableAlert.  # noqa: E501
        :rtype: AlertStatus
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this GettableAlert.


        :param status: The status of this GettableAlert.  # noqa: E501
        :type: AlertStatus
        """
        if status is None:
            raise ValueError("Invalid value for `status`, must not be `None`")  # noqa: E501

        self._status = status

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(GettableAlert, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, GettableAlert):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
# coding: utf-8 Alertmanager API      API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager)  # noqa: E501      OpenAPI spec version: 0.0.1          Generated by: https://github.com/swagger-api/swagger-codegen.git # noqa: F401 # noqa: F401,E501 # noqa: F401,E501 # noqa: F401,E501 # noqa: F401,E501 NOTE: This class is auto generated by the swagger code generator program.      Do not edit the class manually. Attributes:       swagger_types (dict): The key is attribute name                             and the value is attribute type.       attribute_map (dict): The key is attribute name                             and the value is json key in definition. # noqa: E501 GettableAlert - a model defined in Swagger # noqa: E501 Gets the labels of this GettableAlert.  # noqa: E501           :return: The labels of this GettableAlert.  # noqa: E501         :rtype: LabelSet Sets the labels of this GettableAlert.           :param labels: The labels of this GettableAlert.  # noqa: E501         :type: LabelSet # noqa: E501 Gets the generator_url of this GettableAlert.  # noqa: E501           :return: The generator_url of this GettableAlert.  # noqa: E501         :rtype: str Sets the generator_url of this GettableAlert.           :param generator_url: The generator_url of this GettableAlert.  # noqa: E501         :type: str Gets the annotations of this GettableAlert.  # noqa: E501           :return: The annotations of this GettableAlert.  # noqa: E501         :rtype: LabelSet Sets the annotations of this GettableAlert.           :param annotations: The annotations of this GettableAlert.  # noqa: E501         :type: LabelSet # noqa: E501 Gets the receivers of this GettableAlert.  # noqa: E501           :return: The receivers of this GettableAlert.  # noqa: E501         :rtype: list[Receiver] Sets the receivers of this GettableAlert.           :param receivers: The receivers of this GettableAlert.  # noqa: E501         :type: list[Receiver] # noqa: E501 Gets the fingerprint of this GettableAlert.  # noqa: E501           :return: The fingerprint of this GettableAlert.  # noqa: E501         :rtype: str Sets the fingerprint of this GettableAlert.           :param fingerprint: The fingerprint of this GettableAlert.  # noqa: E501         :type: str # noqa: E501 Gets the starts_at of this GettableAlert.  # noqa: E501           :return: The starts_at of this GettableAlert.  # noqa: E501         :rtype: datetime Sets the starts_at of this GettableAlert.           :param starts_at: The starts_at of this GettableAlert.  # noqa: E501         :type: datetime # noqa: E501 Gets the updated_at of this GettableAlert.  # noqa: E501           :return: The updated_at of this GettableAlert.  # noqa: E501         :rtype: datetime Sets the updated_at of this GettableAlert.           :param updated_at: The updated_at of this GettableAlert.  # noqa: E501         :type: datetime # noqa: E501 Gets the ends_at of this GettableAlert.  # noqa: E501           :return: The ends_at of this GettableAlert.  # noqa: E501         :rtype: datetime Sets the ends_at of this GettableAlert.           :param ends_at: The ends_at of this GettableAlert.  # noqa: E501         :type: datetime # noqa: E501 Gets the status of this GettableAlert.  # noqa: E501           :return: The status of this GettableAlert.  # noqa: E501         :rtype: AlertStatus Sets the status of this GettableAlert.           :param status: The status of this GettableAlert.  # noqa: E501         :type: AlertStatus # noqa: E501 Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal