from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model import Model from openapi_server.models.service import Service from openapi_server import util from openapi_server.models.service import Service # noqa: E501 class Server(Model): """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Do not edit the class manually. """ def __init__(self, name=None, rooms=None, auth_token=None, display_name=None, services=None): # noqa: E501 """Server - a model defined in OpenAPI :param name: The name of this Server. # noqa: E501 :type name: str :param rooms: The rooms of this Server. # noqa: E501 :type rooms: List[str] :param auth_token: The auth_token of this Server. # noqa: E501 :type auth_token: str :param display_name: The display_name of this Server. # noqa: E501 :type display_name: str :param services: The services of this Server. # noqa: E501 :type services: List[Service] """ self.openapi_types = { 'name': str, 'rooms': List[str], 'auth_token': str, 'display_name': str, 'services': List[Service] } self.attribute_map = { 'name': 'name', 'rooms': 'rooms', 'auth_token': 'authToken', 'display_name': 'displayName', 'services': 'services' } self._name = name self._rooms = rooms self._auth_token = auth_token self._display_name = display_name self._services = services @classmethod def from_dict(cls, dikt) -> 'Server': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The Server of this Server. # noqa: E501 :rtype: Server """ return util.deserialize_model(dikt, cls) @property def name(self) -> str: """Gets the name of this Server. :return: The name of this Server. :rtype: str """ return self._name @name.setter def name(self, name: str): """Sets the name of this Server. :param name: The name of this Server. :type name: str """ self._name = name @property def rooms(self) -> List[str]: """Gets the rooms of this Server. Tracks which rooms the server should be listed in; this will not be set when a room is listed to preserve privacy of servers. # noqa: E501 :return: The rooms of this Server. :rtype: List[str] """ return self._rooms @rooms.setter def rooms(self, rooms: List[str]): """Sets the rooms of this Server. Tracks which rooms the server should be listed in; this will not be set when a room is listed to preserve privacy of servers. # noqa: E501 :param rooms: The rooms of this Server. :type rooms: List[str] """ self._rooms = rooms @property def auth_token(self) -> str: """Gets the auth_token of this Server. Used to authenticate requests which access knocks for this server or attempt to update, delete or create services. In future calls, add a header with the format: Authorization: Bearer # noqa: E501 :return: The auth_token of this Server. :rtype: str """ return self._auth_token @auth_token.setter def auth_token(self, auth_token: str): """Sets the auth_token of this Server. Used to authenticate requests which access knocks for this server or attempt to update, delete or create services. In future calls, add a header with the format: Authorization: Bearer # noqa: E501 :param auth_token: The auth_token of this Server. :type auth_token: str """ self._auth_token = auth_token @property def display_name(self) -> str: """Gets the display_name of this Server. :return: The display_name of this Server. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name: str): """Sets the display_name of this Server. :param display_name: The display_name of this Server. :type display_name: str """ self._display_name = display_name @property def services(self) -> List[Service]: """Gets the services of this Server. :return: The services of this Server. :rtype: List[Service] """ return self._services @services.setter def services(self, services: List[Service]): """Sets the services of this Server. :param services: The services of this Server. :type services: List[Service] """ self._services = services