# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from tapi_server.models.base_model_ import Model
from tapi_server.models.tapi_topology_topology import TapiTopologyTopology  # noqa: F401,E501
from tapi_server import util


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

    Do not edit the class manually.
    """
    def __init__(self, topology: List[TapiTopologyTopology]=None):  # noqa: E501
        """TapiTopologyGettopologylistOutput - a model defined in Swagger

        :param topology: The topology of this TapiTopologyGettopologylistOutput.  # noqa: E501
        :type topology: List[TapiTopologyTopology]
        """
        self.swagger_types = {
            'topology': List[TapiTopologyTopology]
        }

        self.attribute_map = {
            'topology': 'topology'
        }
        self._topology = topology

    @classmethod
    def from_dict(cls, dikt) -> 'TapiTopologyGettopologylistOutput':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The tapi.topology.gettopologylist.Output of this TapiTopologyGettopologylistOutput.  # noqa: E501
        :rtype: TapiTopologyGettopologylistOutput
        """
        return util.deserialize_model(dikt, cls)

    @property
    def topology(self) -> List[TapiTopologyTopology]:
        """Gets the topology of this TapiTopologyGettopologylistOutput.

        none  # noqa: E501

        :return: The topology of this TapiTopologyGettopologylistOutput.
        :rtype: List[TapiTopologyTopology]
        """
        return self._topology

    @topology.setter
    def topology(self, topology: List[TapiTopologyTopology]):
        """Sets the topology of this TapiTopologyGettopologylistOutput.

        none  # noqa: E501

        :param topology: The topology of this TapiTopologyGettopologylistOutput.
        :type topology: List[TapiTopologyTopology]
        """

        self._topology = topology
