1 - | import rest_json.input
|
2 - | import rest_json.middleware
|
3 - | import rest_json.output
|
4 - | import rest_json.tls
|
5 - | import typing
|
6 - |
|
7 - | Ctx = typing.TypeVar('Ctx')
|
8 - |
|
9 - | class App(typing.Generic[Ctx]):
|
10 - | """
|
11 - | Main Python application, used to register operations and context and start multiple
|
12 - | workers on the same shared socket.
|
13 - |
|
14 - | Operations can be registered using the application object as a decorator (`@app.operation_name`).
|
15 - |
|
16 - | Here's a full example to get you started:
|
17 - |
|
18 - | ```python
|
19 - | from rest_json import input
|
20 - | from rest_json import output
|
21 - | from rest_json import error
|
22 - | from rest_json import middleware
|
23 - | from rest_json import App
|
24 - |
|
25 - | @dataclass
|
26 - | class Context:
|
27 - | counter: int = 0
|
28 - |
|
29 - | app = App()
|
30 - | app.context(Context())
|
31 - |
|
32 - | @app.request_middleware
|
33 - | def request_middleware(request: middleware::Request):
|
34 - | if request.get_header("x-amzn-id") != "secret":
|
35 - | raise middleware.MiddlewareException("Unsupported `x-amz-id` header", 401)
|
36 - |
|
37 - | # This example uses all query string types.
|
38 - | @app.all_query_string_types
|
39 - | def all_query_string_types(input: input::AllQueryStringTypesInput, ctx: Context) -> output::AllQueryStringTypesOutput:
|
40 - | raise NotImplementedError
|
41 - |
|
42 - | # This example uses fixed query string params and variable query string params.
|
43 - | # The fixed query string parameters and variable parameters must both be
|
44 - | # serialized (implementations may need to merge them together).
|
45 - | @app.constant_and_variable_query_string
|
46 - | def constant_and_variable_query_string(input: input::ConstantAndVariableQueryStringInput, ctx: Context) -> output::ConstantAndVariableQueryStringOutput:
|
47 - | raise NotImplementedError
|
48 - |
|
49 - | # This example uses a constant query string parameters and a label.
|
50 - | # This simply tests that labels and query string parameters are
|
51 - | # compatible. The fixed query string parameter named "hello" should
|
52 - | # in no way conflict with the label, `{hello}`.
|
53 - | @app.constant_query_string
|
54 - | def constant_query_string(input: input::ConstantQueryStringInput, ctx: Context) -> output::ConstantQueryStringOutput:
|
55 - | raise NotImplementedError
|
56 - |
|
57 - | # The example tests how servers must support requests
|
58 - | # containing a `Content-Type` header with parameters.
|
59 - | @app.content_type_parameters
|
60 - | def content_type_parameters(input: input::ContentTypeParametersInput, ctx: Context) -> output::ContentTypeParametersOutput:
|
61 - | raise NotImplementedError
|
62 - |
|
63 - | @app.datetime_offsets
|
64 - | def datetime_offsets(input: input::DatetimeOffsetsInput, ctx: Context) -> output::DatetimeOffsetsOutput:
|
65 - | raise NotImplementedError
|
66 - |
|
67 - | # This example serializes a document as part of the payload.
|
68 - | @app.document_type
|
69 - | def document_type(input: input::DocumentTypeInput, ctx: Context) -> output::DocumentTypeOutput:
|
70 - | raise NotImplementedError
|
71 - |
|
72 - | # This example serializes documents as the value of maps.
|
73 - | @app.document_type_as_map_value
|
74 - | def document_type_as_map_value(input: input::DocumentTypeAsMapValueInput, ctx: Context) -> output::DocumentTypeAsMapValueOutput:
|
75 - | raise NotImplementedError
|
76 - |
|
77 - | # This example serializes a document as the entire HTTP payload.
|
78 - | @app.document_type_as_payload
|
79 - | def document_type_as_payload(input: input::DocumentTypeAsPayloadInput, ctx: Context) -> output::DocumentTypeAsPayloadOutput:
|
80 - | raise NotImplementedError
|
81 - |
|
82 - | # The example tests how requests and responses are serialized when there's
|
83 - | # no request or response payload because the operation has an empty input
|
84 - | # and empty output structure that reuses the same shape. While this should
|
85 - | # be rare, code generators must support this.
|
86 - | @app.empty_input_and_empty_output
|
87 - | def empty_input_and_empty_output(input: input::EmptyInputAndEmptyOutputInput, ctx: Context) -> output::EmptyInputAndEmptyOutputOutput:
|
88 - | raise NotImplementedError
|
89 - |
|
90 - | @app.endpoint_operation
|
91 - | def endpoint_operation(input: input::EndpointOperationInput, ctx: Context) -> output::EndpointOperationOutput:
|
92 - | raise NotImplementedError
|
93 - |
|
94 - | @app.endpoint_with_host_label_operation
|
95 - | def endpoint_with_host_label_operation(input: input::EndpointWithHostLabelOperationInput, ctx: Context) -> output::EndpointWithHostLabelOperationOutput:
|
96 - | raise NotImplementedError
|
97 - |
|
98 - | @app.fractional_seconds
|
99 - | def fractional_seconds(input: input::FractionalSecondsInput, ctx: Context) -> output::FractionalSecondsOutput:
|
100 - | raise NotImplementedError
|
101 - |
|
102 - | # This operation has four possible return values:
|
103 - | #
|
104 - | # 1. A successful response in the form of GreetingWithErrorsOutput
|
105 - | # 2. An InvalidGreeting error.
|
106 - | # 3. A BadRequest error.
|
107 - | # 4. A FooError.
|
108 - | #
|
109 - | # Implementations must be able to successfully take a response and
|
110 - | # properly (de)serialize successful and error responses based on the
|
111 - | # the presence of the
|
112 - | @app.greeting_with_errors
|
113 - | def greeting_with_errors(input: input::GreetingWithErrorsInput, ctx: Context) -> output::GreetingWithErrorsOutput:
|
114 - | raise NotImplementedError
|
115 - |
|
116 - | @app.host_with_path_operation
|
117 - | def host_with_path_operation(input: input::HostWithPathOperationInput, ctx: Context) -> output::HostWithPathOperationOutput:
|
118 - | raise NotImplementedError
|
119 - |
|
120 - | # This example tests httpChecksumRequired trait
|
121 - | @app.http_checksum_required
|
122 - | def http_checksum_required(input: input::HttpChecksumRequiredInput, ctx: Context) -> output::HttpChecksumRequiredOutput:
|
123 - | raise NotImplementedError
|
124 - |
|
125 - | @app.http_enum_payload
|
126 - | def http_enum_payload(input: input::HttpEnumPayloadInput, ctx: Context) -> output::HttpEnumPayloadOutput:
|
127 - | raise NotImplementedError
|
128 - |
|
129 - | # This example serializes a blob shape in the payload.
|
130 - | #
|
131 - | # In this example, no JSON document is synthesized because the payload is
|
132 - | # not a structure or a union type.
|
133 - | @app.http_payload_traits
|
134 - | def http_payload_traits(input: input::HttpPayloadTraitsInput, ctx: Context) -> output::HttpPayloadTraitsOutput:
|
135 - | raise NotImplementedError
|
136 - |
|
137 - | # This example uses a `@mediaType` trait on the payload to force a custom
|
138 - | # content-type to be serialized.
|
139 - | @app.http_payload_traits_with_media_type
|
140 - | def http_payload_traits_with_media_type(input: input::HttpPayloadTraitsWithMediaTypeInput, ctx: Context) -> output::HttpPayloadTraitsWithMediaTypeOutput:
|
141 - | raise NotImplementedError
|
142 - |
|
143 - | # This example serializes a structure in the payload.
|
144 - | #
|
145 - | # Note that serializing a structure changes the wrapper element name
|
146 - | # to match the targeted structure.
|
147 - | @app.http_payload_with_structure
|
148 - | def http_payload_with_structure(input: input::HttpPayloadWithStructureInput, ctx: Context) -> output::HttpPayloadWithStructureOutput:
|
149 - | raise NotImplementedError
|
150 - |
|
151 - | # This example serializes a union in the payload.
|
152 - | @app.http_payload_with_union
|
153 - | def http_payload_with_union(input: input::HttpPayloadWithUnionInput, ctx: Context) -> output::HttpPayloadWithUnionOutput:
|
154 - | raise NotImplementedError
|
155 - |
|
156 - | # This examples adds headers to the input of a request and response by prefix.
|
157 - | @app.http_prefix_headers
|
158 - | def http_prefix_headers(input: input::HttpPrefixHeadersInput, ctx: Context) -> output::HttpPrefixHeadersOutput:
|
159 - | raise NotImplementedError
|
160 - |
|
161 - | # Clients that perform this test extract all headers from the response.
|
162 - | @app.http_prefix_headers_in_response
|
163 - | def http_prefix_headers_in_response(input: input::HttpPrefixHeadersInResponseInput, ctx: Context) -> output::HttpPrefixHeadersInResponseOutput:
|
164 - | raise NotImplementedError
|
165 - |
|
166 - | @app.http_request_with_float_labels
|
167 - | def http_request_with_float_labels(input: input::HttpRequestWithFloatLabelsInput, ctx: Context) -> output::HttpRequestWithFloatLabelsOutput:
|
168 - | raise NotImplementedError
|
169 - |
|
170 - | @app.http_request_with_greedy_label_in_path
|
171 - | def http_request_with_greedy_label_in_path(input: input::HttpRequestWithGreedyLabelInPathInput, ctx: Context) -> output::HttpRequestWithGreedyLabelInPathOutput:
|
172 - | raise NotImplementedError
|
173 - |
|
174 - | # The example tests how requests are serialized when there's no input
|
175 - | # payload but there are HTTP labels.
|
176 - | @app.http_request_with_labels
|
177 - | def http_request_with_labels(input: input::HttpRequestWithLabelsInput, ctx: Context) -> output::HttpRequestWithLabelsOutput:
|
178 - | raise NotImplementedError
|
179 - |
|
180 - | # The example tests how requests serialize different timestamp formats in the
|
181 - | # URI path.
|
182 - | @app.http_request_with_labels_and_timestamp_format
|
183 - | def http_request_with_labels_and_timestamp_format(input: input::HttpRequestWithLabelsAndTimestampFormatInput, ctx: Context) -> output::HttpRequestWithLabelsAndTimestampFormatOutput:
|
184 - | raise NotImplementedError
|
185 - |
|
186 - | @app.http_request_with_regex_literal
|
187 - | def http_request_with_regex_literal(input: input::HttpRequestWithRegexLiteralInput, ctx: Context) -> output::HttpRequestWithRegexLiteralOutput:
|
188 - | raise NotImplementedError
|
189 - |
|
190 - | @app.http_response_code
|
191 - | def http_response_code(input: input::HttpResponseCodeInput, ctx: Context) -> output::HttpResponseCodeOutput:
|
192 - | raise NotImplementedError
|
193 - |
|
194 - | @app.http_string_payload
|
195 - | def http_string_payload(input: input::HttpStringPayloadInput, ctx: Context) -> output::HttpStringPayloadOutput:
|
196 - | raise NotImplementedError
|
197 - |
|
198 - | # This example ensures that query string bound request parameters are
|
199 - | # serialized in the body of responses if the structure is used in both
|
200 - | # the request and response.
|
201 - | @app.ignore_query_params_in_response
|
202 - | def ignore_query_params_in_response(input: input::IgnoreQueryParamsInResponseInput, ctx: Context) -> output::IgnoreQueryParamsInResponseOutput:
|
203 - | raise NotImplementedError
|
204 - |
|
205 - | # The example tests how requests and responses are serialized when there is
|
206 - | # no input or output payload but there are HTTP header bindings.
|
207 - | @app.input_and_output_with_headers
|
208 - | def input_and_output_with_headers(input: input::InputAndOutputWithHeadersInput, ctx: Context) -> output::InputAndOutputWithHeadersOutput:
|
209 - | raise NotImplementedError
|
210 - |
|
211 - | # Blobs are base64 encoded
|
212 - | @app.json_blobs
|
213 - | def json_blobs(input: input::JsonBlobsInput, ctx: Context) -> output::JsonBlobsOutput:
|
214 - | raise NotImplementedError
|
215 - |
|
216 - | # This example serializes enums as top level properties, in lists, sets, and maps.
|
217 - | @app.json_enums
|
218 - | def json_enums(input: input::JsonEnumsInput, ctx: Context) -> output::JsonEnumsOutput:
|
219 - | raise NotImplementedError
|
220 - |
|
221 - | # This example serializes intEnums as top level properties, in lists, sets, and maps.
|
222 - | @app.json_int_enums
|
223 - | def json_int_enums(input: input::JsonIntEnumsInput, ctx: Context) -> output::JsonIntEnumsOutput:
|
224 - | raise NotImplementedError
|
225 - |
|
226 - | # This test case serializes JSON lists for the following cases for both
|
227 - | # input and output:
|
228 - | #
|
229 - | # 1. Normal JSON lists.
|
230 - | # 2. Normal JSON sets.
|
231 - | # 3. JSON lists of lists.
|
232 - | # 4. Lists of structures.
|
233 - | @app.json_lists
|
234 - | def json_lists(input: input::JsonListsInput, ctx: Context) -> output::JsonListsOutput:
|
235 - | raise NotImplementedError
|
236 - |
|
237 - | # The example tests basic map serialization.
|
238 - | @app.json_maps
|
239 - | def json_maps(input: input::JsonMapsInput, ctx: Context) -> output::JsonMapsOutput:
|
240 - | raise NotImplementedError
|
241 - |
|
242 - | # This tests how timestamps are serialized, including using the
|
243 - | # default format of date-time and various @timestampFormat trait
|
244 - | # values.
|
245 - | @app.json_timestamps
|
246 - | def json_timestamps(input: input::JsonTimestampsInput, ctx: Context) -> output::JsonTimestampsOutput:
|
247 - | raise NotImplementedError
|
248 - |
|
249 - | # This operation uses unions for inputs and outputs.
|
250 - | @app.json_unions
|
251 - | def json_unions(input: input::JsonUnionsInput, ctx: Context) -> output::JsonUnionsOutput:
|
252 - | raise NotImplementedError
|
253 - |
|
254 - | @app.malformed_accept_with_body
|
255 - | def malformed_accept_with_body(input: input::MalformedAcceptWithBodyInput, ctx: Context) -> output::MalformedAcceptWithBodyOutput:
|
256 - | raise NotImplementedError
|
257 - |
|
258 - | @app.malformed_accept_with_generic_string
|
259 - | def malformed_accept_with_generic_string(input: input::MalformedAcceptWithGenericStringInput, ctx: Context) -> output::MalformedAcceptWithGenericStringOutput:
|
260 - | raise NotImplementedError
|
261 - |
|
262 - | @app.malformed_accept_with_payload
|
263 - | def malformed_accept_with_payload(input: input::MalformedAcceptWithPayloadInput, ctx: Context) -> output::MalformedAcceptWithPayloadOutput:
|
264 - | raise NotImplementedError
|
265 - |
|
266 - | @app.malformed_blob
|
267 - | def malformed_blob(input: input::MalformedBlobInput, ctx: Context) -> output::MalformedBlobOutput:
|
268 - | raise NotImplementedError
|
269 - |
|
270 - | @app.malformed_boolean
|
271 - | def malformed_boolean(input: input::MalformedBooleanInput, ctx: Context) -> output::MalformedBooleanOutput:
|
272 - | raise NotImplementedError
|
273 - |
|
274 - | @app.malformed_byte
|
275 - | def malformed_byte(input: input::MalformedByteInput, ctx: Context) -> output::MalformedByteOutput:
|
276 - | raise NotImplementedError
|
277 - |
|
278 - | @app.malformed_content_type_with_body
|
279 - | def malformed_content_type_with_body(input: input::MalformedContentTypeWithBodyInput, ctx: Context) -> output::MalformedContentTypeWithBodyOutput:
|
280 - | raise NotImplementedError
|
281 - |
|
282 - | @app.malformed_content_type_with_generic_string
|
283 - | def malformed_content_type_with_generic_string(input: input::MalformedContentTypeWithGenericStringInput, ctx: Context) -> output::MalformedContentTypeWithGenericStringOutput:
|
284 - | raise NotImplementedError
|
285 - |
|
286 - | @app.malformed_content_type_without_body
|
287 - | def malformed_content_type_without_body(input: input::MalformedContentTypeWithoutBodyInput, ctx: Context) -> output::MalformedContentTypeWithoutBodyOutput:
|
288 - | raise NotImplementedError
|
289 - |
|
290 - | @app.malformed_content_type_with_payload
|
291 - | def malformed_content_type_with_payload(input: input::MalformedContentTypeWithPayloadInput, ctx: Context) -> output::MalformedContentTypeWithPayloadOutput:
|
292 - | raise NotImplementedError
|
293 - |
|
294 - | @app.malformed_double
|
295 - | def malformed_double(input: input::MalformedDoubleInput, ctx: Context) -> output::MalformedDoubleOutput:
|
296 - | raise NotImplementedError
|
297 - |
|
298 - | @app.malformed_float
|
299 - | def malformed_float(input: input::MalformedFloatInput, ctx: Context) -> output::MalformedFloatOutput:
|
300 - | raise NotImplementedError
|
301 - |
|
302 - | @app.malformed_integer
|
303 - | def malformed_integer(input: input::MalformedIntegerInput, ctx: Context) -> output::MalformedIntegerOutput:
|
304 - | raise NotImplementedError
|
305 - |
|
306 - | @app.malformed_list
|
307 - | def malformed_list(input: input::MalformedListInput, ctx: Context) -> output::MalformedListOutput:
|
308 - | raise NotImplementedError
|
309 - |
|
310 - | @app.malformed_long
|
311 - | def malformed_long(input: input::MalformedLongInput, ctx: Context) -> output::MalformedLongOutput:
|
312 - | raise NotImplementedError
|
313 - |
|
314 - | @app.malformed_map
|
315 - | def malformed_map(input: input::MalformedMapInput, ctx: Context) -> output::MalformedMapOutput:
|
316 - | raise NotImplementedError
|
317 - |
|
318 - | @app.malformed_request_body
|
319 - | def malformed_request_body(input: input::MalformedRequestBodyInput, ctx: Context) -> output::MalformedRequestBodyOutput:
|
320 - | raise NotImplementedError
|
321 - |
|
322 - | @app.malformed_short
|
323 - | def malformed_short(input: input::MalformedShortInput, ctx: Context) -> output::MalformedShortOutput:
|
324 - | raise NotImplementedError
|
325 - |
|
326 - | @app.malformed_string
|
327 - | def malformed_string(input: input::MalformedStringInput, ctx: Context) -> output::MalformedStringOutput:
|
328 - | raise NotImplementedError
|
329 - |
|
330 - | @app.malformed_timestamp_body_date_time
|
331 - | def malformed_timestamp_body_date_time(input: input::MalformedTimestampBodyDateTimeInput, ctx: Context) -> output::MalformedTimestampBodyDateTimeOutput:
|
332 - | raise NotImplementedError
|
333 - |
|
334 - | @app.malformed_timestamp_body_default
|
335 - | def malformed_timestamp_body_default(input: input::MalformedTimestampBodyDefaultInput, ctx: Context) -> output::MalformedTimestampBodyDefaultOutput:
|
336 - | raise NotImplementedError
|
337 - |
|
338 - | @app.malformed_timestamp_body_http_date
|
339 - | def malformed_timestamp_body_http_date(input: input::MalformedTimestampBodyHttpDateInput, ctx: Context) -> output::MalformedTimestampBodyHttpDateOutput:
|
340 - | raise NotImplementedError
|
341 - |
|
342 - | @app.malformed_timestamp_header_date_time
|
343 - | def malformed_timestamp_header_date_time(input: input::MalformedTimestampHeaderDateTimeInput, ctx: Context) -> output::MalformedTimestampHeaderDateTimeOutput:
|
344 - | raise NotImplementedError
|
345 - |
|
346 - | @app.malformed_timestamp_header_default
|
347 - | def malformed_timestamp_header_default(input: input::MalformedTimestampHeaderDefaultInput, ctx: Context) -> output::MalformedTimestampHeaderDefaultOutput:
|
348 - | raise NotImplementedError
|
349 - |
|
350 - | @app.malformed_timestamp_header_epoch
|
351 - | def malformed_timestamp_header_epoch(input: input::MalformedTimestampHeaderEpochInput, ctx: Context) -> output::MalformedTimestampHeaderEpochOutput:
|
352 - | raise NotImplementedError
|
353 - |
|
354 - | @app.malformed_timestamp_path_default
|
355 - | def malformed_timestamp_path_default(input: input::MalformedTimestampPathDefaultInput, ctx: Context) -> output::MalformedTimestampPathDefaultOutput:
|
356 - | raise NotImplementedError
|
357 - |
|
358 - | @app.malformed_timestamp_path_epoch
|
359 - | def malformed_timestamp_path_epoch(input: input::MalformedTimestampPathEpochInput, ctx: Context) -> output::MalformedTimestampPathEpochOutput:
|
360 - | raise NotImplementedError
|
361 - |
|
362 - | @app.malformed_timestamp_path_http_date
|
363 - | def malformed_timestamp_path_http_date(input: input::MalformedTimestampPathHttpDateInput, ctx: Context) -> output::MalformedTimestampPathHttpDateOutput:
|
364 - | raise NotImplementedError
|
365 - |
|
366 - | @app.malformed_timestamp_query_default
|
367 - | def malformed_timestamp_query_default(input: input::MalformedTimestampQueryDefaultInput, ctx: Context) -> output::MalformedTimestampQueryDefaultOutput:
|
368 - | raise NotImplementedError
|
369 - |
|
370 - | @app.malformed_timestamp_query_epoch
|
371 - | def malformed_timestamp_query_epoch(input: input::MalformedTimestampQueryEpochInput, ctx: Context) -> output::MalformedTimestampQueryEpochOutput:
|
372 - | raise NotImplementedError
|
373 - |
|
374 - | @app.malformed_timestamp_query_http_date
|
375 - | def malformed_timestamp_query_http_date(input: input::MalformedTimestampQueryHttpDateInput, ctx: Context) -> output::MalformedTimestampQueryHttpDateOutput:
|
376 - | raise NotImplementedError
|
377 - |
|
378 - | @app.malformed_union
|
379 - | def malformed_union(input: input::MalformedUnionInput, ctx: Context) -> output::MalformedUnionOutput:
|
380 - | raise NotImplementedError
|
381 - |
|
382 - | # This example ensures that mediaType strings are base64 encoded in headers.
|
383 - | @app.media_type_header
|
384 - | def media_type_header(input: input::MediaTypeHeaderInput, ctx: Context) -> output::MediaTypeHeaderOutput:
|
385 - | raise NotImplementedError
|
386 - |
|
387 - | # The example tests how requests and responses are serialized when there's
|
388 - | # no request or response payload because the operation has no input or output.
|
389 - | # While this should be rare, code generators must support this.
|
390 - | @app.no_input_and_no_output
|
391 - | def no_input_and_no_output(input: input::NoInputAndNoOutputInput, ctx: Context) -> output::NoInputAndNoOutputOutput:
|
392 - | raise NotImplementedError
|
393 - |
|
394 - | # The example tests how requests and responses are serialized when there's
|
395 - | # no request or response payload because the operation has no input and the
|
396 - | # output is empty. While this should be rare, code generators must support
|
397 - | # this.
|
398 - | @app.no_input_and_output
|
399 - | def no_input_and_output(input: input::NoInputAndOutputInput, ctx: Context) -> output::NoInputAndOutputOutput:
|
400 - | raise NotImplementedError
|
401 - |
|
402 - | # Null and empty headers are not sent over the wire.
|
403 - | @app.null_and_empty_headers_client
|
404 - | def null_and_empty_headers_client(input: input::NullAndEmptyHeadersClientInput, ctx: Context) -> output::NullAndEmptyHeadersClientOutput:
|
405 - | raise NotImplementedError
|
406 - |
|
407 - | # Null and empty headers are not sent over the wire.
|
408 - | @app.null_and_empty_headers_server
|
409 - | def null_and_empty_headers_server(input: input::NullAndEmptyHeadersServerInput, ctx: Context) -> output::NullAndEmptyHeadersServerOutput:
|
410 - | raise NotImplementedError
|
411 - |
|
412 - | # Omits null, but serializes empty string value.
|
413 - | @app.omits_null_serializes_empty_string
|
414 - | def omits_null_serializes_empty_string(input: input::OmitsNullSerializesEmptyStringInput, ctx: Context) -> output::OmitsNullSerializesEmptyStringOutput:
|
415 - | raise NotImplementedError
|
416 - |
|
417 - | # Omits serializing empty lists. Because empty strings are serilized as
|
418 - | # `Foo=`, empty lists cannot also be serialized as `Foo=` and instead
|
419 - | # must be omitted.
|
420 - | @app.omits_serializing_empty_lists
|
421 - | def omits_serializing_empty_lists(input: input::OmitsSerializingEmptyListsInput, ctx: Context) -> output::OmitsSerializingEmptyListsOutput:
|
422 - | raise NotImplementedError
|
423 - |
|
424 - | @app.operation_with_defaults
|
425 - | def operation_with_defaults(input: input::OperationWithDefaultsInput, ctx: Context) -> output::OperationWithDefaultsOutput:
|
426 - | raise NotImplementedError
|
427 - |
|
428 - | @app.operation_with_nested_structure
|
429 - | def operation_with_nested_structure(input: input::OperationWithNestedStructureInput, ctx: Context) -> output::OperationWithNestedStructureOutput:
|
430 - | raise NotImplementedError
|
431 - |
|
432 - | # This operation defines a union with a Unit member.
|
433 - | @app.post_player_action
|
434 - | def post_player_action(input: input::PostPlayerActionInput, ctx: Context) -> output::PostPlayerActionOutput:
|
435 - | raise NotImplementedError
|
436 - |
|
437 - | # This operation defines a union that uses jsonName on some members.
|
438 - | @app.post_union_with_json_name
|
439 - | def post_union_with_json_name(input: input::PostUnionWithJsonNameInput, ctx: Context) -> output::PostUnionWithJsonNameOutput:
|
440 - | raise NotImplementedError
|
441 - |
|
442 - | @app.put_with_content_encoding
|
443 - | def put_with_content_encoding(input: input::PutWithContentEncodingInput, ctx: Context) -> output::PutWithContentEncodingOutput:
|
444 - | raise NotImplementedError
|
445 - |
|
446 - | # Automatically adds idempotency tokens.
|
447 - | @app.query_idempotency_token_auto_fill
|
448 - | def query_idempotency_token_auto_fill(input: input::QueryIdempotencyTokenAutoFillInput, ctx: Context) -> output::QueryIdempotencyTokenAutoFillOutput:
|
449 - | raise NotImplementedError
|
450 - |
|
451 - | @app.query_params_as_string_list_map
|
452 - | def query_params_as_string_list_map(input: input::QueryParamsAsStringListMapInput, ctx: Context) -> output::QueryParamsAsStringListMapOutput:
|
453 - | raise NotImplementedError
|
454 - |
|
455 - | @app.query_precedence
|
456 - | def query_precedence(input: input::QueryPrecedenceInput, ctx: Context) -> output::QueryPrecedenceOutput:
|
457 - | raise NotImplementedError
|
458 - |
|
459 - | # Recursive shapes
|
460 - | @app.recursive_shapes
|
461 - | def recursive_shapes(input: input::RecursiveShapesInput, ctx: Context) -> output::RecursiveShapesOutput:
|
462 - | raise NotImplementedError
|
463 - |
|
464 - | @app.simple_scalar_properties
|
465 - | def simple_scalar_properties(input: input::SimpleScalarPropertiesInput, ctx: Context) -> output::SimpleScalarPropertiesOutput:
|
466 - | raise NotImplementedError
|
467 - |
|
468 - | @app.sparse_json_lists
|
469 - | def sparse_json_lists(input: input::SparseJsonListsInput, ctx: Context) -> output::SparseJsonListsOutput:
|
470 - | raise NotImplementedError
|
471 - |
|
472 - | # This example tests sparse map serialization.
|
473 - | @app.sparse_json_maps
|
474 - | def sparse_json_maps(input: input::SparseJsonMapsInput, ctx: Context) -> output::SparseJsonMapsOutput:
|
475 - | raise NotImplementedError
|
476 - |
|
477 - | # This examples serializes a streaming blob shape in the request body.
|
478 - | #
|
479 - | # In this example, no JSON document is synthesized because the payload is
|
480 - | # not a structure or a union type.
|
481 - | @app.streaming_traits
|
482 - | def streaming_traits(input: input::StreamingTraitsInput, ctx: Context) -> output::StreamingTraitsOutput:
|
483 - | raise NotImplementedError
|
484 - |
|
485 - | # This examples serializes a streaming blob shape with a required content
|
486 - | # length in the request body.
|
487 - | #
|
488 - | # In this example, no JSON document is synthesized because the payload is
|
489 - | # not a structure or a union type.
|
490 - | @app.streaming_traits_require_length
|
491 - | def streaming_traits_require_length(input: input::StreamingTraitsRequireLengthInput, ctx: Context) -> output::StreamingTraitsRequireLengthOutput:
|
492 - | raise NotImplementedError
|
493 - |
|
494 - | # This examples serializes a streaming media-typed blob shape in the request body.
|
495 - | #
|
496 - | # This examples uses a `@mediaType` trait on the payload to force a custom
|
497 - | # content-type to be serialized.
|
498 - | @app.streaming_traits_with_media_type
|
499 - | def streaming_traits_with_media_type(input: input::StreamingTraitsWithMediaTypeInput, ctx: Context) -> output::StreamingTraitsWithMediaTypeOutput:
|
500 - | raise NotImplementedError
|
501 - |
|
502 - | # This example operation serializes a structure in the HTTP body.
|
503 - | #
|
504 - | # It should ensure Content-Type: application/json is
|
505 - | # used in all requests and that an "empty" body is
|
506 - | # an empty JSON document ({}).
|
507 - | #
|
508 - | @app.test_body_structure
|
509 - | def test_body_structure(input: input::TestBodyStructureInput, ctx: Context) -> output::TestBodyStructureOutput:
|
510 - | raise NotImplementedError
|
511 - |
|
512 - | # This example GET operation has no input and serializes a request without a HTTP body.
|
513 - | #
|
514 - | # These tests are to ensure we do not attach a body or related headers
|
515 - | # (Content-Length, Content-Type) to operations that semantically
|
516 - | # cannot produce an HTTP body.
|
517 - | #
|
518 - | @app.test_get_no_input_no_payload
|
519 - | def test_get_no_input_no_payload(input: input::TestGetNoInputNoPayloadInput, ctx: Context) -> output::TestGetNoInputNoPayloadOutput:
|
520 - | raise NotImplementedError
|
521 - |
|
522 - | # This example GET operation serializes a request without a modeled HTTP body.
|
523 - | #
|
524 - | # These tests are to ensure we do not attach a body or related headers
|
525 - | # (Content-Length, Content-Type) to operations that semantically
|
526 - | # cannot produce an HTTP body.
|
527 - | #
|
528 - | @app.test_get_no_payload
|
529 - | def test_get_no_payload(input: input::TestGetNoPayloadInput, ctx: Context) -> output::TestGetNoPayloadOutput:
|
530 - | raise NotImplementedError
|
531 - |
|
532 - | # This example operation serializes a payload targeting a blob.
|
533 - | #
|
534 - | # The Blob shape is not structured content and we cannot
|
535 - | # make assumptions about what data will be sent. This test ensures
|
536 - | # only a generic "Content-Type: application/octet-stream" header
|
537 - | # is used, and that we are not treating an empty body as an
|
538 - | # empty JSON document.
|
539 - | #
|
540 - | @app.test_payload_blob
|
541 - | def test_payload_blob(input: input::TestPayloadBlobInput, ctx: Context) -> output::TestPayloadBlobOutput:
|
542 - | raise NotImplementedError
|
543 - |
|
544 - | # This example operation serializes a payload targeting a structure.
|
545 - | #
|
546 - | # This enforces the same requirements as TestBodyStructure
|
547 - | # but with the body specified by the @httpPayload trait.
|
548 - | #
|
549 - | @app.test_payload_structure
|
550 - | def test_payload_structure(input: input::TestPayloadStructureInput, ctx: Context) -> output::TestPayloadStructureOutput:
|
551 - | raise NotImplementedError
|
552 - |
|
553 - | # This example POST operation has no input and serializes a request without a HTTP body.
|
554 - | #
|
555 - | # These tests are to ensure we do not attach a body or related headers
|
556 - | # (Content-Type) to a POST operation with no modeled input.
|
557 - | #
|
558 - | @app.test_post_no_input_no_payload
|
559 - | def test_post_no_input_no_payload(input: input::TestPostNoInputNoPayloadInput, ctx: Context) -> output::TestPostNoInputNoPayloadOutput:
|
560 - | raise NotImplementedError
|
561 - |
|
562 - | # This example POST operation serializes a request without a modeled HTTP body.
|
563 - | #
|
564 - | # These tests are to ensure we do not attach a body or related headers
|
565 - | # (Content-Type) to a POST operation with no modeled payload.
|
566 - | #
|
567 - | @app.test_post_no_payload
|
568 - | def test_post_no_payload(input: input::TestPostNoPayloadInput, ctx: Context) -> output::TestPostNoPayloadOutput:
|
569 - | raise NotImplementedError
|
570 - |
|
571 - | # This example tests how timestamp request and response headers are serialized.
|
572 - | @app.timestamp_format_headers
|
573 - | def timestamp_format_headers(input: input::TimestampFormatHeadersInput, ctx: Context) -> output::TimestampFormatHeadersOutput:
|
574 - | raise NotImplementedError
|
575 - |
|
576 - | # This test is similar to NoInputAndNoOutput, but uses explicit Unit types.
|
577 - | @app.unit_input_and_output
|
578 - | def unit_input_and_output(input: input::UnitInputAndOutputInput, ctx: Context) -> output::UnitInputAndOutputOutput:
|
579 - | raise NotImplementedError
|
580 - |
|
581 - | app.run()
|
582 - | ```
|
583 - |
|
584 - | Any of operations above can be written as well prepending the `async` keyword and
|
585 - | the Python application will automatically handle it and schedule it on the event loop for you.
|
586 - | """
|
587 - |
|
588 - | def all_query_string_types(self, func: typing.Union[typing.Callable[[rest_json.input.AllQueryStringTypesInput, Ctx], typing.Union[rest_json.output.AllQueryStringTypesOutput, typing.Awaitable[rest_json.output.AllQueryStringTypesOutput]]], typing.Callable[[rest_json.input.AllQueryStringTypesInput], typing.Union[rest_json.output.AllQueryStringTypesOutput, typing.Awaitable[rest_json.output.AllQueryStringTypesOutput]]]]) -> None:
|
589 - | """
|
590 - | Method to register `all_query_string_types` Python implementation inside the handlers map.
|
591 - | It can be used as a function decorator in Python.
|
592 - | """
|
593 - | ...
|
594 - |
|
595 - |
|
596 - | def constant_and_variable_query_string(self, func: typing.Union[typing.Callable[[rest_json.input.ConstantAndVariableQueryStringInput, Ctx], typing.Union[rest_json.output.ConstantAndVariableQueryStringOutput, typing.Awaitable[rest_json.output.ConstantAndVariableQueryStringOutput]]], typing.Callable[[rest_json.input.ConstantAndVariableQueryStringInput], typing.Union[rest_json.output.ConstantAndVariableQueryStringOutput, typing.Awaitable[rest_json.output.ConstantAndVariableQueryStringOutput]]]]) -> None:
|
597 - | """
|
598 - | Method to register `constant_and_variable_query_string` Python implementation inside the handlers map.
|
599 - | It can be used as a function decorator in Python.
|
600 - | """
|
601 - | ...
|
602 - |
|
603 - |
|
604 - | def constant_query_string(self, func: typing.Union[typing.Callable[[rest_json.input.ConstantQueryStringInput, Ctx], typing.Union[rest_json.output.ConstantQueryStringOutput, typing.Awaitable[rest_json.output.ConstantQueryStringOutput]]], typing.Callable[[rest_json.input.ConstantQueryStringInput], typing.Union[rest_json.output.ConstantQueryStringOutput, typing.Awaitable[rest_json.output.ConstantQueryStringOutput]]]]) -> None:
|
605 - | """
|
606 - | Method to register `constant_query_string` Python implementation inside the handlers map.
|
607 - | It can be used as a function decorator in Python.
|
608 - | """
|
609 - | ...
|
610 - |
|
611 - |
|
612 - | def content_type_parameters(self, func: typing.Union[typing.Callable[[rest_json.input.ContentTypeParametersInput, Ctx], typing.Union[rest_json.output.ContentTypeParametersOutput, typing.Awaitable[rest_json.output.ContentTypeParametersOutput]]], typing.Callable[[rest_json.input.ContentTypeParametersInput], typing.Union[rest_json.output.ContentTypeParametersOutput, typing.Awaitable[rest_json.output.ContentTypeParametersOutput]]]]) -> None:
|
613 - | """
|
614 - | Method to register `content_type_parameters` Python implementation inside the handlers map.
|
615 - | It can be used as a function decorator in Python.
|
616 - | """
|
617 - | ...
|
618 - |
|
619 - |
|
620 - | def context(self, context: Ctx) -> None:
|
621 - | """
|
622 - | Register a context object that will be shared between handlers.
|
623 - | """
|
624 - | ...
|
625 - |
|
626 - |
|
627 - | def datetime_offsets(self, func: typing.Union[typing.Callable[[rest_json.input.DatetimeOffsetsInput, Ctx], typing.Union[rest_json.output.DatetimeOffsetsOutput, typing.Awaitable[rest_json.output.DatetimeOffsetsOutput]]], typing.Callable[[rest_json.input.DatetimeOffsetsInput], typing.Union[rest_json.output.DatetimeOffsetsOutput, typing.Awaitable[rest_json.output.DatetimeOffsetsOutput]]]]) -> None:
|
628 - | """
|
629 - | Method to register `datetime_offsets` Python implementation inside the handlers map.
|
630 - | It can be used as a function decorator in Python.
|
631 - | """
|
632 - | ...
|
633 - |
|
634 - |
|
635 - | def document_type(self, func: typing.Union[typing.Callable[[rest_json.input.DocumentTypeInput, Ctx], typing.Union[rest_json.output.DocumentTypeOutput, typing.Awaitable[rest_json.output.DocumentTypeOutput]]], typing.Callable[[rest_json.input.DocumentTypeInput], typing.Union[rest_json.output.DocumentTypeOutput, typing.Awaitable[rest_json.output.DocumentTypeOutput]]]]) -> None:
|
636 - | """
|
637 - | Method to register `document_type` Python implementation inside the handlers map.
|
638 - | It can be used as a function decorator in Python.
|
639 - | """
|
640 - | ...
|
641 - |
|
642 - |
|
643 - | def document_type_as_map_value(self, func: typing.Union[typing.Callable[[rest_json.input.DocumentTypeAsMapValueInput, Ctx], typing.Union[rest_json.output.DocumentTypeAsMapValueOutput, typing.Awaitable[rest_json.output.DocumentTypeAsMapValueOutput]]], typing.Callable[[rest_json.input.DocumentTypeAsMapValueInput], typing.Union[rest_json.output.DocumentTypeAsMapValueOutput, typing.Awaitable[rest_json.output.DocumentTypeAsMapValueOutput]]]]) -> None:
|
644 - | """
|
645 - | Method to register `document_type_as_map_value` Python implementation inside the handlers map.
|
646 - | It can be used as a function decorator in Python.
|
647 - | """
|
648 - | ...
|
649 - |
|
650 - |
|
651 - | def document_type_as_payload(self, func: typing.Union[typing.Callable[[rest_json.input.DocumentTypeAsPayloadInput, Ctx], typing.Union[rest_json.output.DocumentTypeAsPayloadOutput, typing.Awaitable[rest_json.output.DocumentTypeAsPayloadOutput]]], typing.Callable[[rest_json.input.DocumentTypeAsPayloadInput], typing.Union[rest_json.output.DocumentTypeAsPayloadOutput, typing.Awaitable[rest_json.output.DocumentTypeAsPayloadOutput]]]]) -> None:
|
652 - | """
|
653 - | Method to register `document_type_as_payload` Python implementation inside the handlers map.
|
654 - | It can be used as a function decorator in Python.
|
655 - | """
|
656 - | ...
|
657 - |
|
658 - |
|
659 - | def empty_input_and_empty_output(self, func: typing.Union[typing.Callable[[rest_json.input.EmptyInputAndEmptyOutputInput, Ctx], typing.Union[rest_json.output.EmptyInputAndEmptyOutputOutput, typing.Awaitable[rest_json.output.EmptyInputAndEmptyOutputOutput]]], typing.Callable[[rest_json.input.EmptyInputAndEmptyOutputInput], typing.Union[rest_json.output.EmptyInputAndEmptyOutputOutput, typing.Awaitable[rest_json.output.EmptyInputAndEmptyOutputOutput]]]]) -> None:
|
660 - | """
|
661 - | Method to register `empty_input_and_empty_output` Python implementation inside the handlers map.
|
662 - | It can be used as a function decorator in Python.
|
663 - | """
|
664 - | ...
|
665 - |
|
666 - |
|
667 - | def endpoint_operation(self, func: typing.Union[typing.Callable[[rest_json.input.EndpointOperationInput, Ctx], typing.Union[rest_json.output.EndpointOperationOutput, typing.Awaitable[rest_json.output.EndpointOperationOutput]]], typing.Callable[[rest_json.input.EndpointOperationInput], typing.Union[rest_json.output.EndpointOperationOutput, typing.Awaitable[rest_json.output.EndpointOperationOutput]]]]) -> None:
|
668 - | """
|
669 - | Method to register `endpoint_operation` Python implementation inside the handlers map.
|
670 - | It can be used as a function decorator in Python.
|
671 - | """
|
672 - | ...
|
673 - |
|
674 - |
|
675 - | def endpoint_with_host_label_operation(self, func: typing.Union[typing.Callable[[rest_json.input.EndpointWithHostLabelOperationInput, Ctx], typing.Union[rest_json.output.EndpointWithHostLabelOperationOutput, typing.Awaitable[rest_json.output.EndpointWithHostLabelOperationOutput]]], typing.Callable[[rest_json.input.EndpointWithHostLabelOperationInput], typing.Union[rest_json.output.EndpointWithHostLabelOperationOutput, typing.Awaitable[rest_json.output.EndpointWithHostLabelOperationOutput]]]]) -> None:
|
676 - | """
|
677 - | Method to register `endpoint_with_host_label_operation` Python implementation inside the handlers map.
|
678 - | It can be used as a function decorator in Python.
|
679 - | """
|
680 - | ...
|
681 - |
|
682 - |
|
683 - | def fractional_seconds(self, func: typing.Union[typing.Callable[[rest_json.input.FractionalSecondsInput, Ctx], typing.Union[rest_json.output.FractionalSecondsOutput, typing.Awaitable[rest_json.output.FractionalSecondsOutput]]], typing.Callable[[rest_json.input.FractionalSecondsInput], typing.Union[rest_json.output.FractionalSecondsOutput, typing.Awaitable[rest_json.output.FractionalSecondsOutput]]]]) -> None:
|
684 - | """
|
685 - | Method to register `fractional_seconds` Python implementation inside the handlers map.
|
686 - | It can be used as a function decorator in Python.
|
687 - | """
|
688 - | ...
|
689 - |
|
690 - |
|
691 - | def greeting_with_errors(self, func: typing.Union[typing.Callable[[rest_json.input.GreetingWithErrorsInput, Ctx], typing.Union[rest_json.output.GreetingWithErrorsOutput, typing.Awaitable[rest_json.output.GreetingWithErrorsOutput]]], typing.Callable[[rest_json.input.GreetingWithErrorsInput], typing.Union[rest_json.output.GreetingWithErrorsOutput, typing.Awaitable[rest_json.output.GreetingWithErrorsOutput]]]]) -> None:
|
692 - | """
|
693 - | Method to register `greeting_with_errors` Python implementation inside the handlers map.
|
694 - | It can be used as a function decorator in Python.
|
695 - | """
|
696 - | ...
|
697 - |
|
698 - |
|
699 - | def host_with_path_operation(self, func: typing.Union[typing.Callable[[rest_json.input.HostWithPathOperationInput, Ctx], typing.Union[rest_json.output.HostWithPathOperationOutput, typing.Awaitable[rest_json.output.HostWithPathOperationOutput]]], typing.Callable[[rest_json.input.HostWithPathOperationInput], typing.Union[rest_json.output.HostWithPathOperationOutput, typing.Awaitable[rest_json.output.HostWithPathOperationOutput]]]]) -> None:
|
700 - | """
|
701 - | Method to register `host_with_path_operation` Python implementation inside the handlers map.
|
702 - | It can be used as a function decorator in Python.
|
703 - | """
|
704 - | ...
|
705 - |
|
706 - |
|
707 - | def http_checksum_required(self, func: typing.Union[typing.Callable[[rest_json.input.HttpChecksumRequiredInput, Ctx], typing.Union[rest_json.output.HttpChecksumRequiredOutput, typing.Awaitable[rest_json.output.HttpChecksumRequiredOutput]]], typing.Callable[[rest_json.input.HttpChecksumRequiredInput], typing.Union[rest_json.output.HttpChecksumRequiredOutput, typing.Awaitable[rest_json.output.HttpChecksumRequiredOutput]]]]) -> None:
|
708 - | """
|
709 - | Method to register `http_checksum_required` Python implementation inside the handlers map.
|
710 - | It can be used as a function decorator in Python.
|
711 - | """
|
712 - | ...
|
713 - |
|
714 - |
|
715 - | def http_enum_payload(self, func: typing.Union[typing.Callable[[rest_json.input.HttpEnumPayloadInput, Ctx], typing.Union[rest_json.output.HttpEnumPayloadOutput, typing.Awaitable[rest_json.output.HttpEnumPayloadOutput]]], typing.Callable[[rest_json.input.HttpEnumPayloadInput], typing.Union[rest_json.output.HttpEnumPayloadOutput, typing.Awaitable[rest_json.output.HttpEnumPayloadOutput]]]]) -> None:
|
716 - | """
|
717 - | Method to register `http_enum_payload` Python implementation inside the handlers map.
|
718 - | It can be used as a function decorator in Python.
|
719 - | """
|
720 - | ...
|
721 - |
|
722 - |
|
723 - | def http_payload_traits(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPayloadTraitsInput, Ctx], typing.Union[rest_json.output.HttpPayloadTraitsOutput, typing.Awaitable[rest_json.output.HttpPayloadTraitsOutput]]], typing.Callable[[rest_json.input.HttpPayloadTraitsInput], typing.Union[rest_json.output.HttpPayloadTraitsOutput, typing.Awaitable[rest_json.output.HttpPayloadTraitsOutput]]]]) -> None:
|
724 - | """
|
725 - | Method to register `http_payload_traits` Python implementation inside the handlers map.
|
726 - | It can be used as a function decorator in Python.
|
727 - | """
|
728 - | ...
|
729 - |
|
730 - |
|
731 - | def http_payload_traits_with_media_type(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPayloadTraitsWithMediaTypeInput, Ctx], typing.Union[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput, typing.Awaitable[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput]]], typing.Callable[[rest_json.input.HttpPayloadTraitsWithMediaTypeInput], typing.Union[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput, typing.Awaitable[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput]]]]) -> None:
|
732 - | """
|
733 - | Method to register `http_payload_traits_with_media_type` Python implementation inside the handlers map.
|
734 - | It can be used as a function decorator in Python.
|
735 - | """
|
736 - | ...
|
737 - |
|
738 - |
|
739 - | def http_payload_with_structure(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPayloadWithStructureInput, Ctx], typing.Union[rest_json.output.HttpPayloadWithStructureOutput, typing.Awaitable[rest_json.output.HttpPayloadWithStructureOutput]]], typing.Callable[[rest_json.input.HttpPayloadWithStructureInput], typing.Union[rest_json.output.HttpPayloadWithStructureOutput, typing.Awaitable[rest_json.output.HttpPayloadWithStructureOutput]]]]) -> None:
|
740 - | """
|
741 - | Method to register `http_payload_with_structure` Python implementation inside the handlers map.
|
742 - | It can be used as a function decorator in Python.
|
743 - | """
|
744 - | ...
|
745 - |
|
746 - |
|
747 - | def http_payload_with_union(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPayloadWithUnionInput, Ctx], typing.Union[rest_json.output.HttpPayloadWithUnionOutput, typing.Awaitable[rest_json.output.HttpPayloadWithUnionOutput]]], typing.Callable[[rest_json.input.HttpPayloadWithUnionInput], typing.Union[rest_json.output.HttpPayloadWithUnionOutput, typing.Awaitable[rest_json.output.HttpPayloadWithUnionOutput]]]]) -> None:
|
748 - | """
|
749 - | Method to register `http_payload_with_union` Python implementation inside the handlers map.
|
750 - | It can be used as a function decorator in Python.
|
751 - | """
|
752 - | ...
|
753 - |
|
754 - |
|
755 - | def http_prefix_headers(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPrefixHeadersInput, Ctx], typing.Union[rest_json.output.HttpPrefixHeadersOutput, typing.Awaitable[rest_json.output.HttpPrefixHeadersOutput]]], typing.Callable[[rest_json.input.HttpPrefixHeadersInput], typing.Union[rest_json.output.HttpPrefixHeadersOutput, typing.Awaitable[rest_json.output.HttpPrefixHeadersOutput]]]]) -> None:
|
756 - | """
|
757 - | Method to register `http_prefix_headers` Python implementation inside the handlers map.
|
758 - | It can be used as a function decorator in Python.
|
759 - | """
|
760 - | ...
|
761 - |
|
762 - |
|
763 - | def http_prefix_headers_in_response(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPrefixHeadersInResponseInput, Ctx], typing.Union[rest_json.output.HttpPrefixHeadersInResponseOutput, typing.Awaitable[rest_json.output.HttpPrefixHeadersInResponseOutput]]], typing.Callable[[rest_json.input.HttpPrefixHeadersInResponseInput], typing.Union[rest_json.output.HttpPrefixHeadersInResponseOutput, typing.Awaitable[rest_json.output.HttpPrefixHeadersInResponseOutput]]]]) -> None:
|
764 - | """
|
765 - | Method to register `http_prefix_headers_in_response` Python implementation inside the handlers map.
|
766 - | It can be used as a function decorator in Python.
|
767 - | """
|
768 - | ...
|
769 - |
|
770 - |
|
771 - | def http_request_with_float_labels(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithFloatLabelsInput, Ctx], typing.Union[rest_json.output.HttpRequestWithFloatLabelsOutput, typing.Awaitable[rest_json.output.HttpRequestWithFloatLabelsOutput]]], typing.Callable[[rest_json.input.HttpRequestWithFloatLabelsInput], typing.Union[rest_json.output.HttpRequestWithFloatLabelsOutput, typing.Awaitable[rest_json.output.HttpRequestWithFloatLabelsOutput]]]]) -> None:
|
772 - | """
|
773 - | Method to register `http_request_with_float_labels` Python implementation inside the handlers map.
|
774 - | It can be used as a function decorator in Python.
|
775 - | """
|
776 - | ...
|
777 - |
|
778 - |
|
779 - | def http_request_with_greedy_label_in_path(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithGreedyLabelInPathInput, Ctx], typing.Union[rest_json.output.HttpRequestWithGreedyLabelInPathOutput, typing.Awaitable[rest_json.output.HttpRequestWithGreedyLabelInPathOutput]]], typing.Callable[[rest_json.input.HttpRequestWithGreedyLabelInPathInput], typing.Union[rest_json.output.HttpRequestWithGreedyLabelInPathOutput, typing.Awaitable[rest_json.output.HttpRequestWithGreedyLabelInPathOutput]]]]) -> None:
|
780 - | """
|
781 - | Method to register `http_request_with_greedy_label_in_path` Python implementation inside the handlers map.
|
782 - | It can be used as a function decorator in Python.
|
783 - | """
|
784 - | ...
|
785 - |
|
786 - |
|
787 - | def http_request_with_labels(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithLabelsInput, Ctx], typing.Union[rest_json.output.HttpRequestWithLabelsOutput, typing.Awaitable[rest_json.output.HttpRequestWithLabelsOutput]]], typing.Callable[[rest_json.input.HttpRequestWithLabelsInput], typing.Union[rest_json.output.HttpRequestWithLabelsOutput, typing.Awaitable[rest_json.output.HttpRequestWithLabelsOutput]]]]) -> None:
|
788 - | """
|
789 - | Method to register `http_request_with_labels` Python implementation inside the handlers map.
|
790 - | It can be used as a function decorator in Python.
|
791 - | """
|
792 - | ...
|
793 - |
|
794 - |
|
795 - | def http_request_with_labels_and_timestamp_format(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithLabelsAndTimestampFormatInput, Ctx], typing.Union[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput, typing.Awaitable[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput]]], typing.Callable[[rest_json.input.HttpRequestWithLabelsAndTimestampFormatInput], typing.Union[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput, typing.Awaitable[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput]]]]) -> None:
|
796 - | """
|
797 - | Method to register `http_request_with_labels_and_timestamp_format` Python implementation inside the handlers map.
|
798 - | It can be used as a function decorator in Python.
|
799 - | """
|
800 - | ...
|
801 - |
|
802 - |
|
803 - | def http_request_with_regex_literal(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithRegexLiteralInput, Ctx], typing.Union[rest_json.output.HttpRequestWithRegexLiteralOutput, typing.Awaitable[rest_json.output.HttpRequestWithRegexLiteralOutput]]], typing.Callable[[rest_json.input.HttpRequestWithRegexLiteralInput], typing.Union[rest_json.output.HttpRequestWithRegexLiteralOutput, typing.Awaitable[rest_json.output.HttpRequestWithRegexLiteralOutput]]]]) -> None:
|
804 - | """
|
805 - | Method to register `http_request_with_regex_literal` Python implementation inside the handlers map.
|
806 - | It can be used as a function decorator in Python.
|
807 - | """
|
808 - | ...
|
809 - |
|
810 - |
|
811 - | def http_response_code(self, func: typing.Union[typing.Callable[[rest_json.input.HttpResponseCodeInput, Ctx], typing.Union[rest_json.output.HttpResponseCodeOutput, typing.Awaitable[rest_json.output.HttpResponseCodeOutput]]], typing.Callable[[rest_json.input.HttpResponseCodeInput], typing.Union[rest_json.output.HttpResponseCodeOutput, typing.Awaitable[rest_json.output.HttpResponseCodeOutput]]]]) -> None:
|
812 - | """
|
813 - | Method to register `http_response_code` Python implementation inside the handlers map.
|
814 - | It can be used as a function decorator in Python.
|
815 - | """
|
816 - | ...
|
817 - |
|
818 - |
|
819 - | def http_string_payload(self, func: typing.Union[typing.Callable[[rest_json.input.HttpStringPayloadInput, Ctx], typing.Union[rest_json.output.HttpStringPayloadOutput, typing.Awaitable[rest_json.output.HttpStringPayloadOutput]]], typing.Callable[[rest_json.input.HttpStringPayloadInput], typing.Union[rest_json.output.HttpStringPayloadOutput, typing.Awaitable[rest_json.output.HttpStringPayloadOutput]]]]) -> None:
|
820 - | """
|
821 - | Method to register `http_string_payload` Python implementation inside the handlers map.
|
822 - | It can be used as a function decorator in Python.
|
823 - | """
|
824 - | ...
|
825 - |
|
826 - |
|
827 - | def ignore_query_params_in_response(self, func: typing.Union[typing.Callable[[rest_json.input.IgnoreQueryParamsInResponseInput, Ctx], typing.Union[rest_json.output.IgnoreQueryParamsInResponseOutput, typing.Awaitable[rest_json.output.IgnoreQueryParamsInResponseOutput]]], typing.Callable[[rest_json.input.IgnoreQueryParamsInResponseInput], typing.Union[rest_json.output.IgnoreQueryParamsInResponseOutput, typing.Awaitable[rest_json.output.IgnoreQueryParamsInResponseOutput]]]]) -> None:
|
828 - | """
|
829 - | Method to register `ignore_query_params_in_response` Python implementation inside the handlers map.
|
830 - | It can be used as a function decorator in Python.
|
831 - | """
|
832 - | ...
|
833 - |
|
834 - |
|
835 - | def input_and_output_with_headers(self, func: typing.Union[typing.Callable[[rest_json.input.InputAndOutputWithHeadersInput, Ctx], typing.Union[rest_json.output.InputAndOutputWithHeadersOutput, typing.Awaitable[rest_json.output.InputAndOutputWithHeadersOutput]]], typing.Callable[[rest_json.input.InputAndOutputWithHeadersInput], typing.Union[rest_json.output.InputAndOutputWithHeadersOutput, typing.Awaitable[rest_json.output.InputAndOutputWithHeadersOutput]]]]) -> None:
|
836 - | """
|
837 - | Method to register `input_and_output_with_headers` Python implementation inside the handlers map.
|
838 - | It can be used as a function decorator in Python.
|
839 - | """
|
840 - | ...
|
841 - |
|
842 - |
|
843 - | def json_blobs(self, func: typing.Union[typing.Callable[[rest_json.input.JsonBlobsInput, Ctx], typing.Union[rest_json.output.JsonBlobsOutput, typing.Awaitable[rest_json.output.JsonBlobsOutput]]], typing.Callable[[rest_json.input.JsonBlobsInput], typing.Union[rest_json.output.JsonBlobsOutput, typing.Awaitable[rest_json.output.JsonBlobsOutput]]]]) -> None:
|
844 - | """
|
845 - | Method to register `json_blobs` Python implementation inside the handlers map.
|
846 - | It can be used as a function decorator in Python.
|
847 - | """
|
848 - | ...
|
849 - |
|
850 - |
|
851 - | def json_enums(self, func: typing.Union[typing.Callable[[rest_json.input.JsonEnumsInput, Ctx], typing.Union[rest_json.output.JsonEnumsOutput, typing.Awaitable[rest_json.output.JsonEnumsOutput]]], typing.Callable[[rest_json.input.JsonEnumsInput], typing.Union[rest_json.output.JsonEnumsOutput, typing.Awaitable[rest_json.output.JsonEnumsOutput]]]]) -> None:
|
852 - | """
|
853 - | Method to register `json_enums` Python implementation inside the handlers map.
|
854 - | It can be used as a function decorator in Python.
|
855 - | """
|
856 - | ...
|
857 - |
|
858 - |
|
859 - | def json_int_enums(self, func: typing.Union[typing.Callable[[rest_json.input.JsonIntEnumsInput, Ctx], typing.Union[rest_json.output.JsonIntEnumsOutput, typing.Awaitable[rest_json.output.JsonIntEnumsOutput]]], typing.Callable[[rest_json.input.JsonIntEnumsInput], typing.Union[rest_json.output.JsonIntEnumsOutput, typing.Awaitable[rest_json.output.JsonIntEnumsOutput]]]]) -> None:
|
860 - | """
|
861 - | Method to register `json_int_enums` Python implementation inside the handlers map.
|
862 - | It can be used as a function decorator in Python.
|
863 - | """
|
864 - | ...
|
865 - |
|
866 - |
|
867 - | def json_lists(self, func: typing.Union[typing.Callable[[rest_json.input.JsonListsInput, Ctx], typing.Union[rest_json.output.JsonListsOutput, typing.Awaitable[rest_json.output.JsonListsOutput]]], typing.Callable[[rest_json.input.JsonListsInput], typing.Union[rest_json.output.JsonListsOutput, typing.Awaitable[rest_json.output.JsonListsOutput]]]]) -> None:
|
868 - | """
|
869 - | Method to register `json_lists` Python implementation inside the handlers map.
|
870 - | It can be used as a function decorator in Python.
|
871 - | """
|
872 - | ...
|
873 - |
|
874 - |
|
875 - | def json_maps(self, func: typing.Union[typing.Callable[[rest_json.input.JsonMapsInput, Ctx], typing.Union[rest_json.output.JsonMapsOutput, typing.Awaitable[rest_json.output.JsonMapsOutput]]], typing.Callable[[rest_json.input.JsonMapsInput], typing.Union[rest_json.output.JsonMapsOutput, typing.Awaitable[rest_json.output.JsonMapsOutput]]]]) -> None:
|
876 - | """
|
877 - | Method to register `json_maps` Python implementation inside the handlers map.
|
878 - | It can be used as a function decorator in Python.
|
879 - | """
|
880 - | ...
|
881 - |
|
882 - |
|
883 - | def json_timestamps(self, func: typing.Union[typing.Callable[[rest_json.input.JsonTimestampsInput, Ctx], typing.Union[rest_json.output.JsonTimestampsOutput, typing.Awaitable[rest_json.output.JsonTimestampsOutput]]], typing.Callable[[rest_json.input.JsonTimestampsInput], typing.Union[rest_json.output.JsonTimestampsOutput, typing.Awaitable[rest_json.output.JsonTimestampsOutput]]]]) -> None:
|
884 - | """
|
885 - | Method to register `json_timestamps` Python implementation inside the handlers map.
|
886 - | It can be used as a function decorator in Python.
|
887 - | """
|
888 - | ...
|
889 - |
|
890 - |
|
891 - | def json_unions(self, func: typing.Union[typing.Callable[[rest_json.input.JsonUnionsInput, Ctx], typing.Union[rest_json.output.JsonUnionsOutput, typing.Awaitable[rest_json.output.JsonUnionsOutput]]], typing.Callable[[rest_json.input.JsonUnionsInput], typing.Union[rest_json.output.JsonUnionsOutput, typing.Awaitable[rest_json.output.JsonUnionsOutput]]]]) -> None:
|
892 - | """
|
893 - | Method to register `json_unions` Python implementation inside the handlers map.
|
894 - | It can be used as a function decorator in Python.
|
895 - | """
|
896 - | ...
|
897 - |
|
898 - |
|
899 - | def malformed_accept_with_body(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedAcceptWithBodyInput, Ctx], typing.Union[rest_json.output.MalformedAcceptWithBodyOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithBodyOutput]]], typing.Callable[[rest_json.input.MalformedAcceptWithBodyInput], typing.Union[rest_json.output.MalformedAcceptWithBodyOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithBodyOutput]]]]) -> None:
|
900 - | """
|
901 - | Method to register `malformed_accept_with_body` Python implementation inside the handlers map.
|
902 - | It can be used as a function decorator in Python.
|
903 - | """
|
904 - | ...
|
905 - |
|
906 - |
|
907 - | def malformed_accept_with_generic_string(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedAcceptWithGenericStringInput, Ctx], typing.Union[rest_json.output.MalformedAcceptWithGenericStringOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithGenericStringOutput]]], typing.Callable[[rest_json.input.MalformedAcceptWithGenericStringInput], typing.Union[rest_json.output.MalformedAcceptWithGenericStringOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithGenericStringOutput]]]]) -> None:
|
908 - | """
|
909 - | Method to register `malformed_accept_with_generic_string` Python implementation inside the handlers map.
|
910 - | It can be used as a function decorator in Python.
|
911 - | """
|
912 - | ...
|
913 - |
|
914 - |
|
915 - | def malformed_accept_with_payload(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedAcceptWithPayloadInput, Ctx], typing.Union[rest_json.output.MalformedAcceptWithPayloadOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithPayloadOutput]]], typing.Callable[[rest_json.input.MalformedAcceptWithPayloadInput], typing.Union[rest_json.output.MalformedAcceptWithPayloadOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithPayloadOutput]]]]) -> None:
|
916 - | """
|
917 - | Method to register `malformed_accept_with_payload` Python implementation inside the handlers map.
|
918 - | It can be used as a function decorator in Python.
|
919 - | """
|
920 - | ...
|
921 - |
|
922 - |
|
923 - | def malformed_blob(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedBlobInput, Ctx], typing.Union[rest_json.output.MalformedBlobOutput, typing.Awaitable[rest_json.output.MalformedBlobOutput]]], typing.Callable[[rest_json.input.MalformedBlobInput], typing.Union[rest_json.output.MalformedBlobOutput, typing.Awaitable[rest_json.output.MalformedBlobOutput]]]]) -> None:
|
924 - | """
|
925 - | Method to register `malformed_blob` Python implementation inside the handlers map.
|
926 - | It can be used as a function decorator in Python.
|
927 - | """
|
928 - | ...
|
929 - |
|
930 - |
|
931 - | def malformed_boolean(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedBooleanInput, Ctx], typing.Union[rest_json.output.MalformedBooleanOutput, typing.Awaitable[rest_json.output.MalformedBooleanOutput]]], typing.Callable[[rest_json.input.MalformedBooleanInput], typing.Union[rest_json.output.MalformedBooleanOutput, typing.Awaitable[rest_json.output.MalformedBooleanOutput]]]]) -> None:
|
932 - | """
|
933 - | Method to register `malformed_boolean` Python implementation inside the handlers map.
|
934 - | It can be used as a function decorator in Python.
|
935 - | """
|
936 - | ...
|
937 - |
|
938 - |
|
939 - | def malformed_byte(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedByteInput, Ctx], typing.Union[rest_json.output.MalformedByteOutput, typing.Awaitable[rest_json.output.MalformedByteOutput]]], typing.Callable[[rest_json.input.MalformedByteInput], typing.Union[rest_json.output.MalformedByteOutput, typing.Awaitable[rest_json.output.MalformedByteOutput]]]]) -> None:
|
940 - | """
|
941 - | Method to register `malformed_byte` Python implementation inside the handlers map.
|
942 - | It can be used as a function decorator in Python.
|
943 - | """
|
944 - | ...
|
945 - |
|
946 - |
|
947 - | def malformed_content_type_with_body(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedContentTypeWithBodyInput, Ctx], typing.Union[rest_json.output.MalformedContentTypeWithBodyOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithBodyOutput]]], typing.Callable[[rest_json.input.MalformedContentTypeWithBodyInput], typing.Union[rest_json.output.MalformedContentTypeWithBodyOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithBodyOutput]]]]) -> None:
|
948 - | """
|
949 - | Method to register `malformed_content_type_with_body` Python implementation inside the handlers map.
|
950 - | It can be used as a function decorator in Python.
|
951 - | """
|
952 - | ...
|
953 - |
|
954 - |
|
955 - | def malformed_content_type_with_generic_string(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedContentTypeWithGenericStringInput, Ctx], typing.Union[rest_json.output.MalformedContentTypeWithGenericStringOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithGenericStringOutput]]], typing.Callable[[rest_json.input.MalformedContentTypeWithGenericStringInput], typing.Union[rest_json.output.MalformedContentTypeWithGenericStringOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithGenericStringOutput]]]]) -> None:
|
956 - | """
|
957 - | Method to register `malformed_content_type_with_generic_string` Python implementation inside the handlers map.
|
958 - | It can be used as a function decorator in Python.
|
959 - | """
|
960 - | ...
|
961 - |
|
962 - |
|
963 - | def malformed_content_type_with_payload(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedContentTypeWithPayloadInput, Ctx], typing.Union[rest_json.output.MalformedContentTypeWithPayloadOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithPayloadOutput]]], typing.Callable[[rest_json.input.MalformedContentTypeWithPayloadInput], typing.Union[rest_json.output.MalformedContentTypeWithPayloadOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithPayloadOutput]]]]) -> None:
|
964 - | """
|
965 - | Method to register `malformed_content_type_with_payload` Python implementation inside the handlers map.
|
966 - | It can be used as a function decorator in Python.
|
967 - | """
|
968 - | ...
|
969 - |
|
970 - |
|
971 - | def malformed_content_type_without_body(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedContentTypeWithoutBodyInput, Ctx], typing.Union[rest_json.output.MalformedContentTypeWithoutBodyOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithoutBodyOutput]]], typing.Callable[[rest_json.input.MalformedContentTypeWithoutBodyInput], typing.Union[rest_json.output.MalformedContentTypeWithoutBodyOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithoutBodyOutput]]]]) -> None:
|
972 - | """
|
973 - | Method to register `malformed_content_type_without_body` Python implementation inside the handlers map.
|
974 - | It can be used as a function decorator in Python.
|
975 - | """
|
976 - | ...
|
977 - |
|
978 - |
|
979 - | def malformed_double(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedDoubleInput, Ctx], typing.Union[rest_json.output.MalformedDoubleOutput, typing.Awaitable[rest_json.output.MalformedDoubleOutput]]], typing.Callable[[rest_json.input.MalformedDoubleInput], typing.Union[rest_json.output.MalformedDoubleOutput, typing.Awaitable[rest_json.output.MalformedDoubleOutput]]]]) -> None:
|
980 - | """
|
981 - | Method to register `malformed_double` Python implementation inside the handlers map.
|
982 - | It can be used as a function decorator in Python.
|
983 - | """
|
984 - | ...
|
985 - |
|
986 - |
|
987 - | def malformed_float(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedFloatInput, Ctx], typing.Union[rest_json.output.MalformedFloatOutput, typing.Awaitable[rest_json.output.MalformedFloatOutput]]], typing.Callable[[rest_json.input.MalformedFloatInput], typing.Union[rest_json.output.MalformedFloatOutput, typing.Awaitable[rest_json.output.MalformedFloatOutput]]]]) -> None:
|
988 - | """
|
989 - | Method to register `malformed_float` Python implementation inside the handlers map.
|
990 - | It can be used as a function decorator in Python.
|
991 - | """
|
992 - | ...
|
993 - |
|
994 - |
|
995 - | def malformed_integer(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedIntegerInput, Ctx], typing.Union[rest_json.output.MalformedIntegerOutput, typing.Awaitable[rest_json.output.MalformedIntegerOutput]]], typing.Callable[[rest_json.input.MalformedIntegerInput], typing.Union[rest_json.output.MalformedIntegerOutput, typing.Awaitable[rest_json.output.MalformedIntegerOutput]]]]) -> None:
|
996 - | """
|
997 - | Method to register `malformed_integer` Python implementation inside the handlers map.
|
998 - | It can be used as a function decorator in Python.
|
999 - | """
|
1000 - | ...
|
1001 - |
|
1002 - |
|
1003 - | def malformed_list(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedListInput, Ctx], typing.Union[rest_json.output.MalformedListOutput, typing.Awaitable[rest_json.output.MalformedListOutput]]], typing.Callable[[rest_json.input.MalformedListInput], typing.Union[rest_json.output.MalformedListOutput, typing.Awaitable[rest_json.output.MalformedListOutput]]]]) -> None:
|
1004 - | """
|
1005 - | Method to register `malformed_list` Python implementation inside the handlers map.
|
1006 - | It can be used as a function decorator in Python.
|
1007 - | """
|
1008 - | ...
|
1009 - |
|
1010 - |
|
1011 - | def malformed_long(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedLongInput, Ctx], typing.Union[rest_json.output.MalformedLongOutput, typing.Awaitable[rest_json.output.MalformedLongOutput]]], typing.Callable[[rest_json.input.MalformedLongInput], typing.Union[rest_json.output.MalformedLongOutput, typing.Awaitable[rest_json.output.MalformedLongOutput]]]]) -> None:
|
1012 - | """
|
1013 - | Method to register `malformed_long` Python implementation inside the handlers map.
|
1014 - | It can be used as a function decorator in Python.
|
1015 - | """
|
1016 - | ...
|
1017 - |
|
1018 - |
|
1019 - | def malformed_map(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedMapInput, Ctx], typing.Union[rest_json.output.MalformedMapOutput, typing.Awaitable[rest_json.output.MalformedMapOutput]]], typing.Callable[[rest_json.input.MalformedMapInput], typing.Union[rest_json.output.MalformedMapOutput, typing.Awaitable[rest_json.output.MalformedMapOutput]]]]) -> None:
|
1020 - | """
|
1021 - | Method to register `malformed_map` Python implementation inside the handlers map.
|
1022 - | It can be used as a function decorator in Python.
|
1023 - | """
|
1024 - | ...
|
1025 - |
|
1026 - |
|
1027 - | def malformed_request_body(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedRequestBodyInput, Ctx], typing.Union[rest_json.output.MalformedRequestBodyOutput, typing.Awaitable[rest_json.output.MalformedRequestBodyOutput]]], typing.Callable[[rest_json.input.MalformedRequestBodyInput], typing.Union[rest_json.output.MalformedRequestBodyOutput, typing.Awaitable[rest_json.output.MalformedRequestBodyOutput]]]]) -> None:
|
1028 - | """
|
1029 - | Method to register `malformed_request_body` Python implementation inside the handlers map.
|
1030 - | It can be used as a function decorator in Python.
|
1031 - | """
|
1032 - | ...
|
1033 - |
|
1034 - |
|
1035 - | def malformed_short(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedShortInput, Ctx], typing.Union[rest_json.output.MalformedShortOutput, typing.Awaitable[rest_json.output.MalformedShortOutput]]], typing.Callable[[rest_json.input.MalformedShortInput], typing.Union[rest_json.output.MalformedShortOutput, typing.Awaitable[rest_json.output.MalformedShortOutput]]]]) -> None:
|
1036 - | """
|
1037 - | Method to register `malformed_short` Python implementation inside the handlers map.
|
1038 - | It can be used as a function decorator in Python.
|
1039 - | """
|
1040 - | ...
|
1041 - |
|
1042 - |
|
1043 - | def malformed_string(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedStringInput, Ctx], typing.Union[rest_json.output.MalformedStringOutput, typing.Awaitable[rest_json.output.MalformedStringOutput]]], typing.Callable[[rest_json.input.MalformedStringInput], typing.Union[rest_json.output.MalformedStringOutput, typing.Awaitable[rest_json.output.MalformedStringOutput]]]]) -> None:
|
1044 - | """
|
1045 - | Method to register `malformed_string` Python implementation inside the handlers map.
|
1046 - | It can be used as a function decorator in Python.
|
1047 - | """
|
1048 - | ...
|
1049 - |
|
1050 - |
|
1051 - | def malformed_timestamp_body_date_time(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampBodyDateTimeInput, Ctx], typing.Union[rest_json.output.MalformedTimestampBodyDateTimeOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyDateTimeOutput]]], typing.Callable[[rest_json.input.MalformedTimestampBodyDateTimeInput], typing.Union[rest_json.output.MalformedTimestampBodyDateTimeOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyDateTimeOutput]]]]) -> None:
|
1052 - | """
|
1053 - | Method to register `malformed_timestamp_body_date_time` Python implementation inside the handlers map.
|
1054 - | It can be used as a function decorator in Python.
|
1055 - | """
|
1056 - | ...
|
1057 - |
|
1058 - |
|
1059 - | def malformed_timestamp_body_default(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampBodyDefaultInput, Ctx], typing.Union[rest_json.output.MalformedTimestampBodyDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyDefaultOutput]]], typing.Callable[[rest_json.input.MalformedTimestampBodyDefaultInput], typing.Union[rest_json.output.MalformedTimestampBodyDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyDefaultOutput]]]]) -> None:
|
1060 - | """
|
1061 - | Method to register `malformed_timestamp_body_default` Python implementation inside the handlers map.
|
1062 - | It can be used as a function decorator in Python.
|
1063 - | """
|
1064 - | ...
|
1065 - |
|
1066 - |
|
1067 - | def malformed_timestamp_body_http_date(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampBodyHttpDateInput, Ctx], typing.Union[rest_json.output.MalformedTimestampBodyHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyHttpDateOutput]]], typing.Callable[[rest_json.input.MalformedTimestampBodyHttpDateInput], typing.Union[rest_json.output.MalformedTimestampBodyHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyHttpDateOutput]]]]) -> None:
|
1068 - | """
|
1069 - | Method to register `malformed_timestamp_body_http_date` Python implementation inside the handlers map.
|
1070 - | It can be used as a function decorator in Python.
|
1071 - | """
|
1072 - | ...
|
1073 - |
|
1074 - |
|
1075 - | def malformed_timestamp_header_date_time(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampHeaderDateTimeInput, Ctx], typing.Union[rest_json.output.MalformedTimestampHeaderDateTimeOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderDateTimeOutput]]], typing.Callable[[rest_json.input.MalformedTimestampHeaderDateTimeInput], typing.Union[rest_json.output.MalformedTimestampHeaderDateTimeOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderDateTimeOutput]]]]) -> None:
|
1076 - | """
|
1077 - | Method to register `malformed_timestamp_header_date_time` Python implementation inside the handlers map.
|
1078 - | It can be used as a function decorator in Python.
|
1079 - | """
|
1080 - | ...
|
1081 - |
|
1082 - |
|
1083 - | def malformed_timestamp_header_default(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampHeaderDefaultInput, Ctx], typing.Union[rest_json.output.MalformedTimestampHeaderDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderDefaultOutput]]], typing.Callable[[rest_json.input.MalformedTimestampHeaderDefaultInput], typing.Union[rest_json.output.MalformedTimestampHeaderDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderDefaultOutput]]]]) -> None:
|
1084 - | """
|
1085 - | Method to register `malformed_timestamp_header_default` Python implementation inside the handlers map.
|
1086 - | It can be used as a function decorator in Python.
|
1087 - | """
|
1088 - | ...
|
1089 - |
|
1090 - |
|
1091 - | def malformed_timestamp_header_epoch(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampHeaderEpochInput, Ctx], typing.Union[rest_json.output.MalformedTimestampHeaderEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderEpochOutput]]], typing.Callable[[rest_json.input.MalformedTimestampHeaderEpochInput], typing.Union[rest_json.output.MalformedTimestampHeaderEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderEpochOutput]]]]) -> None:
|
1092 - | """
|
1093 - | Method to register `malformed_timestamp_header_epoch` Python implementation inside the handlers map.
|
1094 - | It can be used as a function decorator in Python.
|
1095 - | """
|
1096 - | ...
|
1097 - |
|
1098 - |
|
1099 - | def malformed_timestamp_path_default(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampPathDefaultInput, Ctx], typing.Union[rest_json.output.MalformedTimestampPathDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathDefaultOutput]]], typing.Callable[[rest_json.input.MalformedTimestampPathDefaultInput], typing.Union[rest_json.output.MalformedTimestampPathDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathDefaultOutput]]]]) -> None:
|
1100 - | """
|
1101 - | Method to register `malformed_timestamp_path_default` Python implementation inside the handlers map.
|
1102 - | It can be used as a function decorator in Python.
|
1103 - | """
|
1104 - | ...
|
1105 - |
|
1106 - |
|
1107 - | def malformed_timestamp_path_epoch(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampPathEpochInput, Ctx], typing.Union[rest_json.output.MalformedTimestampPathEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathEpochOutput]]], typing.Callable[[rest_json.input.MalformedTimestampPathEpochInput], typing.Union[rest_json.output.MalformedTimestampPathEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathEpochOutput]]]]) -> None:
|
1108 - | """
|
1109 - | Method to register `malformed_timestamp_path_epoch` Python implementation inside the handlers map.
|
1110 - | It can be used as a function decorator in Python.
|
1111 - | """
|
1112 - | ...
|
1113 - |
|
1114 - |
|
1115 - | def malformed_timestamp_path_http_date(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampPathHttpDateInput, Ctx], typing.Union[rest_json.output.MalformedTimestampPathHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathHttpDateOutput]]], typing.Callable[[rest_json.input.MalformedTimestampPathHttpDateInput], typing.Union[rest_json.output.MalformedTimestampPathHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathHttpDateOutput]]]]) -> None:
|
1116 - | """
|
1117 - | Method to register `malformed_timestamp_path_http_date` Python implementation inside the handlers map.
|
1118 - | It can be used as a function decorator in Python.
|
1119 - | """
|
1120 - | ...
|
1121 - |
|
1122 - |
|
1123 - | def malformed_timestamp_query_default(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampQueryDefaultInput, Ctx], typing.Union[rest_json.output.MalformedTimestampQueryDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryDefaultOutput]]], typing.Callable[[rest_json.input.MalformedTimestampQueryDefaultInput], typing.Union[rest_json.output.MalformedTimestampQueryDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryDefaultOutput]]]]) -> None:
|
1124 - | """
|
1125 - | Method to register `malformed_timestamp_query_default` Python implementation inside the handlers map.
|
1126 - | It can be used as a function decorator in Python.
|
1127 - | """
|
1128 - | ...
|
1129 - |
|
1130 - |
|
1131 - | def malformed_timestamp_query_epoch(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampQueryEpochInput, Ctx], typing.Union[rest_json.output.MalformedTimestampQueryEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryEpochOutput]]], typing.Callable[[rest_json.input.MalformedTimestampQueryEpochInput], typing.Union[rest_json.output.MalformedTimestampQueryEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryEpochOutput]]]]) -> None:
|
1132 - | """
|
1133 - | Method to register `malformed_timestamp_query_epoch` Python implementation inside the handlers map.
|
1134 - | It can be used as a function decorator in Python.
|
1135 - | """
|
1136 - | ...
|
1137 - |
|
1138 - |
|
1139 - | def malformed_timestamp_query_http_date(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampQueryHttpDateInput, Ctx], typing.Union[rest_json.output.MalformedTimestampQueryHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryHttpDateOutput]]], typing.Callable[[rest_json.input.MalformedTimestampQueryHttpDateInput], typing.Union[rest_json.output.MalformedTimestampQueryHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryHttpDateOutput]]]]) -> None:
|
1140 - | """
|
1141 - | Method to register `malformed_timestamp_query_http_date` Python implementation inside the handlers map.
|
1142 - | It can be used as a function decorator in Python.
|
1143 - | """
|
1144 - | ...
|
1145 - |
|
1146 - |
|
1147 - | def malformed_union(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedUnionInput, Ctx], typing.Union[rest_json.output.MalformedUnionOutput, typing.Awaitable[rest_json.output.MalformedUnionOutput]]], typing.Callable[[rest_json.input.MalformedUnionInput], typing.Union[rest_json.output.MalformedUnionOutput, typing.Awaitable[rest_json.output.MalformedUnionOutput]]]]) -> None:
|
1148 - | """
|
1149 - | Method to register `malformed_union` Python implementation inside the handlers map.
|
1150 - | It can be used as a function decorator in Python.
|
1151 - | """
|
1152 - | ...
|
1153 - |
|
1154 - |
|
1155 - | def media_type_header(self, func: typing.Union[typing.Callable[[rest_json.input.MediaTypeHeaderInput, Ctx], typing.Union[rest_json.output.MediaTypeHeaderOutput, typing.Awaitable[rest_json.output.MediaTypeHeaderOutput]]], typing.Callable[[rest_json.input.MediaTypeHeaderInput], typing.Union[rest_json.output.MediaTypeHeaderOutput, typing.Awaitable[rest_json.output.MediaTypeHeaderOutput]]]]) -> None:
|
1156 - | """
|
1157 - | Method to register `media_type_header` Python implementation inside the handlers map.
|
1158 - | It can be used as a function decorator in Python.
|
1159 - | """
|
1160 - | ...
|
1161 - |
|
1162 - |
|
1163 - | def middleware(self, func: typing.Callable[[rest_json.middleware.Request, typing.Callable[[rest_json.middleware.Request], typing.Awaitable[rest_json.middleware.Response]]], typing.Awaitable[rest_json.middleware.Response]]) -> None:
|
1164 - | """
|
1165 - | Register a Python function to be executed inside a Tower middleware layer.
|
1166 - | """
|
1167 - | ...
|
1168 - |
|
1169 - |
|
1170 - | def no_input_and_no_output(self, func: typing.Union[typing.Callable[[rest_json.input.NoInputAndNoOutputInput, Ctx], typing.Union[rest_json.output.NoInputAndNoOutputOutput, typing.Awaitable[rest_json.output.NoInputAndNoOutputOutput]]], typing.Callable[[rest_json.input.NoInputAndNoOutputInput], typing.Union[rest_json.output.NoInputAndNoOutputOutput, typing.Awaitable[rest_json.output.NoInputAndNoOutputOutput]]]]) -> None:
|
1171 - | """
|
1172 - | Method to register `no_input_and_no_output` Python implementation inside the handlers map.
|
1173 - | It can be used as a function decorator in Python.
|
1174 - | """
|
1175 - | ...
|
1176 - |
|
1177 - |
|
1178 - | def no_input_and_output(self, func: typing.Union[typing.Callable[[rest_json.input.NoInputAndOutputInput, Ctx], typing.Union[rest_json.output.NoInputAndOutputOutput, typing.Awaitable[rest_json.output.NoInputAndOutputOutput]]], typing.Callable[[rest_json.input.NoInputAndOutputInput], typing.Union[rest_json.output.NoInputAndOutputOutput, typing.Awaitable[rest_json.output.NoInputAndOutputOutput]]]]) -> None:
|
1179 - | """
|
1180 - | Method to register `no_input_and_output` Python implementation inside the handlers map.
|
1181 - | It can be used as a function decorator in Python.
|
1182 - | """
|
1183 - | ...
|
1184 - |
|
1185 - |
|
1186 - | def null_and_empty_headers_client(self, func: typing.Union[typing.Callable[[rest_json.input.NullAndEmptyHeadersClientInput, Ctx], typing.Union[rest_json.output.NullAndEmptyHeadersClientOutput, typing.Awaitable[rest_json.output.NullAndEmptyHeadersClientOutput]]], typing.Callable[[rest_json.input.NullAndEmptyHeadersClientInput], typing.Union[rest_json.output.NullAndEmptyHeadersClientOutput, typing.Awaitable[rest_json.output.NullAndEmptyHeadersClientOutput]]]]) -> None:
|
1187 - | """
|
1188 - | Method to register `null_and_empty_headers_client` Python implementation inside the handlers map.
|
1189 - | It can be used as a function decorator in Python.
|
1190 - | """
|
1191 - | ...
|
1192 - |
|
1193 - |
|
1194 - | def null_and_empty_headers_server(self, func: typing.Union[typing.Callable[[rest_json.input.NullAndEmptyHeadersServerInput, Ctx], typing.Union[rest_json.output.NullAndEmptyHeadersServerOutput, typing.Awaitable[rest_json.output.NullAndEmptyHeadersServerOutput]]], typing.Callable[[rest_json.input.NullAndEmptyHeadersServerInput], typing.Union[rest_json.output.NullAndEmptyHeadersServerOutput, typing.Awaitable[rest_json.output.NullAndEmptyHeadersServerOutput]]]]) -> None:
|
1195 - | """
|
1196 - | Method to register `null_and_empty_headers_server` Python implementation inside the handlers map.
|
1197 - | It can be used as a function decorator in Python.
|
1198 - | """
|
1199 - | ...
|
1200 - |
|
1201 - |
|
1202 - | def omits_null_serializes_empty_string(self, func: typing.Union[typing.Callable[[rest_json.input.OmitsNullSerializesEmptyStringInput, Ctx], typing.Union[rest_json.output.OmitsNullSerializesEmptyStringOutput, typing.Awaitable[rest_json.output.OmitsNullSerializesEmptyStringOutput]]], typing.Callable[[rest_json.input.OmitsNullSerializesEmptyStringInput], typing.Union[rest_json.output.OmitsNullSerializesEmptyStringOutput, typing.Awaitable[rest_json.output.OmitsNullSerializesEmptyStringOutput]]]]) -> None:
|
1203 - | """
|
1204 - | Method to register `omits_null_serializes_empty_string` Python implementation inside the handlers map.
|
1205 - | It can be used as a function decorator in Python.
|
1206 - | """
|
1207 - | ...
|
1208 - |
|
1209 - |
|
1210 - | def omits_serializing_empty_lists(self, func: typing.Union[typing.Callable[[rest_json.input.OmitsSerializingEmptyListsInput, Ctx], typing.Union[rest_json.output.OmitsSerializingEmptyListsOutput, typing.Awaitable[rest_json.output.OmitsSerializingEmptyListsOutput]]], typing.Callable[[rest_json.input.OmitsSerializingEmptyListsInput], typing.Union[rest_json.output.OmitsSerializingEmptyListsOutput, typing.Awaitable[rest_json.output.OmitsSerializingEmptyListsOutput]]]]) -> None:
|
1211 - | """
|
1212 - | Method to register `omits_serializing_empty_lists` Python implementation inside the handlers map.
|
1213 - | It can be used as a function decorator in Python.
|
1214 - | """
|
1215 - | ...
|
1216 - |
|
1217 - |
|
1218 - | def operation_with_defaults(self, func: typing.Union[typing.Callable[[rest_json.input.OperationWithDefaultsInput, Ctx], typing.Union[rest_json.output.OperationWithDefaultsOutput, typing.Awaitable[rest_json.output.OperationWithDefaultsOutput]]], typing.Callable[[rest_json.input.OperationWithDefaultsInput], typing.Union[rest_json.output.OperationWithDefaultsOutput, typing.Awaitable[rest_json.output.OperationWithDefaultsOutput]]]]) -> None:
|
1219 - | """
|
1220 - | Method to register `operation_with_defaults` Python implementation inside the handlers map.
|
1221 - | It can be used as a function decorator in Python.
|
1222 - | """
|
1223 - | ...
|
1224 - |
|
1225 - |
|
1226 - | def operation_with_nested_structure(self, func: typing.Union[typing.Callable[[rest_json.input.OperationWithNestedStructureInput, Ctx], typing.Union[rest_json.output.OperationWithNestedStructureOutput, typing.Awaitable[rest_json.output.OperationWithNestedStructureOutput]]], typing.Callable[[rest_json.input.OperationWithNestedStructureInput], typing.Union[rest_json.output.OperationWithNestedStructureOutput, typing.Awaitable[rest_json.output.OperationWithNestedStructureOutput]]]]) -> None:
|
1227 - | """
|
1228 - | Method to register `operation_with_nested_structure` Python implementation inside the handlers map.
|
1229 - | It can be used as a function decorator in Python.
|
1230 - | """
|
1231 - | ...
|
1232 - |
|
1233 - |
|
1234 - | def post_player_action(self, func: typing.Union[typing.Callable[[rest_json.input.PostPlayerActionInput, Ctx], typing.Union[rest_json.output.PostPlayerActionOutput, typing.Awaitable[rest_json.output.PostPlayerActionOutput]]], typing.Callable[[rest_json.input.PostPlayerActionInput], typing.Union[rest_json.output.PostPlayerActionOutput, typing.Awaitable[rest_json.output.PostPlayerActionOutput]]]]) -> None:
|
1235 - | """
|
1236 - | Method to register `post_player_action` Python implementation inside the handlers map.
|
1237 - | It can be used as a function decorator in Python.
|
1238 - | """
|
1239 - | ...
|
1240 - |
|
1241 - |
|
1242 - | def post_union_with_json_name(self, func: typing.Union[typing.Callable[[rest_json.input.PostUnionWithJsonNameInput, Ctx], typing.Union[rest_json.output.PostUnionWithJsonNameOutput, typing.Awaitable[rest_json.output.PostUnionWithJsonNameOutput]]], typing.Callable[[rest_json.input.PostUnionWithJsonNameInput], typing.Union[rest_json.output.PostUnionWithJsonNameOutput, typing.Awaitable[rest_json.output.PostUnionWithJsonNameOutput]]]]) -> None:
|
1243 - | """
|
1244 - | Method to register `post_union_with_json_name` Python implementation inside the handlers map.
|
1245 - | It can be used as a function decorator in Python.
|
1246 - | """
|
1247 - | ...
|
1248 - |
|
1249 - |
|
1250 - | def put_with_content_encoding(self, func: typing.Union[typing.Callable[[rest_json.input.PutWithContentEncodingInput, Ctx], typing.Union[rest_json.output.PutWithContentEncodingOutput, typing.Awaitable[rest_json.output.PutWithContentEncodingOutput]]], typing.Callable[[rest_json.input.PutWithContentEncodingInput], typing.Union[rest_json.output.PutWithContentEncodingOutput, typing.Awaitable[rest_json.output.PutWithContentEncodingOutput]]]]) -> None:
|
1251 - | """
|
1252 - | Method to register `put_with_content_encoding` Python implementation inside the handlers map.
|
1253 - | It can be used as a function decorator in Python.
|
1254 - | """
|
1255 - | ...
|
1256 - |
|
1257 - |
|
1258 - | def query_idempotency_token_auto_fill(self, func: typing.Union[typing.Callable[[rest_json.input.QueryIdempotencyTokenAutoFillInput, Ctx], typing.Union[rest_json.output.QueryIdempotencyTokenAutoFillOutput, typing.Awaitable[rest_json.output.QueryIdempotencyTokenAutoFillOutput]]], typing.Callable[[rest_json.input.QueryIdempotencyTokenAutoFillInput], typing.Union[rest_json.output.QueryIdempotencyTokenAutoFillOutput, typing.Awaitable[rest_json.output.QueryIdempotencyTokenAutoFillOutput]]]]) -> None:
|
1259 - | """
|
1260 - | Method to register `query_idempotency_token_auto_fill` Python implementation inside the handlers map.
|
1261 - | It can be used as a function decorator in Python.
|
1262 - | """
|
1263 - | ...
|
1264 - |
|
1265 - |
|
1266 - | def query_params_as_string_list_map(self, func: typing.Union[typing.Callable[[rest_json.input.QueryParamsAsStringListMapInput, Ctx], typing.Union[rest_json.output.QueryParamsAsStringListMapOutput, typing.Awaitable[rest_json.output.QueryParamsAsStringListMapOutput]]], typing.Callable[[rest_json.input.QueryParamsAsStringListMapInput], typing.Union[rest_json.output.QueryParamsAsStringListMapOutput, typing.Awaitable[rest_json.output.QueryParamsAsStringListMapOutput]]]]) -> None:
|
1267 - | """
|
1268 - | Method to register `query_params_as_string_list_map` Python implementation inside the handlers map.
|
1269 - | It can be used as a function decorator in Python.
|
1270 - | """
|
1271 - | ...
|
1272 - |
|
1273 - |
|
1274 - | def query_precedence(self, func: typing.Union[typing.Callable[[rest_json.input.QueryPrecedenceInput, Ctx], typing.Union[rest_json.output.QueryPrecedenceOutput, typing.Awaitable[rest_json.output.QueryPrecedenceOutput]]], typing.Callable[[rest_json.input.QueryPrecedenceInput], typing.Union[rest_json.output.QueryPrecedenceOutput, typing.Awaitable[rest_json.output.QueryPrecedenceOutput]]]]) -> None:
|
1275 - | """
|
1276 - | Method to register `query_precedence` Python implementation inside the handlers map.
|
1277 - | It can be used as a function decorator in Python.
|
1278 - | """
|
1279 - | ...
|
1280 - |
|
1281 - |
|
1282 - | def recursive_shapes(self, func: typing.Union[typing.Callable[[rest_json.input.RecursiveShapesInput, Ctx], typing.Union[rest_json.output.RecursiveShapesOutput, typing.Awaitable[rest_json.output.RecursiveShapesOutput]]], typing.Callable[[rest_json.input.RecursiveShapesInput], typing.Union[rest_json.output.RecursiveShapesOutput, typing.Awaitable[rest_json.output.RecursiveShapesOutput]]]]) -> None:
|
1283 - | """
|
1284 - | Method to register `recursive_shapes` Python implementation inside the handlers map.
|
1285 - | It can be used as a function decorator in Python.
|
1286 - | """
|
1287 - | ...
|
1288 - |
|
1289 - |
|
1290 - | def run(self, address: typing.Optional[str] = ..., port: typing.Optional[int] = ..., backlog: typing.Optional[int] = ..., workers: typing.Optional[int] = ..., tls: typing.Optional[rest_json.tls.TlsConfig] = ...) -> None:
|
1291 - | """
|
1292 - | Main entrypoint: start the server on multiple workers.
|
1293 - | """
|
1294 - | ...
|
1295 - |
|
1296 - |
|
1297 - | def run_lambda(self) -> None:
|
1298 - | """
|
1299 - | Lambda entrypoint: start the server on Lambda.
|
1300 - | """
|
1301 - | ...
|
1302 - |
|
1303 - |
|
1304 - | def simple_scalar_properties(self, func: typing.Union[typing.Callable[[rest_json.input.SimpleScalarPropertiesInput, Ctx], typing.Union[rest_json.output.SimpleScalarPropertiesOutput, typing.Awaitable[rest_json.output.SimpleScalarPropertiesOutput]]], typing.Callable[[rest_json.input.SimpleScalarPropertiesInput], typing.Union[rest_json.output.SimpleScalarPropertiesOutput, typing.Awaitable[rest_json.output.SimpleScalarPropertiesOutput]]]]) -> None:
|
1305 - | """
|
1306 - | Method to register `simple_scalar_properties` Python implementation inside the handlers map.
|
1307 - | It can be used as a function decorator in Python.
|
1308 - | """
|
1309 - | ...
|
1310 - |
|
1311 - |
|
1312 - | def sparse_json_lists(self, func: typing.Union[typing.Callable[[rest_json.input.SparseJsonListsInput, Ctx], typing.Union[rest_json.output.SparseJsonListsOutput, typing.Awaitable[rest_json.output.SparseJsonListsOutput]]], typing.Callable[[rest_json.input.SparseJsonListsInput], typing.Union[rest_json.output.SparseJsonListsOutput, typing.Awaitable[rest_json.output.SparseJsonListsOutput]]]]) -> None:
|
1313 - | """
|
1314 - | Method to register `sparse_json_lists` Python implementation inside the handlers map.
|
1315 - | It can be used as a function decorator in Python.
|
1316 - | """
|
1317 - | ...
|
1318 - |
|
1319 - |
|
1320 - | def sparse_json_maps(self, func: typing.Union[typing.Callable[[rest_json.input.SparseJsonMapsInput, Ctx], typing.Union[rest_json.output.SparseJsonMapsOutput, typing.Awaitable[rest_json.output.SparseJsonMapsOutput]]], typing.Callable[[rest_json.input.SparseJsonMapsInput], typing.Union[rest_json.output.SparseJsonMapsOutput, typing.Awaitable[rest_json.output.SparseJsonMapsOutput]]]]) -> None:
|
1321 - | """
|
1322 - | Method to register `sparse_json_maps` Python implementation inside the handlers map.
|
1323 - | It can be used as a function decorator in Python.
|
1324 - | """
|
1325 - | ...
|
1326 - |
|
1327 - |
|
1328 - | def start_worker(self) -> None:
|
1329 - | """
|
1330 - | Build the service and start a single worker.
|
1331 - | """
|
1332 - | ...
|
1333 - |
|
1334 - |
|
1335 - | def streaming_traits(self, func: typing.Union[typing.Callable[[rest_json.input.StreamingTraitsInput, Ctx], typing.Union[rest_json.output.StreamingTraitsOutput, typing.Awaitable[rest_json.output.StreamingTraitsOutput]]], typing.Callable[[rest_json.input.StreamingTraitsInput], typing.Union[rest_json.output.StreamingTraitsOutput, typing.Awaitable[rest_json.output.StreamingTraitsOutput]]]]) -> None:
|
1336 - | """
|
1337 - | Method to register `streaming_traits` Python implementation inside the handlers map.
|
1338 - | It can be used as a function decorator in Python.
|
1339 - | """
|
1340 - | ...
|
1341 - |
|
1342 - |
|
1343 - | def streaming_traits_require_length(self, func: typing.Union[typing.Callable[[rest_json.input.StreamingTraitsRequireLengthInput, Ctx], typing.Union[rest_json.output.StreamingTraitsRequireLengthOutput, typing.Awaitable[rest_json.output.StreamingTraitsRequireLengthOutput]]], typing.Callable[[rest_json.input.StreamingTraitsRequireLengthInput], typing.Union[rest_json.output.StreamingTraitsRequireLengthOutput, typing.Awaitable[rest_json.output.StreamingTraitsRequireLengthOutput]]]]) -> None:
|
1344 - | """
|
1345 - | Method to register `streaming_traits_require_length` Python implementation inside the handlers map.
|
1346 - | It can be used as a function decorator in Python.
|
1347 - | """
|
1348 - | ...
|
1349 - |
|
1350 - |
|
1351 - | def streaming_traits_with_media_type(self, func: typing.Union[typing.Callable[[rest_json.input.StreamingTraitsWithMediaTypeInput, Ctx], typing.Union[rest_json.output.StreamingTraitsWithMediaTypeOutput, typing.Awaitable[rest_json.output.StreamingTraitsWithMediaTypeOutput]]], typing.Callable[[rest_json.input.StreamingTraitsWithMediaTypeInput], typing.Union[rest_json.output.StreamingTraitsWithMediaTypeOutput, typing.Awaitable[rest_json.output.StreamingTraitsWithMediaTypeOutput]]]]) -> None:
|
1352 - | """
|
1353 - | Method to register `streaming_traits_with_media_type` Python implementation inside the handlers map.
|
1354 - | It can be used as a function decorator in Python.
|
1355 - | """
|
1356 - | ...
|
1357 - |
|
1358 - |
|
1359 - | def test_body_structure(self, func: typing.Union[typing.Callable[[rest_json.input.TestBodyStructureInput, Ctx], typing.Union[rest_json.output.TestBodyStructureOutput, typing.Awaitable[rest_json.output.TestBodyStructureOutput]]], typing.Callable[[rest_json.input.TestBodyStructureInput], typing.Union[rest_json.output.TestBodyStructureOutput, typing.Awaitable[rest_json.output.TestBodyStructureOutput]]]]) -> None:
|
1360 - | """
|
1361 - | Method to register `test_body_structure` Python implementation inside the handlers map.
|
1362 - | It can be used as a function decorator in Python.
|
1363 - | """
|
1364 - | ...
|
1365 - |
|
1366 - |
|
1367 - | def test_get_no_input_no_payload(self, func: typing.Union[typing.Callable[[rest_json.input.TestGetNoInputNoPayloadInput, Ctx], typing.Union[rest_json.output.TestGetNoInputNoPayloadOutput, typing.Awaitable[rest_json.output.TestGetNoInputNoPayloadOutput]]], typing.Callable[[rest_json.input.TestGetNoInputNoPayloadInput], typing.Union[rest_json.output.TestGetNoInputNoPayloadOutput, typing.Awaitable[rest_json.output.TestGetNoInputNoPayloadOutput]]]]) -> None:
|
1368 - | """
|
1369 - | Method to register `test_get_no_input_no_payload` Python implementation inside the handlers map.
|
1370 - | It can be used as a function decorator in Python.
|
1371 - | """
|
1372 - | ...
|
1373 - |
|
1374 - |
|
1375 - | def test_get_no_payload(self, func: typing.Union[typing.Callable[[rest_json.input.TestGetNoPayloadInput, Ctx], typing.Union[rest_json.output.TestGetNoPayloadOutput, typing.Awaitable[rest_json.output.TestGetNoPayloadOutput]]], typing.Callable[[rest_json.input.TestGetNoPayloadInput], typing.Union[rest_json.output.TestGetNoPayloadOutput, typing.Awaitable[rest_json.output.TestGetNoPayloadOutput]]]]) -> None:
|
1376 - | """
|
1377 - | Method to register `test_get_no_payload` Python implementation inside the handlers map.
|
1378 - | It can be used as a function decorator in Python.
|
1379 - | """
|
1380 - | ...
|
1381 - |
|
1382 - |
|
1383 - | def test_payload_blob(self, func: typing.Union[typing.Callable[[rest_json.input.TestPayloadBlobInput, Ctx], typing.Union[rest_json.output.TestPayloadBlobOutput, typing.Awaitable[rest_json.output.TestPayloadBlobOutput]]], typing.Callable[[rest_json.input.TestPayloadBlobInput], typing.Union[rest_json.output.TestPayloadBlobOutput, typing.Awaitable[rest_json.output.TestPayloadBlobOutput]]]]) -> None:
|
1384 - | """
|
1385 - | Method to register `test_payload_blob` Python implementation inside the handlers map.
|
1386 - | It can be used as a function decorator in Python.
|
1387 - | """
|
1388 - | ...
|
1389 - |
|
1390 - |
|
1391 - | def test_payload_structure(self, func: typing.Union[typing.Callable[[rest_json.input.TestPayloadStructureInput, Ctx], typing.Union[rest_json.output.TestPayloadStructureOutput, typing.Awaitable[rest_json.output.TestPayloadStructureOutput]]], typing.Callable[[rest_json.input.TestPayloadStructureInput], typing.Union[rest_json.output.TestPayloadStructureOutput, typing.Awaitable[rest_json.output.TestPayloadStructureOutput]]]]) -> None:
|
1392 - | """
|
1393 - | Method to register `test_payload_structure` Python implementation inside the handlers map.
|
1394 - | It can be used as a function decorator in Python.
|
1395 - | """
|
1396 - | ...
|
1397 - |
|
1398 - |
|
1399 - | def test_post_no_input_no_payload(self, func: typing.Union[typing.Callable[[rest_json.input.TestPostNoInputNoPayloadInput, Ctx], typing.Union[rest_json.output.TestPostNoInputNoPayloadOutput, typing.Awaitable[rest_json.output.TestPostNoInputNoPayloadOutput]]], typing.Callable[[rest_json.input.TestPostNoInputNoPayloadInput], typing.Union[rest_json.output.TestPostNoInputNoPayloadOutput, typing.Awaitable[rest_json.output.TestPostNoInputNoPayloadOutput]]]]) -> None:
|
1400 - | """
|
1401 - | Method to register `test_post_no_input_no_payload` Python implementation inside the handlers map.
|
1402 - | It can be used as a function decorator in Python.
|
1403 - | """
|
1404 - | ...
|
1405 - |
|
1406 - |
|
1407 - | def test_post_no_payload(self, func: typing.Union[typing.Callable[[rest_json.input.TestPostNoPayloadInput, Ctx], typing.Union[rest_json.output.TestPostNoPayloadOutput, typing.Awaitable[rest_json.output.TestPostNoPayloadOutput]]], typing.Callable[[rest_json.input.TestPostNoPayloadInput], typing.Union[rest_json.output.TestPostNoPayloadOutput, typing.Awaitable[rest_json.output.TestPostNoPayloadOutput]]]]) -> None:
|
1408 - | """
|
1409 - | Method to register `test_post_no_payload` Python implementation inside the handlers map.
|
1410 - | It can be used as a function decorator in Python.
|
1411 - | """
|
1412 - | ...
|
1413 - |
|
1414 - |
|
1415 - | def timestamp_format_headers(self, func: typing.Union[typing.Callable[[rest_json.input.TimestampFormatHeadersInput, Ctx], typing.Union[rest_json.output.TimestampFormatHeadersOutput, typing.Awaitable[rest_json.output.TimestampFormatHeadersOutput]]], typing.Callable[[rest_json.input.TimestampFormatHeadersInput], typing.Union[rest_json.output.TimestampFormatHeadersOutput, typing.Awaitable[rest_json.output.TimestampFormatHeadersOutput]]]]) -> None:
|
1416 - | """
|
1417 - | Method to register `timestamp_format_headers` Python implementation inside the handlers map.
|
1418 - | It can be used as a function decorator in Python.
|
1419 - | """
|
1420 - | ...
|
1421 - |
|
1422 - |
|
1423 - | def unit_input_and_output(self, func: typing.Union[typing.Callable[[rest_json.input.UnitInputAndOutputInput, Ctx], typing.Union[rest_json.output.UnitInputAndOutputOutput, typing.Awaitable[rest_json.output.UnitInputAndOutputOutput]]], typing.Callable[[rest_json.input.UnitInputAndOutputInput], typing.Union[rest_json.output.UnitInputAndOutputOutput, typing.Awaitable[rest_json.output.UnitInputAndOutputOutput]]]]) -> None:
|
1424 - | """
|
1425 - | Method to register `unit_input_and_output` Python implementation inside the handlers map.
|
1426 - | It can be used as a function decorator in Python.
|
1427 - | """
|
1428 - | ...
|
1429 - |
|
1430 - |
|
1431 - | def __init__(self) -> None:
|
1432 - | ...
|
1433 - |
|
1434 - |
|
1435 - | CODEGEN_VERSION: str = ...
|