# 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 PhysicalLocation(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',
        'is_external': 'bool',
        'geo_data': 'GeoData',
        'network_locations_in_range': 'list[str]',
        'connected': 'bool',
        'wireless': 'bool',
        'wireless_type': 'str',
        'data_network': 'DNConfig',
        'meta': 'dict(str, str)',
        'user_meta': 'dict(str, str)',
        'processes': 'list[Process]',
        'net_char': 'NetworkCharacteristics',
        'link_latency': 'int',
        'link_latency_variation': 'int',
        'link_throughput': 'int',
        'link_packet_loss': 'float',
        'mac_id': 'str'
    }

    attribute_map = {
        'id': 'id',
        'name': 'name',
        'type': 'type',
        'is_external': 'isExternal',
        'geo_data': 'geoData',
        'network_locations_in_range': 'networkLocationsInRange',
        'connected': 'connected',
        'wireless': 'wireless',
        'wireless_type': 'wirelessType',
        'data_network': 'dataNetwork',
        'meta': 'meta',
        'user_meta': 'userMeta',
        'processes': 'processes',
        'net_char': 'netChar',
        'link_latency': 'linkLatency',
        'link_latency_variation': 'linkLatencyVariation',
        'link_throughput': 'linkThroughput',
        'link_packet_loss': 'linkPacketLoss',
        'mac_id': 'macId'
    }

    def __init__(self, id=None, name=None, type=None, is_external=None, geo_data=None, network_locations_in_range=None, connected=None, wireless=None, wireless_type=None, data_network=None, meta=None, user_meta=None, processes=None, net_char=None, link_latency=None, link_latency_variation=None, link_throughput=None, link_packet_loss=None, mac_id=None):  # noqa: E501
        """PhysicalLocation - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._name = None
        self._type = None
        self._is_external = None
        self._geo_data = None
        self._network_locations_in_range = None
        self._connected = None
        self._wireless = None
        self._wireless_type = None
        self._data_network = None
        self._meta = None
        self._user_meta = None
        self._processes = None
        self._net_char = None
        self._link_latency = None
        self._link_latency_variation = None
        self._link_throughput = None
        self._link_packet_loss = None
        self._mac_id = 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 is_external is not None:
            self.is_external = is_external
        if geo_data is not None:
            self.geo_data = geo_data
        if network_locations_in_range is not None:
            self.network_locations_in_range = network_locations_in_range
        if connected is not None:
            self.connected = connected
        if wireless is not None:
            self.wireless = wireless
        if wireless_type is not None:
            self.wireless_type = wireless_type
        if data_network is not None:
            self.data_network = data_network
        if meta is not None:
            self.meta = meta
        if user_meta is not None:
            self.user_meta = user_meta
        if processes is not None:
            self.processes = processes
        if net_char is not None:
            self.net_char = net_char
        if link_latency is not None:
            self.link_latency = link_latency
        if link_latency_variation is not None:
            self.link_latency_variation = link_latency_variation
        if link_throughput is not None:
            self.link_throughput = link_throughput
        if link_packet_loss is not None:
            self.link_packet_loss = link_packet_loss
        if mac_id is not None:
            self.mac_id = mac_id

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

        Unique physical location ID  # noqa: E501

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

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

        Unique physical location ID  # noqa: E501

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

        self._id = id

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

        Physical location name  # noqa: E501

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

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

        Physical location name  # noqa: E501

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

        self._name = name

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

        Physical location type  # noqa: E501

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

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

        Physical location type  # noqa: E501

        :param type: The type of this PhysicalLocation.  # noqa: E501
        :type: str
        """
        allowed_values = ["UE", "FOG", "EDGE", "CN", "DC"]  # 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 is_external(self):
        """Gets the is_external of this PhysicalLocation.  # noqa: E501

        true: Physical location is external to MEEP false: Physical location is internal to MEEP  # noqa: E501

        :return: The is_external of this PhysicalLocation.  # noqa: E501
        :rtype: bool
        """
        return self._is_external

    @is_external.setter
    def is_external(self, is_external):
        """Sets the is_external of this PhysicalLocation.

        true: Physical location is external to MEEP false: Physical location is internal to MEEP  # noqa: E501

        :param is_external: The is_external of this PhysicalLocation.  # noqa: E501
        :type: bool
        """

        self._is_external = is_external

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


        :return: The geo_data of this PhysicalLocation.  # noqa: E501
        :rtype: GeoData
        """
        return self._geo_data

    @geo_data.setter
    def geo_data(self, geo_data):
        """Sets the geo_data of this PhysicalLocation.


        :param geo_data: The geo_data of this PhysicalLocation.  # noqa: E501
        :type: GeoData
        """

        self._geo_data = geo_data

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


        :return: The network_locations_in_range of this PhysicalLocation.  # noqa: E501
        :rtype: list[str]
        """
        return self._network_locations_in_range

    @network_locations_in_range.setter
    def network_locations_in_range(self, network_locations_in_range):
        """Sets the network_locations_in_range of this PhysicalLocation.


        :param network_locations_in_range: The network_locations_in_range of this PhysicalLocation.  # noqa: E501
        :type: list[str]
        """

        self._network_locations_in_range = network_locations_in_range

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

        true: Physical location has network connectivity false: Physical location has no network connectivity  # noqa: E501

        :return: The connected of this PhysicalLocation.  # noqa: E501
        :rtype: bool
        """
        return self._connected

    @connected.setter
    def connected(self, connected):
        """Sets the connected of this PhysicalLocation.

        true: Physical location has network connectivity false: Physical location has no network connectivity  # noqa: E501

        :param connected: The connected of this PhysicalLocation.  # noqa: E501
        :type: bool
        """

        self._connected = connected

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

        true: Physical location uses a wireless connection false: Physical location uses a wired connection  # noqa: E501

        :return: The wireless of this PhysicalLocation.  # noqa: E501
        :rtype: bool
        """
        return self._wireless

    @wireless.setter
    def wireless(self, wireless):
        """Sets the wireless of this PhysicalLocation.

        true: Physical location uses a wireless connection false: Physical location uses a wired connection  # noqa: E501

        :param wireless: The wireless of this PhysicalLocation.  # noqa: E501
        :type: bool
        """

        self._wireless = wireless

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

        Prioritized, comma-separated list of supported wireless connection types. Default priority if not specififed is 'wifi,5g,4g,other'. Wireless connection types: - 4g - 5g - wifi - other  # noqa: E501

        :return: The wireless_type of this PhysicalLocation.  # noqa: E501
        :rtype: str
        """
        return self._wireless_type

    @wireless_type.setter
    def wireless_type(self, wireless_type):
        """Sets the wireless_type of this PhysicalLocation.

        Prioritized, comma-separated list of supported wireless connection types. Default priority if not specififed is 'wifi,5g,4g,other'. Wireless connection types: - 4g - 5g - wifi - other  # noqa: E501

        :param wireless_type: The wireless_type of this PhysicalLocation.  # noqa: E501
        :type: str
        """

        self._wireless_type = wireless_type

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


        :return: The data_network of this PhysicalLocation.  # noqa: E501
        :rtype: DNConfig
        """
        return self._data_network

    @data_network.setter
    def data_network(self, data_network):
        """Sets the data_network of this PhysicalLocation.


        :param data_network: The data_network of this PhysicalLocation.  # noqa: E501
        :type: DNConfig
        """

        self._data_network = data_network

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

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

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

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

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

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

        self._meta = meta

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

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

        :return: The user_meta of this PhysicalLocation.  # 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 PhysicalLocation.

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

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

        self._user_meta = user_meta

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


        :return: The processes of this PhysicalLocation.  # noqa: E501
        :rtype: list[Process]
        """
        return self._processes

    @processes.setter
    def processes(self, processes):
        """Sets the processes of this PhysicalLocation.


        :param processes: The processes of this PhysicalLocation.  # noqa: E501
        :type: list[Process]
        """

        self._processes = processes

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


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

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


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

        self._net_char = net_char

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

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

        :return: The link_latency of this PhysicalLocation.  # noqa: E501
        :rtype: int
        """
        return self._link_latency

    @link_latency.setter
    def link_latency(self, link_latency):
        """Sets the link_latency of this PhysicalLocation.

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

        :param link_latency: The link_latency of this PhysicalLocation.  # noqa: E501
        :type: int
        """

        self._link_latency = link_latency

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

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

        :return: The link_latency_variation of this PhysicalLocation.  # noqa: E501
        :rtype: int
        """
        return self._link_latency_variation

    @link_latency_variation.setter
    def link_latency_variation(self, link_latency_variation):
        """Sets the link_latency_variation of this PhysicalLocation.

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

        :param link_latency_variation: The link_latency_variation of this PhysicalLocation.  # noqa: E501
        :type: int
        """

        self._link_latency_variation = link_latency_variation

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

        **DEPRECATED** As of release 1.5.0, replaced by netChar throughputUl and throughputDl  # noqa: E501

        :return: The link_throughput of this PhysicalLocation.  # noqa: E501
        :rtype: int
        """
        return self._link_throughput

    @link_throughput.setter
    def link_throughput(self, link_throughput):
        """Sets the link_throughput of this PhysicalLocation.

        **DEPRECATED** As of release 1.5.0, replaced by netChar throughputUl and throughputDl  # noqa: E501

        :param link_throughput: The link_throughput of this PhysicalLocation.  # noqa: E501
        :type: int
        """

        self._link_throughput = link_throughput

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

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

        :return: The link_packet_loss of this PhysicalLocation.  # noqa: E501
        :rtype: float
        """
        return self._link_packet_loss

    @link_packet_loss.setter
    def link_packet_loss(self, link_packet_loss):
        """Sets the link_packet_loss of this PhysicalLocation.

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

        :param link_packet_loss: The link_packet_loss of this PhysicalLocation.  # noqa: E501
        :type: float
        """

        self._link_packet_loss = link_packet_loss

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

        Physical location MAC Address  # noqa: E501

        :return: The mac_id of this PhysicalLocation.  # noqa: E501
        :rtype: str
        """
        return self._mac_id

    @mac_id.setter
    def mac_id(self, mac_id):
        """Sets the mac_id of this PhysicalLocation.

        Physical location MAC Address  # noqa: E501

        :param mac_id: The mac_id of this PhysicalLocation.  # noqa: E501
        :type: str
        """

        self._mac_id = mac_id

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

        return self.__dict__ == other.__dict__

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