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 import util class Service(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, protocol=None, version=None): # noqa: E501 """Service - a model defined in OpenAPI :param name: The name of this Service. # noqa: E501 :type name: str :param protocol: The protocol of this Service. # noqa: E501 :type protocol: str :param version: The version of this Service. # noqa: E501 :type version: str """ self.openapi_types = { 'name': str, 'protocol': str, 'version': str } self.attribute_map = { 'name': 'name', 'protocol': 'protocol', 'version': 'version' } self._name = name self._protocol = protocol self._version = version @classmethod def from_dict(cls, dikt) -> 'Service': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The Service of this Service. # noqa: E501 :rtype: Service """ return util.deserialize_model(dikt, cls) @property def name(self) -> str: """Gets the name of this Service. :return: The name of this Service. :rtype: str """ return self._name @name.setter def name(self, name: str): """Sets the name of this Service. :param name: The name of this Service. :type name: str """ self._name = name @property def protocol(self) -> str: """Gets the protocol of this Service. :return: The protocol of this Service. :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol: str): """Sets the protocol of this Service. :param protocol: The protocol of this Service. :type protocol: str """ self._protocol = protocol @property def version(self) -> str: """Gets the version of this Service. :return: The version of this Service. :rtype: str """ return self._version @version.setter def version(self, version: str): """Sets the version of this Service. :param version: The version of this Service. :type version: str """ self._version = version