def get_discovery_doc(self, services, hostname=None):
if not isinstance(services, (tuple, list)):<EOL><INDENT>services = [services]<EOL><DEDENT>util.check_list_type(services, remote._ServiceClass, '<STR_LIT>',<EOL>allow_none=False)<EOL>return self.__discovery_doc_descriptor(services, hostname=hostname)<EOL>
JSON dict description of a protorpc.remote.Service in discovery format.

        Args:
          services: Either a single protorpc.remote.Service or a list of them
            that implements an api/version.
          hostname: string, Hostname of the API, to override the value set on the
            current service. Defaults to None.

        Returns:
          dict, The discovery document as a JSON dict.