Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 95 additions & 24 deletions codegen-output/aws-json-1-0/src/awsjson10/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from __future__ import annotations

from ._private import schemas as _schemas
from smithy_core._dynamic_models import ModelRegistry
from smithy_core.exceptions import ModeledError
Expand All @@ -25,6 +27,44 @@
SIMPLE_SCALAR_PROPERTIES as _SCHEMA_SIMPLE_SCALAR_PROPERTIES,
)

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from .models import (
ContentTypeParametersInput,
ContentTypeParametersOutput,
EmptyInputAndEmptyOutputInput,
EmptyInputAndEmptyOutputOutput,
EndpointOperationInput,
EndpointOperationOutput,
EndpointWithHostLabelOperationInput,
EndpointWithHostLabelOperationOutput,
GreetingWithErrorsInput,
GreetingWithErrorsOutput,
HostWithPathOperationInput,
HostWithPathOperationOutput,
JsonUnionsInput,
JsonUnionsOutput,
NoInputAndNoOutputInput,
NoInputAndNoOutputOutput,
NoInputAndOutputInput,
NoInputAndOutputOutput,
OperationWithDefaultsInput,
OperationWithDefaultsOutput,
OperationWithNestedStructureInput,
OperationWithNestedStructureOutput,
OperationWithRequiredMembersInput,
OperationWithRequiredMembersOutput,
OperationWithRequiredMembersWithDefaultsInput,
OperationWithRequiredMembersWithDefaultsOutput,
PutWithContentEncodingInput,
PutWithContentEncodingOutput,
QueryIncompatibleOperationInput,
QueryIncompatibleOperationOutput,
SimpleScalarPropertiesInput,
SimpleScalarPropertiesOutput,
)


class ServiceError(ModeledError):
"""
Expand Down Expand Up @@ -161,35 +201,45 @@ def __getattr__(name: str):
return _registry.build(name)


CONTENT_TYPE_PARAMETERS = APIOperation(
CONTENT_TYPE_PARAMETERS: APIOperation[
ContentTypeParametersInput, ContentTypeParametersOutput
] = APIOperation(
static_schema=_SCHEMA_CONTENT_TYPE_PARAMETERS,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

EMPTY_INPUT_AND_EMPTY_OUTPUT = APIOperation(
EMPTY_INPUT_AND_EMPTY_OUTPUT: APIOperation[
EmptyInputAndEmptyOutputInput, EmptyInputAndEmptyOutputOutput
] = APIOperation(
static_schema=_SCHEMA_EMPTY_INPUT_AND_EMPTY_OUTPUT,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

ENDPOINT_OPERATION = APIOperation(
static_schema=_SCHEMA_ENDPOINT_OPERATION,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
ENDPOINT_OPERATION: APIOperation[EndpointOperationInput, EndpointOperationOutput] = (
APIOperation(
static_schema=_SCHEMA_ENDPOINT_OPERATION,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)
)

ENDPOINT_WITH_HOST_LABEL_OPERATION = APIOperation(
ENDPOINT_WITH_HOST_LABEL_OPERATION: APIOperation[
EndpointWithHostLabelOperationInput, EndpointWithHostLabelOperationOutput
] = APIOperation(
static_schema=_SCHEMA_ENDPOINT_WITH_HOST_LABEL_OPERATION,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

GREETING_WITH_ERRORS = APIOperation(
GREETING_WITH_ERRORS: APIOperation[
GreetingWithErrorsInput, GreetingWithErrorsOutput
] = APIOperation(
static_schema=_SCHEMA_GREETING_WITH_ERRORS,
model_registry=_registry,
error_ids=[
Expand All @@ -200,77 +250,98 @@ def __getattr__(name: str):
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

HOST_WITH_PATH_OPERATION = APIOperation(
HOST_WITH_PATH_OPERATION: APIOperation[
HostWithPathOperationInput, HostWithPathOperationOutput
] = APIOperation(
static_schema=_SCHEMA_HOST_WITH_PATH_OPERATION,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

JSON_UNIONS = APIOperation(
JSON_UNIONS: APIOperation[JsonUnionsInput, JsonUnionsOutput] = APIOperation(
static_schema=_SCHEMA_JSON_UNIONS,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

NO_INPUT_AND_NO_OUTPUT = APIOperation(
NO_INPUT_AND_NO_OUTPUT: APIOperation[
NoInputAndNoOutputInput, NoInputAndNoOutputOutput
] = APIOperation(
static_schema=_SCHEMA_NO_INPUT_AND_NO_OUTPUT,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

NO_INPUT_AND_OUTPUT = APIOperation(
static_schema=_SCHEMA_NO_INPUT_AND_OUTPUT,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
NO_INPUT_AND_OUTPUT: APIOperation[NoInputAndOutputInput, NoInputAndOutputOutput] = (
APIOperation(
static_schema=_SCHEMA_NO_INPUT_AND_OUTPUT,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)
)

OPERATION_WITH_DEFAULTS = APIOperation(
OPERATION_WITH_DEFAULTS: APIOperation[
OperationWithDefaultsInput, OperationWithDefaultsOutput
] = APIOperation(
static_schema=_SCHEMA_OPERATION_WITH_DEFAULTS,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

OPERATION_WITH_NESTED_STRUCTURE = APIOperation(
OPERATION_WITH_NESTED_STRUCTURE: APIOperation[
OperationWithNestedStructureInput, OperationWithNestedStructureOutput
] = APIOperation(
static_schema=_SCHEMA_OPERATION_WITH_NESTED_STRUCTURE,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

OPERATION_WITH_REQUIRED_MEMBERS = APIOperation(
OPERATION_WITH_REQUIRED_MEMBERS: APIOperation[
OperationWithRequiredMembersInput, OperationWithRequiredMembersOutput
] = APIOperation(
static_schema=_SCHEMA_OPERATION_WITH_REQUIRED_MEMBERS,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

OPERATION_WITH_REQUIRED_MEMBERS_WITH_DEFAULTS = APIOperation(
OPERATION_WITH_REQUIRED_MEMBERS_WITH_DEFAULTS: APIOperation[
OperationWithRequiredMembersWithDefaultsInput,
OperationWithRequiredMembersWithDefaultsOutput,
] = APIOperation(
static_schema=_SCHEMA_OPERATION_WITH_REQUIRED_MEMBERS_WITH_DEFAULTS,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

PUT_WITH_CONTENT_ENCODING = APIOperation(
PUT_WITH_CONTENT_ENCODING: APIOperation[
PutWithContentEncodingInput, PutWithContentEncodingOutput
] = APIOperation(
static_schema=_SCHEMA_PUT_WITH_CONTENT_ENCODING,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

QUERY_INCOMPATIBLE_OPERATION = APIOperation(
QUERY_INCOMPATIBLE_OPERATION: APIOperation[
QueryIncompatibleOperationInput, QueryIncompatibleOperationOutput
] = APIOperation(
static_schema=_SCHEMA_QUERY_INCOMPATIBLE_OPERATION,
model_registry=_registry,
error_ids=[],
effective_auth_schemes=[ShapeID("aws.auth#sigv4")],
)

SIMPLE_SCALAR_PROPERTIES = APIOperation(
SIMPLE_SCALAR_PROPERTIES: APIOperation[
SimpleScalarPropertiesInput, SimpleScalarPropertiesOutput
] = APIOperation(
static_schema=_SCHEMA_SIMPLE_SCALAR_PROPERTIES,
model_registry=_registry,
error_ids=[],
Expand Down
Loading
Loading