""" Options: Date: 2024-11-21 11:02:22 Version: 6.111 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://grpc.servicestack.net #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: Protoc.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum class ProtocLang(str, Enum): CPP = 'cpp' C_SHARP = 'csharp' DART = 'dart' JAVA = 'java' JAVA_LITE = 'java-lite' OBJECTIVE_C = 'objc' PHP = 'php' PYTHON = 'python' RUBY = 'ruby' GO = 'go' JAVA_SCRIPT_CLOSURE = 'js-closure' JAVA_SCRIPT_COMMON_JS = 'js-commonjs' JAVA_SCRIPT_NODE_JS = 'js-node' SWIFT = 'swift' TYPE_SCRIPT = 'ts' TYPE_SCRIPT_BINARY = 'ts-binary' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ProtocResponse: lang: Optional[ProtocLang] = None generated_files: Optional[Dict[str, str]] = None archive_url: Optional[str] = None response_status: Optional[ResponseStatus] = None # @Route("/protoc/{Lang}") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Protoc(IReturn[ProtocResponse]): lang: Optional[ProtocLang] = None files: Optional[Dict[str, str]] = None proto_url: Optional[str] = None