# coding: utf-8

"""
    MEC Sandbox API

    The MEC Sandbox API described using OpenAPI  # noqa: E501

    OpenAPI spec version: 0.0.9
    Contact: cti_support@etsi.org
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class Zone(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 = {
        'id': 'str',
        'name': 'str',
        'type': 'str',
        'net_char': 'NetworkCharacteristics',
        'inter_fog_latency': 'int',
        'inter_fog_latency_variation': 'int',
        'inter_fog_throughput': 'int',
        'inter_fog_packet_loss': 'float',
        'inter_edge_latency': 'int',
        'inter_edge_latency_variation': 'int',
        'inter_edge_throughput': 'int',
        'inter_edge_packet_loss': 'float',
        'edge_fog_latency': 'int',
        'edge_fog_latency_variation': 'int',
        'edge_fog_throughput': 'int',
        'edge_fog_packet_loss': 'float',
        'meta': 'dict(str, str)',
        'user_meta': 'dict(str, str)',
        'network_locations': 'list[NetworkLocation]'
    }

    attribute_map = {
        'id': 'id',
        'name': 'name',
        'type': 'type',
        'net_char': 'netChar',
        'inter_fog_latency': 'interFogLatency',
        'inter_fog_latency_variation': 'interFogLatencyVariation',
        'inter_fog_throughput': 'interFogThroughput',
        'inter_fog_packet_loss': 'interFogPacketLoss',
        'inter_edge_latency': 'interEdgeLatency',
        'inter_edge_latency_variation': 'interEdgeLatencyVariation',
        'inter_edge_throughput': 'interEdgeThroughput',
        'inter_edge_packet_loss': 'interEdgePacketLoss',
        'edge_fog_latency': 'edgeFogLatency',
        'edge_fog_latency_variation': 'edgeFogLatencyVariation',
        'edge_fog_throughput': 'edgeFogThroughput',
        'edge_fog_packet_loss': 'edgeFogPacketLoss',
        'meta': 'meta',
        'user_meta': 'userMeta',
        'network_locations': 'networkLocations'
    }

    def __init__(self, id=None, name=None, type=None, net_char=None, inter_fog_latency=None, inter_fog_latency_variation=None, inter_fog_throughput=None, inter_fog_packet_loss=None, inter_edge_latency=None, inter_edge_latency_variation=None, inter_edge_throughput=None, inter_edge_packet_loss=None, edge_fog_latency=None, edge_fog_latency_variation=None, edge_fog_throughput=None, edge_fog_packet_loss=None, meta=None, user_meta=None, network_locations=None):  # noqa: E501
        """Zone - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._name = None
        self._type = None
        self._net_char = None
        self._inter_fog_latency = None
        self._inter_fog_latency_variation = None
        self._inter_fog_throughput = None
        self._inter_fog_packet_loss = None
        self._inter_edge_latency = None
        self._inter_edge_latency_variation = None
        self._inter_edge_throughput = None
        self._inter_edge_packet_loss = None
        self._edge_fog_latency = None
        self._edge_fog_latency_variation = None
        self._edge_fog_throughput = None
        self._edge_fog_packet_loss = None
        self._meta = None
        self._user_meta = None
        self._network_locations = None
        self.discriminator = None
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if type is not None:
            self.type = type
        if net_char is not None:
            self.net_char = net_char
        if inter_fog_latency is not None:
            self.inter_fog_latency = inter_fog_latency
        if inter_fog_latency_variation is not None:
            self.inter_fog_latency_variation = inter_fog_latency_variation
        if inter_fog_throughput is not None:
            self.inter_fog_throughput = inter_fog_throughput
        if inter_fog_packet_loss is not None:
            self.inter_fog_packet_loss = inter_fog_packet_loss
        if inter_edge_latency is not None:
            self.inter_edge_latency = inter_edge_latency
        if inter_edge_latency_variation is not None:
            self.inter_edge_latency_variation = inter_edge_latency_variation
        if inter_edge_throughput is not None:
            self.inter_edge_throughput = inter_edge_throughput
        if inter_edge_packet_loss is not None:
            self.inter_edge_packet_loss = inter_edge_packet_loss
        if edge_fog_latency is not None:
            self.edge_fog_latency = edge_fog_latency
        if edge_fog_latency_variation is not None:
            self.edge_fog_latency_variation = edge_fog_latency_variation
        if edge_fog_throughput is not None:
            self.edge_fog_throughput = edge_fog_throughput
        if edge_fog_packet_loss is not None:
            self.edge_fog_packet_loss = edge_fog_packet_loss
        if meta is not None:
            self.meta = meta
        if user_meta is not None:
            self.user_meta = user_meta
        if network_locations is not None:
            self.network_locations = network_locations

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

        Unique zone ID  # noqa: E501

        :return: The id of this Zone.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this Zone.

        Unique zone ID  # noqa: E501

        :param id: The id of this Zone.  # noqa: E501
        :type: str
        """

        self._id = id

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

        Zone name  # noqa: E501

        :return: The name of this Zone.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this Zone.

        Zone name  # noqa: E501

        :param name: The name of this Zone.  # noqa: E501
        :type: str
        """

        self._name = name

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

        Zone type  # noqa: E501

        :return: The type of this Zone.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this Zone.

        Zone type  # noqa: E501

        :param type: The type of this Zone.  # noqa: E501
        :type: str
        """
        allowed_values = ["ZONE", "COMMON"]  # noqa: E501
        if type not in allowed_values:
            raise ValueError(
                "Invalid value for `type` ({0}), must be one of {1}"  # noqa: E501
                .format(type, allowed_values)
            )

        self._type = type

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


        :return: The net_char of this Zone.  # noqa: E501
        :rtype: NetworkCharacteristics
        """
        return self._net_char

    @net_char.setter
    def net_char(self, net_char):
        """Sets the net_char of this Zone.


        :param net_char: The net_char of this Zone.  # noqa: E501
        :type: NetworkCharacteristics
        """

        self._net_char = net_char

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

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :return: The inter_fog_latency of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._inter_fog_latency

    @inter_fog_latency.setter
    def inter_fog_latency(self, inter_fog_latency):
        """Sets the inter_fog_latency of this Zone.

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :param inter_fog_latency: The inter_fog_latency of this Zone.  # noqa: E501
        :type: int
        """

        self._inter_fog_latency = inter_fog_latency

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

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :return: The inter_fog_latency_variation of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._inter_fog_latency_variation

    @inter_fog_latency_variation.setter
    def inter_fog_latency_variation(self, inter_fog_latency_variation):
        """Sets the inter_fog_latency_variation of this Zone.

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :param inter_fog_latency_variation: The inter_fog_latency_variation of this Zone.  # noqa: E501
        :type: int
        """

        self._inter_fog_latency_variation = inter_fog_latency_variation

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

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :return: The inter_fog_throughput of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._inter_fog_throughput

    @inter_fog_throughput.setter
    def inter_fog_throughput(self, inter_fog_throughput):
        """Sets the inter_fog_throughput of this Zone.

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :param inter_fog_throughput: The inter_fog_throughput of this Zone.  # noqa: E501
        :type: int
        """

        self._inter_fog_throughput = inter_fog_throughput

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

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :return: The inter_fog_packet_loss of this Zone.  # noqa: E501
        :rtype: float
        """
        return self._inter_fog_packet_loss

    @inter_fog_packet_loss.setter
    def inter_fog_packet_loss(self, inter_fog_packet_loss):
        """Sets the inter_fog_packet_loss of this Zone.

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :param inter_fog_packet_loss: The inter_fog_packet_loss of this Zone.  # noqa: E501
        :type: float
        """

        self._inter_fog_packet_loss = inter_fog_packet_loss

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

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :return: The inter_edge_latency of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._inter_edge_latency

    @inter_edge_latency.setter
    def inter_edge_latency(self, inter_edge_latency):
        """Sets the inter_edge_latency of this Zone.

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :param inter_edge_latency: The inter_edge_latency of this Zone.  # noqa: E501
        :type: int
        """

        self._inter_edge_latency = inter_edge_latency

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

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :return: The inter_edge_latency_variation of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._inter_edge_latency_variation

    @inter_edge_latency_variation.setter
    def inter_edge_latency_variation(self, inter_edge_latency_variation):
        """Sets the inter_edge_latency_variation of this Zone.

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :param inter_edge_latency_variation: The inter_edge_latency_variation of this Zone.  # noqa: E501
        :type: int
        """

        self._inter_edge_latency_variation = inter_edge_latency_variation

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

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :return: The inter_edge_throughput of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._inter_edge_throughput

    @inter_edge_throughput.setter
    def inter_edge_throughput(self, inter_edge_throughput):
        """Sets the inter_edge_throughput of this Zone.

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :param inter_edge_throughput: The inter_edge_throughput of this Zone.  # noqa: E501
        :type: int
        """

        self._inter_edge_throughput = inter_edge_throughput

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

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :return: The inter_edge_packet_loss of this Zone.  # noqa: E501
        :rtype: float
        """
        return self._inter_edge_packet_loss

    @inter_edge_packet_loss.setter
    def inter_edge_packet_loss(self, inter_edge_packet_loss):
        """Sets the inter_edge_packet_loss of this Zone.

        **DEPRECATED** As of release 1.3.0, no longer supported  # noqa: E501

        :param inter_edge_packet_loss: The inter_edge_packet_loss of this Zone.  # noqa: E501
        :type: float
        """

        self._inter_edge_packet_loss = inter_edge_packet_loss

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

        **DEPRECATED** As of release 1.3.0, replaced by netChar latency  # noqa: E501

        :return: The edge_fog_latency of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._edge_fog_latency

    @edge_fog_latency.setter
    def edge_fog_latency(self, edge_fog_latency):
        """Sets the edge_fog_latency of this Zone.

        **DEPRECATED** As of release 1.3.0, replaced by netChar latency  # noqa: E501

        :param edge_fog_latency: The edge_fog_latency of this Zone.  # noqa: E501
        :type: int
        """

        self._edge_fog_latency = edge_fog_latency

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

        **DEPRECATED** As of release 1.3.0, replaced by netChar latencyVariation  # noqa: E501

        :return: The edge_fog_latency_variation of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._edge_fog_latency_variation

    @edge_fog_latency_variation.setter
    def edge_fog_latency_variation(self, edge_fog_latency_variation):
        """Sets the edge_fog_latency_variation of this Zone.

        **DEPRECATED** As of release 1.3.0, replaced by netChar latencyVariation  # noqa: E501

        :param edge_fog_latency_variation: The edge_fog_latency_variation of this Zone.  # noqa: E501
        :type: int
        """

        self._edge_fog_latency_variation = edge_fog_latency_variation

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

        **DEPRECATED** As of release 1.3.0, replaced by netChar throughput  # noqa: E501

        :return: The edge_fog_throughput of this Zone.  # noqa: E501
        :rtype: int
        """
        return self._edge_fog_throughput

    @edge_fog_throughput.setter
    def edge_fog_throughput(self, edge_fog_throughput):
        """Sets the edge_fog_throughput of this Zone.

        **DEPRECATED** As of release 1.3.0, replaced by netChar throughput  # noqa: E501

        :param edge_fog_throughput: The edge_fog_throughput of this Zone.  # noqa: E501
        :type: int
        """

        self._edge_fog_throughput = edge_fog_throughput

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

        **DEPRECATED** As of release 1.3.0, replaced by netChar packetLoss  # noqa: E501

        :return: The edge_fog_packet_loss of this Zone.  # noqa: E501
        :rtype: float
        """
        return self._edge_fog_packet_loss

    @edge_fog_packet_loss.setter
    def edge_fog_packet_loss(self, edge_fog_packet_loss):
        """Sets the edge_fog_packet_loss of this Zone.

        **DEPRECATED** As of release 1.3.0, replaced by netChar packetLoss  # noqa: E501

        :param edge_fog_packet_loss: The edge_fog_packet_loss of this Zone.  # noqa: E501
        :type: float
        """

        self._edge_fog_packet_loss = edge_fog_packet_loss

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

        Key/Value Pair Map (string, string)  # noqa: E501

        :return: The meta of this Zone.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._meta

    @meta.setter
    def meta(self, meta):
        """Sets the meta of this Zone.

        Key/Value Pair Map (string, string)  # noqa: E501

        :param meta: The meta of this Zone.  # noqa: E501
        :type: dict(str, str)
        """

        self._meta = meta

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

        Key/Value Pair Map (string, string)  # noqa: E501

        :return: The user_meta of this Zone.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._user_meta

    @user_meta.setter
    def user_meta(self, user_meta):
        """Sets the user_meta of this Zone.

        Key/Value Pair Map (string, string)  # noqa: E501

        :param user_meta: The user_meta of this Zone.  # noqa: E501
        :type: dict(str, str)
        """

        self._user_meta = user_meta

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


        :return: The network_locations of this Zone.  # noqa: E501
        :rtype: list[NetworkLocation]
        """
        return self._network_locations

    @network_locations.setter
    def network_locations(self, network_locations):
        """Sets the network_locations of this Zone.


        :param network_locations: The network_locations of this Zone.  # noqa: E501
        :type: list[NetworkLocation]
        """

        self._network_locations = network_locations

    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(Zone, 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, Zone):
            return False

        return self.__dict__ == other.__dict__

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