diff --git a/codegen-output-py/rest-xml-client/.smithy-python-manifest.json b/codegen-output-py/rest-xml-client/.smithy-python-manifest.json new file mode 100644 index 000000000..9c0f5adcf --- /dev/null +++ b/codegen-output-py/rest-xml-client/.smithy-python-manifest.json @@ -0,0 +1,24 @@ +{ + "files": { + "README.md": "1e9cbec40ebffed35c2e9e9d8e92a6cc455f977590e68c4c4b9869876718d14d", + "pyproject.toml": "63315ce77d58e2529f720de1525a706b85b40c8e49f0c2b2a5fb12373ad1ad21", + "src/restxml_client/__init__.py": "b5a47df1b7e014cde52ee081a4ae42d82033d348b93a1954e1dc30776046207a", + "src/restxml_client/_private/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "src/restxml_client/_private/endpoints.py": "7d515fe771678e82ddbe07798d6b7e48c25c6c9bec19cec9318deb0bc5064ead", + "src/restxml_client/_private/schemas.py": "3182b24328495d0db4ce1975dce97d8f4b3cab18e6910641fa27d34df8629086", + "src/restxml_client/_private/schemas_0.py": "34f7fe09c98c5b7bf7daffc980f14fbdbb47b608f4b8690034827fd554bcd2c1", + "src/restxml_client/_private/schemas_1.py": "32d2cbea4cbf8ee61f1e0dfdab9ebd5a38181b8e3b159d591853686f9090e177", + "src/restxml_client/_private/schemas_2.py": "3c8a541a1626dd5ee59b4d6e483b8bf70db4c55f0497a74f67fd0181d226780b", + "src/restxml_client/aio/__init__.py": "c9dc5526981cf650810881dabd93561025805073a167c6b02a160a939d02cd9b", + "src/restxml_client/aio/client.py": "b57a38cca1c0f6753ac703fb009ff35dcacc5c44098d2376ac6dd0667ee89a5b", + "src/restxml_client/aio/config.py": "b28594a413fac3f79ebe6c73d46a386f6f7fb1d11ef4740a6319e3b7d708114f", + "src/restxml_client/aio/user_agent.py": "6d7319cf63fc3dcc98c7e75b615741296d55768da04013f6943b32b2d0a751f6", + "src/restxml_client/client.py": "d80278e3c12d1eb193df94c4e8afbc5ec24eb9c9eb41fa2353669861f4c5f05a", + "src/restxml_client/config.py": "d86882e00443edfa3dbf16bb916de881b372c71332856206e1f8d66de0f70ca8", + "src/restxml_client/models.py": "7e5c04410551333822485911673cb8dd0fe24aa24a33bbd71b66f5ea5f65e1fb", + "src/restxml_client/models.pyi": "4f503cae8ce42fc1675f8fe62e5efda28e4af18396ac78ba64b6dc3c5ae77e58", + "src/restxml_client/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "src/restxml_client/user_agent.py": "ec8e91e968b0514092b9b2c768d92a408f6764da99c44df82c6af0d56fa795a3" + }, + "version": 1 +} diff --git a/codegen-output-py/rest-xml-client/README.md b/codegen-output-py/rest-xml-client/README.md new file mode 100644 index 000000000..e08700eb2 --- /dev/null +++ b/codegen-output-py/rest-xml-client/README.md @@ -0,0 +1,5 @@ + + +## restxml_client Client Package + +Python client for the rest-xml projection diff --git a/codegen-output-py/rest-xml-client/pyproject.toml b/codegen-output-py/rest-xml-client/pyproject.toml new file mode 100644 index 000000000..4a9e83214 --- /dev/null +++ b/codegen-output-py/rest-xml-client/pyproject.toml @@ -0,0 +1,38 @@ +# Code generated by smithy-python-codegen DO NOT EDIT. + +[project] +name = "restxml_client" +version = "0.0.1" +description = "Python client for the rest-xml projection" +readme = "README.md" +requires-python = ">=3.12" +keywords = ["smithy", "restxml_client"] +license = {text = "Apache-2.0"} +dependencies = [ + "smithy-aws-core[xml]~=0.16.0", + "smithy-core~=0.13.0", + "smithy-http[aiohttp,urllib3]~=0.10.0", +] + +[build-system] +requires = [ + "hatchling", +] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = [ + "src/restxml_client", +] + +[tool.pyright] +typeCheckingMode = "strict" + +[tool.ruff] +target-version = "py312" + +[tool.ruff.lint] +ignore = ["F841"] + +[tool.ruff.format] +skip-magic-trailing-comma = true diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/__init__.py b/codegen-output-py/rest-xml-client/src/restxml_client/__init__.py new file mode 100644 index 000000000..63ec3a0f2 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/__init__.py @@ -0,0 +1,30 @@ +from importlib import import_module +from typing import TYPE_CHECKING, Any + +__version__: str = "0.0.1" + +if TYPE_CHECKING: + from .aio.client import AsyncRestXmlProtocolClient + from .aio.config import AsyncRestXmlProtocolConfig + from .client import RestXmlProtocolClient + from .config import RestXmlProtocolConfig + +__all__ = [ + "AsyncRestXmlProtocolClient", + "AsyncRestXmlProtocolConfig", + "RestXmlProtocolClient", + "RestXmlProtocolConfig", +] + +_EXPORTS = { + "RestXmlProtocolClient": ".client", + "RestXmlProtocolConfig": ".config", + "AsyncRestXmlProtocolClient": ".aio.client", + "AsyncRestXmlProtocolConfig": ".aio.config", +} + + +def __getattr__(name: str) -> Any: + if name in _EXPORTS: + return getattr(import_module(_EXPORTS[name], __name__), name) + raise AttributeError(f"module {__name__!r} has no attribute {name!r}") diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/_private/__init__.py b/codegen-output-py/rest-xml-client/src/restxml_client/_private/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/_private/endpoints.py b/codegen-output-py/rest-xml-client/src/restxml_client/_private/endpoints.py new file mode 100644 index 000000000..ad3066783 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/_private/endpoints.py @@ -0,0 +1,27 @@ +from smithy_core.endpoints import EndpointBdd + +# fmt: off +# Tags: ref=0, attr=1, call=2, list=3, map=4, error=5, endpoint=6. +BDD = EndpointBdd( + # (name, type, required, default, builtin, client_context_attribute) + parameters=( + ("endpoint", "string", False, None, "SDK::Endpoint", None), + ), + functions=("isSet",), + conditions=( + ((2, "isSet", (0, "endpoint")), None), # 0: isSet(endpoint) + ), + results=( + None, # 0: no match + (6, (0, "endpoint"), None, ()), # 1 + (5, "(default endpointRuleSet) endpoint is not set - you must configure an endpoint."), # 2 + ), + root=2, + # (condition, high, low); 1 and -1 are terminals, a negative reference is a + # complement edge, and 100_000_000 + k is result k. + nodes=( + -1, 1, -1, + 0, 100_000_001, 100_000_002, + ), +) +# fmt: on diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas.py b/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas.py new file mode 100644 index 000000000..442f0bfa3 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas.py @@ -0,0 +1,281 @@ +from importlib import import_module + +_PARTITION_NAMES: tuple[tuple[str, ...], ...] = ( + ( + "STRING_LIST", + "STRING_SET", + "INTEGER_LIST", + "INTEGER_SET", + "DOUBLE_LIST", + "BOOLEAN_LIST", + "TIMESTAMP_LIST", + "FOO_ENUM", + "FOO_ENUM_LIST", + "INTEGER_ENUM", + "INTEGER_ENUM_LIST", + "STRING_MAP", + "ALL_QUERY_STRING_TYPES_INPUT", + "ALL_QUERY_STRING_TYPES_OUTPUT", + "ALL_QUERY_STRING_TYPES", + "COMPLEX_NESTED_ERROR_DATA", + "COMPLEX_ERROR", + "CONSTANT_AND_VARIABLE_QUERY_STRING_INPUT", + "CONSTANT_AND_VARIABLE_QUERY_STRING_OUTPUT", + "CONSTANT_AND_VARIABLE_QUERY_STRING", + "CONSTANT_QUERY_STRING_INPUT", + "CONSTANT_QUERY_STRING_OUTPUT", + "CONSTANT_QUERY_STRING", + "CONTENT_TYPE_PARAMETERS_INPUT", + "CONTENT_TYPE_PARAMETERS_OUTPUT", + "CONTENT_TYPE_PARAMETERS", + "DATE_TIME", + "DATETIME_OFFSETS_OUTPUT", + "DATETIME_OFFSETS_INPUT", + "DATETIME_OFFSETS", + "EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT", + "EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT", + "EMPTY_INPUT_AND_EMPTY_OUTPUT", + "FLATTENED_XML_MAP_WITH_XML_NAME_INPUT_OUTPUT_MAP", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT_MAP", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_INPUT", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE", + "FOO_PREFIX_HEADERS", + "FRACTIONAL_SECONDS_OUTPUT", + "FRACTIONAL_SECONDS_INPUT", + "FRACTIONAL_SECONDS", + "GREETING_WITH_ERRORS_OUTPUT", + "GREETING_WITH_ERRORS_INPUT", + "GREETING_WITH_ERRORS", + "HTTP_EMPTY_PREFIX_HEADERS_INPUT", + "HTTP_EMPTY_PREFIX_HEADERS_OUTPUT", + "HTTP_EMPTY_PREFIX_HEADERS", + "HTTP_REQUEST_WITH_FLOAT_LABELS_INPUT", + "HTTP_REQUEST_WITH_FLOAT_LABELS_OUTPUT", + "HTTP_REQUEST_WITH_FLOAT_LABELS", + "HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH_INPUT", + "HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH_OUTPUT", + "HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH", + "EPOCH_SECONDS", + "HTTP_DATE", + "HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT_INPUT", + "HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT_OUTPUT", + "HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT", + "HTTP_REQUEST_WITH_LABELS_INPUT", + "HTTP_REQUEST_WITH_LABELS_OUTPUT", + "HTTP_REQUEST_WITH_LABELS", + "HTTP_RESPONSE_CODE_OUTPUT", + "HTTP_RESPONSE_CODE_INPUT", + "HTTP_RESPONSE_CODE", + "IGNORE_QUERY_PARAMS_IN_RESPONSE_OUTPUT", + "IGNORE_QUERY_PARAMS_IN_RESPONSE_INPUT", + "IGNORE_QUERY_PARAMS_IN_RESPONSE", + "INVALID_GREETING", + "LIST_WITH_MEMBER_NAMESPACE", + "LIST_WITH_NAMESPACE", + "FOO_ENUM_MAP", + "NESTED_MAP", + "NESTED_PAYLOAD", + "NESTED_XML_MAP_WITH_XML_NAME_INNER_MAP", + "NESTED_XML_MAP_WITH_XML_NAME_MAP", + "NO_INPUT_AND_OUTPUT_OUTPUT", + "NO_INPUT_AND_OUTPUT_INPUT", + "NO_INPUT_AND_OUTPUT", + "OMITS_NULL_SERIALIZES_EMPTY_STRING_INPUT", + "OMITS_NULL_SERIALIZES_EMPTY_STRING_OUTPUT", + "OMITS_NULL_SERIALIZES_EMPTY_STRING", + "PAYLOAD_WITH_XML_NAMESPACE", + "PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX", + "PUT_WITH_CONTENT_ENCODING_INPUT", + "PUT_WITH_CONTENT_ENCODING_OUTPUT", + "PUT_WITH_CONTENT_ENCODING", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL", + "STRING_LIST_MAP", + "QUERY_PARAMS_AS_STRING_LIST_MAP_INPUT", + "QUERY_PARAMS_AS_STRING_LIST_MAP_OUTPUT", + "QUERY_PARAMS_AS_STRING_LIST_MAP", + ), + ( + "PAYLOAD_WITH_XML_NAME", + "QUERY_PRECEDENCE_INPUT", + "QUERY_PRECEDENCE_OUTPUT", + "QUERY_PRECEDENCE", + "RENAMED_LIST_MEMBERS", + "STRING_ENUM", + "STRUCTURE_LIST_MEMBER", + "STRUCTURE_LIST", + "UNION_PAYLOAD", + "XML_ATTRIBUTES_IN_MIDDLE_PAYLOAD_REQUEST", + "XML_ATTRIBUTES_IN_MIDDLE_PAYLOAD_RESPONSE", + "XML_ATTRIBUTES_PAYLOAD_REQUEST", + "XML_ATTRIBUTES_PAYLOAD_RESPONSE", + "XML_MAP_WITH_XML_NAMESPACE_INPUT_OUTPUT_MAP", + "GREETING_STRUCT", + "XML_MAPS_INPUT_OUTPUT_MAP", + "XML_MAPS_XML_NAME_INPUT_OUTPUT_MAP", + "XML_NAMESPACED_LIST", + "XML_NAMESPACE_NESTED", + "XML_NESTED_UNION_STRUCT", + "FOO_ENUM_SET", + "INTEGER_ENUM_MAP", + "INTEGER_ENUM_SET", + "NESTED_STRING_LIST", + "TEXT_PLAIN_BLOB", + "BODY_WITH_XML_NAME_INPUT", + "BODY_WITH_XML_NAME_OUTPUT", + "BODY_WITH_XML_NAME", + "ENDPOINT_OPERATION_INPUT", + "ENDPOINT_OPERATION_OUTPUT", + "ENDPOINT_OPERATION", + "ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION_INPUT", + "ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION_OUTPUT", + "ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION", + "ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT", + "ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT", + "ENDPOINT_WITH_HOST_LABEL_OPERATION", + "FLATTENED_XML_MAP_INPUT", + "FLATTENED_XML_MAP_OUTPUT", + "FLATTENED_XML_MAP", + "FLATTENED_XML_MAP_WITH_XML_NAME_INPUT", + "FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT", + "FLATTENED_XML_MAP_WITH_XML_NAME", + "HTTP_ENUM_PAYLOAD_INPUT", + "HTTP_ENUM_PAYLOAD_OUTPUT", + "HTTP_ENUM_PAYLOAD", + "HTTP_PAYLOAD_TRAITS_INPUT", + "HTTP_PAYLOAD_TRAITS_OUTPUT", + "HTTP_PAYLOAD_TRAITS", + "HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE_INPUT", + "HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE_OUTPUT", + "HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE", + "HTTP_PAYLOAD_WITH_MEMBER_XML_NAME_INPUT", + "HTTP_PAYLOAD_WITH_MEMBER_XML_NAME_OUTPUT", + "HTTP_PAYLOAD_WITH_MEMBER_XML_NAME", + "HTTP_PAYLOAD_WITH_STRUCTURE_INPUT", + "HTTP_PAYLOAD_WITH_STRUCTURE_OUTPUT", + "HTTP_PAYLOAD_WITH_STRUCTURE", + "HTTP_PAYLOAD_WITH_UNION_INPUT", + "HTTP_PAYLOAD_WITH_UNION_OUTPUT", + "HTTP_PAYLOAD_WITH_UNION", + "HTTP_PAYLOAD_WITH_XML_NAME_INPUT", + "HTTP_PAYLOAD_WITH_XML_NAME_OUTPUT", + "HTTP_PAYLOAD_WITH_XML_NAME", + "HTTP_PAYLOAD_WITH_XML_NAMESPACE_INPUT", + "HTTP_PAYLOAD_WITH_XML_NAMESPACE_OUTPUT", + "HTTP_PAYLOAD_WITH_XML_NAMESPACE", + "HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX_INPUT", + "HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX_OUTPUT", + "HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX", + "HTTP_PREFIX_HEADERS_INPUT", + "HTTP_PREFIX_HEADERS_OUTPUT", + "HTTP_PREFIX_HEADERS", + "HTTP_STRING_PAYLOAD_INPUT", + "HTTP_STRING_PAYLOAD_OUTPUT", + "HTTP_STRING_PAYLOAD", + "INPUT_AND_OUTPUT_WITH_HEADERS_INPUT", + "INPUT_AND_OUTPUT_WITH_HEADERS_OUTPUT", + "INPUT_AND_OUTPUT_WITH_HEADERS", + "NESTED_XML_MAP_WITH_XML_NAME_INPUT", + "NESTED_XML_MAP_WITH_XML_NAME_OUTPUT", + "NESTED_XML_MAP_WITH_XML_NAME", + "NESTED_XML_MAPS_INPUT", + "NESTED_XML_MAPS_OUTPUT", + "NESTED_XML_MAPS", + "NO_INPUT_AND_NO_OUTPUT_INPUT", + "NO_INPUT_AND_NO_OUTPUT_OUTPUT", + "NO_INPUT_AND_NO_OUTPUT", + "NULL_AND_EMPTY_HEADERS_CLIENT_INPUT", + "NULL_AND_EMPTY_HEADERS_CLIENT_OUTPUT", + "NULL_AND_EMPTY_HEADERS_CLIENT", + ), + ( + "NULL_AND_EMPTY_HEADERS_SERVER_INPUT", + "NULL_AND_EMPTY_HEADERS_SERVER_OUTPUT", + "NULL_AND_EMPTY_HEADERS_SERVER", + "RECURSIVE_SHAPES_INPUT", + "RECURSIVE_SHAPES_OUTPUT", + "RECURSIVE_SHAPES", + "SIMPLE_SCALAR_PROPERTIES_INPUT", + "SIMPLE_SCALAR_PROPERTIES_OUTPUT", + "SIMPLE_SCALAR_PROPERTIES", + "TIMESTAMP_FORMAT_HEADERS_INPUT", + "TIMESTAMP_FORMAT_HEADERS_OUTPUT", + "TIMESTAMP_FORMAT_HEADERS", + "XML_ATTRIBUTES_INPUT", + "XML_ATTRIBUTES_OUTPUT", + "XML_ATTRIBUTES", + "XML_ATTRIBUTES_IN_MIDDLE_INPUT", + "XML_ATTRIBUTES_IN_MIDDLE_OUTPUT", + "XML_ATTRIBUTES_IN_MIDDLE", + "XML_ATTRIBUTES_ON_PAYLOAD_INPUT", + "XML_ATTRIBUTES_ON_PAYLOAD_OUTPUT", + "XML_ATTRIBUTES_ON_PAYLOAD", + "XML_BLOBS_INPUT", + "XML_BLOBS_OUTPUT", + "XML_BLOBS", + "XML_EMPTY_BLOBS_INPUT", + "XML_EMPTY_BLOBS_OUTPUT", + "XML_EMPTY_BLOBS", + "XML_EMPTY_LISTS_INPUT", + "XML_EMPTY_LISTS_OUTPUT", + "XML_EMPTY_LISTS", + "XML_EMPTY_MAPS_INPUT", + "XML_EMPTY_MAPS_OUTPUT", + "XML_EMPTY_MAPS", + "XML_EMPTY_STRINGS_INPUT", + "XML_EMPTY_STRINGS_OUTPUT", + "XML_EMPTY_STRINGS", + "XML_ENUMS_INPUT", + "XML_ENUMS_OUTPUT", + "XML_ENUMS", + "XML_INT_ENUMS_INPUT", + "XML_INT_ENUMS_OUTPUT", + "XML_INT_ENUMS", + "XML_LISTS_INPUT", + "XML_LISTS_OUTPUT", + "XML_LISTS", + "XML_MAP_WITH_XML_NAMESPACE_INPUT", + "XML_MAP_WITH_XML_NAMESPACE_OUTPUT", + "XML_MAP_WITH_XML_NAMESPACE", + "XML_MAPS_INPUT", + "XML_MAPS_OUTPUT", + "XML_MAPS", + "XML_MAPS_XML_NAME_INPUT", + "XML_MAPS_XML_NAME_OUTPUT", + "XML_MAPS_XML_NAME", + "XML_NAMESPACES_INPUT", + "XML_NAMESPACES_OUTPUT", + "XML_NAMESPACES", + "XML_TIMESTAMPS_INPUT", + "XML_TIMESTAMPS_OUTPUT", + "XML_TIMESTAMPS", + "XML_UNIONS_INPUT", + "XML_UNIONS_OUTPUT", + "XML_UNIONS", + "REST_XML", + "RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED1", + "RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED2", + "XML_UNION_SHAPE", + ), +) +_PARTITIONS = { + name: index for index, names in enumerate(_PARTITION_NAMES) for name in names +} +del _PARTITION_NAMES + + +def __getattr__(name: str): + try: + partition = _PARTITIONS[name] + except KeyError as error: + raise AttributeError(name) from error + module = import_module(f".schemas_{partition:01d}", __package__) + value = getattr(module, name) + globals()[name] = value + return value + + +def __dir__() -> list[str]: + return sorted({*globals(), *_PARTITIONS}) diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_0.py b/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_0.py new file mode 100644 index 000000000..2091fb27e --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_0.py @@ -0,0 +1,1193 @@ +from types import MappingProxyType + +from smithy_core._schema_compact import StaticOperationSchema, StaticSchema + +n0 = "aws.protocoltests.shared" +_s0 = "StringList" +_s1 = "member" +_s2 = "StringSet" +_s3 = "IntegerList" +_s4 = "IntegerSet" +_s5 = "DoubleList" +_s6 = "BooleanList" +_s7 = "TimestampList" +_s8 = "FooEnum" +_s9 = "FOO" +_s10 = "smithy.api#enumValue" +_s11 = "Foo" +_s12 = "BAZ" +_s13 = "Baz" +_s14 = "BAR" +_s15 = "Bar" +_s16 = "ONE" +_s17 = "1" +_s18 = "ZERO" +_s19 = "0" +_s20 = "FooEnumList" +_s21 = "IntegerEnum" +_s22 = "A" +_s23 = "B" +_s24 = "C" +_s25 = "IntegerEnumList" +_s26 = "StringMap" +_s27 = "key" +_s28 = "value" +n1 = "aws.protocoltests.restxml" +_s29 = "AllQueryStringTypesInput" +_s30 = "smithy.synthetic#originalShapeId" +_s31 = "aws.protocoltests.restxml#AllQueryStringTypesInput" +_s32 = "smithy.api#input" +_s33 = "queryString" +_s34 = "smithy.api#httpQuery" +_s35 = "String" +_s36 = "queryStringList" +_s37 = "queryStringSet" +_s38 = "queryByte" +_s39 = "Byte" +_s40 = "queryShort" +_s41 = "Short" +_s42 = "queryInteger" +_s43 = "Integer" +_s44 = "queryIntegerList" +_s45 = "queryIntegerSet" +_s46 = "queryLong" +_s47 = "Long" +_s48 = "queryFloat" +_s49 = "Float" +_s50 = "queryDouble" +_s51 = "Double" +_s52 = "queryDoubleList" +_s53 = "queryBoolean" +_s54 = "Boolean" +_s55 = "queryBooleanList" +_s56 = "queryTimestamp" +_s57 = "Timestamp" +_s58 = "queryTimestampList" +_s59 = "queryEnum" +_s60 = "Enum" +_s61 = "queryEnumList" +_s62 = "EnumList" +_s63 = "queryIntegerEnum" +_s64 = "queryIntegerEnumList" +_s65 = "queryParamsMapOfStrings" +_s66 = "ComplexNestedErrorData" +_s67 = "ComplexError" +_s68 = "smithy.api#error" +_s69 = "client" +_s70 = "smithy.api#httpError" +_s71 = "Header" +_s72 = "smithy.api#httpHeader" +_s73 = "X-Header" +_s74 = "TopLevel" +_s75 = "Nested" +_s76 = "ConstantAndVariableQueryStringInput" +_s77 = "aws.protocoltests.restxml#ConstantAndVariableQueryStringInput" +_s78 = "baz" +_s79 = "maybeSet" +_s80 = "ConstantQueryStringInput" +_s81 = "aws.protocoltests.restxml#ConstantQueryStringInput" +_s82 = "hello" +_s83 = "ContentTypeParametersInput" +_s84 = "aws.protocoltests.restxml#ContentTypeParametersInput" +_s85 = "ContentTypeParametersOutput" +_s86 = "aws.protocoltests.restxml#ContentTypeParametersOutput" +_s87 = "smithy.api#output" +_s88 = "DateTime" +_s89 = "smithy.api#timestampFormat" +_s90 = "date-time" +_s91 = "DatetimeOffsetsOutput" +_s92 = "aws.protocoltests.restxml#DatetimeOffsetsOutput" +_s93 = "datetime" +_s94 = "EmptyInputAndEmptyOutputInput" +_s95 = "aws.protocoltests.restxml#EmptyInputAndEmptyOutputInput" +_s96 = "EmptyInputAndEmptyOutputOutput" +_s97 = "aws.protocoltests.restxml#EmptyInputAndEmptyOutputOutput" +_s98 = "FlattenedXmlMapWithXmlNameInputOutputMap" +_s99 = "smithy.api#xmlName" +_s100 = "K" +_s101 = "V" +_s102 = "FlattenedXmlMapWithXmlNamespaceOutputMap" +_s103 = "smithy.api#xmlNamespace" +_s104 = "FlattenedXmlMapWithXmlNamespaceOutput" +_s105 = "aws.protocoltests.restxml#FlattenedXmlMapWithXmlNamespaceOutput" +_s106 = "myMap" +_s107 = "smithy.api#xmlFlattened" +_s108 = "KVP" +_s109 = "FooPrefixHeaders" +_s110 = "FractionalSecondsOutput" +_s111 = "aws.protocoltests.restxml#FractionalSecondsOutput" +_s112 = "GreetingWithErrorsOutput" +_s113 = "aws.protocoltests.restxml#GreetingWithErrorsOutput" +_s114 = "greeting" +_s115 = "X-Greeting" +_s116 = "HttpEmptyPrefixHeadersInput" +_s117 = "aws.protocoltests.restxml#HttpEmptyPrefixHeadersInput" +_s118 = "prefixHeaders" +_s119 = "smithy.api#httpPrefixHeaders" +_s120 = "" +_s121 = "specificHeader" +_s122 = "HttpEmptyPrefixHeadersOutput" +_s123 = "aws.protocoltests.restxml#HttpEmptyPrefixHeadersOutput" +_s124 = "HttpRequestWithFloatLabelsInput" +_s125 = "aws.protocoltests.restxml#HttpRequestWithFloatLabelsInput" +_s126 = "float" +_s127 = "double" +_s128 = "HttpRequestWithGreedyLabelInPathInput" +_s129 = "aws.protocoltests.restxml#HttpRequestWithGreedyLabelInPathInput" +_s130 = "foo" +_s131 = "EpochSeconds" +_s132 = "epoch-seconds" +_s133 = "HttpDate" +_s134 = "http-date" +_s135 = "HttpRequestWithLabelsAndTimestampFormatInput" +_s136 = "aws.protocoltests.restxml#HttpRequestWithLabelsAndTimestampFormatInput" +_s137 = "memberEpochSeconds" +_s138 = "smithy.api#httpLabel" +_s139 = "smithy.api#required" +_s140 = "memberHttpDate" +_s141 = "memberDateTime" +_s142 = "defaultFormat" +_s143 = "targetEpochSeconds" +_s144 = "targetHttpDate" +_s145 = "targetDateTime" +_s146 = "HttpRequestWithLabelsInput" +_s147 = "aws.protocoltests.restxml#HttpRequestWithLabelsInput" +_s148 = "string" +_s149 = "short" +_s150 = "integer" +_s151 = "long" +_s152 = "boolean" +_s153 = "timestamp" +_s154 = "HttpResponseCodeOutput" +_s155 = "aws.protocoltests.restxml#HttpResponseCodeOutput" +_s156 = "Status" +_s157 = "IgnoreQueryParamsInResponseOutput" +_s158 = "aws.protocoltests.restxml#IgnoreQueryParamsInResponseOutput" +_s159 = "InvalidGreeting" +_s160 = "Message" +_s161 = "ListWithMemberNamespace" +_s162 = "ListWithNamespace" +_s163 = "FooEnumMap" +_s164 = "NestedMap" +_s165 = "NestedPayload" +_s166 = "name" +_s167 = "NestedXmlMapWithXmlNameInnerMap" +_s168 = "InnerKey" +_s169 = "InnerValue" +_s170 = "NestedXmlMapWithXmlNameMap" +_s171 = "OuterKey" +_s172 = "NoInputAndOutputOutput" +_s173 = "aws.protocoltests.restxml#NoInputAndOutputOutput" +_s174 = "OmitsNullSerializesEmptyStringInput" +_s175 = "aws.protocoltests.restxml#OmitsNullSerializesEmptyStringInput" +_s176 = "nullValue" +_s177 = "Null" +_s178 = "emptyString" +_s179 = "Empty" +_s182 = "PayloadWithXmlNamespace" +_s183 = "PayloadWithXmlNamespaceAndPrefix" +_s184 = "PutWithContentEncodingInput" +_s185 = "aws.protocoltests.restxml#PutWithContentEncodingInput" +_s186 = "encoding" +_s187 = "Content-Encoding" +_s188 = "data" +_s189 = "QueryIdempotencyTokenAutoFillInput" +_s190 = "aws.protocoltests.restxml#QueryIdempotencyTokenAutoFillInput" +_s191 = "token" +_s192 = "smithy.api#idempotencyToken" +_s193 = "StringListMap" +_s194 = "QueryParamsAsStringListMapInput" +_s195 = "aws.protocoltests.restxml#QueryParamsAsStringListMapInput" +_s196 = "qux" +_s197 = "corge" +_s244 = "AllQueryStringTypesOutput" +_s245 = "smithy.api#Unit" +_s251 = "ConstantAndVariableQueryStringOutput" +_s252 = "ConstantQueryStringOutput" +_s253 = "DatetimeOffsetsInput" +_s274 = "FlattenedXmlMapWithXmlNamespaceInput" +_s275 = "FractionalSecondsInput" +_s276 = "GreetingWithErrorsInput" +_s315 = "HttpRequestWithFloatLabelsOutput" +_s316 = "HttpRequestWithGreedyLabelInPathOutput" +_s317 = "HttpRequestWithLabelsOutput" +_s318 = "HttpRequestWithLabelsAndTimestampFormatOutput" +_s319 = "HttpResponseCodeInput" +_s323 = "IgnoreQueryParamsInResponseInput" +_s372 = "NoInputAndOutputInput" +_s382 = "OmitsNullSerializesEmptyStringOutput" +_s383 = "PutWithContentEncodingOutput" +_s384 = "QueryIdempotencyTokenAutoFillOutput" +_s385 = "QueryParamsAsStringListMapOutput" +_s513 = "AllQueryStringTypes" +_s514 = "smithy.api#http" +_s516 = "ConstantAndVariableQueryString" +_s517 = "ConstantQueryString" +_s518 = "ContentTypeParameters" +_s519 = "DatetimeOffsets" +_s520 = "EmptyInputAndEmptyOutput" +_s527 = "FlattenedXmlMapWithXmlNamespace" +_s528 = "FractionalSeconds" +_s529 = "GreetingWithErrors" +_s530 = "HttpEmptyPrefixHeaders" +_s541 = "HttpRequestWithFloatLabels" +_s542 = "HttpRequestWithGreedyLabelInPath" +_s543 = "HttpRequestWithLabels" +_s544 = "HttpRequestWithLabelsAndTimestampFormat" +_s545 = "HttpResponseCode" +_s547 = "IgnoreQueryParamsInResponse" +_s552 = "NoInputAndOutput" +_s555 = "OmitsNullSerializesEmptyString" +_s556 = "PutWithContentEncoding" +_s557 = "smithy.api#requestCompression" +_s558 = "QueryIdempotencyTokenAutoFill" +_s559 = "QueryParamsAsStringListMap" + +STRING_LIST: StaticSchema = ( + 16, + n0, + _s0, + 0, + (_s1,), + ((3, 0),), +) + +STRING_SET: StaticSchema = ( + 16, + n0, + _s2, + 0, + (_s1,), + ((3, 0),), +) + +INTEGER_LIST: StaticSchema = ( + 16, + n0, + _s3, + 0, + (_s1,), + ((7, 0),), +) + +INTEGER_SET: StaticSchema = ( + 16, + n0, + _s4, + 0, + (_s1,), + ((7, 0),), +) + +DOUBLE_LIST: StaticSchema = ( + 16, + n0, + _s5, + 0, + (_s1,), + ((10, 0),), +) + +BOOLEAN_LIST: StaticSchema = ( + 16, + n0, + _s6, + 0, + (_s1,), + ((2, 0),), +) + +TIMESTAMP_LIST: StaticSchema = ( + 16, + n0, + _s7, + 0, + (_s1,), + ((4, 0),), +) + +FOO_ENUM: StaticSchema = ( + 14, + n0, + _s8, + 0, + (_s9, _s12, _s14, _s16, _s18), + ( + (-1, {_s10: _s11}), + (-1, {_s10: _s13}), + (-1, {_s10: _s15}), + (-1, {_s10: _s17}), + (-1, {_s10: _s19}), + ), +) + +FOO_ENUM_LIST: StaticSchema = ( + 16, + n0, + _s20, + 0, + (_s1,), + ((FOO_ENUM, 0),), +) + +INTEGER_ENUM: StaticSchema = ( + 15, + n0, + _s21, + 0, + (_s22, _s23, _s24), + ((-1, {_s10: 1}), (-1, {_s10: 2}), (-1, {_s10: 3})), +) + +INTEGER_ENUM_LIST: StaticSchema = ( + 16, + n0, + _s25, + 0, + (_s1,), + ((INTEGER_ENUM, 0),), +) + +STRING_MAP: StaticSchema = ( + 17, + n0, + _s26, + 0, + (_s27, _s28), + ((3, 0), (3, 0)), +) + +ALL_QUERY_STRING_TYPES_INPUT: StaticSchema = ( + 18, + n1, + _s29, + {_s30: _s31, _s32: None}, + ( + _s33, + _s36, + _s37, + _s38, + _s40, + _s42, + _s44, + _s45, + _s46, + _s48, + _s50, + _s52, + _s53, + _s55, + _s56, + _s58, + _s59, + _s61, + _s63, + _s64, + _s65, + ), + ( + (3, {_s34: _s35}), + (STRING_LIST, {_s34: _s0}), + (STRING_SET, {_s34: _s2}), + (5, {_s34: _s39}), + (6, {_s34: _s41}), + (7, {_s34: _s43}), + (INTEGER_LIST, {_s34: _s3}), + (INTEGER_SET, {_s34: _s4}), + (8, {_s34: _s47}), + (9, {_s34: _s49}), + (10, {_s34: _s51}), + (DOUBLE_LIST, {_s34: _s5}), + (2, {_s34: _s54}), + (BOOLEAN_LIST, {_s34: _s6}), + (4, {_s34: _s57}), + (TIMESTAMP_LIST, {_s34: _s7}), + (FOO_ENUM, {_s34: _s60}), + (FOO_ENUM_LIST, {_s34: _s62}), + (INTEGER_ENUM, {_s34: _s21}), + (INTEGER_ENUM_LIST, {_s34: _s25}), + (STRING_MAP, 1024), + ), +) + +ALL_QUERY_STRING_TYPES_OUTPUT: StaticSchema = ( + 18, + n1, + _s244, + {_s30: _s245, _s87: None}, +) + +ALL_QUERY_STRING_TYPES: StaticOperationSchema = ( + 23, + n1, + _s513, + {_s514: MappingProxyType({"uri": "/AllQueryStringTypesInput", "method": "GET"})}, + ALL_QUERY_STRING_TYPES_INPUT, + ALL_QUERY_STRING_TYPES_OUTPUT, + (), +) + +COMPLEX_NESTED_ERROR_DATA: StaticSchema = ( + 18, + n1, + _s66, + 0, + (_s11,), + ((3, 0),), +) + +COMPLEX_ERROR: StaticSchema = ( + 18, + n1, + _s67, + {_s68: _s69, _s70: 403}, + (_s71, _s74, _s75), + ((3, {_s72: _s73}), (3, 0), (COMPLEX_NESTED_ERROR_DATA, 0)), +) + +CONSTANT_AND_VARIABLE_QUERY_STRING_INPUT: StaticSchema = ( + 18, + n1, + _s76, + {_s30: _s77, _s32: None}, + (_s78, _s79), + ((3, {_s34: _s78}), (3, {_s34: _s79})), +) + +CONSTANT_AND_VARIABLE_QUERY_STRING_OUTPUT: StaticSchema = ( + 18, + n1, + _s251, + {_s30: _s245, _s87: None}, +) + +CONSTANT_AND_VARIABLE_QUERY_STRING: StaticOperationSchema = ( + 23, + n1, + _s516, + { + _s514: MappingProxyType( + {"uri": "/ConstantAndVariableQueryString?foo=bar", "method": "GET"} + ) + }, + CONSTANT_AND_VARIABLE_QUERY_STRING_INPUT, + CONSTANT_AND_VARIABLE_QUERY_STRING_OUTPUT, + (), +) + +CONSTANT_QUERY_STRING_INPUT: StaticSchema = ( + 18, + n1, + _s80, + {_s30: _s81, _s32: None}, + (_s82,), + ((3, 9),), +) + +CONSTANT_QUERY_STRING_OUTPUT: StaticSchema = ( + 18, + n1, + _s252, + {_s30: _s245, _s87: None}, +) + +CONSTANT_QUERY_STRING: StaticOperationSchema = ( + 23, + n1, + _s517, + { + _s514: MappingProxyType( + {"uri": "/ConstantQueryString/{hello}?foo=bar&hello", "method": "GET"} + ) + }, + CONSTANT_QUERY_STRING_INPUT, + CONSTANT_QUERY_STRING_OUTPUT, + (), +) + +CONTENT_TYPE_PARAMETERS_INPUT: StaticSchema = ( + 18, + n1, + _s83, + {_s30: _s84, _s32: None}, + (_s28,), + ((7, 0),), +) + +CONTENT_TYPE_PARAMETERS_OUTPUT: StaticSchema = ( + 18, + n1, + _s85, + {_s30: _s86, _s87: None}, +) + +CONTENT_TYPE_PARAMETERS: StaticOperationSchema = ( + 23, + n1, + _s518, + {_s514: MappingProxyType({"uri": "/ContentTypeParameters", "method": "PUT"})}, + CONTENT_TYPE_PARAMETERS_INPUT, + CONTENT_TYPE_PARAMETERS_OUTPUT, + (), +) + +DATE_TIME: StaticSchema = ( + 4, + n0, + _s88, + {_s89: _s90}, +) + +DATETIME_OFFSETS_OUTPUT: StaticSchema = ( + 18, + n1, + _s91, + {_s30: _s92, _s87: None}, + (_s93,), + ((DATE_TIME, 0),), +) + +DATETIME_OFFSETS_INPUT: StaticSchema = ( + 18, + n1, + _s253, + {_s30: _s245, _s32: None}, +) + +DATETIME_OFFSETS: StaticOperationSchema = ( + 23, + n1, + _s519, + {_s514: MappingProxyType({"uri": "/DatetimeOffsets", "method": "POST"})}, + DATETIME_OFFSETS_INPUT, + DATETIME_OFFSETS_OUTPUT, + (), +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT: StaticSchema = ( + 18, + n1, + _s94, + {_s30: _s95, _s32: None}, +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT: StaticSchema = ( + 18, + n1, + _s96, + {_s30: _s97, _s87: None}, +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT: StaticOperationSchema = ( + 23, + n1, + _s520, + {_s514: MappingProxyType({"uri": "/EmptyInputAndEmptyOutput", "method": "POST"})}, + EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT, + EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT, + (), +) + +FLATTENED_XML_MAP_WITH_XML_NAME_INPUT_OUTPUT_MAP: StaticSchema = ( + 17, + n1, + _s98, + 0, + (_s27, _s28), + ((3, {_s99: _s100}), (3, {_s99: _s101})), +) + +FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT_MAP: StaticSchema = ( + 17, + n1, + _s102, + 0, + (_s27, _s28), + ( + ( + 3, + { + _s99: _s100, + _s103: MappingProxyType({"uri": "https://the-key.example.com"}), + }, + ), + ( + 3, + { + _s99: _s101, + _s103: MappingProxyType({"uri": "https://the-value.example.com"}), + }, + ), + ), +) + +FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT: StaticSchema = ( + 18, + n1, + _s104, + {_s30: _s105, _s87: None}, + (_s106,), + ( + ( + FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT_MAP, + { + _s107: None, + _s99: _s108, + _s103: MappingProxyType({"uri": "https://the-member.example.com"}), + }, + ), + ), +) + +FLATTENED_XML_MAP_WITH_XML_NAMESPACE_INPUT: StaticSchema = ( + 18, + n1, + _s274, + {_s30: _s245, _s32: None}, +) + +FLATTENED_XML_MAP_WITH_XML_NAMESPACE: StaticOperationSchema = ( + 23, + n1, + _s527, + { + _s514: MappingProxyType( + {"uri": "/FlattenedXmlMapWithXmlNamespace", "method": "POST"} + ) + }, + FLATTENED_XML_MAP_WITH_XML_NAMESPACE_INPUT, + FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT, + (), +) + +FOO_PREFIX_HEADERS: StaticSchema = ( + 17, + n1, + _s109, + 0, + (_s27, _s28), + ((3, 0), (3, 0)), +) + +FRACTIONAL_SECONDS_OUTPUT: StaticSchema = ( + 18, + n1, + _s110, + {_s30: _s111, _s87: None}, + (_s93,), + ((DATE_TIME, 0),), +) + +FRACTIONAL_SECONDS_INPUT: StaticSchema = ( + 18, + n1, + _s275, + {_s30: _s245, _s32: None}, +) + +FRACTIONAL_SECONDS: StaticOperationSchema = ( + 23, + n1, + _s528, + {_s514: MappingProxyType({"uri": "/FractionalSeconds", "method": "POST"})}, + FRACTIONAL_SECONDS_INPUT, + FRACTIONAL_SECONDS_OUTPUT, + (), +) + +GREETING_WITH_ERRORS_OUTPUT: StaticSchema = ( + 18, + n1, + _s112, + {_s30: _s113, _s87: None}, + (_s114,), + ((3, {_s72: _s115}),), +) + +GREETING_WITH_ERRORS_INPUT: StaticSchema = ( + 18, + n1, + _s276, + {_s30: _s245, _s32: None}, +) + +GREETING_WITH_ERRORS: StaticOperationSchema = ( + 23, + n1, + _s529, + {_s514: MappingProxyType({"uri": "/GreetingWithErrors", "method": "PUT"})}, + GREETING_WITH_ERRORS_INPUT, + GREETING_WITH_ERRORS_OUTPUT, + (COMPLEX_ERROR, lambda: INVALID_GREETING), +) + +HTTP_EMPTY_PREFIX_HEADERS_INPUT: StaticSchema = ( + 18, + n1, + _s116, + {_s30: _s117, _s32: None}, + (_s118, _s121), + ((STRING_MAP, {_s119: _s120}), (3, {_s72: _s82})), +) + +HTTP_EMPTY_PREFIX_HEADERS_OUTPUT: StaticSchema = ( + 18, + n1, + _s122, + {_s30: _s123, _s87: None}, + (_s118, _s121), + ((STRING_MAP, {_s119: _s120}), (3, {_s72: _s82})), +) + +HTTP_EMPTY_PREFIX_HEADERS: StaticOperationSchema = ( + 23, + n1, + _s530, + {_s514: MappingProxyType({"uri": "/HttpEmptyPrefixHeaders", "method": "GET"})}, + HTTP_EMPTY_PREFIX_HEADERS_INPUT, + HTTP_EMPTY_PREFIX_HEADERS_OUTPUT, + (), +) + +HTTP_REQUEST_WITH_FLOAT_LABELS_INPUT: StaticSchema = ( + 18, + n1, + _s124, + {_s30: _s125, _s32: None}, + (_s126, _s127), + ((9, 9), (10, 9)), +) + +HTTP_REQUEST_WITH_FLOAT_LABELS_OUTPUT: StaticSchema = ( + 18, + n1, + _s315, + {_s30: _s245, _s87: None}, +) + +HTTP_REQUEST_WITH_FLOAT_LABELS: StaticOperationSchema = ( + 23, + n1, + _s541, + { + _s514: MappingProxyType( + {"method": "GET", "uri": "/FloatHttpLabels/{float}/{double}"} + ) + }, + HTTP_REQUEST_WITH_FLOAT_LABELS_INPUT, + HTTP_REQUEST_WITH_FLOAT_LABELS_OUTPUT, + (), +) + +HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH_INPUT: StaticSchema = ( + 18, + n1, + _s128, + {_s30: _s129, _s32: None}, + (_s130, _s78), + ((3, 9), (3, 9)), +) + +HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH_OUTPUT: StaticSchema = ( + 18, + n1, + _s316, + {_s30: _s245, _s87: None}, +) + +HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH: StaticOperationSchema = ( + 23, + n1, + _s542, + { + _s514: MappingProxyType( + { + "method": "GET", + "uri": "/HttpRequestWithGreedyLabelInPath/foo/{foo}/baz/{baz+}", + } + ) + }, + HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH_INPUT, + HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH_OUTPUT, + (), +) + +EPOCH_SECONDS: StaticSchema = ( + 4, + n0, + _s131, + {_s89: _s132}, +) + +HTTP_DATE: StaticSchema = ( + 4, + n0, + _s133, + {_s89: _s134}, +) + +HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT_INPUT: StaticSchema = ( + 18, + n1, + _s135, + {_s30: _s136, _s32: None}, + (_s137, _s140, _s141, _s142, _s143, _s144, _s145), + ( + (4, {_s89: _s132, _s138: None, _s139: None}), + (4, {_s89: _s134, _s138: None, _s139: None}), + (4, {_s89: _s90, _s138: None, _s139: None}), + (4, 9), + (EPOCH_SECONDS, 9), + (HTTP_DATE, 9), + (DATE_TIME, 9), + ), +) + +HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT_OUTPUT: StaticSchema = ( + 18, + n1, + _s318, + {_s30: _s245, _s87: None}, +) + +HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT: StaticOperationSchema = ( + 23, + n1, + _s544, + { + _s514: MappingProxyType( + { + "method": "GET", + "uri": "/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}", + } + ) + }, + HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT_INPUT, + HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT_OUTPUT, + (), +) + +HTTP_REQUEST_WITH_LABELS_INPUT: StaticSchema = ( + 18, + n1, + _s146, + {_s30: _s147, _s32: None}, + (_s148, _s149, _s150, _s151, _s126, _s127, _s152, _s153), + ((3, 9), (6, 9), (7, 9), (8, 9), (9, 9), (10, 9), (2, 9), (4, 9)), +) + +HTTP_REQUEST_WITH_LABELS_OUTPUT: StaticSchema = ( + 18, + n1, + _s317, + {_s30: _s245, _s87: None}, +) + +HTTP_REQUEST_WITH_LABELS: StaticOperationSchema = ( + 23, + n1, + _s543, + { + _s514: MappingProxyType( + { + "method": "GET", + "uri": "/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}", + } + ) + }, + HTTP_REQUEST_WITH_LABELS_INPUT, + HTTP_REQUEST_WITH_LABELS_OUTPUT, + (), +) + +HTTP_RESPONSE_CODE_OUTPUT: StaticSchema = ( + 18, + n1, + _s154, + {_s30: _s155, _s87: None}, + (_s156,), + ((7, 128),), +) + +HTTP_RESPONSE_CODE_INPUT: StaticSchema = ( + 18, + n1, + _s319, + {_s30: _s245, _s32: None}, +) + +HTTP_RESPONSE_CODE: StaticOperationSchema = ( + 23, + n1, + _s545, + {_s514: MappingProxyType({"uri": "/HttpResponseCode", "method": "PUT"})}, + HTTP_RESPONSE_CODE_INPUT, + HTTP_RESPONSE_CODE_OUTPUT, + (), +) + +IGNORE_QUERY_PARAMS_IN_RESPONSE_OUTPUT: StaticSchema = ( + 18, + n1, + _s157, + {_s30: _s158, _s87: None}, + (_s78,), + ((3, {_s34: _s78}),), +) + +IGNORE_QUERY_PARAMS_IN_RESPONSE_INPUT: StaticSchema = ( + 18, + n1, + _s323, + {_s30: _s245, _s32: None}, +) + +IGNORE_QUERY_PARAMS_IN_RESPONSE: StaticOperationSchema = ( + 23, + n1, + _s547, + {_s514: MappingProxyType({"uri": "/IgnoreQueryParamsInResponse", "method": "GET"})}, + IGNORE_QUERY_PARAMS_IN_RESPONSE_INPUT, + IGNORE_QUERY_PARAMS_IN_RESPONSE_OUTPUT, + (), +) + +INVALID_GREETING: StaticSchema = ( + 18, + n1, + _s159, + {_s68: _s69, _s70: 400}, + (_s160,), + ((3, 0),), +) + +LIST_WITH_MEMBER_NAMESPACE: StaticSchema = ( + 16, + n1, + _s161, + {_s103: MappingProxyType({"uri": "https://xml-list.example.com"})}, + (_s1,), + ((3, {_s103: MappingProxyType({"uri": "https://xml-member.example.com"})}),), +) + +LIST_WITH_NAMESPACE: StaticSchema = ( + 16, + n1, + _s162, + {_s103: MappingProxyType({"uri": "https://xml-list.example.com"})}, + (_s1,), + ((3, 0),), +) + +FOO_ENUM_MAP: StaticSchema = ( + 17, + n0, + _s163, + 0, + (_s27, _s28), + ((3, 0), (FOO_ENUM, 0)), +) + +NESTED_MAP: StaticSchema = ( + 17, + n1, + _s164, + 0, + (_s27, _s28), + ((3, 0), (FOO_ENUM_MAP, 0)), +) + +NESTED_PAYLOAD: StaticSchema = ( + 18, + n1, + _s165, + 0, + (_s114, _s166), + ((3, 0), (3, 0)), +) + +NESTED_XML_MAP_WITH_XML_NAME_INNER_MAP: StaticSchema = ( + 17, + n1, + _s167, + 0, + (_s27, _s28), + ((3, {_s99: _s168}), (3, {_s99: _s169})), +) + +NESTED_XML_MAP_WITH_XML_NAME_MAP: StaticSchema = ( + 17, + n1, + _s170, + 0, + (_s27, _s28), + ((3, {_s99: _s171}), (NESTED_XML_MAP_WITH_XML_NAME_INNER_MAP, 0)), +) + +NO_INPUT_AND_OUTPUT_OUTPUT: StaticSchema = ( + 18, + n1, + _s172, + {_s30: _s173, _s87: None}, +) + +NO_INPUT_AND_OUTPUT_INPUT: StaticSchema = ( + 18, + n1, + _s372, + {_s30: _s245, _s32: None}, +) + +NO_INPUT_AND_OUTPUT: StaticOperationSchema = ( + 23, + n1, + _s552, + {_s514: MappingProxyType({"uri": "/NoInputAndOutputOutput", "method": "POST"})}, + NO_INPUT_AND_OUTPUT_INPUT, + NO_INPUT_AND_OUTPUT_OUTPUT, + (), +) + +OMITS_NULL_SERIALIZES_EMPTY_STRING_INPUT: StaticSchema = ( + 18, + n1, + _s174, + {_s30: _s175, _s32: None}, + (_s176, _s178), + ((3, {_s34: _s177}), (3, {_s34: _s179})), +) + +OMITS_NULL_SERIALIZES_EMPTY_STRING_OUTPUT: StaticSchema = ( + 18, + n1, + _s382, + {_s30: _s245, _s87: None}, +) + +OMITS_NULL_SERIALIZES_EMPTY_STRING: StaticOperationSchema = ( + 23, + n1, + _s555, + { + _s514: MappingProxyType( + {"uri": "/OmitsNullSerializesEmptyString", "method": "GET"} + ) + }, + OMITS_NULL_SERIALIZES_EMPTY_STRING_INPUT, + OMITS_NULL_SERIALIZES_EMPTY_STRING_OUTPUT, + (), +) + +PAYLOAD_WITH_XML_NAMESPACE: StaticSchema = ( + 18, + n1, + _s182, + {_s103: MappingProxyType({"uri": "http://foo.com"})}, + (_s166,), + ((3, 0),), +) + +PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX: StaticSchema = ( + 18, + n1, + _s183, + {_s103: MappingProxyType({"uri": "http://foo.com", "prefix": "baz"})}, + (_s166,), + ((3, 0),), +) + +PUT_WITH_CONTENT_ENCODING_INPUT: StaticSchema = ( + 18, + n1, + _s184, + {_s30: _s185, _s32: None}, + (_s186, _s188), + ((3, {_s72: _s187}), (3, 0)), +) + +PUT_WITH_CONTENT_ENCODING_OUTPUT: StaticSchema = ( + 18, + n1, + _s383, + {_s30: _s245, _s87: None}, +) + +PUT_WITH_CONTENT_ENCODING: StaticOperationSchema = ( + 23, + n1, + _s556, + { + _s514: MappingProxyType( + {"method": "POST", "uri": "/requestcompression/putcontentwithencoding"} + ), + _s557: MappingProxyType({"encodings": ("gzip",)}), + }, + PUT_WITH_CONTENT_ENCODING_INPUT, + PUT_WITH_CONTENT_ENCODING_OUTPUT, + (), +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT: StaticSchema = ( + 18, + n1, + _s189, + {_s30: _s190, _s32: None}, + (_s191,), + ((3, {_s34: _s191, _s192: None}),), +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT: StaticSchema = ( + 18, + n1, + _s384, + {_s30: _s245, _s87: None}, +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL: StaticOperationSchema = ( + 23, + n1, + _s558, + { + _s514: MappingProxyType( + {"uri": "/QueryIdempotencyTokenAutoFill", "method": "POST"} + ) + }, + QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT, + QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT, + (), +) + +STRING_LIST_MAP: StaticSchema = ( + 17, + n0, + _s193, + 0, + (_s27, _s28), + ((3, 0), (STRING_LIST, 0)), +) + +QUERY_PARAMS_AS_STRING_LIST_MAP_INPUT: StaticSchema = ( + 18, + n1, + _s194, + {_s30: _s195, _s32: None}, + (_s196, _s130), + ((3, {_s34: _s197}), (STRING_LIST_MAP, 1024)), +) + +QUERY_PARAMS_AS_STRING_LIST_MAP_OUTPUT: StaticSchema = ( + 18, + n1, + _s385, + {_s30: _s245, _s87: None}, +) + +QUERY_PARAMS_AS_STRING_LIST_MAP: StaticOperationSchema = ( + 23, + n1, + _s559, + {_s514: MappingProxyType({"uri": "/StringListMap", "method": "POST"})}, + QUERY_PARAMS_AS_STRING_LIST_MAP_INPUT, + QUERY_PARAMS_AS_STRING_LIST_MAP_OUTPUT, + (), +) diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_1.py b/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_1.py new file mode 100644 index 000000000..481772e77 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_1.py @@ -0,0 +1,1181 @@ +from types import MappingProxyType + +from smithy_core._schema_compact import StaticOperationSchema, StaticSchema + +from . import schemas + +n0 = "aws.protocoltests.shared" +_s1 = "member" +_s10 = "smithy.api#enumValue" +_s27 = "key" +_s28 = "value" +n1 = "aws.protocoltests.restxml" +_s30 = "smithy.synthetic#originalShapeId" +_s32 = "smithy.api#input" +_s34 = "smithy.api#httpQuery" +_s72 = "smithy.api#httpHeader" +_s78 = "baz" +_s87 = "smithy.api#output" +_s99 = "smithy.api#xmlName" +_s100 = "K" +_s101 = "V" +_s103 = "smithy.api#xmlNamespace" +_s106 = "myMap" +_s107 = "smithy.api#xmlFlattened" +_s108 = "KVP" +_s114 = "greeting" +_s119 = "smithy.api#httpPrefixHeaders" +_s130 = "foo" +_s139 = "smithy.api#required" +_s166 = "name" +_s180 = "PayloadWithXmlName" +_s181 = "Hello" +_s198 = "QueryPrecedenceInput" +_s199 = "aws.protocoltests.restxml#QueryPrecedenceInput" +_s200 = "bar" +_s201 = "RenamedListMembers" +_s202 = "item" +_s203 = "StringEnum" +_s204 = "enumvalue" +_s205 = "StructureListMember" +_s206 = "a" +_s207 = "b" +_s208 = "other" +_s209 = "StructureList" +_s210 = "UnionPayload" +_s211 = "XmlAttributesInMiddlePayloadRequest" +_s212 = "attr" +_s213 = "smithy.api#xmlAttribute" +_s214 = "test" +_s215 = "XmlAttributesInMiddlePayloadResponse" +_s216 = "XmlAttributesPayloadRequest" +_s217 = "XmlAttributesPayloadResponse" +_s218 = "XmlMapWithXmlNamespaceInputOutputMap" +_s219 = "GreetingStruct" +_s220 = "hi" +_s221 = "XmlMapsInputOutputMap" +_s222 = "XmlMapsXmlNameInputOutputMap" +_s223 = "Attribute" +_s224 = "Setting" +_s225 = "XmlNamespacedList" +_s226 = "XmlNamespaceNested" +_s227 = "values" +_s228 = "XmlNestedUnionStruct" +_s229 = "stringValue" +_s230 = "booleanValue" +_s231 = "byteValue" +_s232 = "shortValue" +_s233 = "integerValue" +_s234 = "longValue" +_s235 = "floatValue" +_s236 = "doubleValue" +_s237 = "FooEnumSet" +_s238 = "IntegerEnumMap" +_s239 = "IntegerEnumSet" +_s240 = "NestedStringList" +_s241 = "TextPlainBlob" +_s242 = "smithy.api#mediaType" +_s243 = "text/plain" +_s245 = "smithy.api#Unit" +_s246 = "BodyWithXmlNameInput" +_s247 = "Ahoy" +_s248 = "aws.protocoltests.restxml#BodyWithXmlNameInputOutput" +_s249 = "nested" +_s250 = "BodyWithXmlNameOutput" +_s254 = "EndpointOperationInput" +_s255 = "EndpointOperationOutput" +_s256 = "EndpointWithHostLabelHeaderOperationInput" +_s257 = "aws.protocoltests.restxml#HostLabelHeaderInput" +_s258 = "accountId" +_s259 = "X-Amz-Account-Id" +_s260 = "smithy.api#hostLabel" +_s261 = "EndpointWithHostLabelHeaderOperationOutput" +_s262 = "EndpointWithHostLabelOperationInput" +_s263 = "aws.protocoltests.restxml#EndpointWithHostLabelOperationRequest" +_s264 = "label" +_s265 = "EndpointWithHostLabelOperationOutput" +_s266 = "FlattenedXmlMapInput" +_s267 = "aws.protocoltests.restxml#FlattenedXmlMapRequest" +_s268 = "FlattenedXmlMapOutput" +_s269 = "aws.protocoltests.restxml#FlattenedXmlMapResponse" +_s270 = "FlattenedXmlMapWithXmlNameInput" +_s271 = "aws.protocoltests.restxml#FlattenedXmlMapWithXmlNameRequest" +_s272 = "FlattenedXmlMapWithXmlNameOutput" +_s273 = "aws.protocoltests.restxml#FlattenedXmlMapWithXmlNameResponse" +_s277 = "HttpEnumPayloadInput" +_s278 = "aws.protocoltests.restxml#EnumPayloadInput" +_s279 = "payload" +_s280 = "HttpEnumPayloadOutput" +_s281 = "HttpPayloadTraitsInput" +_s282 = "aws.protocoltests.restxml#HttpPayloadTraitsInputOutput" +_s283 = "X-Foo" +_s284 = "blob" +_s285 = "HttpPayloadTraitsOutput" +_s286 = "HttpPayloadTraitsWithMediaTypeInput" +_s287 = "aws.protocoltests.restxml#HttpPayloadTraitsWithMediaTypeInputOutput" +_s288 = "HttpPayloadTraitsWithMediaTypeOutput" +_s289 = "HttpPayloadWithMemberXmlNameInput" +_s290 = "aws.protocoltests.restxml#HttpPayloadWithMemberXmlNameInputOutput" +_s291 = "Hola" +_s292 = "smithy.api#httpPayload" +_s293 = "HttpPayloadWithMemberXmlNameOutput" +_s294 = "HttpPayloadWithStructureInput" +_s295 = "aws.protocoltests.restxml#HttpPayloadWithStructureInputOutput" +_s296 = "HttpPayloadWithStructureOutput" +_s297 = "HttpPayloadWithUnionInput" +_s298 = "aws.protocoltests.restxml#HttpPayloadWithUnionInputOutput" +_s299 = "HttpPayloadWithUnionOutput" +_s300 = "HttpPayloadWithXmlNameInput" +_s301 = "aws.protocoltests.restxml#HttpPayloadWithXmlNameInputOutput" +_s302 = "HttpPayloadWithXmlNameOutput" +_s303 = "HttpPayloadWithXmlNamespaceInput" +_s304 = "aws.protocoltests.restxml#HttpPayloadWithXmlNamespaceInputOutput" +_s305 = "HttpPayloadWithXmlNamespaceOutput" +_s306 = "HttpPayloadWithXmlNamespaceAndPrefixInput" +_s307 = "aws.protocoltests.restxml#HttpPayloadWithXmlNamespaceAndPrefixInputOutput" +_s308 = "HttpPayloadWithXmlNamespaceAndPrefixOutput" +_s309 = "HttpPrefixHeadersInput" +_s310 = "aws.protocoltests.restxml#HttpPrefixHeadersInputOutput" +_s311 = "x-foo" +_s312 = "fooMap" +_s313 = "x-foo-" +_s314 = "HttpPrefixHeadersOutput" +_s320 = "HttpStringPayloadInput" +_s321 = "aws.protocoltests.restxml#StringPayloadInput" +_s322 = "HttpStringPayloadOutput" +_s324 = "InputAndOutputWithHeadersInput" +_s325 = "aws.protocoltests.restxml#InputAndOutputWithHeadersIO" +_s326 = "headerString" +_s327 = "X-String" +_s328 = "headerByte" +_s329 = "X-Byte" +_s330 = "headerShort" +_s331 = "X-Short" +_s332 = "headerInteger" +_s333 = "X-Integer" +_s334 = "headerLong" +_s335 = "X-Long" +_s336 = "headerFloat" +_s337 = "X-Float" +_s338 = "headerDouble" +_s339 = "X-Double" +_s340 = "headerTrueBool" +_s341 = "X-Boolean1" +_s342 = "headerFalseBool" +_s343 = "X-Boolean2" +_s344 = "headerStringList" +_s345 = "X-StringList" +_s346 = "headerStringSet" +_s347 = "X-StringSet" +_s348 = "headerIntegerList" +_s349 = "X-IntegerList" +_s350 = "headerBooleanList" +_s351 = "X-BooleanList" +_s352 = "headerTimestampList" +_s353 = "X-TimestampList" +_s354 = "headerEnum" +_s355 = "X-Enum" +_s356 = "headerEnumList" +_s357 = "X-EnumList" +_s358 = "InputAndOutputWithHeadersOutput" +_s359 = "NestedXmlMapWithXmlNameInput" +_s360 = "aws.protocoltests.restxml#NestedXmlMapWithXmlNameRequest" +_s361 = "nestedXmlMapWithXmlNameMap" +_s362 = "NestedXmlMapWithXmlNameOutput" +_s363 = "aws.protocoltests.restxml#NestedXmlMapWithXmlNameResponse" +_s364 = "NestedXmlMapsInput" +_s365 = "aws.protocoltests.restxml#NestedXmlMapsRequest" +_s366 = "nestedMap" +_s367 = "flatNestedMap" +_s368 = "NestedXmlMapsOutput" +_s369 = "aws.protocoltests.restxml#NestedXmlMapsResponse" +_s370 = "NoInputAndNoOutputInput" +_s371 = "NoInputAndNoOutputOutput" +_s373 = "NullAndEmptyHeadersClientInput" +_s374 = "aws.protocoltests.restxml#NullAndEmptyHeadersIO" +_s375 = "X-A" +_s376 = "X-B" +_s377 = "c" +_s378 = "X-C" +_s379 = "NullAndEmptyHeadersClientOutput" +_s386 = "QueryPrecedenceOutput" +_s514 = "smithy.api#http" +_s515 = "BodyWithXmlName" +_s521 = "EndpointOperation" +_s522 = "smithy.api#endpoint" +_s523 = "EndpointWithHostLabelHeaderOperation" +_s524 = "EndpointWithHostLabelOperation" +_s525 = "FlattenedXmlMap" +_s526 = "FlattenedXmlMapWithXmlName" +_s531 = "HttpEnumPayload" +_s532 = "HttpPayloadTraits" +_s533 = "HttpPayloadTraitsWithMediaType" +_s534 = "HttpPayloadWithMemberXmlName" +_s535 = "HttpPayloadWithStructure" +_s536 = "HttpPayloadWithUnion" +_s537 = "HttpPayloadWithXmlName" +_s538 = "HttpPayloadWithXmlNamespace" +_s539 = "HttpPayloadWithXmlNamespaceAndPrefix" +_s540 = "HttpPrefixHeaders" +_s546 = "HttpStringPayload" +_s548 = "InputAndOutputWithHeaders" +_s549 = "NestedXmlMapWithXmlName" +_s550 = "NestedXmlMaps" +_s551 = "NoInputAndNoOutput" +_s553 = "NullAndEmptyHeadersClient" +_s560 = "QueryPrecedence" + +PAYLOAD_WITH_XML_NAME: StaticSchema = ( + 18, + n1, + _s180, + {_s99: _s181}, + (_s166,), + ((3, 0),), +) + +QUERY_PRECEDENCE_INPUT: StaticSchema = ( + 18, + n1, + _s198, + {_s30: _s199, _s32: None}, + (_s130, _s78), + ((3, {_s34: _s200}), (lambda: schemas.STRING_MAP, 1024)), +) + +QUERY_PRECEDENCE_OUTPUT: StaticSchema = ( + 18, + n1, + _s386, + {_s30: _s245, _s87: None}, +) + +QUERY_PRECEDENCE: StaticOperationSchema = ( + 23, + n1, + _s560, + {_s514: MappingProxyType({"uri": "/Precedence", "method": "POST"})}, + QUERY_PRECEDENCE_INPUT, + QUERY_PRECEDENCE_OUTPUT, + (), +) + +RENAMED_LIST_MEMBERS: StaticSchema = ( + 16, + n1, + _s201, + 0, + (_s1,), + ((3, {_s99: _s202}),), +) + +STRING_ENUM: StaticSchema = ( + 14, + n1, + _s203, + 0, + (_s101,), + ((-1, {_s10: _s204}),), +) + +STRUCTURE_LIST_MEMBER: StaticSchema = ( + 18, + n1, + _s205, + 0, + (_s206, _s207), + ((3, {_s99: _s28}), (3, {_s99: _s208})), +) + +STRUCTURE_LIST: StaticSchema = ( + 16, + n1, + _s209, + 0, + (_s1,), + ((STRUCTURE_LIST_MEMBER, {_s99: _s202}),), +) + +UNION_PAYLOAD: StaticSchema = ( + 19, + n1, + _s210, + 0, + (_s114,), + ((3, 0),), +) + +XML_ATTRIBUTES_IN_MIDDLE_PAYLOAD_REQUEST: StaticSchema = ( + 18, + n1, + _s211, + 0, + (_s130, _s212, _s78), + ((3, 0), (3, {_s213: None, _s99: _s214}), (3, 0)), +) + +XML_ATTRIBUTES_IN_MIDDLE_PAYLOAD_RESPONSE: StaticSchema = ( + 18, + n1, + _s215, + 0, + (_s130, _s212, _s78), + ((3, 0), (3, {_s213: None, _s99: _s214}), (3, 0)), +) + +XML_ATTRIBUTES_PAYLOAD_REQUEST: StaticSchema = ( + 18, + n1, + _s216, + 0, + (_s130, _s212), + ((3, 0), (3, {_s213: None, _s99: _s214})), +) + +XML_ATTRIBUTES_PAYLOAD_RESPONSE: StaticSchema = ( + 18, + n1, + _s217, + 0, + (_s130, _s212), + ((3, 0), (3, {_s213: None, _s99: _s214})), +) + +XML_MAP_WITH_XML_NAMESPACE_INPUT_OUTPUT_MAP: StaticSchema = ( + 17, + n1, + _s218, + 0, + (_s27, _s28), + ( + ( + 3, + { + _s99: _s100, + _s103: MappingProxyType({"uri": "https://the-key.example.com"}), + }, + ), + ( + 3, + { + _s99: _s101, + _s103: MappingProxyType({"uri": "https://the-value.example.com"}), + }, + ), + ), +) + +GREETING_STRUCT: StaticSchema = ( + 18, + n0, + _s219, + 0, + (_s220,), + ((3, 0),), +) + +XML_MAPS_INPUT_OUTPUT_MAP: StaticSchema = ( + 17, + n1, + _s221, + 0, + (_s27, _s28), + ((3, 0), (GREETING_STRUCT, 0)), +) + +XML_MAPS_XML_NAME_INPUT_OUTPUT_MAP: StaticSchema = ( + 17, + n1, + _s222, + 0, + (_s27, _s28), + ((3, {_s99: _s223}), (GREETING_STRUCT, {_s99: _s224})), +) + +XML_NAMESPACED_LIST: StaticSchema = ( + 16, + n1, + _s225, + 0, + (_s1,), + ((3, {_s103: MappingProxyType({"uri": "http://bux.com"})}),), +) + +XML_NAMESPACE_NESTED: StaticSchema = ( + 18, + n1, + _s226, + {_s103: MappingProxyType({"uri": "http://foo.com"})}, + (_s130, _s227), + ( + (3, {_s103: MappingProxyType({"uri": "http://baz.com", "prefix": "baz"})}), + (XML_NAMESPACED_LIST, {_s103: MappingProxyType({"uri": "http://qux.com"})}), + ), +) + +XML_NESTED_UNION_STRUCT: StaticSchema = ( + 18, + n1, + _s228, + 0, + (_s229, _s230, _s231, _s232, _s233, _s234, _s235, _s236), + ((3, 0), (2, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0)), +) + +FOO_ENUM_SET: StaticSchema = ( + 16, + n0, + _s237, + 0, + (_s1,), + ((lambda: schemas.FOO_ENUM, 0),), +) + +INTEGER_ENUM_MAP: StaticSchema = ( + 17, + n0, + _s238, + 0, + (_s27, _s28), + ((3, 0), (lambda: schemas.INTEGER_ENUM, 0)), +) + +INTEGER_ENUM_SET: StaticSchema = ( + 16, + n0, + _s239, + 0, + (_s1,), + ((lambda: schemas.INTEGER_ENUM, 0),), +) + +NESTED_STRING_LIST: StaticSchema = ( + 16, + n0, + _s240, + 0, + (_s1,), + ((lambda: schemas.STRING_LIST, 0),), +) + +TEXT_PLAIN_BLOB: StaticSchema = ( + 1, + n0, + _s241, + {_s242: _s243}, +) + +BODY_WITH_XML_NAME_INPUT: StaticSchema = ( + 18, + n1, + _s246, + {_s99: _s247, _s30: _s248, _s32: None}, + (_s249,), + ((PAYLOAD_WITH_XML_NAME, 0),), +) + +BODY_WITH_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n1, + _s250, + {_s99: _s247, _s30: _s248, _s87: None}, + (_s249,), + ((PAYLOAD_WITH_XML_NAME, 0),), +) + +BODY_WITH_XML_NAME: StaticOperationSchema = ( + 23, + n1, + _s515, + {_s514: MappingProxyType({"uri": "/BodyWithXmlName", "method": "PUT"})}, + BODY_WITH_XML_NAME_INPUT, + BODY_WITH_XML_NAME_OUTPUT, + (), +) + +ENDPOINT_OPERATION_INPUT: StaticSchema = ( + 18, + n1, + _s254, + {_s30: _s245, _s32: None}, +) + +ENDPOINT_OPERATION_OUTPUT: StaticSchema = ( + 18, + n1, + _s255, + {_s30: _s245, _s87: None}, +) + +ENDPOINT_OPERATION: StaticOperationSchema = ( + 23, + n1, + _s521, + { + _s522: MappingProxyType({"hostPrefix": "foo."}), + _s514: MappingProxyType({"uri": "/EndpointOperation", "method": "POST"}), + }, + ENDPOINT_OPERATION_INPUT, + ENDPOINT_OPERATION_OUTPUT, + (), +) + +ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION_INPUT: StaticSchema = ( + 18, + n1, + _s256, + {_s30: _s257, _s32: None}, + (_s258,), + ((3, {_s72: _s259, _s260: None, _s139: None}),), +) + +ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION_OUTPUT: StaticSchema = ( + 18, + n1, + _s261, + {_s30: _s245, _s87: None}, +) + +ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION: StaticOperationSchema = ( + 23, + n1, + _s523, + { + _s522: MappingProxyType({"hostPrefix": "{accountId}."}), + _s514: MappingProxyType( + {"uri": "/EndpointWithHostLabelHeaderOperation", "method": "POST"} + ), + }, + ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION_INPUT, + ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION_OUTPUT, + (), +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT: StaticSchema = ( + 18, + n1, + _s262, + {_s30: _s263, _s32: None}, + (_s264,), + ((3, 257),), +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT: StaticSchema = ( + 18, + n1, + _s265, + {_s30: _s245, _s87: None}, +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION: StaticOperationSchema = ( + 23, + n1, + _s524, + { + _s522: MappingProxyType({"hostPrefix": "foo.{label}."}), + _s514: MappingProxyType( + {"uri": "/EndpointWithHostLabelOperation", "method": "POST"} + ), + }, + ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT, + ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT, + (), +) + +FLATTENED_XML_MAP_INPUT: StaticSchema = ( + 18, + n1, + _s266, + {_s30: _s267, _s32: None}, + (_s106,), + ((lambda: schemas.FOO_ENUM_MAP, {_s107: None}),), +) + +FLATTENED_XML_MAP_OUTPUT: StaticSchema = ( + 18, + n1, + _s268, + {_s30: _s269, _s87: None}, + (_s106,), + ((lambda: schemas.FOO_ENUM_MAP, {_s107: None}),), +) + +FLATTENED_XML_MAP: StaticOperationSchema = ( + 23, + n1, + _s525, + {_s514: MappingProxyType({"uri": "/FlattenedXmlMap", "method": "POST"})}, + FLATTENED_XML_MAP_INPUT, + FLATTENED_XML_MAP_OUTPUT, + (), +) + +FLATTENED_XML_MAP_WITH_XML_NAME_INPUT: StaticSchema = ( + 18, + n1, + _s270, + {_s30: _s271, _s32: None}, + (_s106,), + ( + ( + lambda: schemas.FLATTENED_XML_MAP_WITH_XML_NAME_INPUT_OUTPUT_MAP, + {_s107: None, _s99: _s108}, + ), + ), +) + +FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n1, + _s272, + {_s30: _s273, _s87: None}, + (_s106,), + ( + ( + lambda: schemas.FLATTENED_XML_MAP_WITH_XML_NAME_INPUT_OUTPUT_MAP, + {_s107: None, _s99: _s108}, + ), + ), +) + +FLATTENED_XML_MAP_WITH_XML_NAME: StaticOperationSchema = ( + 23, + n1, + _s526, + {_s514: MappingProxyType({"uri": "/FlattenedXmlMapWithXmlName", "method": "POST"})}, + FLATTENED_XML_MAP_WITH_XML_NAME_INPUT, + FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT, + (), +) + +HTTP_ENUM_PAYLOAD_INPUT: StaticSchema = ( + 18, + n1, + _s277, + {_s30: _s278, _s32: None}, + (_s279,), + ((STRING_ENUM, 16),), +) + +HTTP_ENUM_PAYLOAD_OUTPUT: StaticSchema = ( + 18, + n1, + _s280, + {_s30: _s278, _s87: None}, + (_s279,), + ((STRING_ENUM, 16),), +) + +HTTP_ENUM_PAYLOAD: StaticOperationSchema = ( + 23, + n1, + _s531, + {_s514: MappingProxyType({"uri": "/EnumPayload", "method": "POST"})}, + HTTP_ENUM_PAYLOAD_INPUT, + HTTP_ENUM_PAYLOAD_OUTPUT, + (), +) + +HTTP_PAYLOAD_TRAITS_INPUT: StaticSchema = ( + 18, + n1, + _s281, + {_s30: _s282, _s32: None}, + (_s130, _s284), + ((3, {_s72: _s283}), (1, 16)), +) + +HTTP_PAYLOAD_TRAITS_OUTPUT: StaticSchema = ( + 18, + n1, + _s285, + {_s30: _s282, _s87: None}, + (_s130, _s284), + ((3, {_s72: _s283}), (1, 16)), +) + +HTTP_PAYLOAD_TRAITS: StaticOperationSchema = ( + 23, + n1, + _s532, + {_s514: MappingProxyType({"uri": "/HttpPayloadTraits", "method": "POST"})}, + HTTP_PAYLOAD_TRAITS_INPUT, + HTTP_PAYLOAD_TRAITS_OUTPUT, + (), +) + +HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE_INPUT: StaticSchema = ( + 18, + n1, + _s286, + {_s30: _s287, _s32: None}, + (_s130, _s284), + ((3, {_s72: _s283}), (TEXT_PLAIN_BLOB, 16)), +) + +HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE_OUTPUT: StaticSchema = ( + 18, + n1, + _s288, + {_s30: _s287, _s87: None}, + (_s130, _s284), + ((3, {_s72: _s283}), (TEXT_PLAIN_BLOB, 16)), +) + +HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE: StaticOperationSchema = ( + 23, + n1, + _s533, + { + _s514: MappingProxyType( + {"uri": "/HttpPayloadTraitsWithMediaType", "method": "POST"} + ) + }, + HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE_INPUT, + HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE_OUTPUT, + (), +) + +HTTP_PAYLOAD_WITH_MEMBER_XML_NAME_INPUT: StaticSchema = ( + 18, + n1, + _s289, + {_s30: _s290, _s32: None}, + (_s249,), + ((PAYLOAD_WITH_XML_NAME, {_s99: _s291, _s292: None}),), +) + +HTTP_PAYLOAD_WITH_MEMBER_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n1, + _s293, + {_s30: _s290, _s87: None}, + (_s249,), + ((PAYLOAD_WITH_XML_NAME, {_s99: _s291, _s292: None}),), +) + +HTTP_PAYLOAD_WITH_MEMBER_XML_NAME: StaticOperationSchema = ( + 23, + n1, + _s534, + { + _s514: MappingProxyType( + {"uri": "/HttpPayloadWithMemberXmlName", "method": "PUT"} + ) + }, + HTTP_PAYLOAD_WITH_MEMBER_XML_NAME_INPUT, + HTTP_PAYLOAD_WITH_MEMBER_XML_NAME_OUTPUT, + (), +) + +HTTP_PAYLOAD_WITH_STRUCTURE_INPUT: StaticSchema = ( + 18, + n1, + _s294, + {_s30: _s295, _s32: None}, + (_s249,), + ((lambda: schemas.NESTED_PAYLOAD, 16),), +) + +HTTP_PAYLOAD_WITH_STRUCTURE_OUTPUT: StaticSchema = ( + 18, + n1, + _s296, + {_s30: _s295, _s87: None}, + (_s249,), + ((lambda: schemas.NESTED_PAYLOAD, 16),), +) + +HTTP_PAYLOAD_WITH_STRUCTURE: StaticOperationSchema = ( + 23, + n1, + _s535, + {_s514: MappingProxyType({"uri": "/HttpPayloadWithStructure", "method": "PUT"})}, + HTTP_PAYLOAD_WITH_STRUCTURE_INPUT, + HTTP_PAYLOAD_WITH_STRUCTURE_OUTPUT, + (), +) + +HTTP_PAYLOAD_WITH_UNION_INPUT: StaticSchema = ( + 18, + n1, + _s297, + {_s30: _s298, _s32: None}, + (_s249,), + ((UNION_PAYLOAD, 16),), +) + +HTTP_PAYLOAD_WITH_UNION_OUTPUT: StaticSchema = ( + 18, + n1, + _s299, + {_s30: _s298, _s87: None}, + (_s249,), + ((UNION_PAYLOAD, 16),), +) + +HTTP_PAYLOAD_WITH_UNION: StaticOperationSchema = ( + 23, + n1, + _s536, + {_s514: MappingProxyType({"uri": "/HttpPayloadWithUnion", "method": "PUT"})}, + HTTP_PAYLOAD_WITH_UNION_INPUT, + HTTP_PAYLOAD_WITH_UNION_OUTPUT, + (), +) + +HTTP_PAYLOAD_WITH_XML_NAME_INPUT: StaticSchema = ( + 18, + n1, + _s300, + {_s30: _s301, _s32: None}, + (_s249,), + ((PAYLOAD_WITH_XML_NAME, 16),), +) + +HTTP_PAYLOAD_WITH_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n1, + _s302, + {_s30: _s301, _s87: None}, + (_s249,), + ((PAYLOAD_WITH_XML_NAME, 16),), +) + +HTTP_PAYLOAD_WITH_XML_NAME: StaticOperationSchema = ( + 23, + n1, + _s537, + {_s514: MappingProxyType({"uri": "/HttpPayloadWithXmlName", "method": "PUT"})}, + HTTP_PAYLOAD_WITH_XML_NAME_INPUT, + HTTP_PAYLOAD_WITH_XML_NAME_OUTPUT, + (), +) + +HTTP_PAYLOAD_WITH_XML_NAMESPACE_INPUT: StaticSchema = ( + 18, + n1, + _s303, + {_s30: _s304, _s32: None}, + (_s249,), + ((lambda: schemas.PAYLOAD_WITH_XML_NAMESPACE, 16),), +) + +HTTP_PAYLOAD_WITH_XML_NAMESPACE_OUTPUT: StaticSchema = ( + 18, + n1, + _s305, + {_s30: _s304, _s87: None}, + (_s249,), + ((lambda: schemas.PAYLOAD_WITH_XML_NAMESPACE, 16),), +) + +HTTP_PAYLOAD_WITH_XML_NAMESPACE: StaticOperationSchema = ( + 23, + n1, + _s538, + {_s514: MappingProxyType({"uri": "/HttpPayloadWithXmlNamespace", "method": "PUT"})}, + HTTP_PAYLOAD_WITH_XML_NAMESPACE_INPUT, + HTTP_PAYLOAD_WITH_XML_NAMESPACE_OUTPUT, + (), +) + +HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX_INPUT: StaticSchema = ( + 18, + n1, + _s306, + {_s30: _s307, _s32: None}, + (_s249,), + ((lambda: schemas.PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX, 16),), +) + +HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX_OUTPUT: StaticSchema = ( + 18, + n1, + _s308, + {_s30: _s307, _s87: None}, + (_s249,), + ((lambda: schemas.PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX, 16),), +) + +HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX: StaticOperationSchema = ( + 23, + n1, + _s539, + { + _s514: MappingProxyType( + {"uri": "/HttpPayloadWithXmlNamespaceAndPrefix", "method": "PUT"} + ) + }, + HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX_INPUT, + HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX_OUTPUT, + (), +) + +HTTP_PREFIX_HEADERS_INPUT: StaticSchema = ( + 18, + n1, + _s309, + {_s30: _s310, _s32: None}, + (_s130, _s312), + ((3, {_s72: _s311}), (lambda: schemas.FOO_PREFIX_HEADERS, {_s119: _s313})), +) + +HTTP_PREFIX_HEADERS_OUTPUT: StaticSchema = ( + 18, + n1, + _s314, + {_s30: _s310, _s87: None}, + (_s130, _s312), + ((3, {_s72: _s311}), (lambda: schemas.FOO_PREFIX_HEADERS, {_s119: _s313})), +) + +HTTP_PREFIX_HEADERS: StaticOperationSchema = ( + 23, + n1, + _s540, + {_s514: MappingProxyType({"uri": "/HttpPrefixHeaders", "method": "GET"})}, + HTTP_PREFIX_HEADERS_INPUT, + HTTP_PREFIX_HEADERS_OUTPUT, + (), +) + +HTTP_STRING_PAYLOAD_INPUT: StaticSchema = ( + 18, + n1, + _s320, + {_s30: _s321, _s32: None}, + (_s279,), + ((3, 16),), +) + +HTTP_STRING_PAYLOAD_OUTPUT: StaticSchema = ( + 18, + n1, + _s322, + {_s30: _s321, _s87: None}, + (_s279,), + ((3, 16),), +) + +HTTP_STRING_PAYLOAD: StaticOperationSchema = ( + 23, + n1, + _s546, + {_s514: MappingProxyType({"uri": "/StringPayload", "method": "POST"})}, + HTTP_STRING_PAYLOAD_INPUT, + HTTP_STRING_PAYLOAD_OUTPUT, + (), +) + +INPUT_AND_OUTPUT_WITH_HEADERS_INPUT: StaticSchema = ( + 18, + n1, + _s324, + {_s30: _s325, _s32: None}, + ( + _s326, + _s328, + _s330, + _s332, + _s334, + _s336, + _s338, + _s340, + _s342, + _s344, + _s346, + _s348, + _s350, + _s352, + _s354, + _s356, + ), + ( + (3, {_s72: _s327}), + (5, {_s72: _s329}), + (6, {_s72: _s331}), + (7, {_s72: _s333}), + (8, {_s72: _s335}), + (9, {_s72: _s337}), + (10, {_s72: _s339}), + (2, {_s72: _s341}), + (2, {_s72: _s343}), + (lambda: schemas.STRING_LIST, {_s72: _s345}), + (lambda: schemas.STRING_SET, {_s72: _s347}), + (lambda: schemas.INTEGER_LIST, {_s72: _s349}), + (lambda: schemas.BOOLEAN_LIST, {_s72: _s351}), + (lambda: schemas.TIMESTAMP_LIST, {_s72: _s353}), + (lambda: schemas.FOO_ENUM, {_s72: _s355}), + (lambda: schemas.FOO_ENUM_LIST, {_s72: _s357}), + ), +) + +INPUT_AND_OUTPUT_WITH_HEADERS_OUTPUT: StaticSchema = ( + 18, + n1, + _s358, + {_s30: _s325, _s87: None}, + ( + _s326, + _s328, + _s330, + _s332, + _s334, + _s336, + _s338, + _s340, + _s342, + _s344, + _s346, + _s348, + _s350, + _s352, + _s354, + _s356, + ), + ( + (3, {_s72: _s327}), + (5, {_s72: _s329}), + (6, {_s72: _s331}), + (7, {_s72: _s333}), + (8, {_s72: _s335}), + (9, {_s72: _s337}), + (10, {_s72: _s339}), + (2, {_s72: _s341}), + (2, {_s72: _s343}), + (lambda: schemas.STRING_LIST, {_s72: _s345}), + (lambda: schemas.STRING_SET, {_s72: _s347}), + (lambda: schemas.INTEGER_LIST, {_s72: _s349}), + (lambda: schemas.BOOLEAN_LIST, {_s72: _s351}), + (lambda: schemas.TIMESTAMP_LIST, {_s72: _s353}), + (lambda: schemas.FOO_ENUM, {_s72: _s355}), + (lambda: schemas.FOO_ENUM_LIST, {_s72: _s357}), + ), +) + +INPUT_AND_OUTPUT_WITH_HEADERS: StaticOperationSchema = ( + 23, + n1, + _s548, + {_s514: MappingProxyType({"uri": "/InputAndOutputWithHeaders", "method": "POST"})}, + INPUT_AND_OUTPUT_WITH_HEADERS_INPUT, + INPUT_AND_OUTPUT_WITH_HEADERS_OUTPUT, + (), +) + +NESTED_XML_MAP_WITH_XML_NAME_INPUT: StaticSchema = ( + 18, + n1, + _s359, + {_s30: _s360, _s32: None}, + (_s361,), + ((lambda: schemas.NESTED_XML_MAP_WITH_XML_NAME_MAP, 0),), +) + +NESTED_XML_MAP_WITH_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n1, + _s362, + {_s30: _s363, _s87: None}, + (_s361,), + ((lambda: schemas.NESTED_XML_MAP_WITH_XML_NAME_MAP, 0),), +) + +NESTED_XML_MAP_WITH_XML_NAME: StaticOperationSchema = ( + 23, + n1, + _s549, + {_s514: MappingProxyType({"uri": "/NestedXmlMapWithXmlName", "method": "POST"})}, + NESTED_XML_MAP_WITH_XML_NAME_INPUT, + NESTED_XML_MAP_WITH_XML_NAME_OUTPUT, + (), +) + +NESTED_XML_MAPS_INPUT: StaticSchema = ( + 18, + n1, + _s364, + {_s30: _s365, _s32: None}, + (_s366, _s367), + ((lambda: schemas.NESTED_MAP, 0), (lambda: schemas.NESTED_MAP, {_s107: None})), +) + +NESTED_XML_MAPS_OUTPUT: StaticSchema = ( + 18, + n1, + _s368, + {_s30: _s369, _s87: None}, + (_s366, _s367), + ((lambda: schemas.NESTED_MAP, 0), (lambda: schemas.NESTED_MAP, {_s107: None})), +) + +NESTED_XML_MAPS: StaticOperationSchema = ( + 23, + n1, + _s550, + {_s514: MappingProxyType({"uri": "/NestedXmlMaps", "method": "POST"})}, + NESTED_XML_MAPS_INPUT, + NESTED_XML_MAPS_OUTPUT, + (), +) + +NO_INPUT_AND_NO_OUTPUT_INPUT: StaticSchema = ( + 18, + n1, + _s370, + {_s30: _s245, _s32: None}, +) + +NO_INPUT_AND_NO_OUTPUT_OUTPUT: StaticSchema = ( + 18, + n1, + _s371, + {_s30: _s245, _s87: None}, +) + +NO_INPUT_AND_NO_OUTPUT: StaticOperationSchema = ( + 23, + n1, + _s551, + {_s514: MappingProxyType({"uri": "/NoInputAndNoOutput", "method": "POST"})}, + NO_INPUT_AND_NO_OUTPUT_INPUT, + NO_INPUT_AND_NO_OUTPUT_OUTPUT, + (), +) + +NULL_AND_EMPTY_HEADERS_CLIENT_INPUT: StaticSchema = ( + 18, + n1, + _s373, + {_s30: _s374, _s32: None}, + (_s206, _s207, _s377), + ( + (3, {_s72: _s375}), + (3, {_s72: _s376}), + (lambda: schemas.STRING_LIST, {_s72: _s378}), + ), +) + +NULL_AND_EMPTY_HEADERS_CLIENT_OUTPUT: StaticSchema = ( + 18, + n1, + _s379, + {_s30: _s374, _s87: None}, + (_s206, _s207, _s377), + ( + (3, {_s72: _s375}), + (3, {_s72: _s376}), + (lambda: schemas.STRING_LIST, {_s72: _s378}), + ), +) + +NULL_AND_EMPTY_HEADERS_CLIENT: StaticOperationSchema = ( + 23, + n1, + _s553, + {_s514: MappingProxyType({"uri": "/NullAndEmptyHeadersClient", "method": "GET"})}, + NULL_AND_EMPTY_HEADERS_CLIENT_INPUT, + NULL_AND_EMPTY_HEADERS_CLIENT_OUTPUT, + (), +) diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_2.py b/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_2.py new file mode 100644 index 000000000..743a5bce8 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/_private/schemas_2.py @@ -0,0 +1,1082 @@ +from types import MappingProxyType + +from smithy_core._schema_compact import StaticOperationSchema, StaticSchema + +from . import schemas + +n1 = "aws.protocoltests.restxml" +_s30 = "smithy.synthetic#originalShapeId" +_s32 = "smithy.api#input" +_s72 = "smithy.api#httpHeader" +_s87 = "smithy.api#output" +_s89 = "smithy.api#timestampFormat" +_s90 = "date-time" +_s99 = "smithy.api#xmlName" +_s103 = "smithy.api#xmlNamespace" +_s106 = "myMap" +_s107 = "smithy.api#xmlFlattened" +_s108 = "KVP" +_s130 = "foo" +_s132 = "epoch-seconds" +_s134 = "http-date" +_s137 = "memberEpochSeconds" +_s140 = "memberHttpDate" +_s141 = "memberDateTime" +_s142 = "defaultFormat" +_s143 = "targetEpochSeconds" +_s144 = "targetHttpDate" +_s145 = "targetDateTime" +_s178 = "emptyString" +_s188 = "data" +_s200 = "bar" +_s206 = "a" +_s207 = "b" +_s212 = "attr" +_s213 = "smithy.api#xmlAttribute" +_s214 = "test" +_s229 = "stringValue" +_s230 = "booleanValue" +_s231 = "byteValue" +_s232 = "shortValue" +_s233 = "integerValue" +_s234 = "longValue" +_s235 = "floatValue" +_s236 = "doubleValue" +_s249 = "nested" +_s279 = "payload" +_s283 = "X-Foo" +_s374 = "aws.protocoltests.restxml#NullAndEmptyHeadersIO" +_s375 = "X-A" +_s376 = "X-B" +_s377 = "c" +_s378 = "X-C" +_s380 = "NullAndEmptyHeadersServerInput" +_s381 = "NullAndEmptyHeadersServerOutput" +_s387 = "RecursiveShapesInput" +_s388 = "aws.protocoltests.restxml#RecursiveShapesRequest" +_s389 = "RecursiveShapesOutput" +_s390 = "aws.protocoltests.restxml#RecursiveShapesResponse" +_s391 = "SimpleScalarPropertiesInput" +_s392 = "aws.protocoltests.restxml#SimpleScalarPropertiesRequest" +_s393 = "trueBooleanValue" +_s394 = "falseBooleanValue" +_s395 = "DoubleDribble" +_s396 = "SimpleScalarPropertiesOutput" +_s397 = "aws.protocoltests.restxml#SimpleScalarPropertiesResponse" +_s398 = "TimestampFormatHeadersInput" +_s399 = "aws.protocoltests.restxml#TimestampFormatHeadersIO" +_s400 = "X-memberEpochSeconds" +_s401 = "X-memberHttpDate" +_s402 = "X-memberDateTime" +_s403 = "X-defaultFormat" +_s404 = "X-targetEpochSeconds" +_s405 = "X-targetHttpDate" +_s406 = "X-targetDateTime" +_s407 = "TimestampFormatHeadersOutput" +_s408 = "XmlAttributesInput" +_s409 = "aws.protocoltests.restxml#XmlAttributesRequest" +_s410 = "XmlAttributesOutput" +_s411 = "aws.protocoltests.restxml#XmlAttributesResponse" +_s412 = "XmlAttributesInMiddleInput" +_s413 = "aws.protocoltests.restxml#XmlAttributesInMiddleRequest" +_s414 = "XmlAttributesInMiddleOutput" +_s415 = "aws.protocoltests.restxml#XmlAttributesInMiddleResponse" +_s416 = "XmlAttributesOnPayloadInput" +_s417 = "aws.protocoltests.restxml#XmlAttributesOnPayloadRequest" +_s418 = "XmlAttributesOnPayloadOutput" +_s419 = "aws.protocoltests.restxml#XmlAttributesOnPayloadResponse" +_s420 = "XmlBlobsInput" +_s421 = "aws.protocoltests.restxml#XmlBlobsRequest" +_s422 = "XmlBlobsOutput" +_s423 = "aws.protocoltests.restxml#XmlBlobsResponse" +_s424 = "XmlEmptyBlobsInput" +_s425 = "aws.protocoltests.restxml#XmlEmptyBlobsRequest" +_s426 = "XmlEmptyBlobsOutput" +_s427 = "aws.protocoltests.restxml#XmlEmptyBlobsResponse" +_s428 = "XmlEmptyListsInput" +_s429 = "aws.protocoltests.restxml#XmlEmptyListsRequest" +_s430 = "stringList" +_s431 = "stringSet" +_s432 = "integerList" +_s433 = "booleanList" +_s434 = "timestampList" +_s435 = "enumList" +_s436 = "intEnumList" +_s437 = "nestedStringList" +_s438 = "renamedListMembers" +_s439 = "renamed" +_s440 = "flattenedList" +_s441 = "flattenedList2" +_s442 = "customName" +_s443 = "flattenedListWithMemberNamespace" +_s444 = "flattenedListWithNamespace" +_s445 = "structureList" +_s446 = "myStructureList" +_s447 = "flattenedStructureList" +_s448 = "XmlEmptyListsOutput" +_s449 = "aws.protocoltests.restxml#XmlEmptyListsResponse" +_s450 = "XmlEmptyMapsInput" +_s451 = "aws.protocoltests.restxml#XmlEmptyMapsRequest" +_s452 = "XmlEmptyMapsOutput" +_s453 = "aws.protocoltests.restxml#XmlEmptyMapsResponse" +_s454 = "XmlEmptyStringsInput" +_s455 = "aws.protocoltests.restxml#XmlEmptyStringsRequest" +_s456 = "XmlEmptyStringsOutput" +_s457 = "aws.protocoltests.restxml#XmlEmptyStringsResponse" +_s458 = "XmlEnumsInput" +_s459 = "aws.protocoltests.restxml#XmlEnumsRequest" +_s460 = "fooEnum1" +_s461 = "fooEnum2" +_s462 = "fooEnum3" +_s463 = "fooEnumList" +_s464 = "fooEnumSet" +_s465 = "fooEnumMap" +_s466 = "XmlEnumsOutput" +_s467 = "aws.protocoltests.restxml#XmlEnumsResponse" +_s468 = "XmlIntEnumsInput" +_s469 = "aws.protocoltests.restxml#XmlIntEnumsRequest" +_s470 = "intEnum1" +_s471 = "intEnum2" +_s472 = "intEnum3" +_s473 = "intEnumSet" +_s474 = "intEnumMap" +_s475 = "XmlIntEnumsOutput" +_s476 = "aws.protocoltests.restxml#XmlIntEnumsResponse" +_s477 = "XmlListsInput" +_s478 = "aws.protocoltests.restxml#XmlListsRequest" +_s479 = "XmlListsOutput" +_s480 = "aws.protocoltests.restxml#XmlListsResponse" +_s481 = "XmlMapWithXmlNamespaceInput" +_s482 = "aws.protocoltests.restxml#XmlMapWithXmlNamespaceRequest" +_s483 = "XmlMapWithXmlNamespaceOutput" +_s484 = "aws.protocoltests.restxml#XmlMapWithXmlNamespaceResponse" +_s485 = "XmlMapsInput" +_s486 = "aws.protocoltests.restxml#XmlMapsRequest" +_s487 = "XmlMapsOutput" +_s488 = "aws.protocoltests.restxml#XmlMapsResponse" +_s489 = "XmlMapsXmlNameInput" +_s490 = "aws.protocoltests.restxml#XmlMapsXmlNameRequest" +_s491 = "XmlMapsXmlNameOutput" +_s492 = "aws.protocoltests.restxml#XmlMapsXmlNameResponse" +_s493 = "XmlNamespacesInput" +_s494 = "aws.protocoltests.restxml#XmlNamespacesRequest" +_s495 = "XmlNamespacesOutput" +_s496 = "aws.protocoltests.restxml#XmlNamespacesResponse" +_s497 = "XmlTimestampsInput" +_s498 = "aws.protocoltests.restxml#XmlTimestampsRequest" +_s499 = "normal" +_s500 = "dateTime" +_s501 = "dateTimeOnTarget" +_s502 = "epochSeconds" +_s503 = "epochSecondsOnTarget" +_s504 = "httpDate" +_s505 = "httpDateOnTarget" +_s506 = "XmlTimestampsOutput" +_s507 = "aws.protocoltests.restxml#XmlTimestampsResponse" +_s508 = "XmlUnionsInput" +_s509 = "aws.protocoltests.restxml#XmlUnionsRequest" +_s510 = "unionValue" +_s511 = "XmlUnionsOutput" +_s512 = "aws.protocoltests.restxml#XmlUnionsResponse" +_s514 = "smithy.api#http" +_s554 = "NullAndEmptyHeadersServer" +_s561 = "RecursiveShapes" +_s562 = "SimpleScalarProperties" +_s563 = "TimestampFormatHeaders" +_s564 = "XmlAttributes" +_s565 = "XmlAttributesInMiddle" +_s566 = "XmlAttributesOnPayload" +_s567 = "XmlBlobs" +_s568 = "XmlEmptyBlobs" +_s569 = "XmlEmptyLists" +_s570 = "XmlEmptyMaps" +_s571 = "XmlEmptyStrings" +_s572 = "XmlEnums" +_s573 = "XmlIntEnums" +_s574 = "XmlLists" +_s575 = "XmlMapWithXmlNamespace" +_s576 = "XmlMaps" +_s577 = "XmlMapsXmlName" +_s578 = "XmlNamespaces" +_s579 = "XmlTimestamps" +_s580 = "XmlUnions" +_s581 = "RestXml" +_s582 = "aws.api#service" +_s583 = "aws.auth#sigv4" +_s584 = "aws.protocols#restXml" +_s585 = "RecursiveShapesInputOutputNested1" +_s586 = "RecursiveShapesInputOutputNested2" +_s587 = "recursiveMember" +_s588 = "XmlUnionShape" +_s589 = "structValue" + +NULL_AND_EMPTY_HEADERS_SERVER_INPUT: StaticSchema = ( + 18, + n1, + _s380, + {_s30: _s374, _s32: None}, + (_s206, _s207, _s377), + ( + (3, {_s72: _s375}), + (3, {_s72: _s376}), + (lambda: schemas.STRING_LIST, {_s72: _s378}), + ), +) + +NULL_AND_EMPTY_HEADERS_SERVER_OUTPUT: StaticSchema = ( + 18, + n1, + _s381, + {_s30: _s374, _s87: None}, + (_s206, _s207, _s377), + ( + (3, {_s72: _s375}), + (3, {_s72: _s376}), + (lambda: schemas.STRING_LIST, {_s72: _s378}), + ), +) + +NULL_AND_EMPTY_HEADERS_SERVER: StaticOperationSchema = ( + 23, + n1, + _s554, + {_s514: MappingProxyType({"uri": "/NullAndEmptyHeadersServer", "method": "GET"})}, + NULL_AND_EMPTY_HEADERS_SERVER_INPUT, + NULL_AND_EMPTY_HEADERS_SERVER_OUTPUT, + (), +) + +RECURSIVE_SHAPES_INPUT: StaticSchema = ( + 18, + n1, + _s387, + {_s30: _s388, _s32: None}, + (_s249,), + ((lambda: RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED1, 0),), +) + +RECURSIVE_SHAPES_OUTPUT: StaticSchema = ( + 18, + n1, + _s389, + {_s30: _s390, _s87: None}, + (_s249,), + ((lambda: RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED1, 0),), +) + +RECURSIVE_SHAPES: StaticOperationSchema = ( + 23, + n1, + _s561, + {_s514: MappingProxyType({"uri": "/RecursiveShapes", "method": "PUT"})}, + RECURSIVE_SHAPES_INPUT, + RECURSIVE_SHAPES_OUTPUT, + (), +) + +SIMPLE_SCALAR_PROPERTIES_INPUT: StaticSchema = ( + 18, + n1, + _s391, + {_s30: _s392, _s32: None}, + (_s130, _s229, _s393, _s394, _s231, _s232, _s233, _s234, _s235, _s236), + ( + (3, {_s72: _s283}), + (3, 0), + (2, 0), + (2, 0), + (5, 0), + (6, 0), + (7, 0), + (8, 0), + (9, 0), + (10, {_s99: _s395}), + ), +) + +SIMPLE_SCALAR_PROPERTIES_OUTPUT: StaticSchema = ( + 18, + n1, + _s396, + {_s30: _s397, _s87: None}, + (_s130, _s229, _s393, _s394, _s231, _s232, _s233, _s234, _s235, _s236), + ( + (3, {_s72: _s283}), + (3, 0), + (2, 0), + (2, 0), + (5, 0), + (6, 0), + (7, 0), + (8, 0), + (9, 0), + (10, {_s99: _s395}), + ), +) + +SIMPLE_SCALAR_PROPERTIES: StaticOperationSchema = ( + 23, + n1, + _s562, + {_s514: MappingProxyType({"uri": "/SimpleScalarProperties", "method": "PUT"})}, + SIMPLE_SCALAR_PROPERTIES_INPUT, + SIMPLE_SCALAR_PROPERTIES_OUTPUT, + (), +) + +TIMESTAMP_FORMAT_HEADERS_INPUT: StaticSchema = ( + 18, + n1, + _s398, + {_s30: _s399, _s32: None}, + (_s137, _s140, _s141, _s142, _s143, _s144, _s145), + ( + (4, {_s72: _s400, _s89: _s132}), + (4, {_s72: _s401, _s89: _s134}), + (4, {_s72: _s402, _s89: _s90}), + (4, {_s72: _s403}), + (lambda: schemas.EPOCH_SECONDS, {_s72: _s404}), + (lambda: schemas.HTTP_DATE, {_s72: _s405}), + (lambda: schemas.DATE_TIME, {_s72: _s406}), + ), +) + +TIMESTAMP_FORMAT_HEADERS_OUTPUT: StaticSchema = ( + 18, + n1, + _s407, + {_s30: _s399, _s87: None}, + (_s137, _s140, _s141, _s142, _s143, _s144, _s145), + ( + (4, {_s72: _s400, _s89: _s132}), + (4, {_s72: _s401, _s89: _s134}), + (4, {_s72: _s402, _s89: _s90}), + (4, {_s72: _s403}), + (lambda: schemas.EPOCH_SECONDS, {_s72: _s404}), + (lambda: schemas.HTTP_DATE, {_s72: _s405}), + (lambda: schemas.DATE_TIME, {_s72: _s406}), + ), +) + +TIMESTAMP_FORMAT_HEADERS: StaticOperationSchema = ( + 23, + n1, + _s563, + {_s514: MappingProxyType({"uri": "/TimestampFormatHeaders", "method": "POST"})}, + TIMESTAMP_FORMAT_HEADERS_INPUT, + TIMESTAMP_FORMAT_HEADERS_OUTPUT, + (), +) + +XML_ATTRIBUTES_INPUT: StaticSchema = ( + 18, + n1, + _s408, + {_s30: _s409, _s32: None}, + (_s130, _s212), + ((3, 0), (3, {_s213: None, _s99: _s214})), +) + +XML_ATTRIBUTES_OUTPUT: StaticSchema = ( + 18, + n1, + _s410, + {_s30: _s411, _s87: None}, + (_s130, _s212), + ((3, 0), (3, {_s213: None, _s99: _s214})), +) + +XML_ATTRIBUTES: StaticOperationSchema = ( + 23, + n1, + _s564, + {_s514: MappingProxyType({"uri": "/XmlAttributes", "method": "PUT"})}, + XML_ATTRIBUTES_INPUT, + XML_ATTRIBUTES_OUTPUT, + (), +) + +XML_ATTRIBUTES_IN_MIDDLE_INPUT: StaticSchema = ( + 18, + n1, + _s412, + {_s30: _s413, _s32: None}, + (_s279,), + ((lambda: schemas.XML_ATTRIBUTES_IN_MIDDLE_PAYLOAD_REQUEST, 16),), +) + +XML_ATTRIBUTES_IN_MIDDLE_OUTPUT: StaticSchema = ( + 18, + n1, + _s414, + {_s30: _s415, _s87: None}, + (_s279,), + ((lambda: schemas.XML_ATTRIBUTES_IN_MIDDLE_PAYLOAD_RESPONSE, 16),), +) + +XML_ATTRIBUTES_IN_MIDDLE: StaticOperationSchema = ( + 23, + n1, + _s565, + {_s514: MappingProxyType({"uri": "/XmlAttributesInMiddle", "method": "PUT"})}, + XML_ATTRIBUTES_IN_MIDDLE_INPUT, + XML_ATTRIBUTES_IN_MIDDLE_OUTPUT, + (), +) + +XML_ATTRIBUTES_ON_PAYLOAD_INPUT: StaticSchema = ( + 18, + n1, + _s416, + {_s30: _s417, _s32: None}, + (_s279,), + ((lambda: schemas.XML_ATTRIBUTES_PAYLOAD_REQUEST, 16),), +) + +XML_ATTRIBUTES_ON_PAYLOAD_OUTPUT: StaticSchema = ( + 18, + n1, + _s418, + {_s30: _s419, _s87: None}, + (_s279,), + ((lambda: schemas.XML_ATTRIBUTES_PAYLOAD_RESPONSE, 16),), +) + +XML_ATTRIBUTES_ON_PAYLOAD: StaticOperationSchema = ( + 23, + n1, + _s566, + {_s514: MappingProxyType({"uri": "/XmlAttributesOnPayload", "method": "PUT"})}, + XML_ATTRIBUTES_ON_PAYLOAD_INPUT, + XML_ATTRIBUTES_ON_PAYLOAD_OUTPUT, + (), +) + +XML_BLOBS_INPUT: StaticSchema = ( + 18, + n1, + _s420, + {_s30: _s421, _s32: None}, + (_s188,), + ((1, 0),), +) + +XML_BLOBS_OUTPUT: StaticSchema = ( + 18, + n1, + _s422, + {_s30: _s423, _s87: None}, + (_s188,), + ((1, 0),), +) + +XML_BLOBS: StaticOperationSchema = ( + 23, + n1, + _s567, + {_s514: MappingProxyType({"uri": "/XmlBlobs", "method": "POST"})}, + XML_BLOBS_INPUT, + XML_BLOBS_OUTPUT, + (), +) + +XML_EMPTY_BLOBS_INPUT: StaticSchema = ( + 18, + n1, + _s424, + {_s30: _s425, _s32: None}, + (_s188,), + ((1, 0),), +) + +XML_EMPTY_BLOBS_OUTPUT: StaticSchema = ( + 18, + n1, + _s426, + {_s30: _s427, _s87: None}, + (_s188,), + ((1, 0),), +) + +XML_EMPTY_BLOBS: StaticOperationSchema = ( + 23, + n1, + _s568, + {_s514: MappingProxyType({"uri": "/XmlEmptyBlobs", "method": "POST"})}, + XML_EMPTY_BLOBS_INPUT, + XML_EMPTY_BLOBS_OUTPUT, + (), +) + +XML_EMPTY_LISTS_INPUT: StaticSchema = ( + 18, + n1, + _s428, + {_s30: _s429, _s32: None}, + ( + _s430, + _s431, + _s432, + _s433, + _s434, + _s435, + _s436, + _s437, + _s438, + _s440, + _s441, + _s443, + _s444, + _s445, + _s447, + ), + ( + (lambda: schemas.STRING_LIST, 0), + (lambda: schemas.STRING_SET, 0), + (lambda: schemas.INTEGER_LIST, 0), + (lambda: schemas.BOOLEAN_LIST, 0), + (lambda: schemas.TIMESTAMP_LIST, 0), + (lambda: schemas.FOO_ENUM_LIST, 0), + (lambda: schemas.INTEGER_ENUM_LIST, 0), + (lambda: schemas.NESTED_STRING_LIST, 0), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s99: _s439}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s107: None}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s107: None, _s99: _s442}), + (lambda: schemas.LIST_WITH_MEMBER_NAMESPACE, {_s107: None}), + (lambda: schemas.LIST_WITH_NAMESPACE, {_s107: None}), + (lambda: schemas.STRUCTURE_LIST, {_s99: _s446}), + (lambda: schemas.STRUCTURE_LIST, {_s107: None}), + ), +) + +XML_EMPTY_LISTS_OUTPUT: StaticSchema = ( + 18, + n1, + _s448, + {_s30: _s449, _s87: None}, + ( + _s430, + _s431, + _s432, + _s433, + _s434, + _s435, + _s436, + _s437, + _s438, + _s440, + _s441, + _s443, + _s444, + _s445, + _s447, + ), + ( + (lambda: schemas.STRING_LIST, 0), + (lambda: schemas.STRING_SET, 0), + (lambda: schemas.INTEGER_LIST, 0), + (lambda: schemas.BOOLEAN_LIST, 0), + (lambda: schemas.TIMESTAMP_LIST, 0), + (lambda: schemas.FOO_ENUM_LIST, 0), + (lambda: schemas.INTEGER_ENUM_LIST, 0), + (lambda: schemas.NESTED_STRING_LIST, 0), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s99: _s439}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s107: None}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s107: None, _s99: _s442}), + (lambda: schemas.LIST_WITH_MEMBER_NAMESPACE, {_s107: None}), + (lambda: schemas.LIST_WITH_NAMESPACE, {_s107: None}), + (lambda: schemas.STRUCTURE_LIST, {_s99: _s446}), + (lambda: schemas.STRUCTURE_LIST, {_s107: None}), + ), +) + +XML_EMPTY_LISTS: StaticOperationSchema = ( + 23, + n1, + _s569, + {_s514: MappingProxyType({"uri": "/XmlEmptyLists", "method": "PUT"})}, + XML_EMPTY_LISTS_INPUT, + XML_EMPTY_LISTS_OUTPUT, + (), +) + +XML_EMPTY_MAPS_INPUT: StaticSchema = ( + 18, + n1, + _s450, + {_s30: _s451, _s32: None}, + (_s106,), + ((lambda: schemas.XML_MAPS_INPUT_OUTPUT_MAP, 0),), +) + +XML_EMPTY_MAPS_OUTPUT: StaticSchema = ( + 18, + n1, + _s452, + {_s30: _s453, _s87: None}, + (_s106,), + ((lambda: schemas.XML_MAPS_INPUT_OUTPUT_MAP, 0),), +) + +XML_EMPTY_MAPS: StaticOperationSchema = ( + 23, + n1, + _s570, + {_s514: MappingProxyType({"uri": "/XmlEmptyMaps", "method": "POST"})}, + XML_EMPTY_MAPS_INPUT, + XML_EMPTY_MAPS_OUTPUT, + (), +) + +XML_EMPTY_STRINGS_INPUT: StaticSchema = ( + 18, + n1, + _s454, + {_s30: _s455, _s32: None}, + (_s178,), + ((3, 0),), +) + +XML_EMPTY_STRINGS_OUTPUT: StaticSchema = ( + 18, + n1, + _s456, + {_s30: _s457, _s87: None}, + (_s178,), + ((3, 0),), +) + +XML_EMPTY_STRINGS: StaticOperationSchema = ( + 23, + n1, + _s571, + {_s514: MappingProxyType({"uri": "/XmlEmptyStrings", "method": "PUT"})}, + XML_EMPTY_STRINGS_INPUT, + XML_EMPTY_STRINGS_OUTPUT, + (), +) + +XML_ENUMS_INPUT: StaticSchema = ( + 18, + n1, + _s458, + {_s30: _s459, _s32: None}, + (_s460, _s461, _s462, _s463, _s464, _s465), + ( + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM_LIST, 0), + (lambda: schemas.FOO_ENUM_SET, 0), + (lambda: schemas.FOO_ENUM_MAP, 0), + ), +) + +XML_ENUMS_OUTPUT: StaticSchema = ( + 18, + n1, + _s466, + {_s30: _s467, _s87: None}, + (_s460, _s461, _s462, _s463, _s464, _s465), + ( + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM_LIST, 0), + (lambda: schemas.FOO_ENUM_SET, 0), + (lambda: schemas.FOO_ENUM_MAP, 0), + ), +) + +XML_ENUMS: StaticOperationSchema = ( + 23, + n1, + _s572, + {_s514: MappingProxyType({"uri": "/XmlEnums", "method": "PUT"})}, + XML_ENUMS_INPUT, + XML_ENUMS_OUTPUT, + (), +) + +XML_INT_ENUMS_INPUT: StaticSchema = ( + 18, + n1, + _s468, + {_s30: _s469, _s32: None}, + (_s470, _s471, _s472, _s436, _s473, _s474), + ( + (lambda: schemas.INTEGER_ENUM, 0), + (lambda: schemas.INTEGER_ENUM, 0), + (lambda: schemas.INTEGER_ENUM, 0), + (lambda: schemas.INTEGER_ENUM_LIST, 0), + (lambda: schemas.INTEGER_ENUM_SET, 0), + (lambda: schemas.INTEGER_ENUM_MAP, 0), + ), +) + +XML_INT_ENUMS_OUTPUT: StaticSchema = ( + 18, + n1, + _s475, + {_s30: _s476, _s87: None}, + (_s470, _s471, _s472, _s436, _s473, _s474), + ( + (lambda: schemas.INTEGER_ENUM, 0), + (lambda: schemas.INTEGER_ENUM, 0), + (lambda: schemas.INTEGER_ENUM, 0), + (lambda: schemas.INTEGER_ENUM_LIST, 0), + (lambda: schemas.INTEGER_ENUM_SET, 0), + (lambda: schemas.INTEGER_ENUM_MAP, 0), + ), +) + +XML_INT_ENUMS: StaticOperationSchema = ( + 23, + n1, + _s573, + {_s514: MappingProxyType({"uri": "/XmlIntEnums", "method": "PUT"})}, + XML_INT_ENUMS_INPUT, + XML_INT_ENUMS_OUTPUT, + (), +) + +XML_LISTS_INPUT: StaticSchema = ( + 18, + n1, + _s477, + {_s30: _s478, _s32: None}, + ( + _s430, + _s431, + _s432, + _s433, + _s434, + _s435, + _s436, + _s437, + _s438, + _s440, + _s441, + _s443, + _s444, + _s445, + _s447, + ), + ( + (lambda: schemas.STRING_LIST, 0), + (lambda: schemas.STRING_SET, 0), + (lambda: schemas.INTEGER_LIST, 0), + (lambda: schemas.BOOLEAN_LIST, 0), + (lambda: schemas.TIMESTAMP_LIST, 0), + (lambda: schemas.FOO_ENUM_LIST, 0), + (lambda: schemas.INTEGER_ENUM_LIST, 0), + (lambda: schemas.NESTED_STRING_LIST, 0), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s99: _s439}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s107: None}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s107: None, _s99: _s442}), + (lambda: schemas.LIST_WITH_MEMBER_NAMESPACE, {_s107: None}), + (lambda: schemas.LIST_WITH_NAMESPACE, {_s107: None}), + (lambda: schemas.STRUCTURE_LIST, {_s99: _s446}), + (lambda: schemas.STRUCTURE_LIST, {_s107: None}), + ), +) + +XML_LISTS_OUTPUT: StaticSchema = ( + 18, + n1, + _s479, + {_s30: _s480, _s87: None}, + ( + _s430, + _s431, + _s432, + _s433, + _s434, + _s435, + _s436, + _s437, + _s438, + _s440, + _s441, + _s443, + _s444, + _s445, + _s447, + ), + ( + (lambda: schemas.STRING_LIST, 0), + (lambda: schemas.STRING_SET, 0), + (lambda: schemas.INTEGER_LIST, 0), + (lambda: schemas.BOOLEAN_LIST, 0), + (lambda: schemas.TIMESTAMP_LIST, 0), + (lambda: schemas.FOO_ENUM_LIST, 0), + (lambda: schemas.INTEGER_ENUM_LIST, 0), + (lambda: schemas.NESTED_STRING_LIST, 0), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s99: _s439}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s107: None}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s107: None, _s99: _s442}), + (lambda: schemas.LIST_WITH_MEMBER_NAMESPACE, {_s107: None}), + (lambda: schemas.LIST_WITH_NAMESPACE, {_s107: None}), + (lambda: schemas.STRUCTURE_LIST, {_s99: _s446}), + (lambda: schemas.STRUCTURE_LIST, {_s107: None}), + ), +) + +XML_LISTS: StaticOperationSchema = ( + 23, + n1, + _s574, + {_s514: MappingProxyType({"uri": "/XmlLists", "method": "PUT"})}, + XML_LISTS_INPUT, + XML_LISTS_OUTPUT, + (), +) + +XML_MAP_WITH_XML_NAMESPACE_INPUT: StaticSchema = ( + 18, + n1, + _s481, + {_s30: _s482, _s32: None}, + (_s106,), + ( + ( + lambda: schemas.XML_MAP_WITH_XML_NAMESPACE_INPUT_OUTPUT_MAP, + { + _s99: _s108, + _s103: MappingProxyType({"uri": "https://the-member.example.com"}), + }, + ), + ), +) + +XML_MAP_WITH_XML_NAMESPACE_OUTPUT: StaticSchema = ( + 18, + n1, + _s483, + {_s30: _s484, _s87: None}, + (_s106,), + ( + ( + lambda: schemas.XML_MAP_WITH_XML_NAMESPACE_INPUT_OUTPUT_MAP, + { + _s99: _s108, + _s103: MappingProxyType({"uri": "https://the-member.example.com"}), + }, + ), + ), +) + +XML_MAP_WITH_XML_NAMESPACE: StaticOperationSchema = ( + 23, + n1, + _s575, + {_s514: MappingProxyType({"uri": "/XmlMapWithXmlNamespace", "method": "POST"})}, + XML_MAP_WITH_XML_NAMESPACE_INPUT, + XML_MAP_WITH_XML_NAMESPACE_OUTPUT, + (), +) + +XML_MAPS_INPUT: StaticSchema = ( + 18, + n1, + _s485, + {_s30: _s486, _s32: None}, + (_s106,), + ((lambda: schemas.XML_MAPS_INPUT_OUTPUT_MAP, 0),), +) + +XML_MAPS_OUTPUT: StaticSchema = ( + 18, + n1, + _s487, + {_s30: _s488, _s87: None}, + (_s106,), + ((lambda: schemas.XML_MAPS_INPUT_OUTPUT_MAP, 0),), +) + +XML_MAPS: StaticOperationSchema = ( + 23, + n1, + _s576, + {_s514: MappingProxyType({"uri": "/XmlMaps", "method": "POST"})}, + XML_MAPS_INPUT, + XML_MAPS_OUTPUT, + (), +) + +XML_MAPS_XML_NAME_INPUT: StaticSchema = ( + 18, + n1, + _s489, + {_s30: _s490, _s32: None}, + (_s106,), + ((lambda: schemas.XML_MAPS_XML_NAME_INPUT_OUTPUT_MAP, 0),), +) + +XML_MAPS_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n1, + _s491, + {_s30: _s492, _s87: None}, + (_s106,), + ((lambda: schemas.XML_MAPS_XML_NAME_INPUT_OUTPUT_MAP, 0),), +) + +XML_MAPS_XML_NAME: StaticOperationSchema = ( + 23, + n1, + _s577, + {_s514: MappingProxyType({"uri": "/XmlMapsXmlName", "method": "POST"})}, + XML_MAPS_XML_NAME_INPUT, + XML_MAPS_XML_NAME_OUTPUT, + (), +) + +XML_NAMESPACES_INPUT: StaticSchema = ( + 18, + n1, + _s493, + {_s103: MappingProxyType({"uri": "http://foo.com"}), _s30: _s494, _s32: None}, + (_s249,), + ((lambda: schemas.XML_NAMESPACE_NESTED, 0),), +) + +XML_NAMESPACES_OUTPUT: StaticSchema = ( + 18, + n1, + _s495, + {_s103: MappingProxyType({"uri": "http://foo.com"}), _s30: _s496, _s87: None}, + (_s249,), + ((lambda: schemas.XML_NAMESPACE_NESTED, 0),), +) + +XML_NAMESPACES: StaticOperationSchema = ( + 23, + n1, + _s578, + {_s514: MappingProxyType({"uri": "/XmlNamespaces", "method": "POST"})}, + XML_NAMESPACES_INPUT, + XML_NAMESPACES_OUTPUT, + (), +) + +XML_TIMESTAMPS_INPUT: StaticSchema = ( + 18, + n1, + _s497, + {_s30: _s498, _s32: None}, + (_s499, _s500, _s501, _s502, _s503, _s504, _s505), + ( + (4, 0), + (4, {_s89: _s90}), + (lambda: schemas.DATE_TIME, 0), + (4, {_s89: _s132}), + (lambda: schemas.EPOCH_SECONDS, 0), + (4, {_s89: _s134}), + (lambda: schemas.HTTP_DATE, 0), + ), +) + +XML_TIMESTAMPS_OUTPUT: StaticSchema = ( + 18, + n1, + _s506, + {_s30: _s507, _s87: None}, + (_s499, _s500, _s501, _s502, _s503, _s504, _s505), + ( + (4, 0), + (4, {_s89: _s90}), + (lambda: schemas.DATE_TIME, 0), + (4, {_s89: _s132}), + (lambda: schemas.EPOCH_SECONDS, 0), + (4, {_s89: _s134}), + (lambda: schemas.HTTP_DATE, 0), + ), +) + +XML_TIMESTAMPS: StaticOperationSchema = ( + 23, + n1, + _s579, + {_s514: MappingProxyType({"uri": "/XmlTimestamps", "method": "POST"})}, + XML_TIMESTAMPS_INPUT, + XML_TIMESTAMPS_OUTPUT, + (), +) + +XML_UNIONS_INPUT: StaticSchema = ( + 18, + n1, + _s508, + {_s30: _s509, _s32: None}, + (_s510,), + ((lambda: XML_UNION_SHAPE, 0),), +) + +XML_UNIONS_OUTPUT: StaticSchema = ( + 18, + n1, + _s511, + {_s30: _s512, _s87: None}, + (_s510,), + ((lambda: XML_UNION_SHAPE, 0),), +) + +XML_UNIONS: StaticOperationSchema = ( + 23, + n1, + _s580, + {_s514: MappingProxyType({"uri": "/XmlUnions", "method": "PUT"})}, + XML_UNIONS_INPUT, + XML_UNIONS_OUTPUT, + (), +) + +REST_XML: StaticSchema = ( + 21, + n1, + _s581, + { + _s582: MappingProxyType({"sdkId": "Rest Xml Protocol"}), + _s583: MappingProxyType({"name": "restxml"}), + _s584: None, + }, +) + +RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED1: StaticSchema = ( + 18, + n1, + _s585, + 0, + (_s130, _s249), + ((3, 0), (lambda: RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED2, 0)), +) + +RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED2: StaticSchema = ( + 18, + n1, + _s586, + 0, + (_s200, _s587), + ((3, 0), (RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED1, 0)), +) + +XML_UNION_SHAPE: StaticSchema = ( + 19, + n1, + _s588, + 0, + (_s229, _s230, _s231, _s232, _s233, _s234, _s235, _s236, _s510, _s589), + ( + (3, 0), + (2, 0), + (5, 0), + (6, 0), + (7, 0), + (8, 0), + (9, 0), + (10, 0), + (lambda: XML_UNION_SHAPE, 0), + (lambda: schemas.XML_NESTED_UNION_STRUCT, 0), + ), +) diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/aio/__init__.py b/codegen-output-py/rest-xml-client/src/restxml_client/aio/__init__.py new file mode 100644 index 000000000..7618a34d1 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/aio/__init__.py @@ -0,0 +1,19 @@ +from importlib import import_module +from typing import TYPE_CHECKING, Any + +if TYPE_CHECKING: + from .client import AsyncRestXmlProtocolClient + from .config import AsyncRestXmlProtocolConfig + +__all__ = ["AsyncRestXmlProtocolClient", "AsyncRestXmlProtocolConfig"] + +_EXPORTS = { + "AsyncRestXmlProtocolClient": ".client", + "AsyncRestXmlProtocolConfig": ".config", +} + + +def __getattr__(name: str) -> Any: + if name in _EXPORTS: + return getattr(import_module(_EXPORTS[name], __name__), name) + raise AttributeError(f"module {__name__!r} has no attribute {name!r}") diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/aio/client.py b/codegen-output-py/rest-xml-client/src/restxml_client/aio/client.py new file mode 100644 index 000000000..eeef4ee3b --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/aio/client.py @@ -0,0 +1,2362 @@ +from __future__ import annotations + +from typing import Unpack, cast, overload + +from smithy_aws_core.aio.identity.chain import AsyncIdentityChain +from smithy_aws_core.config.types import ConfigSource +from smithy_aws_core.identity.components import AWSCredentialsIdentity +from smithy_core.aio.client import AsyncClient +from smithy_http.aio.interfaces import AsyncHTTPClient +from smithy_http.plugins import user_agent_plugin + +from restxml_client import models +from restxml_client.aio.config import AsyncRestXmlProtocolConfig, Plugin +from restxml_client.aio.user_agent import aws_user_agent_plugin + + +class AsyncRestXmlProtocolClient(AsyncClient[AsyncRestXmlProtocolConfig]): + "A REST XML service that sends XML requests and responses." + + _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + + @overload + async def all_query_string_types( + self, + request: models.AllQueryStringTypesInput | models.AllQueryStringTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.AllQueryStringTypesOutput: ... + + @overload + async def all_query_string_types( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.AllQueryStringTypesInputDict], + ) -> models.AllQueryStringTypesOutput: + """ + This example uses all query string types. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def all_query_string_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.AllQueryStringTypesOutput: + return await self._invoke( + self._select_input(models.ALL_QUERY_STRING_TYPES, args, kwargs), + models.ALL_QUERY_STRING_TYPES, + [], + plugins, + ) + + @overload + async def body_with_xml_name( + self, + request: models.BodyWithXmlNameInput | models.BodyWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.BodyWithXmlNameOutput: ... + + @overload + async def body_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.BodyWithXmlNameInputDict], + ) -> models.BodyWithXmlNameOutput: + """ + The following example serializes a body that uses an XML name, + changing the wrapper name. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def body_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.BodyWithXmlNameOutput: + return await self._invoke( + self._select_input(models.BODY_WITH_XML_NAME, args, kwargs), + models.BODY_WITH_XML_NAME, + [], + plugins, + ) + + @overload + async def constant_and_variable_query_string( + self, + request: models.ConstantAndVariableQueryStringInput + | models.ConstantAndVariableQueryStringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.ConstantAndVariableQueryStringOutput: ... + + @overload + async def constant_and_variable_query_string( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.ConstantAndVariableQueryStringInputDict], + ) -> models.ConstantAndVariableQueryStringOutput: + """ + This example uses fixed query string params and variable query string + params. + The fixed query string parameters and variable parameters must both be + serialized (implementations may need to merge them together). + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def constant_and_variable_query_string( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.ConstantAndVariableQueryStringOutput: + return await self._invoke( + self._select_input(models.CONSTANT_AND_VARIABLE_QUERY_STRING, args, kwargs), + models.CONSTANT_AND_VARIABLE_QUERY_STRING, + [], + plugins, + ) + + @overload + async def constant_query_string( + self, + request: models.ConstantQueryStringInput | models.ConstantQueryStringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.ConstantQueryStringOutput: ... + + @overload + async def constant_query_string( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.ConstantQueryStringInputDict], + ) -> models.ConstantQueryStringOutput: + """ + This example uses a constant query string parameters and a label. + This simply tests that labels and query string parameters are + compatible. The fixed query string parameter named "hello" should + in no way conflict with the label, `{hello}`. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def constant_query_string( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.ConstantQueryStringOutput: + return await self._invoke( + self._select_input(models.CONSTANT_QUERY_STRING, args, kwargs), + models.CONSTANT_QUERY_STRING, + [], + plugins, + ) + + @overload + async def content_type_parameters( + self, + request: models.ContentTypeParametersInput + | models.ContentTypeParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.ContentTypeParametersOutput: ... + + @overload + async def content_type_parameters( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.ContentTypeParametersInputDict], + ) -> models.ContentTypeParametersOutput: + """ + The example tests how servers must support requests + containing a `Content-Type` header with parameters. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def content_type_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.ContentTypeParametersOutput: + return await self._invoke( + self._select_input(models.CONTENT_TYPE_PARAMETERS, args, kwargs), + models.CONTENT_TYPE_PARAMETERS, + [], + plugins, + ) + + @overload + async def datetime_offsets( + self, + request: models.DatetimeOffsetsInput | models.DatetimeOffsetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.DatetimeOffsetsOutput: ... + + @overload + async def datetime_offsets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.DatetimeOffsetsInputDict], + ) -> models.DatetimeOffsetsOutput: + """ + Invokes the DatetimeOffsets operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def datetime_offsets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.DatetimeOffsetsOutput: + return await self._invoke( + self._select_input(models.DATETIME_OFFSETS, args, kwargs), + models.DATETIME_OFFSETS, + [], + plugins, + ) + + @overload + async def empty_input_and_empty_output( + self, + request: models.EmptyInputAndEmptyOutputInput + | models.EmptyInputAndEmptyOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EmptyInputAndEmptyOutputOutput: ... + + @overload + async def empty_input_and_empty_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EmptyInputAndEmptyOutputInputDict], + ) -> models.EmptyInputAndEmptyOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response payload because the operation has an empty input + and empty output structure that reuses the same shape. While this should + be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def empty_input_and_empty_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EmptyInputAndEmptyOutputOutput: + return await self._invoke( + self._select_input(models.EMPTY_INPUT_AND_EMPTY_OUTPUT, args, kwargs), + models.EMPTY_INPUT_AND_EMPTY_OUTPUT, + [], + plugins, + ) + + @overload + async def endpoint_operation( + self, + request: models.EndpointOperationInput | models.EndpointOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointOperationOutput: ... + + @overload + async def endpoint_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointOperationInputDict], + ) -> models.EndpointOperationOutput: + """ + Invokes the EndpointOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def endpoint_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointOperationOutput: + return await self._invoke( + self._select_input(models.ENDPOINT_OPERATION, args, kwargs), + models.ENDPOINT_OPERATION, + [], + plugins, + ) + + @overload + async def endpoint_with_host_label_header_operation( + self, + request: models.EndpointWithHostLabelHeaderOperationInput + | models.EndpointWithHostLabelHeaderOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointWithHostLabelHeaderOperationOutput: ... + + @overload + async def endpoint_with_host_label_header_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointWithHostLabelHeaderOperationInputDict], + ) -> models.EndpointWithHostLabelHeaderOperationOutput: + """ + Invokes the EndpointWithHostLabelHeaderOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def endpoint_with_host_label_header_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointWithHostLabelHeaderOperationOutput: + return await self._invoke( + self._select_input( + models.ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION, args, kwargs + ), + models.ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION, + [], + plugins, + ) + + @overload + async def endpoint_with_host_label_operation( + self, + request: models.EndpointWithHostLabelOperationInput + | models.EndpointWithHostLabelOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointWithHostLabelOperationOutput: ... + + @overload + async def endpoint_with_host_label_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointWithHostLabelOperationInputDict], + ) -> models.EndpointWithHostLabelOperationOutput: + """ + Invokes the EndpointWithHostLabelOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def endpoint_with_host_label_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointWithHostLabelOperationOutput: + return await self._invoke( + self._select_input(models.ENDPOINT_WITH_HOST_LABEL_OPERATION, args, kwargs), + models.ENDPOINT_WITH_HOST_LABEL_OPERATION, + [], + plugins, + ) + + @overload + async def flattened_xml_map( + self, + request: models.FlattenedXmlMapInput | models.FlattenedXmlMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapOutput: ... + + @overload + async def flattened_xml_map( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapInputDict], + ) -> models.FlattenedXmlMapOutput: + """ + Flattened maps + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def flattened_xml_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapOutput: + return await self._invoke( + self._select_input(models.FLATTENED_XML_MAP, args, kwargs), + models.FLATTENED_XML_MAP, + [], + plugins, + ) + + @overload + async def flattened_xml_map_with_xml_name( + self, + request: models.FlattenedXmlMapWithXmlNameInput + | models.FlattenedXmlMapWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapWithXmlNameOutput: ... + + @overload + async def flattened_xml_map_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapWithXmlNameInputDict], + ) -> models.FlattenedXmlMapWithXmlNameOutput: + """ + Flattened maps with @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def flattened_xml_map_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapWithXmlNameOutput: + return await self._invoke( + self._select_input(models.FLATTENED_XML_MAP_WITH_XML_NAME, args, kwargs), + models.FLATTENED_XML_MAP_WITH_XML_NAME, + [], + plugins, + ) + + @overload + async def flattened_xml_map_with_xml_namespace( + self, + request: models.FlattenedXmlMapWithXmlNamespaceInput + | models.FlattenedXmlMapWithXmlNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: ... + + @overload + async def flattened_xml_map_with_xml_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapWithXmlNamespaceInputDict], + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: + """ + Flattened maps with @xmlNamespace and @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def flattened_xml_map_with_xml_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: + return await self._invoke( + self._select_input( + models.FLATTENED_XML_MAP_WITH_XML_NAMESPACE, args, kwargs + ), + models.FLATTENED_XML_MAP_WITH_XML_NAMESPACE, + [], + plugins, + ) + + @overload + async def fractional_seconds( + self, + request: models.FractionalSecondsInput | models.FractionalSecondsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FractionalSecondsOutput: ... + + @overload + async def fractional_seconds( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FractionalSecondsInputDict], + ) -> models.FractionalSecondsOutput: + """ + Invokes the FractionalSeconds operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def fractional_seconds( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FractionalSecondsOutput: + return await self._invoke( + self._select_input(models.FRACTIONAL_SECONDS, args, kwargs), + models.FRACTIONAL_SECONDS, + [], + plugins, + ) + + @overload + async def greeting_with_errors( + self, + request: models.GreetingWithErrorsInput | models.GreetingWithErrorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.GreetingWithErrorsOutput: ... + + @overload + async def greeting_with_errors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.GreetingWithErrorsInputDict], + ) -> models.GreetingWithErrorsOutput: + """ + This operation has three possible return values: + + 1. A successful response in the form of GreetingWithErrorsOutput + 2. An InvalidGreeting error. + 3. A BadRequest error. + + Implementations must be able to successfully take a response and + properly (de)serialize successful and error responses based on the + the presence of the + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def greeting_with_errors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.GreetingWithErrorsOutput: + return await self._invoke( + self._select_input(models.GREETING_WITH_ERRORS, args, kwargs), + models.GREETING_WITH_ERRORS, + [], + plugins, + ) + + @overload + async def http_empty_prefix_headers( + self, + request: models.HttpEmptyPrefixHeadersInput + | models.HttpEmptyPrefixHeadersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpEmptyPrefixHeadersOutput: ... + + @overload + async def http_empty_prefix_headers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpEmptyPrefixHeadersInputDict], + ) -> models.HttpEmptyPrefixHeadersOutput: + """ + Clients that perform this test extract all headers from the response. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_empty_prefix_headers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpEmptyPrefixHeadersOutput: + return await self._invoke( + self._select_input(models.HTTP_EMPTY_PREFIX_HEADERS, args, kwargs), + models.HTTP_EMPTY_PREFIX_HEADERS, + [], + plugins, + ) + + @overload + async def http_enum_payload( + self, + request: models.HttpEnumPayloadInput | models.HttpEnumPayloadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpEnumPayloadOutput: ... + + @overload + async def http_enum_payload( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpEnumPayloadInputDict], + ) -> models.HttpEnumPayloadOutput: + """ + Invokes the HttpEnumPayload operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_enum_payload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpEnumPayloadOutput: + return await self._invoke( + self._select_input(models.HTTP_ENUM_PAYLOAD, args, kwargs), + models.HTTP_ENUM_PAYLOAD, + [], + plugins, + ) + + @overload + async def http_payload_traits( + self, + request: models.HttpPayloadTraitsInput | models.HttpPayloadTraitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadTraitsOutput: ... + + @overload + async def http_payload_traits( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadTraitsInputDict], + ) -> models.HttpPayloadTraitsOutput: + """ + This example serializes a blob shape in the payload. + + In this example, no XML document is synthesized because the payload is + not a structure or a union type. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_payload_traits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadTraitsOutput: + return await self._invoke( + self._select_input(models.HTTP_PAYLOAD_TRAITS, args, kwargs), + models.HTTP_PAYLOAD_TRAITS, + [], + plugins, + ) + + @overload + async def http_payload_traits_with_media_type( + self, + request: models.HttpPayloadTraitsWithMediaTypeInput + | models.HttpPayloadTraitsWithMediaTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadTraitsWithMediaTypeOutput: ... + + @overload + async def http_payload_traits_with_media_type( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadTraitsWithMediaTypeInputDict], + ) -> models.HttpPayloadTraitsWithMediaTypeOutput: + """ + This example uses a `@mediaType` trait on the payload to force a custom + content-type to be serialized. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_payload_traits_with_media_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadTraitsWithMediaTypeOutput: + return await self._invoke( + self._select_input( + models.HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE, args, kwargs + ), + models.HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE, + [], + plugins, + ) + + @overload + async def http_payload_with_member_xml_name( + self, + request: models.HttpPayloadWithMemberXmlNameInput + | models.HttpPayloadWithMemberXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithMemberXmlNameOutput: ... + + @overload + async def http_payload_with_member_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithMemberXmlNameInputDict], + ) -> models.HttpPayloadWithMemberXmlNameOutput: + """ + The following example serializes a payload that uses an XML name + on the member, changing the wrapper name. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_payload_with_member_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithMemberXmlNameOutput: + return await self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_MEMBER_XML_NAME, args, kwargs), + models.HTTP_PAYLOAD_WITH_MEMBER_XML_NAME, + [], + plugins, + ) + + @overload + async def http_payload_with_structure( + self, + request: models.HttpPayloadWithStructureInput + | models.HttpPayloadWithStructureInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithStructureOutput: ... + + @overload + async def http_payload_with_structure( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithStructureInputDict], + ) -> models.HttpPayloadWithStructureOutput: + """ + This example serializes a structure in the payload. + + Note that serializing a structure changes the wrapper element name + to match the targeted structure. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_payload_with_structure( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithStructureOutput: + return await self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_STRUCTURE, args, kwargs), + models.HTTP_PAYLOAD_WITH_STRUCTURE, + [], + plugins, + ) + + @overload + async def http_payload_with_union( + self, + request: models.HttpPayloadWithUnionInput + | models.HttpPayloadWithUnionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithUnionOutput: ... + + @overload + async def http_payload_with_union( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithUnionInputDict], + ) -> models.HttpPayloadWithUnionOutput: + """ + This example serializes a union in the payload. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_payload_with_union( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithUnionOutput: + return await self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_UNION, args, kwargs), + models.HTTP_PAYLOAD_WITH_UNION, + [], + plugins, + ) + + @overload + async def http_payload_with_xml_name( + self, + request: models.HttpPayloadWithXmlNameInput + | models.HttpPayloadWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithXmlNameOutput: ... + + @overload + async def http_payload_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithXmlNameInputDict], + ) -> models.HttpPayloadWithXmlNameOutput: + """ + The following example serializes a payload that uses an XML name, + changing the wrapper name. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_payload_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithXmlNameOutput: + return await self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_XML_NAME, args, kwargs), + models.HTTP_PAYLOAD_WITH_XML_NAME, + [], + plugins, + ) + + @overload + async def http_payload_with_xml_namespace( + self, + request: models.HttpPayloadWithXmlNamespaceInput + | models.HttpPayloadWithXmlNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithXmlNamespaceOutput: ... + + @overload + async def http_payload_with_xml_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithXmlNamespaceInputDict], + ) -> models.HttpPayloadWithXmlNamespaceOutput: + """ + The following example serializes a payload that uses an XML namespace. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_payload_with_xml_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithXmlNamespaceOutput: + return await self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_XML_NAMESPACE, args, kwargs), + models.HTTP_PAYLOAD_WITH_XML_NAMESPACE, + [], + plugins, + ) + + @overload + async def http_payload_with_xml_namespace_and_prefix( + self, + request: models.HttpPayloadWithXmlNamespaceAndPrefixInput + | models.HttpPayloadWithXmlNamespaceAndPrefixInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithXmlNamespaceAndPrefixOutput: ... + + @overload + async def http_payload_with_xml_namespace_and_prefix( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithXmlNamespaceAndPrefixInputDict], + ) -> models.HttpPayloadWithXmlNamespaceAndPrefixOutput: + """ + The following example serializes a payload that uses an XML namespace. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_payload_with_xml_namespace_and_prefix( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithXmlNamespaceAndPrefixOutput: + return await self._invoke( + self._select_input( + models.HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX, args, kwargs + ), + models.HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX, + [], + plugins, + ) + + @overload + async def http_prefix_headers( + self, + request: models.HttpPrefixHeadersInput | models.HttpPrefixHeadersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPrefixHeadersOutput: ... + + @overload + async def http_prefix_headers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPrefixHeadersInputDict], + ) -> models.HttpPrefixHeadersOutput: + """ + This examples adds headers to the input of a request and response by + prefix. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_prefix_headers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPrefixHeadersOutput: + return await self._invoke( + self._select_input(models.HTTP_PREFIX_HEADERS, args, kwargs), + models.HTTP_PREFIX_HEADERS, + [], + plugins, + ) + + @overload + async def http_request_with_float_labels( + self, + request: models.HttpRequestWithFloatLabelsInput + | models.HttpRequestWithFloatLabelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpRequestWithFloatLabelsOutput: ... + + @overload + async def http_request_with_float_labels( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpRequestWithFloatLabelsInputDict], + ) -> models.HttpRequestWithFloatLabelsOutput: + """ + Invokes the HttpRequestWithFloatLabels operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_request_with_float_labels( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpRequestWithFloatLabelsOutput: + return await self._invoke( + self._select_input(models.HTTP_REQUEST_WITH_FLOAT_LABELS, args, kwargs), + models.HTTP_REQUEST_WITH_FLOAT_LABELS, + [], + plugins, + ) + + @overload + async def http_request_with_greedy_label_in_path( + self, + request: models.HttpRequestWithGreedyLabelInPathInput + | models.HttpRequestWithGreedyLabelInPathInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpRequestWithGreedyLabelInPathOutput: ... + + @overload + async def http_request_with_greedy_label_in_path( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpRequestWithGreedyLabelInPathInputDict], + ) -> models.HttpRequestWithGreedyLabelInPathOutput: + """ + Invokes the HttpRequestWithGreedyLabelInPath operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_request_with_greedy_label_in_path( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpRequestWithGreedyLabelInPathOutput: + return await self._invoke( + self._select_input( + models.HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH, args, kwargs + ), + models.HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH, + [], + plugins, + ) + + @overload + async def http_request_with_labels( + self, + request: models.HttpRequestWithLabelsInput + | models.HttpRequestWithLabelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpRequestWithLabelsOutput: ... + + @overload + async def http_request_with_labels( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpRequestWithLabelsInputDict], + ) -> models.HttpRequestWithLabelsOutput: + """ + The example tests how requests are serialized when there's no input + payload but there are HTTP labels. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_request_with_labels( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpRequestWithLabelsOutput: + return await self._invoke( + self._select_input(models.HTTP_REQUEST_WITH_LABELS, args, kwargs), + models.HTTP_REQUEST_WITH_LABELS, + [], + plugins, + ) + + @overload + async def http_request_with_labels_and_timestamp_format( + self, + request: models.HttpRequestWithLabelsAndTimestampFormatInput + | models.HttpRequestWithLabelsAndTimestampFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpRequestWithLabelsAndTimestampFormatOutput: ... + + @overload + async def http_request_with_labels_and_timestamp_format( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpRequestWithLabelsAndTimestampFormatInputDict], + ) -> models.HttpRequestWithLabelsAndTimestampFormatOutput: + """ + The example tests how requests serialize different timestamp formats in + the + URI path. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_request_with_labels_and_timestamp_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpRequestWithLabelsAndTimestampFormatOutput: + return await self._invoke( + self._select_input( + models.HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT, args, kwargs + ), + models.HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT, + [], + plugins, + ) + + @overload + async def http_response_code( + self, + request: models.HttpResponseCodeInput | models.HttpResponseCodeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpResponseCodeOutput: ... + + @overload + async def http_response_code( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpResponseCodeInputDict], + ) -> models.HttpResponseCodeOutput: + """ + Invokes the HttpResponseCode operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_response_code( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpResponseCodeOutput: + return await self._invoke( + self._select_input(models.HTTP_RESPONSE_CODE, args, kwargs), + models.HTTP_RESPONSE_CODE, + [], + plugins, + ) + + @overload + async def http_string_payload( + self, + request: models.HttpStringPayloadInput | models.HttpStringPayloadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpStringPayloadOutput: ... + + @overload + async def http_string_payload( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpStringPayloadInputDict], + ) -> models.HttpStringPayloadOutput: + """ + Invokes the HttpStringPayload operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def http_string_payload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpStringPayloadOutput: + return await self._invoke( + self._select_input(models.HTTP_STRING_PAYLOAD, args, kwargs), + models.HTTP_STRING_PAYLOAD, + [], + plugins, + ) + + @overload + async def ignore_query_params_in_response( + self, + request: models.IgnoreQueryParamsInResponseInput + | models.IgnoreQueryParamsInResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.IgnoreQueryParamsInResponseOutput: ... + + @overload + async def ignore_query_params_in_response( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.IgnoreQueryParamsInResponseInputDict], + ) -> models.IgnoreQueryParamsInResponseOutput: + """ + This example ensures that query string bound request parameters are + serialized in the body of responses if the structure is used in both + the request and response. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def ignore_query_params_in_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.IgnoreQueryParamsInResponseOutput: + return await self._invoke( + self._select_input(models.IGNORE_QUERY_PARAMS_IN_RESPONSE, args, kwargs), + models.IGNORE_QUERY_PARAMS_IN_RESPONSE, + [], + plugins, + ) + + @overload + async def input_and_output_with_headers( + self, + request: models.InputAndOutputWithHeadersInput + | models.InputAndOutputWithHeadersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.InputAndOutputWithHeadersOutput: ... + + @overload + async def input_and_output_with_headers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.InputAndOutputWithHeadersInputDict], + ) -> models.InputAndOutputWithHeadersOutput: + """ + The example tests how requests and responses are serialized when there + is + no input or output payload but there are HTTP header bindings. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def input_and_output_with_headers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.InputAndOutputWithHeadersOutput: + return await self._invoke( + self._select_input(models.INPUT_AND_OUTPUT_WITH_HEADERS, args, kwargs), + models.INPUT_AND_OUTPUT_WITH_HEADERS, + [], + plugins, + ) + + @overload + async def nested_xml_map_with_xml_name( + self, + request: models.NestedXmlMapWithXmlNameInput + | models.NestedXmlMapWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NestedXmlMapWithXmlNameOutput: ... + + @overload + async def nested_xml_map_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NestedXmlMapWithXmlNameInputDict], + ) -> models.NestedXmlMapWithXmlNameOutput: + """ + Nested Xml Maps with key/values with @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def nested_xml_map_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NestedXmlMapWithXmlNameOutput: + return await self._invoke( + self._select_input(models.NESTED_XML_MAP_WITH_XML_NAME, args, kwargs), + models.NESTED_XML_MAP_WITH_XML_NAME, + [], + plugins, + ) + + @overload + async def nested_xml_maps( + self, + request: models.NestedXmlMapsInput | models.NestedXmlMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NestedXmlMapsOutput: ... + + @overload + async def nested_xml_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NestedXmlMapsInputDict], + ) -> models.NestedXmlMapsOutput: + """ + Invokes the NestedXmlMaps operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def nested_xml_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NestedXmlMapsOutput: + return await self._invoke( + self._select_input(models.NESTED_XML_MAPS, args, kwargs), + models.NESTED_XML_MAPS, + [], + plugins, + ) + + @overload + async def no_input_and_no_output( + self, + request: models.NoInputAndNoOutputInput | models.NoInputAndNoOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndNoOutputOutput: ... + + @overload + async def no_input_and_no_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndNoOutputInputDict], + ) -> models.NoInputAndNoOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response payload because the operation has no input or + output. + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def no_input_and_no_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndNoOutputOutput: + return await self._invoke( + self._select_input(models.NO_INPUT_AND_NO_OUTPUT, args, kwargs), + models.NO_INPUT_AND_NO_OUTPUT, + [], + plugins, + ) + + @overload + async def no_input_and_output( + self, + request: models.NoInputAndOutputInput | models.NoInputAndOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndOutputOutput: ... + + @overload + async def no_input_and_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndOutputInputDict], + ) -> models.NoInputAndOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response payload because the operation has no input and + the + output is empty. While this should be rare, code generators must support + this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def no_input_and_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndOutputOutput: + return await self._invoke( + self._select_input(models.NO_INPUT_AND_OUTPUT, args, kwargs), + models.NO_INPUT_AND_OUTPUT, + [], + plugins, + ) + + @overload + async def null_and_empty_headers_client( + self, + request: models.NullAndEmptyHeadersClientInput + | models.NullAndEmptyHeadersClientInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NullAndEmptyHeadersClientOutput: ... + + @overload + async def null_and_empty_headers_client( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NullAndEmptyHeadersClientInputDict], + ) -> models.NullAndEmptyHeadersClientOutput: + """ + Null headers are not sent over the wire, empty headers are serialized to + "" + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def null_and_empty_headers_client( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NullAndEmptyHeadersClientOutput: + return await self._invoke( + self._select_input(models.NULL_AND_EMPTY_HEADERS_CLIENT, args, kwargs), + models.NULL_AND_EMPTY_HEADERS_CLIENT, + [], + plugins, + ) + + @overload + async def null_and_empty_headers_server( + self, + request: models.NullAndEmptyHeadersServerInput + | models.NullAndEmptyHeadersServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NullAndEmptyHeadersServerOutput: ... + + @overload + async def null_and_empty_headers_server( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NullAndEmptyHeadersServerInputDict], + ) -> models.NullAndEmptyHeadersServerOutput: + """ + Null headers are not sent over the wire, empty headers are serialized to + "" + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def null_and_empty_headers_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NullAndEmptyHeadersServerOutput: + return await self._invoke( + self._select_input(models.NULL_AND_EMPTY_HEADERS_SERVER, args, kwargs), + models.NULL_AND_EMPTY_HEADERS_SERVER, + [], + plugins, + ) + + @overload + async def omits_null_serializes_empty_string( + self, + request: models.OmitsNullSerializesEmptyStringInput + | models.OmitsNullSerializesEmptyStringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.OmitsNullSerializesEmptyStringOutput: ... + + @overload + async def omits_null_serializes_empty_string( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.OmitsNullSerializesEmptyStringInputDict], + ) -> models.OmitsNullSerializesEmptyStringOutput: + """ + Omits null, but serializes empty string value. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def omits_null_serializes_empty_string( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.OmitsNullSerializesEmptyStringOutput: + return await self._invoke( + self._select_input(models.OMITS_NULL_SERIALIZES_EMPTY_STRING, args, kwargs), + models.OMITS_NULL_SERIALIZES_EMPTY_STRING, + [], + plugins, + ) + + @overload + async def put_with_content_encoding( + self, + request: models.PutWithContentEncodingInput + | models.PutWithContentEncodingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.PutWithContentEncodingOutput: ... + + @overload + async def put_with_content_encoding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.PutWithContentEncodingInputDict], + ) -> models.PutWithContentEncodingOutput: + """ + Invokes the PutWithContentEncoding operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def put_with_content_encoding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.PutWithContentEncodingOutput: + return await self._invoke( + self._select_input(models.PUT_WITH_CONTENT_ENCODING, args, kwargs), + models.PUT_WITH_CONTENT_ENCODING, + [], + plugins, + ) + + @overload + async def query_idempotency_token_auto_fill( + self, + request: models.QueryIdempotencyTokenAutoFillInput + | models.QueryIdempotencyTokenAutoFillInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryIdempotencyTokenAutoFillOutput: ... + + @overload + async def query_idempotency_token_auto_fill( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryIdempotencyTokenAutoFillInputDict], + ) -> models.QueryIdempotencyTokenAutoFillOutput: + """ + Automatically adds idempotency tokens. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_idempotency_token_auto_fill( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryIdempotencyTokenAutoFillOutput: + return await self._invoke( + self._select_input(models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, args, kwargs), + models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, + [], + plugins, + ) + + @overload + async def query_params_as_string_list_map( + self, + request: models.QueryParamsAsStringListMapInput + | models.QueryParamsAsStringListMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryParamsAsStringListMapOutput: ... + + @overload + async def query_params_as_string_list_map( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryParamsAsStringListMapInputDict], + ) -> models.QueryParamsAsStringListMapOutput: + """ + Invokes the QueryParamsAsStringListMap operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_params_as_string_list_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryParamsAsStringListMapOutput: + return await self._invoke( + self._select_input(models.QUERY_PARAMS_AS_STRING_LIST_MAP, args, kwargs), + models.QUERY_PARAMS_AS_STRING_LIST_MAP, + [], + plugins, + ) + + @overload + async def query_precedence( + self, + request: models.QueryPrecedenceInput | models.QueryPrecedenceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryPrecedenceOutput: ... + + @overload + async def query_precedence( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryPrecedenceInputDict], + ) -> models.QueryPrecedenceOutput: + """ + Invokes the QueryPrecedence operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_precedence( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryPrecedenceOutput: + return await self._invoke( + self._select_input(models.QUERY_PRECEDENCE, args, kwargs), + models.QUERY_PRECEDENCE, + [], + plugins, + ) + + @overload + async def recursive_shapes( + self, + request: models.RecursiveShapesInput | models.RecursiveShapesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.RecursiveShapesOutput: ... + + @overload + async def recursive_shapes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.RecursiveShapesInputDict], + ) -> models.RecursiveShapesOutput: + """ + Recursive shapes + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def recursive_shapes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.RecursiveShapesOutput: + return await self._invoke( + self._select_input(models.RECURSIVE_SHAPES, args, kwargs), + models.RECURSIVE_SHAPES, + [], + plugins, + ) + + @overload + async def simple_scalar_properties( + self, + request: models.SimpleScalarPropertiesInput + | models.SimpleScalarPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleScalarPropertiesOutput: ... + + @overload + async def simple_scalar_properties( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleScalarPropertiesInputDict], + ) -> models.SimpleScalarPropertiesOutput: + """ + Invokes the SimpleScalarProperties operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def simple_scalar_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleScalarPropertiesOutput: + return await self._invoke( + self._select_input(models.SIMPLE_SCALAR_PROPERTIES, args, kwargs), + models.SIMPLE_SCALAR_PROPERTIES, + [], + plugins, + ) + + @overload + async def timestamp_format_headers( + self, + request: models.TimestampFormatHeadersInput + | models.TimestampFormatHeadersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.TimestampFormatHeadersOutput: ... + + @overload + async def timestamp_format_headers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.TimestampFormatHeadersInputDict], + ) -> models.TimestampFormatHeadersOutput: + """ + The example tests how timestamp request and response headers are + serialized. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def timestamp_format_headers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.TimestampFormatHeadersOutput: + return await self._invoke( + self._select_input(models.TIMESTAMP_FORMAT_HEADERS, args, kwargs), + models.TIMESTAMP_FORMAT_HEADERS, + [], + plugins, + ) + + @overload + async def xml_attributes( + self, + request: models.XmlAttributesInput | models.XmlAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlAttributesOutput: ... + + @overload + async def xml_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlAttributesInputDict], + ) -> models.XmlAttributesOutput: + """ + This example serializes an XML attributes on synthesized document. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlAttributesOutput: + return await self._invoke( + self._select_input(models.XML_ATTRIBUTES, args, kwargs), + models.XML_ATTRIBUTES, + [], + plugins, + ) + + @overload + async def xml_attributes_in_middle( + self, + request: models.XmlAttributesInMiddleInput + | models.XmlAttributesInMiddleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlAttributesInMiddleOutput: ... + + @overload + async def xml_attributes_in_middle( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlAttributesInMiddleInputDict], + ) -> models.XmlAttributesInMiddleOutput: + """ + This example serializes an XML attribute on a payload when it's defined + in the middle of the member list. + This tests that implementations correctly write attributes immediately + after the element start tag, + which is critical for languages like C# where attribute writing must + happen before child elements. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_attributes_in_middle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlAttributesInMiddleOutput: + return await self._invoke( + self._select_input(models.XML_ATTRIBUTES_IN_MIDDLE, args, kwargs), + models.XML_ATTRIBUTES_IN_MIDDLE, + [], + plugins, + ) + + @overload + async def xml_attributes_on_payload( + self, + request: models.XmlAttributesOnPayloadInput + | models.XmlAttributesOnPayloadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlAttributesOnPayloadOutput: ... + + @overload + async def xml_attributes_on_payload( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlAttributesOnPayloadInputDict], + ) -> models.XmlAttributesOnPayloadOutput: + """ + This example serializes an XML attributes on a document targeted by + httpPayload. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_attributes_on_payload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlAttributesOnPayloadOutput: + return await self._invoke( + self._select_input(models.XML_ATTRIBUTES_ON_PAYLOAD, args, kwargs), + models.XML_ATTRIBUTES_ON_PAYLOAD, + [], + plugins, + ) + + @overload + async def xml_blobs( + self, + request: models.XmlBlobsInput | models.XmlBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlBlobsOutput: ... + + @overload + async def xml_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlBlobsInputDict], + ) -> models.XmlBlobsOutput: + """ + Blobs are base64 encoded + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlBlobsOutput: + return await self._invoke( + self._select_input(models.XML_BLOBS, args, kwargs), + models.XML_BLOBS, + [], + plugins, + ) + + @overload + async def xml_empty_blobs( + self, + request: models.XmlEmptyBlobsInput | models.XmlEmptyBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyBlobsOutput: ... + + @overload + async def xml_empty_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyBlobsInputDict], + ) -> models.XmlEmptyBlobsOutput: + """ + Blobs are base64 encoded + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyBlobsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_BLOBS, args, kwargs), + models.XML_EMPTY_BLOBS, + [], + plugins, + ) + + @overload + async def xml_empty_lists( + self, + request: models.XmlEmptyListsInput | models.XmlEmptyListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyListsOutput: ... + + @overload + async def xml_empty_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyListsInputDict], + ) -> models.XmlEmptyListsOutput: + """ + Invokes the XmlEmptyLists operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyListsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_LISTS, args, kwargs), + models.XML_EMPTY_LISTS, + [], + plugins, + ) + + @overload + async def xml_empty_maps( + self, + request: models.XmlEmptyMapsInput | models.XmlEmptyMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyMapsOutput: ... + + @overload + async def xml_empty_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyMapsInputDict], + ) -> models.XmlEmptyMapsOutput: + """ + Invokes the XmlEmptyMaps operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyMapsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_MAPS, args, kwargs), + models.XML_EMPTY_MAPS, + [], + plugins, + ) + + @overload + async def xml_empty_strings( + self, + request: models.XmlEmptyStringsInput | models.XmlEmptyStringsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyStringsOutput: ... + + @overload + async def xml_empty_strings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyStringsInputDict], + ) -> models.XmlEmptyStringsOutput: + """ + Invokes the XmlEmptyStrings operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_strings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyStringsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_STRINGS, args, kwargs), + models.XML_EMPTY_STRINGS, + [], + plugins, + ) + + @overload + async def xml_enums( + self, + request: models.XmlEnumsInput | models.XmlEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEnumsOutput: ... + + @overload + async def xml_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEnumsInputDict], + ) -> models.XmlEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEnumsOutput: + return await self._invoke( + self._select_input(models.XML_ENUMS, args, kwargs), + models.XML_ENUMS, + [], + plugins, + ) + + @overload + async def xml_int_enums( + self, + request: models.XmlIntEnumsInput | models.XmlIntEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlIntEnumsOutput: ... + + @overload + async def xml_int_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlIntEnumsInputDict], + ) -> models.XmlIntEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_int_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlIntEnumsOutput: + return await self._invoke( + self._select_input(models.XML_INT_ENUMS, args, kwargs), + models.XML_INT_ENUMS, + [], + plugins, + ) + + @overload + async def xml_lists( + self, + request: models.XmlListsInput | models.XmlListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlListsOutput: ... + + @overload + async def xml_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlListsInputDict], + ) -> models.XmlListsOutput: + """ + This test case serializes XML lists for the following cases for both + input and output: + + 1. Normal XML lists. + 2. Normal XML sets. + 3. XML lists of lists. + 4. XML lists with @xmlName on its members + 5. Flattened XML lists. + 6. Flattened XML lists with @xmlName. + 7. Flattened XML lists with @xmlNamespace. + 8. Lists of structures. + 9. Flattened XML list of structures + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlListsOutput: + return await self._invoke( + self._select_input(models.XML_LISTS, args, kwargs), + models.XML_LISTS, + [], + plugins, + ) + + @overload + async def xml_map_with_xml_namespace( + self, + request: models.XmlMapWithXmlNamespaceInput + | models.XmlMapWithXmlNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapWithXmlNamespaceOutput: ... + + @overload + async def xml_map_with_xml_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapWithXmlNamespaceInputDict], + ) -> models.XmlMapWithXmlNamespaceOutput: + """ + Maps with @xmlNamespace and @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_map_with_xml_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapWithXmlNamespaceOutput: + return await self._invoke( + self._select_input(models.XML_MAP_WITH_XML_NAMESPACE, args, kwargs), + models.XML_MAP_WITH_XML_NAMESPACE, + [], + plugins, + ) + + @overload + async def xml_maps( + self, + request: models.XmlMapsInput | models.XmlMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapsOutput: ... + + @overload + async def xml_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapsInputDict], + ) -> models.XmlMapsOutput: + """ + The example tests basic map serialization. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapsOutput: + return await self._invoke( + self._select_input(models.XML_MAPS, args, kwargs), + models.XML_MAPS, + [], + plugins, + ) + + @overload + async def xml_maps_xml_name( + self, + request: models.XmlMapsXmlNameInput | models.XmlMapsXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapsXmlNameOutput: ... + + @overload + async def xml_maps_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapsXmlNameInputDict], + ) -> models.XmlMapsXmlNameOutput: + """ + Invokes the XmlMapsXmlName operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_maps_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapsXmlNameOutput: + return await self._invoke( + self._select_input(models.XML_MAPS_XML_NAME, args, kwargs), + models.XML_MAPS_XML_NAME, + [], + plugins, + ) + + @overload + async def xml_namespaces( + self, + request: models.XmlNamespacesInput | models.XmlNamespacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlNamespacesOutput: ... + + @overload + async def xml_namespaces( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlNamespacesInputDict], + ) -> models.XmlNamespacesOutput: + """ + Invokes the XmlNamespaces operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_namespaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlNamespacesOutput: + return await self._invoke( + self._select_input(models.XML_NAMESPACES, args, kwargs), + models.XML_NAMESPACES, + [], + plugins, + ) + + @overload + async def xml_timestamps( + self, + request: models.XmlTimestampsInput | models.XmlTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlTimestampsOutput: ... + + @overload + async def xml_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlTimestampsInputDict], + ) -> models.XmlTimestampsOutput: + """ + This tests how timestamps are serialized, including using the + default format of date-time and various @timestampFormat trait + values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlTimestampsOutput: + return await self._invoke( + self._select_input(models.XML_TIMESTAMPS, args, kwargs), + models.XML_TIMESTAMPS, + [], + plugins, + ) + + @overload + async def xml_unions( + self, + request: models.XmlUnionsInput | models.XmlUnionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlUnionsOutput: ... + + @overload + async def xml_unions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlUnionsInputDict], + ) -> models.XmlUnionsOutput: + """ + Invokes the XmlUnions operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_unions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlUnionsOutput: + return await self._invoke( + self._select_input(models.XML_UNIONS, args, kwargs), + models.XML_UNIONS, + [], + plugins, + ) + + async def _new_config(self) -> AsyncRestXmlProtocolConfig: + return await AsyncRestXmlProtocolConfig.resolve() + + async def _post_setup(self, config: AsyncRestXmlProtocolConfig) -> None: + if config.aws_credentials_identity_resolver is None: + config_context = config.resolution_context() + config_file = None + profile_name = None + if config_context is not None: + config_file = await config_context.parsed_profiles() + if config_context.profile_source is ConfigSource.OVERRIDE: + profile_name = config_context.profile_name + config.aws_credentials_identity_resolver = await AsyncIdentityChain.create( + AWSCredentialsIdentity, + config_file=config_file, + profile_name=profile_name, + region_override=config.region, + http_client=cast(AsyncHTTPClient | None, config.transport), + ) diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/aio/config.py b/codegen-output-py/rest-xml-client/src/restxml_client/aio/config.py new file mode 100644 index 000000000..3061077bc --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/aio/config.py @@ -0,0 +1,123 @@ +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any, ClassVar, Self, Unpack + +from smithy_aws_core.aio.auth.sigv4 import AsyncSigV4AuthScheme +from smithy_aws_core.aio.config.aws_config import ( + AsyncAwsConfig, + AsyncAwsConfigOverrides, +) +from smithy_aws_core.aio.config.filesystem import AsyncFileSystem +from smithy_aws_core.aio.protocols import AsyncRestXmlClientProtocol +from smithy_aws_core.config.resolvers import EndpointUriResolver +from smithy_aws_core.config.types import FieldSpec +from smithy_aws_core.endpoints import AWS_RULES_EXTENSION +from smithy_core.aio.interfaces import AsyncEndpointResolver +from smithy_core.aio.interfaces.auth import AsyncAuthScheme +from smithy_core.auth import DefaultAuthResolver +from smithy_core.endpoints import BddEndpointResolver +from smithy_core.interceptors import Interceptor +from smithy_core.interfaces import ( + ClientProtocol, + EndpointResolver, + ProtocolConstructor, + ProtocolSettings, +) +from smithy_core.interfaces.auth import AuthSchemeResolver +from smithy_core.shapes import ShapeID +from smithy_http.aio.aiohttp import AIOHTTPClient + +from restxml_client._private.endpoints import BDD +from restxml_client._private.schemas import REST_XML + +_PROTOCOL_SETTINGS = ProtocolSettings( + namespace="aws.protocoltests.restxml", + service_target="RestXml", + version="2019-12-16", + service_schema=REST_XML, +) + + +class _AsyncRestXmlProtocolConfigOverrides(AsyncAwsConfigOverrides, total=False): + "Explicit field values AsyncRestXmlProtocolConfig.resolve accepts." + + endpoint_resolver: EndpointResolver | AsyncEndpointResolver | None + protocol: ( + ClientProtocol[Any, Any] | ProtocolConstructor[ClientProtocol[Any, Any]] | None + ) + auth_schemes: dict[ShapeID, AsyncAuthScheme[Any, Any, Any, Any]] | None + auth_scheme_resolver: AuthSchemeResolver | None + + +@dataclass(kw_only=True, repr=False, init=False) +class AsyncRestXmlProtocolConfig(AsyncAwsConfig): + "Configuration for AsyncRestXmlProtocolClient." + + interceptors: list[Interceptor[Any, Any, Any, Any]] = field( + default_factory=list[Interceptor[Any, Any, Any, Any]] + ) + "Hooks called during the execution of a request." + + endpoint_resolver: EndpointResolver | AsyncEndpointResolver | None = None + "Resolves the endpoint of each operation." + + protocol: ClientProtocol[Any, Any] | None = None + "Serializes requests and deserializes responses." + + auth_schemes: dict[ShapeID, AsyncAuthScheme[Any, Any, Any, Any]] | None = None + "Auth schemes by auth scheme ID." + + auth_scheme_resolver: AuthSchemeResolver | None = None + "Determines the auth scheme for each operation." + + _FIELDS: ClassVar[dict[str, FieldSpec]] = { + **AsyncAwsConfig._FIELDS, + "endpoint_uri": FieldSpec( + default=None, resolver=EndpointUriResolver("rest_xml_protocol").program + ), + "endpoint_resolver": FieldSpec( + default_factory=lambda: BddEndpointResolver( + BDD, extensions=[AWS_RULES_EXTENSION] + ) + ), + "protocol": FieldSpec( + default_factory=lambda: AsyncRestXmlClientProtocol(_PROTOCOL_SETTINGS), + converter=lambda p: p(_PROTOCOL_SETTINGS) if isinstance(p, type) else p, + ), + "auth_schemes": FieldSpec( + default_factory=lambda: { + ShapeID("aws.auth#sigv4"): AsyncSigV4AuthScheme(service="restxml") + } + ), + "auth_scheme_resolver": FieldSpec(default_factory=DefaultAuthResolver), + "transport": FieldSpec(default_factory=lambda: AIOHTTPClient()), + } + + def set_auth_scheme(self, scheme: AsyncAuthScheme[Any, Any, Any, Any]) -> None: + "Set an auth scheme under its scheme ID." + auth_schemes = dict(self.auth_schemes or {}) + auth_schemes[scheme.scheme_id] = scheme + self.auth_schemes = auth_schemes + + @classmethod + async def resolve( # pyright: ignore[reportIncompatibleMethodOverride] + cls, + *, + profile: str | None = None, + fs: AsyncFileSystem | None = None, + config_file_path: str | None = None, + credentials_file_path: str | None = None, + **overrides: Unpack[_AsyncRestXmlProtocolConfigOverrides], + ) -> Self: + "Resolve the config from overrides, the environment, and config files." + return await cls._resolve( + profile=profile, + fs=fs, + config_file_path=config_file_path, + credentials_file_path=credentials_file_path, + overrides=overrides, + ) + + +type Plugin = Callable[[AsyncRestXmlProtocolConfig], None] +"A callable that customizes the client configuration." diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/aio/user_agent.py b/codegen-output-py/rest-xml-client/src/restxml_client/aio/user_agent.py new file mode 100644 index 000000000..9f1c8e02c --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/aio/user_agent.py @@ -0,0 +1,16 @@ +from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor + +from restxml_client import __version__ +from restxml_client.aio.config import AsyncRestXmlProtocolConfig + + +def aws_user_agent_plugin(config: AsyncRestXmlProtocolConfig) -> None: + "Send the AWS user agent with every request." + config.interceptors.append( + UserAgentInterceptor( + ua_suffix=config.user_agent_extra, + ua_app_id=config.sdk_ua_app_id, + sdk_version=__version__, + service_id="Rest_Xml_Protocol", + ) + ) diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/client.py b/codegen-output-py/rest-xml-client/src/restxml_client/client.py new file mode 100644 index 000000000..ed8294c45 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/client.py @@ -0,0 +1,2362 @@ +from __future__ import annotations + +from typing import Unpack, cast, overload + +from smithy_aws_core.config.types import ConfigSource +from smithy_aws_core.identity.chain.resolver import IdentityChain +from smithy_aws_core.identity.components import AWSCredentialsIdentity +from smithy_core.client import Client +from smithy_http.interfaces import HTTPClient +from smithy_http.plugins import user_agent_plugin + +from restxml_client import models +from restxml_client.config import Plugin, RestXmlProtocolConfig +from restxml_client.user_agent import aws_user_agent_plugin + + +class RestXmlProtocolClient(Client[RestXmlProtocolConfig]): + "A REST XML service that sends XML requests and responses." + + _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + + @overload + def all_query_string_types( + self, + request: models.AllQueryStringTypesInput | models.AllQueryStringTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.AllQueryStringTypesOutput: ... + + @overload + def all_query_string_types( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.AllQueryStringTypesInputDict], + ) -> models.AllQueryStringTypesOutput: + """ + This example uses all query string types. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def all_query_string_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.AllQueryStringTypesOutput: + return self._invoke( + self._select_input(models.ALL_QUERY_STRING_TYPES, args, kwargs), + models.ALL_QUERY_STRING_TYPES, + [], + plugins, + ) + + @overload + def body_with_xml_name( + self, + request: models.BodyWithXmlNameInput | models.BodyWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.BodyWithXmlNameOutput: ... + + @overload + def body_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.BodyWithXmlNameInputDict], + ) -> models.BodyWithXmlNameOutput: + """ + The following example serializes a body that uses an XML name, + changing the wrapper name. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def body_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.BodyWithXmlNameOutput: + return self._invoke( + self._select_input(models.BODY_WITH_XML_NAME, args, kwargs), + models.BODY_WITH_XML_NAME, + [], + plugins, + ) + + @overload + def constant_and_variable_query_string( + self, + request: models.ConstantAndVariableQueryStringInput + | models.ConstantAndVariableQueryStringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.ConstantAndVariableQueryStringOutput: ... + + @overload + def constant_and_variable_query_string( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.ConstantAndVariableQueryStringInputDict], + ) -> models.ConstantAndVariableQueryStringOutput: + """ + This example uses fixed query string params and variable query string + params. + The fixed query string parameters and variable parameters must both be + serialized (implementations may need to merge them together). + + :param plugins: Callables that change the configuration for this call + only. + """ + + def constant_and_variable_query_string( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.ConstantAndVariableQueryStringOutput: + return self._invoke( + self._select_input(models.CONSTANT_AND_VARIABLE_QUERY_STRING, args, kwargs), + models.CONSTANT_AND_VARIABLE_QUERY_STRING, + [], + plugins, + ) + + @overload + def constant_query_string( + self, + request: models.ConstantQueryStringInput | models.ConstantQueryStringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.ConstantQueryStringOutput: ... + + @overload + def constant_query_string( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.ConstantQueryStringInputDict], + ) -> models.ConstantQueryStringOutput: + """ + This example uses a constant query string parameters and a label. + This simply tests that labels and query string parameters are + compatible. The fixed query string parameter named "hello" should + in no way conflict with the label, `{hello}`. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def constant_query_string( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.ConstantQueryStringOutput: + return self._invoke( + self._select_input(models.CONSTANT_QUERY_STRING, args, kwargs), + models.CONSTANT_QUERY_STRING, + [], + plugins, + ) + + @overload + def content_type_parameters( + self, + request: models.ContentTypeParametersInput + | models.ContentTypeParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.ContentTypeParametersOutput: ... + + @overload + def content_type_parameters( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.ContentTypeParametersInputDict], + ) -> models.ContentTypeParametersOutput: + """ + The example tests how servers must support requests + containing a `Content-Type` header with parameters. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def content_type_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.ContentTypeParametersOutput: + return self._invoke( + self._select_input(models.CONTENT_TYPE_PARAMETERS, args, kwargs), + models.CONTENT_TYPE_PARAMETERS, + [], + plugins, + ) + + @overload + def datetime_offsets( + self, + request: models.DatetimeOffsetsInput | models.DatetimeOffsetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.DatetimeOffsetsOutput: ... + + @overload + def datetime_offsets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.DatetimeOffsetsInputDict], + ) -> models.DatetimeOffsetsOutput: + """ + Invokes the DatetimeOffsets operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def datetime_offsets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.DatetimeOffsetsOutput: + return self._invoke( + self._select_input(models.DATETIME_OFFSETS, args, kwargs), + models.DATETIME_OFFSETS, + [], + plugins, + ) + + @overload + def empty_input_and_empty_output( + self, + request: models.EmptyInputAndEmptyOutputInput + | models.EmptyInputAndEmptyOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EmptyInputAndEmptyOutputOutput: ... + + @overload + def empty_input_and_empty_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EmptyInputAndEmptyOutputInputDict], + ) -> models.EmptyInputAndEmptyOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response payload because the operation has an empty input + and empty output structure that reuses the same shape. While this should + be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def empty_input_and_empty_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EmptyInputAndEmptyOutputOutput: + return self._invoke( + self._select_input(models.EMPTY_INPUT_AND_EMPTY_OUTPUT, args, kwargs), + models.EMPTY_INPUT_AND_EMPTY_OUTPUT, + [], + plugins, + ) + + @overload + def endpoint_operation( + self, + request: models.EndpointOperationInput | models.EndpointOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointOperationOutput: ... + + @overload + def endpoint_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointOperationInputDict], + ) -> models.EndpointOperationOutput: + """ + Invokes the EndpointOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def endpoint_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointOperationOutput: + return self._invoke( + self._select_input(models.ENDPOINT_OPERATION, args, kwargs), + models.ENDPOINT_OPERATION, + [], + plugins, + ) + + @overload + def endpoint_with_host_label_header_operation( + self, + request: models.EndpointWithHostLabelHeaderOperationInput + | models.EndpointWithHostLabelHeaderOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointWithHostLabelHeaderOperationOutput: ... + + @overload + def endpoint_with_host_label_header_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointWithHostLabelHeaderOperationInputDict], + ) -> models.EndpointWithHostLabelHeaderOperationOutput: + """ + Invokes the EndpointWithHostLabelHeaderOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def endpoint_with_host_label_header_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointWithHostLabelHeaderOperationOutput: + return self._invoke( + self._select_input( + models.ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION, args, kwargs + ), + models.ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION, + [], + plugins, + ) + + @overload + def endpoint_with_host_label_operation( + self, + request: models.EndpointWithHostLabelOperationInput + | models.EndpointWithHostLabelOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointWithHostLabelOperationOutput: ... + + @overload + def endpoint_with_host_label_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointWithHostLabelOperationInputDict], + ) -> models.EndpointWithHostLabelOperationOutput: + """ + Invokes the EndpointWithHostLabelOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def endpoint_with_host_label_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointWithHostLabelOperationOutput: + return self._invoke( + self._select_input(models.ENDPOINT_WITH_HOST_LABEL_OPERATION, args, kwargs), + models.ENDPOINT_WITH_HOST_LABEL_OPERATION, + [], + plugins, + ) + + @overload + def flattened_xml_map( + self, + request: models.FlattenedXmlMapInput | models.FlattenedXmlMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapOutput: ... + + @overload + def flattened_xml_map( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapInputDict], + ) -> models.FlattenedXmlMapOutput: + """ + Flattened maps + + :param plugins: Callables that change the configuration for this call + only. + """ + + def flattened_xml_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapOutput: + return self._invoke( + self._select_input(models.FLATTENED_XML_MAP, args, kwargs), + models.FLATTENED_XML_MAP, + [], + plugins, + ) + + @overload + def flattened_xml_map_with_xml_name( + self, + request: models.FlattenedXmlMapWithXmlNameInput + | models.FlattenedXmlMapWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapWithXmlNameOutput: ... + + @overload + def flattened_xml_map_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapWithXmlNameInputDict], + ) -> models.FlattenedXmlMapWithXmlNameOutput: + """ + Flattened maps with @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + def flattened_xml_map_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapWithXmlNameOutput: + return self._invoke( + self._select_input(models.FLATTENED_XML_MAP_WITH_XML_NAME, args, kwargs), + models.FLATTENED_XML_MAP_WITH_XML_NAME, + [], + plugins, + ) + + @overload + def flattened_xml_map_with_xml_namespace( + self, + request: models.FlattenedXmlMapWithXmlNamespaceInput + | models.FlattenedXmlMapWithXmlNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: ... + + @overload + def flattened_xml_map_with_xml_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapWithXmlNamespaceInputDict], + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: + """ + Flattened maps with @xmlNamespace and @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + def flattened_xml_map_with_xml_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: + return self._invoke( + self._select_input( + models.FLATTENED_XML_MAP_WITH_XML_NAMESPACE, args, kwargs + ), + models.FLATTENED_XML_MAP_WITH_XML_NAMESPACE, + [], + plugins, + ) + + @overload + def fractional_seconds( + self, + request: models.FractionalSecondsInput | models.FractionalSecondsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FractionalSecondsOutput: ... + + @overload + def fractional_seconds( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FractionalSecondsInputDict], + ) -> models.FractionalSecondsOutput: + """ + Invokes the FractionalSeconds operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def fractional_seconds( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FractionalSecondsOutput: + return self._invoke( + self._select_input(models.FRACTIONAL_SECONDS, args, kwargs), + models.FRACTIONAL_SECONDS, + [], + plugins, + ) + + @overload + def greeting_with_errors( + self, + request: models.GreetingWithErrorsInput | models.GreetingWithErrorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.GreetingWithErrorsOutput: ... + + @overload + def greeting_with_errors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.GreetingWithErrorsInputDict], + ) -> models.GreetingWithErrorsOutput: + """ + This operation has three possible return values: + + 1. A successful response in the form of GreetingWithErrorsOutput + 2. An InvalidGreeting error. + 3. A BadRequest error. + + Implementations must be able to successfully take a response and + properly (de)serialize successful and error responses based on the + the presence of the + + :param plugins: Callables that change the configuration for this call + only. + """ + + def greeting_with_errors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.GreetingWithErrorsOutput: + return self._invoke( + self._select_input(models.GREETING_WITH_ERRORS, args, kwargs), + models.GREETING_WITH_ERRORS, + [], + plugins, + ) + + @overload + def http_empty_prefix_headers( + self, + request: models.HttpEmptyPrefixHeadersInput + | models.HttpEmptyPrefixHeadersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpEmptyPrefixHeadersOutput: ... + + @overload + def http_empty_prefix_headers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpEmptyPrefixHeadersInputDict], + ) -> models.HttpEmptyPrefixHeadersOutput: + """ + Clients that perform this test extract all headers from the response. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_empty_prefix_headers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpEmptyPrefixHeadersOutput: + return self._invoke( + self._select_input(models.HTTP_EMPTY_PREFIX_HEADERS, args, kwargs), + models.HTTP_EMPTY_PREFIX_HEADERS, + [], + plugins, + ) + + @overload + def http_enum_payload( + self, + request: models.HttpEnumPayloadInput | models.HttpEnumPayloadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpEnumPayloadOutput: ... + + @overload + def http_enum_payload( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpEnumPayloadInputDict], + ) -> models.HttpEnumPayloadOutput: + """ + Invokes the HttpEnumPayload operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_enum_payload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpEnumPayloadOutput: + return self._invoke( + self._select_input(models.HTTP_ENUM_PAYLOAD, args, kwargs), + models.HTTP_ENUM_PAYLOAD, + [], + plugins, + ) + + @overload + def http_payload_traits( + self, + request: models.HttpPayloadTraitsInput | models.HttpPayloadTraitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadTraitsOutput: ... + + @overload + def http_payload_traits( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadTraitsInputDict], + ) -> models.HttpPayloadTraitsOutput: + """ + This example serializes a blob shape in the payload. + + In this example, no XML document is synthesized because the payload is + not a structure or a union type. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_payload_traits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadTraitsOutput: + return self._invoke( + self._select_input(models.HTTP_PAYLOAD_TRAITS, args, kwargs), + models.HTTP_PAYLOAD_TRAITS, + [], + plugins, + ) + + @overload + def http_payload_traits_with_media_type( + self, + request: models.HttpPayloadTraitsWithMediaTypeInput + | models.HttpPayloadTraitsWithMediaTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadTraitsWithMediaTypeOutput: ... + + @overload + def http_payload_traits_with_media_type( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadTraitsWithMediaTypeInputDict], + ) -> models.HttpPayloadTraitsWithMediaTypeOutput: + """ + This example uses a `@mediaType` trait on the payload to force a custom + content-type to be serialized. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_payload_traits_with_media_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadTraitsWithMediaTypeOutput: + return self._invoke( + self._select_input( + models.HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE, args, kwargs + ), + models.HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE, + [], + plugins, + ) + + @overload + def http_payload_with_member_xml_name( + self, + request: models.HttpPayloadWithMemberXmlNameInput + | models.HttpPayloadWithMemberXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithMemberXmlNameOutput: ... + + @overload + def http_payload_with_member_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithMemberXmlNameInputDict], + ) -> models.HttpPayloadWithMemberXmlNameOutput: + """ + The following example serializes a payload that uses an XML name + on the member, changing the wrapper name. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_payload_with_member_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithMemberXmlNameOutput: + return self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_MEMBER_XML_NAME, args, kwargs), + models.HTTP_PAYLOAD_WITH_MEMBER_XML_NAME, + [], + plugins, + ) + + @overload + def http_payload_with_structure( + self, + request: models.HttpPayloadWithStructureInput + | models.HttpPayloadWithStructureInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithStructureOutput: ... + + @overload + def http_payload_with_structure( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithStructureInputDict], + ) -> models.HttpPayloadWithStructureOutput: + """ + This example serializes a structure in the payload. + + Note that serializing a structure changes the wrapper element name + to match the targeted structure. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_payload_with_structure( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithStructureOutput: + return self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_STRUCTURE, args, kwargs), + models.HTTP_PAYLOAD_WITH_STRUCTURE, + [], + plugins, + ) + + @overload + def http_payload_with_union( + self, + request: models.HttpPayloadWithUnionInput + | models.HttpPayloadWithUnionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithUnionOutput: ... + + @overload + def http_payload_with_union( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithUnionInputDict], + ) -> models.HttpPayloadWithUnionOutput: + """ + This example serializes a union in the payload. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_payload_with_union( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithUnionOutput: + return self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_UNION, args, kwargs), + models.HTTP_PAYLOAD_WITH_UNION, + [], + plugins, + ) + + @overload + def http_payload_with_xml_name( + self, + request: models.HttpPayloadWithXmlNameInput + | models.HttpPayloadWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithXmlNameOutput: ... + + @overload + def http_payload_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithXmlNameInputDict], + ) -> models.HttpPayloadWithXmlNameOutput: + """ + The following example serializes a payload that uses an XML name, + changing the wrapper name. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_payload_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithXmlNameOutput: + return self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_XML_NAME, args, kwargs), + models.HTTP_PAYLOAD_WITH_XML_NAME, + [], + plugins, + ) + + @overload + def http_payload_with_xml_namespace( + self, + request: models.HttpPayloadWithXmlNamespaceInput + | models.HttpPayloadWithXmlNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithXmlNamespaceOutput: ... + + @overload + def http_payload_with_xml_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithXmlNamespaceInputDict], + ) -> models.HttpPayloadWithXmlNamespaceOutput: + """ + The following example serializes a payload that uses an XML namespace. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_payload_with_xml_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithXmlNamespaceOutput: + return self._invoke( + self._select_input(models.HTTP_PAYLOAD_WITH_XML_NAMESPACE, args, kwargs), + models.HTTP_PAYLOAD_WITH_XML_NAMESPACE, + [], + plugins, + ) + + @overload + def http_payload_with_xml_namespace_and_prefix( + self, + request: models.HttpPayloadWithXmlNamespaceAndPrefixInput + | models.HttpPayloadWithXmlNamespaceAndPrefixInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPayloadWithXmlNamespaceAndPrefixOutput: ... + + @overload + def http_payload_with_xml_namespace_and_prefix( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPayloadWithXmlNamespaceAndPrefixInputDict], + ) -> models.HttpPayloadWithXmlNamespaceAndPrefixOutput: + """ + The following example serializes a payload that uses an XML namespace. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_payload_with_xml_namespace_and_prefix( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPayloadWithXmlNamespaceAndPrefixOutput: + return self._invoke( + self._select_input( + models.HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX, args, kwargs + ), + models.HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX, + [], + plugins, + ) + + @overload + def http_prefix_headers( + self, + request: models.HttpPrefixHeadersInput | models.HttpPrefixHeadersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpPrefixHeadersOutput: ... + + @overload + def http_prefix_headers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpPrefixHeadersInputDict], + ) -> models.HttpPrefixHeadersOutput: + """ + This examples adds headers to the input of a request and response by + prefix. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_prefix_headers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpPrefixHeadersOutput: + return self._invoke( + self._select_input(models.HTTP_PREFIX_HEADERS, args, kwargs), + models.HTTP_PREFIX_HEADERS, + [], + plugins, + ) + + @overload + def http_request_with_float_labels( + self, + request: models.HttpRequestWithFloatLabelsInput + | models.HttpRequestWithFloatLabelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpRequestWithFloatLabelsOutput: ... + + @overload + def http_request_with_float_labels( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpRequestWithFloatLabelsInputDict], + ) -> models.HttpRequestWithFloatLabelsOutput: + """ + Invokes the HttpRequestWithFloatLabels operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_request_with_float_labels( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpRequestWithFloatLabelsOutput: + return self._invoke( + self._select_input(models.HTTP_REQUEST_WITH_FLOAT_LABELS, args, kwargs), + models.HTTP_REQUEST_WITH_FLOAT_LABELS, + [], + plugins, + ) + + @overload + def http_request_with_greedy_label_in_path( + self, + request: models.HttpRequestWithGreedyLabelInPathInput + | models.HttpRequestWithGreedyLabelInPathInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpRequestWithGreedyLabelInPathOutput: ... + + @overload + def http_request_with_greedy_label_in_path( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpRequestWithGreedyLabelInPathInputDict], + ) -> models.HttpRequestWithGreedyLabelInPathOutput: + """ + Invokes the HttpRequestWithGreedyLabelInPath operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_request_with_greedy_label_in_path( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpRequestWithGreedyLabelInPathOutput: + return self._invoke( + self._select_input( + models.HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH, args, kwargs + ), + models.HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH, + [], + plugins, + ) + + @overload + def http_request_with_labels( + self, + request: models.HttpRequestWithLabelsInput + | models.HttpRequestWithLabelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpRequestWithLabelsOutput: ... + + @overload + def http_request_with_labels( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpRequestWithLabelsInputDict], + ) -> models.HttpRequestWithLabelsOutput: + """ + The example tests how requests are serialized when there's no input + payload but there are HTTP labels. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_request_with_labels( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpRequestWithLabelsOutput: + return self._invoke( + self._select_input(models.HTTP_REQUEST_WITH_LABELS, args, kwargs), + models.HTTP_REQUEST_WITH_LABELS, + [], + plugins, + ) + + @overload + def http_request_with_labels_and_timestamp_format( + self, + request: models.HttpRequestWithLabelsAndTimestampFormatInput + | models.HttpRequestWithLabelsAndTimestampFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpRequestWithLabelsAndTimestampFormatOutput: ... + + @overload + def http_request_with_labels_and_timestamp_format( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpRequestWithLabelsAndTimestampFormatInputDict], + ) -> models.HttpRequestWithLabelsAndTimestampFormatOutput: + """ + The example tests how requests serialize different timestamp formats in + the + URI path. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_request_with_labels_and_timestamp_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpRequestWithLabelsAndTimestampFormatOutput: + return self._invoke( + self._select_input( + models.HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT, args, kwargs + ), + models.HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT, + [], + plugins, + ) + + @overload + def http_response_code( + self, + request: models.HttpResponseCodeInput | models.HttpResponseCodeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpResponseCodeOutput: ... + + @overload + def http_response_code( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpResponseCodeInputDict], + ) -> models.HttpResponseCodeOutput: + """ + Invokes the HttpResponseCode operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_response_code( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpResponseCodeOutput: + return self._invoke( + self._select_input(models.HTTP_RESPONSE_CODE, args, kwargs), + models.HTTP_RESPONSE_CODE, + [], + plugins, + ) + + @overload + def http_string_payload( + self, + request: models.HttpStringPayloadInput | models.HttpStringPayloadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HttpStringPayloadOutput: ... + + @overload + def http_string_payload( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HttpStringPayloadInputDict], + ) -> models.HttpStringPayloadOutput: + """ + Invokes the HttpStringPayload operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def http_string_payload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HttpStringPayloadOutput: + return self._invoke( + self._select_input(models.HTTP_STRING_PAYLOAD, args, kwargs), + models.HTTP_STRING_PAYLOAD, + [], + plugins, + ) + + @overload + def ignore_query_params_in_response( + self, + request: models.IgnoreQueryParamsInResponseInput + | models.IgnoreQueryParamsInResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.IgnoreQueryParamsInResponseOutput: ... + + @overload + def ignore_query_params_in_response( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.IgnoreQueryParamsInResponseInputDict], + ) -> models.IgnoreQueryParamsInResponseOutput: + """ + This example ensures that query string bound request parameters are + serialized in the body of responses if the structure is used in both + the request and response. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def ignore_query_params_in_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.IgnoreQueryParamsInResponseOutput: + return self._invoke( + self._select_input(models.IGNORE_QUERY_PARAMS_IN_RESPONSE, args, kwargs), + models.IGNORE_QUERY_PARAMS_IN_RESPONSE, + [], + plugins, + ) + + @overload + def input_and_output_with_headers( + self, + request: models.InputAndOutputWithHeadersInput + | models.InputAndOutputWithHeadersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.InputAndOutputWithHeadersOutput: ... + + @overload + def input_and_output_with_headers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.InputAndOutputWithHeadersInputDict], + ) -> models.InputAndOutputWithHeadersOutput: + """ + The example tests how requests and responses are serialized when there + is + no input or output payload but there are HTTP header bindings. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def input_and_output_with_headers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.InputAndOutputWithHeadersOutput: + return self._invoke( + self._select_input(models.INPUT_AND_OUTPUT_WITH_HEADERS, args, kwargs), + models.INPUT_AND_OUTPUT_WITH_HEADERS, + [], + plugins, + ) + + @overload + def nested_xml_map_with_xml_name( + self, + request: models.NestedXmlMapWithXmlNameInput + | models.NestedXmlMapWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NestedXmlMapWithXmlNameOutput: ... + + @overload + def nested_xml_map_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NestedXmlMapWithXmlNameInputDict], + ) -> models.NestedXmlMapWithXmlNameOutput: + """ + Nested Xml Maps with key/values with @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + def nested_xml_map_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NestedXmlMapWithXmlNameOutput: + return self._invoke( + self._select_input(models.NESTED_XML_MAP_WITH_XML_NAME, args, kwargs), + models.NESTED_XML_MAP_WITH_XML_NAME, + [], + plugins, + ) + + @overload + def nested_xml_maps( + self, + request: models.NestedXmlMapsInput | models.NestedXmlMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NestedXmlMapsOutput: ... + + @overload + def nested_xml_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NestedXmlMapsInputDict], + ) -> models.NestedXmlMapsOutput: + """ + Invokes the NestedXmlMaps operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def nested_xml_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NestedXmlMapsOutput: + return self._invoke( + self._select_input(models.NESTED_XML_MAPS, args, kwargs), + models.NESTED_XML_MAPS, + [], + plugins, + ) + + @overload + def no_input_and_no_output( + self, + request: models.NoInputAndNoOutputInput | models.NoInputAndNoOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndNoOutputOutput: ... + + @overload + def no_input_and_no_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndNoOutputInputDict], + ) -> models.NoInputAndNoOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response payload because the operation has no input or + output. + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def no_input_and_no_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndNoOutputOutput: + return self._invoke( + self._select_input(models.NO_INPUT_AND_NO_OUTPUT, args, kwargs), + models.NO_INPUT_AND_NO_OUTPUT, + [], + plugins, + ) + + @overload + def no_input_and_output( + self, + request: models.NoInputAndOutputInput | models.NoInputAndOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndOutputOutput: ... + + @overload + def no_input_and_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndOutputInputDict], + ) -> models.NoInputAndOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response payload because the operation has no input and + the + output is empty. While this should be rare, code generators must support + this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def no_input_and_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndOutputOutput: + return self._invoke( + self._select_input(models.NO_INPUT_AND_OUTPUT, args, kwargs), + models.NO_INPUT_AND_OUTPUT, + [], + plugins, + ) + + @overload + def null_and_empty_headers_client( + self, + request: models.NullAndEmptyHeadersClientInput + | models.NullAndEmptyHeadersClientInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NullAndEmptyHeadersClientOutput: ... + + @overload + def null_and_empty_headers_client( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NullAndEmptyHeadersClientInputDict], + ) -> models.NullAndEmptyHeadersClientOutput: + """ + Null headers are not sent over the wire, empty headers are serialized to + "" + + :param plugins: Callables that change the configuration for this call + only. + """ + + def null_and_empty_headers_client( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NullAndEmptyHeadersClientOutput: + return self._invoke( + self._select_input(models.NULL_AND_EMPTY_HEADERS_CLIENT, args, kwargs), + models.NULL_AND_EMPTY_HEADERS_CLIENT, + [], + plugins, + ) + + @overload + def null_and_empty_headers_server( + self, + request: models.NullAndEmptyHeadersServerInput + | models.NullAndEmptyHeadersServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NullAndEmptyHeadersServerOutput: ... + + @overload + def null_and_empty_headers_server( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NullAndEmptyHeadersServerInputDict], + ) -> models.NullAndEmptyHeadersServerOutput: + """ + Null headers are not sent over the wire, empty headers are serialized to + "" + + :param plugins: Callables that change the configuration for this call + only. + """ + + def null_and_empty_headers_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NullAndEmptyHeadersServerOutput: + return self._invoke( + self._select_input(models.NULL_AND_EMPTY_HEADERS_SERVER, args, kwargs), + models.NULL_AND_EMPTY_HEADERS_SERVER, + [], + plugins, + ) + + @overload + def omits_null_serializes_empty_string( + self, + request: models.OmitsNullSerializesEmptyStringInput + | models.OmitsNullSerializesEmptyStringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.OmitsNullSerializesEmptyStringOutput: ... + + @overload + def omits_null_serializes_empty_string( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.OmitsNullSerializesEmptyStringInputDict], + ) -> models.OmitsNullSerializesEmptyStringOutput: + """ + Omits null, but serializes empty string value. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def omits_null_serializes_empty_string( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.OmitsNullSerializesEmptyStringOutput: + return self._invoke( + self._select_input(models.OMITS_NULL_SERIALIZES_EMPTY_STRING, args, kwargs), + models.OMITS_NULL_SERIALIZES_EMPTY_STRING, + [], + plugins, + ) + + @overload + def put_with_content_encoding( + self, + request: models.PutWithContentEncodingInput + | models.PutWithContentEncodingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.PutWithContentEncodingOutput: ... + + @overload + def put_with_content_encoding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.PutWithContentEncodingInputDict], + ) -> models.PutWithContentEncodingOutput: + """ + Invokes the PutWithContentEncoding operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def put_with_content_encoding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.PutWithContentEncodingOutput: + return self._invoke( + self._select_input(models.PUT_WITH_CONTENT_ENCODING, args, kwargs), + models.PUT_WITH_CONTENT_ENCODING, + [], + plugins, + ) + + @overload + def query_idempotency_token_auto_fill( + self, + request: models.QueryIdempotencyTokenAutoFillInput + | models.QueryIdempotencyTokenAutoFillInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryIdempotencyTokenAutoFillOutput: ... + + @overload + def query_idempotency_token_auto_fill( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryIdempotencyTokenAutoFillInputDict], + ) -> models.QueryIdempotencyTokenAutoFillOutput: + """ + Automatically adds idempotency tokens. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_idempotency_token_auto_fill( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryIdempotencyTokenAutoFillOutput: + return self._invoke( + self._select_input(models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, args, kwargs), + models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, + [], + plugins, + ) + + @overload + def query_params_as_string_list_map( + self, + request: models.QueryParamsAsStringListMapInput + | models.QueryParamsAsStringListMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryParamsAsStringListMapOutput: ... + + @overload + def query_params_as_string_list_map( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryParamsAsStringListMapInputDict], + ) -> models.QueryParamsAsStringListMapOutput: + """ + Invokes the QueryParamsAsStringListMap operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_params_as_string_list_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryParamsAsStringListMapOutput: + return self._invoke( + self._select_input(models.QUERY_PARAMS_AS_STRING_LIST_MAP, args, kwargs), + models.QUERY_PARAMS_AS_STRING_LIST_MAP, + [], + plugins, + ) + + @overload + def query_precedence( + self, + request: models.QueryPrecedenceInput | models.QueryPrecedenceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryPrecedenceOutput: ... + + @overload + def query_precedence( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryPrecedenceInputDict], + ) -> models.QueryPrecedenceOutput: + """ + Invokes the QueryPrecedence operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_precedence( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryPrecedenceOutput: + return self._invoke( + self._select_input(models.QUERY_PRECEDENCE, args, kwargs), + models.QUERY_PRECEDENCE, + [], + plugins, + ) + + @overload + def recursive_shapes( + self, + request: models.RecursiveShapesInput | models.RecursiveShapesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.RecursiveShapesOutput: ... + + @overload + def recursive_shapes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.RecursiveShapesInputDict], + ) -> models.RecursiveShapesOutput: + """ + Recursive shapes + + :param plugins: Callables that change the configuration for this call + only. + """ + + def recursive_shapes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.RecursiveShapesOutput: + return self._invoke( + self._select_input(models.RECURSIVE_SHAPES, args, kwargs), + models.RECURSIVE_SHAPES, + [], + plugins, + ) + + @overload + def simple_scalar_properties( + self, + request: models.SimpleScalarPropertiesInput + | models.SimpleScalarPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleScalarPropertiesOutput: ... + + @overload + def simple_scalar_properties( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleScalarPropertiesInputDict], + ) -> models.SimpleScalarPropertiesOutput: + """ + Invokes the SimpleScalarProperties operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def simple_scalar_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleScalarPropertiesOutput: + return self._invoke( + self._select_input(models.SIMPLE_SCALAR_PROPERTIES, args, kwargs), + models.SIMPLE_SCALAR_PROPERTIES, + [], + plugins, + ) + + @overload + def timestamp_format_headers( + self, + request: models.TimestampFormatHeadersInput + | models.TimestampFormatHeadersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.TimestampFormatHeadersOutput: ... + + @overload + def timestamp_format_headers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.TimestampFormatHeadersInputDict], + ) -> models.TimestampFormatHeadersOutput: + """ + The example tests how timestamp request and response headers are + serialized. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def timestamp_format_headers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.TimestampFormatHeadersOutput: + return self._invoke( + self._select_input(models.TIMESTAMP_FORMAT_HEADERS, args, kwargs), + models.TIMESTAMP_FORMAT_HEADERS, + [], + plugins, + ) + + @overload + def xml_attributes( + self, + request: models.XmlAttributesInput | models.XmlAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlAttributesOutput: ... + + @overload + def xml_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlAttributesInputDict], + ) -> models.XmlAttributesOutput: + """ + This example serializes an XML attributes on synthesized document. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlAttributesOutput: + return self._invoke( + self._select_input(models.XML_ATTRIBUTES, args, kwargs), + models.XML_ATTRIBUTES, + [], + plugins, + ) + + @overload + def xml_attributes_in_middle( + self, + request: models.XmlAttributesInMiddleInput + | models.XmlAttributesInMiddleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlAttributesInMiddleOutput: ... + + @overload + def xml_attributes_in_middle( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlAttributesInMiddleInputDict], + ) -> models.XmlAttributesInMiddleOutput: + """ + This example serializes an XML attribute on a payload when it's defined + in the middle of the member list. + This tests that implementations correctly write attributes immediately + after the element start tag, + which is critical for languages like C# where attribute writing must + happen before child elements. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_attributes_in_middle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlAttributesInMiddleOutput: + return self._invoke( + self._select_input(models.XML_ATTRIBUTES_IN_MIDDLE, args, kwargs), + models.XML_ATTRIBUTES_IN_MIDDLE, + [], + plugins, + ) + + @overload + def xml_attributes_on_payload( + self, + request: models.XmlAttributesOnPayloadInput + | models.XmlAttributesOnPayloadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlAttributesOnPayloadOutput: ... + + @overload + def xml_attributes_on_payload( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlAttributesOnPayloadInputDict], + ) -> models.XmlAttributesOnPayloadOutput: + """ + This example serializes an XML attributes on a document targeted by + httpPayload. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_attributes_on_payload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlAttributesOnPayloadOutput: + return self._invoke( + self._select_input(models.XML_ATTRIBUTES_ON_PAYLOAD, args, kwargs), + models.XML_ATTRIBUTES_ON_PAYLOAD, + [], + plugins, + ) + + @overload + def xml_blobs( + self, + request: models.XmlBlobsInput | models.XmlBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlBlobsOutput: ... + + @overload + def xml_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlBlobsInputDict], + ) -> models.XmlBlobsOutput: + """ + Blobs are base64 encoded + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlBlobsOutput: + return self._invoke( + self._select_input(models.XML_BLOBS, args, kwargs), + models.XML_BLOBS, + [], + plugins, + ) + + @overload + def xml_empty_blobs( + self, + request: models.XmlEmptyBlobsInput | models.XmlEmptyBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyBlobsOutput: ... + + @overload + def xml_empty_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyBlobsInputDict], + ) -> models.XmlEmptyBlobsOutput: + """ + Blobs are base64 encoded + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyBlobsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_BLOBS, args, kwargs), + models.XML_EMPTY_BLOBS, + [], + plugins, + ) + + @overload + def xml_empty_lists( + self, + request: models.XmlEmptyListsInput | models.XmlEmptyListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyListsOutput: ... + + @overload + def xml_empty_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyListsInputDict], + ) -> models.XmlEmptyListsOutput: + """ + Invokes the XmlEmptyLists operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyListsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_LISTS, args, kwargs), + models.XML_EMPTY_LISTS, + [], + plugins, + ) + + @overload + def xml_empty_maps( + self, + request: models.XmlEmptyMapsInput | models.XmlEmptyMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyMapsOutput: ... + + @overload + def xml_empty_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyMapsInputDict], + ) -> models.XmlEmptyMapsOutput: + """ + Invokes the XmlEmptyMaps operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyMapsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_MAPS, args, kwargs), + models.XML_EMPTY_MAPS, + [], + plugins, + ) + + @overload + def xml_empty_strings( + self, + request: models.XmlEmptyStringsInput | models.XmlEmptyStringsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyStringsOutput: ... + + @overload + def xml_empty_strings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyStringsInputDict], + ) -> models.XmlEmptyStringsOutput: + """ + Invokes the XmlEmptyStrings operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_strings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyStringsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_STRINGS, args, kwargs), + models.XML_EMPTY_STRINGS, + [], + plugins, + ) + + @overload + def xml_enums( + self, + request: models.XmlEnumsInput | models.XmlEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEnumsOutput: ... + + @overload + def xml_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEnumsInputDict], + ) -> models.XmlEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEnumsOutput: + return self._invoke( + self._select_input(models.XML_ENUMS, args, kwargs), + models.XML_ENUMS, + [], + plugins, + ) + + @overload + def xml_int_enums( + self, + request: models.XmlIntEnumsInput | models.XmlIntEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlIntEnumsOutput: ... + + @overload + def xml_int_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlIntEnumsInputDict], + ) -> models.XmlIntEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_int_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlIntEnumsOutput: + return self._invoke( + self._select_input(models.XML_INT_ENUMS, args, kwargs), + models.XML_INT_ENUMS, + [], + plugins, + ) + + @overload + def xml_lists( + self, + request: models.XmlListsInput | models.XmlListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlListsOutput: ... + + @overload + def xml_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlListsInputDict], + ) -> models.XmlListsOutput: + """ + This test case serializes XML lists for the following cases for both + input and output: + + 1. Normal XML lists. + 2. Normal XML sets. + 3. XML lists of lists. + 4. XML lists with @xmlName on its members + 5. Flattened XML lists. + 6. Flattened XML lists with @xmlName. + 7. Flattened XML lists with @xmlNamespace. + 8. Lists of structures. + 9. Flattened XML list of structures + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlListsOutput: + return self._invoke( + self._select_input(models.XML_LISTS, args, kwargs), + models.XML_LISTS, + [], + plugins, + ) + + @overload + def xml_map_with_xml_namespace( + self, + request: models.XmlMapWithXmlNamespaceInput + | models.XmlMapWithXmlNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapWithXmlNamespaceOutput: ... + + @overload + def xml_map_with_xml_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapWithXmlNamespaceInputDict], + ) -> models.XmlMapWithXmlNamespaceOutput: + """ + Maps with @xmlNamespace and @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_map_with_xml_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapWithXmlNamespaceOutput: + return self._invoke( + self._select_input(models.XML_MAP_WITH_XML_NAMESPACE, args, kwargs), + models.XML_MAP_WITH_XML_NAMESPACE, + [], + plugins, + ) + + @overload + def xml_maps( + self, + request: models.XmlMapsInput | models.XmlMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapsOutput: ... + + @overload + def xml_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapsInputDict], + ) -> models.XmlMapsOutput: + """ + The example tests basic map serialization. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapsOutput: + return self._invoke( + self._select_input(models.XML_MAPS, args, kwargs), + models.XML_MAPS, + [], + plugins, + ) + + @overload + def xml_maps_xml_name( + self, + request: models.XmlMapsXmlNameInput | models.XmlMapsXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapsXmlNameOutput: ... + + @overload + def xml_maps_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapsXmlNameInputDict], + ) -> models.XmlMapsXmlNameOutput: + """ + Invokes the XmlMapsXmlName operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_maps_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapsXmlNameOutput: + return self._invoke( + self._select_input(models.XML_MAPS_XML_NAME, args, kwargs), + models.XML_MAPS_XML_NAME, + [], + plugins, + ) + + @overload + def xml_namespaces( + self, + request: models.XmlNamespacesInput | models.XmlNamespacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlNamespacesOutput: ... + + @overload + def xml_namespaces( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlNamespacesInputDict], + ) -> models.XmlNamespacesOutput: + """ + Invokes the XmlNamespaces operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_namespaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlNamespacesOutput: + return self._invoke( + self._select_input(models.XML_NAMESPACES, args, kwargs), + models.XML_NAMESPACES, + [], + plugins, + ) + + @overload + def xml_timestamps( + self, + request: models.XmlTimestampsInput | models.XmlTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlTimestampsOutput: ... + + @overload + def xml_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlTimestampsInputDict], + ) -> models.XmlTimestampsOutput: + """ + This tests how timestamps are serialized, including using the + default format of date-time and various @timestampFormat trait + values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlTimestampsOutput: + return self._invoke( + self._select_input(models.XML_TIMESTAMPS, args, kwargs), + models.XML_TIMESTAMPS, + [], + plugins, + ) + + @overload + def xml_unions( + self, + request: models.XmlUnionsInput | models.XmlUnionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlUnionsOutput: ... + + @overload + def xml_unions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlUnionsInputDict], + ) -> models.XmlUnionsOutput: + """ + Invokes the XmlUnions operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_unions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlUnionsOutput: + return self._invoke( + self._select_input(models.XML_UNIONS, args, kwargs), + models.XML_UNIONS, + [], + plugins, + ) + + def _new_config(self) -> RestXmlProtocolConfig: + return RestXmlProtocolConfig.resolve() + + def _post_setup(self, config: RestXmlProtocolConfig) -> None: + if config.aws_credentials_identity_resolver is None: + config_context = config.resolution_context() + config_file = None + profile_name = None + if config_context is not None: + config_file = config_context.parsed_profiles() + if config_context.profile_source is ConfigSource.OVERRIDE: + profile_name = config_context.profile_name + config.aws_credentials_identity_resolver = IdentityChain.create( + AWSCredentialsIdentity, + config_file=config_file, + profile_name=profile_name, + region_override=config.region, + http_client=cast(HTTPClient | None, config.transport), + ) diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/config.py b/codegen-output-py/rest-xml-client/src/restxml_client/config.py new file mode 100644 index 000000000..4a3db9e4b --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/config.py @@ -0,0 +1,118 @@ +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any, ClassVar, Self, Unpack + +from smithy_aws_core.auth.sigv4 import SigV4AuthScheme +from smithy_aws_core.config.aws_config import AwsConfig, AwsConfigOverrides +from smithy_aws_core.config.filesystem import FileSystem +from smithy_aws_core.config.resolvers import EndpointUriResolver +from smithy_aws_core.config.types import FieldSpec +from smithy_aws_core.endpoints import AWS_RULES_EXTENSION +from smithy_aws_core.protocols import RestXmlClientProtocol +from smithy_core.auth import DefaultAuthResolver +from smithy_core.endpoints import BddEndpointResolver +from smithy_core.interceptors import Interceptor +from smithy_core.interfaces import ( + ClientProtocol, + EndpointResolver, + ProtocolConstructor, + ProtocolSettings, +) +from smithy_core.interfaces.auth import AuthScheme, AuthSchemeResolver +from smithy_core.shapes import ShapeID +from smithy_http.urllib3 import Urllib3HTTPClient + +from restxml_client._private.endpoints import BDD +from restxml_client._private.schemas import REST_XML + +_PROTOCOL_SETTINGS = ProtocolSettings( + namespace="aws.protocoltests.restxml", + service_target="RestXml", + version="2019-12-16", + service_schema=REST_XML, +) + + +class _RestXmlProtocolConfigOverrides(AwsConfigOverrides, total=False): + "Explicit field values RestXmlProtocolConfig.resolve accepts." + + endpoint_resolver: EndpointResolver | None + protocol: ( + ClientProtocol[Any, Any] | ProtocolConstructor[ClientProtocol[Any, Any]] | None + ) + auth_schemes: dict[ShapeID, AuthScheme[Any, Any, Any, Any]] | None + auth_scheme_resolver: AuthSchemeResolver | None + + +@dataclass(kw_only=True, repr=False, init=False) +class RestXmlProtocolConfig(AwsConfig): + "Configuration for RestXmlProtocolClient." + + interceptors: list[Interceptor[Any, Any, Any, Any]] = field( + default_factory=list[Interceptor[Any, Any, Any, Any]] + ) + "Hooks called during the execution of a request." + + endpoint_resolver: EndpointResolver | None = None + "Resolves the endpoint of each operation." + + protocol: ClientProtocol[Any, Any] | None = None + "Serializes requests and deserializes responses." + + auth_schemes: dict[ShapeID, AuthScheme[Any, Any, Any, Any]] | None = None + "Auth schemes by auth scheme ID." + + auth_scheme_resolver: AuthSchemeResolver | None = None + "Determines the auth scheme for each operation." + + _FIELDS: ClassVar[dict[str, FieldSpec]] = { + **AwsConfig._FIELDS, + "endpoint_uri": FieldSpec( + default=None, resolver=EndpointUriResolver("rest_xml_protocol").program + ), + "endpoint_resolver": FieldSpec( + default_factory=lambda: BddEndpointResolver( + BDD, extensions=[AWS_RULES_EXTENSION] + ) + ), + "protocol": FieldSpec( + default_factory=lambda: RestXmlClientProtocol(_PROTOCOL_SETTINGS), + converter=lambda p: p(_PROTOCOL_SETTINGS) if isinstance(p, type) else p, + ), + "auth_schemes": FieldSpec( + default_factory=lambda: { + ShapeID("aws.auth#sigv4"): SigV4AuthScheme(service="restxml") + } + ), + "auth_scheme_resolver": FieldSpec(default_factory=DefaultAuthResolver), + "transport": FieldSpec(default_factory=lambda: Urllib3HTTPClient()), + } + + def set_auth_scheme(self, scheme: AuthScheme[Any, Any, Any, Any]) -> None: + "Set an auth scheme under its scheme ID." + auth_schemes = dict(self.auth_schemes or {}) + auth_schemes[scheme.scheme_id] = scheme + self.auth_schemes = auth_schemes + + @classmethod + def resolve( # pyright: ignore[reportIncompatibleMethodOverride] + cls, + *, + profile: str | None = None, + fs: FileSystem | None = None, + config_file_path: str | None = None, + credentials_file_path: str | None = None, + **overrides: Unpack[_RestXmlProtocolConfigOverrides], + ) -> Self: + "Resolve the config from overrides, the environment, and config files." + return cls._resolve( + profile=profile, + fs=fs, + config_file_path=config_file_path, + credentials_file_path=credentials_file_path, + overrides=overrides, + ) + + +type Plugin = Callable[[RestXmlProtocolConfig], None] +"A callable that customizes the client configuration." diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/models.py b/codegen-output-py/rest-xml-client/src/restxml_client/models.py new file mode 100644 index 000000000..3c6a6fe33 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/models.py @@ -0,0 +1,633 @@ +from smithy_core._dynamic_models import ModelRegistry +from smithy_core.exceptions import ModeledError + +from ._private import schemas + + +class ServiceError(ModeledError): + """ + Base error for all errors in the service. + + Some exceptions do not extend from this class, including synthetic, + implicit, and shared exception types. + """ + + +_MODEL_INDEX = { + "AllQueryStringTypesInput": "ALL_QUERY_STRING_TYPES_INPUT", + "ComplexError": "COMPLEX_ERROR", + "ComplexNestedErrorData": "COMPLEX_NESTED_ERROR_DATA", + "ConstantAndVariableQueryStringInput": "CONSTANT_AND_VARIABLE_QUERY_STRING_INPUT", + "ConstantQueryStringInput": "CONSTANT_QUERY_STRING_INPUT", + "ContentTypeParametersInput": "CONTENT_TYPE_PARAMETERS_INPUT", + "ContentTypeParametersOutput": "CONTENT_TYPE_PARAMETERS_OUTPUT", + "DatetimeOffsetsOutput": "DATETIME_OFFSETS_OUTPUT", + "EmptyInputAndEmptyOutputInput": "EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT", + "EmptyInputAndEmptyOutputOutput": "EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT", + "FlattenedXmlMapWithXmlNamespaceOutput": "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT", + "FractionalSecondsOutput": "FRACTIONAL_SECONDS_OUTPUT", + "GreetingWithErrorsOutput": "GREETING_WITH_ERRORS_OUTPUT", + "HttpEmptyPrefixHeadersInput": "HTTP_EMPTY_PREFIX_HEADERS_INPUT", + "HttpEmptyPrefixHeadersOutput": "HTTP_EMPTY_PREFIX_HEADERS_OUTPUT", + "HttpRequestWithFloatLabelsInput": "HTTP_REQUEST_WITH_FLOAT_LABELS_INPUT", + "HttpRequestWithGreedyLabelInPathInput": "HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH_INPUT", + "HttpRequestWithLabelsAndTimestampFormatInput": "HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT_INPUT", + "HttpRequestWithLabelsInput": "HTTP_REQUEST_WITH_LABELS_INPUT", + "HttpResponseCodeOutput": "HTTP_RESPONSE_CODE_OUTPUT", + "IgnoreQueryParamsInResponseOutput": "IGNORE_QUERY_PARAMS_IN_RESPONSE_OUTPUT", + "InvalidGreeting": "INVALID_GREETING", + "NestedPayload": "NESTED_PAYLOAD", + "NoInputAndOutputOutput": "NO_INPUT_AND_OUTPUT_OUTPUT", + "OmitsNullSerializesEmptyStringInput": "OMITS_NULL_SERIALIZES_EMPTY_STRING_INPUT", + "PayloadWithXmlName": "PAYLOAD_WITH_XML_NAME", + "PayloadWithXmlNamespace": "PAYLOAD_WITH_XML_NAMESPACE", + "PayloadWithXmlNamespaceAndPrefix": "PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX", + "PutWithContentEncodingInput": "PUT_WITH_CONTENT_ENCODING_INPUT", + "QueryIdempotencyTokenAutoFillInput": "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT", + "QueryParamsAsStringListMapInput": "QUERY_PARAMS_AS_STRING_LIST_MAP_INPUT", + "QueryPrecedenceInput": "QUERY_PRECEDENCE_INPUT", + "RecursiveShapesInputOutputNested1": "RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED1", + "RecursiveShapesInputOutputNested2": "RECURSIVE_SHAPES_INPUT_OUTPUT_NESTED2", + "StringEnum": "STRING_ENUM", + "StructureListMember": "STRUCTURE_LIST_MEMBER", + "UnionPayload": "UNION_PAYLOAD", + "UnionPayloadGreeting": "UNION_PAYLOAD", + "UnionPayloadUnknown": "UNION_PAYLOAD", + "XmlAttributesInMiddlePayloadRequest": "XML_ATTRIBUTES_IN_MIDDLE_PAYLOAD_REQUEST", + "XmlAttributesInMiddlePayloadResponse": "XML_ATTRIBUTES_IN_MIDDLE_PAYLOAD_RESPONSE", + "XmlAttributesPayloadRequest": "XML_ATTRIBUTES_PAYLOAD_REQUEST", + "XmlAttributesPayloadResponse": "XML_ATTRIBUTES_PAYLOAD_RESPONSE", + "XmlNamespaceNested": "XML_NAMESPACE_NESTED", + "XmlNestedUnionStruct": "XML_NESTED_UNION_STRUCT", + "XmlUnionShape": "XML_UNION_SHAPE", + "XmlUnionShapeStringValue": "XML_UNION_SHAPE", + "XmlUnionShapeBooleanValue": "XML_UNION_SHAPE", + "XmlUnionShapeByteValue": "XML_UNION_SHAPE", + "XmlUnionShapeShortValue": "XML_UNION_SHAPE", + "XmlUnionShapeIntegerValue": "XML_UNION_SHAPE", + "XmlUnionShapeLongValue": "XML_UNION_SHAPE", + "XmlUnionShapeFloatValue": "XML_UNION_SHAPE", + "XmlUnionShapeDoubleValue": "XML_UNION_SHAPE", + "XmlUnionShapeUnionValue": "XML_UNION_SHAPE", + "XmlUnionShapeStructValue": "XML_UNION_SHAPE", + "XmlUnionShapeUnknown": "XML_UNION_SHAPE", + "FooEnum": "FOO_ENUM", + "GreetingStruct": "GREETING_STRUCT", + "IntegerEnum": "INTEGER_ENUM", + "AllQueryStringTypesOutput": "ALL_QUERY_STRING_TYPES_OUTPUT", + "BodyWithXmlNameInput": "BODY_WITH_XML_NAME_INPUT", + "BodyWithXmlNameOutput": "BODY_WITH_XML_NAME_OUTPUT", + "ConstantAndVariableQueryStringOutput": "CONSTANT_AND_VARIABLE_QUERY_STRING_OUTPUT", + "ConstantQueryStringOutput": "CONSTANT_QUERY_STRING_OUTPUT", + "DatetimeOffsetsInput": "DATETIME_OFFSETS_INPUT", + "EndpointOperationInput": "ENDPOINT_OPERATION_INPUT", + "EndpointOperationOutput": "ENDPOINT_OPERATION_OUTPUT", + "EndpointWithHostLabelHeaderOperationInput": "ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION_INPUT", + "EndpointWithHostLabelHeaderOperationOutput": "ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION_OUTPUT", + "EndpointWithHostLabelOperationInput": "ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT", + "EndpointWithHostLabelOperationOutput": "ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT", + "FlattenedXmlMapInput": "FLATTENED_XML_MAP_INPUT", + "FlattenedXmlMapOutput": "FLATTENED_XML_MAP_OUTPUT", + "FlattenedXmlMapWithXmlNameInput": "FLATTENED_XML_MAP_WITH_XML_NAME_INPUT", + "FlattenedXmlMapWithXmlNameOutput": "FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT", + "FlattenedXmlMapWithXmlNamespaceInput": "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_INPUT", + "FractionalSecondsInput": "FRACTIONAL_SECONDS_INPUT", + "GreetingWithErrorsInput": "GREETING_WITH_ERRORS_INPUT", + "HttpEnumPayloadInput": "HTTP_ENUM_PAYLOAD_INPUT", + "HttpEnumPayloadOutput": "HTTP_ENUM_PAYLOAD_OUTPUT", + "HttpPayloadTraitsInput": "HTTP_PAYLOAD_TRAITS_INPUT", + "HttpPayloadTraitsOutput": "HTTP_PAYLOAD_TRAITS_OUTPUT", + "HttpPayloadTraitsWithMediaTypeInput": "HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE_INPUT", + "HttpPayloadTraitsWithMediaTypeOutput": "HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE_OUTPUT", + "HttpPayloadWithMemberXmlNameInput": "HTTP_PAYLOAD_WITH_MEMBER_XML_NAME_INPUT", + "HttpPayloadWithMemberXmlNameOutput": "HTTP_PAYLOAD_WITH_MEMBER_XML_NAME_OUTPUT", + "HttpPayloadWithStructureInput": "HTTP_PAYLOAD_WITH_STRUCTURE_INPUT", + "HttpPayloadWithStructureOutput": "HTTP_PAYLOAD_WITH_STRUCTURE_OUTPUT", + "HttpPayloadWithUnionInput": "HTTP_PAYLOAD_WITH_UNION_INPUT", + "HttpPayloadWithUnionOutput": "HTTP_PAYLOAD_WITH_UNION_OUTPUT", + "HttpPayloadWithXmlNameInput": "HTTP_PAYLOAD_WITH_XML_NAME_INPUT", + "HttpPayloadWithXmlNameOutput": "HTTP_PAYLOAD_WITH_XML_NAME_OUTPUT", + "HttpPayloadWithXmlNamespaceInput": "HTTP_PAYLOAD_WITH_XML_NAMESPACE_INPUT", + "HttpPayloadWithXmlNamespaceOutput": "HTTP_PAYLOAD_WITH_XML_NAMESPACE_OUTPUT", + "HttpPayloadWithXmlNamespaceAndPrefixInput": "HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX_INPUT", + "HttpPayloadWithXmlNamespaceAndPrefixOutput": "HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX_OUTPUT", + "HttpPrefixHeadersInput": "HTTP_PREFIX_HEADERS_INPUT", + "HttpPrefixHeadersOutput": "HTTP_PREFIX_HEADERS_OUTPUT", + "HttpRequestWithFloatLabelsOutput": "HTTP_REQUEST_WITH_FLOAT_LABELS_OUTPUT", + "HttpRequestWithGreedyLabelInPathOutput": "HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH_OUTPUT", + "HttpRequestWithLabelsOutput": "HTTP_REQUEST_WITH_LABELS_OUTPUT", + "HttpRequestWithLabelsAndTimestampFormatOutput": "HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT_OUTPUT", + "HttpResponseCodeInput": "HTTP_RESPONSE_CODE_INPUT", + "HttpStringPayloadInput": "HTTP_STRING_PAYLOAD_INPUT", + "HttpStringPayloadOutput": "HTTP_STRING_PAYLOAD_OUTPUT", + "IgnoreQueryParamsInResponseInput": "IGNORE_QUERY_PARAMS_IN_RESPONSE_INPUT", + "InputAndOutputWithHeadersInput": "INPUT_AND_OUTPUT_WITH_HEADERS_INPUT", + "InputAndOutputWithHeadersOutput": "INPUT_AND_OUTPUT_WITH_HEADERS_OUTPUT", + "NestedXmlMapWithXmlNameInput": "NESTED_XML_MAP_WITH_XML_NAME_INPUT", + "NestedXmlMapWithXmlNameOutput": "NESTED_XML_MAP_WITH_XML_NAME_OUTPUT", + "NestedXmlMapsInput": "NESTED_XML_MAPS_INPUT", + "NestedXmlMapsOutput": "NESTED_XML_MAPS_OUTPUT", + "NoInputAndNoOutputInput": "NO_INPUT_AND_NO_OUTPUT_INPUT", + "NoInputAndNoOutputOutput": "NO_INPUT_AND_NO_OUTPUT_OUTPUT", + "NoInputAndOutputInput": "NO_INPUT_AND_OUTPUT_INPUT", + "NullAndEmptyHeadersClientInput": "NULL_AND_EMPTY_HEADERS_CLIENT_INPUT", + "NullAndEmptyHeadersClientOutput": "NULL_AND_EMPTY_HEADERS_CLIENT_OUTPUT", + "NullAndEmptyHeadersServerInput": "NULL_AND_EMPTY_HEADERS_SERVER_INPUT", + "NullAndEmptyHeadersServerOutput": "NULL_AND_EMPTY_HEADERS_SERVER_OUTPUT", + "OmitsNullSerializesEmptyStringOutput": "OMITS_NULL_SERIALIZES_EMPTY_STRING_OUTPUT", + "PutWithContentEncodingOutput": "PUT_WITH_CONTENT_ENCODING_OUTPUT", + "QueryIdempotencyTokenAutoFillOutput": "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT", + "QueryParamsAsStringListMapOutput": "QUERY_PARAMS_AS_STRING_LIST_MAP_OUTPUT", + "QueryPrecedenceOutput": "QUERY_PRECEDENCE_OUTPUT", + "RecursiveShapesInput": "RECURSIVE_SHAPES_INPUT", + "RecursiveShapesOutput": "RECURSIVE_SHAPES_OUTPUT", + "SimpleScalarPropertiesInput": "SIMPLE_SCALAR_PROPERTIES_INPUT", + "SimpleScalarPropertiesOutput": "SIMPLE_SCALAR_PROPERTIES_OUTPUT", + "TimestampFormatHeadersInput": "TIMESTAMP_FORMAT_HEADERS_INPUT", + "TimestampFormatHeadersOutput": "TIMESTAMP_FORMAT_HEADERS_OUTPUT", + "XmlAttributesInput": "XML_ATTRIBUTES_INPUT", + "XmlAttributesOutput": "XML_ATTRIBUTES_OUTPUT", + "XmlAttributesInMiddleInput": "XML_ATTRIBUTES_IN_MIDDLE_INPUT", + "XmlAttributesInMiddleOutput": "XML_ATTRIBUTES_IN_MIDDLE_OUTPUT", + "XmlAttributesOnPayloadInput": "XML_ATTRIBUTES_ON_PAYLOAD_INPUT", + "XmlAttributesOnPayloadOutput": "XML_ATTRIBUTES_ON_PAYLOAD_OUTPUT", + "XmlBlobsInput": "XML_BLOBS_INPUT", + "XmlBlobsOutput": "XML_BLOBS_OUTPUT", + "XmlEmptyBlobsInput": "XML_EMPTY_BLOBS_INPUT", + "XmlEmptyBlobsOutput": "XML_EMPTY_BLOBS_OUTPUT", + "XmlEmptyListsInput": "XML_EMPTY_LISTS_INPUT", + "XmlEmptyListsOutput": "XML_EMPTY_LISTS_OUTPUT", + "XmlEmptyMapsInput": "XML_EMPTY_MAPS_INPUT", + "XmlEmptyMapsOutput": "XML_EMPTY_MAPS_OUTPUT", + "XmlEmptyStringsInput": "XML_EMPTY_STRINGS_INPUT", + "XmlEmptyStringsOutput": "XML_EMPTY_STRINGS_OUTPUT", + "XmlEnumsInput": "XML_ENUMS_INPUT", + "XmlEnumsOutput": "XML_ENUMS_OUTPUT", + "XmlIntEnumsInput": "XML_INT_ENUMS_INPUT", + "XmlIntEnumsOutput": "XML_INT_ENUMS_OUTPUT", + "XmlListsInput": "XML_LISTS_INPUT", + "XmlListsOutput": "XML_LISTS_OUTPUT", + "XmlMapWithXmlNamespaceInput": "XML_MAP_WITH_XML_NAMESPACE_INPUT", + "XmlMapWithXmlNamespaceOutput": "XML_MAP_WITH_XML_NAMESPACE_OUTPUT", + "XmlMapsInput": "XML_MAPS_INPUT", + "XmlMapsOutput": "XML_MAPS_OUTPUT", + "XmlMapsXmlNameInput": "XML_MAPS_XML_NAME_INPUT", + "XmlMapsXmlNameOutput": "XML_MAPS_XML_NAME_OUTPUT", + "XmlNamespacesInput": "XML_NAMESPACES_INPUT", + "XmlNamespacesOutput": "XML_NAMESPACES_OUTPUT", + "XmlTimestampsInput": "XML_TIMESTAMPS_INPUT", + "XmlTimestampsOutput": "XML_TIMESTAMPS_OUTPUT", + "XmlUnionsInput": "XML_UNIONS_INPUT", + "XmlUnionsOutput": "XML_UNIONS_OUTPUT", +} + +_RENAMES: dict[str, str] = {} + +_TARGET_NAMES: dict[str, str] = {} + +_OPERATIONS: dict[str, tuple[tuple[str, ...], tuple[str, ...]]] = { + "ALL_QUERY_STRING_TYPES": ( + (), + ("aws.auth#sigv4",), + ), + "BODY_WITH_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "CONSTANT_AND_VARIABLE_QUERY_STRING": ( + (), + ("aws.auth#sigv4",), + ), + "CONSTANT_QUERY_STRING": ( + (), + ("aws.auth#sigv4",), + ), + "CONTENT_TYPE_PARAMETERS": ( + (), + ("aws.auth#sigv4",), + ), + "DATETIME_OFFSETS": ( + (), + ("aws.auth#sigv4",), + ), + "EMPTY_INPUT_AND_EMPTY_OUTPUT": ( + (), + ("aws.auth#sigv4",), + ), + "ENDPOINT_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "ENDPOINT_WITH_HOST_LABEL_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "FLATTENED_XML_MAP": ( + (), + ("aws.auth#sigv4",), + ), + "FLATTENED_XML_MAP_WITH_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE": ( + (), + ("aws.auth#sigv4",), + ), + "FRACTIONAL_SECONDS": ( + (), + ("aws.auth#sigv4",), + ), + "GREETING_WITH_ERRORS": ( + ( + "aws.protocoltests.restxml#ComplexError", + "aws.protocoltests.restxml#InvalidGreeting", + ), + ("aws.auth#sigv4",), + ), + "HTTP_EMPTY_PREFIX_HEADERS": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_ENUM_PAYLOAD": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PAYLOAD_TRAITS": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PAYLOAD_WITH_MEMBER_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PAYLOAD_WITH_STRUCTURE": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PAYLOAD_WITH_UNION": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PAYLOAD_WITH_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PAYLOAD_WITH_XML_NAMESPACE": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_PREFIX_HEADERS": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_REQUEST_WITH_FLOAT_LABELS": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_REQUEST_WITH_LABELS": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_RESPONSE_CODE": ( + (), + ("aws.auth#sigv4",), + ), + "HTTP_STRING_PAYLOAD": ( + (), + ("aws.auth#sigv4",), + ), + "IGNORE_QUERY_PARAMS_IN_RESPONSE": ( + (), + ("aws.auth#sigv4",), + ), + "INPUT_AND_OUTPUT_WITH_HEADERS": ( + (), + ("aws.auth#sigv4",), + ), + "NESTED_XML_MAP_WITH_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "NESTED_XML_MAPS": ( + (), + ("aws.auth#sigv4",), + ), + "NO_INPUT_AND_NO_OUTPUT": ( + (), + ("aws.auth#sigv4",), + ), + "NO_INPUT_AND_OUTPUT": ( + (), + ("aws.auth#sigv4",), + ), + "NULL_AND_EMPTY_HEADERS_CLIENT": ( + (), + ("aws.auth#sigv4",), + ), + "NULL_AND_EMPTY_HEADERS_SERVER": ( + (), + ("aws.auth#sigv4",), + ), + "OMITS_NULL_SERIALIZES_EMPTY_STRING": ( + (), + ("aws.auth#sigv4",), + ), + "PUT_WITH_CONTENT_ENCODING": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_PARAMS_AS_STRING_LIST_MAP": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_PRECEDENCE": ( + (), + ("aws.auth#sigv4",), + ), + "RECURSIVE_SHAPES": ( + (), + ("aws.auth#sigv4",), + ), + "SIMPLE_SCALAR_PROPERTIES": ( + (), + ("aws.auth#sigv4",), + ), + "TIMESTAMP_FORMAT_HEADERS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_ATTRIBUTES": ( + (), + ("aws.auth#sigv4",), + ), + "XML_ATTRIBUTES_IN_MIDDLE": ( + (), + ("aws.auth#sigv4",), + ), + "XML_ATTRIBUTES_ON_PAYLOAD": ( + (), + ("aws.auth#sigv4",), + ), + "XML_BLOBS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_BLOBS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_LISTS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_MAPS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_STRINGS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_ENUMS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_INT_ENUMS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_LISTS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_MAP_WITH_XML_NAMESPACE": ( + (), + ("aws.auth#sigv4",), + ), + "XML_MAPS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_MAPS_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "XML_NAMESPACES": ( + (), + ("aws.auth#sigv4",), + ), + "XML_TIMESTAMPS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_UNIONS": ( + (), + ("aws.auth#sigv4",), + ), +} + +_MODEL_NAMES = tuple(_MODEL_INDEX) +__all__ = ("ServiceError", *_MODEL_NAMES, *_OPERATIONS) # pyright: ignore[reportUnsupportedDunderAll] + + +_registry = ModelRegistry( + schemas, + renames=_RENAMES, + index=_MODEL_INDEX, + target_names=_TARGET_NAMES, + shape_names=frozenset( + { + "AllQueryStringTypesInput", + "AllQueryStringTypesOutput", + "BodyWithXmlNameInput", + "BodyWithXmlNameOutput", + "ComplexError", + "ComplexNestedErrorData", + "ConstantAndVariableQueryStringInput", + "ConstantAndVariableQueryStringOutput", + "ConstantQueryStringInput", + "ConstantQueryStringOutput", + "ContentTypeParametersInput", + "ContentTypeParametersOutput", + "DatetimeOffsetsInput", + "DatetimeOffsetsOutput", + "EmptyInputAndEmptyOutputInput", + "EmptyInputAndEmptyOutputOutput", + "EndpointOperationInput", + "EndpointOperationOutput", + "EndpointWithHostLabelHeaderOperationInput", + "EndpointWithHostLabelHeaderOperationOutput", + "EndpointWithHostLabelOperationInput", + "EndpointWithHostLabelOperationOutput", + "FlattenedXmlMapInput", + "FlattenedXmlMapOutput", + "FlattenedXmlMapWithXmlNameInput", + "FlattenedXmlMapWithXmlNameOutput", + "FlattenedXmlMapWithXmlNamespaceInput", + "FlattenedXmlMapWithXmlNamespaceOutput", + "FooEnum", + "FractionalSecondsInput", + "FractionalSecondsOutput", + "GreetingStruct", + "GreetingWithErrorsInput", + "GreetingWithErrorsOutput", + "HttpEmptyPrefixHeadersInput", + "HttpEmptyPrefixHeadersOutput", + "HttpEnumPayloadInput", + "HttpEnumPayloadOutput", + "HttpPayloadTraitsInput", + "HttpPayloadTraitsOutput", + "HttpPayloadTraitsWithMediaTypeInput", + "HttpPayloadTraitsWithMediaTypeOutput", + "HttpPayloadWithMemberXmlNameInput", + "HttpPayloadWithMemberXmlNameOutput", + "HttpPayloadWithStructureInput", + "HttpPayloadWithStructureOutput", + "HttpPayloadWithUnionInput", + "HttpPayloadWithUnionOutput", + "HttpPayloadWithXmlNameInput", + "HttpPayloadWithXmlNameOutput", + "HttpPayloadWithXmlNamespaceAndPrefixInput", + "HttpPayloadWithXmlNamespaceAndPrefixOutput", + "HttpPayloadWithXmlNamespaceInput", + "HttpPayloadWithXmlNamespaceOutput", + "HttpPrefixHeadersInput", + "HttpPrefixHeadersOutput", + "HttpRequestWithFloatLabelsInput", + "HttpRequestWithFloatLabelsOutput", + "HttpRequestWithGreedyLabelInPathInput", + "HttpRequestWithGreedyLabelInPathOutput", + "HttpRequestWithLabelsAndTimestampFormatInput", + "HttpRequestWithLabelsAndTimestampFormatOutput", + "HttpRequestWithLabelsInput", + "HttpRequestWithLabelsOutput", + "HttpResponseCodeInput", + "HttpResponseCodeOutput", + "HttpStringPayloadInput", + "HttpStringPayloadOutput", + "IgnoreQueryParamsInResponseInput", + "IgnoreQueryParamsInResponseOutput", + "InputAndOutputWithHeadersInput", + "InputAndOutputWithHeadersOutput", + "IntegerEnum", + "InvalidGreeting", + "NestedPayload", + "NestedXmlMapWithXmlNameInput", + "NestedXmlMapWithXmlNameOutput", + "NestedXmlMapsInput", + "NestedXmlMapsOutput", + "NoInputAndNoOutputInput", + "NoInputAndNoOutputOutput", + "NoInputAndOutputInput", + "NoInputAndOutputOutput", + "NullAndEmptyHeadersClientInput", + "NullAndEmptyHeadersClientOutput", + "NullAndEmptyHeadersServerInput", + "NullAndEmptyHeadersServerOutput", + "OmitsNullSerializesEmptyStringInput", + "OmitsNullSerializesEmptyStringOutput", + "PayloadWithXmlName", + "PayloadWithXmlNamespace", + "PayloadWithXmlNamespaceAndPrefix", + "PutWithContentEncodingInput", + "PutWithContentEncodingOutput", + "QueryIdempotencyTokenAutoFillInput", + "QueryIdempotencyTokenAutoFillOutput", + "QueryParamsAsStringListMapInput", + "QueryParamsAsStringListMapOutput", + "QueryPrecedenceInput", + "QueryPrecedenceOutput", + "RecursiveShapesInput", + "RecursiveShapesInputOutputNested1", + "RecursiveShapesInputOutputNested2", + "RecursiveShapesOutput", + "SimpleScalarPropertiesInput", + "SimpleScalarPropertiesOutput", + "StringEnum", + "StructureListMember", + "TimestampFormatHeadersInput", + "TimestampFormatHeadersOutput", + "UnionPayload", + "XmlAttributesInMiddleInput", + "XmlAttributesInMiddleOutput", + "XmlAttributesInMiddlePayloadRequest", + "XmlAttributesInMiddlePayloadResponse", + "XmlAttributesInput", + "XmlAttributesOnPayloadInput", + "XmlAttributesOnPayloadOutput", + "XmlAttributesOutput", + "XmlAttributesPayloadRequest", + "XmlAttributesPayloadResponse", + "XmlBlobsInput", + "XmlBlobsOutput", + "XmlEmptyBlobsInput", + "XmlEmptyBlobsOutput", + "XmlEmptyListsInput", + "XmlEmptyListsOutput", + "XmlEmptyMapsInput", + "XmlEmptyMapsOutput", + "XmlEmptyStringsInput", + "XmlEmptyStringsOutput", + "XmlEnumsInput", + "XmlEnumsOutput", + "XmlIntEnumsInput", + "XmlIntEnumsOutput", + "XmlListsInput", + "XmlListsOutput", + "XmlMapWithXmlNamespaceInput", + "XmlMapWithXmlNamespaceOutput", + "XmlMapsInput", + "XmlMapsOutput", + "XmlMapsXmlNameInput", + "XmlMapsXmlNameOutput", + "XmlNamespaceNested", + "XmlNamespacesInput", + "XmlNamespacesOutput", + "XmlNestedUnionStruct", + "XmlTimestampsInput", + "XmlTimestampsOutput", + "XmlUnionShape", + "XmlUnionsInput", + "XmlUnionsOutput", + } + ), + service_error="ServiceError", +) +del schemas, ModelRegistry, ModeledError + + +def __getattr__(name: str): + if (data := _OPERATIONS.get(name)) is not None: + return globals().setdefault(name, _registry.build_operation(name, *data)) + value = _registry.build(name) + globals()[name] = value + return value + + +def __dir__() -> list[str]: + return sorted({*globals(), *__all__}) diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/models.pyi b/codegen-output-py/rest-xml-client/src/restxml_client/models.pyi new file mode 100644 index 000000000..39386faa5 --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/models.pyi @@ -0,0 +1,2692 @@ +from collections.abc import Mapping, Sequence +from dataclasses import dataclass +from datetime import datetime +from enum import IntEnum, StrEnum +from typing import Required, Self, TypedDict + +from smithy_core.deserializers import ShapeDeserializer +from smithy_core.exceptions import ModeledError +from smithy_core.response import ResponseMetadata +from smithy_core.schemas import APIOperation +from smithy_core.serializers import ShapeSerializer +from smithy_core.types import UnknownEnumMixin + +__all__ = [ + "ALL_QUERY_STRING_TYPES", + "BODY_WITH_XML_NAME", + "CONSTANT_AND_VARIABLE_QUERY_STRING", + "CONSTANT_QUERY_STRING", + "CONTENT_TYPE_PARAMETERS", + "DATETIME_OFFSETS", + "EMPTY_INPUT_AND_EMPTY_OUTPUT", + "ENDPOINT_OPERATION", + "ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION", + "ENDPOINT_WITH_HOST_LABEL_OPERATION", + "FLATTENED_XML_MAP", + "FLATTENED_XML_MAP_WITH_XML_NAME", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE", + "FRACTIONAL_SECONDS", + "GREETING_WITH_ERRORS", + "HTTP_EMPTY_PREFIX_HEADERS", + "HTTP_ENUM_PAYLOAD", + "HTTP_PAYLOAD_TRAITS", + "HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE", + "HTTP_PAYLOAD_WITH_MEMBER_XML_NAME", + "HTTP_PAYLOAD_WITH_STRUCTURE", + "HTTP_PAYLOAD_WITH_UNION", + "HTTP_PAYLOAD_WITH_XML_NAME", + "HTTP_PAYLOAD_WITH_XML_NAMESPACE", + "HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX", + "HTTP_PREFIX_HEADERS", + "HTTP_REQUEST_WITH_FLOAT_LABELS", + "HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH", + "HTTP_REQUEST_WITH_LABELS", + "HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT", + "HTTP_RESPONSE_CODE", + "HTTP_STRING_PAYLOAD", + "IGNORE_QUERY_PARAMS_IN_RESPONSE", + "INPUT_AND_OUTPUT_WITH_HEADERS", + "NESTED_XML_MAPS", + "NESTED_XML_MAP_WITH_XML_NAME", + "NO_INPUT_AND_NO_OUTPUT", + "NO_INPUT_AND_OUTPUT", + "NULL_AND_EMPTY_HEADERS_CLIENT", + "NULL_AND_EMPTY_HEADERS_SERVER", + "OMITS_NULL_SERIALIZES_EMPTY_STRING", + "PUT_WITH_CONTENT_ENCODING", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL", + "QUERY_PARAMS_AS_STRING_LIST_MAP", + "QUERY_PRECEDENCE", + "RECURSIVE_SHAPES", + "SIMPLE_SCALAR_PROPERTIES", + "TIMESTAMP_FORMAT_HEADERS", + "XML_ATTRIBUTES", + "XML_ATTRIBUTES_IN_MIDDLE", + "XML_ATTRIBUTES_ON_PAYLOAD", + "XML_BLOBS", + "XML_EMPTY_BLOBS", + "XML_EMPTY_LISTS", + "XML_EMPTY_MAPS", + "XML_EMPTY_STRINGS", + "XML_ENUMS", + "XML_INT_ENUMS", + "XML_LISTS", + "XML_MAPS", + "XML_MAPS_XML_NAME", + "XML_MAP_WITH_XML_NAMESPACE", + "XML_NAMESPACES", + "XML_TIMESTAMPS", + "XML_UNIONS", + "AllQueryStringTypesInput", + "AllQueryStringTypesOutput", + "BodyWithXmlNameInput", + "BodyWithXmlNameOutput", + "ComplexError", + "ComplexNestedErrorData", + "ConstantAndVariableQueryStringInput", + "ConstantAndVariableQueryStringOutput", + "ConstantQueryStringInput", + "ConstantQueryStringOutput", + "ContentTypeParametersInput", + "ContentTypeParametersOutput", + "DatetimeOffsetsInput", + "DatetimeOffsetsOutput", + "EmptyInputAndEmptyOutputInput", + "EmptyInputAndEmptyOutputOutput", + "EndpointOperationInput", + "EndpointOperationOutput", + "EndpointWithHostLabelHeaderOperationInput", + "EndpointWithHostLabelHeaderOperationOutput", + "EndpointWithHostLabelOperationInput", + "EndpointWithHostLabelOperationOutput", + "FlattenedXmlMapInput", + "FlattenedXmlMapOutput", + "FlattenedXmlMapWithXmlNameInput", + "FlattenedXmlMapWithXmlNameOutput", + "FlattenedXmlMapWithXmlNamespaceInput", + "FlattenedXmlMapWithXmlNamespaceOutput", + "FooEnum", + "FractionalSecondsInput", + "FractionalSecondsOutput", + "GreetingStruct", + "GreetingWithErrorsInput", + "GreetingWithErrorsOutput", + "HttpEmptyPrefixHeadersInput", + "HttpEmptyPrefixHeadersOutput", + "HttpEnumPayloadInput", + "HttpEnumPayloadOutput", + "HttpPayloadTraitsInput", + "HttpPayloadTraitsOutput", + "HttpPayloadTraitsWithMediaTypeInput", + "HttpPayloadTraitsWithMediaTypeOutput", + "HttpPayloadWithMemberXmlNameInput", + "HttpPayloadWithMemberXmlNameOutput", + "HttpPayloadWithStructureInput", + "HttpPayloadWithStructureOutput", + "HttpPayloadWithUnionInput", + "HttpPayloadWithUnionOutput", + "HttpPayloadWithXmlNameInput", + "HttpPayloadWithXmlNameOutput", + "HttpPayloadWithXmlNamespaceAndPrefixInput", + "HttpPayloadWithXmlNamespaceAndPrefixOutput", + "HttpPayloadWithXmlNamespaceInput", + "HttpPayloadWithXmlNamespaceOutput", + "HttpPrefixHeadersInput", + "HttpPrefixHeadersOutput", + "HttpRequestWithFloatLabelsInput", + "HttpRequestWithFloatLabelsOutput", + "HttpRequestWithGreedyLabelInPathInput", + "HttpRequestWithGreedyLabelInPathOutput", + "HttpRequestWithLabelsAndTimestampFormatInput", + "HttpRequestWithLabelsAndTimestampFormatOutput", + "HttpRequestWithLabelsInput", + "HttpRequestWithLabelsOutput", + "HttpResponseCodeInput", + "HttpResponseCodeOutput", + "HttpStringPayloadInput", + "HttpStringPayloadOutput", + "IgnoreQueryParamsInResponseInput", + "IgnoreQueryParamsInResponseOutput", + "InputAndOutputWithHeadersInput", + "InputAndOutputWithHeadersOutput", + "IntegerEnum", + "InvalidGreeting", + "NestedPayload", + "NestedXmlMapWithXmlNameInput", + "NestedXmlMapWithXmlNameOutput", + "NestedXmlMapsInput", + "NestedXmlMapsOutput", + "NoInputAndNoOutputInput", + "NoInputAndNoOutputOutput", + "NoInputAndOutputInput", + "NoInputAndOutputOutput", + "NullAndEmptyHeadersClientInput", + "NullAndEmptyHeadersClientOutput", + "NullAndEmptyHeadersServerInput", + "NullAndEmptyHeadersServerOutput", + "OmitsNullSerializesEmptyStringInput", + "OmitsNullSerializesEmptyStringOutput", + "PayloadWithXmlName", + "PayloadWithXmlNamespace", + "PayloadWithXmlNamespaceAndPrefix", + "PutWithContentEncodingInput", + "PutWithContentEncodingOutput", + "QueryIdempotencyTokenAutoFillInput", + "QueryIdempotencyTokenAutoFillOutput", + "QueryParamsAsStringListMapInput", + "QueryParamsAsStringListMapOutput", + "QueryPrecedenceInput", + "QueryPrecedenceOutput", + "RecursiveShapesInput", + "RecursiveShapesInputOutputNested1", + "RecursiveShapesInputOutputNested2", + "RecursiveShapesOutput", + "ServiceError", + "SimpleScalarPropertiesInput", + "SimpleScalarPropertiesOutput", + "StringEnum", + "StructureListMember", + "TimestampFormatHeadersInput", + "TimestampFormatHeadersOutput", + "UnionPayload", + "UnionPayloadGreeting", + "UnionPayloadUnknown", + "XmlAttributesInMiddleInput", + "XmlAttributesInMiddleOutput", + "XmlAttributesInMiddlePayloadRequest", + "XmlAttributesInMiddlePayloadResponse", + "XmlAttributesInput", + "XmlAttributesOnPayloadInput", + "XmlAttributesOnPayloadOutput", + "XmlAttributesOutput", + "XmlAttributesPayloadRequest", + "XmlAttributesPayloadResponse", + "XmlBlobsInput", + "XmlBlobsOutput", + "XmlEmptyBlobsInput", + "XmlEmptyBlobsOutput", + "XmlEmptyListsInput", + "XmlEmptyListsOutput", + "XmlEmptyMapsInput", + "XmlEmptyMapsOutput", + "XmlEmptyStringsInput", + "XmlEmptyStringsOutput", + "XmlEnumsInput", + "XmlEnumsOutput", + "XmlIntEnumsInput", + "XmlIntEnumsOutput", + "XmlListsInput", + "XmlListsOutput", + "XmlMapWithXmlNamespaceInput", + "XmlMapWithXmlNamespaceOutput", + "XmlMapsInput", + "XmlMapsOutput", + "XmlMapsXmlNameInput", + "XmlMapsXmlNameOutput", + "XmlNamespaceNested", + "XmlNamespacesInput", + "XmlNamespacesOutput", + "XmlNestedUnionStruct", + "XmlTimestampsInput", + "XmlTimestampsOutput", + "XmlUnionShape", + "XmlUnionShapeBooleanValue", + "XmlUnionShapeByteValue", + "XmlUnionShapeDoubleValue", + "XmlUnionShapeFloatValue", + "XmlUnionShapeIntegerValue", + "XmlUnionShapeLongValue", + "XmlUnionShapeShortValue", + "XmlUnionShapeStringValue", + "XmlUnionShapeStructValue", + "XmlUnionShapeUnionValue", + "XmlUnionShapeUnknown", + "XmlUnionsInput", + "XmlUnionsOutput", +] + +class _SerdeShape: + def serialize(self, serializer: ShapeSerializer) -> None: ... + def serialize_members(self, serializer: ShapeSerializer) -> None: ... + @classmethod + def deserialize(cls, deserializer: ShapeDeserializer) -> Self: ... + +class ServiceError(ModeledError): + """ + Base error for all errors in the service. + + Some exceptions do not extend from this class, including synthetic, + implicit, and shared exception types. + """ + +@dataclass(kw_only=True) +class AllQueryStringTypesInput(_SerdeShape): + "Dataclass for AllQueryStringTypesInput structure." + + query_string: str | None = ... + query_string_list: list[str] | None = ... + query_string_set: list[str] | None = ... + query_byte: int | None = ... + query_short: int | None = ... + query_integer: int | None = ... + query_integer_list: list[int] | None = ... + query_integer_set: list[int] | None = ... + query_long: int | None = ... + query_float: float | None = ... + query_double: float | None = ... + query_double_list: list[float] | None = ... + query_boolean: bool | None = ... + query_boolean_list: list[bool] | None = ... + query_timestamp: datetime | None = ... + query_timestamp_list: list[datetime] | None = ... + query_enum: str | None = ... + query_enum_list: list[str] | None = ... + query_integer_enum: int | None = ... + query_integer_enum_list: list[int] | None = ... + query_params_map_of_strings: dict[str, str] | None = ... + +class AllQueryStringTypesInputDict(TypedDict, total=False): + "Dictionary form of `AllQueryStringTypesInput`." + + query_string: str | None + query_string_list: Sequence[str] | None + query_string_set: Sequence[str] | None + query_byte: int | None + query_short: int | None + query_integer: int | None + query_integer_list: Sequence[int] | None + query_integer_set: Sequence[int] | None + query_long: int | None + query_float: float | None + query_double: float | None + query_double_list: Sequence[float] | None + query_boolean: bool | None + query_boolean_list: Sequence[bool] | None + query_timestamp: datetime | None + query_timestamp_list: Sequence[datetime] | None + query_enum: str | None + query_enum_list: Sequence[str] | None + query_integer_enum: int | None + query_integer_enum_list: Sequence[int] | None + query_params_map_of_strings: Mapping[str, str] | None + +@dataclass(kw_only=True) +class ComplexError(ServiceError, _SerdeShape): + "This error is thrown when a request is invalid." + + header: str | None = ... + top_level: str | None = ... + nested: ComplexNestedErrorData | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class ComplexNestedErrorData(_SerdeShape): + "Dataclass for ComplexNestedErrorData structure." + + foo: str | None = ... + +@dataclass(kw_only=True) +class ConstantAndVariableQueryStringInput(_SerdeShape): + "Dataclass for ConstantAndVariableQueryStringInput structure." + + baz: str | None = ... + maybe_set: str | None = ... + +class ConstantAndVariableQueryStringInputDict(TypedDict, total=False): + "Dictionary form of `ConstantAndVariableQueryStringInput`." + + baz: str | None + maybe_set: str | None + +@dataclass(kw_only=True) +class ConstantQueryStringInput(_SerdeShape): + "Dataclass for ConstantQueryStringInput structure." + + hello: str | None = ... + +class ConstantQueryStringInputDict(TypedDict, total=False): + "Dictionary form of `ConstantQueryStringInput`." + + hello: Required[str] + +@dataclass(kw_only=True) +class ContentTypeParametersInput(_SerdeShape): + "Dataclass for ContentTypeParametersInput structure." + + value: int | None = ... + +class ContentTypeParametersInputDict(TypedDict, total=False): + "Dictionary form of `ContentTypeParametersInput`." + + value: int | None + +@dataclass(kw_only=True) +class ContentTypeParametersOutput(_SerdeShape): + "Dataclass for ContentTypeParametersOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class DatetimeOffsetsOutput(_SerdeShape): + "Dataclass for DatetimeOffsetsOutput structure." + + datetime_: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class EmptyInputAndEmptyOutputInput(_SerdeShape): + "Dataclass for EmptyInputAndEmptyOutputInput structure." + +class EmptyInputAndEmptyOutputInputDict(TypedDict, total=False): + "Dictionary form of `EmptyInputAndEmptyOutputInput`." + +@dataclass(kw_only=True) +class EmptyInputAndEmptyOutputOutput(_SerdeShape): + "Dataclass for EmptyInputAndEmptyOutputOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FlattenedXmlMapWithXmlNamespaceOutput(_SerdeShape): + "Dataclass for FlattenedXmlMapWithXmlNamespaceOutput structure." + + my_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FractionalSecondsOutput(_SerdeShape): + "Dataclass for FractionalSecondsOutput structure." + + datetime_: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class GreetingWithErrorsOutput(_SerdeShape): + "Dataclass for GreetingWithErrorsOutput structure." + + greeting: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpEmptyPrefixHeadersInput(_SerdeShape): + "Dataclass for HttpEmptyPrefixHeadersInput structure." + + prefix_headers: dict[str, str] | None = ... + specific_header: str | None = ... + +class HttpEmptyPrefixHeadersInputDict(TypedDict, total=False): + "Dictionary form of `HttpEmptyPrefixHeadersInput`." + + prefix_headers: Mapping[str, str] | None + specific_header: str | None + +@dataclass(kw_only=True) +class HttpEmptyPrefixHeadersOutput(_SerdeShape): + "Dataclass for HttpEmptyPrefixHeadersOutput structure." + + prefix_headers: dict[str, str] | None = ... + specific_header: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpRequestWithFloatLabelsInput(_SerdeShape): + "Dataclass for HttpRequestWithFloatLabelsInput structure." + + float_: float | None = ... + double: float | None = ... + +class HttpRequestWithFloatLabelsInputDict(TypedDict, total=False): + "Dictionary form of `HttpRequestWithFloatLabelsInput`." + + float_: Required[float] + double: Required[float] + +@dataclass(kw_only=True) +class HttpRequestWithGreedyLabelInPathInput(_SerdeShape): + "Dataclass for HttpRequestWithGreedyLabelInPathInput structure." + + foo: str | None = ... + baz: str | None = ... + +class HttpRequestWithGreedyLabelInPathInputDict(TypedDict, total=False): + "Dictionary form of `HttpRequestWithGreedyLabelInPathInput`." + + foo: Required[str] + baz: Required[str] + +@dataclass(kw_only=True) +class HttpRequestWithLabelsAndTimestampFormatInput(_SerdeShape): + "Dataclass for HttpRequestWithLabelsAndTimestampFormatInput structure." + + member_epoch_seconds: datetime | None = ... + member_http_date: datetime | None = ... + member_date_time: datetime | None = ... + default_format: datetime | None = ... + target_epoch_seconds: datetime | None = ... + target_http_date: datetime | None = ... + target_date_time: datetime | None = ... + +class HttpRequestWithLabelsAndTimestampFormatInputDict(TypedDict, total=False): + "Dictionary form of `HttpRequestWithLabelsAndTimestampFormatInput`." + + member_epoch_seconds: Required[datetime] + member_http_date: Required[datetime] + member_date_time: Required[datetime] + default_format: Required[datetime] + target_epoch_seconds: Required[datetime] + target_http_date: Required[datetime] + target_date_time: Required[datetime] + +@dataclass(kw_only=True) +class HttpRequestWithLabelsInput(_SerdeShape): + "Dataclass for HttpRequestWithLabelsInput structure." + + string: str | None = ... + short: int | None = ... + integer: int | None = ... + long: int | None = ... + float_: float | None = ... + double: float | None = ... + boolean: bool | None = ... + "Serialized in the path as true or false." + timestamp: datetime | None = ... + """ + Note that this member has no format, so it's serialized as an RFC 3399 + date-time. + """ + +class HttpRequestWithLabelsInputDict(TypedDict, total=False): + "Dictionary form of `HttpRequestWithLabelsInput`." + + string: Required[str] + short: Required[int] + integer: Required[int] + long: Required[int] + float_: Required[float] + double: Required[float] + boolean: Required[bool] + "Serialized in the path as true or false." + timestamp: Required[datetime] + """ + Note that this member has no format, so it's serialized as an RFC 3399 + date-time. + """ + +@dataclass(kw_only=True) +class HttpResponseCodeOutput(_SerdeShape): + "Dataclass for HttpResponseCodeOutput structure." + + status: int | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class IgnoreQueryParamsInResponseOutput(_SerdeShape): + "Dataclass for IgnoreQueryParamsInResponseOutput structure." + + baz: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class InvalidGreeting(ServiceError, _SerdeShape): + "This error is thrown when an invalid greeting value is provided." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NestedPayload(_SerdeShape): + "Dataclass for NestedPayload structure." + + greeting: str | None = ... + name: str | None = ... + +class NestedPayloadDict(TypedDict, total=False): + "Dictionary form of `NestedPayload`." + + greeting: str | None + name: str | None + +@dataclass(kw_only=True) +class NoInputAndOutputOutput(_SerdeShape): + "Dataclass for NoInputAndOutputOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class OmitsNullSerializesEmptyStringInput(_SerdeShape): + "Dataclass for OmitsNullSerializesEmptyStringInput structure." + + null_value: str | None = ... + empty_string: str | None = ... + +class OmitsNullSerializesEmptyStringInputDict(TypedDict, total=False): + "Dictionary form of `OmitsNullSerializesEmptyStringInput`." + + null_value: str | None + empty_string: str | None + +@dataclass(kw_only=True) +class PayloadWithXmlName(_SerdeShape): + "Dataclass for PayloadWithXmlName structure." + + name: str | None = ... + +class PayloadWithXmlNameDict(TypedDict, total=False): + "Dictionary form of `PayloadWithXmlName`." + + name: str | None + +@dataclass(kw_only=True) +class PayloadWithXmlNamespace(_SerdeShape): + "Dataclass for PayloadWithXmlNamespace structure." + + name: str | None = ... + +class PayloadWithXmlNamespaceDict(TypedDict, total=False): + "Dictionary form of `PayloadWithXmlNamespace`." + + name: str | None + +@dataclass(kw_only=True) +class PayloadWithXmlNamespaceAndPrefix(_SerdeShape): + "Dataclass for PayloadWithXmlNamespaceAndPrefix structure." + + name: str | None = ... + +class PayloadWithXmlNamespaceAndPrefixDict(TypedDict, total=False): + "Dictionary form of `PayloadWithXmlNamespaceAndPrefix`." + + name: str | None + +@dataclass(kw_only=True) +class PutWithContentEncodingInput(_SerdeShape): + "Dataclass for PutWithContentEncodingInput structure." + + encoding: str | None = ... + data: str | None = ... + +class PutWithContentEncodingInputDict(TypedDict, total=False): + "Dictionary form of `PutWithContentEncodingInput`." + + encoding: str | None + data: str | None + +@dataclass(kw_only=True) +class QueryIdempotencyTokenAutoFillInput(_SerdeShape): + "Dataclass for QueryIdempotencyTokenAutoFillInput structure." + + token: str | None = ... + "This field is autopopulated if not provided." + +class QueryIdempotencyTokenAutoFillInputDict(TypedDict, total=False): + "Dictionary form of `QueryIdempotencyTokenAutoFillInput`." + + token: str | None + "This field is autopopulated if not provided." + +@dataclass(kw_only=True) +class QueryParamsAsStringListMapInput(_SerdeShape): + "Dataclass for QueryParamsAsStringListMapInput structure." + + qux: str | None = ... + foo: dict[str, list[str]] | None = ... + +class QueryParamsAsStringListMapInputDict(TypedDict, total=False): + "Dictionary form of `QueryParamsAsStringListMapInput`." + + qux: str | None + foo: Mapping[str, Sequence[str]] | None + +@dataclass(kw_only=True) +class QueryPrecedenceInput(_SerdeShape): + "Dataclass for QueryPrecedenceInput structure." + + foo: str | None = ... + baz: dict[str, str] | None = ... + +class QueryPrecedenceInputDict(TypedDict, total=False): + "Dictionary form of `QueryPrecedenceInput`." + + foo: str | None + baz: Mapping[str, str] | None + +@dataclass(kw_only=True) +class RecursiveShapesInputOutputNested1(_SerdeShape): + "Dataclass for RecursiveShapesInputOutputNested1 structure." + + foo: str | None = ... + nested: RecursiveShapesInputOutputNested2 | None = ... + +class RecursiveShapesInputOutputNested1Dict(TypedDict, total=False): + "Dictionary form of `RecursiveShapesInputOutputNested1`." + + foo: str | None + nested: ( + RecursiveShapesInputOutputNested2 | RecursiveShapesInputOutputNested2Dict | None + ) + +@dataclass(kw_only=True) +class RecursiveShapesInputOutputNested2(_SerdeShape): + "Dataclass for RecursiveShapesInputOutputNested2 structure." + + bar: str | None = ... + recursive_member: RecursiveShapesInputOutputNested1 | None = ... + +class RecursiveShapesInputOutputNested2Dict(TypedDict, total=False): + "Dictionary form of `RecursiveShapesInputOutputNested2`." + + bar: str | None + recursive_member: ( + RecursiveShapesInputOutputNested1 | RecursiveShapesInputOutputNested1Dict | None + ) + +class StringEnum(UnknownEnumMixin, StrEnum): + V = "enumvalue" + +@dataclass(kw_only=True) +class StructureListMember(_SerdeShape): + "Dataclass for StructureListMember structure." + + a: str | None = ... + b: str | None = ... + +class StructureListMemberDict(TypedDict, total=False): + "Dictionary form of `StructureListMember`." + + a: str | None + b: str | None + +@dataclass +class UnionPayloadGreeting(_SerdeShape): + value: str + +@dataclass +class UnionPayloadUnknown(_SerdeShape): + """ + Represents an unknown variant. + + If you receive this value, you will need to update your library to + receive the parsed value. + + This value may not be deliberately sent. + """ + + tag: str + +UnionPayload = UnionPayloadGreeting | UnionPayloadUnknown + +class _UnionPayloadDeserializer: + def deserialize(self, deserializer: ShapeDeserializer) -> UnionPayload: ... + +class UnionPayloadGreetingDict(TypedDict): + greeting: str + +UnionPayloadDict = UnionPayloadGreetingDict +"Dictionary form of `UnionPayload`, setting exactly one variant." + +@dataclass(kw_only=True) +class XmlAttributesInMiddlePayloadRequest(_SerdeShape): + "Dataclass for XmlAttributesInMiddlePayloadRequest structure." + + foo: str | None = ... + attr: str | None = ... + baz: str | None = ... + +class XmlAttributesInMiddlePayloadRequestDict(TypedDict, total=False): + "Dictionary form of `XmlAttributesInMiddlePayloadRequest`." + + foo: str | None + attr: str | None + baz: str | None + +@dataclass(kw_only=True) +class XmlAttributesInMiddlePayloadResponse(_SerdeShape): + "Dataclass for XmlAttributesInMiddlePayloadResponse structure." + + foo: str | None = ... + attr: str | None = ... + baz: str | None = ... + +@dataclass(kw_only=True) +class XmlAttributesPayloadRequest(_SerdeShape): + "Dataclass for XmlAttributesPayloadRequest structure." + + foo: str | None = ... + attr: str | None = ... + +class XmlAttributesPayloadRequestDict(TypedDict, total=False): + "Dictionary form of `XmlAttributesPayloadRequest`." + + foo: str | None + attr: str | None + +@dataclass(kw_only=True) +class XmlAttributesPayloadResponse(_SerdeShape): + "Dataclass for XmlAttributesPayloadResponse structure." + + foo: str | None = ... + attr: str | None = ... + +@dataclass(kw_only=True) +class XmlNamespaceNested(_SerdeShape): + "Dataclass for XmlNamespaceNested structure." + + foo: str | None = ... + values: list[str] | None = ... + +class XmlNamespaceNestedDict(TypedDict, total=False): + "Dictionary form of `XmlNamespaceNested`." + + foo: str | None + values: Sequence[str] | None + +@dataclass(kw_only=True) +class XmlNestedUnionStruct(_SerdeShape): + "Dataclass for XmlNestedUnionStruct structure." + + string_value: str | None = ... + boolean_value: bool | None = ... + byte_value: int | None = ... + short_value: int | None = ... + integer_value: int | None = ... + long_value: int | None = ... + float_value: float | None = ... + double_value: float | None = ... + +class XmlNestedUnionStructDict(TypedDict, total=False): + "Dictionary form of `XmlNestedUnionStruct`." + + string_value: str | None + boolean_value: bool | None + byte_value: int | None + short_value: int | None + integer_value: int | None + long_value: int | None + float_value: float | None + double_value: float | None + +@dataclass +class XmlUnionShapeStringValue(_SerdeShape): + value: str + +@dataclass +class XmlUnionShapeBooleanValue(_SerdeShape): + value: bool + +@dataclass +class XmlUnionShapeByteValue(_SerdeShape): + value: int + +@dataclass +class XmlUnionShapeShortValue(_SerdeShape): + value: int + +@dataclass +class XmlUnionShapeIntegerValue(_SerdeShape): + value: int + +@dataclass +class XmlUnionShapeLongValue(_SerdeShape): + value: int + +@dataclass +class XmlUnionShapeFloatValue(_SerdeShape): + value: float + +@dataclass +class XmlUnionShapeDoubleValue(_SerdeShape): + value: float + +@dataclass +class XmlUnionShapeUnionValue(_SerdeShape): + value: XmlUnionShape + +@dataclass +class XmlUnionShapeStructValue(_SerdeShape): + value: XmlNestedUnionStruct + +@dataclass +class XmlUnionShapeUnknown(_SerdeShape): + """ + Represents an unknown variant. + + If you receive this value, you will need to update your library to + receive the parsed value. + + This value may not be deliberately sent. + """ + + tag: str + +XmlUnionShape = ( + XmlUnionShapeStringValue + | XmlUnionShapeBooleanValue + | XmlUnionShapeByteValue + | XmlUnionShapeShortValue + | XmlUnionShapeIntegerValue + | XmlUnionShapeLongValue + | XmlUnionShapeFloatValue + | XmlUnionShapeDoubleValue + | XmlUnionShapeUnionValue + | XmlUnionShapeStructValue + | XmlUnionShapeUnknown +) + +class _XmlUnionShapeDeserializer: + def deserialize(self, deserializer: ShapeDeserializer) -> XmlUnionShape: ... + +class XmlUnionShapeStringValueDict(TypedDict): + string_value: str + +class XmlUnionShapeBooleanValueDict(TypedDict): + boolean_value: bool + +class XmlUnionShapeByteValueDict(TypedDict): + byte_value: int + +class XmlUnionShapeShortValueDict(TypedDict): + short_value: int + +class XmlUnionShapeIntegerValueDict(TypedDict): + integer_value: int + +class XmlUnionShapeLongValueDict(TypedDict): + long_value: int + +class XmlUnionShapeFloatValueDict(TypedDict): + float_value: float + +class XmlUnionShapeDoubleValueDict(TypedDict): + double_value: float + +class XmlUnionShapeUnionValueDict(TypedDict): + union_value: XmlUnionShape | XmlUnionShapeDict + +class XmlUnionShapeStructValueDict(TypedDict): + struct_value: XmlNestedUnionStruct | XmlNestedUnionStructDict + +XmlUnionShapeDict = ( + XmlUnionShapeStringValueDict + | XmlUnionShapeBooleanValueDict + | XmlUnionShapeByteValueDict + | XmlUnionShapeShortValueDict + | XmlUnionShapeIntegerValueDict + | XmlUnionShapeLongValueDict + | XmlUnionShapeFloatValueDict + | XmlUnionShapeDoubleValueDict + | XmlUnionShapeUnionValueDict + | XmlUnionShapeStructValueDict +) +"Dictionary form of `XmlUnionShape`, setting exactly one variant." + +class FooEnum(UnknownEnumMixin, StrEnum): + FOO = "Foo" + BAZ = "Baz" + BAR = "Bar" + ONE = "1" + ZERO = "0" + +@dataclass(kw_only=True) +class GreetingStruct(_SerdeShape): + "Dataclass for GreetingStruct structure." + + hi: str | None = ... + +class GreetingStructDict(TypedDict, total=False): + "Dictionary form of `GreetingStruct`." + + hi: str | None + +class IntegerEnum(UnknownEnumMixin, IntEnum): + A = 1 + B = 2 + C = 3 + +@dataclass(kw_only=True) +class AllQueryStringTypesOutput(_SerdeShape): + "Dataclass for AllQueryStringTypesOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class BodyWithXmlNameInput(_SerdeShape): + "Dataclass for BodyWithXmlNameInput structure." + + nested: PayloadWithXmlName | None = ... + +class BodyWithXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `BodyWithXmlNameInput`." + + nested: PayloadWithXmlName | PayloadWithXmlNameDict | None + +@dataclass(kw_only=True) +class BodyWithXmlNameOutput(_SerdeShape): + "Dataclass for BodyWithXmlNameOutput structure." + + nested: PayloadWithXmlName | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class ConstantAndVariableQueryStringOutput(_SerdeShape): + "Dataclass for ConstantAndVariableQueryStringOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class ConstantQueryStringOutput(_SerdeShape): + "Dataclass for ConstantQueryStringOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class DatetimeOffsetsInput(_SerdeShape): + "Dataclass for DatetimeOffsetsInput structure." + +class DatetimeOffsetsInputDict(TypedDict, total=False): + "Dictionary form of `DatetimeOffsetsInput`." + +@dataclass(kw_only=True) +class EndpointOperationInput(_SerdeShape): + "Dataclass for EndpointOperationInput structure." + +class EndpointOperationInputDict(TypedDict, total=False): + "Dictionary form of `EndpointOperationInput`." + +@dataclass(kw_only=True) +class EndpointOperationOutput(_SerdeShape): + "Dataclass for EndpointOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class EndpointWithHostLabelHeaderOperationInput(_SerdeShape): + "Dataclass for EndpointWithHostLabelHeaderOperationInput structure." + + account_id: str | None = ... + +class EndpointWithHostLabelHeaderOperationInputDict(TypedDict, total=False): + "Dictionary form of `EndpointWithHostLabelHeaderOperationInput`." + + account_id: Required[str] + +@dataclass(kw_only=True) +class EndpointWithHostLabelHeaderOperationOutput(_SerdeShape): + "Dataclass for EndpointWithHostLabelHeaderOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class EndpointWithHostLabelOperationInput(_SerdeShape): + "Dataclass for EndpointWithHostLabelOperationInput structure." + + label: str | None = ... + +class EndpointWithHostLabelOperationInputDict(TypedDict, total=False): + "Dictionary form of `EndpointWithHostLabelOperationInput`." + + label: Required[str] + +@dataclass(kw_only=True) +class EndpointWithHostLabelOperationOutput(_SerdeShape): + "Dataclass for EndpointWithHostLabelOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FlattenedXmlMapInput(_SerdeShape): + "Dataclass for FlattenedXmlMapInput structure." + + my_map: dict[str, str] | None = ... + +class FlattenedXmlMapInputDict(TypedDict, total=False): + "Dictionary form of `FlattenedXmlMapInput`." + + my_map: Mapping[str, str] | None + +@dataclass(kw_only=True) +class FlattenedXmlMapOutput(_SerdeShape): + "Dataclass for FlattenedXmlMapOutput structure." + + my_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FlattenedXmlMapWithXmlNameInput(_SerdeShape): + "Dataclass for FlattenedXmlMapWithXmlNameInput structure." + + my_map: dict[str, str] | None = ... + +class FlattenedXmlMapWithXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `FlattenedXmlMapWithXmlNameInput`." + + my_map: Mapping[str, str] | None + +@dataclass(kw_only=True) +class FlattenedXmlMapWithXmlNameOutput(_SerdeShape): + "Dataclass for FlattenedXmlMapWithXmlNameOutput structure." + + my_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FlattenedXmlMapWithXmlNamespaceInput(_SerdeShape): + "Dataclass for FlattenedXmlMapWithXmlNamespaceInput structure." + +class FlattenedXmlMapWithXmlNamespaceInputDict(TypedDict, total=False): + "Dictionary form of `FlattenedXmlMapWithXmlNamespaceInput`." + +@dataclass(kw_only=True) +class FractionalSecondsInput(_SerdeShape): + "Dataclass for FractionalSecondsInput structure." + +class FractionalSecondsInputDict(TypedDict, total=False): + "Dictionary form of `FractionalSecondsInput`." + +@dataclass(kw_only=True) +class GreetingWithErrorsInput(_SerdeShape): + "Dataclass for GreetingWithErrorsInput structure." + +class GreetingWithErrorsInputDict(TypedDict, total=False): + "Dictionary form of `GreetingWithErrorsInput`." + +@dataclass(kw_only=True) +class HttpEnumPayloadInput(_SerdeShape): + "Dataclass for HttpEnumPayloadInput structure." + + payload: str | None = ... + +class HttpEnumPayloadInputDict(TypedDict, total=False): + "Dictionary form of `HttpEnumPayloadInput`." + + payload: str | None + +@dataclass(kw_only=True) +class HttpEnumPayloadOutput(_SerdeShape): + "Dataclass for HttpEnumPayloadOutput structure." + + payload: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPayloadTraitsInput(_SerdeShape): + "Dataclass for HttpPayloadTraitsInput structure." + + foo: str | None = ... + blob: bytes | None = ... + +class HttpPayloadTraitsInputDict(TypedDict, total=False): + "Dictionary form of `HttpPayloadTraitsInput`." + + foo: str | None + blob: bytes | None + +@dataclass(kw_only=True) +class HttpPayloadTraitsOutput(_SerdeShape): + "Dataclass for HttpPayloadTraitsOutput structure." + + foo: str | None = ... + blob: bytes | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPayloadTraitsWithMediaTypeInput(_SerdeShape): + "Dataclass for HttpPayloadTraitsWithMediaTypeInput structure." + + foo: str | None = ... + blob: bytes | None = ... + +class HttpPayloadTraitsWithMediaTypeInputDict(TypedDict, total=False): + "Dictionary form of `HttpPayloadTraitsWithMediaTypeInput`." + + foo: str | None + blob: bytes | None + +@dataclass(kw_only=True) +class HttpPayloadTraitsWithMediaTypeOutput(_SerdeShape): + "Dataclass for HttpPayloadTraitsWithMediaTypeOutput structure." + + foo: str | None = ... + blob: bytes | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPayloadWithMemberXmlNameInput(_SerdeShape): + "Dataclass for HttpPayloadWithMemberXmlNameInput structure." + + nested: PayloadWithXmlName | None = ... + +class HttpPayloadWithMemberXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `HttpPayloadWithMemberXmlNameInput`." + + nested: PayloadWithXmlName | PayloadWithXmlNameDict | None + +@dataclass(kw_only=True) +class HttpPayloadWithMemberXmlNameOutput(_SerdeShape): + "Dataclass for HttpPayloadWithMemberXmlNameOutput structure." + + nested: PayloadWithXmlName | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPayloadWithStructureInput(_SerdeShape): + "Dataclass for HttpPayloadWithStructureInput structure." + + nested: NestedPayload | None = ... + +class HttpPayloadWithStructureInputDict(TypedDict, total=False): + "Dictionary form of `HttpPayloadWithStructureInput`." + + nested: NestedPayload | NestedPayloadDict | None + +@dataclass(kw_only=True) +class HttpPayloadWithStructureOutput(_SerdeShape): + "Dataclass for HttpPayloadWithStructureOutput structure." + + nested: NestedPayload | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPayloadWithUnionInput(_SerdeShape): + "Dataclass for HttpPayloadWithUnionInput structure." + + nested: UnionPayload | None = ... + +class HttpPayloadWithUnionInputDict(TypedDict, total=False): + "Dictionary form of `HttpPayloadWithUnionInput`." + + nested: UnionPayload | UnionPayloadDict | None + +@dataclass(kw_only=True) +class HttpPayloadWithUnionOutput(_SerdeShape): + "Dataclass for HttpPayloadWithUnionOutput structure." + + nested: UnionPayload | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPayloadWithXmlNameInput(_SerdeShape): + "Dataclass for HttpPayloadWithXmlNameInput structure." + + nested: PayloadWithXmlName | None = ... + +class HttpPayloadWithXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `HttpPayloadWithXmlNameInput`." + + nested: PayloadWithXmlName | PayloadWithXmlNameDict | None + +@dataclass(kw_only=True) +class HttpPayloadWithXmlNameOutput(_SerdeShape): + "Dataclass for HttpPayloadWithXmlNameOutput structure." + + nested: PayloadWithXmlName | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPayloadWithXmlNamespaceInput(_SerdeShape): + "Dataclass for HttpPayloadWithXmlNamespaceInput structure." + + nested: PayloadWithXmlNamespace | None = ... + +class HttpPayloadWithXmlNamespaceInputDict(TypedDict, total=False): + "Dictionary form of `HttpPayloadWithXmlNamespaceInput`." + + nested: PayloadWithXmlNamespace | PayloadWithXmlNamespaceDict | None + +@dataclass(kw_only=True) +class HttpPayloadWithXmlNamespaceOutput(_SerdeShape): + "Dataclass for HttpPayloadWithXmlNamespaceOutput structure." + + nested: PayloadWithXmlNamespace | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPayloadWithXmlNamespaceAndPrefixInput(_SerdeShape): + "Dataclass for HttpPayloadWithXmlNamespaceAndPrefixInput structure." + + nested: PayloadWithXmlNamespaceAndPrefix | None = ... + +class HttpPayloadWithXmlNamespaceAndPrefixInputDict(TypedDict, total=False): + "Dictionary form of `HttpPayloadWithXmlNamespaceAndPrefixInput`." + + nested: ( + PayloadWithXmlNamespaceAndPrefix | PayloadWithXmlNamespaceAndPrefixDict | None + ) + +@dataclass(kw_only=True) +class HttpPayloadWithXmlNamespaceAndPrefixOutput(_SerdeShape): + "Dataclass for HttpPayloadWithXmlNamespaceAndPrefixOutput structure." + + nested: PayloadWithXmlNamespaceAndPrefix | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpPrefixHeadersInput(_SerdeShape): + "Dataclass for HttpPrefixHeadersInput structure." + + foo: str | None = ... + foo_map: dict[str, str] | None = ... + +class HttpPrefixHeadersInputDict(TypedDict, total=False): + "Dictionary form of `HttpPrefixHeadersInput`." + + foo: str | None + foo_map: Mapping[str, str] | None + +@dataclass(kw_only=True) +class HttpPrefixHeadersOutput(_SerdeShape): + "Dataclass for HttpPrefixHeadersOutput structure." + + foo: str | None = ... + foo_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpRequestWithFloatLabelsOutput(_SerdeShape): + "Dataclass for HttpRequestWithFloatLabelsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpRequestWithGreedyLabelInPathOutput(_SerdeShape): + "Dataclass for HttpRequestWithGreedyLabelInPathOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpRequestWithLabelsOutput(_SerdeShape): + "Dataclass for HttpRequestWithLabelsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpRequestWithLabelsAndTimestampFormatOutput(_SerdeShape): + "Dataclass for HttpRequestWithLabelsAndTimestampFormatOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class HttpResponseCodeInput(_SerdeShape): + "Dataclass for HttpResponseCodeInput structure." + +class HttpResponseCodeInputDict(TypedDict, total=False): + "Dictionary form of `HttpResponseCodeInput`." + +@dataclass(kw_only=True) +class HttpStringPayloadInput(_SerdeShape): + "Dataclass for HttpStringPayloadInput structure." + + payload: str | None = ... + +class HttpStringPayloadInputDict(TypedDict, total=False): + "Dictionary form of `HttpStringPayloadInput`." + + payload: str | None + +@dataclass(kw_only=True) +class HttpStringPayloadOutput(_SerdeShape): + "Dataclass for HttpStringPayloadOutput structure." + + payload: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class IgnoreQueryParamsInResponseInput(_SerdeShape): + "Dataclass for IgnoreQueryParamsInResponseInput structure." + +class IgnoreQueryParamsInResponseInputDict(TypedDict, total=False): + "Dictionary form of `IgnoreQueryParamsInResponseInput`." + +@dataclass(kw_only=True) +class InputAndOutputWithHeadersInput(_SerdeShape): + "Dataclass for InputAndOutputWithHeadersInput structure." + + header_string: str | None = ... + header_byte: int | None = ... + header_short: int | None = ... + header_integer: int | None = ... + header_long: int | None = ... + header_float: float | None = ... + header_double: float | None = ... + header_true_bool: bool | None = ... + header_false_bool: bool | None = ... + header_string_list: list[str] | None = ... + header_string_set: list[str] | None = ... + header_integer_list: list[int] | None = ... + header_boolean_list: list[bool] | None = ... + header_timestamp_list: list[datetime] | None = ... + header_enum: str | None = ... + header_enum_list: list[str] | None = ... + +class InputAndOutputWithHeadersInputDict(TypedDict, total=False): + "Dictionary form of `InputAndOutputWithHeadersInput`." + + header_string: str | None + header_byte: int | None + header_short: int | None + header_integer: int | None + header_long: int | None + header_float: float | None + header_double: float | None + header_true_bool: bool | None + header_false_bool: bool | None + header_string_list: Sequence[str] | None + header_string_set: Sequence[str] | None + header_integer_list: Sequence[int] | None + header_boolean_list: Sequence[bool] | None + header_timestamp_list: Sequence[datetime] | None + header_enum: str | None + header_enum_list: Sequence[str] | None + +@dataclass(kw_only=True) +class InputAndOutputWithHeadersOutput(_SerdeShape): + "Dataclass for InputAndOutputWithHeadersOutput structure." + + header_string: str | None = ... + header_byte: int | None = ... + header_short: int | None = ... + header_integer: int | None = ... + header_long: int | None = ... + header_float: float | None = ... + header_double: float | None = ... + header_true_bool: bool | None = ... + header_false_bool: bool | None = ... + header_string_list: list[str] | None = ... + header_string_set: list[str] | None = ... + header_integer_list: list[int] | None = ... + header_boolean_list: list[bool] | None = ... + header_timestamp_list: list[datetime] | None = ... + header_enum: str | None = ... + header_enum_list: list[str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NestedXmlMapWithXmlNameInput(_SerdeShape): + "Dataclass for NestedXmlMapWithXmlNameInput structure." + + nested_xml_map_with_xml_name_map: dict[str, dict[str, str]] | None = ... + +class NestedXmlMapWithXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `NestedXmlMapWithXmlNameInput`." + + nested_xml_map_with_xml_name_map: Mapping[str, Mapping[str, str]] | None + +@dataclass(kw_only=True) +class NestedXmlMapWithXmlNameOutput(_SerdeShape): + "Dataclass for NestedXmlMapWithXmlNameOutput structure." + + nested_xml_map_with_xml_name_map: dict[str, dict[str, str]] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NestedXmlMapsInput(_SerdeShape): + "Dataclass for NestedXmlMapsInput structure." + + nested_map: dict[str, dict[str, str]] | None = ... + flat_nested_map: dict[str, dict[str, str]] | None = ... + +class NestedXmlMapsInputDict(TypedDict, total=False): + "Dictionary form of `NestedXmlMapsInput`." + + nested_map: Mapping[str, Mapping[str, str]] | None + flat_nested_map: Mapping[str, Mapping[str, str]] | None + +@dataclass(kw_only=True) +class NestedXmlMapsOutput(_SerdeShape): + "Dataclass for NestedXmlMapsOutput structure." + + nested_map: dict[str, dict[str, str]] | None = ... + flat_nested_map: dict[str, dict[str, str]] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NoInputAndNoOutputInput(_SerdeShape): + "Dataclass for NoInputAndNoOutputInput structure." + +class NoInputAndNoOutputInputDict(TypedDict, total=False): + "Dictionary form of `NoInputAndNoOutputInput`." + +@dataclass(kw_only=True) +class NoInputAndNoOutputOutput(_SerdeShape): + "Dataclass for NoInputAndNoOutputOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NoInputAndOutputInput(_SerdeShape): + "Dataclass for NoInputAndOutputInput structure." + +class NoInputAndOutputInputDict(TypedDict, total=False): + "Dictionary form of `NoInputAndOutputInput`." + +@dataclass(kw_only=True) +class NullAndEmptyHeadersClientInput(_SerdeShape): + "Dataclass for NullAndEmptyHeadersClientInput structure." + + a: str | None = ... + b: str | None = ... + c: list[str] | None = ... + +class NullAndEmptyHeadersClientInputDict(TypedDict, total=False): + "Dictionary form of `NullAndEmptyHeadersClientInput`." + + a: str | None + b: str | None + c: Sequence[str] | None + +@dataclass(kw_only=True) +class NullAndEmptyHeadersClientOutput(_SerdeShape): + "Dataclass for NullAndEmptyHeadersClientOutput structure." + + a: str | None = ... + b: str | None = ... + c: list[str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NullAndEmptyHeadersServerInput(_SerdeShape): + "Dataclass for NullAndEmptyHeadersServerInput structure." + + a: str | None = ... + b: str | None = ... + c: list[str] | None = ... + +class NullAndEmptyHeadersServerInputDict(TypedDict, total=False): + "Dictionary form of `NullAndEmptyHeadersServerInput`." + + a: str | None + b: str | None + c: Sequence[str] | None + +@dataclass(kw_only=True) +class NullAndEmptyHeadersServerOutput(_SerdeShape): + "Dataclass for NullAndEmptyHeadersServerOutput structure." + + a: str | None = ... + b: str | None = ... + c: list[str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class OmitsNullSerializesEmptyStringOutput(_SerdeShape): + "Dataclass for OmitsNullSerializesEmptyStringOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class PutWithContentEncodingOutput(_SerdeShape): + "Dataclass for PutWithContentEncodingOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryIdempotencyTokenAutoFillOutput(_SerdeShape): + "Dataclass for QueryIdempotencyTokenAutoFillOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryParamsAsStringListMapOutput(_SerdeShape): + "Dataclass for QueryParamsAsStringListMapOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryPrecedenceOutput(_SerdeShape): + "Dataclass for QueryPrecedenceOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class RecursiveShapesInput(_SerdeShape): + "Dataclass for RecursiveShapesInput structure." + + nested: RecursiveShapesInputOutputNested1 | None = ... + +class RecursiveShapesInputDict(TypedDict, total=False): + "Dictionary form of `RecursiveShapesInput`." + + nested: ( + RecursiveShapesInputOutputNested1 | RecursiveShapesInputOutputNested1Dict | None + ) + +@dataclass(kw_only=True) +class RecursiveShapesOutput(_SerdeShape): + "Dataclass for RecursiveShapesOutput structure." + + nested: RecursiveShapesInputOutputNested1 | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class SimpleScalarPropertiesInput(_SerdeShape): + "Dataclass for SimpleScalarPropertiesInput structure." + + foo: str | None = ... + string_value: str | None = ... + true_boolean_value: bool | None = ... + false_boolean_value: bool | None = ... + byte_value: int | None = ... + short_value: int | None = ... + integer_value: int | None = ... + long_value: int | None = ... + float_value: float | None = ... + double_value: float | None = ... + +class SimpleScalarPropertiesInputDict(TypedDict, total=False): + "Dictionary form of `SimpleScalarPropertiesInput`." + + foo: str | None + string_value: str | None + true_boolean_value: bool | None + false_boolean_value: bool | None + byte_value: int | None + short_value: int | None + integer_value: int | None + long_value: int | None + float_value: float | None + double_value: float | None + +@dataclass(kw_only=True) +class SimpleScalarPropertiesOutput(_SerdeShape): + "Dataclass for SimpleScalarPropertiesOutput structure." + + foo: str | None = ... + string_value: str | None = ... + true_boolean_value: bool | None = ... + false_boolean_value: bool | None = ... + byte_value: int | None = ... + short_value: int | None = ... + integer_value: int | None = ... + long_value: int | None = ... + float_value: float | None = ... + double_value: float | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class TimestampFormatHeadersInput(_SerdeShape): + "Dataclass for TimestampFormatHeadersInput structure." + + member_epoch_seconds: datetime | None = ... + member_http_date: datetime | None = ... + member_date_time: datetime | None = ... + default_format: datetime | None = ... + target_epoch_seconds: datetime | None = ... + target_http_date: datetime | None = ... + target_date_time: datetime | None = ... + +class TimestampFormatHeadersInputDict(TypedDict, total=False): + "Dictionary form of `TimestampFormatHeadersInput`." + + member_epoch_seconds: datetime | None + member_http_date: datetime | None + member_date_time: datetime | None + default_format: datetime | None + target_epoch_seconds: datetime | None + target_http_date: datetime | None + target_date_time: datetime | None + +@dataclass(kw_only=True) +class TimestampFormatHeadersOutput(_SerdeShape): + "Dataclass for TimestampFormatHeadersOutput structure." + + member_epoch_seconds: datetime | None = ... + member_http_date: datetime | None = ... + member_date_time: datetime | None = ... + default_format: datetime | None = ... + target_epoch_seconds: datetime | None = ... + target_http_date: datetime | None = ... + target_date_time: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlAttributesInput(_SerdeShape): + "Dataclass for XmlAttributesInput structure." + + foo: str | None = ... + attr: str | None = ... + +class XmlAttributesInputDict(TypedDict, total=False): + "Dictionary form of `XmlAttributesInput`." + + foo: str | None + attr: str | None + +@dataclass(kw_only=True) +class XmlAttributesOutput(_SerdeShape): + "Dataclass for XmlAttributesOutput structure." + + foo: str | None = ... + attr: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlAttributesInMiddleInput(_SerdeShape): + "Dataclass for XmlAttributesInMiddleInput structure." + + payload: XmlAttributesInMiddlePayloadRequest | None = ... + +class XmlAttributesInMiddleInputDict(TypedDict, total=False): + "Dictionary form of `XmlAttributesInMiddleInput`." + + payload: ( + XmlAttributesInMiddlePayloadRequest + | XmlAttributesInMiddlePayloadRequestDict + | None + ) + +@dataclass(kw_only=True) +class XmlAttributesInMiddleOutput(_SerdeShape): + "Dataclass for XmlAttributesInMiddleOutput structure." + + payload: XmlAttributesInMiddlePayloadResponse | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlAttributesOnPayloadInput(_SerdeShape): + "Dataclass for XmlAttributesOnPayloadInput structure." + + payload: XmlAttributesPayloadRequest | None = ... + +class XmlAttributesOnPayloadInputDict(TypedDict, total=False): + "Dictionary form of `XmlAttributesOnPayloadInput`." + + payload: XmlAttributesPayloadRequest | XmlAttributesPayloadRequestDict | None + +@dataclass(kw_only=True) +class XmlAttributesOnPayloadOutput(_SerdeShape): + "Dataclass for XmlAttributesOnPayloadOutput structure." + + payload: XmlAttributesPayloadResponse | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlBlobsInput(_SerdeShape): + "Dataclass for XmlBlobsInput structure." + + data: bytes | None = ... + +class XmlBlobsInputDict(TypedDict, total=False): + "Dictionary form of `XmlBlobsInput`." + + data: bytes | None + +@dataclass(kw_only=True) +class XmlBlobsOutput(_SerdeShape): + "Dataclass for XmlBlobsOutput structure." + + data: bytes | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyBlobsInput(_SerdeShape): + "Dataclass for XmlEmptyBlobsInput structure." + + data: bytes | None = ... + +class XmlEmptyBlobsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyBlobsInput`." + + data: bytes | None + +@dataclass(kw_only=True) +class XmlEmptyBlobsOutput(_SerdeShape): + "Dataclass for XmlEmptyBlobsOutput structure." + + data: bytes | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyListsInput(_SerdeShape): + "Dataclass for XmlEmptyListsInput structure." + + string_list: list[str] | None = ... + string_set: list[str] | None = ... + integer_list: list[int] | None = ... + boolean_list: list[bool] | None = ... + timestamp_list: list[datetime] | None = ... + enum_list: list[str] | None = ... + int_enum_list: list[int] | None = ... + nested_string_list: list[list[str]] | None = ... + renamed_list_members: list[str] | None = ... + flattened_list: list[str] | None = ... + flattened_list2: list[str] | None = ... + flattened_list_with_member_namespace: list[str] | None = ... + flattened_list_with_namespace: list[str] | None = ... + structure_list: list[StructureListMember] | None = ... + flattened_structure_list: list[StructureListMember] | None = ... + +class XmlEmptyListsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyListsInput`." + + string_list: Sequence[str] | None + string_set: Sequence[str] | None + integer_list: Sequence[int] | None + boolean_list: Sequence[bool] | None + timestamp_list: Sequence[datetime] | None + enum_list: Sequence[str] | None + int_enum_list: Sequence[int] | None + nested_string_list: Sequence[Sequence[str]] | None + renamed_list_members: Sequence[str] | None + flattened_list: Sequence[str] | None + flattened_list2: Sequence[str] | None + flattened_list_with_member_namespace: Sequence[str] | None + flattened_list_with_namespace: Sequence[str] | None + structure_list: Sequence[StructureListMember | StructureListMemberDict] | None + flattened_structure_list: ( + Sequence[StructureListMember | StructureListMemberDict] | None + ) + +@dataclass(kw_only=True) +class XmlEmptyListsOutput(_SerdeShape): + "Dataclass for XmlEmptyListsOutput structure." + + string_list: list[str] | None = ... + string_set: list[str] | None = ... + integer_list: list[int] | None = ... + boolean_list: list[bool] | None = ... + timestamp_list: list[datetime] | None = ... + enum_list: list[str] | None = ... + int_enum_list: list[int] | None = ... + nested_string_list: list[list[str]] | None = ... + renamed_list_members: list[str] | None = ... + flattened_list: list[str] | None = ... + flattened_list2: list[str] | None = ... + flattened_list_with_member_namespace: list[str] | None = ... + flattened_list_with_namespace: list[str] | None = ... + structure_list: list[StructureListMember] | None = ... + flattened_structure_list: list[StructureListMember] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyMapsInput(_SerdeShape): + "Dataclass for XmlEmptyMapsInput structure." + + my_map: dict[str, GreetingStruct] | None = ... + +class XmlEmptyMapsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyMapsInput`." + + my_map: Mapping[str, GreetingStruct | GreetingStructDict] | None + +@dataclass(kw_only=True) +class XmlEmptyMapsOutput(_SerdeShape): + "Dataclass for XmlEmptyMapsOutput structure." + + my_map: dict[str, GreetingStruct] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyStringsInput(_SerdeShape): + "Dataclass for XmlEmptyStringsInput structure." + + empty_string: str | None = ... + +class XmlEmptyStringsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyStringsInput`." + + empty_string: str | None + +@dataclass(kw_only=True) +class XmlEmptyStringsOutput(_SerdeShape): + "Dataclass for XmlEmptyStringsOutput structure." + + empty_string: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEnumsInput(_SerdeShape): + "Dataclass for XmlEnumsInput structure." + + foo_enum1: str | None = ... + foo_enum2: str | None = ... + foo_enum3: str | None = ... + foo_enum_list: list[str] | None = ... + foo_enum_set: list[str] | None = ... + foo_enum_map: dict[str, str] | None = ... + +class XmlEnumsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEnumsInput`." + + foo_enum1: str | None + foo_enum2: str | None + foo_enum3: str | None + foo_enum_list: Sequence[str] | None + foo_enum_set: Sequence[str] | None + foo_enum_map: Mapping[str, str] | None + +@dataclass(kw_only=True) +class XmlEnumsOutput(_SerdeShape): + "Dataclass for XmlEnumsOutput structure." + + foo_enum1: str | None = ... + foo_enum2: str | None = ... + foo_enum3: str | None = ... + foo_enum_list: list[str] | None = ... + foo_enum_set: list[str] | None = ... + foo_enum_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlIntEnumsInput(_SerdeShape): + "Dataclass for XmlIntEnumsInput structure." + + int_enum1: int | None = ... + int_enum2: int | None = ... + int_enum3: int | None = ... + int_enum_list: list[int] | None = ... + int_enum_set: list[int] | None = ... + int_enum_map: dict[str, int] | None = ... + +class XmlIntEnumsInputDict(TypedDict, total=False): + "Dictionary form of `XmlIntEnumsInput`." + + int_enum1: int | None + int_enum2: int | None + int_enum3: int | None + int_enum_list: Sequence[int] | None + int_enum_set: Sequence[int] | None + int_enum_map: Mapping[str, int] | None + +@dataclass(kw_only=True) +class XmlIntEnumsOutput(_SerdeShape): + "Dataclass for XmlIntEnumsOutput structure." + + int_enum1: int | None = ... + int_enum2: int | None = ... + int_enum3: int | None = ... + int_enum_list: list[int] | None = ... + int_enum_set: list[int] | None = ... + int_enum_map: dict[str, int] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlListsInput(_SerdeShape): + "Dataclass for XmlListsInput structure." + + string_list: list[str] | None = ... + string_set: list[str] | None = ... + integer_list: list[int] | None = ... + boolean_list: list[bool] | None = ... + timestamp_list: list[datetime] | None = ... + enum_list: list[str] | None = ... + int_enum_list: list[int] | None = ... + nested_string_list: list[list[str]] | None = ... + renamed_list_members: list[str] | None = ... + flattened_list: list[str] | None = ... + flattened_list2: list[str] | None = ... + flattened_list_with_member_namespace: list[str] | None = ... + flattened_list_with_namespace: list[str] | None = ... + structure_list: list[StructureListMember] | None = ... + flattened_structure_list: list[StructureListMember] | None = ... + +class XmlListsInputDict(TypedDict, total=False): + "Dictionary form of `XmlListsInput`." + + string_list: Sequence[str] | None + string_set: Sequence[str] | None + integer_list: Sequence[int] | None + boolean_list: Sequence[bool] | None + timestamp_list: Sequence[datetime] | None + enum_list: Sequence[str] | None + int_enum_list: Sequence[int] | None + nested_string_list: Sequence[Sequence[str]] | None + renamed_list_members: Sequence[str] | None + flattened_list: Sequence[str] | None + flattened_list2: Sequence[str] | None + flattened_list_with_member_namespace: Sequence[str] | None + flattened_list_with_namespace: Sequence[str] | None + structure_list: Sequence[StructureListMember | StructureListMemberDict] | None + flattened_structure_list: ( + Sequence[StructureListMember | StructureListMemberDict] | None + ) + +@dataclass(kw_only=True) +class XmlListsOutput(_SerdeShape): + "Dataclass for XmlListsOutput structure." + + string_list: list[str] | None = ... + string_set: list[str] | None = ... + integer_list: list[int] | None = ... + boolean_list: list[bool] | None = ... + timestamp_list: list[datetime] | None = ... + enum_list: list[str] | None = ... + int_enum_list: list[int] | None = ... + nested_string_list: list[list[str]] | None = ... + renamed_list_members: list[str] | None = ... + flattened_list: list[str] | None = ... + flattened_list2: list[str] | None = ... + flattened_list_with_member_namespace: list[str] | None = ... + flattened_list_with_namespace: list[str] | None = ... + structure_list: list[StructureListMember] | None = ... + flattened_structure_list: list[StructureListMember] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlMapWithXmlNamespaceInput(_SerdeShape): + "Dataclass for XmlMapWithXmlNamespaceInput structure." + + my_map: dict[str, str] | None = ... + +class XmlMapWithXmlNamespaceInputDict(TypedDict, total=False): + "Dictionary form of `XmlMapWithXmlNamespaceInput`." + + my_map: Mapping[str, str] | None + +@dataclass(kw_only=True) +class XmlMapWithXmlNamespaceOutput(_SerdeShape): + "Dataclass for XmlMapWithXmlNamespaceOutput structure." + + my_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlMapsInput(_SerdeShape): + "Dataclass for XmlMapsInput structure." + + my_map: dict[str, GreetingStruct] | None = ... + +class XmlMapsInputDict(TypedDict, total=False): + "Dictionary form of `XmlMapsInput`." + + my_map: Mapping[str, GreetingStruct | GreetingStructDict] | None + +@dataclass(kw_only=True) +class XmlMapsOutput(_SerdeShape): + "Dataclass for XmlMapsOutput structure." + + my_map: dict[str, GreetingStruct] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlMapsXmlNameInput(_SerdeShape): + "Dataclass for XmlMapsXmlNameInput structure." + + my_map: dict[str, GreetingStruct] | None = ... + +class XmlMapsXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `XmlMapsXmlNameInput`." + + my_map: Mapping[str, GreetingStruct | GreetingStructDict] | None + +@dataclass(kw_only=True) +class XmlMapsXmlNameOutput(_SerdeShape): + "Dataclass for XmlMapsXmlNameOutput structure." + + my_map: dict[str, GreetingStruct] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlNamespacesInput(_SerdeShape): + "Dataclass for XmlNamespacesInput structure." + + nested: XmlNamespaceNested | None = ... + +class XmlNamespacesInputDict(TypedDict, total=False): + "Dictionary form of `XmlNamespacesInput`." + + nested: XmlNamespaceNested | XmlNamespaceNestedDict | None + +@dataclass(kw_only=True) +class XmlNamespacesOutput(_SerdeShape): + "Dataclass for XmlNamespacesOutput structure." + + nested: XmlNamespaceNested | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlTimestampsInput(_SerdeShape): + "Dataclass for XmlTimestampsInput structure." + + normal: datetime | None = ... + date_time: datetime | None = ... + date_time_on_target: datetime | None = ... + epoch_seconds: datetime | None = ... + epoch_seconds_on_target: datetime | None = ... + http_date: datetime | None = ... + http_date_on_target: datetime | None = ... + +class XmlTimestampsInputDict(TypedDict, total=False): + "Dictionary form of `XmlTimestampsInput`." + + normal: datetime | None + date_time: datetime | None + date_time_on_target: datetime | None + epoch_seconds: datetime | None + epoch_seconds_on_target: datetime | None + http_date: datetime | None + http_date_on_target: datetime | None + +@dataclass(kw_only=True) +class XmlTimestampsOutput(_SerdeShape): + "Dataclass for XmlTimestampsOutput structure." + + normal: datetime | None = ... + date_time: datetime | None = ... + date_time_on_target: datetime | None = ... + epoch_seconds: datetime | None = ... + epoch_seconds_on_target: datetime | None = ... + http_date: datetime | None = ... + http_date_on_target: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlUnionsInput(_SerdeShape): + "Dataclass for XmlUnionsInput structure." + + union_value: XmlUnionShape | None = ... + +class XmlUnionsInputDict(TypedDict, total=False): + "Dictionary form of `XmlUnionsInput`." + + union_value: XmlUnionShape | XmlUnionShapeDict | None + +@dataclass(kw_only=True) +class XmlUnionsOutput(_SerdeShape): + "Dataclass for XmlUnionsOutput structure." + + union_value: XmlUnionShape | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +ALL_QUERY_STRING_TYPES: APIOperation[ + AllQueryStringTypesInput, AllQueryStringTypesOutput +] +BODY_WITH_XML_NAME: APIOperation[BodyWithXmlNameInput, BodyWithXmlNameOutput] +CONSTANT_AND_VARIABLE_QUERY_STRING: APIOperation[ + ConstantAndVariableQueryStringInput, ConstantAndVariableQueryStringOutput +] +CONSTANT_QUERY_STRING: APIOperation[ConstantQueryStringInput, ConstantQueryStringOutput] +CONTENT_TYPE_PARAMETERS: APIOperation[ + ContentTypeParametersInput, ContentTypeParametersOutput +] +DATETIME_OFFSETS: APIOperation[DatetimeOffsetsInput, DatetimeOffsetsOutput] +EMPTY_INPUT_AND_EMPTY_OUTPUT: APIOperation[ + EmptyInputAndEmptyOutputInput, EmptyInputAndEmptyOutputOutput +] +ENDPOINT_OPERATION: APIOperation[EndpointOperationInput, EndpointOperationOutput] +ENDPOINT_WITH_HOST_LABEL_HEADER_OPERATION: APIOperation[ + EndpointWithHostLabelHeaderOperationInput, + EndpointWithHostLabelHeaderOperationOutput, +] +ENDPOINT_WITH_HOST_LABEL_OPERATION: APIOperation[ + EndpointWithHostLabelOperationInput, EndpointWithHostLabelOperationOutput +] +FLATTENED_XML_MAP: APIOperation[FlattenedXmlMapInput, FlattenedXmlMapOutput] +FLATTENED_XML_MAP_WITH_XML_NAME: APIOperation[ + FlattenedXmlMapWithXmlNameInput, FlattenedXmlMapWithXmlNameOutput +] +FLATTENED_XML_MAP_WITH_XML_NAMESPACE: APIOperation[ + FlattenedXmlMapWithXmlNamespaceInput, FlattenedXmlMapWithXmlNamespaceOutput +] +FRACTIONAL_SECONDS: APIOperation[FractionalSecondsInput, FractionalSecondsOutput] +GREETING_WITH_ERRORS: APIOperation[GreetingWithErrorsInput, GreetingWithErrorsOutput] +HTTP_EMPTY_PREFIX_HEADERS: APIOperation[ + HttpEmptyPrefixHeadersInput, HttpEmptyPrefixHeadersOutput +] +HTTP_ENUM_PAYLOAD: APIOperation[HttpEnumPayloadInput, HttpEnumPayloadOutput] +HTTP_PAYLOAD_TRAITS: APIOperation[HttpPayloadTraitsInput, HttpPayloadTraitsOutput] +HTTP_PAYLOAD_TRAITS_WITH_MEDIA_TYPE: APIOperation[ + HttpPayloadTraitsWithMediaTypeInput, HttpPayloadTraitsWithMediaTypeOutput +] +HTTP_PAYLOAD_WITH_MEMBER_XML_NAME: APIOperation[ + HttpPayloadWithMemberXmlNameInput, HttpPayloadWithMemberXmlNameOutput +] +HTTP_PAYLOAD_WITH_STRUCTURE: APIOperation[ + HttpPayloadWithStructureInput, HttpPayloadWithStructureOutput +] +HTTP_PAYLOAD_WITH_UNION: APIOperation[ + HttpPayloadWithUnionInput, HttpPayloadWithUnionOutput +] +HTTP_PAYLOAD_WITH_XML_NAME: APIOperation[ + HttpPayloadWithXmlNameInput, HttpPayloadWithXmlNameOutput +] +HTTP_PAYLOAD_WITH_XML_NAMESPACE: APIOperation[ + HttpPayloadWithXmlNamespaceInput, HttpPayloadWithXmlNamespaceOutput +] +HTTP_PAYLOAD_WITH_XML_NAMESPACE_AND_PREFIX: APIOperation[ + HttpPayloadWithXmlNamespaceAndPrefixInput, + HttpPayloadWithXmlNamespaceAndPrefixOutput, +] +HTTP_PREFIX_HEADERS: APIOperation[HttpPrefixHeadersInput, HttpPrefixHeadersOutput] +HTTP_REQUEST_WITH_FLOAT_LABELS: APIOperation[ + HttpRequestWithFloatLabelsInput, HttpRequestWithFloatLabelsOutput +] +HTTP_REQUEST_WITH_GREEDY_LABEL_IN_PATH: APIOperation[ + HttpRequestWithGreedyLabelInPathInput, HttpRequestWithGreedyLabelInPathOutput +] +HTTP_REQUEST_WITH_LABELS: APIOperation[ + HttpRequestWithLabelsInput, HttpRequestWithLabelsOutput +] +HTTP_REQUEST_WITH_LABELS_AND_TIMESTAMP_FORMAT: APIOperation[ + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatOutput, +] +HTTP_RESPONSE_CODE: APIOperation[HttpResponseCodeInput, HttpResponseCodeOutput] +HTTP_STRING_PAYLOAD: APIOperation[HttpStringPayloadInput, HttpStringPayloadOutput] +IGNORE_QUERY_PARAMS_IN_RESPONSE: APIOperation[ + IgnoreQueryParamsInResponseInput, IgnoreQueryParamsInResponseOutput +] +INPUT_AND_OUTPUT_WITH_HEADERS: APIOperation[ + InputAndOutputWithHeadersInput, InputAndOutputWithHeadersOutput +] +NESTED_XML_MAP_WITH_XML_NAME: APIOperation[ + NestedXmlMapWithXmlNameInput, NestedXmlMapWithXmlNameOutput +] +NESTED_XML_MAPS: APIOperation[NestedXmlMapsInput, NestedXmlMapsOutput] +NO_INPUT_AND_NO_OUTPUT: APIOperation[NoInputAndNoOutputInput, NoInputAndNoOutputOutput] +NO_INPUT_AND_OUTPUT: APIOperation[NoInputAndOutputInput, NoInputAndOutputOutput] +NULL_AND_EMPTY_HEADERS_CLIENT: APIOperation[ + NullAndEmptyHeadersClientInput, NullAndEmptyHeadersClientOutput +] +NULL_AND_EMPTY_HEADERS_SERVER: APIOperation[ + NullAndEmptyHeadersServerInput, NullAndEmptyHeadersServerOutput +] +OMITS_NULL_SERIALIZES_EMPTY_STRING: APIOperation[ + OmitsNullSerializesEmptyStringInput, OmitsNullSerializesEmptyStringOutput +] +PUT_WITH_CONTENT_ENCODING: APIOperation[ + PutWithContentEncodingInput, PutWithContentEncodingOutput +] +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL: APIOperation[ + QueryIdempotencyTokenAutoFillInput, QueryIdempotencyTokenAutoFillOutput +] +QUERY_PARAMS_AS_STRING_LIST_MAP: APIOperation[ + QueryParamsAsStringListMapInput, QueryParamsAsStringListMapOutput +] +QUERY_PRECEDENCE: APIOperation[QueryPrecedenceInput, QueryPrecedenceOutput] +RECURSIVE_SHAPES: APIOperation[RecursiveShapesInput, RecursiveShapesOutput] +SIMPLE_SCALAR_PROPERTIES: APIOperation[ + SimpleScalarPropertiesInput, SimpleScalarPropertiesOutput +] +TIMESTAMP_FORMAT_HEADERS: APIOperation[ + TimestampFormatHeadersInput, TimestampFormatHeadersOutput +] +XML_ATTRIBUTES: APIOperation[XmlAttributesInput, XmlAttributesOutput] +XML_ATTRIBUTES_IN_MIDDLE: APIOperation[ + XmlAttributesInMiddleInput, XmlAttributesInMiddleOutput +] +XML_ATTRIBUTES_ON_PAYLOAD: APIOperation[ + XmlAttributesOnPayloadInput, XmlAttributesOnPayloadOutput +] +XML_BLOBS: APIOperation[XmlBlobsInput, XmlBlobsOutput] +XML_EMPTY_BLOBS: APIOperation[XmlEmptyBlobsInput, XmlEmptyBlobsOutput] +XML_EMPTY_LISTS: APIOperation[XmlEmptyListsInput, XmlEmptyListsOutput] +XML_EMPTY_MAPS: APIOperation[XmlEmptyMapsInput, XmlEmptyMapsOutput] +XML_EMPTY_STRINGS: APIOperation[XmlEmptyStringsInput, XmlEmptyStringsOutput] +XML_ENUMS: APIOperation[XmlEnumsInput, XmlEnumsOutput] +XML_INT_ENUMS: APIOperation[XmlIntEnumsInput, XmlIntEnumsOutput] +XML_LISTS: APIOperation[XmlListsInput, XmlListsOutput] +XML_MAP_WITH_XML_NAMESPACE: APIOperation[ + XmlMapWithXmlNamespaceInput, XmlMapWithXmlNamespaceOutput +] +XML_MAPS: APIOperation[XmlMapsInput, XmlMapsOutput] +XML_MAPS_XML_NAME: APIOperation[XmlMapsXmlNameInput, XmlMapsXmlNameOutput] +XML_NAMESPACES: APIOperation[XmlNamespacesInput, XmlNamespacesOutput] +XML_TIMESTAMPS: APIOperation[XmlTimestampsInput, XmlTimestampsOutput] +XML_UNIONS: APIOperation[XmlUnionsInput, XmlUnionsOutput] diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/py.typed b/codegen-output-py/rest-xml-client/src/restxml_client/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/codegen-output-py/rest-xml-client/src/restxml_client/user_agent.py b/codegen-output-py/rest-xml-client/src/restxml_client/user_agent.py new file mode 100644 index 000000000..920a00b8a --- /dev/null +++ b/codegen-output-py/rest-xml-client/src/restxml_client/user_agent.py @@ -0,0 +1,16 @@ +from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor + +from restxml_client import __version__ +from restxml_client.config import RestXmlProtocolConfig + + +def aws_user_agent_plugin(config: RestXmlProtocolConfig) -> None: + "Send the AWS user agent with every request." + config.interceptors.append( + UserAgentInterceptor( + ua_suffix=config.user_agent_extra, + ua_app_id=config.sdk_ua_app_id, + sdk_version=__version__, + service_id="Rest_Xml_Protocol", + ) + ) diff --git a/codegen-output-py/rest-xml-with-namespace-client/.smithy-python-manifest.json b/codegen-output-py/rest-xml-with-namespace-client/.smithy-python-manifest.json new file mode 100644 index 000000000..100de8815 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/.smithy-python-manifest.json @@ -0,0 +1,21 @@ +{ + "files": { + "README.md": "261f9c2a74b59aba880bd74d63a8b331eedff80a723a84da366a6ff51180c54a", + "pyproject.toml": "a4af94e6a5e9f199238f0b377414299921c5f6cb731b2801d5e78e9173b77804", + "src/restxml_xmlns_client/__init__.py": "2a449371cb24f0b87b6b2049f24c81bb756383dc483fc1525079d943e278cb65", + "src/restxml_xmlns_client/_private/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "src/restxml_xmlns_client/_private/endpoints.py": "7d515fe771678e82ddbe07798d6b7e48c25c6c9bec19cec9318deb0bc5064ead", + "src/restxml_xmlns_client/_private/schemas.py": "446191e2ecccc07216170998f042d1eb4862949525613bcd60c1a26e65d05843", + "src/restxml_xmlns_client/aio/__init__.py": "e866ad70cd2dadc81c1f536d3542c3bfac9e44710ab7274a9189966a023de368", + "src/restxml_xmlns_client/aio/client.py": "461ca1a61fe074696a223e6185dc618766c738aaef1b5037510f0ab77c16dfd8", + "src/restxml_xmlns_client/aio/config.py": "dfdb14cab0ec633c99892914b68bb1bc129df64da4457a1770c8463d7520ced2", + "src/restxml_xmlns_client/aio/user_agent.py": "47a42572832cc5061a683f16eb4f2843752bb3c9d93d9ae4264fdf34aee09022", + "src/restxml_xmlns_client/client.py": "ee0fbed55fab887f8252cbd406823dd03b1c37a945a63d6fe0e4201fa21069a6", + "src/restxml_xmlns_client/config.py": "d0ebf114ecdad097cda37a31f682dda4d1f3225517fc03e16a71369d5dfbcbbf", + "src/restxml_xmlns_client/models.py": "fc8a774d66ce039c53574b682af086821f35e5b81af98d7643aa6527963d38a0", + "src/restxml_xmlns_client/models.pyi": "1ab7b67478c0b4d2183c811a2b6dd19ce57bd6852a664539a394a50c3706dbb8", + "src/restxml_xmlns_client/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "src/restxml_xmlns_client/user_agent.py": "cefef0e24ca0bb7708710501e04a5c87b5807d9a8a8be4fe9d020a383e4a99c8" + }, + "version": 1 +} diff --git a/codegen-output-py/rest-xml-with-namespace-client/README.md b/codegen-output-py/rest-xml-with-namespace-client/README.md new file mode 100644 index 000000000..f040970dd --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/README.md @@ -0,0 +1,5 @@ + + +## restxml_xmlns_client Client Package + +Python client for the rest-xml-with-namespace projection diff --git a/codegen-output-py/rest-xml-with-namespace-client/pyproject.toml b/codegen-output-py/rest-xml-with-namespace-client/pyproject.toml new file mode 100644 index 000000000..9cf8b2cd1 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/pyproject.toml @@ -0,0 +1,38 @@ +# Code generated by smithy-python-codegen DO NOT EDIT. + +[project] +name = "restxml_xmlns_client" +version = "0.0.1" +description = "Python client for the rest-xml-with-namespace projection" +readme = "README.md" +requires-python = ">=3.12" +keywords = ["smithy", "restxml_xmlns_client"] +license = {text = "Apache-2.0"} +dependencies = [ + "smithy-aws-core[xml]~=0.16.0", + "smithy-core~=0.13.0", + "smithy-http[aiohttp,urllib3]~=0.10.0", +] + +[build-system] +requires = [ + "hatchling", +] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = [ + "src/restxml_xmlns_client", +] + +[tool.pyright] +typeCheckingMode = "strict" + +[tool.ruff] +target-version = "py312" + +[tool.ruff.lint] +ignore = ["F841"] + +[tool.ruff.format] +skip-magic-trailing-comma = true diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/__init__.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/__init__.py new file mode 100644 index 000000000..f5950f734 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/__init__.py @@ -0,0 +1,30 @@ +from importlib import import_module +from typing import TYPE_CHECKING, Any + +__version__: str = "0.0.1" + +if TYPE_CHECKING: + from .aio.client import AsyncRestXmlProtocolNamespaceClient + from .aio.config import AsyncRestXmlProtocolNamespaceConfig + from .client import RestXmlProtocolNamespaceClient + from .config import RestXmlProtocolNamespaceConfig + +__all__ = [ + "AsyncRestXmlProtocolNamespaceClient", + "AsyncRestXmlProtocolNamespaceConfig", + "RestXmlProtocolNamespaceClient", + "RestXmlProtocolNamespaceConfig", +] + +_EXPORTS = { + "RestXmlProtocolNamespaceClient": ".client", + "RestXmlProtocolNamespaceConfig": ".config", + "AsyncRestXmlProtocolNamespaceClient": ".aio.client", + "AsyncRestXmlProtocolNamespaceConfig": ".aio.config", +} + + +def __getattr__(name: str) -> Any: + if name in _EXPORTS: + return getattr(import_module(_EXPORTS[name], __name__), name) + raise AttributeError(f"module {__name__!r} has no attribute {name!r}") diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/_private/__init__.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/_private/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/_private/endpoints.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/_private/endpoints.py new file mode 100644 index 000000000..ad3066783 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/_private/endpoints.py @@ -0,0 +1,27 @@ +from smithy_core.endpoints import EndpointBdd + +# fmt: off +# Tags: ref=0, attr=1, call=2, list=3, map=4, error=5, endpoint=6. +BDD = EndpointBdd( + # (name, type, required, default, builtin, client_context_attribute) + parameters=( + ("endpoint", "string", False, None, "SDK::Endpoint", None), + ), + functions=("isSet",), + conditions=( + ((2, "isSet", (0, "endpoint")), None), # 0: isSet(endpoint) + ), + results=( + None, # 0: no match + (6, (0, "endpoint"), None, ()), # 1 + (5, "(default endpointRuleSet) endpoint is not set - you must configure an endpoint."), # 2 + ), + root=2, + # (condition, high, low); 1 and -1 are terminals, a negative reference is a + # complement edge, and 100_000_000 + k is result k. + nodes=( + -1, 1, -1, + 0, 100_000_001, 100_000_002, + ), +) +# fmt: on diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/_private/schemas.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/_private/schemas.py new file mode 100644 index 000000000..bd7e955ae --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/_private/schemas.py @@ -0,0 +1,117 @@ +from types import MappingProxyType + +from smithy_core._schema_compact import StaticOperationSchema, StaticSchema + +n0 = "aws.protocoltests.restxml.xmlns" +_s0 = "NestedWithNamespace" +_s1 = "attrField" +_s2 = "smithy.api#xmlAttribute" +_s3 = "smithy.api#xmlName" +_s4 = "xsi:someName" +_s5 = "SimpleScalarPropertiesInput" +_s6 = "smithy.synthetic#originalShapeId" +_s7 = "aws.protocoltests.restxml.xmlns#SimpleScalarPropertiesRequest" +_s8 = "smithy.api#input" +_s9 = "foo" +_s10 = "smithy.api#httpHeader" +_s11 = "X-Foo" +_s12 = "stringValue" +_s13 = "trueBooleanValue" +_s14 = "falseBooleanValue" +_s15 = "byteValue" +_s16 = "shortValue" +_s17 = "integerValue" +_s18 = "longValue" +_s19 = "floatValue" +_s20 = "Nested" +_s21 = "smithy.api#xmlNamespace" +_s22 = "doubleValue" +_s23 = "DoubleDribble" +_s24 = "SimpleScalarPropertiesOutput" +_s25 = "aws.protocoltests.restxml.xmlns#SimpleScalarPropertiesResponse" +_s26 = "smithy.api#output" +_s27 = "SimpleScalarProperties" +_s28 = "smithy.api#http" +_s29 = "RestXmlWithNamespace" +_s30 = "aws.api#service" +_s31 = "aws.auth#sigv4" +_s32 = "aws.protocols#restXml" + +NESTED_WITH_NAMESPACE: StaticSchema = ( + 18, + n0, + _s0, + 0, + (_s1,), + ((3, {_s2: None, _s3: _s4}),), +) + +SIMPLE_SCALAR_PROPERTIES_INPUT: StaticSchema = ( + 18, + n0, + _s5, + {_s6: _s7, _s8: None}, + (_s9, _s12, _s13, _s14, _s15, _s16, _s17, _s18, _s19, _s20, _s22), + ( + (3, {_s10: _s11}), + (3, 0), + (2, 0), + (2, 0), + (5, 0), + (6, 0), + (7, 0), + (8, 0), + (9, 0), + ( + NESTED_WITH_NAMESPACE, + {_s21: MappingProxyType({"prefix": "xsi", "uri": "https://example.com"})}, + ), + (10, {_s3: _s23}), + ), +) + +SIMPLE_SCALAR_PROPERTIES_OUTPUT: StaticSchema = ( + 18, + n0, + _s24, + {_s6: _s25, _s26: None}, + (_s9, _s12, _s13, _s14, _s15, _s16, _s17, _s18, _s19, _s20, _s22), + ( + (3, {_s10: _s11}), + (3, 0), + (2, 0), + (2, 0), + (5, 0), + (6, 0), + (7, 0), + (8, 0), + (9, 0), + ( + NESTED_WITH_NAMESPACE, + {_s21: MappingProxyType({"prefix": "xsi", "uri": "https://example.com"})}, + ), + (10, {_s3: _s23}), + ), +) + +SIMPLE_SCALAR_PROPERTIES: StaticOperationSchema = ( + 23, + n0, + _s27, + {_s28: MappingProxyType({"uri": "/SimpleScalarProperties", "method": "PUT"})}, + SIMPLE_SCALAR_PROPERTIES_INPUT, + SIMPLE_SCALAR_PROPERTIES_OUTPUT, + (), +) + +REST_XML_WITH_NAMESPACE: StaticSchema = ( + 21, + n0, + _s29, + { + _s30: MappingProxyType({"sdkId": "Rest Xml Protocol Namespace"}), + _s31: MappingProxyType({"name": "restxmlwithnamespace"}), + _s32: None, + _s21: MappingProxyType({"uri": "https://example.com"}), + }, +) diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/__init__.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/__init__.py new file mode 100644 index 000000000..0f84b9066 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/__init__.py @@ -0,0 +1,19 @@ +from importlib import import_module +from typing import TYPE_CHECKING, Any + +if TYPE_CHECKING: + from .client import AsyncRestXmlProtocolNamespaceClient + from .config import AsyncRestXmlProtocolNamespaceConfig + +__all__ = ["AsyncRestXmlProtocolNamespaceClient", "AsyncRestXmlProtocolNamespaceConfig"] + +_EXPORTS = { + "AsyncRestXmlProtocolNamespaceClient": ".client", + "AsyncRestXmlProtocolNamespaceConfig": ".config", +} + + +def __getattr__(name: str) -> Any: + if name in _EXPORTS: + return getattr(import_module(_EXPORTS[name], __name__), name) + raise AttributeError(f"module {__name__!r} has no attribute {name!r}") diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/client.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/client.py new file mode 100644 index 000000000..74c642b49 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/client.py @@ -0,0 +1,85 @@ +from __future__ import annotations + +from typing import Unpack, cast, overload + +from smithy_aws_core.aio.identity.chain import AsyncIdentityChain +from smithy_aws_core.config.types import ConfigSource +from smithy_aws_core.identity.components import AWSCredentialsIdentity +from smithy_core.aio.client import AsyncClient +from smithy_http.aio.interfaces import AsyncHTTPClient +from smithy_http.plugins import user_agent_plugin + +from restxml_xmlns_client import models +from restxml_xmlns_client.aio.config import AsyncRestXmlProtocolNamespaceConfig, Plugin +from restxml_xmlns_client.aio.user_agent import aws_user_agent_plugin + + +class AsyncRestXmlProtocolNamespaceClient( + AsyncClient[AsyncRestXmlProtocolNamespaceConfig] +): + """ + A REST XML service that sends XML requests and responses. + + This service and test case is complementary to the test cases + in the `restXml` directory, but the service under test here has + the `xmlNamespace` trait applied to it. + + See https://github.com/smithy-lang/smithy/issues/616 + """ + + _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + + @overload + async def simple_scalar_properties( + self, + request: models.SimpleScalarPropertiesInput + | models.SimpleScalarPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleScalarPropertiesOutput: ... + + @overload + async def simple_scalar_properties( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleScalarPropertiesInputDict], + ) -> models.SimpleScalarPropertiesOutput: + """ + Invokes the SimpleScalarProperties operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def simple_scalar_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleScalarPropertiesOutput: + return await self._invoke( + self._select_input(models.SIMPLE_SCALAR_PROPERTIES, args, kwargs), + models.SIMPLE_SCALAR_PROPERTIES, + [], + plugins, + ) + + async def _new_config(self) -> AsyncRestXmlProtocolNamespaceConfig: + return await AsyncRestXmlProtocolNamespaceConfig.resolve() + + async def _post_setup(self, config: AsyncRestXmlProtocolNamespaceConfig) -> None: + if config.aws_credentials_identity_resolver is None: + config_context = config.resolution_context() + config_file = None + profile_name = None + if config_context is not None: + config_file = await config_context.parsed_profiles() + if config_context.profile_source is ConfigSource.OVERRIDE: + profile_name = config_context.profile_name + config.aws_credentials_identity_resolver = await AsyncIdentityChain.create( + AWSCredentialsIdentity, + config_file=config_file, + profile_name=profile_name, + region_override=config.region, + http_client=cast(AsyncHTTPClient | None, config.transport), + ) diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/config.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/config.py new file mode 100644 index 000000000..daf856077 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/config.py @@ -0,0 +1,129 @@ +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any, ClassVar, Self, Unpack + +from smithy_aws_core.aio.auth.sigv4 import AsyncSigV4AuthScheme +from smithy_aws_core.aio.config.aws_config import ( + AsyncAwsConfig, + AsyncAwsConfigOverrides, +) +from smithy_aws_core.aio.config.filesystem import AsyncFileSystem +from smithy_aws_core.aio.protocols import AsyncRestXmlClientProtocol +from smithy_aws_core.config.resolvers import EndpointUriResolver +from smithy_aws_core.config.types import FieldSpec +from smithy_aws_core.endpoints import AWS_RULES_EXTENSION +from smithy_core.aio.interfaces import AsyncEndpointResolver +from smithy_core.aio.interfaces.auth import AsyncAuthScheme +from smithy_core.auth import DefaultAuthResolver +from smithy_core.endpoints import BddEndpointResolver +from smithy_core.interceptors import Interceptor +from smithy_core.interfaces import ( + ClientProtocol, + EndpointResolver, + ProtocolConstructor, + ProtocolSettings, +) +from smithy_core.interfaces.auth import AuthSchemeResolver +from smithy_core.shapes import ShapeID +from smithy_http.aio.aiohttp import AIOHTTPClient + +from restxml_xmlns_client._private.endpoints import BDD +from restxml_xmlns_client._private.schemas import REST_XML_WITH_NAMESPACE + +_PROTOCOL_SETTINGS = ProtocolSettings( + namespace="aws.protocoltests.restxml.xmlns", + service_target="RestXmlWithNamespace", + version="2019-12-16", + xml_namespace="https://example.com", + service_schema=REST_XML_WITH_NAMESPACE, +) + + +class _AsyncRestXmlProtocolNamespaceConfigOverrides( + AsyncAwsConfigOverrides, total=False +): + "Explicit field values AsyncRestXmlProtocolNamespaceConfig.resolve accepts." + + endpoint_resolver: EndpointResolver | AsyncEndpointResolver | None + protocol: ( + ClientProtocol[Any, Any] | ProtocolConstructor[ClientProtocol[Any, Any]] | None + ) + auth_schemes: dict[ShapeID, AsyncAuthScheme[Any, Any, Any, Any]] | None + auth_scheme_resolver: AuthSchemeResolver | None + + +@dataclass(kw_only=True, repr=False, init=False) +class AsyncRestXmlProtocolNamespaceConfig(AsyncAwsConfig): + "Configuration for AsyncRestXmlProtocolNamespaceClient." + + interceptors: list[Interceptor[Any, Any, Any, Any]] = field( + default_factory=list[Interceptor[Any, Any, Any, Any]] + ) + "Hooks called during the execution of a request." + + endpoint_resolver: EndpointResolver | AsyncEndpointResolver | None = None + "Resolves the endpoint of each operation." + + protocol: ClientProtocol[Any, Any] | None = None + "Serializes requests and deserializes responses." + + auth_schemes: dict[ShapeID, AsyncAuthScheme[Any, Any, Any, Any]] | None = None + "Auth schemes by auth scheme ID." + + auth_scheme_resolver: AuthSchemeResolver | None = None + "Determines the auth scheme for each operation." + + _FIELDS: ClassVar[dict[str, FieldSpec]] = { + **AsyncAwsConfig._FIELDS, + "endpoint_uri": FieldSpec( + default=None, + resolver=EndpointUriResolver("rest_xml_protocol_namespace").program, + ), + "endpoint_resolver": FieldSpec( + default_factory=lambda: BddEndpointResolver( + BDD, extensions=[AWS_RULES_EXTENSION] + ) + ), + "protocol": FieldSpec( + default_factory=lambda: AsyncRestXmlClientProtocol(_PROTOCOL_SETTINGS), + converter=lambda p: p(_PROTOCOL_SETTINGS) if isinstance(p, type) else p, + ), + "auth_schemes": FieldSpec( + default_factory=lambda: { + ShapeID("aws.auth#sigv4"): AsyncSigV4AuthScheme( + service="restxmlwithnamespace" + ) + } + ), + "auth_scheme_resolver": FieldSpec(default_factory=DefaultAuthResolver), + "transport": FieldSpec(default_factory=lambda: AIOHTTPClient()), + } + + def set_auth_scheme(self, scheme: AsyncAuthScheme[Any, Any, Any, Any]) -> None: + "Set an auth scheme under its scheme ID." + auth_schemes = dict(self.auth_schemes or {}) + auth_schemes[scheme.scheme_id] = scheme + self.auth_schemes = auth_schemes + + @classmethod + async def resolve( # pyright: ignore[reportIncompatibleMethodOverride] + cls, + *, + profile: str | None = None, + fs: AsyncFileSystem | None = None, + config_file_path: str | None = None, + credentials_file_path: str | None = None, + **overrides: Unpack[_AsyncRestXmlProtocolNamespaceConfigOverrides], + ) -> Self: + "Resolve the config from overrides, the environment, and config files." + return await cls._resolve( + profile=profile, + fs=fs, + config_file_path=config_file_path, + credentials_file_path=credentials_file_path, + overrides=overrides, + ) + + +type Plugin = Callable[[AsyncRestXmlProtocolNamespaceConfig], None] +"A callable that customizes the client configuration." diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/user_agent.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/user_agent.py new file mode 100644 index 000000000..1e7ade496 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/aio/user_agent.py @@ -0,0 +1,16 @@ +from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor + +from restxml_xmlns_client import __version__ +from restxml_xmlns_client.aio.config import AsyncRestXmlProtocolNamespaceConfig + + +def aws_user_agent_plugin(config: AsyncRestXmlProtocolNamespaceConfig) -> None: + "Send the AWS user agent with every request." + config.interceptors.append( + UserAgentInterceptor( + ua_suffix=config.user_agent_extra, + ua_app_id=config.sdk_ua_app_id, + sdk_version=__version__, + service_id="Rest_Xml_Protocol_Namespace", + ) + ) diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/client.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/client.py new file mode 100644 index 000000000..67047ab92 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/client.py @@ -0,0 +1,83 @@ +from __future__ import annotations + +from typing import Unpack, cast, overload + +from smithy_aws_core.config.types import ConfigSource +from smithy_aws_core.identity.chain.resolver import IdentityChain +from smithy_aws_core.identity.components import AWSCredentialsIdentity +from smithy_core.client import Client +from smithy_http.interfaces import HTTPClient +from smithy_http.plugins import user_agent_plugin + +from restxml_xmlns_client import models +from restxml_xmlns_client.config import Plugin, RestXmlProtocolNamespaceConfig +from restxml_xmlns_client.user_agent import aws_user_agent_plugin + + +class RestXmlProtocolNamespaceClient(Client[RestXmlProtocolNamespaceConfig]): + """ + A REST XML service that sends XML requests and responses. + + This service and test case is complementary to the test cases + in the `restXml` directory, but the service under test here has + the `xmlNamespace` trait applied to it. + + See https://github.com/smithy-lang/smithy/issues/616 + """ + + _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + + @overload + def simple_scalar_properties( + self, + request: models.SimpleScalarPropertiesInput + | models.SimpleScalarPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleScalarPropertiesOutput: ... + + @overload + def simple_scalar_properties( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleScalarPropertiesInputDict], + ) -> models.SimpleScalarPropertiesOutput: + """ + Invokes the SimpleScalarProperties operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def simple_scalar_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleScalarPropertiesOutput: + return self._invoke( + self._select_input(models.SIMPLE_SCALAR_PROPERTIES, args, kwargs), + models.SIMPLE_SCALAR_PROPERTIES, + [], + plugins, + ) + + def _new_config(self) -> RestXmlProtocolNamespaceConfig: + return RestXmlProtocolNamespaceConfig.resolve() + + def _post_setup(self, config: RestXmlProtocolNamespaceConfig) -> None: + if config.aws_credentials_identity_resolver is None: + config_context = config.resolution_context() + config_file = None + profile_name = None + if config_context is not None: + config_file = config_context.parsed_profiles() + if config_context.profile_source is ConfigSource.OVERRIDE: + profile_name = config_context.profile_name + config.aws_credentials_identity_resolver = IdentityChain.create( + AWSCredentialsIdentity, + config_file=config_file, + profile_name=profile_name, + region_override=config.region, + http_client=cast(HTTPClient | None, config.transport), + ) diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/config.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/config.py new file mode 100644 index 000000000..9493cc232 --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/config.py @@ -0,0 +1,122 @@ +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any, ClassVar, Self, Unpack + +from smithy_aws_core.auth.sigv4 import SigV4AuthScheme +from smithy_aws_core.config.aws_config import AwsConfig, AwsConfigOverrides +from smithy_aws_core.config.filesystem import FileSystem +from smithy_aws_core.config.resolvers import EndpointUriResolver +from smithy_aws_core.config.types import FieldSpec +from smithy_aws_core.endpoints import AWS_RULES_EXTENSION +from smithy_aws_core.protocols import RestXmlClientProtocol +from smithy_core.auth import DefaultAuthResolver +from smithy_core.endpoints import BddEndpointResolver +from smithy_core.interceptors import Interceptor +from smithy_core.interfaces import ( + ClientProtocol, + EndpointResolver, + ProtocolConstructor, + ProtocolSettings, +) +from smithy_core.interfaces.auth import AuthScheme, AuthSchemeResolver +from smithy_core.shapes import ShapeID +from smithy_http.urllib3 import Urllib3HTTPClient + +from restxml_xmlns_client._private.endpoints import BDD +from restxml_xmlns_client._private.schemas import REST_XML_WITH_NAMESPACE + +_PROTOCOL_SETTINGS = ProtocolSettings( + namespace="aws.protocoltests.restxml.xmlns", + service_target="RestXmlWithNamespace", + version="2019-12-16", + xml_namespace="https://example.com", + service_schema=REST_XML_WITH_NAMESPACE, +) + + +class _RestXmlProtocolNamespaceConfigOverrides(AwsConfigOverrides, total=False): + "Explicit field values RestXmlProtocolNamespaceConfig.resolve accepts." + + endpoint_resolver: EndpointResolver | None + protocol: ( + ClientProtocol[Any, Any] | ProtocolConstructor[ClientProtocol[Any, Any]] | None + ) + auth_schemes: dict[ShapeID, AuthScheme[Any, Any, Any, Any]] | None + auth_scheme_resolver: AuthSchemeResolver | None + + +@dataclass(kw_only=True, repr=False, init=False) +class RestXmlProtocolNamespaceConfig(AwsConfig): + "Configuration for RestXmlProtocolNamespaceClient." + + interceptors: list[Interceptor[Any, Any, Any, Any]] = field( + default_factory=list[Interceptor[Any, Any, Any, Any]] + ) + "Hooks called during the execution of a request." + + endpoint_resolver: EndpointResolver | None = None + "Resolves the endpoint of each operation." + + protocol: ClientProtocol[Any, Any] | None = None + "Serializes requests and deserializes responses." + + auth_schemes: dict[ShapeID, AuthScheme[Any, Any, Any, Any]] | None = None + "Auth schemes by auth scheme ID." + + auth_scheme_resolver: AuthSchemeResolver | None = None + "Determines the auth scheme for each operation." + + _FIELDS: ClassVar[dict[str, FieldSpec]] = { + **AwsConfig._FIELDS, + "endpoint_uri": FieldSpec( + default=None, + resolver=EndpointUriResolver("rest_xml_protocol_namespace").program, + ), + "endpoint_resolver": FieldSpec( + default_factory=lambda: BddEndpointResolver( + BDD, extensions=[AWS_RULES_EXTENSION] + ) + ), + "protocol": FieldSpec( + default_factory=lambda: RestXmlClientProtocol(_PROTOCOL_SETTINGS), + converter=lambda p: p(_PROTOCOL_SETTINGS) if isinstance(p, type) else p, + ), + "auth_schemes": FieldSpec( + default_factory=lambda: { + ShapeID("aws.auth#sigv4"): SigV4AuthScheme( + service="restxmlwithnamespace" + ) + } + ), + "auth_scheme_resolver": FieldSpec(default_factory=DefaultAuthResolver), + "transport": FieldSpec(default_factory=lambda: Urllib3HTTPClient()), + } + + def set_auth_scheme(self, scheme: AuthScheme[Any, Any, Any, Any]) -> None: + "Set an auth scheme under its scheme ID." + auth_schemes = dict(self.auth_schemes or {}) + auth_schemes[scheme.scheme_id] = scheme + self.auth_schemes = auth_schemes + + @classmethod + def resolve( # pyright: ignore[reportIncompatibleMethodOverride] + cls, + *, + profile: str | None = None, + fs: FileSystem | None = None, + config_file_path: str | None = None, + credentials_file_path: str | None = None, + **overrides: Unpack[_RestXmlProtocolNamespaceConfigOverrides], + ) -> Self: + "Resolve the config from overrides, the environment, and config files." + return cls._resolve( + profile=profile, + fs=fs, + config_file_path=config_file_path, + credentials_file_path=credentials_file_path, + overrides=overrides, + ) + + +type Plugin = Callable[[RestXmlProtocolNamespaceConfig], None] +"A callable that customizes the client configuration." diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/models.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/models.py new file mode 100644 index 000000000..0ba0c52ba --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/models.py @@ -0,0 +1,63 @@ +from smithy_core._dynamic_models import ModelRegistry +from smithy_core.exceptions import ModeledError + +from ._private import schemas + + +class ServiceError(ModeledError): + """ + Base error for all errors in the service. + + Some exceptions do not extend from this class, including synthetic, + implicit, and shared exception types. + """ + + +_MODEL_INDEX = { + "NestedWithNamespace": "NESTED_WITH_NAMESPACE", + "SimpleScalarPropertiesInput": "SIMPLE_SCALAR_PROPERTIES_INPUT", + "SimpleScalarPropertiesOutput": "SIMPLE_SCALAR_PROPERTIES_OUTPUT", +} + +_RENAMES: dict[str, str] = {} + +_TARGET_NAMES: dict[str, str] = {} + +_OPERATIONS: dict[str, tuple[tuple[str, ...], tuple[str, ...]]] = { + "SIMPLE_SCALAR_PROPERTIES": ( + (), + ("aws.auth#sigv4",), + ), +} + +_MODEL_NAMES = tuple(_MODEL_INDEX) +__all__ = ("ServiceError", *_MODEL_NAMES, *_OPERATIONS) # pyright: ignore[reportUnsupportedDunderAll] + + +_registry = ModelRegistry( + schemas, + renames=_RENAMES, + index=_MODEL_INDEX, + target_names=_TARGET_NAMES, + shape_names=frozenset( + { + "NestedWithNamespace", + "SimpleScalarPropertiesInput", + "SimpleScalarPropertiesOutput", + } + ), + service_error="ServiceError", +) +del schemas, ModelRegistry, ModeledError + + +def __getattr__(name: str): + if (data := _OPERATIONS.get(name)) is not None: + return globals().setdefault(name, _registry.build_operation(name, *data)) + value = _registry.build(name) + globals()[name] = value + return value + + +def __dir__() -> list[str]: + return sorted({*globals(), *__all__}) diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/models.pyi b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/models.pyi new file mode 100644 index 000000000..3c48f8f1f --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/models.pyi @@ -0,0 +1,100 @@ +from dataclasses import dataclass +from typing import Self, TypedDict + +from smithy_core.deserializers import ShapeDeserializer +from smithy_core.exceptions import ModeledError +from smithy_core.response import ResponseMetadata +from smithy_core.schemas import APIOperation +from smithy_core.serializers import ShapeSerializer + +__all__ = [ + "SIMPLE_SCALAR_PROPERTIES", + "NestedWithNamespace", + "ServiceError", + "SimpleScalarPropertiesInput", + "SimpleScalarPropertiesOutput", +] + +class _SerdeShape: + def serialize(self, serializer: ShapeSerializer) -> None: ... + def serialize_members(self, serializer: ShapeSerializer) -> None: ... + @classmethod + def deserialize(cls, deserializer: ShapeDeserializer) -> Self: ... + +class ServiceError(ModeledError): + """ + Base error for all errors in the service. + + Some exceptions do not extend from this class, including synthetic, + implicit, and shared exception types. + """ + +@dataclass(kw_only=True) +class NestedWithNamespace(_SerdeShape): + "Dataclass for NestedWithNamespace structure." + + attr_field: str | None = ... + +class NestedWithNamespaceDict(TypedDict, total=False): + "Dictionary form of `NestedWithNamespace`." + + attr_field: str | None + +@dataclass(kw_only=True) +class SimpleScalarPropertiesInput(_SerdeShape): + "Dataclass for SimpleScalarPropertiesInput structure." + + foo: str | None = ... + string_value: str | None = ... + true_boolean_value: bool | None = ... + false_boolean_value: bool | None = ... + byte_value: int | None = ... + short_value: int | None = ... + integer_value: int | None = ... + long_value: int | None = ... + float_value: float | None = ... + nested: NestedWithNamespace | None = ... + double_value: float | None = ... + +class SimpleScalarPropertiesInputDict(TypedDict, total=False): + "Dictionary form of `SimpleScalarPropertiesInput`." + + foo: str | None + string_value: str | None + true_boolean_value: bool | None + false_boolean_value: bool | None + byte_value: int | None + short_value: int | None + integer_value: int | None + long_value: int | None + float_value: float | None + nested: NestedWithNamespace | NestedWithNamespaceDict | None + double_value: float | None + +@dataclass(kw_only=True) +class SimpleScalarPropertiesOutput(_SerdeShape): + "Dataclass for SimpleScalarPropertiesOutput structure." + + foo: str | None = ... + string_value: str | None = ... + true_boolean_value: bool | None = ... + false_boolean_value: bool | None = ... + byte_value: int | None = ... + short_value: int | None = ... + integer_value: int | None = ... + long_value: int | None = ... + float_value: float | None = ... + nested: NestedWithNamespace | None = ... + double_value: float | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +SIMPLE_SCALAR_PROPERTIES: APIOperation[ + SimpleScalarPropertiesInput, SimpleScalarPropertiesOutput +] diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/py.typed b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/user_agent.py b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/user_agent.py new file mode 100644 index 000000000..136abaede --- /dev/null +++ b/codegen-output-py/rest-xml-with-namespace-client/src/restxml_xmlns_client/user_agent.py @@ -0,0 +1,16 @@ +from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor + +from restxml_xmlns_client import __version__ +from restxml_xmlns_client.config import RestXmlProtocolNamespaceConfig + + +def aws_user_agent_plugin(config: RestXmlProtocolNamespaceConfig) -> None: + "Send the AWS user agent with every request." + config.interceptors.append( + UserAgentInterceptor( + ua_suffix=config.user_agent_extra, + ua_app_id=config.sdk_ua_app_id, + sdk_version=__version__, + service_id="Rest_Xml_Protocol_Namespace", + ) + ) diff --git a/designs/codegen/client.md b/designs/codegen/client.md index 7566e85c9..9d41930ce 100644 --- a/designs/codegen/client.md +++ b/designs/codegen/client.md @@ -172,8 +172,8 @@ those definitions out. A protocol registry maps modeled protocol IDs to protocol contributions. A contribution provides sync/async protocol and transport references and their dependencies. RPCv2 CBOR and RPCv2 JSON are built in. The CLI uses -`smithy_python.aws.AWS_PROTOCOLS`, which adds AWS restJson1, awsJson1_0 and -awsJson1_1. Tests can inject a +`smithy_python.aws.AWS_PROTOCOLS`, which adds AWS restJson1, awsJson1_0, +awsJson1_1 and restXml. Tests can inject a registry. The plan keeps the registry's protocol traits in the service schema, even when the model omits their definitions. @@ -191,10 +191,13 @@ The contributions use these runtime protocols: | `aws.protocols#restJson1` | `RestJsonClientProtocol` | `AsyncRestJsonClientProtocol` | `smithy-aws-core[json]` | | `aws.protocols#awsJson1_0` | `AwsJson10ClientProtocol` | `AsyncAwsJson10ClientProtocol` | `smithy-aws-core[json]` | | `aws.protocols#awsJson1_1` | `AwsJson11ClientProtocol` | `AsyncAwsJson11ClientProtocol` | `smithy-aws-core[json]` | +| `aws.protocols#restXml` | `RestXmlClientProtocol` | `AsyncRestXmlClientProtocol` | `smithy-aws-core[xml]` | The AWS protocols come from `smithy-aws-core`, as in the Java generator. Schemas keep `aws.protocols#awsQueryCompatible` and `awsQueryError`, which the runtime -reads for query compatibility. +reads for query compatibility, and `aws.customizations#s3UnwrappedXmlOutput`, +which restXml reads. `ProtocolSettings` carries the service's `xmlNamespace` +URI, which restXml applies to payloads that don't declare their own. All also use: * `ProtocolSettings` with the service namespace, target, version, and schema. diff --git a/designs/codegen/snapshots.md b/designs/codegen/snapshots.md index 382aeaef4..c4e6c7223 100644 --- a/designs/codegen/snapshots.md +++ b/designs/codegen/snapshots.md @@ -66,6 +66,8 @@ projections, generated with the public `client` command. | `aws-json-1-1-client` | `awsjson11_client` | 18 | 118 | | `query-compatible-aws-json-1-0-client` | `querycompatible_awsjson10_client` | 1 | 3 | | `rest-json-1-client` | `restjson_client` | 103 | 236 | +| `rest-xml-client` | `restxml_client` | 65 | 178 | +| `rest-xml-with-namespace-client` | `restxml_xmlns_client` | 1 | 2 | | `rpcv2-cbor-client` | `rpcv2cbor_client` | 14 | 72 | | `rpcv2-json-client` | `rpcv2json_client` | 15 | 73 | @@ -98,7 +100,9 @@ declares them. Server-only vectors are left out. `models/provenance.json` record each file's hash. `tests/test_client_protocol_vectors.py` runs every vector through the sync and async clients of the matching snapshot. A request vector checks the method, host, path, query, headers, and body the client sends. JSON -and CBOR bodies are compared decoded, and other bodies as bytes. A response +and CBOR bodies are compared decoded, XML bodies parsed, and other bodies as +bytes. Vectors keep their model's key order, since XML map entries are sent in +order. A response vector's request is the smallest input the operation accepts. A response vector checks the output model or error it returns. Vectors that the Java client also fails or skips, and known runtime gaps, are marked as strict expected diff --git a/packages/smithy-python/.changes/next-release/smithy-python-feature-195f4ce530d543f29b84a051a6492c5e.json b/packages/smithy-python/.changes/next-release/smithy-python-feature-195f4ce530d543f29b84a051a6492c5e.json new file mode 100644 index 000000000..7e03a062d --- /dev/null +++ b/packages/smithy-python/.changes/next-release/smithy-python-feature-195f4ce530d543f29b84a051a6492c5e.json @@ -0,0 +1,4 @@ +{ + "type": "feature", + "description": "Added `aws.protocols#restXml` support to generated clients, using the `smithy-aws-core` REST XML protocol." +} \ No newline at end of file diff --git a/packages/smithy-python/src/smithy_python/_client_emitter.py b/packages/smithy-python/src/smithy_python/_client_emitter.py index 0b15296c5..d3d3458a8 100644 --- a/packages/smithy-python/src/smithy_python/_client_emitter.py +++ b/packages/smithy-python/src/smithy_python/_client_emitter.py @@ -4,7 +4,7 @@ from __future__ import annotations -from collections.abc import Sequence +from collections.abc import Mapping, Sequence from typing import TYPE_CHECKING, Final from . import _auth, _endpoint_tests, _endpoints, _package @@ -294,6 +294,7 @@ def _modes( _NO_AUTH: Final = _model.ShapeId("smithy.api", "noAuth") +_XML_NAMESPACE: Final = _model.ShapeId("smithy.api", "xmlNamespace") _CONFIG_FIELDS: Final = frozenset( { "auth_scheme_resolver", @@ -351,6 +352,12 @@ def _write_config( writer.line("service_target=", _models._quote(service.id.name), ",") # pyright: ignore[reportPrivateUsage] if service.version is not None: writer.line("version=", _models._quote(service.version), ",") # pyright: ignore[reportPrivateUsage] + # restXml applies the namespace to payloads that don't declare their own. + xml_namespace = service.get_trait(_XML_NAMESPACE) + if isinstance(xml_namespace, Mapping) and isinstance( + uri := xml_namespace.get("uri"), str + ): + writer.line("xml_namespace=", _models._quote(uri), ",") # pyright: ignore[reportPrivateUsage] writer.line( "service_schema=", TypeReference(plan.symbols.schema_name(service.id), schemas), diff --git a/packages/smithy-python/src/smithy_python/aws/__init__.py b/packages/smithy-python/src/smithy_python/aws/__init__.py index 653f1a2f2..c9c5b4454 100644 --- a/packages/smithy-python/src/smithy_python/aws/__init__.py +++ b/packages/smithy-python/src/smithy_python/aws/__init__.py @@ -8,7 +8,7 @@ auth and the default AWS credentials chain. AWS services, and services whose rules use AWS functions or built-ins, resolve endpoints with the AWS rules extension. Clients may also use the AWS protocols ``aws.protocols#restJson1``, -``awsJson1_0`` and ``awsJson1_1``. +``awsJson1_0``, ``awsJson1_1`` and ``restXml``. """ from __future__ import annotations @@ -18,7 +18,7 @@ from ._config import AwsConfigIntegration from ._dependencies import SMITHY_AWS_CORE from ._endpoints import AwsEndpointsIntegration -from ._protocols import AWS_JSON_10, AWS_JSON_11, AWS_PROTOCOLS, REST_JSON +from ._protocols import AWS_JSON_10, AWS_JSON_11, AWS_PROTOCOLS, REST_JSON, REST_XML from ._sigv4 import AwsSigV4Integration __all__ = [ @@ -27,6 +27,7 @@ "AWS_JSON_11", "AWS_PROTOCOLS", "REST_JSON", + "REST_XML", "SMITHY_AWS_CORE", "AwsConfigIntegration", "AwsEndpointsIntegration", diff --git a/packages/smithy-python/src/smithy_python/aws/_protocols.py b/packages/smithy-python/src/smithy_python/aws/_protocols.py index 81456b5ce..2dadea360 100644 --- a/packages/smithy-python/src/smithy_python/aws/_protocols.py +++ b/packages/smithy-python/src/smithy_python/aws/_protocols.py @@ -57,12 +57,21 @@ def _aws(name: str, module: str, extra: str) -> TypeReference: ) """The ``aws.protocols#awsJson1_1`` contribution.""" +REST_XML: Final = ProtocolContribution( + protocol_id=_model.ShapeId("aws.protocols", "restXml"), + protocol=_aws("RestXmlClientProtocol", "protocols", "xml"), + async_protocol=_aws("AsyncRestXmlClientProtocol", "aio.protocols", "xml"), + transport=RPCV2_CBOR.transport, + async_transport=RPCV2_CBOR.async_transport, +) +"""The ``aws.protocols#restXml`` contribution.""" + AWS_PROTOCOLS: Final[Mapping[_model.ShapeId, ProtocolContribution]] = MappingProxyType( { **DEFAULT_PROTOCOLS, **{ contribution.protocol_id: contribution - for contribution in (REST_JSON, AWS_JSON_10, AWS_JSON_11) + for contribution in (REST_JSON, AWS_JSON_10, AWS_JSON_11, REST_XML) }, } ) diff --git a/packages/smithy-python/src/smithy_python/schemas.py b/packages/smithy-python/src/smithy_python/schemas.py index 456f8695e..defcfa7d7 100644 --- a/packages/smithy-python/src/smithy_python/schemas.py +++ b/packages/smithy-python/src/smithy_python/schemas.py @@ -351,6 +351,8 @@ def _shape_id(value: str) -> _model.ShapeId: # awsJson1_0 and rpcv2 read these at runtime for query compatibility. "aws.protocols#awsQueryCompatible", "aws.protocols#awsQueryError", + # restXml reads this to take an output from its root element's text. + "aws.customizations#s3UnwrappedXmlOutput", ), ) ) diff --git a/packages/smithy-python/tests/unit/test_client_generation.py b/packages/smithy-python/tests/unit/test_client_generation.py index 1277e177d..cb9e66777 100644 --- a/packages/smithy-python/tests/unit/test_client_generation.py +++ b/packages/smithy-python/tests/unit/test_client_generation.py @@ -744,6 +744,37 @@ def test_aws_json_services_use_the_aws_core_protocol( ) +def test_rest_xml_services_use_the_aws_core_protocol(tmp_path: Path) -> None: + shapes = _shapes() + shapes["example#Greeter"]["traits"] = { + "aws.protocols#restXml": {}, + "smithy.api#xmlNamespace": {"uri": "https://example.com/greeter"}, + } + shapes["example#Greet"]["traits"] = { + "smithy.api#http": {"method": "POST", "uri": "/greet"} + } + model = load_model({"smithy": "2.0", "shapes": shapes}) + settings = ClientSettings("greeter_xml", "1.0.0", None) + generator = ClientGenerator( + ClientPlan.from_model(model, settings, protocols=_aws.AWS_PROTOCOLS), + protocols=_aws.AWS_PROTOCOLS, + ) + context = generator.context() + generator.generate(context) + context.files.commit(tmp_path) + source = tmp_path / "src/greeter_xml" + config = (source / "config.py").read_text() + assert "RestXmlClientProtocol(_PROTOCOL_SETTINGS)" in config + assert 'xml_namespace="https://example.com/greeter",' in config + assert ( + "AsyncRestXmlClientProtocol(_PROTOCOL_SETTINGS)" + in (source / "aio/config.py").read_text() + ) + assert ( + '"smithy-aws-core[xml]~=0.16.0",' in (tmp_path / "pyproject.toml").read_text() + ) + + def test_integrations_apply_only_to_services_they_match(tmp_path: Path) -> None: _aws_generate(tmp_path, "greeter_plain", _shapes()) assert "class Config:" in (tmp_path / "src/greeter_plain/config.py").read_text() diff --git a/scripts/api-snapshot/api-rex.json b/scripts/api-snapshot/api-rex.json index d5ee405dd..28481e84e 100644 --- a/scripts/api-snapshot/api-rex.json +++ b/scripts/api-snapshot/api-rex.json @@ -1335,6 +1335,7 @@ "AwsEndpointsIntegration": "rex-class", "AwsSigV4Integration": "rex-class", "REST_JSON": "rex-ProtocolContribution", + "REST_XML": "rex-ProtocolContribution", "SMITHY_AWS_CORE": "rex-Dependency" }, "smithy_python.cli": { diff --git a/scripts/codegen-output-py/client-projections.json b/scripts/codegen-output-py/client-projections.json index eccaf4d06..c913928b1 100644 --- a/scripts/codegen-output-py/client-projections.json +++ b/scripts/codegen-output-py/client-projections.json @@ -46,6 +46,20 @@ "service": "aws.protocoltests.restjson#RestJson", "version": "0.0.1" }, + "rest-xml-client": { + "description": "Python client for the rest-xml projection", + "model": "models/rest-xml.json", + "package": "restxml_client", + "service": "aws.protocoltests.restxml#RestXml", + "version": "0.0.1" + }, + "rest-xml-with-namespace-client": { + "description": "Python client for the rest-xml-with-namespace projection", + "model": "models/rest-xml-with-namespace.json", + "package": "restxml_xmlns_client", + "service": "aws.protocoltests.restxml.xmlns#RestXmlWithNamespace", + "version": "0.0.1" + }, "rpcv2-cbor-client": { "description": "Python client for the rpcv2-cbor projection", "model": "models/rpcv2-cbor.json", diff --git a/scripts/codegen-output-py/models/provenance.json b/scripts/codegen-output-py/models/provenance.json index 66e5eed68..3565eaef1 100644 --- a/scripts/codegen-output-py/models/provenance.json +++ b/scripts/codegen-output-py/models/provenance.json @@ -2,12 +2,12 @@ "aws-json-1-0": { "assembled_sha256": "0e6eeb8c431cbf5c988d3daba1983bdc8f9c074657bc9a66915218047bf901f7", "fixture_sha256": "ebfcbdfd4aedefd26bd01e3df4dd0ecca8a7b1e3e768ac7c6a27e9f125250b23", - "vectors_sha256": "54696ab8632106cae2abfee333866a87c089a191b2f50c27beeec97a03caf32d" + "vectors_sha256": "990a2c9b980d7acc0666d2208418db1b25f2806c1539e8bfa7d0fca48c0cfee9" }, "aws-json-1-1": { "assembled_sha256": "a783216226370423619536be3211571a74f24a6d4f15107d364a728ee7fec192", "fixture_sha256": "580fc43337bf9cc6c68452d63454906590588e3de438cb5ad1f3690b147dc5d3", - "vectors_sha256": "37eb26b0b80c064414199ceb4d40909e5bd9fe071bade291b44d765a2e057ec2" + "vectors_sha256": "89ca2517320e26bb48a6194b0e763e06aa52fe8ee72fa87ed2dac977e8ec8791" }, "aws-query": { "assembled_sha256": "62332fc9f42c8d044f0dd59376ed922236b8ac19a6ac1b5c8d08a3856208a726", @@ -32,7 +32,7 @@ "query-compatible-aws-json-1-0": { "assembled_sha256": "c7039ea5f648534741a3cbf4bc5b8bb0f2fac94d7c2ef3b287ad449ca11946e8", "fixture_sha256": "924cb826da264978f570c819d5d2a0fd2571f974241cdb8f7ddb4efe289083cf", - "vectors_sha256": "88bdd4b600c6d0a4462b9bd95a159b8e6116f8d19627f9def2cddea4f6e493d3" + "vectors_sha256": "90896759a0ff699e6ff8c8f7d330988aa79754ceb98cd42feafb1a36e1ad2fdf" }, "query-compatible-rpcv2-cbor": { "assembled_sha256": "ff18f8a7075b4421c44503ad912d4817022cbc1b0be31f3c6abab86d534fd4fd", @@ -41,24 +41,26 @@ "rest-json-1": { "assembled_sha256": "e9bd8f77892be7064088fd1fcd8f3add141d1ea5c60ff7740a8910c0159874b5", "fixture_sha256": "86695cc8ccebcb8579cee0a52e9fe891bf7745576496e23c6e6a3f328b4c2231", - "vectors_sha256": "5a6ad5f85e067099af65e0df4de3a9d8c6c8a22ce51f622998570571199858f0" + "vectors_sha256": "0b33d5cf23773c4a454846f7057474d8d9167ef871e084d0f0489ebc11603b6c" }, "rest-xml": { "assembled_sha256": "9baf7dd1c331a2c3c4a72b7ab38288a714511b4926ee8a03c8aa4256538b3588", - "fixture_sha256": "46f8b05fc58d4d976c64ba1ca52d1ead1b9398b428a2fe2b19892d216062d427" + "fixture_sha256": "46f8b05fc58d4d976c64ba1ca52d1ead1b9398b428a2fe2b19892d216062d427", + "vectors_sha256": "d0d049532fb04ae77fd62059cd1aa04bef1e070c9b8e9bcf7d6c84b67be5fa66" }, "rest-xml-with-namespace": { "assembled_sha256": "3357e842c2542236cdc08a08742b634005ab6cb2233c6b1b1f31d2d79bcc7f5a", - "fixture_sha256": "f248a93bcbccbb1ab86614a8faac028a6b2ecde1a0811b2c52e9f21d0113200e" + "fixture_sha256": "f248a93bcbccbb1ab86614a8faac028a6b2ecde1a0811b2c52e9f21d0113200e", + "vectors_sha256": "0ebe8df1f6e723202b3f40eb8f79d144ad4ed7f84cae42637b1bc934938a6ace" }, "rpcv2-cbor": { "assembled_sha256": "68d4c622bfa0ac01065fb563cbfa6c232668ac8ba09bbbb7dae71c1c4475d529", "fixture_sha256": "04f97ce5fbed181e811a5210ae18005b5d9e3175bedf7ef53f03356dcbe47a38", - "vectors_sha256": "87dd1af15d6d624a836a7bc45fca44d5d3cdd6a776e86cbdcb1b1111fbd9c6f5" + "vectors_sha256": "84030fdc31ccb0c9b91071f11394f9c8849be9ea12b560fdf5939fa2674dee42" }, "rpcv2-json": { "assembled_sha256": "39446e1f8b195e069632f5e95f6d4b44605f0e99a9df5a2d30b9f94321d3cb1c", "fixture_sha256": "698c563eece76205e384984e4ea4a4cbe0ce0415d7663b2dbb2e20f6892e09e5", - "vectors_sha256": "7d3c938768f3dccab0978855990f5708ad124e1eaf1634f090b6f1987ebf590b" + "vectors_sha256": "028e0ff997ca28b290188b9b2f50496b5caa5ace1fed208e369ea7d46ff3ecdd" } } diff --git a/scripts/codegen-output-py/models/vectors/aws-json-1-0.json b/scripts/codegen-output-py/models/vectors/aws-json-1-0.json index 415bdfe85..9cc857826 100644 --- a/scripts/codegen-output-py/models/vectors/aws-json-1-0.json +++ b/scripts/codegen-output-py/models/vectors/aws-json-1-0.json @@ -2,397 +2,399 @@ "aws.protocoltests.json10#ComplexError": { "responses": [ { - "body": "{\n \"__type\": \"aws.protocoltests.json10#ComplexError\",\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Foo\": \"bar\"\n }\n}", - "bodyMediaType": "application/json", - "code": 400, - "documentation": "Parses a complex error with no message member", - "headers": { - "Content-Type": "application/x-amz-json-1.0" - }, "id": "AwsJson10ComplexError", + "documentation": "Parses a complex error with no message member", + "protocol": "aws.protocols#awsJson1_0", "params": { + "TopLevel": "Top level", "Nested": { "Foo": "bar" - }, - "TopLevel": "Top level" + } + }, + "code": 400, + "headers": { + "Content-Type": "application/x-amz-json-1.0" }, - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"__type\": \"aws.protocoltests.json10#ComplexError\",\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Foo\": \"bar\"\n }\n}", + "bodyMediaType": "application/json" }, { - "body": "{\n \"__type\": \"aws.protocoltests.json10#ComplexError\"\n}", - "bodyMediaType": "application/json", - "code": 400, + "id": "AwsJson10EmptyComplexError", "documentation": "Parses a complex error with an empty body", + "protocol": "aws.protocols#awsJson1_0", + "code": 400, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10EmptyComplexError", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"__type\": \"aws.protocoltests.json10#ComplexError\"\n}", + "bodyMediaType": "application/json" } ] }, "aws.protocoltests.json10#EmptyInputAndEmptyOutput": { "requests": [ { + "id": "AwsJson10EmptyInputAndEmptyOutput", + "documentation": "Clients must always send an empty object if input is modeled.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{}", "bodyMediaType": "application/json", - "documentation": "Clients must always send an empty object if input is modeled.", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.EmptyInputAndEmptyOutput" - }, - "id": "AwsJson10EmptyInputAndEmptyOutput", - "method": "POST", - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } } ], "responses": [ { + "id": "AwsJson10EmptyInputAndEmptyOutputSendJsonObject", + "documentation": "A service will always return a JSON object for operations with modeled output.", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "A service will always return a JSON object for operations with modeled output.", "headers": { "Content-Type": "application/x-amz-json-1.0" - }, - "id": "AwsJson10EmptyInputAndEmptyOutputSendJsonObject", - "protocol": "aws.protocols#awsJson1_0" + } } ] }, "aws.protocoltests.json10#EndpointOperation": { "requests": [ { - "body": "{}", - "documentation": "Operations can prepend to the given host if they define the\nendpoint trait.", - "host": "example.com", "id": "AwsJson10EndpointTrait", - "method": "POST", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait.", "protocol": "aws.protocols#awsJson1_0", - "resolvedHost": "foo.example.com", - "uri": "/" + "method": "POST", + "uri": "/", + "body": "{}", + "host": "example.com", + "resolvedHost": "foo.example.com" } ] }, "aws.protocoltests.json10#EndpointWithHostLabelOperation": { "requests": [ { + "id": "AwsJson10EndpointTraitWithHostLabel", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\"label\": \"bar\"}", "bodyMediaType": "application/json", - "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", "host": "example.com", - "id": "AwsJson10EndpointTraitWithHostLabel", - "method": "POST", + "resolvedHost": "foo.bar.example.com", "params": { "label": "bar" - }, - "protocol": "aws.protocols#awsJson1_0", - "resolvedHost": "foo.bar.example.com", - "uri": "/" + } } ] }, "aws.protocoltests.json10#FooError": { "responses": [ { - "appliesTo": "client", - "code": 500, + "id": "AwsJson10FooErrorUsingXAmznErrorType", "documentation": "Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "X-Amzn-Errortype": "FooError" }, - "id": "AwsJson10FooErrorUsingXAmznErrorType", - "protocol": "aws.protocols#awsJson1_0" + "appliesTo": "client" }, { - "appliesTo": "client", - "code": 500, + "id": "AwsJson10FooErrorUsingXAmznErrorTypeWithUri", "documentation": "Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on ':' and take only the first half of the string. For example, 'ValidationException:http://internal.amazon.com/coral/com.amazon.coral.validate/'\nis to be interpreted as 'ValidationException'.\n\nFor an example service see Amazon Polly.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "X-Amzn-Errortype": "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" }, - "id": "AwsJson10FooErrorUsingXAmznErrorTypeWithUri", - "protocol": "aws.protocols#awsJson1_0" + "appliesTo": "client" }, { - "appliesTo": "client", - "code": 500, + "id": "AwsJson10FooErrorUsingXAmznErrorTypeWithUriAndNamespace", "documentation": "X-Amzn-Errortype might contain a URL and a namespace. Client should extract only the shape name. This is a pathalogical case that might not actually happen in any deployed AWS service.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "X-Amzn-Errortype": "aws.protocoltests.json10#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" }, - "id": "AwsJson10FooErrorUsingXAmznErrorTypeWithUriAndNamespace", - "protocol": "aws.protocols#awsJson1_0" + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson10FooErrorUsingCode", "documentation": "This example uses the 'code' property in the output rather than X-Amzn-Errortype. Some services do this though it's preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level 'code' property.\n\nFor example service see Amazon S3 Glacier.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10FooErrorUsingCode", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"code\": \"FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"aws.protocoltests.json10#FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson10FooErrorUsingCodeAndNamespace", "documentation": "Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after '#'.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10FooErrorUsingCodeAndNamespace", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"code\": \"aws.protocoltests.json10#FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"aws.protocoltests.json10#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson10FooErrorUsingCodeUriAndNamespace", "documentation": "Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after '#' and before \":\". This is a pathalogical case that might not occur in any deployed AWS service.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10FooErrorUsingCodeUriAndNamespace", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"code\": \"aws.protocoltests.json10#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson10FooErrorWithDunderType", "documentation": "Some services serialize errors using __type.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10FooErrorWithDunderType", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"__type\": \"FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.json10#FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson10FooErrorWithDunderTypeAndNamespace", "documentation": "Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after '#'.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10FooErrorWithDunderTypeAndNamespace", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"__type\": \"aws.protocoltests.json10#FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.different.namespace#FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson10FooErrorWithDunderTypeAndDifferentNamespace", "documentation": "Because only the part after '#' is considered, an unrecognized namespace should not make a difference.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10FooErrorWithDunderTypeAndDifferentNamespace", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"__type\": \"aws.different.namespace#FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.json10#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson10FooErrorWithDunderTypeUriAndNamespace", "documentation": "Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after '#' and before \":\". This is a pathalogical case that might not occur in any deployed AWS service.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10FooErrorWithDunderTypeUriAndNamespace", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"__type\": \"aws.protocoltests.json10#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.json10#FooError\",\n \"ErrorDetails\": [\n {\n \"__type\": \"com.amazon.internal#ErrorDetails\",\n \"reason\": \"Some reason\"\n }\n ]\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson10FooErrorWithNestedTypeProperty", "documentation": "Some services serialize errors using __type, and if the response includes additional shapes that belong to a different namespace there'll be a nested __type property that must not be considered when determining which error to be surfaced.\n\nFor an example service see Amazon DynamoDB.", + "protocol": "aws.protocols#awsJson1_0", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10FooErrorWithNestedTypeProperty", - "protocol": "aws.protocols#awsJson1_0" + "body": "{\n \"__type\": \"aws.protocoltests.json10#FooError\",\n \"ErrorDetails\": [\n {\n \"__type\": \"com.amazon.internal#ErrorDetails\",\n \"reason\": \"Some reason\"\n }\n ]\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" } ] }, "aws.protocoltests.json10#HostWithPathOperation": { "requests": [ { - "appliesTo": "client", - "body": "{}", - "documentation": "Custom endpoints supplied by users can have paths", - "host": "example.com/custom", "id": "AwsJson10HostWithPath", - "method": "POST", + "documentation": "Custom endpoints supplied by users can have paths", "protocol": "aws.protocols#awsJson1_0", - "uri": "/custom/" + "method": "POST", + "uri": "/custom/", + "body": "{}", + "host": "example.com/custom", + "appliesTo": "client" } ] }, "aws.protocoltests.json10#InvalidGreeting": { "responses": [ { - "body": "{\n \"__type\": \"aws.protocoltests.json10#InvalidGreeting\",\n \"Message\": \"Hi\"\n}", - "bodyMediaType": "application/json", - "code": 400, - "documentation": "Parses simple JSON errors", - "headers": { - "Content-Type": "application/x-amz-json-1.0" - }, "id": "AwsJson10InvalidGreetingError", + "documentation": "Parses simple JSON errors", + "protocol": "aws.protocols#awsJson1_0", "params": { "Message": "Hi" }, - "protocol": "aws.protocols#awsJson1_0" + "code": 400, + "headers": { + "Content-Type": "application/x-amz-json-1.0" + }, + "body": "{\n \"__type\": \"aws.protocoltests.json10#InvalidGreeting\",\n \"Message\": \"Hi\"\n}", + "bodyMediaType": "application/json" } ] }, "aws.protocoltests.json10#JsonUnions": { "requests": [ { + "id": "AwsJson10SerializeStringUnionValue", + "documentation": "Serializes a string union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"stringValue\": \"foo\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a string union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeStringUnionValue", - "method": "POST", "params": { "contents": { "stringValue": "foo" } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { + "id": "AwsJson10SerializeBooleanUnionValue", + "documentation": "Serializes a boolean union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"booleanValue\": true\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a boolean union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeBooleanUnionValue", - "method": "POST", "params": { "contents": { "booleanValue": true } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { + "id": "AwsJson10SerializeNumberUnionValue", + "documentation": "Serializes a number union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"numberValue\": 1\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a number union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeNumberUnionValue", - "method": "POST", "params": { "contents": { "numberValue": 1 } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { + "id": "AwsJson10SerializeBlobUnionValue", + "documentation": "Serializes a blob union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"blobValue\": \"Zm9v\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a blob union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeBlobUnionValue", - "method": "POST", "params": { "contents": { "blobValue": "foo" } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { + "id": "AwsJson10SerializeTimestampUnionValue", + "documentation": "Serializes a timestamp union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"timestampValue\": 1398796238\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a timestamp union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeTimestampUnionValue", - "method": "POST", "params": { "contents": { "timestampValue": 1398796238 } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { + "id": "AwsJson10SerializeEnumUnionValue", + "documentation": "Serializes an enum union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"enumValue\": \"Foo\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes an enum union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeEnumUnionValue", - "method": "POST", "params": { "contents": { "enumValue": "Foo" } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { + "id": "AwsJson10SerializeIntEnumUnionValue", + "documentation": "Serializes an intEnum union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"intEnumValue\": 1\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes an intEnum union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeIntEnumUnionValue", - "method": "POST", "params": { "contents": { "intEnumValue": 1 } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { + "id": "AwsJson10SerializeListUnionValue", + "documentation": "Serializes a list union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"listValue\": [\"foo\", \"bar\"]\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a list union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeListUnionValue", - "method": "POST", "params": { "contents": { "listValue": [ @@ -400,20 +402,20 @@ "bar" ] } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { - "body": "{\n \"contents\": {\n \"mapValue\": {\n \"foo\": \"bar\",\n \"spam\": \"eggs\"\n }\n }\n}", - "bodyMediaType": "application/json", + "id": "AwsJson10SerializeMapUnionValue", "documentation": "Serializes a map union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", + "body": "{\n \"contents\": {\n \"mapValue\": {\n \"foo\": \"bar\",\n \"spam\": \"eggs\"\n }\n }\n}", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeMapUnionValue", - "method": "POST", "params": { "contents": { "mapValue": { @@ -421,153 +423,152 @@ "spam": "eggs" } } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } }, { + "id": "AwsJson10SerializeStructureUnionValue", + "documentation": "Serializes a structure union value", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a structure union value", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.JsonUnions" }, - "id": "AwsJson10SerializeStructureUnionValue", - "method": "POST", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + } } ], "responses": [ { + "id": "AwsJson10DeserializeStringUnionValue", + "documentation": "Deserializes a string union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"stringValue\": \"foo\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a string union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeStringUnionValue", "params": { "contents": { "stringValue": "foo" } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeBooleanUnionValue", + "documentation": "Deserializes a boolean union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"booleanValue\": true\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a boolean union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeBooleanUnionValue", "params": { "contents": { "booleanValue": true } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeNumberUnionValue", + "documentation": "Deserializes a number union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"numberValue\": 1\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a number union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeNumberUnionValue", "params": { "contents": { "numberValue": 1 } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeBlobUnionValue", + "documentation": "Deserializes a blob union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"blobValue\": \"Zm9v\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a blob union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeBlobUnionValue", "params": { "contents": { "blobValue": "foo" } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeTimestampUnionValue", + "documentation": "Deserializes a timestamp union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"timestampValue\": 1398796238\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a timestamp union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeTimestampUnionValue", "params": { "contents": { "timestampValue": 1398796238 } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeEnumUnionValue", + "documentation": "Deserializes an enum union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"enumValue\": \"Foo\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes an enum union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeEnumUnionValue", "params": { "contents": { "enumValue": "Foo" } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeIntEnumUnionValue", + "documentation": "Deserializes an intEnum union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"intEnumValue\": 1\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes an intEnum union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeIntEnumUnionValue", "params": { "contents": { "intEnumValue": 1 } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeListUnionValue", + "documentation": "Deserializes a list union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"listValue\": [\"foo\", \"bar\"]\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a list union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeListUnionValue", "params": { "contents": { "listValue": [ @@ -575,18 +576,18 @@ "bar" ] } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeMapUnionValue", + "documentation": "Deserializes a map union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"mapValue\": {\n \"foo\": \"bar\",\n \"spam\": \"eggs\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a map union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeMapUnionValue", "params": { "contents": { "mapValue": { @@ -594,396 +595,400 @@ "spam": "eggs" } } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeStructureUnionValue", + "documentation": "Deserializes a structure union value", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a structure union value", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeStructureUnionValue", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeIgnoreType", "appliesTo": "client", + "documentation": "Ignores an unrecognized __type property", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"__type\": \"aws.protocoltests.json10#MyUnion\",\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ignores an unrecognized __type property", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeIgnoreType", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#awsJson1_0" + } }, { + "id": "AwsJson10DeserializeAllowNulls", "appliesTo": "client", + "documentation": "Allows for `: null` to be set for all unset fields", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"contents\": {\n \"stringValue\": null,\n \"booleanValue\": null,\n \"numberValue\": null,\n \"blobValue\": null,\n \"timestampValue\": null,\n \"enumValue\": null,\n \"intEnumValue\": null,\n \"listValue\": null,\n \"mapValue\": null,\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Allows for `: null` to be set for all unset fields", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10DeserializeAllowNulls", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#awsJson1_0" + } } ] }, "aws.protocoltests.json10#NoInputAndNoOutput": { "requests": [ { - "body": "{}", - "bodyMediaType": "application/json", + "id": "AwsJson10MustAlwaysSendEmptyJsonPayload", "documentation": "Clients must always send an empty JSON object payload for\noperations with no input (that is, `{}`). While AWS service\nimplementations support requests with no payload or requests\nthat send `{}`, always sending `{}` from the client is\npreferred for forward compatibility in case input is ever\nadded to an operation.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.NoInputAndNoOutput" }, - "id": "AwsJson10MustAlwaysSendEmptyJsonPayload", - "method": "POST", - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + "uri": "/", + "body": "{}", + "bodyMediaType": "application/json" } ], "responses": [ { - "appliesTo": "client", + "id": "AwsJson10HandlesEmptyOutputShape", + "protocol": "aws.protocols#awsJson1_0", + "documentation": "When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.", "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10HandlesEmptyOutputShape", - "protocol": "aws.protocols#awsJson1_0" + "code": 200, + "appliesTo": "client" }, { - "appliesTo": "client", + "id": "AwsJson10HandlesUnexpectedJsonOutput", + "protocol": "aws.protocols#awsJson1_0", + "documentation": "This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.", "body": "{\n \"foo\": true\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10HandlesUnexpectedJsonOutput", - "protocol": "aws.protocols#awsJson1_0" + "code": 200, + "appliesTo": "client" }, { - "body": "", - "code": 200, + "id": "AwsJson10ServiceRespondsWithNoPayload", + "protocol": "aws.protocols#awsJson1_0", "documentation": "When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.", + "body": "", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ServiceRespondsWithNoPayload", - "protocol": "aws.protocols#awsJson1_0" + "code": 200 } ] }, "aws.protocoltests.json10#NoInputAndOutput": { "requests": [ { - "body": "{}", - "bodyMediaType": "application/json", + "id": "AwsJson10NoInputAndOutput", "documentation": "A client should always send and empty JSON object payload.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.NoInputAndOutput" }, - "id": "AwsJson10NoInputAndOutput", - "method": "POST", - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + "uri": "/", + "body": "{}", + "bodyMediaType": "application/json" } ], "responses": [ { - "body": "{}", - "bodyMediaType": "application/json", - "code": 200, + "id": "AwsJson10NoInputAndOutput", "documentation": "Empty output always serializes an empty object payload.", + "protocol": "aws.protocols#awsJson1_0", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10NoInputAndOutput", - "protocol": "aws.protocols#awsJson1_0" + "code": 200, + "body": "{}", + "bodyMediaType": "application/json" } ] }, "aws.protocoltests.json10#OperationWithDefaults": { "requests": [ { + "id": "AwsJson10ClientPopulatesDefaultValuesInInput", + "documentation": "Client populates default values in input.", "appliesTo": "client", - "body": "{\n \"defaults\": {\n \"defaultString\": \"hi\",\n \"defaultBoolean\": true,\n \"defaultList\": [],\n \"defaultDocumentMap\": {},\n \"defaultDocumentString\": \"hi\",\n \"defaultDocumentBoolean\": true,\n \"defaultDocumentList\": [],\n \"defaultTimestamp\": 0,\n \"defaultBlob\": \"YWJj\",\n \"defaultByte\": 1,\n \"defaultShort\": 1,\n \"defaultInteger\": 10,\n \"defaultLong\": 100,\n \"defaultFloat\": 1.0,\n \"defaultDouble\": 1.0,\n \"defaultMap\": {},\n \"defaultEnum\": \"FOO\",\n \"defaultIntEnum\": 1,\n \"emptyString\": \"\",\n \"falseBoolean\": false,\n \"emptyBlob\": \"\",\n \"zeroByte\": 0,\n \"zeroShort\": 0,\n \"zeroInteger\": 0,\n \"zeroLong\": 0,\n \"zeroFloat\": 0.0,\n \"zeroDouble\": 0.0\n }\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client populates default values in input.", + "uri": "/", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientPopulatesDefaultValuesInInput", - "method": "POST", + "body": "{\n \"defaults\": {\n \"defaultString\": \"hi\",\n \"defaultBoolean\": true,\n \"defaultList\": [],\n \"defaultDocumentMap\": {},\n \"defaultDocumentString\": \"hi\",\n \"defaultDocumentBoolean\": true,\n \"defaultDocumentList\": [],\n \"defaultTimestamp\": 0,\n \"defaultBlob\": \"YWJj\",\n \"defaultByte\": 1,\n \"defaultShort\": 1,\n \"defaultInteger\": 10,\n \"defaultLong\": 100,\n \"defaultFloat\": 1.0,\n \"defaultDouble\": 1.0,\n \"defaultMap\": {},\n \"defaultEnum\": \"FOO\",\n \"defaultIntEnum\": 1,\n \"emptyString\": \"\",\n \"falseBoolean\": false,\n \"emptyBlob\": \"\",\n \"zeroByte\": 0,\n \"zeroShort\": 0,\n \"zeroInteger\": 0,\n \"zeroLong\": 0,\n \"zeroFloat\": 0.0,\n \"zeroDouble\": 0.0\n }\n}", "params": { "defaults": {} - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ], - "uri": "/" + } }, { + "id": "AwsJson10ClientSkipsTopLevelDefaultValuesInInput", + "documentation": "Client skips top level default values in input.", "appliesTo": "client", - "body": "{\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client skips top level default values in input.", + "uri": "/", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientSkipsTopLevelDefaultValuesInInput", - "method": "POST", - "params": {}, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ], - "uri": "/" + "body": "{\n}", + "params": {} }, { + "id": "AwsJson10ClientUsesExplicitlyProvidedMemberValuesOverDefaults", + "documentation": "Client uses explicitly provided member values over defaults", "appliesTo": "client", - "body": "{\n \"defaults\": {\n \"defaultString\": \"bye\",\n \"defaultBoolean\": true,\n \"defaultList\": [\"a\"],\n \"defaultDocumentMap\": {\"name\": \"Jack\"},\n \"defaultDocumentString\": \"bye\",\n \"defaultDocumentBoolean\": true,\n \"defaultDocumentList\": [\"b\"],\n \"defaultNullDocument\": \"notNull\",\n \"defaultTimestamp\": 1,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n }\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client uses explicitly provided member values over defaults", + "uri": "/", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientUsesExplicitlyProvidedMemberValuesOverDefaults", - "method": "POST", "params": { "defaults": { - "defaultBlob": "hi", + "defaultString": "bye", "defaultBoolean": true, - "defaultByte": 2, - "defaultDocumentBoolean": true, - "defaultDocumentList": [ - "b" + "defaultList": [ + "a" ], "defaultDocumentMap": { "name": "Jack" }, "defaultDocumentString": "bye", - "defaultDouble": 2.0, - "defaultEnum": "BAR", - "defaultFloat": 2.0, - "defaultIntEnum": 2, - "defaultInteger": 20, - "defaultList": [ - "a" + "defaultDocumentBoolean": true, + "defaultDocumentList": [ + "b" ], + "defaultNullDocument": "notNull", + "defaultTimestamp": 1, + "defaultBlob": "hi", + "defaultByte": 2, + "defaultShort": 2, + "defaultInteger": 20, "defaultLong": 200, + "defaultFloat": 2.0, + "defaultDouble": 2.0, "defaultMap": { "name": "Jack" }, - "defaultNullDocument": "notNull", - "defaultShort": 2, - "defaultString": "bye", - "defaultTimestamp": 1, - "emptyBlob": "hi", + "defaultEnum": "BAR", + "defaultIntEnum": 2, "emptyString": "foo", "falseBoolean": true, + "emptyBlob": "hi", "zeroByte": 1, - "zeroDouble": 1.0, - "zeroFloat": 1.0, + "zeroShort": 1, "zeroInteger": 1, "zeroLong": 1, - "zeroShort": 1 + "zeroFloat": 1.0, + "zeroDouble": 1.0 } }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ], - "uri": "/" + "body": "{\n \"defaults\": {\n \"defaultString\": \"bye\",\n \"defaultBoolean\": true,\n \"defaultList\": [\"a\"],\n \"defaultDocumentMap\": {\"name\": \"Jack\"},\n \"defaultDocumentString\": \"bye\",\n \"defaultDocumentBoolean\": true,\n \"defaultDocumentList\": [\"b\"],\n \"defaultNullDocument\": \"notNull\",\n \"defaultTimestamp\": 1,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n }\n}" }, { + "id": "AwsJson10ClientUsesExplicitlyProvidedValuesInTopLevel", + "documentation": "Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.", "appliesTo": "client", - "body": "{\n \"topLevelDefault\": \"hi\",\n \"otherTopLevelDefault\": 0\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.", + "uri": "/", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientUsesExplicitlyProvidedValuesInTopLevel", - "method": "POST", + "body": "{\n \"topLevelDefault\": \"hi\",\n \"otherTopLevelDefault\": 0\n}", "params": { - "otherTopLevelDefault": 0, - "topLevelDefault": "hi" - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ], - "uri": "/" + "topLevelDefault": "hi", + "otherTopLevelDefault": 0 + } }, { + "id": "AwsJson10ClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional", + "documentation": "Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.", "appliesTo": "client", - "body": "{\n \"clientOptionalDefaults\": {}\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.", + "uri": "/", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional", - "method": "POST", + "body": "{\n \"clientOptionalDefaults\": {}\n}", "params": { "clientOptionalDefaults": {} - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ], - "uri": "/" + } } ], "responses": [ { + "id": "AwsJson10ClientPopulatesDefaultsValuesWhenMissingInResponse", + "documentation": "Client populates default values when missing in response.", "appliesTo": "client", - "body": "{}", - "bodyMediaType": "application/json", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", "code": 200, - "documentation": "Client populates default values when missing in response.", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientPopulatesDefaultsValuesWhenMissingInResponse", + "body": "{}", "params": { - "defaultBlob": "abc", + "defaultString": "hi", "defaultBoolean": true, - "defaultByte": 1, - "defaultDocumentBoolean": true, - "defaultDocumentList": [], + "defaultList": [], "defaultDocumentMap": {}, "defaultDocumentString": "hi", - "defaultDouble": 1.0, - "defaultEnum": "FOO", - "defaultFloat": 1.0, - "defaultIntEnum": 1, + "defaultDocumentBoolean": true, + "defaultDocumentList": [], + "defaultTimestamp": 0, + "defaultBlob": "abc", + "defaultByte": 1, + "defaultShort": 1, "defaultInteger": 10, - "defaultList": [], "defaultLong": 100, + "defaultFloat": 1.0, + "defaultDouble": 1.0, "defaultMap": {}, - "defaultShort": 1, - "defaultString": "hi", - "defaultTimestamp": 0, - "emptyBlob": "", + "defaultEnum": "FOO", + "defaultIntEnum": 1, "emptyString": "", "falseBoolean": false, + "emptyBlob": "", "zeroByte": 0, - "zeroDouble": 0.0, - "zeroFloat": 0.0, + "zeroShort": 0, "zeroInteger": 0, "zeroLong": 0, - "zeroShort": 0 - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ] + "zeroFloat": 0.0, + "zeroDouble": 0.0 + } }, { + "id": "AwsJson10ClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse", + "documentation": "Client ignores default values if member values are present in the response.", "appliesTo": "client", - "body": "{\n \"defaultString\": \"bye\",\n \"defaultBoolean\": false,\n \"defaultList\": [\"a\"],\n \"defaultDocumentMap\": {\"name\": \"Jack\"},\n \"defaultDocumentString\": \"bye\",\n \"defaultDocumentBoolean\": false,\n \"defaultDocumentList\": [\"b\"],\n \"defaultNullDocument\": \"notNull\",\n \"defaultTimestamp\": 2,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n}", - "bodyMediaType": "application/json", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", "code": 200, - "documentation": "Client ignores default values if member values are present in the response.", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse", + "body": "{\n \"defaultString\": \"bye\",\n \"defaultBoolean\": false,\n \"defaultList\": [\"a\"],\n \"defaultDocumentMap\": {\"name\": \"Jack\"},\n \"defaultDocumentString\": \"bye\",\n \"defaultDocumentBoolean\": false,\n \"defaultDocumentList\": [\"b\"],\n \"defaultNullDocument\": \"notNull\",\n \"defaultTimestamp\": 2,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n}", "params": { - "defaultBlob": "hi", + "defaultString": "bye", "defaultBoolean": false, - "defaultByte": 2, - "defaultDocumentBoolean": false, - "defaultDocumentList": [ - "b" + "defaultList": [ + "a" ], "defaultDocumentMap": { "name": "Jack" }, "defaultDocumentString": "bye", - "defaultDouble": 2.0, - "defaultEnum": "BAR", - "defaultFloat": 2.0, - "defaultIntEnum": 2, - "defaultInteger": 20, - "defaultList": [ - "a" + "defaultDocumentBoolean": false, + "defaultDocumentList": [ + "b" ], + "defaultNullDocument": "notNull", + "defaultTimestamp": 2, + "defaultBlob": "hi", + "defaultByte": 2, + "defaultShort": 2, + "defaultInteger": 20, "defaultLong": 200, + "defaultFloat": 2.0, + "defaultDouble": 2.0, "defaultMap": { "name": "Jack" }, - "defaultNullDocument": "notNull", - "defaultShort": 2, - "defaultString": "bye", - "defaultTimestamp": 2, - "emptyBlob": "hi", + "defaultEnum": "BAR", + "defaultIntEnum": 2, "emptyString": "foo", "falseBoolean": true, + "emptyBlob": "hi", "zeroByte": 1, - "zeroDouble": 1.0, - "zeroFloat": 1.0, + "zeroShort": 1, "zeroInteger": 1, "zeroLong": 1, - "zeroShort": 1 - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ] + "zeroFloat": 1.0, + "zeroDouble": 1.0 + } } ] }, "aws.protocoltests.json10#OperationWithNestedStructure": { "requests": [ { + "id": "AwsJson10ClientPopulatesNestedDefaultValuesWhenMissing", + "documentation": "Client populates nested default values when missing.", "appliesTo": "client", - "body": "{\n \"topLevel\": {\n \"dialog\": {\n \"language\": \"en\",\n \"greeting\": \"hi\"\n },\n \"dialogList\": [\n {\n \"greeting\": \"hi\"\n },\n {\n \"greeting\": \"hi\",\n \"farewell\": {\n \"phrase\": \"bye\"\n }\n },\n {\n \"language\": \"it\",\n \"greeting\": \"ciao\",\n \"farewell\": {\n \"phrase\": \"arrivederci\"\n }\n }\n ],\n \"dialogMap\": {\n \"emptyDialog\": {\n \"greeting\": \"hi\"\n },\n \"partialEmptyDialog\": {\n \"language\": \"en\",\n \"greeting\": \"hi\",\n \"farewell\": {\n \"phrase\": \"bye\"\n }\n },\n \"nonEmptyDialog\": {\n \"greeting\": \"konnichiwa\",\n \"farewell\": {\n \"phrase\": \"sayonara\"\n }\n }\n }\n }\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client populates nested default values when missing.", + "uri": "/", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientPopulatesNestedDefaultValuesWhenMissing", - "method": "POST", + "body": "{\n \"topLevel\": {\n \"dialog\": {\n \"language\": \"en\",\n \"greeting\": \"hi\"\n },\n \"dialogList\": [\n {\n \"greeting\": \"hi\"\n },\n {\n \"greeting\": \"hi\",\n \"farewell\": {\n \"phrase\": \"bye\"\n }\n },\n {\n \"language\": \"it\",\n \"greeting\": \"ciao\",\n \"farewell\": {\n \"phrase\": \"arrivederci\"\n }\n }\n ],\n \"dialogMap\": {\n \"emptyDialog\": {\n \"greeting\": \"hi\"\n },\n \"partialEmptyDialog\": {\n \"language\": \"en\",\n \"greeting\": \"hi\",\n \"farewell\": {\n \"phrase\": \"bye\"\n }\n },\n \"nonEmptyDialog\": {\n \"greeting\": \"konnichiwa\",\n \"farewell\": {\n \"phrase\": \"sayonara\"\n }\n }\n }\n }\n}", "params": { "topLevel": { "dialog": { @@ -995,312 +1000,307 @@ "farewell": {} }, { + "language": "it", + "greeting": "ciao", "farewell": { "phrase": "arrivederci" - }, - "greeting": "ciao", - "language": "it" + } } ], "dialogMap": { "emptyDialog": {}, + "partialEmptyDialog": { + "language": "en", + "farewell": {} + }, "nonEmptyDialog": { + "greeting": "konnichiwa", "farewell": { "phrase": "sayonara" - }, - "greeting": "konnichiwa" - }, - "partialEmptyDialog": { - "farewell": {}, - "language": "en" + } } } } - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ], - "uri": "/" + } } ], "responses": [ { + "id": "AwsJson10ClientPopulatesNestedDefaultsWhenMissingInResponseBody", + "documentation": "Client populates nested default values when missing in response body.", "appliesTo": "client", - "body": "{\n \"dialog\": {\n \"language\": \"en\"\n },\n \"dialogList\": [\n {\n },\n {\n \"farewell\": {}\n },\n {\n \"language\": \"it\",\n \"greeting\": \"ciao\",\n \"farewell\": {\n \"phrase\": \"arrivederci\"\n }\n }\n ],\n \"dialogMap\": {\n \"emptyDialog\": {\n },\n \"partialEmptyDialog\": {\n \"language\": \"en\",\n \"farewell\": {}\n },\n \"nonEmptyDialog\": {\n \"greeting\": \"konnichiwa\",\n \"farewell\": {\n \"phrase\": \"sayonara\"\n }\n }\n }\n}", - "bodyMediaType": "application/json", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#awsJson1_0", "code": 200, - "documentation": "Client populates nested default values when missing in response body.", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientPopulatesNestedDefaultsWhenMissingInResponseBody", + "body": "{\n \"dialog\": {\n \"language\": \"en\"\n },\n \"dialogList\": [\n {\n },\n {\n \"farewell\": {}\n },\n {\n \"language\": \"it\",\n \"greeting\": \"ciao\",\n \"farewell\": {\n \"phrase\": \"arrivederci\"\n }\n }\n ],\n \"dialogMap\": {\n \"emptyDialog\": {\n },\n \"partialEmptyDialog\": {\n \"language\": \"en\",\n \"farewell\": {}\n },\n \"nonEmptyDialog\": {\n \"greeting\": \"konnichiwa\",\n \"farewell\": {\n \"phrase\": \"sayonara\"\n }\n }\n }\n}", "params": { "dialog": { - "greeting": "hi", - "language": "en" + "language": "en", + "greeting": "hi" }, "dialogList": [ { "greeting": "hi" }, { + "greeting": "hi", "farewell": { "phrase": "bye" - }, - "greeting": "hi" + } }, { + "language": "it", + "greeting": "ciao", "farewell": { "phrase": "arrivederci" - }, - "greeting": "ciao", - "language": "it" + } } ], "dialogMap": { "emptyDialog": { "greeting": "hi" }, - "nonEmptyDialog": { - "farewell": { - "phrase": "sayonara" - }, - "greeting": "konnichiwa" - }, "partialEmptyDialog": { + "language": "en", + "greeting": "hi", "farewell": { "phrase": "bye" - }, - "greeting": "hi", - "language": "en" + } + }, + "nonEmptyDialog": { + "greeting": "konnichiwa", + "farewell": { + "phrase": "sayonara" + } } } - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults" - ] + } } ] }, "aws.protocoltests.json10#OperationWithRequiredMembers": { "responses": [ { + "id": "AwsJson10ClientErrorCorrectsWhenServerFailsToSerializeRequiredValues", + "documentation": "Client error corrects when server fails to serialize required values.", "appliesTo": "client", - "body": "{}", - "bodyMediaType": "application/json", + "tags": [ + "defaults", + "error-correction" + ], + "protocol": "aws.protocols#awsJson1_0", "code": 200, - "documentation": "Client error corrects when server fails to serialize required values.", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientErrorCorrectsWhenServerFailsToSerializeRequiredValues", + "body": "{}", "params": { - "requiredBlob": "", + "requiredString": "", "requiredBoolean": false, + "requiredList": [], + "requiredTimestamp": 0, + "requiredBlob": "", "requiredByte": 0, - "requiredDouble": 0.0, - "requiredFloat": 0.0, + "requiredShort": 0, "requiredInteger": 0, - "requiredList": [], "requiredLong": 0, - "requiredMap": {}, - "requiredShort": 0, - "requiredString": "", - "requiredTimestamp": 0 - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults", - "error-correction" - ] + "requiredFloat": 0.0, + "requiredDouble": 0.0, + "requiredMap": {} + } } ] }, "aws.protocoltests.json10#OperationWithRequiredMembersWithDefaults": { "responses": [ { + "id": "AwsJson10ClientErrorCorrectsWithDefaultValuesWhenServerFailsToSerializeRequiredValues", + "documentation": "Client error corrects with default values when server fails to serialize required values.", "appliesTo": "client", - "body": "{}", - "bodyMediaType": "application/json", + "tags": [ + "defaults", + "error-correction" + ], + "protocol": "aws.protocols#awsJson1_0", "code": 200, - "documentation": "Client error corrects with default values when server fails to serialize required values.", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10ClientErrorCorrectsWithDefaultValuesWhenServerFailsToSerializeRequiredValues", + "body": "{}", "params": { - "requiredBlob": "blob", + "requiredString": "hi", "requiredBoolean": true, + "requiredList": [], + "requiredTimestamp": 1, + "requiredBlob": "blob", "requiredByte": 1, - "requiredDouble": 1.0, - "requiredEnum": "FOO", - "requiredFloat": 1.0, - "requiredIntEnum": 1, + "requiredShort": 1, "requiredInteger": 10, - "requiredList": [], "requiredLong": 100, + "requiredFloat": 1.0, + "requiredDouble": 1.0, "requiredMap": {}, - "requiredShort": 1, - "requiredString": "hi", - "requiredTimestamp": 1 - }, - "protocol": "aws.protocols#awsJson1_0", - "tags": [ - "defaults", - "error-correction" - ] + "requiredEnum": "FOO", + "requiredIntEnum": 1 + } } ] }, "aws.protocoltests.json10#PutWithContentEncoding": { "requests": [ { - "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", - "headers": { - "Content-Encoding": "gzip" - }, "id": "SDKAppliedContentEncoding_awsJson1_0", - "method": "POST", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", + "protocol": "aws.protocols#awsJson1_0", "params": { "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wc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4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" - }, - { - "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_0 protocol.\n", + "method": "POST", + "uri": "/", "headers": { "Content-Encoding": "gzip" - }, + } + }, + { "id": "SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0", - "method": "POST", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_0 protocol.\n", + "protocol": "aws.protocols#awsJson1_0", "params": { - "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9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4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + "method": "POST", + "uri": "/", + "headers": { + "Content-Encoding": "gzip" + } } ] }, "aws.protocoltests.json10#QueryIncompatibleOperation": { "requests": [ { - "body": "{}", - "bodyMediaType": "application/json", + "id": "NonQueryCompatibleAwsJson10ForbidsQueryModeHeader", "documentation": "The query mode header MUST NOT be set on non-query-compatible services.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.QueryIncompatibleOperation" }, - "id": "NonQueryCompatibleAwsJson10ForbidsQueryModeHeader", - "method": "POST", - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + "uri": "/", + "body": "{}", + "bodyMediaType": "application/json" } ] }, "aws.protocoltests.json10#SimpleScalarProperties": { "requests": [ { + "id": "AwsJson10SupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"floatValue\": \"NaN\",\n \"doubleValue\": \"NaN\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling NaN float values.", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.SimpleScalarProperties" }, - "id": "AwsJson10SupportsNaNFloatInputs", - "method": "POST", "params": { - "doubleValue": "NaN", - "floatValue": "NaN" - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + "floatValue": "NaN", + "doubleValue": "NaN" + } }, { + "id": "AwsJson10SupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"floatValue\": \"Infinity\",\n \"doubleValue\": \"Infinity\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling Infinity float values.", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.SimpleScalarProperties" }, - "id": "AwsJson10SupportsInfinityFloatInputs", - "method": "POST", "params": { - "doubleValue": "Infinity", - "floatValue": "Infinity" - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + "floatValue": "Infinity", + "doubleValue": "Infinity" + } }, { + "id": "AwsJson10SupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", + "uri": "/", "body": "{\n \"floatValue\": \"-Infinity\",\n \"doubleValue\": \"-Infinity\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling -Infinity float values.", "headers": { "Content-Type": "application/x-amz-json-1.0", "X-Amz-Target": "JsonRpc10.SimpleScalarProperties" }, - "id": "AwsJson10SupportsNegativeInfinityFloatInputs", - "method": "POST", "params": { - "doubleValue": "-Infinity", - "floatValue": "-Infinity" - }, - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } } ], "responses": [ { + "id": "AwsJson10SupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"floatValue\": \"NaN\",\n \"doubleValue\": \"NaN\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling NaN float values.", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10SupportsNaNFloatInputs", "params": { - "doubleValue": "NaN", - "floatValue": "NaN" - }, - "protocol": "aws.protocols#awsJson1_0" + "floatValue": "NaN", + "doubleValue": "NaN" + } }, { + "id": "AwsJson10SupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"floatValue\": \"Infinity\",\n \"doubleValue\": \"Infinity\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling Infinity float values.", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10SupportsInfinityFloatInputs", "params": { - "doubleValue": "Infinity", - "floatValue": "Infinity" - }, - "protocol": "aws.protocols#awsJson1_0" + "floatValue": "Infinity", + "doubleValue": "Infinity" + } }, { + "id": "AwsJson10SupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#awsJson1_0", + "code": 200, "body": "{\n \"floatValue\": \"-Infinity\",\n \"doubleValue\": \"-Infinity\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling -Infinity float values.", "headers": { "Content-Type": "application/x-amz-json-1.0" }, - "id": "AwsJson10SupportsNegativeInfinityFloatInputs", "params": { - "doubleValue": "-Infinity", - "floatValue": "-Infinity" - }, - "protocol": "aws.protocols#awsJson1_0" + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } } ] } diff --git a/scripts/codegen-output-py/models/vectors/aws-json-1-1.json b/scripts/codegen-output-py/models/vectors/aws-json-1-1.json index e0558a570..bc6d89378 100644 --- a/scripts/codegen-output-py/models/vectors/aws-json-1-1.json +++ b/scripts/codegen-output-py/models/vectors/aws-json-1-1.json @@ -2,380 +2,382 @@ "aws.protocoltests.json#ComplexError": { "responses": [ { - "body": "{\n \"__type\": \"ComplexError\",\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Foo\": \"bar\"\n }\n}", - "bodyMediaType": "application/json", - "code": 400, - "documentation": "Parses a complex error with no message member", - "headers": { - "Content-Type": "application/x-amz-json-1.1" - }, "id": "AwsJson11ComplexError", + "documentation": "Parses a complex error with no message member", + "protocol": "aws.protocols#awsJson1_1", "params": { + "TopLevel": "Top level", "Nested": { "Foo": "bar" - }, - "TopLevel": "Top level" + } + }, + "code": 400, + "headers": { + "Content-Type": "application/x-amz-json-1.1" }, - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"__type\": \"ComplexError\",\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Foo\": \"bar\"\n }\n}", + "bodyMediaType": "application/json" }, { - "body": "{\n \"__type\": \"ComplexError\"\n}", - "bodyMediaType": "application/json", + "id": "AwsJson11EmptyComplexError", + "protocol": "aws.protocols#awsJson1_1", "code": 400, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11EmptyComplexError", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"__type\": \"ComplexError\"\n}", + "bodyMediaType": "application/json" } ] }, "aws.protocoltests.json#DatetimeOffsets": { "responses": [ { - "appliesTo": "client", - "body": " {\n \"datetime\": \"2019-12-16T22:48:18-01:00\"\n }\n", - "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", - "headers": { - "Content-Type": "application/x-amz-json-1.1" - }, "id": "AwsJson11DateTimeWithNegativeOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, + "body": " {\n \"datetime\": \"2019-12-16T22:48:18-01:00\"\n }\n", "params": { "datetime": 1576540098 }, - "protocol": "aws.protocols#awsJson1_1" - }, - { - "appliesTo": "client", - "body": " {\n \"datetime\": \"2019-12-17T00:48:18+01:00\"\n }\n", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", "headers": { "Content-Type": "application/x-amz-json-1.1" }, + "appliesTo": "client" + }, + { "id": "AwsJson11DateTimeWithPositiveOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, + "body": " {\n \"datetime\": \"2019-12-17T00:48:18+01:00\"\n }\n", "params": { "datetime": 1576540098 }, - "protocol": "aws.protocols#awsJson1_1" + "bodyMediaType": "application/json", + "headers": { + "Content-Type": "application/x-amz-json-1.1" + }, + "appliesTo": "client" } ] }, "aws.protocoltests.json#EmptyOperation": { "requests": [ { + "id": "sends_requests_to_slash", + "protocol": "aws.protocols#awsJson1_1", "documentation": "Sends requests to /", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.EmptyOperation" }, - "id": "sends_requests_to_slash", "method": "POST", - "protocol": "aws.protocols#awsJson1_1", "uri": "/" }, { + "id": "includes_x_amz_target_and_content_type", + "protocol": "aws.protocols#awsJson1_1", "documentation": "Includes X-Amz-Target header and Content-Type", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.EmptyOperation" }, - "id": "includes_x_amz_target_and_content_type", "method": "POST", - "protocol": "aws.protocols#awsJson1_1", "uri": "/" }, { + "id": "json_1_1_client_sends_empty_payload_for_no_input_shape", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Clients must always send an empty JSON object payload for\noperations with no input (that is, `{}`). While AWS service\nimplementations support requests with no payload or requests\nthat send `{}`, always sending `{}` from the client is\npreferred for forward compatibility in case input is ever\nadded to an operation.", "body": "{}", "bodyMediaType": "application/json", - "documentation": "Clients must always send an empty JSON object payload for\noperations with no input (that is, `{}`). While AWS service\nimplementations support requests with no payload or requests\nthat send `{}`, always sending `{}` from the client is\npreferred for forward compatibility in case input is ever\nadded to an operation.", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.EmptyOperation" }, - "id": "json_1_1_client_sends_empty_payload_for_no_input_shape", "method": "POST", - "protocol": "aws.protocols#awsJson1_1", "uri": "/" } ], "responses": [ { - "appliesTo": "client", + "id": "handles_empty_output_shape", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.", "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "handles_empty_output_shape", - "protocol": "aws.protocols#awsJson1_1" + "code": 200, + "appliesTo": "client" }, { - "appliesTo": "client", + "id": "handles_unexpected_json_output", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.", "body": "{\n \"foo\": true\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "handles_unexpected_json_output", - "protocol": "aws.protocols#awsJson1_1" + "code": 200, + "appliesTo": "client" }, { - "body": "", - "code": 200, + "id": "json_1_1_service_responds_with_no_payload", + "protocol": "aws.protocols#awsJson1_1", "documentation": "When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.", + "body": "", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "json_1_1_service_responds_with_no_payload", - "protocol": "aws.protocols#awsJson1_1" + "code": 200 } ] }, "aws.protocoltests.json#EndpointOperation": { "requests": [ { - "body": "{}", + "id": "AwsJson11EndpointTrait", "documentation": "Operations can prepend to the given host if they define the\nendpoint trait.", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", + "body": "{}", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.EndpointOperation" }, "host": "example.com", - "id": "AwsJson11EndpointTrait", - "method": "POST", - "protocol": "aws.protocols#awsJson1_1", - "resolvedHost": "foo.example.com", - "uri": "/" + "resolvedHost": "foo.example.com" } ] }, "aws.protocoltests.json#EndpointWithHostLabelOperation": { "requests": [ { + "id": "AwsJson11EndpointTraitWithHostLabel", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\"label\": \"bar\"}", "bodyMediaType": "application/json", - "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.EndpointWithHostLabelOperation" }, "host": "example.com", - "id": "AwsJson11EndpointTraitWithHostLabel", - "method": "POST", + "resolvedHost": "foo.bar.example.com", "params": { "label": "bar" - }, - "protocol": "aws.protocols#awsJson1_1", - "resolvedHost": "foo.bar.example.com", - "uri": "/" + } } ] }, "aws.protocoltests.json#FooError": { "responses": [ { - "appliesTo": "client", - "code": 500, + "id": "AwsJson11FooErrorUsingXAmznErrorType", "documentation": "Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "X-Amzn-Errortype": "FooError" }, - "id": "AwsJson11FooErrorUsingXAmznErrorType", - "protocol": "aws.protocols#awsJson1_1" + "appliesTo": "client" }, { - "appliesTo": "client", - "code": 500, + "id": "AwsJson11FooErrorUsingXAmznErrorTypeWithUri", "documentation": "Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on ':' and take only the first half of the string. For example, 'ValidationException:http://internal.amazon.com/coral/com.amazon.coral.validate/'\nis to be interpreted as 'ValidationException'.\n\nFor an example service see Amazon Polly.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "X-Amzn-Errortype": "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" }, - "id": "AwsJson11FooErrorUsingXAmznErrorTypeWithUri", - "protocol": "aws.protocols#awsJson1_1" + "appliesTo": "client" }, { - "appliesTo": "client", - "code": 500, + "id": "AwsJson11FooErrorUsingXAmznErrorTypeWithUriAndNamespace", "documentation": "X-Amzn-Errortype might contain a URL and a namespace. Client should extract only the shape name. This is a pathalogical case that might not actually happen in any deployed AWS service.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "X-Amzn-Errortype": "aws.protocoltests.json#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" }, - "id": "AwsJson11FooErrorUsingXAmznErrorTypeWithUriAndNamespace", - "protocol": "aws.protocols#awsJson1_1" + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson11FooErrorUsingCode", "documentation": "This example uses the 'code' property in the output rather than X-Amzn-Errortype. Some services do this though it's preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level 'code' property.\n\nFor example service see Amazon S3 Glacier.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11FooErrorUsingCode", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"code\": \"FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"aws.protocoltests.json#FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson11FooErrorUsingCodeAndNamespace", "documentation": "Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after '#'.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11FooErrorUsingCodeAndNamespace", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"code\": \"aws.protocoltests.json#FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"aws.protocoltests.json#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson11FooErrorUsingCodeUriAndNamespace", "documentation": "Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after '#' and before \":\". This is a pathalogical case that might not occur in any deployed AWS service.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11FooErrorUsingCodeUriAndNamespace", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"code\": \"aws.protocoltests.json#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson11FooErrorWithDunderType", "documentation": "Some services serialize errors using __type.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11FooErrorWithDunderType", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"__type\": \"FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.json#FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson11FooErrorWithDunderTypeAndNamespace", "documentation": "Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after '#'.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11FooErrorWithDunderTypeAndNamespace", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"__type\": \"aws.protocoltests.json#FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.different.namespace#FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson11FooErrorWithDunderTypeAndDifferentNamespace", "documentation": "Because only the part after '#' is considered, an unrecognized namespace should not make a difference.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11FooErrorWithDunderTypeAndDifferentNamespace", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"__type\": \"aws.different.namespace#FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.json#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson11FooErrorWithDunderTypeUriAndNamespace", "documentation": "Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after '#' and before \":\". This is a pathalogical case that might not occur in any deployed AWS service.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11FooErrorWithDunderTypeUriAndNamespace", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"__type\": \"aws.protocoltests.json#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.json#FooError\",\n \"ErrorDetails\": [\n {\n \"__type\": \"com.amazon.internal#ErrorDetails\",\n \"reason\": \"Some reason\"\n }\n ]\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "AwsJson11FooErrorWithNestedTypeProperty", "documentation": "Some services serialize errors using __type, and if the response includes additional shapes that belong to a different namespace there'll be a nested __type property that must not be considered when determining which error to be surfaced.\n\nFor an example service see Amazon DynamoDB.", + "protocol": "aws.protocols#awsJson1_1", + "code": 500, "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11FooErrorWithNestedTypeProperty", - "protocol": "aws.protocols#awsJson1_1" + "body": "{\n \"__type\": \"aws.protocoltests.json#FooError\",\n \"ErrorDetails\": [\n {\n \"__type\": \"com.amazon.internal#ErrorDetails\",\n \"reason\": \"Some reason\"\n }\n ]\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" } ] }, "aws.protocoltests.json#FractionalSeconds": { "responses": [ { - "appliesTo": "client", + "id": "AwsJson11DateTimeWithFractionalSeconds", + "documentation": "Ensures that clients can correctly parse datetime timestamps with fractional seconds", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": " {\n \"datetime\": \"2000-01-02T20:34:56.123Z\"\n }\n", + "params": { + "datetime": 946845296.123 + }, "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that clients can correctly parse datetime timestamps with fractional seconds", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DateTimeWithFractionalSeconds", - "params": { - "datetime": 946845296.123 - }, - "protocol": "aws.protocols#awsJson1_1" + "appliesTo": "client" } ] }, "aws.protocoltests.json#HostWithPathOperation": { "requests": [ { - "appliesTo": "client", - "body": "{}", + "id": "AwsJson11HostWithPath", "documentation": "Custom endpoints supplied by users can have paths", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/custom/", + "body": "{}", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.HostWithPathOperation" }, "host": "example.com/custom", - "id": "AwsJson11HostWithPath", - "method": "POST", - "protocol": "aws.protocols#awsJson1_1", - "uri": "/custom/" + "appliesTo": "client" } ] }, "aws.protocoltests.json#InvalidGreeting": { "responses": [ { - "body": "{\n \"__type\": \"InvalidGreeting\",\n \"Message\": \"Hi\"\n}", - "bodyMediaType": "application/json", - "code": 400, - "documentation": "Parses simple JSON errors", - "headers": { - "Content-Type": "application/x-amz-json-1.1" - }, "id": "AwsJson11InvalidGreetingError", + "documentation": "Parses simple JSON errors", + "protocol": "aws.protocols#awsJson1_1", "params": { "Message": "Hi" }, - "protocol": "aws.protocols#awsJson1_1" + "code": 400, + "headers": { + "Content-Type": "application/x-amz-json-1.1" + }, + "body": "{\n \"__type\": \"InvalidGreeting\",\n \"Message\": \"Hi\"\n}", + "bodyMediaType": "application/json" } ] }, "aws.protocoltests.json#JsonEnums": { "requests": [ { - "body": "{\n \"fooEnum1\": \"Foo\",\n \"fooEnum2\": \"0\",\n \"fooEnum3\": \"1\",\n \"fooEnumList\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumSet\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumMap\": {\n \"hi\": \"Foo\",\n \"zero\": \"0\"\n }\n}", - "bodyMediaType": "application/json", + "id": "AwsJson11Enums", "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", + "body": "{\n \"fooEnum1\": \"Foo\",\n \"fooEnum2\": \"0\",\n \"fooEnum3\": \"1\",\n \"fooEnumList\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumSet\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumMap\": {\n \"hi\": \"Foo\",\n \"zero\": \"0\"\n }\n}", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonEnums" }, - "id": "AwsJson11Enums", - "method": "POST", + "bodyMediaType": "application/json", "params": { "fooEnum1": "Foo", "fooEnum2": "0", @@ -384,29 +386,28 @@ "Foo", "0" ], - "fooEnumMap": { - "hi": "Foo", - "zero": "0" - }, "fooEnumSet": [ "Foo", "0" - ] - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + ], + "fooEnumMap": { + "hi": "Foo", + "zero": "0" + } + } } ], "responses": [ { - "body": "{\n \"fooEnum1\": \"Foo\",\n \"fooEnum2\": \"0\",\n \"fooEnum3\": \"1\",\n \"fooEnumList\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumSet\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumMap\": {\n \"hi\": \"Foo\",\n \"zero\": \"0\"\n }\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "AwsJson11Enums", "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, + "body": "{\n \"fooEnum1\": \"Foo\",\n \"fooEnum2\": \"0\",\n \"fooEnum3\": \"1\",\n \"fooEnumList\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumSet\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumMap\": {\n \"hi\": \"Foo\",\n \"zero\": \"0\"\n }\n}", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11Enums", + "bodyMediaType": "application/json", "params": { "fooEnum1": "Foo", "fooEnum2": "0", @@ -415,31 +416,32 @@ "Foo", "0" ], - "fooEnumMap": { - "hi": "Foo", - "zero": "0" - }, "fooEnumSet": [ "Foo", "0" - ] - }, - "protocol": "aws.protocols#awsJson1_1" + ], + "fooEnumMap": { + "hi": "Foo", + "zero": "0" + } + } } ] }, "aws.protocoltests.json#JsonIntEnums": { "requests": [ { - "body": "{\n \"intEnum1\": 1,\n \"intEnum2\": 2,\n \"intEnum3\": 3,\n \"intEnumList\": [\n 1,\n 2\n ],\n \"intEnumSet\": [\n 1,\n 2\n ],\n \"intEnumMap\": {\n \"a\": 1,\n \"b\": 2\n }\n}", - "bodyMediaType": "application/json", + "id": "AwsJson11IntEnums", "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", + "body": "{\n \"intEnum1\": 1,\n \"intEnum2\": 2,\n \"intEnum3\": 3,\n \"intEnumList\": [\n 1,\n 2\n ],\n \"intEnumSet\": [\n 1,\n 2\n ],\n \"intEnumMap\": {\n \"a\": 1,\n \"b\": 2\n }\n}", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonIntEnums" }, - "id": "AwsJson11IntEnums", - "method": "POST", + "bodyMediaType": "application/json", "params": { "intEnum1": 1, "intEnum2": 2, @@ -448,30 +450,29 @@ 1, 2 ], - "intEnumMap": { - "a": 1, - "b": 2 - }, "intEnumSet": [ 1, 2 - ] - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + ], + "intEnumMap": { + "a": 1, + "b": 2 + } + } } ], "responses": [ { - "body": "{\n \"intEnum1\": 1,\n \"intEnum2\": 2,\n \"intEnum3\": 3,\n \"intEnumList\": [\n 1,\n 2\n ],\n \"intEnumSet\": [\n 1,\n 2\n ],\n \"intEnumMap\": {\n \"a\": 1,\n \"b\": 2\n }\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "AwsJson11IntEnums", "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, + "body": "{\n \"intEnum1\": 1,\n \"intEnum2\": 2,\n \"intEnum3\": 3,\n \"intEnumList\": [\n 1,\n 2\n ],\n \"intEnumSet\": [\n 1,\n 2\n ],\n \"intEnumMap\": {\n \"a\": 1,\n \"b\": 2\n }\n}", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonIntEnums" }, - "id": "AwsJson11IntEnums", + "bodyMediaType": "application/json", "params": { "intEnum1": 1, "intEnum2": 2, @@ -480,139 +481,140 @@ 1, 2 ], - "intEnumMap": { - "a": 1, - "b": 2 - }, "intEnumSet": [ 1, 2 - ] - }, - "protocol": "aws.protocols#awsJson1_1" + ], + "intEnumMap": { + "a": 1, + "b": 2 + } + } } ] }, "aws.protocoltests.json#JsonUnions": { "requests": [ { + "id": "AwsJson11SerializeStringUnionValue", + "documentation": "Serializes a string union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"stringValue\": \"foo\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a string union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeStringUnionValue", - "method": "POST", "params": { "contents": { "stringValue": "foo" } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } }, { + "id": "AwsJson11SerializeBooleanUnionValue", + "documentation": "Serializes a boolean union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"booleanValue\": true\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a boolean union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeBooleanUnionValue", - "method": "POST", "params": { "contents": { "booleanValue": true } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } }, { + "id": "AwsJson11SerializeNumberUnionValue", + "documentation": "Serializes a number union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"numberValue\": 1\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a number union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeNumberUnionValue", - "method": "POST", "params": { "contents": { "numberValue": 1 } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } }, { + "id": "AwsJson11SerializeBlobUnionValue", + "documentation": "Serializes a blob union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"blobValue\": \"Zm9v\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a blob union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeBlobUnionValue", - "method": "POST", "params": { "contents": { "blobValue": "foo" } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } }, { + "id": "AwsJson11SerializeTimestampUnionValue", + "documentation": "Serializes a timestamp union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"timestampValue\": 1398796238\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a timestamp union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeTimestampUnionValue", - "method": "POST", "params": { "contents": { "timestampValue": 1398796238 } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } }, { + "id": "AwsJson11SerializeEnumUnionValue", + "documentation": "Serializes an enum union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"enumValue\": \"Foo\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes an enum union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeEnumUnionValue", - "method": "POST", "params": { "contents": { "enumValue": "Foo" } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } }, { + "id": "AwsJson11SerializeListUnionValue", + "documentation": "Serializes a list union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"listValue\": [\"foo\", \"bar\"]\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a list union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeListUnionValue", - "method": "POST", "params": { "contents": { "listValue": [ @@ -620,20 +622,20 @@ "bar" ] } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } }, { + "id": "AwsJson11SerializeMapUnionValue", + "documentation": "Serializes a map union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"mapValue\": {\n \"foo\": \"bar\",\n \"spam\": \"eggs\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a map union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeMapUnionValue", - "method": "POST", "params": { "contents": { "mapValue": { @@ -641,137 +643,136 @@ "spam": "eggs" } } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } }, { + "id": "AwsJson11SerializeStructureUnionValue", + "documentation": "Serializes a structure union value", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"contents\": {\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a structure union value", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.JsonUnions" }, - "id": "AwsJson11SerializeStructureUnionValue", - "method": "POST", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + } } ], "responses": [ { + "id": "AwsJson11DeserializeStringUnionValue", + "documentation": "Deserializes a string union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"stringValue\": \"foo\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a string union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeStringUnionValue", "params": { "contents": { "stringValue": "foo" } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeBooleanUnionValue", + "documentation": "Deserializes a boolean union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"booleanValue\": true\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a boolean union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeBooleanUnionValue", "params": { "contents": { "booleanValue": true } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeNumberUnionValue", + "documentation": "Deserializes a number union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"numberValue\": 1\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a number union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeNumberUnionValue", "params": { "contents": { "numberValue": 1 } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeBlobUnionValue", + "documentation": "Deserializes a blob union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"blobValue\": \"Zm9v\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a blob union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeBlobUnionValue", "params": { "contents": { "blobValue": "foo" } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeTimestampUnionValue", + "documentation": "Deserializes a timestamp union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"timestampValue\": 1398796238\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a timestamp union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeTimestampUnionValue", "params": { "contents": { "timestampValue": 1398796238 } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeEnumUnionValue", + "documentation": "Deserializes an enum union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"enumValue\": \"Foo\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes an enum union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeEnumUnionValue", "params": { "contents": { "enumValue": "Foo" } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeListUnionValue", + "documentation": "Deserializes a list union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"listValue\": [\"foo\", \"bar\"]\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a list union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeListUnionValue", "params": { "contents": { "listValue": [ @@ -779,18 +780,18 @@ "bar" ] } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeMapUnionValue", + "documentation": "Deserializes a map union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"mapValue\": {\n \"foo\": \"bar\",\n \"spam\": \"eggs\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a map union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeMapUnionValue", "params": { "contents": { "mapValue": { @@ -798,307 +799,309 @@ "spam": "eggs" } } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeStructureUnionValue", + "documentation": "Deserializes a structure union value", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a structure union value", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeStructureUnionValue", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11DeserializeIgnoreType", "appliesTo": "client", + "documentation": "Ignores an unrecognized __type property", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"contents\": {\n \"__type\": \"aws.protocoltests.json10#MyUnion\",\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ignores an unrecognized __type property", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11DeserializeIgnoreType", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#awsJson1_1" + } } ] }, "aws.protocoltests.json#KitchenSinkOperation": { "requests": [ { - "body": "{\"String\":\"abc xyz\"}", - "bodyMediaType": "application/json", + "id": "serializes_string_shapes", + "protocol": "aws.protocols#awsJson1_1", "documentation": "Serializes string shapes", + "body": "{\"String\":\"abc xyz\"}", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_string_shapes", - "method": "POST", - "params": { - "String": "abc xyz" - }, - "protocol": "aws.protocols#awsJson1_1", + "bodyMediaType": "application/json", "requireHeaders": [ "Content-Length" ], + "params": { + "String": "abc xyz" + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_string_shapes_with_jsonvalue_trait", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes string shapes with jsonvalue trait", "body": "{\"JsonValue\":\"{\\\"string\\\":\\\"value\\\",\\\"number\\\":1234.5,\\\"boolTrue\\\":true,\\\"boolFalse\\\":false,\\\"array\\\":[1,2,3,4],\\\"object\\\":{\\\"key\\\":\\\"value\\\"},\\\"null\\\":null}\"}", "bodyMediaType": "application/json", - "documentation": "Serializes string shapes with jsonvalue trait", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_string_shapes_with_jsonvalue_trait", - "method": "POST", - "params": { - "JsonValue": "{\"string\":\"value\",\"number\":1234.5,\"boolTrue\":true,\"boolFalse\":false,\"array\":[1,2,3,4],\"object\":{\"key\":\"value\"},\"null\":null}" - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "JsonValue": "{\"string\":\"value\",\"number\":1234.5,\"boolTrue\":true,\"boolFalse\":false,\"array\":[1,2,3,4],\"object\":{\"key\":\"value\"},\"null\":null}" + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_integer_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes integer shapes", "body": "{\"Integer\":1234}", "bodyMediaType": "application/json", - "documentation": "Serializes integer shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_integer_shapes", - "method": "POST", - "params": { - "Integer": 1234 - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Integer": 1234 + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_long_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes long shapes", "body": "{\"Long\":999999999999}", "bodyMediaType": "application/json", - "documentation": "Serializes long shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_long_shapes", - "method": "POST", - "params": { - "Long": 999999999999 - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Long": 999999999999 + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_float_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes float shapes", "body": "{\"Float\":1234.5}", "bodyMediaType": "application/json", - "documentation": "Serializes float shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_float_shapes", - "method": "POST", - "params": { - "Float": 1234.5 - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Float": 1234.5 + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_double_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes double shapes", "body": "{\"Double\":1234.5}", "bodyMediaType": "application/json", - "documentation": "Serializes double shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_double_shapes", - "method": "POST", - "params": { - "Double": 1234.5 - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Double": 1234.5 + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_blob_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes blob shapes", "body": "{\"Blob\":\"YmluYXJ5LXZhbHVl\"}", "bodyMediaType": "application/json", - "documentation": "Serializes blob shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_blob_shapes", - "method": "POST", - "params": { - "Blob": "binary-value" - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Blob": "binary-value" + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_boolean_shapes_true", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes boolean shapes (true)", "body": "{\"Boolean\":true}", "bodyMediaType": "application/json", - "documentation": "Serializes boolean shapes (true)", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_boolean_shapes_true", - "method": "POST", - "params": { - "Boolean": true - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Boolean": true + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_boolean_shapes_false", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes boolean shapes (false)", "body": "{\"Boolean\":false}", "bodyMediaType": "application/json", - "documentation": "Serializes boolean shapes (false)", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_boolean_shapes_false", - "method": "POST", - "params": { - "Boolean": false - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Boolean": false + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_timestamp_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes timestamp shapes", "body": "{\"Timestamp\":946845296}", "bodyMediaType": "application/json", - "documentation": "Serializes timestamp shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_timestamp_shapes", - "method": "POST", - "params": { - "Timestamp": 946845296 - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Timestamp": 946845296 + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_timestamp_shapes_with_iso8601_timestampformat", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes timestamp shapes with iso8601 timestampFormat", "body": "{\"Iso8601Timestamp\":\"2000-01-02T20:34:56Z\"}", "bodyMediaType": "application/json", - "documentation": "Serializes timestamp shapes with iso8601 timestampFormat", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_timestamp_shapes_with_iso8601_timestampformat", - "method": "POST", - "params": { - "Iso8601Timestamp": 946845296 - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "Iso8601Timestamp": 946845296 + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_timestamp_shapes_with_httpdate_timestampformat", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes timestamp shapes with httpdate timestampFormat", "body": "{\"HttpdateTimestamp\":\"Sun, 02 Jan 2000 20:34:56 GMT\"}", "bodyMediaType": "application/json", - "documentation": "Serializes timestamp shapes with httpdate timestampFormat", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_timestamp_shapes_with_httpdate_timestampformat", - "method": "POST", - "params": { - "HttpdateTimestamp": 946845296 - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "HttpdateTimestamp": 946845296 + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_timestamp_shapes_with_unixtimestamp_timestampformat", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes timestamp shapes with unixTimestamp timestampFormat", "body": "{\"UnixTimestamp\":946845296}", "bodyMediaType": "application/json", - "documentation": "Serializes timestamp shapes with unixTimestamp timestampFormat", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_timestamp_shapes_with_unixtimestamp_timestampformat", - "method": "POST", - "params": { - "UnixTimestamp": 946845296 - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "UnixTimestamp": 946845296 + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_list_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes list shapes", "body": "{\"ListOfStrings\":[\"abc\",\"mno\",\"xyz\"]}", "bodyMediaType": "application/json", - "documentation": "Serializes list shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_list_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "ListOfStrings": [ "abc", @@ -1106,41 +1109,41 @@ "xyz" ] }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_empty_list_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes empty list shapes", "body": "{\"ListOfStrings\":[]}", "bodyMediaType": "application/json", - "documentation": "Serializes empty list shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_empty_list_shapes", - "method": "POST", - "params": { - "ListOfStrings": [] - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "ListOfStrings": [] + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_list_of_map_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes list of map shapes", "body": "{\"ListOfMapsOfStrings\":[{\"foo\":\"bar\"},{\"abc\":\"xyz\"},{\"red\":\"blue\"}]}", "bodyMediaType": "application/json", - "documentation": "Serializes list of map shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_list_of_map_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "ListOfMapsOfStrings": [ { @@ -1154,22 +1157,22 @@ } ] }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_list_of_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes list of structure shapes", "body": "{\"ListOfStructs\":[{\"Value\":\"abc\"},{\"Value\":\"mno\"},{\"Value\":\"xyz\"}]}", "bodyMediaType": "application/json", - "documentation": "Serializes list of structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_list_of_structure_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "ListOfStructs": [ { @@ -1183,22 +1186,22 @@ } ] }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_list_of_recursive_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes list of recursive structure shapes", "body": "{\"RecursiveList\":[{\"RecursiveList\":[{\"RecursiveList\":[{\"Integer\":123}]}]}]}", "bodyMediaType": "application/json", - "documentation": "Serializes list of recursive structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_list_of_recursive_structure_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "RecursiveList": [ { @@ -1214,63 +1217,63 @@ } ] }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_map_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes map shapes", "body": "{\"MapOfStrings\":{\"abc\":\"xyz\",\"mno\":\"hjk\"}}", "bodyMediaType": "application/json", - "documentation": "Serializes map shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_map_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "MapOfStrings": { "abc": "xyz", "mno": "hjk" } }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_empty_map_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes empty map shapes", "body": "{\"MapOfStrings\":{}}", "bodyMediaType": "application/json", - "documentation": "Serializes empty map shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_empty_map_shapes", - "method": "POST", - "params": { - "MapOfStrings": {} - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "MapOfStrings": {} + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_map_of_list_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes map of list shapes", "body": "{\"MapOfListsOfStrings\":{\"abc\":[\"abc\",\"xyz\"],\"mno\":[\"xyz\",\"abc\"]}}", "bodyMediaType": "application/json", - "documentation": "Serializes map of list shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_map_of_list_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "MapOfListsOfStrings": { "abc": [ @@ -1283,22 +1286,22 @@ ] } }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_map_of_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes map of structure shapes", "body": "{\"MapOfStructs\":{\"key1\":{\"Value\":\"value-1\"},\"key2\":{\"Value\":\"value-2\"}}}", "bodyMediaType": "application/json", - "documentation": "Serializes map of structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_map_of_structure_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "MapOfStructs": { "key1": { @@ -1309,22 +1312,22 @@ } } }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_map_of_recursive_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes map of recursive structure shapes", "body": "{\"RecursiveMap\":{\"key1\":{\"RecursiveMap\":{\"key2\":{\"RecursiveMap\":{\"key3\":{\"Boolean\":false}}}}}}}", "bodyMediaType": "application/json", - "documentation": "Serializes map of recursive structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_map_of_recursive_structure_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "RecursiveMap": { "key1": { @@ -1340,105 +1343,107 @@ } } }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes structure shapes", "body": "{\"SimpleStruct\":{\"Value\":\"abc\"}}", "bodyMediaType": "application/json", - "documentation": "Serializes structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_structure_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "SimpleStruct": { "Value": "abc" } }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_structure_members_with_locationname_traits", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes structure members with locationName traits", "body": "{\"StructWithJsonName\":{\"Value\":\"some-value\"}}", "bodyMediaType": "application/json", - "documentation": "Serializes structure members with locationName traits", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_structure_members_with_locationname_traits", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "StructWithJsonName": { "Value": "some-value" } }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" }, { + "id": "serializes_empty_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes empty structure shapes", "body": "{\"SimpleStruct\":{}}", "bodyMediaType": "application/json", - "documentation": "Serializes empty structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_empty_structure_shapes", - "method": "POST", - "params": { - "SimpleStruct": {} - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "SimpleStruct": {} + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_structure_which_have_no_members", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes structure which have no members", "body": "{\"EmptyStruct\":{}}", "bodyMediaType": "application/json", - "documentation": "Serializes structure which have no members", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_structure_which_have_no_members", - "method": "POST", - "params": { - "EmptyStruct": {} - }, - "protocol": "aws.protocols#awsJson1_1", "requireHeaders": [ "Content-Length" ], + "params": { + "EmptyStruct": {} + }, + "method": "POST", "uri": "/" }, { + "id": "serializes_recursive_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Serializes recursive structure shapes", "body": "{\"String\":\"top-value\",\"Boolean\":false,\"RecursiveStruct\":{\"String\":\"nested-value\",\"Boolean\":true,\"RecursiveList\":[{\"String\":\"string-only\"},{\"RecursiveStruct\":{\"MapOfStrings\":{\"color\":\"red\",\"size\":\"large\"}}}]}}", "bodyMediaType": "application/json", - "documentation": "Serializes recursive structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.KitchenSinkOperation" }, - "id": "serializes_recursive_structure_shapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { + "String": "top-value", "Boolean": false, "RecursiveStruct": { + "String": "nested-value", "Boolean": true, "RecursiveList": [ { @@ -1452,193 +1457,188 @@ } } } - ], - "String": "nested-value" - }, - "String": "top-value" + ] + } }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/" } ], "responses": [ { + "id": "parses_operations_with_empty_json_bodies", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses operations with empty JSON bodies", "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses operations with empty JSON bodies", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_operations_with_empty_json_bodies", - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_string_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses string shapes", "body": "{\"String\":\"string-value\"}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses string shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_string_shapes", "params": { "String": "string-value" }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_integer_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses integer shapes", "body": "{\"Integer\":1234}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses integer shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_integer_shapes", "params": { "Integer": 1234 }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_long_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses long shapes", "body": "{\"Long\":1234567890123456789}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses long shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_long_shapes", "params": { "Long": 1234567890123456789 }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_float_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses float shapes", "body": "{\"Float\":1234.5}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses float shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_float_shapes", "params": { "Float": 1234.5 }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_double_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses double shapes", "body": "{\"Double\":123456789.12345679}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses double shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_double_shapes", "params": { "Double": 123456789.12345679 }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_boolean_shapes_true", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses boolean shapes (true)", "body": "{\"Boolean\":true}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses boolean shapes (true)", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_boolean_shapes_true", "params": { "Boolean": true }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_boolean_false", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses boolean (false)", "body": "{\"Boolean\":false}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses boolean (false)", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_boolean_false", "params": { "Boolean": false }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_blob_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses blob shapes", "body": "{\"Blob\":\"YmluYXJ5LXZhbHVl\"}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses blob shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_blob_shapes", "params": { "Blob": "binary-value" }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_timestamp_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses timestamp shapes", "body": "{\"Timestamp\":946845296}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses timestamp shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_timestamp_shapes", "params": { "Timestamp": 946845296 }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_iso8601_timestamps", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses iso8601 timestamps", "body": "{\"Iso8601Timestamp\":\"2000-01-02T20:34:56Z\"}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses iso8601 timestamps", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_iso8601_timestamps", "params": { "Iso8601Timestamp": 946845296 }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_httpdate_timestamps", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses httpdate timestamps", "body": "{\"HttpdateTimestamp\":\"Sun, 02 Jan 2000 20:34:56 GMT\"}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses httpdate timestamps", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_httpdate_timestamps", "params": { "HttpdateTimestamp": 946845296 }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_list_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses list shapes", "body": "{\"ListOfStrings\":[\"abc\",\"mno\",\"xyz\"]}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses list shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_list_shapes", "params": { "ListOfStrings": [ "abc", @@ -1646,17 +1646,17 @@ "xyz" ] }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_list_of_map_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses list of map shapes", "body": "{\"ListOfMapsOfStrings\":[{\"size\":\"large\"},{\"color\":\"red\"}]}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses list of map shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_list_of_map_shapes", "params": { "ListOfMapsOfStrings": [ { @@ -1667,17 +1667,17 @@ } ] }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_list_of_list_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses list of list shapes", "body": "{\"ListOfLists\":[[\"abc\",\"mno\",\"xyz\"],[\"hjk\",\"qrs\",\"tuv\"]]}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses list of list shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_list_of_list_shapes", "params": { "ListOfLists": [ [ @@ -1692,17 +1692,17 @@ ] ] }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_list_of_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses list of structure shapes", "body": "{\"ListOfStructs\":[{\"Value\":\"value-1\"},{\"Value\":\"value-2\"}]}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses list of structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_list_of_structure_shapes", "params": { "ListOfStructs": [ { @@ -1713,17 +1713,17 @@ } ] }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_list_of_recursive_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses list of recursive structure shapes", "body": "{\"RecursiveList\":[{\"RecursiveList\":[{\"RecursiveList\":[{\"String\":\"value\"}]}]}]}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses list of recursive structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_list_of_recursive_structure_shapes", "params": { "RecursiveList": [ { @@ -1739,101 +1739,101 @@ } ] }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_map_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses map shapes", "body": "{\"MapOfStrings\":{\"size\":\"large\",\"color\":\"red\"}}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses map shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_map_shapes", "params": { "MapOfStrings": { - "color": "red", - "size": "large" + "size": "large", + "color": "red" } }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_map_of_list_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses map of list shapes", "body": "{\"MapOfListsOfStrings\":{\"sizes\":[\"large\",\"small\"],\"colors\":[\"red\",\"green\"]}}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses map of list shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_map_of_list_shapes", "params": { "MapOfListsOfStrings": { - "colors": [ - "red", - "green" - ], "sizes": [ "large", "small" + ], + "colors": [ + "red", + "green" ] } }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_map_of_map_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses map of map shapes", "body": "{\"MapOfMaps\":{\"sizes\":{\"large\":\"L\",\"medium\":\"M\"},\"colors\":{\"red\":\"R\",\"blue\":\"B\"}}}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses map of map shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_map_of_map_shapes", "params": { "MapOfMaps": { - "colors": { - "blue": "B", - "red": "R" - }, "sizes": { "large": "L", "medium": "M" + }, + "colors": { + "red": "R", + "blue": "B" } } }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_map_of_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses map of structure shapes", "body": "{\"MapOfStructs\":{\"size\":{\"Value\":\"small\"},\"color\":{\"Value\":\"red\"}}}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses map of structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_map_of_structure_shapes", "params": { "MapOfStructs": { - "color": { - "Value": "red" - }, "size": { "Value": "small" + }, + "color": { + "Value": "red" } } }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_map_of_recursive_structure_shapes", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses map of recursive structure shapes", "body": "{\"RecursiveMap\":{\"key-1\":{\"RecursiveMap\":{\"key-2\":{\"RecursiveMap\":{\"key-3\":{\"String\":\"value\"}}}}}}}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses map of recursive structure shapes", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_map_of_recursive_structure_shapes", "params": { "RecursiveMap": { "key-1": { @@ -1849,87 +1849,87 @@ } } }, - "protocol": "aws.protocols#awsJson1_1" + "code": 200 }, { + "id": "parses_the_request_id_from_the_response", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Parses the request id from the response", "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Parses the request id from the response", "headers": { - "Content-Type": "application/x-amz-json-1.1", - "X-Amzn-Requestid": "amazon-uniq-request-id" + "X-Amzn-Requestid": "amazon-uniq-request-id", + "Content-Type": "application/x-amz-json-1.1" }, - "id": "parses_the_request_id_from_the_response", - "protocol": "aws.protocols#awsJson1_1" + "code": 200 } ] }, "aws.protocoltests.json#NullOperation": { "requests": [ { - "appliesTo": "client", + "id": "AwsJson11StructuresDontSerializeNullValues", + "documentation": "Null structure values are dropped", + "protocol": "aws.protocols#awsJson1_1", "body": "{}", "bodyMediaType": "application/json", - "documentation": "Null structure values are dropped", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.NullOperation" }, - "id": "AwsJson11StructuresDontSerializeNullValues", - "method": "POST", "params": { "string": null }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + "method": "POST", + "uri": "/", + "appliesTo": "client" } ], "responses": [ { - "appliesTo": "client", + "id": "AwsJson11StructuresDontDeserializeNullValues", + "documentation": "Null structure values are dropped", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"string\": null\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Null structure values are dropped", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11StructuresDontDeserializeNullValues", "params": {}, - "protocol": "aws.protocols#awsJson1_1" + "appliesTo": "client" } ] }, "aws.protocoltests.json#OperationWithOptionalInputOutput": { "requests": [ { + "id": "can_call_operation_with_no_input_or_output", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Can call operations with no input or output", "body": "{}", "bodyMediaType": "application/json", - "documentation": "Can call operations with no input or output", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.OperationWithOptionalInputOutput" }, - "id": "can_call_operation_with_no_input_or_output", "method": "POST", - "protocol": "aws.protocols#awsJson1_1", "uri": "/" }, { + "id": "can_call_operation_with_optional_input", + "protocol": "aws.protocols#awsJson1_1", + "documentation": "Can invoke operations with optional input", "body": "{\"Value\":\"Hi\"}", "bodyMediaType": "application/json", - "documentation": "Can invoke operations with optional input", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.OperationWithOptionalInputOutput" }, - "id": "can_call_operation_with_optional_input", - "method": "POST", "params": { "Value": "Hi" }, - "protocol": "aws.protocols#awsJson1_1", + "method": "POST", "uri": "/" } ] @@ -1937,250 +1937,250 @@ "aws.protocoltests.json#PutAndGetInlineDocuments": { "requests": [ { + "id": "PutAndGetInlineDocumentsInput", + "documentation": "Serializes inline documents in a JSON request.", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"inlineDocument\": {\"foo\": \"bar\"}\n}", "bodyMediaType": "application/json", - "documentation": "Serializes inline documents in a JSON request.", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.PutAndGetInlineDocuments" }, - "id": "PutAndGetInlineDocumentsInput", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "inlineDocument": { "foo": "bar" } - }, - "protocol": "aws.protocols#awsJson1_1", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/" + } } ], "responses": [ { + "id": "PutAndGetInlineDocumentsInput", + "documentation": "Serializes inline documents in a JSON response.", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"inlineDocument\": {\"foo\": \"bar\"}\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes inline documents in a JSON response.", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "PutAndGetInlineDocumentsInput", "params": { "inlineDocument": { "foo": "bar" } - }, - "protocol": "aws.protocols#awsJson1_1" + } } ] }, "aws.protocoltests.json#PutWithContentEncoding": { "requests": [ { - "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", - "headers": { - "Content-Encoding": "gzip" - }, "id": "SDKAppliedContentEncoding_awsJson1_1", - "method": "POST", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", + "protocol": "aws.protocols#awsJson1_1", "params": { "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCN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0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" - }, - { - "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_1 protocol.\n", + "method": "POST", + "uri": "/", "headers": { "Content-Encoding": "gzip" - }, + } + }, + { "id": "SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1", - "method": "POST", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_1 protocol.\n", + "protocol": "aws.protocols#awsJson1_1", "params": { - "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqq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wDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + "method": "POST", + "uri": "/", + "headers": { + "Content-Encoding": "gzip" + } } ] }, "aws.protocoltests.json#SimpleScalarProperties": { "requests": [ { + "id": "AwsJson11SupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"floatValue\": \"NaN\",\n \"doubleValue\": \"NaN\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling NaN float values.", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.SimpleScalarProperties" }, - "id": "AwsJson11SupportsNaNFloatInputs", - "method": "POST", "params": { - "doubleValue": "NaN", - "floatValue": "NaN" - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + "floatValue": "NaN", + "doubleValue": "NaN" + } }, { + "id": "AwsJson11SupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"floatValue\": \"Infinity\",\n \"doubleValue\": \"Infinity\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling Infinity float values.", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.SimpleScalarProperties" }, - "id": "AwsJson11SupportsInfinityFloatInputs", - "method": "POST", "params": { - "doubleValue": "Infinity", - "floatValue": "Infinity" - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + "floatValue": "Infinity", + "doubleValue": "Infinity" + } }, { + "id": "AwsJson11SupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#awsJson1_1", + "method": "POST", + "uri": "/", "body": "{\n \"floatValue\": \"-Infinity\",\n \"doubleValue\": \"-Infinity\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling -Infinity float values.", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.SimpleScalarProperties" }, - "id": "AwsJson11SupportsNegativeInfinityFloatInputs", - "method": "POST", "params": { - "doubleValue": "-Infinity", - "floatValue": "-Infinity" - }, - "protocol": "aws.protocols#awsJson1_1", - "uri": "/" + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } } ], "responses": [ { + "id": "AwsJson11SupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"floatValue\": \"NaN\",\n \"doubleValue\": \"NaN\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling NaN float values.", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11SupportsNaNFloatInputs", "params": { - "doubleValue": "NaN", - "floatValue": "NaN" - }, - "protocol": "aws.protocols#awsJson1_1" + "floatValue": "NaN", + "doubleValue": "NaN" + } }, { + "id": "AwsJson11SupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"floatValue\": \"Infinity\",\n \"doubleValue\": \"Infinity\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling Infinity float values.", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11SupportsInfinityFloatInputs", "params": { - "doubleValue": "Infinity", - "floatValue": "Infinity" - }, - "protocol": "aws.protocols#awsJson1_1" + "floatValue": "Infinity", + "doubleValue": "Infinity" + } }, { + "id": "AwsJson11SupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"floatValue\": \"-Infinity\",\n \"doubleValue\": \"-Infinity\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling -Infinity float values.", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11SupportsNegativeInfinityFloatInputs", "params": { - "doubleValue": "-Infinity", - "floatValue": "-Infinity" - }, - "protocol": "aws.protocols#awsJson1_1" + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } } ] }, "aws.protocoltests.json#SparseNullsOperation": { "requests": [ { + "id": "AwsJson11SparseMapsSerializeNullValues", + "documentation": "Serializes null values in maps", + "protocol": "aws.protocols#awsJson1_1", "body": "{\n \"sparseStringMap\": {\n \"foo\": null\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes null values in maps", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.SparseNullsOperation" }, - "id": "AwsJson11SparseMapsSerializeNullValues", - "method": "POST", "params": { "sparseStringMap": { "foo": null } }, - "protocol": "aws.protocols#awsJson1_1", + "method": "POST", "uri": "/" }, { + "id": "AwsJson11SparseListsSerializeNull", + "documentation": "Serializes null values in lists", + "protocol": "aws.protocols#awsJson1_1", "body": "{\n \"sparseStringList\": [\n null\n ]\n}", "bodyMediaType": "application/json", - "documentation": "Serializes null values in lists", "headers": { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "JsonProtocol.SparseNullsOperation" }, - "id": "AwsJson11SparseListsSerializeNull", - "method": "POST", "params": { "sparseStringList": [ null ] }, - "protocol": "aws.protocols#awsJson1_1", + "method": "POST", "uri": "/" } ], "responses": [ { + "id": "AwsJson11SparseMapsDeserializeNullValues", + "documentation": "Deserializes null values in maps", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"sparseStringMap\": {\n \"foo\": null\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes null values in maps", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11SparseMapsDeserializeNullValues", "params": { "sparseStringMap": { "foo": null } - }, - "protocol": "aws.protocols#awsJson1_1" + } }, { + "id": "AwsJson11SparseListsDeserializeNull", + "documentation": "Deserializes null values in lists", + "protocol": "aws.protocols#awsJson1_1", + "code": 200, "body": "{\n \"sparseStringList\": [\n null\n ]\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes null values in lists", "headers": { "Content-Type": "application/x-amz-json-1.1" }, - "id": "AwsJson11SparseListsDeserializeNull", "params": { "sparseStringList": [ null ] - }, - "protocol": "aws.protocols#awsJson1_1" + } } ] } diff --git a/scripts/codegen-output-py/models/vectors/query-compatible-aws-json-1-0.json b/scripts/codegen-output-py/models/vectors/query-compatible-aws-json-1-0.json index 734fd63f5..be931ec7c 100644 --- a/scripts/codegen-output-py/models/vectors/query-compatible-aws-json-1-0.json +++ b/scripts/codegen-output-py/models/vectors/query-compatible-aws-json-1-0.json @@ -2,64 +2,64 @@ "aws.protocoltests.json10#CustomCodeError": { "responses": [ { - "body": "{\n \"__type\": \"aws.protocoltests.json10#CustomCodeError\",\n \"message\": \"Hi\"\n}", - "bodyMediaType": "application/json", - "code": 400, + "id": "QueryCompatibleAwsJson10CustomCodeError", "documentation": "Parses simple errors with query error code", + "protocol": "aws.protocols#awsJson1_0", + "params": { + "message": "Hi" + }, + "code": 400, "headers": { "Content-Type": "application/x-amz-json-1.0", "x-amzn-query-error": "Customized;Sender" }, - "id": "QueryCompatibleAwsJson10CustomCodeError", - "params": { - "message": "Hi" - }, - "protocol": "aws.protocols#awsJson1_0", + "body": "{\n \"__type\": \"aws.protocoltests.json10#CustomCodeError\",\n \"message\": \"Hi\"\n}", + "bodyMediaType": "application/json", + "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams", "vendorParams": { "code": "Customized", "type": "Sender" - }, - "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams" + } } ] }, "aws.protocoltests.json10#NoCustomCodeError": { "responses": [ { - "body": "{\n \"__type\": \"aws.protocoltests.json10#NoCustomCodeError\",\n \"message\": \"Hi\"\n}", - "bodyMediaType": "application/json", - "code": 400, - "documentation": "Parses simple errors with no query error code", - "headers": { - "Content-Type": "application/x-amz-json-1.0" - }, "id": "QueryCompatibleAwsJson10NoCustomCodeError", + "documentation": "Parses simple errors with no query error code", + "protocol": "aws.protocols#awsJson1_0", "params": { "message": "Hi" }, - "protocol": "aws.protocols#awsJson1_0", + "code": 400, + "headers": { + "Content-Type": "application/x-amz-json-1.0" + }, + "body": "{\n \"__type\": \"aws.protocoltests.json10#NoCustomCodeError\",\n \"message\": \"Hi\"\n}", + "bodyMediaType": "application/json", + "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams", "vendorParams": { "code": "NoCustomCodeError" - }, - "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams" + } } ] }, "aws.protocoltests.json10#QueryCompatibleOperation": { "requests": [ { - "body": "{}", - "bodyMediaType": "application/json", + "id": "QueryCompatibleAwsJson10CborSendsQueryModeHeader", "documentation": "Clients for query-compatible services MUST send the x-amzn-query-mode header.", + "protocol": "aws.protocols#awsJson1_0", + "method": "POST", "headers": { "Content-Type": "application/x-amz-json-1.0", - "X-Amz-Target": "QueryCompatibleJsonRpc10.QueryCompatibleOperation", - "x-amzn-query-mode": "true" + "x-amzn-query-mode": "true", + "X-Amz-Target": "QueryCompatibleJsonRpc10.QueryCompatibleOperation" }, - "id": "QueryCompatibleAwsJson10CborSendsQueryModeHeader", - "method": "POST", - "protocol": "aws.protocols#awsJson1_0", - "uri": "/" + "uri": "/", + "body": "{}", + "bodyMediaType": "application/json" } ] } diff --git a/scripts/codegen-output-py/models/vectors/rest-json-1.json b/scripts/codegen-output-py/models/vectors/rest-json-1.json index 6d3ea7bea..a6f7b26da 100644 --- a/scripts/codegen-output-py/models/vectors/rest-json-1.json +++ b/scripts/codegen-output-py/models/vectors/rest-json-1.json @@ -2,91 +2,132 @@ "aws.protocoltests.restjson#AllQueryStringTypes": { "requests": [ { - "body": "", - "documentation": "Serializes query string parameters with all supported types", "id": "RestJsonAllQueryStringTypes", + "documentation": "Serializes query string parameters with all supported types", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "String=Hello%20there", + "StringList=a", + "StringList=b", + "StringList=c", + "StringSet=a", + "StringSet=b", + "StringSet=c", + "Byte=1", + "Short=2", + "Integer=3", + "IntegerList=1", + "IntegerList=2", + "IntegerList=3", + "IntegerSet=1", + "IntegerSet=2", + "IntegerSet=3", + "Long=4", + "Float=1.1", + "Double=1.1", + "DoubleList=1.1", + "DoubleList=2.1", + "DoubleList=3.1", + "Boolean=true", + "BooleanList=true", + "BooleanList=false", + "BooleanList=true", + "Timestamp=1970-01-01T00%3A00%3A01Z", + "TimestampList=1970-01-01T00%3A00%3A01Z", + "TimestampList=1970-01-01T00%3A00%3A02Z", + "TimestampList=1970-01-01T00%3A00%3A03Z", + "Enum=Foo", + "EnumList=Foo", + "EnumList=Baz", + "EnumList=Bar", + "IntegerEnum=1", + "IntegerEnumList=1", + "IntegerEnumList=2", + "IntegerEnumList=3" + ], "params": { - "queryBoolean": true, - "queryBooleanList": [ - true, - false, - true + "queryString": "Hello there", + "queryStringList": [ + "a", + "b", + "c" + ], + "queryStringSet": [ + "a", + "b", + "c" ], "queryByte": 1, + "queryShort": 2, + "queryInteger": 3, + "queryIntegerList": [ + 1, + 2, + 3 + ], + "queryIntegerSet": [ + 1, + 2, + 3 + ], + "queryLong": 4, + "queryFloat": 1.1, "queryDouble": 1.1, "queryDoubleList": [ 1.1, 2.1, 3.1 ], + "queryBoolean": true, + "queryBooleanList": [ + true, + false, + true + ], + "queryTimestamp": 1, + "queryTimestampList": [ + 1, + 2, + 3 + ], "queryEnum": "Foo", "queryEnumList": [ "Foo", "Baz", "Bar" ], - "queryFloat": 1.1, - "queryInteger": 3, "queryIntegerEnum": 1, "queryIntegerEnumList": [ 1, 2, 3 ], - "queryIntegerList": [ - 1, - 2, - 3 - ], - "queryIntegerSet": [ - 1, - 2, - 3 - ], - "queryLong": 4, "queryParamsMapOfStringList": { - "Boolean": [ - "true" + "String": [ + "Hello there" ], - "BooleanList": [ - "true", - "false", - "true" + "StringList": [ + "a", + "b", + "c" + ], + "StringSet": [ + "a", + "b", + "c" ], "Byte": [ "1" ], - "Double": [ - "1.1" - ], - "DoubleList": [ - "1.1", - "2.1", - "3.1" - ], - "Enum": [ - "Foo" - ], - "EnumList": [ - "Foo", - "Baz", - "Bar" - ], - "Float": [ - "1.1" + "Short": [ + "2" ], "Integer": [ "3" ], - "IntegerEnum": [ - "1" - ], - "IntegerEnumList": [ - "1", - "2", - "3" - ], "IntegerList": [ "1", "2", @@ -100,21 +141,24 @@ "Long": [ "4" ], - "Short": [ - "2" + "Float": [ + "1.1" ], - "String": [ - "Hello there" + "Double": [ + "1.1" ], - "StringList": [ - "a", - "b", - "c" + "DoubleList": [ + "1.1", + "2.1", + "3.1" ], - "StringSet": [ - "a", - "b", - "c" + "Boolean": [ + "true" + ], + "BooleanList": [ + "true", + "false", + "true" ], "Timestamp": [ "1970-01-01T00:00:01Z" @@ -123,75 +167,37 @@ "1970-01-01T00:00:01Z", "1970-01-01T00:00:02Z", "1970-01-01T00:00:03Z" + ], + "Enum": [ + "Foo" + ], + "EnumList": [ + "Foo", + "Baz", + "Bar" + ], + "IntegerEnum": [ + "1" + ], + "IntegerEnumList": [ + "1", + "2", + "3" ] - }, - "queryShort": 2, - "queryString": "Hello there", - "queryStringList": [ - "a", - "b", - "c" - ], - "queryStringSet": [ - "a", - "b", - "c" - ], - "queryTimestamp": 1, - "queryTimestampList": [ - 1, - 2, - 3 - ] - }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "String=Hello%20there", - "StringList=a", - "StringList=b", - "StringList=c", - "StringSet=a", - "StringSet=b", - "StringSet=c", - "Byte=1", - "Short=2", - "Integer=3", - "IntegerList=1", - "IntegerList=2", - "IntegerList=3", - "IntegerSet=1", - "IntegerSet=2", - "IntegerSet=3", - "Long=4", - "Float=1.1", - "Double=1.1", - "DoubleList=1.1", - "DoubleList=2.1", - "DoubleList=3.1", - "Boolean=true", - "BooleanList=true", - "BooleanList=false", - "BooleanList=true", - "Timestamp=1970-01-01T00%3A00%3A01Z", - "TimestampList=1970-01-01T00%3A00%3A01Z", - "TimestampList=1970-01-01T00%3A00%3A02Z", - "TimestampList=1970-01-01T00%3A00%3A03Z", - "Enum=Foo", - "EnumList=Foo", - "EnumList=Baz", - "EnumList=Bar", - "IntegerEnum=1", - "IntegerEnumList=1", - "IntegerEnumList=2", - "IntegerEnumList=3" - ], - "uri": "/AllQueryStringTypesInput" + } + } }, { - "body": "", - "documentation": "Handles query string maps", "id": "RestJsonQueryStringMap", + "documentation": "Handles query string maps", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "QueryParamsStringKeyA=Foo", + "QueryParamsStringKeyB=Bar" + ], "params": { "queryParamsMapOfStringList": { "QueryParamsStringKeyA": [ @@ -201,331 +207,328 @@ "Bar" ] } - }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "QueryParamsStringKeyA=Foo", - "QueryParamsStringKeyB=Bar" - ], - "uri": "/AllQueryStringTypesInput" + } }, { - "body": "", - "documentation": "Handles escaping all required characters in the query string.", "id": "RestJsonQueryStringEscaping", + "documentation": "Handles escaping all required characters in the query string.", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9" + ], "params": { + "queryString": " %:/?#[]@!$&'()*+,;=\ud83d\ude39", "queryParamsMapOfStringList": { "String": [ " %:/?#[]@!$&'()*+,;=\ud83d\ude39" ] - }, - "queryString": " %:/?#[]@!$&'()*+,;=\ud83d\ude39" - }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9" - ], - "uri": "/AllQueryStringTypesInput" + } + } }, { - "body": "", - "documentation": "Supports handling NaN float query values.", "id": "RestJsonSupportsNaNFloatQueryValues", + "documentation": "Supports handling NaN float query values.", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "Float=NaN", + "Double=NaN" + ], "params": { - "queryDouble": "NaN", "queryFloat": "NaN", + "queryDouble": "NaN", "queryParamsMapOfStringList": { - "Double": [ + "Float": [ "NaN" ], - "Float": [ + "Double": [ "NaN" ] } - }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "Float=NaN", - "Double=NaN" - ], - "uri": "/AllQueryStringTypesInput" + } }, { - "body": "", - "documentation": "Supports handling Infinity float query values.", "id": "RestJsonSupportsInfinityFloatQueryValues", + "documentation": "Supports handling Infinity float query values.", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "Float=Infinity", + "Double=Infinity" + ], "params": { - "queryDouble": "Infinity", "queryFloat": "Infinity", + "queryDouble": "Infinity", "queryParamsMapOfStringList": { - "Double": [ + "Float": [ "Infinity" ], - "Float": [ + "Double": [ "Infinity" ] } - }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "Float=Infinity", - "Double=Infinity" - ], - "uri": "/AllQueryStringTypesInput" + } }, { - "body": "", - "documentation": "Supports handling -Infinity float query values.", "id": "RestJsonSupportsNegativeInfinityFloatQueryValues", + "documentation": "Supports handling -Infinity float query values.", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "Float=-Infinity", + "Double=-Infinity" + ], "params": { - "queryDouble": "-Infinity", "queryFloat": "-Infinity", + "queryDouble": "-Infinity", "queryParamsMapOfStringList": { - "Double": [ + "Float": [ "-Infinity" ], - "Float": [ + "Double": [ "-Infinity" ] } - }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "Float=-Infinity", - "Double=-Infinity" - ], - "uri": "/AllQueryStringTypesInput" + } }, { - "body": "", - "documentation": "Query values of 0 and false are serialized", "id": "RestJsonZeroAndFalseQueryValues", + "documentation": "Query values of 0 and false are serialized", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "Integer=0", + "Boolean=false" + ], "params": { - "queryBoolean": false, "queryInteger": 0, + "queryBoolean": false, "queryParamsMapOfStringList": { - "Boolean": [ - "false" - ], "Integer": [ "0" + ], + "Boolean": [ + "false" ] } - }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "Integer=0", - "Boolean=false" - ], - "uri": "/AllQueryStringTypesInput" + } } ] }, "aws.protocoltests.restjson#ComplexError": { "responses": [ { - "body": "{\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Fooooo\": \"bar\"\n }\n}", - "bodyMediaType": "application/json", - "code": 403, - "documentation": "Serializes a complex error with no message member", - "headers": { - "Content-Type": "application/json", - "X-Amzn-Errortype": "ComplexError", - "X-Header": "Header" - }, "id": "RestJsonComplexErrorWithNoMessage", + "documentation": "Serializes a complex error with no message member", + "protocol": "aws.protocols#restJson1", "params": { "Header": "Header", + "TopLevel": "Top level", "Nested": { "Foo": "bar" - }, - "TopLevel": "Top level" + } }, - "protocol": "aws.protocols#restJson1" - }, - { - "body": "{}", - "bodyMediaType": "application/json", "code": 403, "headers": { "Content-Type": "application/json", + "X-Header": "Header", "X-Amzn-Errortype": "ComplexError" }, + "body": "{\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Fooooo\": \"bar\"\n }\n}", + "bodyMediaType": "application/json" + }, + { "id": "RestJsonEmptyComplexErrorWithNoMessage", + "protocol": "aws.protocols#restJson1", "params": {}, - "protocol": "aws.protocols#restJson1" + "code": 403, + "headers": { + "Content-Type": "application/json", + "X-Amzn-Errortype": "ComplexError" + }, + "body": "{}", + "bodyMediaType": "application/json" } ] }, "aws.protocoltests.restjson#ConstantAndVariableQueryString": { "requests": [ { - "body": "", - "documentation": "Mixes constant and variable query string parameters", - "forbidQueryParams": [ - "maybeSet" - ], "id": "RestJsonConstantAndVariableQueryStringMissingOneValue", - "method": "GET", - "params": { - "baz": "bam" - }, + "documentation": "Mixes constant and variable query string parameters", "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/ConstantAndVariableQueryString", "queryParams": [ "foo=bar", "baz=bam" ], - "uri": "/ConstantAndVariableQueryString" + "forbidQueryParams": [ + "maybeSet" + ], + "body": "", + "params": { + "baz": "bam" + } }, { - "body": "", - "documentation": "Mixes constant and variable query string parameters", "id": "RestJsonConstantAndVariableQueryStringAllValues", - "method": "GET", - "params": { - "baz": "bam", - "maybeSet": "yes" - }, + "documentation": "Mixes constant and variable query string parameters", "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/ConstantAndVariableQueryString", "queryParams": [ "foo=bar", "baz=bam", "maybeSet=yes" ], - "uri": "/ConstantAndVariableQueryString" + "body": "", + "params": { + "baz": "bam", + "maybeSet": "yes" + } } ] }, "aws.protocoltests.restjson#ConstantQueryString": { "requests": [ { - "body": "", - "documentation": "Includes constant query string parameters", "id": "RestJsonConstantQueryString", - "method": "GET", - "params": { - "hello": "hi" - }, + "documentation": "Includes constant query string parameters", "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/ConstantQueryString/hi", "queryParams": [ "foo=bar", "hello" ], - "uri": "/ConstantQueryString/hi" + "body": "", + "params": { + "hello": "hi" + } } ] }, "aws.protocoltests.restjson#DatetimeOffsets": { "responses": [ { - "appliesTo": "client", - "body": " {\n \"datetime\": \"2019-12-16T22:48:18-01:00\"\n }\n", - "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", "id": "RestJsonDateTimeWithNegativeOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": " {\n \"datetime\": \"2019-12-16T22:48:18-01:00\"\n }\n", "params": { "datetime": 1576540098 }, - "protocol": "aws.protocols#restJson1" + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": " {\n \"datetime\": \"2019-12-17T00:48:18+01:00\"\n }\n", - "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", "id": "RestJsonDateTimeWithPositiveOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": " {\n \"datetime\": \"2019-12-17T00:48:18+01:00\"\n }\n", "params": { "datetime": 1576540098 }, - "protocol": "aws.protocols#restJson1" + "bodyMediaType": "application/json", + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#DocumentType": { "requests": [ { + "id": "DocumentTypeInputWithObject", + "documentation": "Serializes document types as part of the JSON request payload with no escaping.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/DocumentType", "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": {\n \"foo\": \"bar\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes document types as part of the JSON request payload with no escaping.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentTypeInputWithObject", - "method": "PUT", "params": { + "stringValue": "string", "documentValue": { "foo": "bar" - }, - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/DocumentType" + } + } }, { + "id": "DocumentInputWithString", + "documentation": "Serializes document types using a string.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/DocumentType", "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": \"hello\"\n}", "bodyMediaType": "application/json", - "documentation": "Serializes document types using a string.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentInputWithString", - "method": "PUT", "params": { - "documentValue": "hello", - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/DocumentType" + "stringValue": "string", + "documentValue": "hello" + } }, { + "id": "DocumentInputWithNumber", + "documentation": "Serializes document types using a number.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/DocumentType", "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": 10\n}", "bodyMediaType": "application/json", - "documentation": "Serializes document types using a number.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentInputWithNumber", - "method": "PUT", "params": { - "documentValue": 10, - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/DocumentType" + "stringValue": "string", + "documentValue": 10 + } }, { + "id": "DocumentInputWithBoolean", + "documentation": "Serializes document types using a boolean.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/DocumentType", "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": true\n}", "bodyMediaType": "application/json", - "documentation": "Serializes document types using a boolean.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentInputWithBoolean", - "method": "PUT", "params": { - "documentValue": true, - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/DocumentType" + "stringValue": "string", + "documentValue": true + } }, { + "id": "DocumentInputWithList", + "documentation": "Serializes document types using a list.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/DocumentType", "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": [\n true,\n \"hi\",\n [\n 1,\n 2\n ],\n {\n \"foo\": {\n \"baz\": [\n 3,\n 4\n ]\n }\n }\n ]\n}", "bodyMediaType": "application/json", - "documentation": "Serializes document types using a list.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentInputWithList", - "method": "PUT", "params": { + "stringValue": "string", "documentValue": [ true, "hi", @@ -541,1156 +544,1155 @@ ] } } - ], - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/DocumentType" + ] + } } ], "responses": [ { + "id": "DocumentOutput", + "documentation": "Serializes documents as part of the JSON response payload with no escaping.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": {\n \"foo\": \"bar\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes documents as part of the JSON response payload with no escaping.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentOutput", "params": { + "stringValue": "string", "documentValue": { "foo": "bar" - }, - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1" + } + } }, { + "id": "DocumentOutputString", + "documentation": "Document types can be JSON scalars too.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": \"hello\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Document types can be JSON scalars too.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentOutputString", "params": { - "documentValue": "hello", - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1" + "stringValue": "string", + "documentValue": "hello" + } }, { + "id": "DocumentOutputNumber", + "documentation": "Document types can be JSON scalars too.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": 10\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Document types can be JSON scalars too.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentOutputNumber", "params": { - "documentValue": 10, - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1" + "stringValue": "string", + "documentValue": 10 + } }, { + "id": "DocumentOutputBoolean", + "documentation": "Document types can be JSON scalars too.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": false\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Document types can be JSON scalars too.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentOutputBoolean", "params": { - "documentValue": false, - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1" + "stringValue": "string", + "documentValue": false + } }, { + "id": "DocumentOutputArray", + "documentation": "Document types can be JSON arrays.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringValue\": \"string\",\n \"documentValue\": [\n true,\n false\n ]\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Document types can be JSON arrays.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentOutputArray", "params": { + "stringValue": "string", "documentValue": [ true, false - ], - "stringValue": "string" - }, - "protocol": "aws.protocols#restJson1" + ] + } } ] }, "aws.protocoltests.restjson#DocumentTypeAsMapValue": { "requests": [ { + "id": "DocumentTypeAsMapValueInput", + "documentation": "Serializes a map that uses documents as the value.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/DocumentTypeAsMapValue", "body": "{\n \"docValuedMap\": {\n \"foo\": { \"f\": 1, \"o\": 2 },\n \"bar\": [ \"b\", \"a\", \"r\" ],\n \"baz\": \"BAZ\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a map that uses documents as the value.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentTypeAsMapValueInput", - "method": "PUT", "params": { "docValuedMap": { + "foo": { + "f": 1, + "o": 2 + }, "bar": [ "b", "a", "r" ], - "baz": "BAZ", - "foo": { - "f": 1, - "o": 2 - } + "baz": "BAZ" } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/DocumentTypeAsMapValue" + } } ], "responses": [ { + "id": "DocumentTypeAsMapValueOutput", + "documentation": "Serializes a map that uses documents as the value.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"docValuedMap\": {\n \"foo\": { \"f\": 1, \"o\": 2 },\n \"bar\": [ \"b\", \"a\", \"r\" ],\n \"baz\": \"BAZ\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes a map that uses documents as the value.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentTypeAsMapValueOutput", "params": { "docValuedMap": { + "foo": { + "f": 1, + "o": 2 + }, "bar": [ "b", "a", "r" ], - "baz": "BAZ", - "foo": { - "f": 1, - "o": 2 - } + "baz": "BAZ" } - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#DocumentTypeAsPayload": { "requests": [ { + "id": "DocumentTypeAsPayloadInput", + "documentation": "Serializes a document as the target of the httpPayload trait.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/DocumentTypeAsPayload", "body": "{\n \"foo\": \"bar\"\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a document as the target of the httpPayload trait.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentTypeAsPayloadInput", - "method": "PUT", "params": { "documentValue": { "foo": "bar" } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/DocumentTypeAsPayload" + } }, { + "id": "DocumentTypeAsPayloadInputString", + "documentation": "Serializes a document as the target of the httpPayload trait using a string.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/DocumentTypeAsPayload", "body": "\"hello\"", "bodyMediaType": "application/json", - "documentation": "Serializes a document as the target of the httpPayload trait using a string.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentTypeAsPayloadInputString", - "method": "PUT", "params": { "documentValue": "hello" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/DocumentTypeAsPayload" + } } ], "responses": [ { + "id": "DocumentTypeAsPayloadOutput", + "documentation": "Serializes a document as the target of the httpPayload trait.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"foo\": \"bar\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes a document as the target of the httpPayload trait.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentTypeAsPayloadOutput", "params": { "documentValue": { "foo": "bar" } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "DocumentTypeAsPayloadOutputString", + "documentation": "Serializes a document as a payload string.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "\"hello\"", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes a document as a payload string.", "headers": { "Content-Type": "application/json" }, - "id": "DocumentTypeAsPayloadOutputString", "params": { "documentValue": "hello" - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#EmptyInputAndEmptyOutput": { "requests": [ { - "body": "", - "documentation": "Clients should not serialize a JSON payload when no parameters\nare given that are sent in the body. A service will tolerate\nclients that omit a payload or that send a JSON object.", "id": "RestJsonEmptyInputAndEmptyOutput", - "method": "POST", + "documentation": "Clients should not serialize a JSON payload when no parameters\nare given that are sent in the body. A service will tolerate\nclients that omit a payload or that send a JSON object.", "protocol": "aws.protocols#restJson1", - "uri": "/EmptyInputAndEmptyOutput" + "method": "POST", + "uri": "/EmptyInputAndEmptyOutput", + "body": "" } ], "responses": [ { - "body": "{}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RestJsonEmptyInputAndEmptyOutput", "documentation": "As of January 2021, server implementations are expected to\nrespond with a JSON object regardless of if the output\nparameters are empty.", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonEmptyInputAndEmptyOutput", - "protocol": "aws.protocols#restJson1" + "body": "{}", + "bodyMediaType": "application/json" }, { - "appliesTo": "client", - "body": "", - "code": 200, - "documentation": "This test ensures that clients can gracefully handle\nsituations where a service omits a JSON payload entirely.", "id": "RestJsonEmptyInputAndEmptyOutputJsonObjectOutput", - "protocol": "aws.protocols#restJson1" + "documentation": "This test ensures that clients can gracefully handle\nsituations where a service omits a JSON payload entirely.", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": "", + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#EndpointOperation": { "requests": [ { - "body": "", - "documentation": "Operations can prepend to the given host if they define the\nendpoint trait.", - "host": "example.com", "id": "RestJsonEndpointTrait", - "method": "POST", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait.", "protocol": "aws.protocols#restJson1", - "resolvedHost": "foo.example.com", - "uri": "/EndpointOperation" + "method": "POST", + "uri": "/EndpointOperation", + "body": "", + "host": "example.com", + "resolvedHost": "foo.example.com" } ] }, "aws.protocoltests.restjson#EndpointWithHostLabelOperation": { "requests": [ { + "id": "RestJsonEndpointTraitWithHostLabel", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/EndpointWithHostLabelOperation", "body": "{\"label\": \"bar\"}", "bodyMediaType": "application/json", - "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", "host": "example.com", - "id": "RestJsonEndpointTraitWithHostLabel", - "method": "POST", + "resolvedHost": "foo.bar.example.com", "params": { "label": "bar" - }, - "protocol": "aws.protocols#restJson1", - "resolvedHost": "foo.bar.example.com", - "uri": "/EndpointWithHostLabelOperation" + } } ] }, "aws.protocoltests.restjson#FooError": { "responses": [ { - "appliesTo": "client", - "code": 500, + "id": "RestJsonFooErrorUsingXAmznErrorType", "documentation": "Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "X-Amzn-Errortype": "FooError" }, - "id": "RestJsonFooErrorUsingXAmznErrorType", - "protocol": "aws.protocols#restJson1" + "appliesTo": "client" }, { - "appliesTo": "client", - "code": 500, + "id": "RestJsonFooErrorUsingXAmznErrorTypeWithUri", "documentation": "Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on ':' and take only the first half of the string. For example, 'ValidationException:http://internal.amazon.com/coral/com.amazon.coral.validate/'\nis to be interpreted as 'ValidationException'.\n\nFor an example service see Amazon Polly.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "X-Amzn-Errortype": "FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" }, - "id": "RestJsonFooErrorUsingXAmznErrorTypeWithUri", - "protocol": "aws.protocols#restJson1" + "appliesTo": "client" }, { - "appliesTo": "client", - "code": 500, + "id": "RestJsonFooErrorUsingXAmznErrorTypeWithUriAndNamespace", "documentation": "X-Amzn-Errortype might contain a URL and a namespace. Client should extract only the shape name. This is a pathalogical case that might not actually happen in any deployed AWS service.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "X-Amzn-Errortype": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" }, - "id": "RestJsonFooErrorUsingXAmznErrorTypeWithUriAndNamespace", - "protocol": "aws.protocols#restJson1" + "appliesTo": "client" }, { - "appliesTo": "client", - "code": 500, + "id": "RestJsonFooErrorUsingXAmznErrorTypeWithUriAndDifferentNamespace", "documentation": "Because namespace and URL are ignored, an unrecognized namespace should not make a difference.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "X-Amzn-Errortype": "aws.different.namespace#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/" }, - "id": "RestJsonFooErrorUsingXAmznErrorTypeWithUriAndDifferentNamespace", - "protocol": "aws.protocols#restJson1" + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "RestJsonFooErrorUsingCode", "documentation": "This example uses the 'code' property in the output rather than X-Amzn-Errortype. Some services do this though it's preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level 'code' property.\n\nFor example service see Amazon S3 Glacier.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonFooErrorUsingCode", - "protocol": "aws.protocols#restJson1" + "body": "{\n \"code\": \"FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"aws.protocoltests.restjson#FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "RestJsonFooErrorUsingCodeAndNamespace", "documentation": "Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after '#'.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonFooErrorUsingCodeAndNamespace", - "protocol": "aws.protocols#restJson1" + "body": "{\n \"code\": \"aws.protocoltests.restjson#FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"code\": \"aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "RestJsonFooErrorUsingCodeUriAndNamespace", "documentation": "Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after '#' and before \":\". This is a pathalogical case that might not occur in any deployed AWS service.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonFooErrorUsingCodeUriAndNamespace", - "protocol": "aws.protocols#restJson1" + "body": "{\n \"code\": \"aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "RestJsonFooErrorWithDunderType", "documentation": "Some services serialize errors using __type.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonFooErrorWithDunderType", - "protocol": "aws.protocols#restJson1" + "body": "{\n \"__type\": \"FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.restjson#FooError\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "RestJsonFooErrorWithDunderTypeAndNamespace", "documentation": "Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after '#'.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonFooErrorWithDunderTypeAndNamespace", - "protocol": "aws.protocols#restJson1" + "body": "{\n \"__type\": \"aws.protocoltests.restjson#FooError\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "RestJsonFooErrorWithDunderTypeUriAndNamespace", "documentation": "Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after '#' and before \":\". This is a pathalogical case that might not occur in any deployed AWS service.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonFooErrorWithDunderTypeUriAndNamespace", - "protocol": "aws.protocols#restJson1" + "body": "{\n \"__type\": \"aws.protocoltests.restjson#FooError:http://internal.amazon.com/coral/com.amazon.coral.validate/\"\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "{\n \"__type\": \"aws.protocoltests.restjson#FooError\",\n \"ErrorDetails\": [\n {\n \"__type\": \"com.amazon.internal#ErrorDetails\",\n \"reason\": \"Some reason\"\n }\n ]\n}", - "bodyMediaType": "application/json", - "code": 500, + "id": "RestJsonFooErrorWithNestedTypeProperty", "documentation": "Some services serialize errors using __type, and if the response includes additional shapes that belong to a different namespace there'll be a nested __type property that must not be considered when determining which error to be surfaced.\n\nFor an example service see Amazon DynamoDB.", + "protocol": "aws.protocols#restJson1", + "code": 500, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonFooErrorWithNestedTypeProperty", - "protocol": "aws.protocols#restJson1" + "body": "{\n \"__type\": \"aws.protocoltests.restjson#FooError\",\n \"ErrorDetails\": [\n {\n \"__type\": \"com.amazon.internal#ErrorDetails\",\n \"reason\": \"Some reason\"\n }\n ]\n}", + "bodyMediaType": "application/json", + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#FractionalSeconds": { "responses": [ { - "appliesTo": "client", - "body": " {\n \"datetime\": \"2000-01-02T20:34:56.123Z\"\n }\n", - "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that clients can correctly parse datetime timestamps with fractional seconds", "id": "RestJsonDateTimeWithFractionalSeconds", + "documentation": "Ensures that clients can correctly parse datetime timestamps with fractional seconds", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": " {\n \"datetime\": \"2000-01-02T20:34:56.123Z\"\n }\n", "params": { "datetime": 946845296.123 }, - "protocol": "aws.protocols#restJson1" + "bodyMediaType": "application/json", + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#GreetingWithErrors": { "responses": [ { + "id": "RestJsonGreetingWithErrors", + "documentation": "Ensures that operations with errors successfully know how\nto deserialize a successful response. As of January 2021,\nserver implementations are expected to respond with a\nJSON object regardless of if the output parameters are\nempty.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that operations with errors successfully know how\nto deserialize a successful response. As of January 2021,\nserver implementations are expected to respond with a\nJSON object regardless of if the output parameters are\nempty.", "headers": { "X-Greeting": "Hello" }, - "id": "RestJsonGreetingWithErrors", "params": { - "greeting": "Hello" - }, - "protocol": "aws.protocols#restJson1" + "greeting": "Hello" + } }, { - "appliesTo": "client", - "body": "", - "code": 200, + "id": "RestJsonGreetingWithErrorsNoPayload", "documentation": "This test is similar to RestJsonGreetingWithErrors, but it\nensures that clients can gracefully deal with a server\nomitting a response payload.", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": "", "headers": { "X-Greeting": "Hello" }, - "id": "RestJsonGreetingWithErrorsNoPayload", "params": { "greeting": "Hello" }, - "protocol": "aws.protocols#restJson1" + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#HostWithPathOperation": { "requests": [ { - "appliesTo": "client", - "body": "", - "documentation": "Custom endpoints supplied by users can have paths", - "host": "example.com/custom", "id": "RestJsonHostWithPath", - "method": "GET", + "documentation": "Custom endpoints supplied by users can have paths", "protocol": "aws.protocols#restJson1", - "uri": "/custom/HostWithPathOperation" + "method": "GET", + "uri": "/custom/HostWithPathOperation", + "body": "", + "host": "example.com/custom", + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#HttpChecksumRequired": { "requests": [ { + "id": "RestJsonHttpChecksumRequired", + "documentation": "Adds Content-MD5 header", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/HttpChecksumRequired", "body": "{\n \"foo\":\"base64 encoded md5 checksum\"\n}\n", "bodyMediaType": "application/json", - "documentation": "Adds Content-MD5 header", "headers": { - "Content-MD5": "iB0/3YSo7maijL0IGOgA9g==", - "Content-Type": "application/json" + "Content-Type": "application/json", + "Content-MD5": "iB0/3YSo7maijL0IGOgA9g==" }, - "id": "RestJsonHttpChecksumRequired", - "method": "POST", "params": { "foo": "base64 encoded md5 checksum" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpChecksumRequired" + } } ] }, "aws.protocoltests.restjson#HttpEmptyPrefixHeaders": { "requests": [ { - "appliesTo": "client", - "body": "", + "id": "RestJsonHttpEmptyPrefixHeadersRequestClient", "documentation": "Serializes all request headers, using specific when present", + "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/HttpEmptyPrefixHeaders", + "body": "", "headers": { - "hello": "There", - "x-foo": "Foo" + "x-foo": "Foo", + "hello": "There" }, - "id": "RestJsonHttpEmptyPrefixHeadersRequestClient", - "method": "GET", "params": { "prefixHeaders": { - "hello": "Hello", - "x-foo": "Foo" + "x-foo": "Foo", + "hello": "Hello" }, "specificHeader": "There" }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpEmptyPrefixHeaders" + "appliesTo": "client" } ], "responses": [ { - "appliesTo": "client", - "code": 200, + "id": "RestJsonHttpEmptyPrefixHeadersResponseClient", "documentation": "Deserializes all response headers with the same for prefix and specific", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { - "hello": "There", - "x-foo": "Foo" + "x-foo": "Foo", + "hello": "There" }, - "id": "RestJsonHttpEmptyPrefixHeadersResponseClient", "params": { "prefixHeaders": { - "hello": "There", - "x-foo": "Foo" + "x-foo": "Foo", + "hello": "There" }, "specificHeader": "There" }, - "protocol": "aws.protocols#restJson1" + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#HttpEnumPayload": { "requests": [ { - "body": "enumvalue", + "id": "RestJsonEnumPayloadRequest", + "uri": "/EnumPayload", "headers": { "Content-Type": "text/plain" }, - "id": "RestJsonEnumPayloadRequest", - "method": "POST", + "body": "enumvalue", "params": { "payload": "enumvalue" }, - "protocol": "aws.protocols#restJson1", - "uri": "/EnumPayload" + "method": "POST", + "protocol": "aws.protocols#restJson1" } ], "responses": [ { - "body": "enumvalue", - "code": 200, + "id": "RestJsonEnumPayloadResponse", "headers": { "Content-Type": "text/plain" }, - "id": "RestJsonEnumPayloadResponse", + "body": "enumvalue", "params": { "payload": "enumvalue" }, - "protocol": "aws.protocols#restJson1" + "protocol": "aws.protocols#restJson1", + "code": 200 } ] }, "aws.protocoltests.restjson#HttpPayloadTraits": { "requests": [ { + "id": "RestJsonHttpPayloadTraitsWithBlob", + "documentation": "Serializes a blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/HttpPayloadTraits", "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes a blob in the HTTP payload", "headers": { "Content-Type": "application/octet-stream", "X-Foo": "Foo" }, - "id": "RestJsonHttpPayloadTraitsWithBlob", - "method": "POST", - "params": { - "blob": "blobby blob blob", - "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1", "requireHeaders": [ "Content-Length" ], - "uri": "/HttpPayloadTraits" + "params": { + "foo": "Foo", + "blob": "blobby blob blob" + } }, { + "id": "RestJsonHttpPayloadTraitsWithNoBlobBody", + "documentation": "Serializes an empty blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/HttpPayloadTraits", "body": "", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes an empty blob in the HTTP payload", "headers": { "X-Foo": "Foo" }, - "id": "RestJsonHttpPayloadTraitsWithNoBlobBody", - "method": "POST", "params": { "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpPayloadTraits" + } } ], "responses": [ { + "id": "RestJsonHttpPayloadTraitsWithBlob", + "documentation": "Serializes a blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "code": 200, - "documentation": "Serializes a blob in the HTTP payload", "headers": { "X-Foo": "Foo" }, - "id": "RestJsonHttpPayloadTraitsWithBlob", "params": { - "blob": "blobby blob blob", - "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1" + "foo": "Foo", + "blob": "blobby blob blob" + } }, { + "id": "RestJsonHttpPayloadTraitsWithNoBlobBody", + "documentation": "Serializes an empty blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "", "bodyMediaType": "application/octet-stream", - "code": 200, - "documentation": "Serializes an empty blob in the HTTP payload", "headers": { "X-Foo": "Foo" }, - "id": "RestJsonHttpPayloadTraitsWithNoBlobBody", "params": { "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#HttpPayloadTraitsWithMediaType": { "requests": [ { + "id": "RestJsonHttpPayloadTraitsWithMediaTypeWithBlob", + "documentation": "Serializes a blob in the HTTP payload with a content-type", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/HttpPayloadTraitsWithMediaType", "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes a blob in the HTTP payload with a content-type", "headers": { - "Content-Type": "text/plain", - "X-Foo": "Foo" - }, - "id": "RestJsonHttpPayloadTraitsWithMediaTypeWithBlob", - "method": "POST", - "params": { - "blob": "blobby blob blob", - "foo": "Foo" + "X-Foo": "Foo", + "Content-Type": "text/plain" }, - "protocol": "aws.protocols#restJson1", "requireHeaders": [ "Content-Length" ], - "uri": "/HttpPayloadTraitsWithMediaType" + "params": { + "foo": "Foo", + "blob": "blobby blob blob" + } } ], "responses": [ { + "id": "RestJsonHttpPayloadTraitsWithMediaTypeWithBlob", + "documentation": "Serializes a blob in the HTTP payload with a content-type", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "code": 200, - "documentation": "Serializes a blob in the HTTP payload with a content-type", "headers": { - "Content-Type": "text/plain", - "X-Foo": "Foo" + "X-Foo": "Foo", + "Content-Type": "text/plain" }, - "id": "RestJsonHttpPayloadTraitsWithMediaTypeWithBlob", "params": { - "blob": "blobby blob blob", - "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1" + "foo": "Foo", + "blob": "blobby blob blob" + } } ] }, "aws.protocoltests.restjson#HttpPayloadWithStructure": { "requests": [ { + "id": "RestJsonHttpPayloadWithStructure", + "documentation": "Serializes a structure in the payload", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/HttpPayloadWithStructure", "body": "{\n \"greeting\": \"hello\",\n \"name\": \"Phreddy\"\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a structure in the payload", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonHttpPayloadWithStructure", - "method": "PUT", + "requireHeaders": [ + "Content-Length" + ], "params": { "nested": { "greeting": "hello", "name": "Phreddy" } - }, - "protocol": "aws.protocols#restJson1", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/HttpPayloadWithStructure" + } } ], "responses": [ { + "id": "RestJsonHttpPayloadWithStructure", + "documentation": "Serializes a structure in the payload", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"greeting\": \"hello\",\n \"name\": \"Phreddy\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes a structure in the payload", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonHttpPayloadWithStructure", "params": { "nested": { "greeting": "hello", "name": "Phreddy" } - }, - "protocol": "aws.protocols#restJson1" + } }, { - "body": "", - "code": 200, - "documentation": "Serializes a structure in the payload", "id": "RestJsonHttpPayloadWithStructureAndEmptyResponseBody", + "documentation": "Serializes a structure in the payload", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": "", "params": { "nested": null - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#HttpPayloadWithUnion": { "requests": [ { + "id": "RestJsonHttpPayloadWithUnion", + "documentation": "Serializes a union in the payload.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/HttpPayloadWithUnion", "body": "{\n \"greeting\": \"hello\"\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a union in the payload.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonHttpPayloadWithUnion", - "method": "PUT", + "requireHeaders": [ + "Content-Length" + ], "params": { "nested": { "greeting": "hello" } - }, - "protocol": "aws.protocols#restJson1", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/HttpPayloadWithUnion" + } }, { - "body": "", - "documentation": "No payload is sent if the union has no value.", "id": "RestJsonHttpPayloadWithUnsetUnion", - "method": "PUT", - "params": {}, + "documentation": "No payload is sent if the union has no value.", "protocol": "aws.protocols#restJson1", - "uri": "/HttpPayloadWithUnion" + "method": "PUT", + "uri": "/HttpPayloadWithUnion", + "body": "", + "params": {} } ], "responses": [ { + "id": "RestJsonHttpPayloadWithUnion", + "documentation": "Serializes a union in the payload.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"greeting\": \"hello\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes a union in the payload.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonHttpPayloadWithUnion", "params": { "nested": { "greeting": "hello" } - }, - "protocol": "aws.protocols#restJson1" + } }, { - "body": "", - "code": 200, + "id": "RestJsonHttpPayloadWithUnsetUnion", "documentation": "No payload is sent if the union has no value.", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": "", "headers": { "Content-Length": "0" }, - "id": "RestJsonHttpPayloadWithUnsetUnion", - "params": {}, - "protocol": "aws.protocols#restJson1" + "params": {} } ] }, "aws.protocoltests.restjson#HttpPrefixHeaders": { "requests": [ { - "body": "", + "id": "RestJsonHttpPrefixHeadersArePresent", "documentation": "Adds headers by prefix", + "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/HttpPrefixHeaders", + "body": "", "headers": { "x-foo": "Foo", "x-foo-abc": "Abc value", "x-foo-def": "Def value" }, - "id": "RestJsonHttpPrefixHeadersArePresent", - "method": "GET", "params": { "foo": "Foo", "fooMap": { "abc": "Abc value", "def": "Def value" } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpPrefixHeaders" + } }, { - "appliesTo": "client", - "body": "", + "id": "RestJsonHttpPrefixHeadersAreNotPresent", "documentation": "No prefix headers are serialized because the value is not present", + "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/HttpPrefixHeaders", + "body": "", "headers": { "x-foo": "Foo" }, - "id": "RestJsonHttpPrefixHeadersAreNotPresent", - "method": "GET", "params": { "foo": "Foo", "fooMap": {} }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpPrefixHeaders" + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "", - "documentation": "Serialize prefix headers were the value is present but empty", - "headers": { - "x-foo-abc": "" - }, "id": "RestJsonHttpPrefixEmptyHeaders", + "documentation": "Serialize prefix headers were the value is present but empty", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/HttpPrefixHeaders", + "body": "", "params": { "fooMap": { "abc": "" } }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpPrefixHeaders" + "headers": { + "x-foo-abc": "" + }, + "appliesTo": "client" } ], "responses": [ { - "code": 200, + "id": "RestJsonHttpPrefixHeadersArePresent", "documentation": "Adds headers by prefix", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "x-foo": "Foo", "x-foo-abc": "Abc value", "x-foo-def": "Def value" }, - "id": "RestJsonHttpPrefixHeadersArePresent", "params": { "foo": "Foo", "fooMap": { "abc": "Abc value", "def": "Def value" } - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#HttpPrefixHeadersInResponse": { "responses": [ { - "code": 200, + "id": "HttpPrefixHeadersResponse", "documentation": "(de)serializes all response headers", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { - "hello": "Hello", - "x-foo": "Foo" + "x-foo": "Foo", + "hello": "Hello" }, - "id": "HttpPrefixHeadersResponse", "params": { "prefixHeaders": { - "hello": "Hello", - "x-foo": "Foo" - } - }, - "protocol": "aws.protocols#restJson1" + "x-foo": "Foo", + "hello": "Hello" + } + } } ] }, "aws.protocoltests.restjson#HttpQueryParamsOnlyOperation": { "requests": [ { - "appliesTo": "client", - "documentation": "Test that httpQueryParams are included in request when no other query parameters exist", "id": "HttpQueryParamsOnlyRequest", + "documentation": "Test that httpQueryParams are included in request when no other query parameters exist", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/http-query-params-only", + "queryParams": [ + "a=b", + "c=d" + ], "params": { "queryMap": { "a": "b", "c": "d" } }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "a=b", - "c=d" - ], - "uri": "/http-query-params-only" + "appliesTo": "client" }, { - "appliesTo": "client", - "documentation": "Test that empty httpQueryParams map results in no query parameters", "id": "HttpQueryParamsOnlyEmptyRequest", + "documentation": "Test that empty httpQueryParams map results in no query parameters", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/http-query-params-only", "params": { "queryMap": {} }, - "protocol": "aws.protocols#restJson1", - "uri": "/http-query-params-only" + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#HttpRequestWithFloatLabels": { "requests": [ { - "body": "", - "documentation": "Supports handling NaN float label values.", "id": "RestJsonSupportsNaNFloatLabels", + "documentation": "Supports handling NaN float label values.", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/FloatHttpLabels/NaN/NaN", + "body": "", "params": { - "double": "NaN", - "float": "NaN" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/FloatHttpLabels/NaN/NaN" + "float": "NaN", + "double": "NaN" + } }, { - "body": "", - "documentation": "Supports handling Infinity float label values.", "id": "RestJsonSupportsInfinityFloatLabels", + "documentation": "Supports handling Infinity float label values.", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/FloatHttpLabels/Infinity/Infinity", + "body": "", "params": { - "double": "Infinity", - "float": "Infinity" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/FloatHttpLabels/Infinity/Infinity" + "float": "Infinity", + "double": "Infinity" + } }, { - "body": "", - "documentation": "Supports handling -Infinity float label values.", "id": "RestJsonSupportsNegativeInfinityFloatLabels", + "documentation": "Supports handling -Infinity float label values.", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/FloatHttpLabels/-Infinity/-Infinity", + "body": "", "params": { - "double": "-Infinity", - "float": "-Infinity" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/FloatHttpLabels/-Infinity/-Infinity" + "float": "-Infinity", + "double": "-Infinity" + } } ] }, "aws.protocoltests.restjson#HttpRequestWithGreedyLabelInPath": { "requests": [ { - "body": "", - "documentation": "Serializes greedy labels and normal labels", "id": "RestJsonHttpRequestWithGreedyLabelInPath", + "documentation": "Serializes greedy labels and normal labels", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/HttpRequestWithGreedyLabelInPath/foo/hello%2Fescape/baz/there/guy", + "body": "", "params": { - "baz": "there/guy", - "foo": "hello/escape" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpRequestWithGreedyLabelInPath/foo/hello%2Fescape/baz/there/guy" + "foo": "hello/escape", + "baz": "there/guy" + } } ] }, "aws.protocoltests.restjson#HttpRequestWithLabels": { "requests": [ { - "body": "", - "documentation": "Sends a GET request that uses URI label bindings", "id": "RestJsonInputWithHeadersAndAllParams", + "documentation": "Sends a GET request that uses URI label bindings", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z", + "body": "", "params": { - "boolean": true, - "double": 5.1, - "float": 4.1, + "string": "string", + "short": 1, "integer": 2, "long": 3, - "short": 1, - "string": "string", + "float": 4.1, + "double": 5.1, + "boolean": true, "timestamp": 1576540098 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z" + } }, { - "body": "", - "documentation": "Sends a GET request that uses URI label bindings", "id": "RestJsonHttpRequestLabelEscaping", + "documentation": "Sends a GET request that uses URI label bindings", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z", + "body": "", "params": { - "boolean": true, - "double": 5.1, - "float": 4.1, + "string": " %:/?#[]@!$&'()*+,;=\ud83d\ude39", + "short": 1, "integer": 2, "long": 3, - "short": 1, - "string": " %:/?#[]@!$&'()*+,;=\ud83d\ude39", + "float": 4.1, + "double": 5.1, + "boolean": true, "timestamp": 1576540098 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z" + } } ] }, "aws.protocoltests.restjson#HttpRequestWithLabelsAndTimestampFormat": { "requests": [ { - "body": "", - "documentation": "Serializes different timestamp formats in URI labels", "id": "RestJsonHttpRequestWithLabelsAndTimestampFormat", + "documentation": "Serializes different timestamp formats in URI labels", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z", + "body": "", "params": { - "defaultFormat": 1576540098, - "memberDateTime": 1576540098, "memberEpochSeconds": 1576540098, "memberHttpDate": 1576540098, - "targetDateTime": 1576540098, + "memberDateTime": 1576540098, + "defaultFormat": 1576540098, "targetEpochSeconds": 1576540098, - "targetHttpDate": 1576540098 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z" + "targetHttpDate": 1576540098, + "targetDateTime": 1576540098 + } } ] }, "aws.protocoltests.restjson#HttpRequestWithRegexLiteral": { "requests": [ { - "body": "", - "documentation": "Path matching is not broken by regex expressions in literal segments", "id": "RestJsonToleratesRegexCharsInSegments", + "documentation": "Path matching is not broken by regex expressions in literal segments", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/ReDosLiteral/abc/(a+)+", + "body": "", "params": { "str": "abc" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/ReDosLiteral/abc/(a+)+" + } } ] }, "aws.protocoltests.restjson#HttpResponseCode": { "responses": [ { - "body": "{}", - "bodyMediaType": "application/json", - "code": 201, + "id": "RestJsonHttpResponseCode", "documentation": "Binds the http response code to an output structure. Note that\neven though all members are bound outside of the payload, an\nempty JSON object is serialized in the response. However,\nclients should be able to handle an empty JSON object or an\nempty payload without failing to deserialize a response.", + "protocol": "aws.protocols#restJson1", + "code": 201, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonHttpResponseCode", + "body": "{}", + "bodyMediaType": "application/json", "params": { "Status": 201 - }, - "protocol": "aws.protocols#restJson1" + } }, { - "appliesTo": "client", - "body": "", - "code": 201, - "documentation": "This test ensures that clients gracefully handle cases where\nthe service responds with no payload rather than an empty JSON\nobject.", "id": "RestJsonHttpResponseCodeWithNoPayload", + "documentation": "This test ensures that clients gracefully handle cases where\nthe service responds with no payload rather than an empty JSON\nobject.", + "protocol": "aws.protocols#restJson1", + "code": 201, + "body": "", "params": { "Status": 201 }, - "protocol": "aws.protocols#restJson1" + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#HttpStringPayload": { "requests": [ { + "id": "RestJsonStringPayloadRequest", + "uri": "/StringPayload", "body": "rawstring", "bodyMediaType": "text/plain", "headers": { "Content-Type": "text/plain" }, - "id": "RestJsonStringPayloadRequest", - "method": "POST", - "params": { - "payload": "rawstring" - }, - "protocol": "aws.protocols#restJson1", "requireHeaders": [ "Content-Length" ], - "uri": "/StringPayload" + "params": { + "payload": "rawstring" + }, + "method": "POST", + "protocol": "aws.protocols#restJson1" } ], "responses": [ { - "body": "rawstring", - "bodyMediaType": "text/plain", - "code": 200, + "id": "RestJsonStringPayloadResponse", "headers": { "Content-Type": "text/plain" }, - "id": "RestJsonStringPayloadResponse", + "body": "rawstring", + "bodyMediaType": "text/plain", "params": { "payload": "rawstring" }, - "protocol": "aws.protocols#restJson1" + "protocol": "aws.protocols#restJson1", + "code": 200 } ] }, "aws.protocoltests.restjson#IgnoreQueryParamsInResponse": { "responses": [ { - "body": "{\"baz\":\"bam\"}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RestJsonIgnoreQueryParamsInResponse", "documentation": "Query parameters must be ignored when serializing the output\nof an operation. As of January 2021, server implementations\nare expected to respond with a JSON object regardless of\nif the output parameters are empty.", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "Content-Type": "application/json" }, - "id": "RestJsonIgnoreQueryParamsInResponse", + "body": "{\"baz\":\"bam\"}", + "bodyMediaType": "application/json", "params": { "baz": "bam" - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#InputAndOutputWithHeaders": { "requests": [ { - "body": "", + "id": "RestJsonInputAndOutputWithStringHeaders", "documentation": "Tests requests with string header bindings", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", "headers": { "X-String": "Hello", "X-StringList": "a, b, c", "X-StringSet": "a, b, c" }, - "id": "RestJsonInputAndOutputWithStringHeaders", - "method": "POST", + "body": "", "params": { "headerString": "Hello", "headerStringList": [ @@ -1703,106 +1705,106 @@ "b", "c" ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + } }, { - "body": "", + "id": "RestJsonInputAndOutputWithQuotedStringHeaders", "documentation": "Tests requests with string list header bindings that require quoting", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", "headers": { "X-StringList": "\"b,c\", \"\\\"def\\\"\", a" }, - "id": "RestJsonInputAndOutputWithQuotedStringHeaders", - "method": "POST", + "body": "", "params": { "headerStringList": [ "b,c", "\"def\"", "a" ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + } }, { - "body": "", + "id": "RestJsonInputAndOutputWithNumericHeaders", "documentation": "Tests requests with numeric header bindings", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", "headers": { "X-Byte": "1", - "X-Double": "1.1", - "X-Float": "1.1", + "X-Short": "123", "X-Integer": "123", - "X-IntegerList": "1, 2, 3", "X-Long": "123", - "X-Short": "123" + "X-Float": "1.1", + "X-Double": "1.1", + "X-IntegerList": "1, 2, 3" }, - "id": "RestJsonInputAndOutputWithNumericHeaders", - "method": "POST", + "body": "", "params": { "headerByte": 1, - "headerDouble": 1.1, - "headerFloat": 1.1, + "headerShort": 123, "headerInteger": 123, + "headerLong": 123, + "headerFloat": 1.1, + "headerDouble": 1.1, "headerIntegerList": [ 1, 2, 3 - ], - "headerLong": 123, - "headerShort": 123 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + ] + } }, { - "body": "", + "id": "RestJsonInputAndOutputWithBooleanHeaders", "documentation": "Tests requests with boolean header bindings", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", "headers": { "X-Boolean1": "true", "X-Boolean2": "false", "X-BooleanList": "true, false, true" }, - "id": "RestJsonInputAndOutputWithBooleanHeaders", - "method": "POST", + "body": "", "params": { + "headerTrueBool": true, + "headerFalseBool": false, "headerBooleanList": [ true, false, true - ], - "headerFalseBool": false, - "headerTrueBool": true - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + ] + } }, { - "body": "", + "id": "RestJsonInputAndOutputWithTimestampHeaders", "documentation": "Tests requests with timestamp header bindings", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", "headers": { "X-TimestampList": "Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT" }, - "id": "RestJsonInputAndOutputWithTimestampHeaders", - "method": "POST", + "body": "", "params": { "headerTimestampList": [ 1576540098, 1576540098 ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + } }, { - "body": "", + "id": "RestJsonInputAndOutputWithEnumHeaders", "documentation": "Tests requests with enum header bindings", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", "headers": { "X-Enum": "Foo", "X-EnumList": "Foo, Bar, Baz" }, - "id": "RestJsonInputAndOutputWithEnumHeaders", - "method": "POST", + "body": "", "params": { "headerEnum": "Foo", "headerEnumList": [ @@ -1810,19 +1812,19 @@ "Bar", "Baz" ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + } }, { - "body": "", + "id": "RestJsonInputAndOutputWithIntEnumHeaders", "documentation": "Tests requests with intEnum header bindings", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", "headers": { "X-IntegerEnum": "1", "X-IntegerEnumList": "1, 2, 3" }, - "id": "RestJsonInputAndOutputWithIntEnumHeaders", - "method": "POST", + "body": "", "params": { "headerIntegerEnum": 1, "headerIntegerEnumList": [ @@ -1830,69 +1832,68 @@ 2, 3 ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + } }, { - "body": "", + "id": "RestJsonSupportsNaNFloatHeaderInputs", "documentation": "Supports handling NaN float header values.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "body": "", "headers": { - "X-Double": "NaN", - "X-Float": "NaN" + "X-Float": "NaN", + "X-Double": "NaN" }, - "id": "RestJsonSupportsNaNFloatHeaderInputs", - "method": "POST", "params": { - "headerDouble": "NaN", - "headerFloat": "NaN" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + "headerFloat": "NaN", + "headerDouble": "NaN" + } }, { - "body": "", + "id": "RestJsonSupportsInfinityFloatHeaderInputs", "documentation": "Supports handling Infinity float header values.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "body": "", "headers": { - "X-Double": "Infinity", - "X-Float": "Infinity" + "X-Float": "Infinity", + "X-Double": "Infinity" }, - "id": "RestJsonSupportsInfinityFloatHeaderInputs", - "method": "POST", "params": { - "headerDouble": "Infinity", - "headerFloat": "Infinity" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + "headerFloat": "Infinity", + "headerDouble": "Infinity" + } }, { - "body": "", - "documentation": "Supports handling -Infinity float header values.", - "headers": { - "X-Double": "-Infinity", - "X-Float": "-Infinity" - }, "id": "RestJsonSupportsNegativeInfinityFloatHeaderInputs", + "documentation": "Supports handling -Infinity float header values.", + "protocol": "aws.protocols#restJson1", "method": "POST", - "params": { - "headerDouble": "-Infinity", - "headerFloat": "-Infinity" + "uri": "/InputAndOutputWithHeaders", + "body": "", + "headers": { + "X-Float": "-Infinity", + "X-Double": "-Infinity" }, - "protocol": "aws.protocols#restJson1", - "uri": "/InputAndOutputWithHeaders" + "params": { + "headerFloat": "-Infinity", + "headerDouble": "-Infinity" + } } ], "responses": [ { - "code": 200, + "id": "RestJsonInputAndOutputWithStringHeaders", "documentation": "Tests responses with string header bindings", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "X-String": "Hello", "X-StringList": "a, b, c", "X-StringSet": "a, b, c" }, - "id": "RestJsonInputAndOutputWithStringHeaders", "params": { "headerString": "Hello", "headerStringList": [ @@ -1905,96 +1906,96 @@ "b", "c" ] - }, - "protocol": "aws.protocols#restJson1" + } }, { - "code": 200, + "id": "RestJsonInputAndOutputWithQuotedStringHeaders", "documentation": "Tests responses with string list header bindings that require quoting", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "X-StringList": "\"b,c\", \"\\\"def\\\"\", a" }, - "id": "RestJsonInputAndOutputWithQuotedStringHeaders", "params": { "headerStringList": [ "b,c", "\"def\"", "a" ] - }, - "protocol": "aws.protocols#restJson1" + } }, { - "code": 200, + "id": "RestJsonInputAndOutputWithNumericHeaders", "documentation": "Tests responses with numeric header bindings", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "X-Byte": "1", - "X-Double": "1.1", - "X-Float": "1.1", + "X-Short": "123", "X-Integer": "123", - "X-IntegerList": "1, 2, 3", "X-Long": "123", - "X-Short": "123" + "X-Float": "1.1", + "X-Double": "1.1", + "X-IntegerList": "1, 2, 3" }, - "id": "RestJsonInputAndOutputWithNumericHeaders", "params": { "headerByte": 1, - "headerDouble": 1.1, - "headerFloat": 1.1, + "headerShort": 123, "headerInteger": 123, + "headerLong": 123, + "headerFloat": 1.1, + "headerDouble": 1.1, "headerIntegerList": [ 1, 2, 3 - ], - "headerLong": 123, - "headerShort": 123 - }, - "protocol": "aws.protocols#restJson1" + ] + } }, { - "code": 200, + "id": "RestJsonInputAndOutputWithBooleanHeaders", "documentation": "Tests responses with boolean header bindings", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "X-Boolean1": "true", "X-Boolean2": "false", "X-BooleanList": "true, false, true" }, - "id": "RestJsonInputAndOutputWithBooleanHeaders", "params": { + "headerTrueBool": true, + "headerFalseBool": false, "headerBooleanList": [ true, false, true - ], - "headerFalseBool": false, - "headerTrueBool": true - }, - "protocol": "aws.protocols#restJson1" + ] + } }, { - "code": 200, + "id": "RestJsonInputAndOutputWithTimestampHeaders", "documentation": "Tests responses with timestamp header bindings", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "X-TimestampList": "Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT" }, - "id": "RestJsonInputAndOutputWithTimestampHeaders", "params": { "headerTimestampList": [ 1576540098, 1576540098 ] - }, - "protocol": "aws.protocols#restJson1" + } }, { - "code": 200, + "id": "RestJsonInputAndOutputWithEnumHeaders", "documentation": "Tests responses with enum header bindings", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "X-Enum": "Foo", "X-EnumList": "Foo, Bar, Baz" }, - "id": "RestJsonInputAndOutputWithEnumHeaders", "params": { "headerEnum": "Foo", "headerEnumList": [ @@ -2002,17 +2003,17 @@ "Bar", "Baz" ] - }, - "protocol": "aws.protocols#restJson1" + } }, { - "code": 200, + "id": "RestJsonInputAndOutputWithIntEnumHeaders", "documentation": "Tests responses with intEnum header bindings", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "X-IntegerEnum": "1", "X-IntegerEnumList": "1, 2, 3" }, - "id": "RestJsonInputAndOutputWithIntEnumHeaders", "params": { "headerIntegerEnum": 1, "headerIntegerEnumList": [ @@ -2020,118 +2021,119 @@ 2, 3 ] - }, - "protocol": "aws.protocols#restJson1" + } }, { - "code": 200, + "id": "RestJsonSupportsNaNFloatHeaderOutputs", "documentation": "Supports handling NaN float header values.", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { - "X-Double": "NaN", - "X-Float": "NaN" + "X-Float": "NaN", + "X-Double": "NaN" }, - "id": "RestJsonSupportsNaNFloatHeaderOutputs", "params": { - "headerDouble": "NaN", - "headerFloat": "NaN" - }, - "protocol": "aws.protocols#restJson1" + "headerFloat": "NaN", + "headerDouble": "NaN" + } }, { - "code": 200, + "id": "RestJsonSupportsInfinityFloatHeaderOutputs", "documentation": "Supports handling Infinity float header values.", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { - "X-Double": "Infinity", - "X-Float": "Infinity" + "X-Float": "Infinity", + "X-Double": "Infinity" }, - "id": "RestJsonSupportsInfinityFloatHeaderOutputs", "params": { - "headerDouble": "Infinity", - "headerFloat": "Infinity" - }, - "protocol": "aws.protocols#restJson1" + "headerFloat": "Infinity", + "headerDouble": "Infinity" + } }, { - "code": 200, + "id": "RestJsonSupportsNegativeInfinityFloatHeaderOutputs", "documentation": "Supports handling -Infinity float header values.", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { - "X-Double": "-Infinity", - "X-Float": "-Infinity" + "X-Float": "-Infinity", + "X-Double": "-Infinity" }, - "id": "RestJsonSupportsNegativeInfinityFloatHeaderOutputs", "params": { - "headerDouble": "-Infinity", - "headerFloat": "-Infinity" - }, - "protocol": "aws.protocols#restJson1" + "headerFloat": "-Infinity", + "headerDouble": "-Infinity" + } } ] }, "aws.protocoltests.restjson#InvalidGreeting": { "responses": [ { - "body": "{\n \"Message\": \"Hi\"\n}", - "bodyMediaType": "application/json", - "code": 400, + "id": "RestJsonInvalidGreetingError", "documentation": "Parses simple JSON errors", + "protocol": "aws.protocols#restJson1", + "params": { + "Message": "Hi" + }, + "code": 400, "headers": { "Content-Type": "application/json", "X-Amzn-Errortype": "InvalidGreeting" }, - "id": "RestJsonInvalidGreetingError", - "params": { - "Message": "Hi" - }, - "protocol": "aws.protocols#restJson1" + "body": "{\n \"Message\": \"Hi\"\n}", + "bodyMediaType": "application/json" } ] }, "aws.protocoltests.restjson#JsonBlobs": { "requests": [ { + "id": "RestJsonJsonBlobs", + "documentation": "Blobs are base64 encoded", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonBlobs", "body": "{\n \"data\": \"dmFsdWU=\"\n}", "bodyMediaType": "application/json", - "documentation": "Blobs are base64 encoded", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonBlobs", - "method": "POST", "params": { "data": "value" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonBlobs" + } } ], "responses": [ { + "id": "RestJsonJsonBlobs", + "documentation": "Blobs are base64 encoded", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"data\": \"dmFsdWU=\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Blobs are base64 encoded", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonBlobs", "params": { "data": "value" - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#JsonEnums": { "requests": [ { + "id": "RestJsonJsonEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonEnums", "body": "{\n \"fooEnum1\": \"Foo\",\n \"fooEnum2\": \"0\",\n \"fooEnum3\": \"1\",\n \"fooEnumList\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumSet\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumMap\": {\n \"hi\": \"Foo\",\n \"zero\": \"0\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes simple scalar properties", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonEnums", - "method": "PUT", "params": { "fooEnum1": "Foo", "fooEnum2": "0", @@ -2140,29 +2142,28 @@ "Foo", "0" ], - "fooEnumMap": { - "hi": "Foo", - "zero": "0" - }, "fooEnumSet": [ "Foo", "0" - ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonEnums" + ], + "fooEnumMap": { + "hi": "Foo", + "zero": "0" + } + } } ], "responses": [ { + "id": "RestJsonJsonEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"fooEnum1\": \"Foo\",\n \"fooEnum2\": \"0\",\n \"fooEnum3\": \"1\",\n \"fooEnumList\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumSet\": [\n \"Foo\",\n \"0\"\n ],\n \"fooEnumMap\": {\n \"hi\": \"Foo\",\n \"zero\": \"0\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes simple scalar properties", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonEnums", "params": { "fooEnum1": "Foo", "fooEnum2": "0", @@ -2171,30 +2172,31 @@ "Foo", "0" ], - "fooEnumMap": { - "hi": "Foo", - "zero": "0" - }, "fooEnumSet": [ "Foo", "0" - ] - }, - "protocol": "aws.protocols#restJson1" + ], + "fooEnumMap": { + "hi": "Foo", + "zero": "0" + } + } } ] }, "aws.protocoltests.restjson#JsonIntEnums": { "requests": [ { + "id": "RestJsonJsonIntEnums", + "documentation": "Serializes intEnums as integers", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonIntEnums", "body": "{\n \"integerEnum1\": 1,\n \"integerEnum2\": 2,\n \"integerEnum3\": 3,\n \"integerEnumList\": [\n 1,\n 2,\n 3\n ],\n \"integerEnumSet\": [\n 1,\n 2\n ],\n \"integerEnumMap\": {\n \"abc\": 1,\n \"def\": 2\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes intEnums as integers", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonIntEnums", - "method": "PUT", "params": { "integerEnum1": 1, "integerEnum2": 2, @@ -2204,29 +2206,28 @@ 2, 3 ], - "integerEnumMap": { - "abc": 1, - "def": 2 - }, "integerEnumSet": [ 1, 2 - ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonIntEnums" + ], + "integerEnumMap": { + "abc": 1, + "def": 2 + } + } } ], "responses": [ { + "id": "RestJsonJsonIntEnums", + "documentation": "Serializes intEnums as integers", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"integerEnum1\": 1,\n \"integerEnum2\": 2,\n \"integerEnum3\": 3,\n \"integerEnumList\": [\n 1,\n 2,\n 3\n ],\n \"integerEnumSet\": [\n 1,\n 2\n ],\n \"integerEnumMap\": {\n \"abc\": 1,\n \"def\": 2\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes intEnums as integers", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonIntEnums", "params": { "integerEnum1": 1, "integerEnum2": 2, @@ -2236,35 +2237,52 @@ 2, 3 ], - "integerEnumMap": { - "abc": 1, - "def": 2 - }, "integerEnumSet": [ 1, 2 - ] - }, - "protocol": "aws.protocols#restJson1" + ], + "integerEnumMap": { + "abc": 1, + "def": 2 + } + } } ] }, "aws.protocoltests.restjson#JsonLists": { "requests": [ { + "id": "RestJsonLists", + "documentation": "Serializes JSON lists", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonLists", "body": "{\n \"stringList\": [\n \"foo\",\n \"bar\"\n ],\n \"stringSet\": [\n \"foo\",\n \"bar\"\n ],\n \"integerList\": [\n 1,\n 2\n ],\n \"booleanList\": [\n true,\n false\n ],\n \"timestampList\": [\n 1398796238,\n 1398796238\n ],\n \"enumList\": [\n \"Foo\",\n \"0\"\n ],\n \"intEnumList\": [\n 1,\n 2\n ],\n \"nestedStringList\": [\n [\n \"foo\",\n \"bar\"\n ],\n [\n \"baz\",\n \"qux\"\n ]\n ],\n \"myStructureList\": [\n {\n \"value\": \"1\",\n \"other\": \"2\"\n },\n {\n \"value\": \"3\",\n \"other\": \"4\"\n }\n ]\n}", "bodyMediaType": "application/json", - "documentation": "Serializes JSON lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonLists", - "method": "PUT", "params": { + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ + "foo", + "bar" + ], + "integerList": [ + 1, + 2 + ], "booleanList": [ true, false ], + "timestampList": [ + 1398796238, + 1398796238 + ], "enumList": [ "Foo", "0" @@ -2273,10 +2291,6 @@ 1, 2 ], - "integerList": [ - 1, - 2 - ], "nestedStringList": [ [ "foo", @@ -2287,14 +2301,6 @@ "qux" ] ], - "stringList": [ - "foo", - "bar" - ], - "stringSet": [ - "foo", - "bar" - ], "structureList": [ { "a": "1", @@ -2304,46 +2310,57 @@ "a": "3", "b": "4" } - ], - "timestampList": [ - 1398796238, - 1398796238 ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonLists" + } }, { + "id": "RestJsonListsEmpty", + "documentation": "Serializes empty JSON lists", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonLists", "body": "{\n \"stringList\": []\n}", "bodyMediaType": "application/json", - "documentation": "Serializes empty JSON lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonListsEmpty", - "method": "PUT", "params": { "stringList": [] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonLists" + } } ], "responses": [ { + "id": "RestJsonLists", + "documentation": "Serializes JSON lists", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringList\": [\n \"foo\",\n \"bar\"\n ],\n \"stringSet\": [\n \"foo\",\n \"bar\"\n ],\n \"integerList\": [\n 1,\n 2\n ],\n \"booleanList\": [\n true,\n false\n ],\n \"timestampList\": [\n 1398796238,\n 1398796238\n ],\n \"enumList\": [\n \"Foo\",\n \"0\"\n ],\n \"intEnumList\": [\n 1,\n 2\n ],\n \"nestedStringList\": [\n [\n \"foo\",\n \"bar\"\n ],\n [\n \"baz\",\n \"qux\"\n ]\n ],\n \"myStructureList\": [\n {\n \"value\": \"1\",\n \"other\": \"2\"\n },\n {\n \"value\": \"3\",\n \"other\": \"4\"\n }\n ]\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes JSON lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonLists", "params": { + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ + "foo", + "bar" + ], + "integerList": [ + 1, + 2 + ], "booleanList": [ true, false ], + "timestampList": [ + 1398796238, + 1398796238 + ], "enumList": [ "Foo", "0" @@ -2352,10 +2369,6 @@ 1, 2 ], - "integerList": [ - 1, - 2 - ], "nestedStringList": [ [ "foo", @@ -2366,14 +2379,6 @@ "qux" ] ], - "stringList": [ - "foo", - "bar" - ], - "stringSet": [ - "foo", - "bar" - ], "structureList": [ { "a": "1", @@ -2383,83 +2388,80 @@ "a": "3", "b": "4" } - ], - "timestampList": [ - 1398796238, - 1398796238 ] - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonListsEmpty", + "documentation": "Serializes empty JSON lists", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringList\": []\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes empty JSON lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonListsEmpty", "params": { "stringList": [] - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#JsonMaps": { "requests": [ { + "id": "RestJsonJsonMaps", + "documentation": "Serializes JSON maps", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonMaps", "body": "{\n \"denseStructMap\": {\n \"foo\": {\n \"hi\": \"there\"\n },\n \"baz\": {\n \"hi\": \"bye\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes JSON maps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonMaps", - "method": "POST", "params": { "denseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonMaps" + } }, { + "id": "RestJsonSerializesZeroValuesInMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonMaps", "body": "{\n \"denseNumberMap\": {\n \"x\": 0\n },\n \"denseBooleanMap\": {\n \"x\": false\n }\n}", "bodyMediaType": "application/json", - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializesZeroValuesInMaps", - "method": "POST", "params": { - "denseBooleanMap": { - "x": false - }, "denseNumberMap": { "x": 0 + }, + "denseBooleanMap": { + "x": false } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonMaps" + } }, { + "id": "RestJsonSerializesDenseSetMap", + "documentation": "A request that contains a dense map of sets.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonMaps", "body": "{\n \"denseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"]\n }\n}", "bodyMediaType": "application/json", - "documentation": "A request that contains a dense map of sets.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializesDenseSetMap", - "method": "POST", "params": { "denseSetMap": { "x": [], @@ -2468,61 +2470,60 @@ "b" ] } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonMaps" + } } ], "responses": [ { + "id": "RestJsonJsonMaps", + "documentation": "Deserializes JSON maps", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"denseStructMap\": {\n \"foo\": {\n \"hi\": \"there\"\n },\n \"baz\": {\n \"hi\": \"bye\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes JSON maps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonMaps", "params": { "denseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializesZeroValuesInMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"denseNumberMap\": {\n \"x\": 0\n },\n \"denseBooleanMap\": {\n \"x\": false\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializesZeroValuesInMaps", "params": { - "denseBooleanMap": { - "x": false - }, "denseNumberMap": { "x": 0 + }, + "denseBooleanMap": { + "x": false } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializesDenseSetMap", + "documentation": "A response that contains a dense map of sets.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"denseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"]\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "A response that contains a dense map of sets.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializesDenseSetMap", "params": { "denseSetMap": { "x": [], @@ -2531,333 +2532,334 @@ "b" ] } - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#JsonTimestamps": { "requests": [ { + "id": "RestJsonJsonTimestamps", + "documentation": "Tests how normal timestamps are serialized", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonTimestamps", "body": "{\n \"normal\": 1398796238\n}", "bodyMediaType": "application/json", - "documentation": "Tests how normal timestamps are serialized", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestamps", - "method": "POST", "params": { "normal": 1398796238 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonTimestamps" + } }, { + "id": "RestJsonJsonTimestampsWithDateTimeFormat", + "documentation": "Ensures that the timestampFormat of date-time works like normal timestamps", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonTimestamps", "body": "{\n \"dateTime\": \"2014-04-29T18:30:38Z\"\n}", "bodyMediaType": "application/json", - "documentation": "Ensures that the timestampFormat of date-time works like normal timestamps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithDateTimeFormat", - "method": "POST", "params": { "dateTime": 1398796238 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonTimestamps" + } }, { + "id": "RestJsonJsonTimestampsWithDateTimeOnTargetFormat", + "documentation": "Ensures that the timestampFormat of date-time on the target shape works like normal timestamps", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonTimestamps", "body": "{\n \"dateTimeOnTarget\": \"2014-04-29T18:30:38Z\"\n}", "bodyMediaType": "application/json", - "documentation": "Ensures that the timestampFormat of date-time on the target shape works like normal timestamps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithDateTimeOnTargetFormat", - "method": "POST", "params": { "dateTimeOnTarget": 1398796238 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonTimestamps" + } }, { + "id": "RestJsonJsonTimestampsWithEpochSecondsFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds works", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonTimestamps", "body": "{\n \"epochSeconds\": 1398796238\n}", "bodyMediaType": "application/json", - "documentation": "Ensures that the timestampFormat of epoch-seconds works", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithEpochSecondsFormat", - "method": "POST", "params": { "epochSeconds": 1398796238 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonTimestamps" + } }, { + "id": "RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds on the target shape works", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonTimestamps", "body": "{\n \"epochSecondsOnTarget\": 1398796238\n}", "bodyMediaType": "application/json", - "documentation": "Ensures that the timestampFormat of epoch-seconds on the target shape works", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat", - "method": "POST", "params": { "epochSecondsOnTarget": 1398796238 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonTimestamps" + } }, { + "id": "RestJsonJsonTimestampsWithHttpDateFormat", + "documentation": "Ensures that the timestampFormat of http-date works", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonTimestamps", "body": "{\n \"httpDate\": \"Tue, 29 Apr 2014 18:30:38 GMT\"\n}", "bodyMediaType": "application/json", - "documentation": "Ensures that the timestampFormat of http-date works", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithHttpDateFormat", - "method": "POST", "params": { "httpDate": 1398796238 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonTimestamps" + } }, { + "id": "RestJsonJsonTimestampsWithHttpDateOnTargetFormat", + "documentation": "Ensures that the timestampFormat of http-date on the target shape works", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/JsonTimestamps", "body": "{\n \"httpDateOnTarget\": \"Tue, 29 Apr 2014 18:30:38 GMT\"\n}", "bodyMediaType": "application/json", - "documentation": "Ensures that the timestampFormat of http-date on the target shape works", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithHttpDateOnTargetFormat", - "method": "POST", "params": { "httpDateOnTarget": 1398796238 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonTimestamps" + } } ], "responses": [ { + "id": "RestJsonJsonTimestamps", + "documentation": "Tests how normal timestamps are serialized", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"normal\": 1398796238\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Tests how normal timestamps are serialized", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestamps", "params": { "normal": 1398796238 - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonJsonTimestampsWithDateTimeFormat", + "documentation": "Ensures that the timestampFormat of date-time works like normal timestamps", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"dateTime\": \"2014-04-29T18:30:38Z\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that the timestampFormat of date-time works like normal timestamps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithDateTimeFormat", "params": { "dateTime": 1398796238 - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonJsonTimestampsWithDateTimeOnTargetFormat", + "documentation": "Ensures that the timestampFormat of date-time on the target shape works like normal timestamps", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"dateTimeOnTarget\": \"2014-04-29T18:30:38Z\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that the timestampFormat of date-time on the target shape works like normal timestamps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithDateTimeOnTargetFormat", "params": { "dateTimeOnTarget": 1398796238 - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonJsonTimestampsWithEpochSecondsFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds works", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"epochSeconds\": 1398796238\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that the timestampFormat of epoch-seconds works", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithEpochSecondsFormat", "params": { "epochSeconds": 1398796238 - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds on the target shape works", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"epochSecondsOnTarget\": 1398796238\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that the timestampFormat of epoch-seconds on the target shape works", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat", "params": { "epochSecondsOnTarget": 1398796238 - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonJsonTimestampsWithHttpDateFormat", + "documentation": "Ensures that the timestampFormat of http-date works", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"httpDate\": \"Tue, 29 Apr 2014 18:30:38 GMT\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that the timestampFormat of http-date works", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithHttpDateFormat", "params": { "httpDate": 1398796238 - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonJsonTimestampsWithHttpDateOnTargetFormat", + "documentation": "Ensures that the timestampFormat of http-date on the target shape works", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"httpDateOnTarget\": \"Tue, 29 Apr 2014 18:30:38 GMT\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensures that the timestampFormat of http-date on the target shape works", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonJsonTimestampsWithHttpDateOnTargetFormat", "params": { "httpDateOnTarget": 1398796238 - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#JsonUnions": { "requests": [ { + "id": "RestJsonSerializeStringUnionValue", + "documentation": "Serializes a string union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"stringValue\": \"foo\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a string union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeStringUnionValue", - "method": "PUT", "params": { "contents": { "stringValue": "foo" - } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } + } }, { + "id": "RestJsonSerializeBooleanUnionValue", + "documentation": "Serializes a boolean union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"booleanValue\": true\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a boolean union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeBooleanUnionValue", - "method": "PUT", "params": { "contents": { "booleanValue": true } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeNumberUnionValue", + "documentation": "Serializes a number union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"numberValue\": 1\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a number union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeNumberUnionValue", - "method": "PUT", "params": { "contents": { "numberValue": 1 } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeBlobUnionValue", + "documentation": "Serializes a blob union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"blobValue\": \"Zm9v\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a blob union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeBlobUnionValue", - "method": "PUT", "params": { "contents": { "blobValue": "foo" } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeTimestampUnionValue", + "documentation": "Serializes a timestamp union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"timestampValue\": 1398796238\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a timestamp union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeTimestampUnionValue", - "method": "PUT", "params": { "contents": { "timestampValue": 1398796238 } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeEnumUnionValue", + "documentation": "Serializes an enum union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"enumValue\": \"Foo\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes an enum union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeEnumUnionValue", - "method": "PUT", "params": { "contents": { "enumValue": "Foo" } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeListUnionValue", + "documentation": "Serializes a list union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"listValue\": [\"foo\", \"bar\"]\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a list union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeListUnionValue", - "method": "PUT", "params": { "contents": { "listValue": [ @@ -2865,19 +2867,19 @@ "bar" ] } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeMapUnionValue", + "documentation": "Serializes a map union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"mapValue\": {\n \"foo\": \"bar\",\n \"spam\": \"eggs\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a map union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeMapUnionValue", - "method": "PUT", "params": { "contents": { "mapValue": { @@ -2885,174 +2887,173 @@ "spam": "eggs" } } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeStructureUnionValue", + "documentation": "Serializes a structure union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a structure union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeStructureUnionValue", - "method": "PUT", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeRenamedStructureUnionValue", + "documentation": "Serializes a renamed structure union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"renamedStructureValue\": {\n \"salutation\": \"hello!\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a renamed structure union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeRenamedStructureUnionValue", - "method": "PUT", "params": { "contents": { "renamedStructureValue": { "salutation": "hello!" } } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } }, { + "id": "RestJsonSerializeNestedUnionValue", + "documentation": "Serializes a nested union value", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/JsonUnions", "body": "{\n \"contents\": {\n \"unionValue\": {\n \"stringValue\": \"foo\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a nested union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializeNestedUnionValue", - "method": "PUT", "params": { "contents": { "unionValue": { "stringValue": "foo" } } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/JsonUnions" + } } ], "responses": [ { + "id": "RestJsonDeserializeStringUnionValue", + "documentation": "Deserializes a string union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"stringValue\": \"foo\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a string union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeStringUnionValue", "params": { "contents": { "stringValue": "foo" } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeBooleanUnionValue", + "documentation": "Deserializes a boolean union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"booleanValue\": true\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a boolean union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeBooleanUnionValue", "params": { "contents": { "booleanValue": true } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeNumberUnionValue", + "documentation": "Deserializes a number union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"numberValue\": 1\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a number union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeNumberUnionValue", "params": { "contents": { "numberValue": 1 } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeBlobUnionValue", + "documentation": "Deserializes a blob union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"blobValue\": \"Zm9v\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a blob union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeBlobUnionValue", "params": { "contents": { "blobValue": "foo" } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeTimestampUnionValue", + "documentation": "Deserializes a timestamp union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"timestampValue\": 1398796238\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a timestamp union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeTimestampUnionValue", "params": { "contents": { "timestampValue": 1398796238 } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeEnumUnionValue", + "documentation": "Deserializes an enum union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"enumValue\": \"Foo\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes an enum union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeEnumUnionValue", "params": { "contents": { "enumValue": "Foo" } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeListUnionValue", + "documentation": "Deserializes a list union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"listValue\": [\"foo\", \"bar\"]\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a list union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeListUnionValue", "params": { "contents": { "listValue": [ @@ -3060,18 +3061,18 @@ "bar" ] } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeMapUnionValue", + "documentation": "Deserializes a map union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"mapValue\": {\n \"foo\": \"bar\",\n \"spam\": \"eggs\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a map union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeMapUnionValue", "params": { "contents": { "mapValue": { @@ -3079,158 +3080,159 @@ "spam": "eggs" } } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeStructureUnionValue", + "documentation": "Deserializes a structure union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a structure union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeStructureUnionValue", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeNestedUnionValue", + "documentation": "Deserializes a nested union value", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"unionValue\": {\n \"stringValue\": \"foo\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes a nested union value", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeNestedUnionValue", "params": { "contents": { "unionValue": { "stringValue": "foo" } } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializeIgnoreType", "appliesTo": "client", + "documentation": "Ignores an unrecognized __type property", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"contents\": {\n \"__type\": \"aws.protocoltests.json10#MyUnion\",\n \"structureValue\": {\n \"hi\": \"hello\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ignores an unrecognized __type property", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializeIgnoreType", "params": { "contents": { "structureValue": { "hi": "hello" } } - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#MediaTypeHeader": { "requests": [ { - "body": "", + "id": "MediaTypeHeaderInputBase64", "documentation": "Headers that target strings with a mediaType are base64 encoded", + "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/MediaTypeHeader", "headers": { "X-Json": "dHJ1ZQ==" }, - "id": "MediaTypeHeaderInputBase64", - "method": "GET", + "body": "", "params": { "json": "true" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/MediaTypeHeader" + } } ], "responses": [ { - "code": 200, + "id": "MediaTypeHeaderOutputBase64", "documentation": "Headers that target strings with a mediaType are base64 encoded", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { "X-Json": "dHJ1ZQ==" }, - "id": "MediaTypeHeaderOutputBase64", "params": { "json": "true" - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#NoInputAndNoOutput": { "requests": [ { - "body": "", - "documentation": "No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.", "id": "RestJsonNoInputAndNoOutput", - "method": "POST", + "documentation": "No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.", "protocol": "aws.protocols#restJson1", - "uri": "/NoInputAndNoOutput" + "method": "POST", + "uri": "/NoInputAndNoOutput", + "body": "" } ], "responses": [ { - "body": "", - "code": 200, - "documentation": "When an operation does not define output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.", "id": "RestJsonNoInputAndNoOutput", - "protocol": "aws.protocols#restJson1" + "documentation": "When an operation does not define output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": "" } ] }, "aws.protocoltests.restjson#NoInputAndOutput": { "requests": [ { - "body": "", - "documentation": "No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.", "id": "RestJsonNoInputAndOutput", - "method": "POST", + "documentation": "No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.", "protocol": "aws.protocols#restJson1", - "uri": "/NoInputAndOutputOutput" + "method": "POST", + "uri": "/NoInputAndOutputOutput", + "body": "" } ], "responses": [ { + "id": "RestJsonNoInputAndOutputWithJson", + "documentation": "Operations that define output and do not bind anything to\nthe payload return a JSON object in the response.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Operations that define output and do not bind anything to\nthe payload return a JSON object in the response.", "headers": { "Content-Type": "application/json" - }, - "id": "RestJsonNoInputAndOutputWithJson", - "protocol": "aws.protocols#restJson1" + } }, { - "appliesTo": "client", - "body": "", - "code": 200, - "documentation": "This test is similar to RestJsonNoInputAndOutputWithJson, but\nit ensures that clients can gracefully handle responses that\nomit a JSON payload.", "id": "RestJsonNoInputAndOutputNoPayload", - "protocol": "aws.protocols#restJson1" + "documentation": "This test is similar to RestJsonNoInputAndOutputWithJson, but\nit ensures that clients can gracefully handle responses that\nomit a JSON payload.", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": "", + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#NullAndEmptyHeadersClient": { "requests": [ { - "appliesTo": "client", - "body": "", + "id": "RestJsonNullAndEmptyHeaders", "documentation": "Do not send null values, but do send empty strings and empty lists over the wire in headers", + "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/NullAndEmptyHeadersClient", "forbidHeaders": [ "X-A" ], @@ -3238,316 +3240,319 @@ "X-B": "", "X-C": "" }, - "id": "RestJsonNullAndEmptyHeaders", - "method": "GET", + "body": "", "params": { "a": null, "b": "", "c": [] }, - "protocol": "aws.protocols#restJson1", - "uri": "/NullAndEmptyHeadersClient" + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#OmitsNullSerializesEmptyString": { "requests": [ { - "appliesTo": "client", - "body": "", - "documentation": "Omits null query values", "id": "RestJsonOmitsNullQuery", + "documentation": "Omits null query values", + "protocol": "aws.protocols#restJson1", "method": "GET", + "uri": "/OmitsNullSerializesEmptyString", + "body": "", "params": { "nullValue": null }, - "protocol": "aws.protocols#restJson1", - "uri": "/OmitsNullSerializesEmptyString" + "appliesTo": "client" }, { - "body": "", - "documentation": "Serializes empty query strings", "id": "RestJsonSerializesEmptyQueryValue", - "method": "GET", - "params": { - "emptyString": "" - }, + "documentation": "Serializes empty query strings", "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/OmitsNullSerializesEmptyString", + "body": "", "queryParams": [ "Empty=" ], - "uri": "/OmitsNullSerializesEmptyString" + "params": { + "emptyString": "" + } } ] }, "aws.protocoltests.restjson#OmitsSerializingEmptyLists": { "requests": [ { - "body": "", - "documentation": "Supports omitting empty lists.", "id": "RestJsonOmitsEmptyListQueryValues", + "documentation": "Supports omitting empty lists.", + "protocol": "aws.protocols#restJson1", "method": "POST", + "uri": "/OmitsSerializingEmptyLists", + "body": "", + "queryParams": [], "params": { - "queryBooleanList": [], + "queryStringList": [], + "queryIntegerList": [], "queryDoubleList": [], + "queryBooleanList": [], + "queryTimestampList": [], "queryEnumList": [], - "queryIntegerEnumList": [], - "queryIntegerList": [], - "queryStringList": [], - "queryTimestampList": [] - }, - "protocol": "aws.protocols#restJson1", - "queryParams": [], - "uri": "/OmitsSerializingEmptyLists" + "queryIntegerEnumList": [] + } } ] }, "aws.protocoltests.restjson#OperationWithDefaults": { "requests": [ { + "id": "RestJsonClientPopulatesDefaultValuesInInput", + "documentation": "Client populates default values in input.", "appliesTo": "client", - "body": "{\n \"defaults\": {\n \"defaultString\": \"hi\",\n \"defaultBoolean\": true,\n \"defaultList\": [],\n \"defaultDocumentMap\": {},\n \"defaultDocumentString\": \"hi\",\n \"defaultDocumentBoolean\": true,\n \"defaultDocumentList\": [],\n \"defaultTimestamp\": 0,\n \"defaultBlob\": \"YWJj\",\n \"defaultByte\": 1,\n \"defaultShort\": 1,\n \"defaultInteger\": 10,\n \"defaultLong\": 100,\n \"defaultFloat\": 1.0,\n \"defaultDouble\": 1.0,\n \"defaultMap\": {},\n \"defaultEnum\": \"FOO\",\n \"defaultIntEnum\": 1,\n \"emptyString\": \"\",\n \"falseBoolean\": false,\n \"emptyBlob\": \"\",\n \"zeroByte\": 0,\n \"zeroShort\": 0,\n \"zeroInteger\": 0,\n \"zeroLong\": 0,\n \"zeroFloat\": 0.0,\n \"zeroDouble\": 0.0\n }\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client populates default values in input.", + "uri": "/OperationWithDefaults", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientPopulatesDefaultValuesInInput", - "method": "POST", + "body": "{\n \"defaults\": {\n \"defaultString\": \"hi\",\n \"defaultBoolean\": true,\n \"defaultList\": [],\n \"defaultDocumentMap\": {},\n \"defaultDocumentString\": \"hi\",\n \"defaultDocumentBoolean\": true,\n \"defaultDocumentList\": [],\n \"defaultTimestamp\": 0,\n \"defaultBlob\": \"YWJj\",\n \"defaultByte\": 1,\n \"defaultShort\": 1,\n \"defaultInteger\": 10,\n \"defaultLong\": 100,\n \"defaultFloat\": 1.0,\n \"defaultDouble\": 1.0,\n \"defaultMap\": {},\n \"defaultEnum\": \"FOO\",\n \"defaultIntEnum\": 1,\n \"emptyString\": \"\",\n \"falseBoolean\": false,\n \"emptyBlob\": \"\",\n \"zeroByte\": 0,\n \"zeroShort\": 0,\n \"zeroInteger\": 0,\n \"zeroLong\": 0,\n \"zeroFloat\": 0.0,\n \"zeroDouble\": 0.0\n }\n}", "params": { "defaults": {} - }, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ], - "uri": "/OperationWithDefaults" + } }, { + "id": "RestJsonClientSkipsTopLevelDefaultValuesInInput", + "documentation": "Client skips top level default values in input.", "appliesTo": "client", - "body": "{\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client skips top level default values in input.", + "uri": "/OperationWithDefaults", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientSkipsTopLevelDefaultValuesInInput", - "method": "POST", - "params": {}, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ], - "uri": "/OperationWithDefaults" + "body": "{\n}", + "params": {} }, { + "id": "RestJsonClientUsesExplicitlyProvidedMemberValuesOverDefaults", + "documentation": "Client uses explicitly provided member values over defaults", "appliesTo": "client", - "body": "{\n \"defaults\": {\n \"defaultString\": \"bye\",\n \"defaultBoolean\": true,\n \"defaultList\": [\"a\"],\n \"defaultDocumentMap\": {\"name\": \"Jack\"},\n \"defaultDocumentString\": \"bye\",\n \"defaultDocumentBoolean\": true,\n \"defaultDocumentList\": [\"b\"],\n \"defaultNullDocument\": \"notNull\",\n \"defaultTimestamp\": 1,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n }\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client uses explicitly provided member values over defaults", + "uri": "/OperationWithDefaults", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientUsesExplicitlyProvidedMemberValuesOverDefaults", - "method": "POST", "params": { "defaults": { - "defaultBlob": "hi", + "defaultString": "bye", "defaultBoolean": true, - "defaultByte": 2, - "defaultDocumentBoolean": true, - "defaultDocumentList": [ - "b" + "defaultList": [ + "a" ], "defaultDocumentMap": { "name": "Jack" }, "defaultDocumentString": "bye", - "defaultDouble": 2.0, - "defaultEnum": "BAR", - "defaultFloat": 2.0, - "defaultIntEnum": 2, - "defaultInteger": 20, - "defaultList": [ - "a" + "defaultDocumentBoolean": true, + "defaultDocumentList": [ + "b" ], + "defaultNullDocument": "notNull", + "defaultTimestamp": 1, + "defaultBlob": "hi", + "defaultByte": 2, + "defaultShort": 2, + "defaultInteger": 20, "defaultLong": 200, + "defaultFloat": 2.0, + "defaultDouble": 2.0, "defaultMap": { "name": "Jack" }, - "defaultNullDocument": "notNull", - "defaultShort": 2, - "defaultString": "bye", - "defaultTimestamp": 1, - "emptyBlob": "hi", + "defaultEnum": "BAR", + "defaultIntEnum": 2, "emptyString": "foo", "falseBoolean": true, + "emptyBlob": "hi", "zeroByte": 1, - "zeroDouble": 1.0, - "zeroFloat": 1.0, + "zeroShort": 1, "zeroInteger": 1, "zeroLong": 1, - "zeroShort": 1 + "zeroFloat": 1.0, + "zeroDouble": 1.0 } }, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ], - "uri": "/OperationWithDefaults" + "body": "{\n \"defaults\": {\n \"defaultString\": \"bye\",\n \"defaultBoolean\": true,\n \"defaultList\": [\"a\"],\n \"defaultDocumentMap\": {\"name\": \"Jack\"},\n \"defaultDocumentString\": \"bye\",\n \"defaultDocumentBoolean\": true,\n \"defaultDocumentList\": [\"b\"],\n \"defaultNullDocument\": \"notNull\",\n \"defaultTimestamp\": 1,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n }\n}" }, { + "id": "RestJsonClientUsesExplicitlyProvidedValuesInTopLevel", + "documentation": "Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.", "appliesTo": "client", - "body": "{\n \"topLevelDefault\": \"hi\",\n \"otherTopLevelDefault\": 0\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.", + "uri": "/OperationWithDefaults", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientUsesExplicitlyProvidedValuesInTopLevel", - "method": "POST", + "body": "{\n \"topLevelDefault\": \"hi\",\n \"otherTopLevelDefault\": 0\n}", "params": { - "otherTopLevelDefault": 0, - "topLevelDefault": "hi" - }, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ], - "uri": "/OperationWithDefaults" + "topLevelDefault": "hi", + "otherTopLevelDefault": 0 + } }, { + "id": "RestJsonClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional", + "documentation": "Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.", "appliesTo": "client", - "body": "{\n \"clientOptionalDefaults\": {}\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.", + "uri": "/OperationWithDefaults", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional", - "method": "POST", + "body": "{\n \"clientOptionalDefaults\": {}\n}", "params": { "clientOptionalDefaults": {} - }, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ], - "uri": "/OperationWithDefaults" + } } ], "responses": [ { + "id": "RestJsonClientPopulatesDefaultsValuesWhenMissingInResponse", + "documentation": "Client populates default values when missing in response.", "appliesTo": "client", - "body": "{}", - "bodyMediaType": "application/json", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", "code": 200, - "documentation": "Client populates default values when missing in response.", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientPopulatesDefaultsValuesWhenMissingInResponse", + "body": "{}", "params": { - "defaultBlob": "abc", + "defaultString": "hi", "defaultBoolean": true, - "defaultByte": 1, - "defaultDocumentBoolean": true, - "defaultDocumentList": [], + "defaultList": [], "defaultDocumentMap": {}, "defaultDocumentString": "hi", - "defaultDouble": 1.0, - "defaultEnum": "FOO", - "defaultFloat": 1.0, - "defaultIntEnum": 1, + "defaultDocumentBoolean": true, + "defaultDocumentList": [], + "defaultTimestamp": 0, + "defaultBlob": "abc", + "defaultByte": 1, + "defaultShort": 1, "defaultInteger": 10, - "defaultList": [], "defaultLong": 100, + "defaultFloat": 1.0, + "defaultDouble": 1.0, "defaultMap": {}, - "defaultShort": 1, - "defaultString": "hi", - "defaultTimestamp": 0, - "emptyBlob": "", + "defaultEnum": "FOO", + "defaultIntEnum": 1, "emptyString": "", "falseBoolean": false, + "emptyBlob": "", "zeroByte": 0, - "zeroDouble": 0.0, - "zeroFloat": 0.0, + "zeroShort": 0, "zeroInteger": 0, "zeroLong": 0, - "zeroShort": 0 - }, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ] + "zeroFloat": 0.0, + "zeroDouble": 0.0 + } }, { + "id": "RestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse", + "documentation": "Client ignores default values if member values are present in the response.", "appliesTo": "client", - "body": "{\n \"defaultString\": \"bye\",\n \"defaultBoolean\": false,\n \"defaultList\": [\"a\"],\n \"defaultDocumentMap\": {\"name\": \"Jack\"},\n \"defaultDocumentString\": \"bye\",\n \"defaultDocumentBoolean\": false,\n \"defaultDocumentList\": [\"b\"],\n \"defaultNullDocument\": \"notNull\",\n \"defaultTimestamp\": 2,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n}", - "bodyMediaType": "application/json", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", "code": 200, - "documentation": "Client ignores default values if member values are present in the response.", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse", + "body": "{\n \"defaultString\": \"bye\",\n \"defaultBoolean\": false,\n \"defaultList\": [\"a\"],\n \"defaultDocumentMap\": {\"name\": \"Jack\"},\n \"defaultDocumentString\": \"bye\",\n \"defaultDocumentBoolean\": false,\n \"defaultDocumentList\": [\"b\"],\n \"defaultNullDocument\": \"notNull\",\n \"defaultTimestamp\": 2,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n}", "params": { - "defaultBlob": "hi", + "defaultString": "bye", "defaultBoolean": false, - "defaultByte": 2, - "defaultDocumentBoolean": false, - "defaultDocumentList": [ - "b" + "defaultList": [ + "a" ], "defaultDocumentMap": { "name": "Jack" }, "defaultDocumentString": "bye", - "defaultDouble": 2.0, - "defaultEnum": "BAR", - "defaultFloat": 2.0, - "defaultIntEnum": 2, - "defaultInteger": 20, - "defaultList": [ - "a" + "defaultDocumentBoolean": false, + "defaultDocumentList": [ + "b" ], + "defaultNullDocument": "notNull", + "defaultTimestamp": 2, + "defaultBlob": "hi", + "defaultByte": 2, + "defaultShort": 2, + "defaultInteger": 20, "defaultLong": 200, + "defaultFloat": 2.0, + "defaultDouble": 2.0, "defaultMap": { "name": "Jack" }, - "defaultNullDocument": "notNull", - "defaultShort": 2, - "defaultString": "bye", - "defaultTimestamp": 2, - "emptyBlob": "hi", + "defaultEnum": "BAR", + "defaultIntEnum": 2, "emptyString": "foo", "falseBoolean": true, + "emptyBlob": "hi", "zeroByte": 1, - "zeroDouble": 1.0, - "zeroFloat": 1.0, + "zeroShort": 1, "zeroInteger": 1, "zeroLong": 1, - "zeroShort": 1 - }, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ] + "zeroFloat": 1.0, + "zeroDouble": 1.0 + } } ] }, "aws.protocoltests.restjson#OperationWithNestedStructure": { "requests": [ { + "id": "RestJsonClientPopulatesNestedDefaultValuesWhenMissing", + "documentation": "Client populates nested default values when missing.", "appliesTo": "client", - "body": "{\n \"topLevel\": {\n \"dialog\": {\n \"language\": \"en\",\n \"greeting\": \"hi\"\n },\n \"dialogList\": [\n {\n \"greeting\": \"hi\"\n },\n {\n \"greeting\": \"hi\",\n \"farewell\": {\n \"phrase\": \"bye\"\n }\n },\n {\n \"language\": \"it\",\n \"greeting\": \"ciao\",\n \"farewell\": {\n \"phrase\": \"arrivederci\"\n }\n }\n ],\n \"dialogMap\": {\n \"emptyDialog\": {\n \"greeting\": \"hi\"\n },\n \"partialEmptyDialog\": {\n \"language\": \"en\",\n \"greeting\": \"hi\",\n \"farewell\": {\n \"phrase\": \"bye\"\n }\n },\n \"nonEmptyDialog\": {\n \"greeting\": \"konnichiwa\",\n \"farewell\": {\n \"phrase\": \"sayonara\"\n }\n }\n }\n }\n}", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client populates nested default values when missing.", + "uri": "/OperationWithNestedStructure", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientPopulatesNestedDefaultValuesWhenMissing", - "method": "POST", + "body": "{\n \"topLevel\": {\n \"dialog\": {\n \"language\": \"en\",\n \"greeting\": \"hi\"\n },\n \"dialogList\": [\n {\n \"greeting\": \"hi\"\n },\n {\n \"greeting\": \"hi\",\n \"farewell\": {\n \"phrase\": \"bye\"\n }\n },\n {\n \"language\": \"it\",\n \"greeting\": \"ciao\",\n \"farewell\": {\n \"phrase\": \"arrivederci\"\n }\n }\n ],\n \"dialogMap\": {\n \"emptyDialog\": {\n \"greeting\": \"hi\"\n },\n \"partialEmptyDialog\": {\n \"language\": \"en\",\n \"greeting\": \"hi\",\n \"farewell\": {\n \"phrase\": \"bye\"\n }\n },\n \"nonEmptyDialog\": {\n \"greeting\": \"konnichiwa\",\n \"farewell\": {\n \"phrase\": \"sayonara\"\n }\n }\n }\n }\n}", "params": { "topLevel": { "dialog": { @@ -3559,363 +3564,360 @@ "farewell": {} }, { + "language": "it", + "greeting": "ciao", "farewell": { "phrase": "arrivederci" - }, - "greeting": "ciao", - "language": "it" + } } ], "dialogMap": { "emptyDialog": {}, + "partialEmptyDialog": { + "language": "en", + "farewell": {} + }, "nonEmptyDialog": { + "greeting": "konnichiwa", "farewell": { "phrase": "sayonara" - }, - "greeting": "konnichiwa" - }, - "partialEmptyDialog": { - "farewell": {}, - "language": "en" + } } } } - }, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ], - "uri": "/OperationWithNestedStructure" + } } ], "responses": [ { + "id": "RestJsonClientPopulatesNestedDefaultsWhenMissingInResponseBody", + "documentation": "Client populates nested default values when missing in response body.", "appliesTo": "client", - "body": "{\n \"dialog\": {\n \"language\": \"en\"\n },\n \"dialogList\": [\n {\n },\n {\n \"farewell\": {}\n },\n {\n \"language\": \"it\",\n \"greeting\": \"ciao\",\n \"farewell\": {\n \"phrase\": \"arrivederci\"\n }\n }\n ],\n \"dialogMap\": {\n \"emptyDialog\": {\n },\n \"partialEmptyDialog\": {\n \"language\": \"en\",\n \"farewell\": {}\n },\n \"nonEmptyDialog\": {\n \"greeting\": \"konnichiwa\",\n \"farewell\": {\n \"phrase\": \"sayonara\"\n }\n }\n }\n}", - "bodyMediaType": "application/json", + "tags": [ + "defaults" + ], + "protocol": "aws.protocols#restJson1", "code": 200, - "documentation": "Client populates nested default values when missing in response body.", + "bodyMediaType": "application/json", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonClientPopulatesNestedDefaultsWhenMissingInResponseBody", + "body": "{\n \"dialog\": {\n \"language\": \"en\"\n },\n \"dialogList\": [\n {\n },\n {\n \"farewell\": {}\n },\n {\n \"language\": \"it\",\n \"greeting\": \"ciao\",\n \"farewell\": {\n \"phrase\": \"arrivederci\"\n }\n }\n ],\n \"dialogMap\": {\n \"emptyDialog\": {\n },\n \"partialEmptyDialog\": {\n \"language\": \"en\",\n \"farewell\": {}\n },\n \"nonEmptyDialog\": {\n \"greeting\": \"konnichiwa\",\n \"farewell\": {\n \"phrase\": \"sayonara\"\n }\n }\n }\n}", "params": { "dialog": { - "greeting": "hi", - "language": "en" + "language": "en", + "greeting": "hi" }, "dialogList": [ { "greeting": "hi" }, { + "greeting": "hi", "farewell": { "phrase": "bye" - }, - "greeting": "hi" + } }, { + "language": "it", + "greeting": "ciao", "farewell": { "phrase": "arrivederci" - }, - "greeting": "ciao", - "language": "it" + } } ], "dialogMap": { "emptyDialog": { "greeting": "hi" }, - "nonEmptyDialog": { - "farewell": { - "phrase": "sayonara" - }, - "greeting": "konnichiwa" - }, "partialEmptyDialog": { + "language": "en", + "greeting": "hi", "farewell": { "phrase": "bye" - }, - "greeting": "hi", - "language": "en" + } + }, + "nonEmptyDialog": { + "greeting": "konnichiwa", + "farewell": { + "phrase": "sayonara" + } } } - }, - "protocol": "aws.protocols#restJson1", - "tags": [ - "defaults" - ] + } } ] }, "aws.protocoltests.restjson#PostPlayerAction": { "requests": [ { + "id": "RestJsonInputUnionWithUnitMember", + "documentation": "Unit types in unions are serialized like normal structures in requests.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/PostPlayerAction", "body": "{\n \"action\": {\n \"quit\": {}\n }\n}", "bodyMediaType": "application/json", - "documentation": "Unit types in unions are serialized like normal structures in requests.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonInputUnionWithUnitMember", - "method": "POST", "params": { "action": { "quit": {} } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/PostPlayerAction" + } } ], "responses": [ { + "id": "RestJsonOutputUnionWithUnitMember", + "documentation": "Unit types in unions are serialized like normal structures in responses.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"action\": {\n \"quit\": {}\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Unit types in unions are serialized like normal structures in responses.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonOutputUnionWithUnitMember", "params": { "action": { "quit": {} } - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#PostUnionWithJsonName": { "requests": [ { + "id": "PostUnionWithJsonNameRequest1", + "documentation": "Tests that jsonName works with union members.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/PostUnionWithJsonName", "body": "{\n \"value\": {\n \"FOO\": \"hi\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Tests that jsonName works with union members.", "headers": { "Content-Type": "application/json" }, - "id": "PostUnionWithJsonNameRequest1", - "method": "POST", "params": { "value": { "foo": "hi" } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/PostUnionWithJsonName" + } }, { + "id": "PostUnionWithJsonNameRequest2", + "documentation": "Tests that jsonName works with union members.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/PostUnionWithJsonName", "body": "{\n \"value\": {\n \"_baz\": \"hi\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Tests that jsonName works with union members.", "headers": { "Content-Type": "application/json" }, - "id": "PostUnionWithJsonNameRequest2", - "method": "POST", "params": { "value": { "baz": "hi" } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/PostUnionWithJsonName" + } }, { + "id": "PostUnionWithJsonNameRequest3", + "documentation": "Tests that jsonName works with union members.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/PostUnionWithJsonName", "body": "{\n \"value\": {\n \"bar\": \"hi\"\n }\n}", "bodyMediaType": "application/json", - "documentation": "Tests that jsonName works with union members.", "headers": { "Content-Type": "application/json" }, - "id": "PostUnionWithJsonNameRequest3", - "method": "POST", "params": { "value": { "bar": "hi" } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/PostUnionWithJsonName" + } } ], "responses": [ { + "id": "PostUnionWithJsonNameResponse1", + "documentation": "Tests that jsonName works with union members.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"value\": {\n \"FOO\": \"hi\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Tests that jsonName works with union members.", "headers": { "Content-Type": "application/json" }, - "id": "PostUnionWithJsonNameResponse1", "params": { "value": { "foo": "hi" } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "PostUnionWithJsonNameResponse2", + "documentation": "Tests that jsonName works with union members.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"value\": {\n \"_baz\": \"hi\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Tests that jsonName works with union members.", "headers": { "Content-Type": "application/json" }, - "id": "PostUnionWithJsonNameResponse2", "params": { "value": { "baz": "hi" } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "PostUnionWithJsonNameResponse3", + "documentation": "Tests that jsonName works with union members.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"value\": {\n \"bar\": \"hi\"\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Tests that jsonName works with union members.", "headers": { "Content-Type": "application/json" }, - "id": "PostUnionWithJsonNameResponse3", "params": { "value": { "bar": "hi" } - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#PutWithContentEncoding": { "requests": [ { - "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", - "headers": { - "Content-Encoding": "gzip" - }, "id": "SDKAppliedContentEncoding_restJson1", - "method": "POST", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", + "protocol": "aws.protocols#restJson1", "params": { "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0Dpt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WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" }, - "protocol": "aws.protocols#restJson1", - "uri": "/requestcompression/putcontentwithencoding" + "method": "POST", + "uri": "/requestcompression/putcontentwithencoding", + "headers": { + "Content-Encoding": "gzip" + } }, { - "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n", - "headers": { - "Content-Encoding": "custom, gzip" - }, "id": "SDKAppendedGzipAfterProvidedEncoding_restJson1", - "method": "POST", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n", + "protocol": "aws.protocols#restJson1", "params": { - "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9S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EcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" }, - "protocol": "aws.protocols#restJson1", - "uri": "/requestcompression/putcontentwithencoding" + "method": "POST", + "uri": "/requestcompression/putcontentwithencoding", + "headers": { + "Content-Encoding": "custom, gzip" + } } ] }, "aws.protocoltests.restjson#QueryIdempotencyTokenAutoFill": { "requests": [ { - "appliesTo": "client", - "body": "", - "documentation": "Automatically adds idempotency token when not set", "id": "RestJsonQueryIdempotencyTokenAutoFill", - "method": "POST", + "documentation": "Automatically adds idempotency token when not set", "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/QueryIdempotencyTokenAutoFill", + "body": "", "queryParams": [ "token=00000000-0000-4000-8000-000000000000" ], - "uri": "/QueryIdempotencyTokenAutoFill" + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "", - "documentation": "Uses the given idempotency token as-is", "id": "RestJsonQueryIdempotencyTokenAutoFillIsSet", - "method": "POST", - "params": { - "token": "00000000-0000-4000-8000-000000000000" - }, + "documentation": "Uses the given idempotency token as-is", "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/QueryIdempotencyTokenAutoFill", + "body": "", "queryParams": [ "token=00000000-0000-4000-8000-000000000000" ], - "uri": "/QueryIdempotencyTokenAutoFill" + "params": { + "token": "00000000-0000-4000-8000-000000000000" + }, + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#QueryParamsAsStringListMap": { "requests": [ { - "appliesTo": "client", - "body": "", - "documentation": "Serialize query params from map of list strings", "id": "RestJsonQueryParamsStringListMap", + "documentation": "Serialize query params from map of list strings", + "protocol": "aws.protocols#restJson1", "method": "POST", + "uri": "/StringListMap", + "body": "", + "queryParams": [ + "corge=named", + "baz=bar", + "baz=qux" + ], "params": { + "qux": "named", "foo": { "baz": [ "bar", "qux" ] - }, - "qux": "named" + } }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "corge=named", - "baz=bar", - "baz=qux" - ], - "uri": "/StringListMap" + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#QueryPrecedence": { "requests": [ { - "appliesTo": "client", - "body": "", - "documentation": "Prefer named query parameters when serializing", "id": "RestJsonQueryPrecedence", + "documentation": "Prefer named query parameters when serializing", + "protocol": "aws.protocols#restJson1", "method": "POST", + "uri": "/Precedence", + "body": "", + "queryParams": [ + "bar=named", + "qux=alsoFromMap" + ], "params": { + "foo": "named", "baz": { "bar": "fromMap", "qux": "alsoFromMap" - }, - "foo": "named" + } }, - "protocol": "aws.protocols#restJson1", - "queryParams": [ - "bar=named", - "qux=alsoFromMap" - ], - "uri": "/Precedence" + "appliesTo": "client" } ] }, "aws.protocoltests.restjson#RecursiveShapes": { "requests": [ { + "id": "RestJsonRecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/RecursiveShapes", "body": "{\n \"nested\": {\n \"foo\": \"Foo1\",\n \"nested\": {\n \"bar\": \"Bar1\",\n \"recursiveMember\": {\n \"foo\": \"Foo2\",\n \"nested\": {\n \"bar\": \"Bar2\"\n }\n }\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes recursive structures", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonRecursiveShapes", - "method": "PUT", "params": { "nested": { "foo": "Foo1", @@ -3929,21 +3931,20 @@ } } } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/RecursiveShapes" + } } ], "responses": [ { + "id": "RestJsonRecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"nested\": {\n \"foo\": \"Foo1\",\n \"nested\": {\n \"bar\": \"Bar1\",\n \"recursiveMember\": {\n \"foo\": \"Foo2\",\n \"nested\": {\n \"bar\": \"Bar2\"\n }\n }\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes recursive structures", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonRecursiveShapes", "params": { "nested": { "foo": "Foo1", @@ -3957,270 +3958,271 @@ } } } - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#SimpleScalarProperties": { "requests": [ { + "id": "RestJsonSimpleScalarProperties", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/SimpleScalarProperties", "body": "{\n \"stringValue\": \"string\",\n \"trueBooleanValue\": true,\n \"falseBooleanValue\": false,\n \"byteValue\": 1,\n \"shortValue\": 2,\n \"integerValue\": 3,\n \"longValue\": 4,\n \"floatValue\": 5.5,\n \"DoubleDribble\": 6.5\n}", "bodyMediaType": "application/json", - "documentation": "Serializes simple scalar properties", "headers": { "Content-Type": "application/json", "X-Foo": "Foo" }, - "id": "RestJsonSimpleScalarProperties", - "method": "PUT", "params": { - "byteValue": 1, - "doubleValue": 6.5, - "falseBooleanValue": false, - "floatValue": 5.5, "foo": "Foo", + "stringValue": "string", + "trueBooleanValue": true, + "falseBooleanValue": false, + "byteValue": 1, + "shortValue": 2, "integerValue": 3, "longValue": 4, - "shortValue": 2, - "stringValue": "string", - "trueBooleanValue": true - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SimpleScalarProperties" + "floatValue": 5.5, + "doubleValue": 6.5 + } }, { - "appliesTo": "client", + "id": "RestJsonDoesntSerializeNullStructureValues", + "documentation": "Rest Json should not serialize null structure values", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/SimpleScalarProperties", "body": "{}", "bodyMediaType": "application/json", - "documentation": "Rest Json should not serialize null structure values", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDoesntSerializeNullStructureValues", - "method": "PUT", "params": { "stringValue": null }, - "protocol": "aws.protocols#restJson1", - "uri": "/SimpleScalarProperties" + "appliesTo": "client" }, { + "id": "RestJsonSupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/SimpleScalarProperties", "body": "{\n \"floatValue\": \"NaN\",\n \"DoubleDribble\": \"NaN\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling NaN float values.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSupportsNaNFloatInputs", - "method": "PUT", "params": { - "doubleValue": "NaN", - "floatValue": "NaN" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SimpleScalarProperties" + "floatValue": "NaN", + "doubleValue": "NaN" + } }, { + "id": "RestJsonSupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/SimpleScalarProperties", "body": "{\n \"floatValue\": \"Infinity\",\n \"DoubleDribble\": \"Infinity\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling Infinity float values.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSupportsInfinityFloatInputs", - "method": "PUT", "params": { - "doubleValue": "Infinity", - "floatValue": "Infinity" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SimpleScalarProperties" + "floatValue": "Infinity", + "doubleValue": "Infinity" + } }, { + "id": "RestJsonSupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/SimpleScalarProperties", "body": "{\n \"floatValue\": \"-Infinity\",\n \"DoubleDribble\": \"-Infinity\"\n}", "bodyMediaType": "application/json", - "documentation": "Supports handling -Infinity float values.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSupportsNegativeInfinityFloatInputs", - "method": "PUT", "params": { - "doubleValue": "-Infinity", - "floatValue": "-Infinity" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SimpleScalarProperties" + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } } ], "responses": [ { + "id": "RestJsonSimpleScalarProperties", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringValue\": \"string\",\n \"trueBooleanValue\": true,\n \"falseBooleanValue\": false,\n \"byteValue\": 1,\n \"shortValue\": 2,\n \"integerValue\": 3,\n \"longValue\": 4,\n \"floatValue\": 5.5,\n \"DoubleDribble\": 6.5\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes simple scalar properties", "headers": { "Content-Type": "application/json", "X-Foo": "Foo" }, - "id": "RestJsonSimpleScalarProperties", "params": { - "byteValue": 1, - "doubleValue": 6.5, - "falseBooleanValue": false, - "floatValue": 5.5, "foo": "Foo", + "stringValue": "string", + "trueBooleanValue": true, + "falseBooleanValue": false, + "byteValue": 1, + "shortValue": 2, "integerValue": 3, "longValue": 4, - "shortValue": 2, - "stringValue": "string", - "trueBooleanValue": true - }, - "protocol": "aws.protocols#restJson1" + "floatValue": 5.5, + "doubleValue": 6.5 + } }, { - "appliesTo": "client", + "id": "RestJsonDoesntDeserializeNullStructureValues", + "documentation": "Rest Json should not deserialize null structure values", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"stringValue\": null\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Rest Json should not deserialize null structure values", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDoesntDeserializeNullStructureValues", "params": {}, - "protocol": "aws.protocols#restJson1" + "appliesTo": "client" }, { + "id": "RestJsonSupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"floatValue\": \"NaN\",\n \"DoubleDribble\": \"NaN\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling NaN float values.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSupportsNaNFloatInputs", "params": { - "doubleValue": "NaN", - "floatValue": "NaN" - }, - "protocol": "aws.protocols#restJson1" + "floatValue": "NaN", + "doubleValue": "NaN" + } }, { + "id": "RestJsonSupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"floatValue\": \"Infinity\",\n \"DoubleDribble\": \"Infinity\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling Infinity float values.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSupportsInfinityFloatInputs", "params": { - "doubleValue": "Infinity", - "floatValue": "Infinity" - }, - "protocol": "aws.protocols#restJson1" + "floatValue": "Infinity", + "doubleValue": "Infinity" + } }, { + "id": "RestJsonSupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"floatValue\": \"-Infinity\",\n \"DoubleDribble\": \"-Infinity\"\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Supports handling -Infinity float values.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSupportsNegativeInfinityFloatInputs", "params": { - "doubleValue": "-Infinity", - "floatValue": "-Infinity" - }, - "protocol": "aws.protocols#restJson1" + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } } ] }, "aws.protocoltests.restjson#SparseJsonLists": { "requests": [ { + "id": "RestJsonSparseListsSerializeNull", + "documentation": "Serializes null values in sparse lists", + "protocol": "aws.protocols#restJson1", + "method": "PUT", + "uri": "/SparseJsonLists", "body": "{\n \"sparseStringList\": [\n null,\n \"hi\"\n ],\n \"sparseShortList\": [\n null,\n 2\n ]\n}", "bodyMediaType": "application/json", - "documentation": "Serializes null values in sparse lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSparseListsSerializeNull", - "method": "PUT", "params": { - "sparseShortList": [ - null, - 2 - ], "sparseStringList": [ null, "hi" + ], + "sparseShortList": [ + null, + 2 ] - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SparseJsonLists" + } } ], "responses": [ { + "id": "RestJsonSparseListsSerializeNull", + "documentation": "Serializes null values in sparse lists", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"sparseStringList\": [\n null,\n \"hi\"\n ],\n \"sparseShortList\": [\n null,\n 2\n ]\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes null values in sparse lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSparseListsSerializeNull", "params": { - "sparseShortList": [ - null, - 2 - ], "sparseStringList": [ null, "hi" + ], + "sparseShortList": [ + null, + 2 ] - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#SparseJsonMaps": { "requests": [ { + "id": "RestJsonSparseJsonMaps", + "documentation": "Serializes JSON maps", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/SparseJsonMaps", "body": "{\n \"sparseStructMap\": {\n \"foo\": {\n \"hi\": \"there\"\n },\n \"baz\": {\n \"hi\": \"bye\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes JSON maps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSparseJsonMaps", - "method": "POST", "params": { "sparseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SparseJsonMaps" + } }, { + "id": "RestJsonSerializesSparseNullMapValues", + "documentation": "Serializes JSON map values in sparse maps", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/SparseJsonMaps", "body": "{\n \"sparseBooleanMap\": {\n \"x\": null\n },\n \"sparseNumberMap\": {\n \"x\": null\n },\n \"sparseStringMap\": {\n \"x\": null\n },\n \"sparseStructMap\": {\n \"x\": null\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes JSON map values in sparse maps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializesSparseNullMapValues", - "method": "POST", "params": { "sparseBooleanMap": { "x": null @@ -4234,39 +4236,39 @@ "sparseStructMap": { "x": null } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SparseJsonMaps" + } }, { + "id": "RestJsonSerializesZeroValuesInSparseMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/SparseJsonMaps", "body": "{\n \"sparseNumberMap\": {\n \"x\": 0\n },\n \"sparseBooleanMap\": {\n \"x\": false\n }\n}", "bodyMediaType": "application/json", - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializesZeroValuesInSparseMaps", - "method": "POST", "params": { - "sparseBooleanMap": { - "x": false - }, "sparseNumberMap": { "x": 0 + }, + "sparseBooleanMap": { + "x": false } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SparseJsonMaps" + } }, { + "id": "RestJsonSerializesSparseSetMap", + "documentation": "A request that contains a sparse map of sets", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/SparseJsonMaps", "body": "{\n \"sparseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"]\n }\n}", "bodyMediaType": "application/json", - "documentation": "A request that contains a sparse map of sets", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializesSparseSetMap", - "method": "POST", "params": { "sparseSetMap": { "x": [], @@ -4275,19 +4277,19 @@ "b" ] } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SparseJsonMaps" + } }, { + "id": "RestJsonSerializesSparseSetMapAndRetainsNull", + "documentation": "A request that contains a sparse map of sets.", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/SparseJsonMaps", "body": "{\n \"sparseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"],\n \"z\": null\n }\n}", "bodyMediaType": "application/json", - "documentation": "A request that contains a sparse map of sets.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSerializesSparseSetMapAndRetainsNull", - "method": "POST", "params": { "sparseSetMap": { "x": [], @@ -4297,42 +4299,41 @@ ], "z": null } - }, - "protocol": "aws.protocols#restJson1", - "uri": "/SparseJsonMaps" + } } ], "responses": [ { + "id": "RestJsonSparseJsonMaps", + "documentation": "Deserializes JSON maps", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"sparseStructMap\": {\n \"foo\": {\n \"hi\": \"there\"\n },\n \"baz\": {\n \"hi\": \"bye\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes JSON maps", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonSparseJsonMaps", "params": { "sparseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializesSparseNullMapValues", + "documentation": "Deserializes null JSON map values", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"sparseBooleanMap\": {\n \"x\": null\n },\n \"sparseNumberMap\": {\n \"x\": null\n },\n \"sparseStringMap\": {\n \"x\": null\n },\n \"sparseStructMap\": {\n \"x\": null\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes null JSON map values", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializesSparseNullMapValues", "params": { "sparseBooleanMap": { "x": null @@ -4346,37 +4347,37 @@ "sparseStructMap": { "x": null } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializesZeroValuesInSparseMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"sparseNumberMap\": {\n \"x\": 0\n },\n \"sparseBooleanMap\": {\n \"x\": false\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializesZeroValuesInSparseMaps", "params": { - "sparseBooleanMap": { - "x": false - }, "sparseNumberMap": { "x": 0 + }, + "sparseBooleanMap": { + "x": false } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializesSparseSetMap", + "documentation": "A response that contains a sparse map of sets", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"sparseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"]\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "A response that contains a sparse map of sets", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializesSparseSetMap", "params": { "sparseSetMap": { "x": [], @@ -4385,18 +4386,18 @@ "b" ] } - }, - "protocol": "aws.protocols#restJson1" + } }, { + "id": "RestJsonDeserializesSparseSetMapAndRetainsNull", + "documentation": "A response that contains a sparse map of sets.", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "{\n \"sparseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"],\n \"z\": null\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "A response that contains a sparse map of sets.", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonDeserializesSparseSetMapAndRetainsNull", "params": { "sparseSetMap": { "x": [], @@ -4406,465 +4407,464 @@ ], "z": null } - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#StreamingTraits": { "requests": [ { + "id": "RestJsonStreamingTraitsWithBlob", + "documentation": "Serializes a blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/StreamingTraits", "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes a blob in the HTTP payload", "headers": { - "Content-Type": "application/octet-stream", - "X-Foo": "Foo" + "X-Foo": "Foo", + "Content-Type": "application/octet-stream" }, - "id": "RestJsonStreamingTraitsWithBlob", - "method": "POST", "params": { - "blob": "blobby blob blob", - "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/StreamingTraits" + "foo": "Foo", + "blob": "blobby blob blob" + } }, { + "id": "RestJsonStreamingTraitsWithNoBlobBody", + "documentation": "Serializes an empty blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/StreamingTraits", "body": "", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes an empty blob in the HTTP payload", "headers": { "X-Foo": "Foo" }, - "id": "RestJsonStreamingTraitsWithNoBlobBody", - "method": "POST", "params": { "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/StreamingTraits" + } } ], "responses": [ { + "id": "RestJsonStreamingTraitsWithBlob", + "documentation": "Serializes a blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "code": 200, - "documentation": "Serializes a blob in the HTTP payload", "headers": { - "Content-Type": "application/octet-stream", - "X-Foo": "Foo" - }, - "id": "RestJsonStreamingTraitsWithBlob", - "params": { - "blob": "blobby blob blob", - "foo": "Foo" + "X-Foo": "Foo", + "Content-Type": "application/octet-stream" }, - "protocol": "aws.protocols#restJson1" + "params": { + "foo": "Foo", + "blob": "blobby blob blob" + } }, { + "id": "RestJsonStreamingTraitsWithNoBlobBody", + "documentation": "Serializes an empty blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "", "bodyMediaType": "application/octet-stream", - "code": 200, - "documentation": "Serializes an empty blob in the HTTP payload", "headers": { "X-Foo": "Foo" }, - "id": "RestJsonStreamingTraitsWithNoBlobBody", "params": { "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1" + } } ] }, "aws.protocoltests.restjson#StreamingTraitsRequireLength": { "requests": [ { + "id": "RestJsonStreamingTraitsRequireLengthWithBlob", + "documentation": "Serializes a blob in the HTTP payload with a required length", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/StreamingTraitsRequireLength", "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes a blob in the HTTP payload with a required length", "headers": { - "Content-Type": "application/octet-stream", - "X-Foo": "Foo" - }, - "id": "RestJsonStreamingTraitsRequireLengthWithBlob", - "method": "POST", - "params": { - "blob": "blobby blob blob", - "foo": "Foo" + "X-Foo": "Foo", + "Content-Type": "application/octet-stream" }, - "protocol": "aws.protocols#restJson1", "requireHeaders": [ "Content-Length" ], - "uri": "/StreamingTraitsRequireLength" + "params": { + "foo": "Foo", + "blob": "blobby blob blob" + } }, { + "id": "RestJsonStreamingTraitsRequireLengthWithNoBlobBody", + "documentation": "Serializes an empty blob in the HTTP payload", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/StreamingTraitsRequireLength", "body": "", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes an empty blob in the HTTP payload", "headers": { "X-Foo": "Foo" }, - "id": "RestJsonStreamingTraitsRequireLengthWithNoBlobBody", - "method": "POST", "params": { "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/StreamingTraitsRequireLength" + } } ] }, "aws.protocoltests.restjson#StreamingTraitsWithMediaType": { "requests": [ { + "id": "RestJsonStreamingTraitsWithMediaTypeWithBlob", + "documentation": "Serializes a blob in the HTTP payload with a content-type", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/StreamingTraitsWithMediaType", "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes a blob in the HTTP payload with a content-type", "headers": { - "Content-Type": "text/plain", - "X-Foo": "Foo" + "X-Foo": "Foo", + "Content-Type": "text/plain" }, - "id": "RestJsonStreamingTraitsWithMediaTypeWithBlob", - "method": "POST", "params": { - "blob": "blobby blob blob", - "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/StreamingTraitsWithMediaType" + "foo": "Foo", + "blob": "blobby blob blob" + } } ], "responses": [ { + "id": "RestJsonStreamingTraitsWithMediaTypeWithBlob", + "documentation": "Serializes a blob in the HTTP payload with a content-type", + "protocol": "aws.protocols#restJson1", + "code": 200, "body": "blobby blob blob", "bodyMediaType": "application/octet-stream", - "code": 200, - "documentation": "Serializes a blob in the HTTP payload with a content-type", "headers": { - "Content-Type": "text/plain", - "X-Foo": "Foo" + "X-Foo": "Foo", + "Content-Type": "text/plain" }, - "id": "RestJsonStreamingTraitsWithMediaTypeWithBlob", "params": { - "blob": "blobby blob blob", - "foo": "Foo" - }, - "protocol": "aws.protocols#restJson1" + "foo": "Foo", + "blob": "blobby blob blob" + } } ] }, "aws.protocoltests.restjson#TestBodyStructure": { "requests": [ { + "id": "RestJsonTestBodyStructure", + "documentation": "Serializes a structure", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/body", "body": "{\"testConfig\":\n {\"timeout\": 10}\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a structure", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonTestBodyStructure", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "testConfig": { "timeout": 10 } - }, - "protocol": "aws.protocols#restJson1", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/body" + } }, { + "id": "RestJsonHttpWithEmptyBody", + "documentation": "Serializes an empty structure in the body", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/body", "body": "{}", "bodyMediaType": "application/json", - "documentation": "Serializes an empty structure in the body", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonHttpWithEmptyBody", - "method": "POST", - "params": {}, - "protocol": "aws.protocols#restJson1", "requireHeaders": [ "Content-Length" ], - "uri": "/body" + "params": {} } ] }, "aws.protocoltests.restjson#TestGetNoInputNoPayload": { "requests": [ { - "body": "", + "id": "RestJsonHttpGetWithNoInput", "documentation": "Serializes a GET request for an operation with no input, and therefore no modeled body", + "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/no_input_no_payload", + "body": "", "forbidHeaders": [ "Content-Type", "Content-Length" ], - "id": "RestJsonHttpGetWithNoInput", - "method": "GET", - "params": {}, - "protocol": "aws.protocols#restJson1", - "uri": "/no_input_no_payload" + "params": {} } ] }, "aws.protocoltests.restjson#TestGetNoPayload": { "requests": [ { - "body": "", + "id": "RestJsonHttpGetWithNoModeledBody", "documentation": "Serializes a GET request with no modeled body", + "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/no_payload", + "body": "", "forbidHeaders": [ "Content-Length", "Content-Type" ], - "id": "RestJsonHttpGetWithNoModeledBody", - "method": "GET", - "params": {}, - "protocol": "aws.protocols#restJson1", - "uri": "/no_payload" + "params": {} }, { - "body": "", + "id": "RestJsonHttpGetWithHeaderMemberNoModeledBody", "documentation": "Serializes a GET request with header member but no modeled body", + "protocol": "aws.protocols#restJson1", + "method": "GET", + "uri": "/no_payload", + "body": "", + "headers": { + "X-Amz-Test-Id": "t-12345" + }, "forbidHeaders": [ "Content-Length", "Content-Type" ], - "headers": { - "X-Amz-Test-Id": "t-12345" - }, - "id": "RestJsonHttpGetWithHeaderMemberNoModeledBody", - "method": "GET", "params": { "testId": "t-12345" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/no_payload" + } } ] }, "aws.protocoltests.restjson#TestPayloadBlob": { "requests": [ { + "id": "RestJsonHttpWithEmptyBlobPayload", + "documentation": "Serializes a payload targeting an empty blob", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/blob_payload", "body": "", "bodyMediaType": "application/octet-stream", - "documentation": "Serializes a payload targeting an empty blob", "headers": {}, - "id": "RestJsonHttpWithEmptyBlobPayload", - "method": "POST", - "params": {}, - "protocol": "aws.protocols#restJson1", - "uri": "/blob_payload" + "params": {} }, { + "id": "RestJsonTestPayloadBlob", + "documentation": "Serializes a payload targeting a blob", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/blob_payload", "body": "1234", "bodyMediaType": "image/jpg", - "documentation": "Serializes a payload targeting a blob", "headers": { "Content-Type": "image/jpg" }, - "id": "RestJsonTestPayloadBlob", - "method": "POST", - "params": { - "contentType": "image/jpg", - "data": "1234" - }, - "protocol": "aws.protocols#restJson1", "requireHeaders": [ "Content-Length" ], - "uri": "/blob_payload" + "params": { + "contentType": "image/jpg", + "data": "1234" + } } ] }, "aws.protocoltests.restjson#TestPayloadStructure": { "requests": [ { + "id": "RestJsonHttpWithEmptyStructurePayload", + "documentation": "Serializes a payload targeting an empty structure", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/payload", "body": "{}", "bodyMediaType": "application/json", - "documentation": "Serializes a payload targeting an empty structure", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonHttpWithEmptyStructurePayload", - "method": "POST", - "params": {}, - "protocol": "aws.protocols#restJson1", "requireHeaders": [ "Content-Length" ], - "uri": "/payload" + "params": {} }, { + "id": "RestJsonTestPayloadStructure", + "documentation": "Serializes a payload targeting a structure", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/payload", "body": "{\"data\": 25\n}", "bodyMediaType": "application/json", - "documentation": "Serializes a payload targeting a structure", "headers": { "Content-Type": "application/json" }, - "id": "RestJsonTestPayloadStructure", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "payloadConfig": { "data": 25 } - }, - "protocol": "aws.protocols#restJson1", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/payload" + } }, { + "id": "RestJsonHttpWithHeadersButNoPayload", + "documentation": "Serializes an request with header members but no payload", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/payload", "body": "{}", "bodyMediaType": "application/json", - "documentation": "Serializes an request with header members but no payload", "headers": { "Content-Type": "application/json", "X-Amz-Test-Id": "t-12345" }, - "id": "RestJsonHttpWithHeadersButNoPayload", - "method": "POST", - "params": { - "testId": "t-12345" - }, - "protocol": "aws.protocols#restJson1", "requireHeaders": [ "Content-Length" ], - "uri": "/payload" + "params": { + "testId": "t-12345" + } } ] }, "aws.protocoltests.restjson#TestPostNoInputNoPayload": { "requests": [ { - "body": "", + "id": "RestJsonHttpPostWithNoInput", "documentation": "Serializes a POST request for an operation with no input, and therefore no modeled body", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/no_input_no_payload", + "body": "", "forbidHeaders": [ "Content-Type" ], - "id": "RestJsonHttpPostWithNoInput", - "method": "POST", - "params": {}, - "protocol": "aws.protocols#restJson1", - "uri": "/no_input_no_payload" + "params": {} } ] }, "aws.protocoltests.restjson#TestPostNoPayload": { "requests": [ { - "body": "", + "id": "RestJsonHttpPostWithNoModeledBody", "documentation": "Serializes a POST request with no modeled body", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/no_payload", + "body": "", "forbidHeaders": [ "Content-Type" ], - "id": "RestJsonHttpPostWithNoModeledBody", - "method": "POST", - "params": {}, - "protocol": "aws.protocols#restJson1", - "uri": "/no_payload" + "params": {} }, { - "body": "", + "id": "RestJsonHttpWithPostHeaderMemberNoModeledBody", "documentation": "Serializes a POST request with header member but no modeled body", - "forbidHeaders": [ - "Content-Type" - ], + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/no_payload", + "body": "", "headers": { "X-Amz-Test-Id": "t-12345" }, - "id": "RestJsonHttpWithPostHeaderMemberNoModeledBody", - "method": "POST", + "forbidHeaders": [ + "Content-Type" + ], "params": { "testId": "t-12345" - }, - "protocol": "aws.protocols#restJson1", - "uri": "/no_payload" + } } ] }, "aws.protocoltests.restjson#TimestampFormatHeaders": { "requests": [ { - "body": "", + "id": "RestJsonTimestampFormatHeaders", "documentation": "Tests how timestamp request headers are serialized", + "protocol": "aws.protocols#restJson1", + "method": "POST", + "uri": "/TimestampFormatHeaders", "headers": { - "X-defaultFormat": "Mon, 16 Dec 2019 23:48:18 GMT", - "X-memberDateTime": "2019-12-16T23:48:18Z", "X-memberEpochSeconds": "1576540098", "X-memberHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT", - "X-targetDateTime": "2019-12-16T23:48:18Z", + "X-memberDateTime": "2019-12-16T23:48:18Z", + "X-defaultFormat": "Mon, 16 Dec 2019 23:48:18 GMT", "X-targetEpochSeconds": "1576540098", - "X-targetHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT" + "X-targetHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT", + "X-targetDateTime": "2019-12-16T23:48:18Z" }, - "id": "RestJsonTimestampFormatHeaders", - "method": "POST", + "body": "", "params": { - "defaultFormat": 1576540098, - "memberDateTime": 1576540098, "memberEpochSeconds": 1576540098, "memberHttpDate": 1576540098, - "targetDateTime": 1576540098, + "memberDateTime": 1576540098, + "defaultFormat": 1576540098, "targetEpochSeconds": 1576540098, - "targetHttpDate": 1576540098 - }, - "protocol": "aws.protocols#restJson1", - "uri": "/TimestampFormatHeaders" + "targetHttpDate": 1576540098, + "targetDateTime": 1576540098 + } } ], "responses": [ { - "code": 200, + "id": "RestJsonTimestampFormatHeaders", "documentation": "Tests how timestamp response headers are serialized", + "protocol": "aws.protocols#restJson1", + "code": 200, "headers": { - "X-defaultFormat": "Mon, 16 Dec 2019 23:48:18 GMT", - "X-memberDateTime": "2019-12-16T23:48:18Z", "X-memberEpochSeconds": "1576540098", "X-memberHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT", - "X-targetDateTime": "2019-12-16T23:48:18Z", + "X-memberDateTime": "2019-12-16T23:48:18Z", + "X-defaultFormat": "Mon, 16 Dec 2019 23:48:18 GMT", "X-targetEpochSeconds": "1576540098", - "X-targetHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT" + "X-targetHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT", + "X-targetDateTime": "2019-12-16T23:48:18Z" }, - "id": "RestJsonTimestampFormatHeaders", "params": { - "defaultFormat": 1576540098, - "memberDateTime": 1576540098, "memberEpochSeconds": 1576540098, "memberHttpDate": 1576540098, - "targetDateTime": 1576540098, + "memberDateTime": 1576540098, + "defaultFormat": 1576540098, "targetEpochSeconds": 1576540098, - "targetHttpDate": 1576540098 - }, - "protocol": "aws.protocols#restJson1" + "targetHttpDate": 1576540098, + "targetDateTime": 1576540098 + } } ] }, "aws.protocoltests.restjson#UnitInputAndOutput": { "requests": [ { - "body": "", - "documentation": "A unit type input serializes no payload. When clients do not\nneed to serialize any data in the payload, they should omit\na payload altogether.", "id": "RestJsonUnitInputAndOutput", - "method": "POST", + "documentation": "A unit type input serializes no payload. When clients do not\nneed to serialize any data in the payload, they should omit\na payload altogether.", "protocol": "aws.protocols#restJson1", - "uri": "/UnitInputAndOutput" + "method": "POST", + "uri": "/UnitInputAndOutput", + "body": "" } ], "responses": [ { - "body": "", - "code": 200, - "documentation": "When an operation defines Unit output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.", "id": "RestJsonUnitInputAndOutputNoOutput", - "protocol": "aws.protocols#restJson1" + "documentation": "When an operation defines Unit output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.", + "protocol": "aws.protocols#restJson1", + "code": 200, + "body": "" } ] } diff --git a/scripts/codegen-output-py/models/vectors/rest-xml-with-namespace.json b/scripts/codegen-output-py/models/vectors/rest-xml-with-namespace.json new file mode 100644 index 000000000..1c563d8b2 --- /dev/null +++ b/scripts/codegen-output-py/models/vectors/rest-xml-with-namespace.json @@ -0,0 +1,63 @@ +{ + "aws.protocoltests.restxml.xmlns#SimpleScalarProperties": { + "requests": [ + { + "id": "XmlNamespaceSimpleScalarProperties", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/SimpleScalarProperties", + "body": "\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": "string", + "trueBooleanValue": true, + "falseBooleanValue": false, + "byteValue": 1, + "shortValue": 2, + "integerValue": 3, + "longValue": 4, + "floatValue": 5.5, + "doubleValue": 6.5, + "Nested": { + "attrField": "nestedAttrValue" + } + } + } + ], + "responses": [ + { + "id": "XmlNamespaceSimpleScalarProperties", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": "string", + "trueBooleanValue": true, + "falseBooleanValue": false, + "byteValue": 1, + "shortValue": 2, + "integerValue": 3, + "longValue": 4, + "floatValue": 5.5, + "doubleValue": 6.5, + "Nested": { + "attrField": "nestedAttrValue" + } + } + } + ] + } +} diff --git a/scripts/codegen-output-py/models/vectors/rest-xml.json b/scripts/codegen-output-py/models/vectors/rest-xml.json new file mode 100644 index 000000000..cac4f2d11 --- /dev/null +++ b/scripts/codegen-output-py/models/vectors/rest-xml.json @@ -0,0 +1,3592 @@ +{ + "aws.protocoltests.restxml#AllQueryStringTypes": { + "requests": [ + { + "id": "AllQueryStringTypes", + "documentation": "Serializes query string parameters with all supported types", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "String=Hello%20there", + "StringList=a", + "StringList=b", + "StringList=c", + "StringSet=a", + "StringSet=b", + "StringSet=c", + "Byte=1", + "Short=2", + "Integer=3", + "IntegerList=1", + "IntegerList=2", + "IntegerList=3", + "IntegerSet=1", + "IntegerSet=2", + "IntegerSet=3", + "Long=4", + "Float=1.1", + "Double=1.1", + "DoubleList=1.1", + "DoubleList=2.1", + "DoubleList=3.1", + "Boolean=true", + "BooleanList=true", + "BooleanList=false", + "BooleanList=true", + "Timestamp=1970-01-01T00%3A00%3A01Z", + "TimestampList=1970-01-01T00%3A00%3A01Z", + "TimestampList=1970-01-01T00%3A00%3A02Z", + "TimestampList=1970-01-01T00%3A00%3A03Z", + "Enum=Foo", + "EnumList=Foo", + "EnumList=Baz", + "EnumList=Bar", + "IntegerEnum=1", + "IntegerEnumList=1", + "IntegerEnumList=2" + ], + "params": { + "queryString": "Hello there", + "queryStringList": [ + "a", + "b", + "c" + ], + "queryStringSet": [ + "a", + "b", + "c" + ], + "queryByte": 1, + "queryShort": 2, + "queryInteger": 3, + "queryIntegerList": [ + 1, + 2, + 3 + ], + "queryIntegerSet": [ + 1, + 2, + 3 + ], + "queryLong": 4, + "queryFloat": 1.1, + "queryDouble": 1.1, + "queryDoubleList": [ + 1.1, + 2.1, + 3.1 + ], + "queryBoolean": true, + "queryBooleanList": [ + true, + false, + true + ], + "queryTimestamp": 1, + "queryTimestampList": [ + 1, + 2, + 3 + ], + "queryEnum": "Foo", + "queryEnumList": [ + "Foo", + "Baz", + "Bar" + ], + "queryIntegerEnum": 1, + "queryIntegerEnumList": [ + 1, + 2 + ] + } + }, + { + "id": "RestXmlQueryStringMap", + "documentation": "Handles query string maps", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "QueryParamsStringKeyA=Foo", + "QueryParamsStringKeyB=Bar" + ], + "params": { + "queryParamsMapOfStrings": { + "QueryParamsStringKeyA": "Foo", + "QueryParamsStringKeyB": "Bar" + } + } + }, + { + "id": "RestXmlQueryStringEscaping", + "documentation": "Handles escaping all required characters in the query string.", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9" + ], + "params": { + "queryString": " %:/?#[]@!$&'()*+,;=\ud83d\ude39" + } + }, + { + "id": "RestXmlSupportsNaNFloatQueryValues", + "documentation": "Supports handling NaN float query values.", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "Float=NaN", + "Double=NaN" + ], + "params": { + "queryFloat": "NaN", + "queryDouble": "NaN" + } + }, + { + "id": "RestXmlSupportsInfinityFloatQueryValues", + "documentation": "Supports handling Infinity float query values.", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "Float=Infinity", + "Double=Infinity" + ], + "params": { + "queryFloat": "Infinity", + "queryDouble": "Infinity" + } + }, + { + "id": "RestXmlSupportsNegativeInfinityFloatQueryValues", + "documentation": "Supports handling -Infinity float query values.", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "Float=-Infinity", + "Double=-Infinity" + ], + "params": { + "queryFloat": "-Infinity", + "queryDouble": "-Infinity" + } + }, + { + "id": "RestXmlZeroAndFalseQueryValues", + "documentation": "Query values of 0 and false are serialized", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/AllQueryStringTypesInput", + "body": "", + "queryParams": [ + "Integer=0", + "Boolean=false" + ], + "params": { + "queryInteger": 0, + "queryBoolean": false + } + } + ] + }, + "aws.protocoltests.restxml#BodyWithXmlName": { + "requests": [ + { + "id": "BodyWithXmlName", + "documentation": "Serializes a payload using a wrapper name based on the xmlName", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/BodyWithXmlName", + "body": "Phreddy", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ], + "responses": [ + { + "id": "BodyWithXmlName", + "documentation": "Serializes a payload using a wrapper name based on the xmlName", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "Phreddy", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ] + }, + "aws.protocoltests.restxml#ComplexError": { + "responses": [ + { + "id": "ComplexError", + "protocol": "aws.protocols#restXml", + "params": { + "Header": "Header", + "TopLevel": "Top level", + "Nested": { + "Foo": "bar" + } + }, + "code": 403, + "headers": { + "Content-Type": "application/xml", + "X-Header": "Header" + }, + "body": "\n \n Sender\n ComplexError\n Hi\n Top level\n \n bar\n \n \n foo-id\n\n", + "bodyMediaType": "application/xml" + } + ] + }, + "aws.protocoltests.restxml#ConstantAndVariableQueryString": { + "requests": [ + { + "id": "ConstantAndVariableQueryStringMissingOneValue", + "documentation": "Mixes constant and variable query string parameters", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/ConstantAndVariableQueryString", + "queryParams": [ + "foo=bar", + "baz=bam" + ], + "forbidQueryParams": [ + "maybeSet" + ], + "body": "", + "params": { + "baz": "bam" + } + }, + { + "id": "ConstantAndVariableQueryStringAllValues", + "documentation": "Mixes constant and variable query string parameters", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/ConstantAndVariableQueryString", + "queryParams": [ + "foo=bar", + "baz=bam", + "maybeSet=yes" + ], + "body": "", + "params": { + "baz": "bam", + "maybeSet": "yes" + } + } + ] + }, + "aws.protocoltests.restxml#ConstantQueryString": { + "requests": [ + { + "id": "ConstantQueryString", + "documentation": "Includes constant query string parameters", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/ConstantQueryString/hi", + "queryParams": [ + "foo=bar", + "hello" + ], + "body": "", + "params": { + "hello": "hi" + } + } + ] + }, + "aws.protocoltests.restxml#DatetimeOffsets": { + "responses": [ + { + "id": "RestXmlDateTimeWithNegativeOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 2019-12-16T22:48:18-01:00\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "datetime": 1576540098 + } + }, + { + "id": "RestXmlDateTimeWithPositiveOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 2019-12-17T00:48:18+01:00\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "datetime": 1576540098 + } + } + ] + }, + "aws.protocoltests.restxml#EmptyInputAndEmptyOutput": { + "requests": [ + { + "id": "EmptyInputAndEmptyOutput", + "documentation": "Empty input serializes no payload", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/EmptyInputAndEmptyOutput", + "body": "" + } + ], + "responses": [ + { + "id": "EmptyInputAndEmptyOutput", + "documentation": "Empty output serializes no payload", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "" + } + ] + }, + "aws.protocoltests.restxml#EndpointOperation": { + "requests": [ + { + "id": "RestXmlEndpointTrait", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait.", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/EndpointOperation", + "body": "", + "host": "example.com", + "resolvedHost": "foo.example.com" + } + ] + }, + "aws.protocoltests.restxml#EndpointWithHostLabelHeaderOperation": { + "requests": [ + { + "id": "RestXmlEndpointTraitWithHostLabelAndHttpBinding", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input. The label must also\nbe serialized in into any other location it is bound to, such\nas the body or in this case an http header.", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/EndpointWithHostLabelHeaderOperation", + "body": "", + "bodyMediaType": "application/xml", + "host": "example.com", + "resolvedHost": "bar.example.com", + "headers": { + "X-Amz-Account-Id": "bar" + }, + "params": { + "accountId": "bar" + } + } + ] + }, + "aws.protocoltests.restxml#EndpointWithHostLabelOperation": { + "requests": [ + { + "id": "RestXmlEndpointTraitWithHostLabel", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/EndpointWithHostLabelOperation", + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "host": "example.com", + "resolvedHost": "foo.bar.example.com", + "params": { + "label": "bar" + } + } + ] + }, + "aws.protocoltests.restxml#FlattenedXmlMap": { + "requests": [ + { + "id": "FlattenedXmlMap", + "documentation": "Serializes flattened XML maps in requests", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/FlattenedXmlMap", + "body": "\n \n foo\n Foo\n \n \n baz\n Baz\n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "foo": "Foo", + "baz": "Baz" + } + } + } + ], + "responses": [ + { + "id": "FlattenedXmlMap", + "documentation": "Serializes flattened XML maps in responses", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n foo\n Foo\n \n \n baz\n Baz\n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "foo": "Foo", + "baz": "Baz" + } + } + } + ] + }, + "aws.protocoltests.restxml#FlattenedXmlMapWithXmlName": { + "requests": [ + { + "id": "FlattenedXmlMapWithXmlName", + "documentation": "Serializes flattened XML maps in requests that have xmlName on members", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/FlattenedXmlMapWithXmlName", + "body": "\n \n a\n A\n \n \n b\n B\n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "a": "A", + "b": "B" + } + } + } + ], + "responses": [ + { + "id": "FlattenedXmlMapWithXmlName", + "documentation": "Serializes flattened XML maps in responses that have xmlName on members", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n a\n A\n \n \n b\n B\n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "a": "A", + "b": "B" + } + } + } + ] + }, + "aws.protocoltests.restxml#FlattenedXmlMapWithXmlNamespace": { + "responses": [ + { + "id": "RestXmlFlattenedXmlMapWithXmlNamespace", + "documentation": "Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n a\n A\n \n \n b\n B\n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "a": "A", + "b": "B" + } + } + } + ] + }, + "aws.protocoltests.restxml#FractionalSeconds": { + "responses": [ + { + "id": "RestXmlDateTimeWithFractionalSeconds", + "documentation": "Ensures that clients can correctly parse datetime timestamps with fractional seconds", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 2000-01-02T20:34:56.123Z\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "datetime": 946845296.123 + } + } + ] + }, + "aws.protocoltests.restxml#GreetingWithErrors": { + "responses": [ + { + "id": "GreetingWithErrors", + "documentation": "Ensures that operations with errors successfully know how to deserialize the successful response", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "", + "headers": { + "X-Greeting": "Hello" + }, + "params": { + "greeting": "Hello" + } + } + ] + }, + "aws.protocoltests.restxml#HttpEmptyPrefixHeaders": { + "requests": [ + { + "id": "HttpEmptyPrefixHeadersRequestClient", + "documentation": "Serializes all request headers, using specific when present", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/HttpEmptyPrefixHeaders", + "body": "", + "headers": { + "x-foo": "Foo", + "hello": "There" + }, + "params": { + "prefixHeaders": { + "x-foo": "Foo", + "hello": "Hello" + }, + "specificHeader": "There" + }, + "appliesTo": "client" + } + ], + "responses": [ + { + "id": "HttpEmptyPrefixHeadersResponseClient", + "documentation": "Deserializes all response headers with the same for prefix and specific", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "x-foo": "Foo", + "hello": "There" + }, + "params": { + "prefixHeaders": { + "x-foo": "Foo", + "hello": "There" + }, + "specificHeader": "There" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#HttpEnumPayload": { + "requests": [ + { + "id": "RestXmlEnumPayloadRequest", + "uri": "/EnumPayload", + "headers": { + "Content-Type": "text/plain" + }, + "body": "enumvalue", + "params": { + "payload": "enumvalue" + }, + "method": "POST", + "protocol": "aws.protocols#restXml" + } + ], + "responses": [ + { + "id": "RestXmlEnumPayloadResponse", + "headers": { + "Content-Type": "text/plain" + }, + "body": "enumvalue", + "params": { + "payload": "enumvalue" + }, + "protocol": "aws.protocols#restXml", + "code": 200 + } + ] + }, + "aws.protocoltests.restxml#HttpPayloadTraits": { + "requests": [ + { + "id": "HttpPayloadTraitsWithBlob", + "documentation": "Serializes a blob in the HTTP payload", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/HttpPayloadTraits", + "body": "blobby blob blob", + "headers": { + "X-Foo": "Foo" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "foo": "Foo", + "blob": "blobby blob blob" + } + }, + { + "id": "HttpPayloadTraitsWithNoBlobBody", + "documentation": "Serializes an empty blob in the HTTP payload", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/HttpPayloadTraits", + "body": "", + "headers": { + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo" + } + } + ], + "responses": [ + { + "id": "HttpPayloadTraitsWithBlob", + "documentation": "Serializes a blob in the HTTP payload", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "blobby blob blob", + "headers": { + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "blob": "blobby blob blob" + } + }, + { + "id": "HttpPayloadTraitsWithNoBlobBody", + "documentation": "Serializes an empty blob in the HTTP payload", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "", + "headers": { + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo" + } + } + ] + }, + "aws.protocoltests.restxml#HttpPayloadTraitsWithMediaType": { + "requests": [ + { + "id": "HttpPayloadTraitsWithMediaTypeWithBlob", + "documentation": "Serializes a blob in the HTTP payload with a content-type", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/HttpPayloadTraitsWithMediaType", + "body": "blobby blob blob", + "headers": { + "X-Foo": "Foo", + "Content-Type": "text/plain" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "foo": "Foo", + "blob": "blobby blob blob" + } + } + ], + "responses": [ + { + "id": "HttpPayloadTraitsWithMediaTypeWithBlob", + "documentation": "Serializes a blob in the HTTP payload with a content-type", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "blobby blob blob", + "headers": { + "X-Foo": "Foo", + "Content-Type": "text/plain" + }, + "params": { + "foo": "Foo", + "blob": "blobby blob blob" + } + } + ] + }, + "aws.protocoltests.restxml#HttpPayloadWithMemberXmlName": { + "requests": [ + { + "id": "HttpPayloadWithMemberXmlName", + "documentation": "Serializes a structure in the payload using a wrapper name based on member xmlName", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/HttpPayloadWithMemberXmlName", + "body": "Phreddy", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ], + "responses": [ + { + "id": "HttpPayloadWithMemberXmlName", + "documentation": "Serializes a structure in the payload using a wrapper name based on member xmlName", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "Phreddy", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ] + }, + "aws.protocoltests.restxml#HttpPayloadWithStructure": { + "requests": [ + { + "id": "HttpPayloadWithStructure", + "documentation": "Serializes a structure in the payload", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/HttpPayloadWithStructure", + "body": "\n hello\n Phreddy\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "nested": { + "greeting": "hello", + "name": "Phreddy" + } + } + } + ], + "responses": [ + { + "id": "HttpPayloadWithStructure", + "documentation": "Serializes a structure in the payload", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n hello\n Phreddy\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "greeting": "hello", + "name": "Phreddy" + } + } + } + ] + }, + "aws.protocoltests.restxml#HttpPayloadWithUnion": { + "requests": [ + { + "id": "RestXmlHttpPayloadWithUnion", + "documentation": "Serializes a union in the payload.", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/HttpPayloadWithUnion", + "body": "\n hello\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "nested": { + "greeting": "hello" + } + } + }, + { + "id": "RestXmlHttpPayloadWithUnsetUnion", + "documentation": "No payload is sent if the union has no value.", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/HttpPayloadWithUnion", + "body": "", + "params": {} + } + ], + "responses": [ + { + "id": "RestXmlHttpPayloadWithUnion", + "documentation": "Serializes a union in the payload.", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n hello\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "greeting": "hello" + } + } + }, + { + "id": "RestXmlHttpPayloadWithUnsetUnion", + "documentation": "No payload is sent if the union has no value.", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "", + "headers": { + "Content-Length": "0" + }, + "params": {} + } + ] + }, + "aws.protocoltests.restxml#HttpPayloadWithXmlName": { + "requests": [ + { + "id": "HttpPayloadWithXmlName", + "documentation": "Serializes a structure in the payload using a wrapper name based on xmlName", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/HttpPayloadWithXmlName", + "body": "Phreddy", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ], + "responses": [ + { + "id": "HttpPayloadWithXmlName", + "documentation": "Serializes a structure in the payload using a wrapper name based on xmlName", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "Phreddy", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ] + }, + "aws.protocoltests.restxml#HttpPayloadWithXmlNamespace": { + "requests": [ + { + "id": "HttpPayloadWithXmlNamespace", + "documentation": "Serializes a structure in the payload using a wrapper with an XML namespace", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/HttpPayloadWithXmlNamespace", + "body": "\n Phreddy\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ], + "responses": [ + { + "id": "HttpPayloadWithXmlNamespace", + "documentation": "Serializes a structure in the payload using a wrapper with an XML namespace", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n Phreddy\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ] + }, + "aws.protocoltests.restxml#HttpPayloadWithXmlNamespaceAndPrefix": { + "requests": [ + { + "id": "HttpPayloadWithXmlNamespaceAndPrefix", + "documentation": "Serializes a structure in the payload using a wrapper with an XML namespace", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/HttpPayloadWithXmlNamespaceAndPrefix", + "body": "\n Phreddy\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ], + "responses": [ + { + "id": "HttpPayloadWithXmlNamespaceAndPrefix", + "documentation": "Serializes a structure in the payload using a wrapper with an XML namespace", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n Phreddy\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "name": "Phreddy" + } + } + } + ] + }, + "aws.protocoltests.restxml#HttpPrefixHeaders": { + "requests": [ + { + "id": "HttpPrefixHeadersArePresent", + "documentation": "Adds headers by prefix", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/HttpPrefixHeaders", + "body": "", + "headers": { + "x-foo": "Foo", + "x-foo-abc": "Abc value", + "x-foo-def": "Def value" + }, + "params": { + "foo": "Foo", + "fooMap": { + "abc": "Abc value", + "def": "Def value" + } + } + }, + { + "id": "HttpPrefixHeadersAreNotPresent", + "documentation": "No prefix headers are serialized because the value is not present", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/HttpPrefixHeaders", + "body": "", + "headers": { + "x-foo": "Foo" + }, + "params": { + "foo": "Foo", + "fooMap": {} + }, + "appliesTo": "client" + }, + { + "id": "HttpPrefixEmptyHeaders", + "documentation": "Serialize prefix headers were the value is present but empty", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/HttpPrefixHeaders", + "body": "", + "params": { + "fooMap": { + "abc": "" + } + }, + "headers": { + "x-foo-abc": "" + }, + "appliesTo": "client" + } + ], + "responses": [ + { + "id": "HttpPrefixHeadersArePresent", + "documentation": "Adds headers by prefix", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "", + "headers": { + "x-foo": "Foo", + "x-foo-abc": "Abc value", + "x-foo-def": "Def value" + }, + "params": { + "foo": "Foo", + "fooMap": { + "abc": "Abc value", + "def": "Def value" + } + } + }, + { + "id": "HttpPrefixHeadersAreNotPresent", + "documentation": "No prefix headers are serialized because the value is empty", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "", + "headers": { + "x-foo": "Foo" + }, + "params": { + "foo": "Foo", + "fooMap": {} + } + } + ] + }, + "aws.protocoltests.restxml#HttpRequestWithFloatLabels": { + "requests": [ + { + "id": "RestXmlSupportsNaNFloatLabels", + "documentation": "Supports handling NaN float label values.", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/FloatHttpLabels/NaN/NaN", + "body": "", + "params": { + "float": "NaN", + "double": "NaN" + } + }, + { + "id": "RestXmlSupportsInfinityFloatLabels", + "documentation": "Supports handling Infinity float label values.", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/FloatHttpLabels/Infinity/Infinity", + "body": "", + "params": { + "float": "Infinity", + "double": "Infinity" + } + }, + { + "id": "RestXmlSupportsNegativeInfinityFloatLabels", + "documentation": "Supports handling -Infinity float label values.", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/FloatHttpLabels/-Infinity/-Infinity", + "body": "", + "params": { + "float": "-Infinity", + "double": "-Infinity" + } + } + ] + }, + "aws.protocoltests.restxml#HttpRequestWithGreedyLabelInPath": { + "requests": [ + { + "id": "HttpRequestWithGreedyLabelInPath", + "documentation": "Serializes greedy labels and normal labels", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/HttpRequestWithGreedyLabelInPath/foo/hello/baz/there/guy", + "body": "", + "params": { + "foo": "hello", + "baz": "there/guy" + } + } + ] + }, + "aws.protocoltests.restxml#HttpRequestWithLabels": { + "requests": [ + { + "id": "InputWithHeadersAndAllParams", + "documentation": "Sends a GET request that uses URI label bindings", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z", + "body": "", + "params": { + "string": "string", + "short": 1, + "integer": 2, + "long": 3, + "float": 4.1, + "double": 5.1, + "boolean": true, + "timestamp": 1576540098 + } + }, + { + "id": "HttpRequestLabelEscaping", + "documentation": "Sends a GET request that uses URI label bindings", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z", + "body": "", + "params": { + "string": " %:/?#[]@!$&'()*+,;=\ud83d\ude39", + "short": 1, + "integer": 2, + "long": 3, + "float": 4.1, + "double": 5.1, + "boolean": true, + "timestamp": 1576540098 + } + } + ] + }, + "aws.protocoltests.restxml#HttpRequestWithLabelsAndTimestampFormat": { + "requests": [ + { + "id": "HttpRequestWithLabelsAndTimestampFormat", + "documentation": "Serializes different timestamp formats in URI labels", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z", + "body": "", + "params": { + "memberEpochSeconds": 1576540098, + "memberHttpDate": 1576540098, + "memberDateTime": 1576540098, + "defaultFormat": 1576540098, + "targetEpochSeconds": 1576540098, + "targetHttpDate": 1576540098, + "targetDateTime": 1576540098 + } + } + ] + }, + "aws.protocoltests.restxml#HttpResponseCode": { + "responses": [ + { + "id": "RestXmlHttpResponseCode", + "documentation": "Binds the http response code to an output structure.", + "protocol": "aws.protocols#restXml", + "code": 201, + "headers": { + "Content-Type": "application/xml" + }, + "body": "", + "bodyMediaType": "application/xml", + "params": { + "Status": 201 + } + } + ] + }, + "aws.protocoltests.restxml#HttpStringPayload": { + "requests": [ + { + "id": "RestXmlStringPayloadRequest", + "uri": "/StringPayload", + "headers": { + "Content-Type": "text/plain" + }, + "body": "rawstring", + "params": { + "payload": "rawstring" + }, + "method": "POST", + "protocol": "aws.protocols#restXml" + } + ], + "responses": [ + { + "id": "RestXmlStringPayloadResponse", + "headers": { + "Content-Type": "text/plain" + }, + "body": "rawstring", + "params": { + "payload": "rawstring" + }, + "protocol": "aws.protocols#restXml", + "code": 200 + } + ] + }, + "aws.protocoltests.restxml#IgnoreQueryParamsInResponse": { + "responses": [ + { + "id": "IgnoreQueryParamsInResponse", + "documentation": "Query parameters must be ignored when serializing the output of an operation", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "Content-Type": "application/xml" + }, + "body": "bam", + "bodyMediaType": "application/xml", + "params": { + "baz": "bam" + } + } + ] + }, + "aws.protocoltests.restxml#InputAndOutputWithHeaders": { + "requests": [ + { + "id": "InputAndOutputWithStringHeaders", + "documentation": "Tests requests with string header bindings", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "headers": { + "X-String": "Hello", + "X-StringList": "a, b, c", + "X-StringSet": "a, b, c" + }, + "body": "", + "params": { + "headerString": "Hello", + "headerStringList": [ + "a", + "b", + "c" + ], + "headerStringSet": [ + "a", + "b", + "c" + ] + } + }, + { + "id": "InputAndOutputWithNumericHeaders", + "documentation": "Tests requests with numeric header bindings", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "headers": { + "X-Byte": "1", + "X-Short": "123", + "X-Integer": "123", + "X-Long": "123", + "X-Float": "1.1", + "X-Double": "1.1", + "X-IntegerList": "1, 2, 3" + }, + "body": "", + "params": { + "headerByte": 1, + "headerShort": 123, + "headerInteger": 123, + "headerLong": 123, + "headerFloat": 1.1, + "headerDouble": 1.1, + "headerIntegerList": [ + 1, + 2, + 3 + ] + } + }, + { + "id": "InputAndOutputWithBooleanHeaders", + "documentation": "Tests requests with boolean header bindings", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "headers": { + "X-Boolean1": "true", + "X-Boolean2": "false", + "X-BooleanList": "true, false, true" + }, + "body": "", + "params": { + "headerTrueBool": true, + "headerFalseBool": false, + "headerBooleanList": [ + true, + false, + true + ] + } + }, + { + "id": "InputAndOutputWithTimestampHeaders", + "documentation": "Tests requests with timestamp header bindings", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "headers": { + "X-TimestampList": "Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT" + }, + "body": "", + "params": { + "headerTimestampList": [ + 1576540098, + 1576540098 + ] + } + }, + { + "id": "InputAndOutputWithEnumHeaders", + "documentation": "Tests requests with enum header bindings", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "headers": { + "X-Enum": "Foo", + "X-EnumList": "Foo, Bar, Baz" + }, + "body": "", + "params": { + "headerEnum": "Foo", + "headerEnumList": [ + "Foo", + "Bar", + "Baz" + ] + } + }, + { + "id": "RestXmlSupportsNaNFloatHeaderInputs", + "documentation": "Supports handling NaN float header values.", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "body": "", + "headers": { + "X-Float": "NaN", + "X-Double": "NaN" + }, + "params": { + "headerFloat": "NaN", + "headerDouble": "NaN" + } + }, + { + "id": "RestXmlSupportsInfinityFloatHeaderInputs", + "documentation": "Supports handling Infinity float header values.", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "body": "", + "headers": { + "X-Float": "Infinity", + "X-Double": "Infinity" + }, + "params": { + "headerFloat": "Infinity", + "headerDouble": "Infinity" + } + }, + { + "id": "RestXmlSupportsNegativeInfinityFloatHeaderInputs", + "documentation": "Supports handling -Infinity float header values.", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/InputAndOutputWithHeaders", + "body": "", + "headers": { + "X-Float": "-Infinity", + "X-Double": "-Infinity" + }, + "params": { + "headerFloat": "-Infinity", + "headerDouble": "-Infinity" + } + } + ], + "responses": [ + { + "id": "InputAndOutputWithStringHeaders", + "documentation": "Tests responses with string header bindings", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-String": "Hello", + "X-StringList": "a, b, c", + "X-StringSet": "a, b, c" + }, + "body": "", + "params": { + "headerString": "Hello", + "headerStringList": [ + "a", + "b", + "c" + ], + "headerStringSet": [ + "a", + "b", + "c" + ] + } + }, + { + "id": "InputAndOutputWithNumericHeaders", + "documentation": "Tests responses with numeric header bindings", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-Byte": "1", + "X-Short": "123", + "X-Integer": "123", + "X-Long": "123", + "X-Float": "1.1", + "X-Double": "1.1", + "X-IntegerList": "1, 2, 3" + }, + "body": "", + "params": { + "headerByte": 1, + "headerShort": 123, + "headerInteger": 123, + "headerLong": 123, + "headerFloat": 1.1, + "headerDouble": 1.1, + "headerIntegerList": [ + 1, + 2, + 3 + ] + } + }, + { + "id": "InputAndOutputWithBooleanHeaders", + "documentation": "Tests responses with boolean header bindings", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-Boolean1": "true", + "X-Boolean2": "false", + "X-BooleanList": "true, false, true" + }, + "body": "", + "params": { + "headerTrueBool": true, + "headerFalseBool": false, + "headerBooleanList": [ + true, + false, + true + ] + } + }, + { + "id": "InputAndOutputWithTimestampHeaders", + "documentation": "Tests responses with timestamp header bindings", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-TimestampList": "Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT" + }, + "body": "", + "params": { + "headerTimestampList": [ + 1576540098, + 1576540098 + ] + } + }, + { + "id": "InputAndOutputWithEnumHeaders", + "documentation": "Tests responses with enum header bindings", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-Enum": "Foo", + "X-EnumList": "Foo, Bar, Baz" + }, + "body": "", + "params": { + "headerEnum": "Foo", + "headerEnumList": [ + "Foo", + "Bar", + "Baz" + ] + } + }, + { + "id": "RestXmlSupportsNaNFloatHeaderOutputs", + "documentation": "Supports handling NaN float header values.", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-Float": "NaN", + "X-Double": "NaN" + }, + "body": "", + "params": { + "headerFloat": "NaN", + "headerDouble": "NaN" + } + }, + { + "id": "RestXmlSupportsInfinityFloatHeaderOutputs", + "documentation": "Supports handling Infinity float header values.", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-Float": "Infinity", + "X-Double": "Infinity" + }, + "body": "", + "params": { + "headerFloat": "Infinity", + "headerDouble": "Infinity" + } + }, + { + "id": "RestXmlSupportsNegativeInfinityFloatHeaderOutputs", + "documentation": "Supports handling -Infinity float header values.", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-Float": "-Infinity", + "X-Double": "-Infinity" + }, + "body": "", + "params": { + "headerFloat": "-Infinity", + "headerDouble": "-Infinity" + } + } + ] + }, + "aws.protocoltests.restxml#InvalidGreeting": { + "responses": [ + { + "id": "InvalidGreetingError", + "documentation": "Parses simple XML errors", + "protocol": "aws.protocols#restXml", + "params": { + "Message": "Hi" + }, + "code": 400, + "headers": { + "Content-Type": "application/xml" + }, + "body": "\n \n Sender\n InvalidGreeting\n Hi\n setting\n \n foo-id\n\n", + "bodyMediaType": "application/xml" + } + ] + }, + "aws.protocoltests.restxml#NestedXmlMapWithXmlName": { + "requests": [ + { + "id": "NestedXmlMapWithXmlNameSerializes", + "documentation": "Serializes nested XML Maps in requests that have xmlName on members", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/NestedXmlMapWithXmlName", + "body": " \n \n \n foo\n \n \n bar\n Baz\n \n \n fizz\n Buzz\n \n \n \n \n qux\n \n \n foobar\n Bar\n \n \n fizzbuzz\n Buzz\n \n \n \n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nestedXmlMapWithXmlNameMap": { + "foo": { + "bar": "Baz", + "fizz": "Buzz" + }, + "qux": { + "foobar": "Bar", + "fizzbuzz": "Buzz" + } + } + } + } + ], + "responses": [ + { + "id": "NestedXmlMapWithXmlNameDeserializes", + "documentation": "Serializes nested XML maps in responses that have xmlName on members", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": " \n \n \n foo\n \n \n bar\n Baz\n \n \n fizz\n Buzz\n \n \n \n \n qux\n \n \n foobar\n Bar\n \n \n fizzbuzz\n Buzz\n \n \n \n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nestedXmlMapWithXmlNameMap": { + "foo": { + "bar": "Baz", + "fizz": "Buzz" + }, + "qux": { + "foobar": "Bar", + "fizzbuzz": "Buzz" + } + } + } + } + ] + }, + "aws.protocoltests.restxml#NestedXmlMaps": { + "requests": [ + { + "id": "NestedXmlMapRequest", + "documentation": "Tests requests with nested maps.", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/NestedXmlMaps", + "body": "\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nestedMap": { + "foo": { + "bar": "Bar" + } + } + } + }, + { + "id": "FlatNestedXmlMapRequest", + "documentation": "Tests requests with nested flat maps. Since maps can only be\nflattened when they're structure members, only the outer map is flat.", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/NestedXmlMaps", + "body": "\n \n foo\n \n \n bar\n Bar\n \n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "flatNestedMap": { + "foo": { + "bar": "Bar" + } + } + } + } + ], + "responses": [ + { + "id": "NestedXmlMapResponse", + "documentation": "Tests responses with nested maps.", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nestedMap": { + "foo": { + "bar": "Bar" + } + } + } + }, + { + "id": "FlatNestedXmlMapResponse", + "documentation": "Tests responses with nested flat maps. Since maps can only be\nflattened when they're structure members, only the outer map is flat.", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n foo\n \n \n bar\n Bar\n \n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "flatNestedMap": { + "foo": { + "bar": "Bar" + } + } + } + } + ] + }, + "aws.protocoltests.restxml#NoInputAndNoOutput": { + "requests": [ + { + "id": "NoInputAndNoOutput", + "documentation": "No input serializes no payload", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/NoInputAndNoOutput", + "body": "" + } + ], + "responses": [ + { + "id": "NoInputAndNoOutput", + "documentation": "No output serializes no payload", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "" + } + ] + }, + "aws.protocoltests.restxml#NoInputAndOutput": { + "requests": [ + { + "id": "NoInputAndOutput", + "documentation": "No input serializes no payload", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/NoInputAndOutputOutput", + "body": "" + } + ], + "responses": [ + { + "id": "NoInputAndOutput", + "documentation": "Empty output serializes no payload", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "" + } + ] + }, + "aws.protocoltests.restxml#NullAndEmptyHeadersClient": { + "requests": [ + { + "id": "NullAndEmptyHeaders", + "documentation": "Do not send null values, but do send empty strings and empty lists over the wire in headers", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/NullAndEmptyHeadersClient", + "forbidHeaders": [ + "X-A" + ], + "headers": { + "X-B": "", + "X-C": "" + }, + "body": "", + "params": { + "a": null, + "b": "", + "c": [] + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#OmitsNullSerializesEmptyString": { + "requests": [ + { + "id": "RestXmlOmitsNullQuery", + "documentation": "Omits null query values", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/OmitsNullSerializesEmptyString", + "body": "", + "params": { + "nullValue": null + }, + "appliesTo": "client" + }, + { + "id": "RestXmlSerializesEmptyString", + "documentation": "Serializes empty query strings", + "protocol": "aws.protocols#restXml", + "method": "GET", + "uri": "/OmitsNullSerializesEmptyString", + "body": "", + "queryParams": [ + "Empty=" + ], + "params": { + "emptyString": "" + } + } + ] + }, + "aws.protocoltests.restxml#PutWithContentEncoding": { + "requests": [ + { + "id": "SDKAppliedContentEncoding_restXml", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", + "protocol": "aws.protocols#restXml", + "params": { + "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVw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WjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" + }, + "method": "POST", + "uri": "/requestcompression/putcontentwithencoding", + "headers": { + "Content-Encoding": "gzip" + } + }, + { + "id": "SDKAppendedGzipAfterProvidedEncoding_restXml", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n", + "protocol": "aws.protocols#restXml", + "params": { + "encoding": "custom", + "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxC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M008JVujRqulCucEMmntr\n" + }, + "method": "POST", + "uri": "/requestcompression/putcontentwithencoding", + "headers": { + "Content-Encoding": "custom, gzip" + } + } + ] + }, + "aws.protocoltests.restxml#QueryIdempotencyTokenAutoFill": { + "requests": [ + { + "id": "QueryIdempotencyTokenAutoFill", + "documentation": "Automatically adds idempotency token when not set", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/QueryIdempotencyTokenAutoFill", + "body": "", + "queryParams": [ + "token=00000000-0000-4000-8000-000000000000" + ], + "appliesTo": "client" + }, + { + "id": "QueryIdempotencyTokenAutoFillIsSet", + "documentation": "Uses the given idempotency token as-is", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/QueryIdempotencyTokenAutoFill", + "body": "", + "queryParams": [ + "token=00000000-0000-4000-8000-000000000000" + ], + "params": { + "token": "00000000-0000-4000-8000-000000000000" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#QueryParamsAsStringListMap": { + "requests": [ + { + "id": "RestXmlQueryParamsStringListMap", + "documentation": "Serialize query params from map of list strings", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/StringListMap", + "body": "", + "queryParams": [ + "corge=named", + "baz=bar", + "baz=qux" + ], + "params": { + "qux": "named", + "foo": { + "baz": [ + "bar", + "qux" + ] + } + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#QueryPrecedence": { + "requests": [ + { + "id": "RestXmlQueryPrecedence", + "documentation": "Prefer named query parameters when serializing", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/Precedence", + "body": "", + "queryParams": [ + "bar=named", + "qux=alsoFromMap" + ], + "params": { + "foo": "named", + "baz": { + "bar": "fromMap", + "qux": "alsoFromMap" + } + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#RecursiveShapes": { + "requests": [ + { + "id": "RecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/RecursiveShapes", + "body": "\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "foo": "Foo1", + "nested": { + "bar": "Bar1", + "recursiveMember": { + "foo": "Foo2", + "nested": { + "bar": "Bar2" + } + } + } + } + } + } + ], + "responses": [ + { + "id": "RecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "foo": "Foo1", + "nested": { + "bar": "Bar1", + "recursiveMember": { + "foo": "Foo2", + "nested": { + "bar": "Bar2" + } + } + } + } + } + } + ] + }, + "aws.protocoltests.restxml#SimpleScalarProperties": { + "requests": [ + { + "id": "SimpleScalarProperties", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/SimpleScalarProperties", + "body": "\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": "string", + "trueBooleanValue": true, + "falseBooleanValue": false, + "byteValue": 1, + "shortValue": 2, + "integerValue": 3, + "longValue": 4, + "floatValue": 5.5, + "doubleValue": 6.5 + } + }, + { + "id": "SimpleScalarPropertiesWithEscapedCharacter", + "documentation": "Serializes string with escaping", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/SimpleScalarProperties", + "body": "\n <string>\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": "" + } + }, + { + "id": "SimpleScalarPropertiesWithWhiteSpace", + "documentation": "Serializes string containing white space", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/SimpleScalarProperties", + "body": "\n string with white space \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": " string with white space " + } + }, + { + "id": "SimpleScalarPropertiesPureWhiteSpace", + "documentation": "Serializes string containing exclusively whitespace", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/SimpleScalarProperties", + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": " " + } + }, + { + "id": "RestXmlSupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/SimpleScalarProperties", + "body": "\n NaN\n NaN\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "floatValue": "NaN", + "doubleValue": "NaN" + } + }, + { + "id": "RestXmlSupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/SimpleScalarProperties", + "body": "\n Infinity\n Infinity\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "floatValue": "Infinity", + "doubleValue": "Infinity" + } + }, + { + "id": "RestXmlSupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/SimpleScalarProperties", + "body": "\n -Infinity\n -Infinity\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } + } + ], + "responses": [ + { + "id": "SimpleScalarProperties", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": "string", + "trueBooleanValue": true, + "falseBooleanValue": false, + "byteValue": 1, + "shortValue": 2, + "integerValue": 3, + "longValue": 4, + "floatValue": 5.5, + "doubleValue": 6.5 + } + }, + { + "id": "SimpleScalarPropertiesComplexEscapes", + "documentation": "Serializes string with escaping.\n\nThis validates the three escape types: literal, decimal and hexadecimal. It also validates that unescaping properly\nhandles the case where unescaping an & produces a newly formed escape sequence (this should not be re-unescaped).\n\nServers may produce different output, this test is designed different unescapes clients must handle\n", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n escaped data: &lt; \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": "escaped data: <\r\n" + }, + "appliesTo": "client" + }, + { + "id": "SimpleScalarPropertiesWithEscapedCharacter", + "documentation": "Serializes string with escaping", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n <string>\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": "" + } + }, + { + "id": "SimpleScalarPropertiesWithXMLPreamble", + "documentation": "Serializes simple scalar properties with xml preamble, comments and CDATA", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n\n \n string\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": "string" + } + }, + { + "id": "SimpleScalarPropertiesWithWhiteSpace", + "documentation": "Serializes string containing white space", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n\n string with white space \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": " string with white space " + } + }, + { + "id": "SimpleScalarPropertiesPureWhiteSpace", + "documentation": "Serializes string containing white space", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml", + "X-Foo": "Foo" + }, + "params": { + "foo": "Foo", + "stringValue": " " + } + }, + { + "id": "RestXmlSupportsNaNFloatOutputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n NaN\n NaN\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "floatValue": "NaN", + "doubleValue": "NaN" + } + }, + { + "id": "RestXmlSupportsInfinityFloatOutputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n Infinity\n Infinity\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "floatValue": "Infinity", + "doubleValue": "Infinity" + } + }, + { + "id": "RestXmlSupportsNegativeInfinityFloatOutputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n -Infinity\n -Infinity\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } + } + ] + }, + "aws.protocoltests.restxml#TimestampFormatHeaders": { + "requests": [ + { + "id": "TimestampFormatHeaders", + "documentation": "Tests how timestamp request headers are serialized", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/TimestampFormatHeaders", + "headers": { + "X-memberEpochSeconds": "1576540098", + "X-memberHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT", + "X-memberDateTime": "2019-12-16T23:48:18Z", + "X-defaultFormat": "Mon, 16 Dec 2019 23:48:18 GMT", + "X-targetEpochSeconds": "1576540098", + "X-targetHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT", + "X-targetDateTime": "2019-12-16T23:48:18Z" + }, + "body": "", + "params": { + "memberEpochSeconds": 1576540098, + "memberHttpDate": 1576540098, + "memberDateTime": 1576540098, + "defaultFormat": 1576540098, + "targetEpochSeconds": 1576540098, + "targetHttpDate": 1576540098, + "targetDateTime": 1576540098 + } + } + ], + "responses": [ + { + "id": "TimestampFormatHeaders", + "documentation": "Tests how timestamp response headers are serialized", + "protocol": "aws.protocols#restXml", + "code": 200, + "headers": { + "X-memberEpochSeconds": "1576540098", + "X-memberHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT", + "X-memberDateTime": "2019-12-16T23:48:18Z", + "X-defaultFormat": "Mon, 16 Dec 2019 23:48:18 GMT", + "X-targetEpochSeconds": "1576540098", + "X-targetHttpDate": "Mon, 16 Dec 2019 23:48:18 GMT", + "X-targetDateTime": "2019-12-16T23:48:18Z" + }, + "body": "", + "params": { + "memberEpochSeconds": 1576540098, + "memberHttpDate": 1576540098, + "memberDateTime": 1576540098, + "defaultFormat": 1576540098, + "targetEpochSeconds": 1576540098, + "targetHttpDate": 1576540098, + "targetDateTime": 1576540098 + } + } + ] + }, + "aws.protocoltests.restxml#XmlAttributes": { + "requests": [ + { + "id": "XmlAttributes", + "documentation": "Serializes XML attributes on the synthesized document", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlAttributes", + "body": "\n hi\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "foo": "hi", + "attr": "test" + } + }, + { + "id": "XmlAttributesWithEscaping", + "documentation": "Serializes XML attributes with escaped characters on the synthesized document", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlAttributes", + "body": "\n hi\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "foo": "hi", + "attr": "" + } + } + ], + "responses": [ + { + "id": "XmlAttributes", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n hi\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "foo": "hi", + "attr": "test" + } + } + ] + }, + "aws.protocoltests.restxml#XmlAttributesInMiddle": { + "requests": [ + { + "id": "XmlAttributesInMiddle", + "documentation": "Serializes XML attributes on a payload when the xmlAttribute trait targets a member in the middle of the member list", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlAttributesInMiddle", + "body": "\n Foo\n Baz\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "payload": { + "foo": "Foo", + "attr": "attributeValue", + "baz": "Baz" + } + } + } + ], + "responses": [ + { + "id": "XmlAttributesInMiddle", + "documentation": "Deserializes XML attributes on a payload when the xmlAttribute trait targets a member in the middle of the member list", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n Foo\n Baz\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "payload": { + "foo": "Foo", + "attr": "attributeValue", + "baz": "Baz" + } + } + } + ] + }, + "aws.protocoltests.restxml#XmlAttributesOnPayload": { + "requests": [ + { + "id": "XmlAttributesOnPayload", + "documentation": "Serializes XML attributes on the synthesized document", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlAttributesOnPayload", + "body": "\n hi\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "payload": { + "foo": "hi", + "attr": "test" + } + } + } + ], + "responses": [ + { + "id": "XmlAttributesOnPayload", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n hi\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "payload": { + "foo": "hi", + "attr": "test" + } + } + } + ] + }, + "aws.protocoltests.restxml#XmlBlobs": { + "requests": [ + { + "id": "XmlBlobs", + "documentation": "Blobs are base64 encoded", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlBlobs", + "body": "\n dmFsdWU=\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "data": "value" + } + } + ], + "responses": [ + { + "id": "XmlBlobs", + "documentation": "Blobs are base64 encoded", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n dmFsdWU=\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "data": "value" + } + } + ] + }, + "aws.protocoltests.restxml#XmlEmptyBlobs": { + "responses": [ + { + "id": "XmlEmptyBlobs", + "documentation": "Empty blobs are deserialized as empty string", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "data": "" + }, + "appliesTo": "client" + }, + { + "id": "XmlEmptySelfClosedBlobs", + "documentation": "Empty self closed blobs are deserialized as empty string", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "data": "" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#XmlEmptyLists": { + "requests": [ + { + "id": "XmlEmptyLists", + "documentation": "Serializes Empty XML lists", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlEmptyLists", + "body": "\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "stringList": [], + "stringSet": [] + }, + "appliesTo": "client" + } + ], + "responses": [ + { + "id": "XmlEmptyLists", + "documentation": "Deserializes Empty XML lists", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "stringList": [], + "stringSet": [] + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#XmlEmptyMaps": { + "requests": [ + { + "id": "XmlEmptyMaps", + "documentation": "Serializes Empty XML maps", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlEmptyMaps", + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": {} + }, + "appliesTo": "client" + } + ], + "responses": [ + { + "id": "XmlEmptyMaps", + "documentation": "Deserializes Empty XML maps", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": {} + }, + "appliesTo": "client" + }, + { + "id": "XmlEmptySelfClosedMaps", + "documentation": "Deserializes Empty Self-closed XML maps", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": {} + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#XmlEmptyStrings": { + "requests": [ + { + "id": "XmlEmptyStrings", + "documentation": "Serializes xml empty strings", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlEmptyStrings", + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "emptyString": "" + }, + "appliesTo": "client" + } + ], + "responses": [ + { + "id": "XmlEmptyStrings", + "documentation": "Deserializes xml empty strings", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "emptyString": "" + }, + "appliesTo": "client" + }, + { + "id": "XmlEmptySelfClosedStrings", + "documentation": "Empty self closed string are deserialized as empty string", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "emptyString": "" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.restxml#XmlEnums": { + "requests": [ + { + "id": "XmlEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlEnums", + "body": "\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "fooEnum1": "Foo", + "fooEnum2": "0", + "fooEnum3": "1", + "fooEnumList": [ + "Foo", + "0" + ], + "fooEnumSet": [ + "Foo", + "0" + ], + "fooEnumMap": { + "hi": "Foo", + "zero": "0" + } + } + } + ], + "responses": [ + { + "id": "XmlEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "fooEnum1": "Foo", + "fooEnum2": "0", + "fooEnum3": "1", + "fooEnumList": [ + "Foo", + "0" + ], + "fooEnumSet": [ + "Foo", + "0" + ], + "fooEnumMap": { + "hi": "Foo", + "zero": "0" + } + } + } + ] + }, + "aws.protocoltests.restxml#XmlIntEnums": { + "requests": [ + { + "id": "XmlIntEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlIntEnums", + "body": "\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "intEnum1": 1, + "intEnum2": 2, + "intEnum3": 3, + "intEnumList": [ + 1, + 2 + ], + "intEnumSet": [ + 1, + 2 + ], + "intEnumMap": { + "a": 1, + "b": 2 + } + } + } + ], + "responses": [ + { + "id": "XmlIntEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "intEnum1": 1, + "intEnum2": 2, + "intEnum3": 3, + "intEnumList": [ + 1, + 2 + ], + "intEnumSet": [ + 1, + 2 + ], + "intEnumMap": { + "a": 1, + "b": 2 + } + } + } + ] + }, + "aws.protocoltests.restxml#XmlLists": { + "requests": [ + { + "id": "XmlLists", + "documentation": "Tests for XML list serialization", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlLists", + "body": "\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ + "foo", + "bar" + ], + "integerList": [ + 1, + 2 + ], + "booleanList": [ + true, + false + ], + "timestampList": [ + 1398796238, + 1398796238 + ], + "enumList": [ + "Foo", + "0" + ], + "intEnumList": [ + 1, + 2 + ], + "nestedStringList": [ + [ + "foo", + "bar" + ], + [ + "baz", + "qux" + ] + ], + "renamedListMembers": [ + "foo", + "bar" + ], + "flattenedList": [ + "hi", + "bye" + ], + "flattenedList2": [ + "yep", + "nope" + ], + "structureList": [ + { + "a": "1", + "b": "2" + }, + { + "a": "3", + "b": "4" + } + ], + "flattenedStructureList": [ + { + "a": "5", + "b": "6" + }, + { + "a": "7", + "b": "8" + } + ] + } + } + ], + "responses": [ + { + "id": "XmlLists", + "documentation": "Tests for XML list serialization", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ + "foo", + "bar" + ], + "integerList": [ + 1, + 2 + ], + "booleanList": [ + true, + false + ], + "timestampList": [ + 1398796238, + 1398796238 + ], + "enumList": [ + "Foo", + "0" + ], + "intEnumList": [ + 1, + 2 + ], + "nestedStringList": [ + [ + "foo", + "bar" + ], + [ + "baz", + "qux" + ] + ], + "renamedListMembers": [ + "foo", + "bar" + ], + "flattenedList": [ + "hi", + "bye" + ], + "flattenedList2": [ + "yep", + "nope" + ], + "flattenedListWithMemberNamespace": [ + "a", + "b" + ], + "flattenedListWithNamespace": [ + "a", + "b" + ], + "structureList": [ + { + "a": "1", + "b": "2" + }, + { + "a": "3", + "b": "4" + } + ], + "flattenedStructureList": [ + { + "a": "5", + "b": "6" + }, + { + "a": "7", + "b": "8" + } + ] + } + } + ] + }, + "aws.protocoltests.restxml#XmlMapWithXmlNamespace": { + "requests": [ + { + "id": "RestXmlXmlMapWithXmlNamespace", + "documentation": "Serializes XML maps in requests that have xmlNamespace and xmlName on members", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlMapWithXmlNamespace", + "body": "\n \n \n a\n A\n \n \n b\n B\n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "a": "A", + "b": "B" + } + } + } + ], + "responses": [ + { + "id": "RestXmlXmlMapWithXmlNamespace", + "documentation": "Serializes XML maps in responses that have xmlNamespace and xmlName on members", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n \n a\n A\n \n \n b\n B\n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "a": "A", + "b": "B" + } + } + } + ] + }, + "aws.protocoltests.restxml#XmlMaps": { + "requests": [ + { + "id": "XmlMaps", + "documentation": "Tests for XML map serialization", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlMaps", + "body": "\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "foo": { + "hi": "there" + }, + "baz": { + "hi": "bye" + } + } + } + } + ], + "responses": [ + { + "id": "XmlMaps", + "documentation": "Tests for XML map serialization", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "foo": { + "hi": "there" + }, + "baz": { + "hi": "bye" + } + } + } + } + ] + }, + "aws.protocoltests.restxml#XmlMapsXmlName": { + "requests": [ + { + "id": "XmlMapsXmlName", + "documentation": "Serializes XML maps that have xmlName on members", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlMapsXmlName", + "body": "\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "foo": { + "hi": "there" + }, + "baz": { + "hi": "bye" + } + } + } + } + ], + "responses": [ + { + "id": "XmlMapsXmlName", + "documentation": "Serializes XML lists", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "myMap": { + "foo": { + "hi": "there" + }, + "baz": { + "hi": "bye" + } + } + } + } + ] + }, + "aws.protocoltests.restxml#XmlNamespaces": { + "requests": [ + { + "id": "XmlNamespaces", + "documentation": "Serializes XML namespaces", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlNamespaces", + "body": "\n \n Foo\n \n Bar\n Baz\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "foo": "Foo", + "values": [ + "Bar", + "Baz" + ] + } + } + } + ], + "responses": [ + { + "id": "XmlNamespaces", + "documentation": "Serializes XML namespaces", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n Foo\n \n Bar\n Baz\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "nested": { + "foo": "Foo", + "values": [ + "Bar", + "Baz" + ] + } + } + } + ] + }, + "aws.protocoltests.restxml#XmlTimestamps": { + "requests": [ + { + "id": "XmlTimestamps", + "documentation": "Tests how normal timestamps are serialized", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlTimestamps", + "body": "\n 2014-04-29T18:30:38Z\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "normal": 1398796238 + } + }, + { + "id": "XmlTimestampsWithDateTimeFormat", + "documentation": "Ensures that the timestampFormat of date-time works like normal timestamps", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlTimestamps", + "body": "\n 2014-04-29T18:30:38Z\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "dateTime": 1398796238 + } + }, + { + "id": "XmlTimestampsWithDateTimeOnTargetFormat", + "documentation": "Ensures that the timestampFormat of date-time on the target shape works like normal timestamps", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlTimestamps", + "body": "\n 2014-04-29T18:30:38Z\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "dateTimeOnTarget": 1398796238 + } + }, + { + "id": "XmlTimestampsWithEpochSecondsFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds works", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlTimestamps", + "body": "\n 1398796238\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "epochSeconds": 1398796238 + } + }, + { + "id": "XmlTimestampsWithEpochSecondsOnTargetFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds on the target shape works", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlTimestamps", + "body": "\n 1398796238\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "epochSecondsOnTarget": 1398796238 + } + }, + { + "id": "XmlTimestampsWithHttpDateFormat", + "documentation": "Ensures that the timestampFormat of http-date works", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlTimestamps", + "body": "\n Tue, 29 Apr 2014 18:30:38 GMT\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "httpDate": 1398796238 + } + }, + { + "id": "XmlTimestampsWithHttpDateOnTargetFormat", + "documentation": "Ensures that the timestampFormat of http-date on the target shape works", + "protocol": "aws.protocols#restXml", + "method": "POST", + "uri": "/XmlTimestamps", + "body": "\n Tue, 29 Apr 2014 18:30:38 GMT\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "httpDateOnTarget": 1398796238 + } + } + ], + "responses": [ + { + "id": "XmlTimestamps", + "documentation": "Tests how normal timestamps are serialized", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 2014-04-29T18:30:38Z\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "normal": 1398796238 + } + }, + { + "id": "XmlTimestampsWithDateTimeFormat", + "documentation": "Ensures that the timestampFormat of date-time works like normal timestamps", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 2014-04-29T18:30:38Z\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "dateTime": 1398796238 + } + }, + { + "id": "XmlTimestampsWithDateTimeOnTargetFormat", + "documentation": "Ensures that the timestampFormat of date-time on the target shape works like normal timestamps", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 2014-04-29T18:30:38Z\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "dateTimeOnTarget": 1398796238 + } + }, + { + "id": "XmlTimestampsWithEpochSecondsFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds works", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 1398796238\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "epochSeconds": 1398796238 + } + }, + { + "id": "XmlTimestampsWithEpochSecondsOnTargetFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds on the target shape works", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n 1398796238\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "epochSecondsOnTarget": 1398796238 + } + }, + { + "id": "XmlTimestampsWithHttpDateFormat", + "documentation": "Ensures that the timestampFormat of http-date works", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n Tue, 29 Apr 2014 18:30:38 GMT\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "httpDate": 1398796238 + } + }, + { + "id": "XmlTimestampsWithHttpDateOnTargetFormat", + "documentation": "Ensures that the timestampFormat of http-date on the target shape works", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n Tue, 29 Apr 2014 18:30:38 GMT\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "httpDateOnTarget": 1398796238 + } + } + ] + }, + "aws.protocoltests.restxml#XmlUnions": { + "requests": [ + { + "id": "XmlUnionsWithStructMember", + "documentation": "Serializes union struct member", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlUnions", + "body": "\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "unionValue": { + "structValue": { + "stringValue": "string", + "booleanValue": true, + "byteValue": 1, + "shortValue": 2, + "integerValue": 3, + "longValue": 4, + "floatValue": 5.5, + "doubleValue": 6.5 + } + } + } + }, + { + "id": "XmlUnionsWithStringMember", + "documentation": "serialize union string member", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlUnions", + "body": "\n \n some string\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "unionValue": { + "stringValue": "some string" + } + } + }, + { + "id": "XmlUnionsWithBooleanMember", + "documentation": "Serializes union boolean member", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlUnions", + "body": "\n \n true\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "unionValue": { + "booleanValue": true + } + } + }, + { + "id": "XmlUnionsWithUnionMember", + "documentation": "Serializes union member", + "protocol": "aws.protocols#restXml", + "method": "PUT", + "uri": "/XmlUnions", + "body": "\n \n \n true\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "unionValue": { + "unionValue": { + "booleanValue": true + } + } + } + } + ], + "responses": [ + { + "id": "XmlUnionsWithStructMember", + "documentation": "Serializes union struct member", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "unionValue": { + "structValue": { + "stringValue": "string", + "booleanValue": true, + "byteValue": 1, + "shortValue": 2, + "integerValue": 3, + "longValue": 4, + "floatValue": 5.5, + "doubleValue": 6.5 + } + } + } + }, + { + "id": "XmlUnionsWithStringMember", + "documentation": "Serializes union string member", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n some string\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "unionValue": { + "stringValue": "some string" + } + } + }, + { + "id": "XmlUnionsWithBooleanMember", + "documentation": "Serializes union boolean member", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n true\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "unionValue": { + "booleanValue": true + } + } + }, + { + "id": "XmlUnionsWithUnionMember", + "documentation": "Serializes union member", + "protocol": "aws.protocols#restXml", + "code": 200, + "body": "\n \n \n true\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "application/xml" + }, + "params": { + "unionValue": { + "unionValue": { + "booleanValue": true + } + } + } + } + ] + } +} diff --git a/scripts/codegen-output-py/models/vectors/rpcv2-cbor.json b/scripts/codegen-output-py/models/vectors/rpcv2-cbor.json index 05ee79813..0e3f050ad 100644 --- a/scripts/codegen-output-py/models/vectors/rpcv2-cbor.json +++ b/scripts/codegen-output-py/models/vectors/rpcv2-cbor.json @@ -2,559 +2,564 @@ "smithy.protocoltests.rpcv2Cbor#ComplexError": { "responses": [ { - "body": "v2ZfX3R5cGV4K3NtaXRoeS5wcm90b2NvbHRlc3RzLnJwY3YyQ2JvciNDb21wbGV4RXJyb3JoVG9wTGV2ZWxpVG9wIGxldmVsZk5lc3RlZL9jRm9vY2Jhcv//", - "bodyMediaType": "application/cbor", - "code": 400, - "documentation": "Parses a complex error with no message member", - "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" - }, "id": "RpcV2CborComplexError", + "documentation": "Parses a complex error with no message member", + "protocol": "smithy.protocols#rpcv2Cbor", "params": { + "TopLevel": "Top level", "Nested": { "Foo": "bar" - }, - "TopLevel": "Top level" + } + }, + "code": 400, + "headers": { + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "protocol": "smithy.protocols#rpcv2Cbor" + "body": "v2ZfX3R5cGV4K3NtaXRoeS5wcm90b2NvbHRlc3RzLnJwY3YyQ2JvciNDb21wbGV4RXJyb3JoVG9wTGV2ZWxpVG9wIGxldmVsZk5lc3RlZL9jRm9vY2Jhcv//", + "bodyMediaType": "application/cbor" }, { - "body": "v2ZfX3R5cGV4K3NtaXRoeS5wcm90b2NvbHRlc3RzLnJwY3YyQ2JvciNDb21wbGV4RXJyb3L/", - "bodyMediaType": "application/cbor", + "id": "RpcV2CborEmptyComplexError", + "protocol": "smithy.protocols#rpcv2Cbor", "code": 400, "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborEmptyComplexError", - "protocol": "smithy.protocols#rpcv2Cbor" + "body": "v2ZfX3R5cGV4K3NtaXRoeS5wcm90b2NvbHRlc3RzLnJwY3YyQ2JvciNDb21wbGV4RXJyb3L/", + "bodyMediaType": "application/cbor" } ] }, "smithy.protocoltests.rpcv2Cbor#EmptyInputOutput": { "requests": [ { - "body": "v/8=", - "bodyMediaType": "application/cbor", + "id": "empty_input", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "When Input structure is empty we write CBOR equivalent of {}", - "forbidHeaders": [ - "X-Amz-Target" - ], "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "empty_input", - "method": "POST", - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "uri": "/service/RpcV2Protocol/operation/EmptyInputOutput" + "forbidHeaders": [ + "X-Amz-Target" + ], + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/EmptyInputOutput", + "bodyMediaType": "application/cbor", + "body": "v/8=" } ], "responses": [ { + "id": "empty_output", + "protocol": "smithy.protocols#rpcv2Cbor", + "documentation": "When output structure is empty we write CBOR equivalent of {}", "body": "v/8=", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "When output structure is empty we write CBOR equivalent of {}", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "empty_output", - "protocol": "smithy.protocols#rpcv2Cbor" + "code": 200 }, { - "appliesTo": "client", + "id": "empty_output_no_body", + "protocol": "smithy.protocols#rpcv2Cbor", + "documentation": "When output structure is empty the client should accept an empty body", "body": "", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "When output structure is empty the client should accept an empty body", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "empty_output_no_body", - "protocol": "smithy.protocols#rpcv2Cbor" + "code": 200, + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Cbor#Float16": { "responses": [ { - "appliesTo": "client", - "body": "oWV2YWx1Zfl8AA==", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborFloat16Inf", "documentation": "Ensures that clients can correctly parse float16 +Inf.", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, + "body": "oWV2YWx1Zfl8AA==", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborFloat16Inf", "params": { "value": "Infinity" }, - "protocol": "smithy.protocols#rpcv2Cbor" + "bodyMediaType": "application/cbor", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "oWV2YWx1Zfn8AA==", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborFloat16NegInf", "documentation": "Ensures that clients can correctly parse float16 -Inf.", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, + "body": "oWV2YWx1Zfn8AA==", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborFloat16NegInf", "params": { "value": "-Infinity" }, - "protocol": "smithy.protocols#rpcv2Cbor" + "bodyMediaType": "application/cbor", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "oWV2YWx1Zfl8AQ==", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborFloat16LSBNaN", "documentation": "Ensures that clients can correctly parse float16 NaN with high LSB.", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, + "body": "oWV2YWx1Zfl8AQ==", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborFloat16LSBNaN", "params": { "value": "NaN" }, - "protocol": "smithy.protocols#rpcv2Cbor" + "bodyMediaType": "application/cbor", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "oWV2YWx1Zfl+AA==", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborFloat16MSBNaN", "documentation": "Ensures that clients can correctly parse float16 NaN with high MSB.", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, + "body": "oWV2YWx1Zfl+AA==", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborFloat16MSBNaN", "params": { "value": "NaN" }, - "protocol": "smithy.protocols#rpcv2Cbor" + "bodyMediaType": "application/cbor", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "oWV2YWx1ZfkAUA==", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborFloat16Subnormal", "documentation": "Ensures that clients can correctly parse a subnormal float16.", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, + "body": "oWV2YWx1ZfkAUA==", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborFloat16Subnormal", "params": { "value": 0.00000476837158203125 }, - "protocol": "smithy.protocols#rpcv2Cbor" + "bodyMediaType": "application/cbor", + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Cbor#FractionalSeconds": { "responses": [ { - "appliesTo": "client", - "body": "v2hkYXRldGltZcH7Qcw32zgPvnf/", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborDateTimeWithFractionalSeconds", "documentation": "Ensures that clients can correctly parse timestamps with fractional seconds", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, + "body": "v2hkYXRldGltZcH7Qcw32zgPvnf/", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDateTimeWithFractionalSeconds", "params": { "datetime": 946845296.123 }, - "protocol": "smithy.protocols#rpcv2Cbor" + "bodyMediaType": "application/cbor", + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Cbor#InvalidGreeting": { "responses": [ { - "body": "v2ZfX3R5cGV4LnNtaXRoeS5wcm90b2NvbHRlc3RzLnJwY3YyQ2JvciNJbnZhbGlkR3JlZXRpbmdnTWVzc2FnZWJIaf8=", - "bodyMediaType": "application/cbor", - "code": 400, - "documentation": "Parses simple RpcV2 Cbor errors", - "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" - }, "id": "RpcV2CborInvalidGreetingError", + "documentation": "Parses simple RpcV2 Cbor errors", + "protocol": "smithy.protocols#rpcv2Cbor", "params": { "Message": "Hi" }, - "protocol": "smithy.protocols#rpcv2Cbor" + "code": 400, + "headers": { + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" + }, + "body": "v2ZfX3R5cGV4LnNtaXRoeS5wcm90b2NvbHRlc3RzLnJwY3YyQ2JvciNJbnZhbGlkR3JlZXRpbmdnTWVzc2FnZWJIaf8=", + "bodyMediaType": "application/cbor" } ] }, "smithy.protocoltests.rpcv2Cbor#NoInputOutput": { "requests": [ { - "body": "", + "id": "no_input", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Body is empty and no Content-Type header if no input", + "headers": { + "smithy-protocol": "rpc-v2-cbor", + "Accept": "application/cbor" + }, "forbidHeaders": [ "Content-Type", "X-Amz-Target" ], - "headers": { - "Accept": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" - }, - "id": "no_input", "method": "POST", - "protocol": "smithy.protocols#rpcv2Cbor", - "uri": "/service/RpcV2Protocol/operation/NoInputOutput" + "uri": "/service/RpcV2Protocol/operation/NoInputOutput", + "body": "" } ], "responses": [ { + "id": "no_output", + "protocol": "smithy.protocols#rpcv2Cbor", + "documentation": "A `Content-Type` header should not be set if the response body is empty.", "body": "", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "A `Content-Type` header should not be set if the response body is empty.", - "forbidHeaders": [ - "Content-Type" - ], "headers": { "smithy-protocol": "rpc-v2-cbor" }, - "id": "no_output", - "protocol": "smithy.protocols#rpcv2Cbor" + "forbidHeaders": [ + "Content-Type" + ], + "code": 200 }, { - "appliesTo": "client", - "body": "v/8=", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "NoOutputClientAllowsEmptyCbor", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Clients should accept a CBOR empty struct if there is no output.", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "NoOutputClientAllowsEmptyCbor", - "protocol": "smithy.protocols#rpcv2Cbor" + "code": 200, + "bodyMediaType": "application/cbor", + "body": "v/8=", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "NoOutputClientAllowsEmptyBody", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Clients should accept an empty body if there is no output and\nshould not raise an error if the `Content-Type` header is set.", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "NoOutputClientAllowsEmptyBody", - "protocol": "smithy.protocols#rpcv2Cbor" + "code": 200, + "bodyMediaType": "application/cbor", + "body": "", + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Cbor#OperationWithDefaults": { "requests": [ { - "appliesTo": "client", - "body": "v2hkZWZhdWx0c79tZGVmYXVsdFN0cmluZ2JoaW5kZWZhdWx0Qm9vbGVhbvVrZGVmYXVsdExpc3Sf/3BkZWZhdWx0VGltZXN0YW1wwQBrZGVmYXVsdEJsb2JDYWJja2RlZmF1bHRCeXRlAWxkZWZhdWx0U2hvcnQBbmRlZmF1bHRJbnRlZ2VyCmtkZWZhdWx0TG9uZxhkbGRlZmF1bHRGbG9hdPo/gAAAbWRlZmF1bHREb3VibGX6P4AAAGpkZWZhdWx0TWFwv/9rZGVmYXVsdEVudW1jRk9PbmRlZmF1bHRJbnRFbnVtAWtlbXB0eVN0cmluZ2BsZmFsc2VCb29sZWFu9GllbXB0eUJsb2JAaHplcm9CeXRlAGl6ZXJvU2hvcnQAa3plcm9JbnRlZ2VyAGh6ZXJvTG9uZwBpemVyb0Zsb2F0+gAAAABqemVyb0RvdWJsZfoAAAAA//8=", - "bodyMediaType": "application/cbor", + "id": "RpcV2CborClientPopulatesDefaultValuesInInput", "documentation": "Client populates default values in input.", + "protocol": "smithy.protocols#rpcv2Cbor", + "appliesTo": "client", + "tags": [ + "defaults" + ], + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" - }, - "id": "RpcV2CborClientPopulatesDefaultValuesInInput", - "method": "POST", - "params": { - "defaults": {} + "Accept": "application/cbor" }, - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults" + "bodyMediaType": "application/cbor", + "body": "v2hkZWZhdWx0c79tZGVmYXVsdFN0cmluZ2JoaW5kZWZhdWx0Qm9vbGVhbvVrZGVmYXVsdExpc3Sf/3BkZWZhdWx0VGltZXN0YW1wwQBrZGVmYXVsdEJsb2JDYWJja2RlZmF1bHRCeXRlAWxkZWZhdWx0U2hvcnQBbmRlZmF1bHRJbnRlZ2VyCmtkZWZhdWx0TG9uZxhkbGRlZmF1bHRGbG9hdPo/gAAAbWRlZmF1bHREb3VibGX6P4AAAGpkZWZhdWx0TWFwv/9rZGVmYXVsdEVudW1jRk9PbmRlZmF1bHRJbnRFbnVtAWtlbXB0eVN0cmluZ2BsZmFsc2VCb29sZWFu9GllbXB0eUJsb2JAaHplcm9CeXRlAGl6ZXJvU2hvcnQAa3plcm9JbnRlZ2VyAGh6ZXJvTG9uZwBpemVyb0Zsb2F0+gAAAABqemVyb0RvdWJsZfoAAAAA//8=", + "params": { + "defaults": {} + } }, { + "id": "RpcV2CborClientSkipsTopLevelDefaultValuesInInput", + "documentation": "Client skips top level default values in input.", "appliesTo": "client", - "body": "v/8=", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", "bodyMediaType": "application/cbor", - "documentation": "Client skips top level default values in input.", + "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborClientSkipsTopLevelDefaultValuesInInput", - "method": "POST", - "params": {}, - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults" + "body": "v/8=", + "params": {} }, { + "id": "RpcV2CborClientUsesExplicitlyProvidedMemberValuesOverDefaults", + "documentation": "Client uses explicitly provided member values over defaults", "appliesTo": "client", - "body": "v2hkZWZhdWx0c7dtZGVmYXVsdFN0cmluZ2NieWVuZGVmYXVsdEJvb2xlYW71a2RlZmF1bHRMaXN0gWFhcGRlZmF1bHRUaW1lc3RhbXDB+z/wAAAAAAAAa2RlZmF1bHRCbG9iQmhpa2RlZmF1bHRCeXRlAmxkZWZhdWx0U2hvcnQCbmRlZmF1bHRJbnRlZ2VyFGtkZWZhdWx0TG9uZxjIbGRlZmF1bHRGbG9hdPpAAAAAbWRlZmF1bHREb3VibGX7QAAAAAAAAABqZGVmYXVsdE1hcKFkbmFtZWRKYWNra2RlZmF1bHRFbnVtY0JBUm5kZWZhdWx0SW50RW51bQJrZW1wdHlTdHJpbmdjZm9vbGZhbHNlQm9vbGVhbvVpZW1wdHlCbG9iQmhpaHplcm9CeXRlAWl6ZXJvU2hvcnQBa3plcm9JbnRlZ2VyAWh6ZXJvTG9uZwFpemVyb0Zsb2F0+j+AAABqemVyb0RvdWJsZfs/8AAAAAAAAP8=", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", "bodyMediaType": "application/cbor", - "documentation": "Client uses explicitly provided member values over defaults", + "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborClientUsesExplicitlyProvidedMemberValuesOverDefaults", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], + "body": "v2hkZWZhdWx0c7dtZGVmYXVsdFN0cmluZ2NieWVuZGVmYXVsdEJvb2xlYW71a2RlZmF1bHRMaXN0gWFhcGRlZmF1bHRUaW1lc3RhbXDB+z/wAAAAAAAAa2RlZmF1bHRCbG9iQmhpa2RlZmF1bHRCeXRlAmxkZWZhdWx0U2hvcnQCbmRlZmF1bHRJbnRlZ2VyFGtkZWZhdWx0TG9uZxjIbGRlZmF1bHRGbG9hdPpAAAAAbWRlZmF1bHREb3VibGX7QAAAAAAAAABqZGVmYXVsdE1hcKFkbmFtZWRKYWNra2RlZmF1bHRFbnVtY0JBUm5kZWZhdWx0SW50RW51bQJrZW1wdHlTdHJpbmdjZm9vbGZhbHNlQm9vbGVhbvVpZW1wdHlCbG9iQmhpaHplcm9CeXRlAWl6ZXJvU2hvcnQBa3plcm9JbnRlZ2VyAWh6ZXJvTG9uZwFpemVyb0Zsb2F0+j+AAABqemVyb0RvdWJsZfs/8AAAAAAAAP8=", "params": { "defaults": { - "defaultBlob": "hi", + "defaultString": "bye", "defaultBoolean": true, - "defaultByte": 2, - "defaultDouble": 2.0, - "defaultEnum": "BAR", - "defaultFloat": 2.0, - "defaultIntEnum": 2, - "defaultInteger": 20, "defaultList": [ "a" ], + "defaultTimestamp": 1, + "defaultBlob": "hi", + "defaultByte": 2, + "defaultShort": 2, + "defaultInteger": 20, "defaultLong": 200, + "defaultFloat": 2.0, + "defaultDouble": 2.0, "defaultMap": { "name": "Jack" }, - "defaultShort": 2, - "defaultString": "bye", - "defaultTimestamp": 1, - "emptyBlob": "hi", + "defaultEnum": "BAR", + "defaultIntEnum": 2, "emptyString": "foo", "falseBoolean": true, + "emptyBlob": "hi", "zeroByte": 1, - "zeroDouble": 1.0, - "zeroFloat": 1.0, + "zeroShort": 1, "zeroInteger": 1, "zeroLong": 1, - "zeroShort": 1 + "zeroFloat": 1.0, + "zeroDouble": 1.0 } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults" + } }, { + "id": "RpcV2CborClientUsesExplicitlyProvidedValuesInTopLevel", + "documentation": "Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.", "appliesTo": "client", - "body": "v290b3BMZXZlbERlZmF1bHRiaGl0b3RoZXJUb3BMZXZlbERlZmF1bHQA/w==", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", "bodyMediaType": "application/cbor", - "documentation": "Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.", + "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborClientUsesExplicitlyProvidedValuesInTopLevel", - "method": "POST", - "params": { - "otherTopLevelDefault": 0, - "topLevelDefault": "hi" - }, - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults" + "body": "v290b3BMZXZlbERlZmF1bHRiaGl0b3RoZXJUb3BMZXZlbERlZmF1bHQA/w==", + "params": { + "topLevelDefault": "hi", + "otherTopLevelDefault": 0 + } }, { + "id": "RpcV2CborClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional", + "documentation": "Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.", "appliesTo": "client", - "body": "v3ZjbGllbnRPcHRpb25hbERlZmF1bHRzoP8=", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", "bodyMediaType": "application/cbor", - "documentation": "Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.", + "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional", - "method": "POST", - "params": { - "clientOptionalDefaults": {} - }, - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2Protocol/operation/OperationWithDefaults" + "body": "v3ZjbGllbnRPcHRpb25hbERlZmF1bHRzoP8=", + "params": { + "clientOptionalDefaults": {} + } } ], "responses": [ { + "id": "RpcV2CborClientPopulatesDefaultsValuesWhenMissingInResponse", + "documentation": "Client populates default values when missing in response.", "appliesTo": "client", - "body": "v/8=", - "bodyMediaType": "application/cbor", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Cbor", "code": 200, - "documentation": "Client populates default values when missing in response.", + "bodyMediaType": "application/cbor", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborClientPopulatesDefaultsValuesWhenMissingInResponse", + "body": "v/8=", "params": { - "defaultBlob": "abc", + "defaultString": "hi", "defaultBoolean": true, + "defaultList": [], + "defaultTimestamp": 0, + "defaultBlob": "abc", "defaultByte": 1, - "defaultDouble": 1.0, - "defaultEnum": "FOO", - "defaultFloat": 1.0, - "defaultIntEnum": 1, + "defaultShort": 1, "defaultInteger": 10, - "defaultList": [], "defaultLong": 100, + "defaultFloat": 1.0, + "defaultDouble": 1.0, "defaultMap": {}, - "defaultShort": 1, - "defaultString": "hi", - "defaultTimestamp": 0, - "emptyBlob": "", + "defaultEnum": "FOO", + "defaultIntEnum": 1, "emptyString": "", "falseBoolean": false, + "emptyBlob": "", "zeroByte": 0, - "zeroDouble": 0.0, - "zeroFloat": 0.0, + "zeroShort": 0, "zeroInteger": 0, "zeroLong": 0, - "zeroShort": 0 - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "tags": [ - "defaults" - ] + "zeroFloat": 0.0, + "zeroDouble": 0.0 + } }, { + "id": "RpcV2CborClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse", + "documentation": "Client ignores default values if member values are present in the response.", "appliesTo": "client", - "body": "v21kZWZhdWx0U3RyaW5nY2J5ZW5kZWZhdWx0Qm9vbGVhbvRrZGVmYXVsdExpc3SBYWFwZGVmYXVsdFRpbWVzdGFtcMH7QAAAAAAAAABrZGVmYXVsdEJsb2JCaGlrZGVmYXVsdEJ5dGUCbGRlZmF1bHRTaG9ydAJuZGVmYXVsdEludGVnZXIUa2RlZmF1bHRMb25nGMhsZGVmYXVsdEZsb2F0+kAAAABtZGVmYXVsdERvdWJsZftAAAAAAAAAAGpkZWZhdWx0TWFwoWRuYW1lZEphY2trZGVmYXVsdEVudW1jQkFSbmRlZmF1bHRJbnRFbnVtAmtlbXB0eVN0cmluZ2Nmb29sZmFsc2VCb29sZWFu9WllbXB0eUJsb2JCaGloemVyb0J5dGUBaXplcm9TaG9ydAFremVyb0ludGVnZXIBaHplcm9Mb25nAWl6ZXJvRmxvYXT6P4AAAGp6ZXJvRG91Ymxl+z/wAAAAAAAA/w==", - "bodyMediaType": "application/cbor", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Cbor", "code": 200, - "documentation": "Client ignores default values if member values are present in the response.", + "bodyMediaType": "application/cbor", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse", + "body": "v21kZWZhdWx0U3RyaW5nY2J5ZW5kZWZhdWx0Qm9vbGVhbvRrZGVmYXVsdExpc3SBYWFwZGVmYXVsdFRpbWVzdGFtcMH7QAAAAAAAAABrZGVmYXVsdEJsb2JCaGlrZGVmYXVsdEJ5dGUCbGRlZmF1bHRTaG9ydAJuZGVmYXVsdEludGVnZXIUa2RlZmF1bHRMb25nGMhsZGVmYXVsdEZsb2F0+kAAAABtZGVmYXVsdERvdWJsZftAAAAAAAAAAGpkZWZhdWx0TWFwoWRuYW1lZEphY2trZGVmYXVsdEVudW1jQkFSbmRlZmF1bHRJbnRFbnVtAmtlbXB0eVN0cmluZ2Nmb29sZmFsc2VCb29sZWFu9WllbXB0eUJsb2JCaGloemVyb0J5dGUBaXplcm9TaG9ydAFremVyb0ludGVnZXIBaHplcm9Mb25nAWl6ZXJvRmxvYXT6P4AAAGp6ZXJvRG91Ymxl+z/wAAAAAAAA/w==", "params": { - "defaultBlob": "hi", + "defaultString": "bye", "defaultBoolean": false, - "defaultByte": 2, - "defaultDouble": 2.0, - "defaultEnum": "BAR", - "defaultFloat": 2.0, - "defaultIntEnum": 2, - "defaultInteger": 20, "defaultList": [ "a" ], + "defaultTimestamp": 2, + "defaultBlob": "hi", + "defaultByte": 2, + "defaultShort": 2, + "defaultInteger": 20, "defaultLong": 200, + "defaultFloat": 2.0, + "defaultDouble": 2.0, "defaultMap": { "name": "Jack" }, - "defaultShort": 2, - "defaultString": "bye", - "defaultTimestamp": 2, - "emptyBlob": "hi", + "defaultEnum": "BAR", + "defaultIntEnum": 2, "emptyString": "foo", "falseBoolean": true, + "emptyBlob": "hi", "zeroByte": 1, - "zeroDouble": 1.0, - "zeroFloat": 1.0, + "zeroShort": 1, "zeroInteger": 1, - "zeroLong": 1, - "zeroShort": 1 - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "tags": [ - "defaults" - ] + "zeroLong": 1, + "zeroFloat": 1.0, + "zeroDouble": 1.0 + } } ] }, "smithy.protocoltests.rpcv2Cbor#OptionalInputOutput": { "requests": [ { - "body": "v/8=", - "bodyMediaType": "application/cbor", + "id": "optional_input", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "When input is empty we write CBOR equivalent of {}", - "forbidHeaders": [ - "X-Amz-Target" - ], "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "optional_input", + "forbidHeaders": [ + "X-Amz-Target" + ], "method": "POST", - "protocol": "smithy.protocols#rpcv2Cbor", - "uri": "/service/RpcV2Protocol/operation/OptionalInputOutput" + "uri": "/service/RpcV2Protocol/operation/OptionalInputOutput", + "bodyMediaType": "application/cbor", + "body": "v/8=" } ], "responses": [ { + "id": "optional_output", + "protocol": "smithy.protocols#rpcv2Cbor", + "documentation": "When output is empty we write CBOR equivalent of {}", "body": "v/8=", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "When output is empty we write CBOR equivalent of {}", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "optional_output", - "protocol": "smithy.protocols#rpcv2Cbor" + "code": 200 } ] }, "smithy.protocoltests.rpcv2Cbor#RecursiveShapes": { "requests": [ { + "id": "RpcV2CborRecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RecursiveShapes", "body": "v2ZuZXN0ZWS/Y2Zvb2RGb28xZm5lc3RlZL9jYmFyZEJhcjFvcmVjdXJzaXZlTWVtYmVyv2Nmb29kRm9vMmZuZXN0ZWS/Y2JhcmRCYXIy//////8=", "bodyMediaType": "application/cbor", - "documentation": "Serializes recursive structures", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborRecursiveShapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "nested": { "foo": "Foo1", @@ -568,25 +573,21 @@ } } } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RecursiveShapes" + } } ], "responses": [ { + "id": "RpcV2CborRecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v2ZuZXN0ZWS/Y2Zvb2RGb28xZm5lc3RlZL9jYmFyZEJhcjFvcmVjdXJzaXZlTWVtYmVyv2Nmb29kRm9vMmZuZXN0ZWS/Y2JhcmRCYXIy//////8=", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Serializes recursive structures", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborRecursiveShapes", "params": { "nested": { "foo": "Foo1", @@ -600,20 +601,19 @@ } } } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { - "appliesTo": "client", + "id": "RpcV2CborRecursiveShapesUsingDefiniteLength", + "documentation": "Deserializes recursive structures encoded using a map with definite length", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "oWZuZXN0ZWSiY2Zvb2RGb28xZm5lc3RlZKJjYmFyZEJhcjFvcmVjdXJzaXZlTWVtYmVyomNmb29kRm9vMmZuZXN0ZWShY2JhcmRCYXIy", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Deserializes recursive structures encoded using a map with definite length", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborRecursiveShapesUsingDefiniteLength", "params": { "nested": { "foo": "Foo1", @@ -628,75 +628,80 @@ } } }, - "protocol": "smithy.protocols#rpcv2Cbor" + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Cbor#RpcV2CborDenseMaps": { "requests": [ { + "id": "RpcV2CborMaps", + "documentation": "Serializes maps", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps", "body": "oW5kZW5zZVN0cnVjdE1hcKJjZm9voWJoaWV0aGVyZWNiYXqhYmhpY2J5ZQ==", "bodyMediaType": "application/cbor", - "documentation": "Serializes maps", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborMaps", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "denseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps" + } }, { + "id": "RpcV2CborSerializesZeroValuesInMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps", "body": "om5kZW5zZU51bWJlck1hcKFheABvZGVuc2VCb29sZWFuTWFwoWF49A==", "bodyMediaType": "application/cbor", - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSerializesZeroValuesInMaps", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { - "denseBooleanMap": { - "x": false - }, "denseNumberMap": { "x": 0 + }, + "denseBooleanMap": { + "x": false } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps" + } }, { + "id": "RpcV2CborSerializesDenseSetMap", + "documentation": "A request that contains a dense map of sets.", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps", "body": "oWtkZW5zZVNldE1hcKJheIBheYJhYWFi", "bodyMediaType": "application/cbor", - "documentation": "A request that contains a dense map of sets.", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSerializesDenseSetMap", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "denseSetMap": { "x": [], @@ -705,67 +710,63 @@ "b" ] } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps" + } } ], "responses": [ { + "id": "RpcV2CborMaps", + "documentation": "Deserializes maps", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "oW5kZW5zZVN0cnVjdE1hcKJjZm9voWJoaWV0aGVyZWNiYXqhYmhpY2J5ZQ==", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Deserializes maps", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborMaps", "params": { "denseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborDeserializesZeroValuesInMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "om5kZW5zZU51bWJlck1hcKFheABvZGVuc2VCb29sZWFuTWFwoWF49A==", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDeserializesZeroValuesInMaps", "params": { - "denseBooleanMap": { - "x": false - }, "denseNumberMap": { "x": 0 + }, + "denseBooleanMap": { + "x": false } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborDeserializesDenseSetMap", + "documentation": "A response that contains a dense map of sets", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "oWtkZW5zZVNldE1hcKJheIBheYJhYWFi", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "A response that contains a dense map of sets", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDeserializesDenseSetMap", "params": { "denseSetMap": { "x": [], @@ -774,33 +775,49 @@ "b" ] } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } } ] }, "smithy.protocoltests.rpcv2Cbor#RpcV2CborLists": { "requests": [ { + "id": "RpcV2CborLists", + "documentation": "Serializes RpcV2 Cbor lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborLists", "body": "v2pzdHJpbmdMaXN0gmNmb29jYmFyaXN0cmluZ1NldIJjZm9vY2JhcmtpbnRlZ2VyTGlzdIIBAmtib29sZWFuTGlzdIL19G10aW1lc3RhbXBMaXN0gsH7QdTX+/OAAADB+0HU1/vzgAAAaGVudW1MaXN0gmNGb29hMGtpbnRFbnVtTGlzdIIBAnBuZXN0ZWRTdHJpbmdMaXN0goJjZm9vY2JhcoJjYmF6Y3F1eG1zdHJ1Y3R1cmVMaXN0gqJhYWExYWJhMqJhYWEzYWJhNGhibG9iTGlzdIJDZm9vQ2Jhcv8=", "bodyMediaType": "application/cbor", - "documentation": "Serializes RpcV2 Cbor lists", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborLists", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { - "blobList": [ + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ "foo", "bar" ], + "integerList": [ + 1, + 2 + ], "booleanList": [ true, false ], + "timestampList": [ + 1398796238, + 1398796238 + ], "enumList": [ "Foo", "0" @@ -809,10 +826,6 @@ 1, 2 ], - "integerList": [ - 1, - 2 - ], "nestedStringList": [ [ "foo", @@ -823,14 +836,6 @@ "qux" ] ], - "stringList": [ - "foo", - "bar" - ], - "stringSet": [ - "foo", - "bar" - ], "structureList": [ { "a": "1", @@ -841,84 +846,92 @@ "b": "4" } ], - "timestampList": [ - 1398796238, - 1398796238 + "blobList": [ + "foo", + "bar" ] - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborLists" + } }, { + "id": "RpcV2CborListsEmpty", + "documentation": "Serializes empty JSON lists", + "tags": [ + "client-indefinite" + ], + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborLists", "body": "v2pzdHJpbmdMaXN0n///", "bodyMediaType": "application/cbor", - "documentation": "Serializes empty JSON lists", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" - }, - "id": "RpcV2CborListsEmpty", - "method": "POST", - "params": { - "stringList": [] + "Accept": "application/cbor" }, - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "tags": [ - "client-indefinite" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborLists" + "params": { + "stringList": [] + } }, { + "id": "RpcV2CborListsEmptyUsingDefiniteLength", + "documentation": "Serializes empty JSON definite length lists", + "tags": [ + "client-definite" + ], + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborLists", "body": "oWpzdHJpbmdMaXN0gA==", "bodyMediaType": "application/cbor", - "documentation": "Serializes empty JSON definite length lists", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" - }, - "id": "RpcV2CborListsEmptyUsingDefiniteLength", - "method": "POST", - "params": { - "stringList": [] + "Accept": "application/cbor" }, - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "tags": [ - "client-definite" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborLists" + "params": { + "stringList": [] + } } ], "responses": [ { + "id": "RpcV2CborLists", + "documentation": "Serializes RpcV2 Cbor lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v2pzdHJpbmdMaXN0n2Nmb29jYmFy/2lzdHJpbmdTZXSfY2Zvb2NiYXL/a2ludGVnZXJMaXN0nwEC/2tib29sZWFuTGlzdJ/19P9tdGltZXN0YW1wTGlzdJ/B+0HU1/vzgAAAwftB1Nf784AAAP9oZW51bUxpc3SfY0Zvb2Ew/2tpbnRFbnVtTGlzdJ8BAv9wbmVzdGVkU3RyaW5nTGlzdJ+fY2Zvb2NiYXL/n2NiYXpjcXV4//9tc3RydWN0dXJlTGlzdJ+/YWFhMWFiYTL/v2FhYTNhYmE0//9oYmxvYkxpc3SfQ2Zvb0NiYXL//w==", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Serializes RpcV2 Cbor lists", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborLists", "params": { - "blobList": [ + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ "foo", "bar" ], + "integerList": [ + 1, + 2 + ], "booleanList": [ true, false ], + "timestampList": [ + 1398796238, + 1398796238 + ], "enumList": [ "Foo", "0" @@ -927,10 +940,6 @@ 1, 2 ], - "integerList": [ - 1, - 2 - ], "nestedStringList": [ [ "foo", @@ -941,14 +950,6 @@ "qux" ] ], - "stringList": [ - "foo", - "bar" - ], - "stringSet": [ - "foo", - "bar" - ], "structureList": [ { "a": "1", @@ -959,39 +960,38 @@ "b": "4" } ], - "timestampList": [ - 1398796238, - 1398796238 + "blobList": [ + "foo", + "bar" ] - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborListsEmpty", + "documentation": "Serializes empty RpcV2 Cbor lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v2pzdHJpbmdMaXN0n///", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Serializes empty RpcV2 Cbor lists", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborListsEmpty", "params": { "stringList": [] - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { - "appliesTo": "client", + "id": "RpcV2CborIndefiniteStringInsideIndefiniteListCanDeserialize", + "documentation": "Can deserialize indefinite length text strings inside an indefinite length list", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v2pzdHJpbmdMaXN0n394HUFuIGV4YW1wbGUgaW5kZWZpbml0ZSBzdHJpbmcsdyB3aGljaCB3aWxsIGJlIGNodW5rZWQsbiBvbiBlYWNoIGNvbW1h/394NUFub3RoZXIgZXhhbXBsZSBpbmRlZmluaXRlIHN0cmluZyB3aXRoIG9ubHkgb25lIGNodW5r/3ZUaGlzIGlzIGEgcGxhaW4gc3RyaW5n//8=", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Can deserialize indefinite length text strings inside an indefinite length list", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborIndefiniteStringInsideIndefiniteListCanDeserialize", "params": { "stringList": [ "An example indefinite string, which will be chunked, on each comma", @@ -999,19 +999,19 @@ "This is a plain string" ] }, - "protocol": "smithy.protocols#rpcv2Cbor" + "appliesTo": "client" }, { - "appliesTo": "client", + "id": "RpcV2CborIndefiniteStringInsideDefiniteListCanDeserialize", + "documentation": "Can deserialize indefinite length text strings inside a definite length list", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "oWpzdHJpbmdMaXN0g394HUFuIGV4YW1wbGUgaW5kZWZpbml0ZSBzdHJpbmcsdyB3aGljaCB3aWxsIGJlIGNodW5rZWQsbiBvbiBlYWNoIGNvbW1h/394NUFub3RoZXIgZXhhbXBsZSBpbmRlZmluaXRlIHN0cmluZyB3aXRoIG9ubHkgb25lIGNodW5r/3ZUaGlzIGlzIGEgcGxhaW4gc3RyaW5n", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Can deserialize indefinite length text strings inside a definite length list", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborIndefiniteStringInsideDefiniteListCanDeserialize", "params": { "stringList": [ "An example indefinite string, which will be chunked, on each comma", @@ -1019,50 +1019,55 @@ "This is a plain string" ] }, - "protocol": "smithy.protocols#rpcv2Cbor" + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Cbor#RpcV2CborSparseMaps": { "requests": [ { + "id": "RpcV2CborSparseMaps", + "documentation": "Serializes sparse maps", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps", "body": "v29zcGFyc2VTdHJ1Y3RNYXC/Y2Zvb79iaGlldGhlcmX/Y2Jher9iaGljYnll////", "bodyMediaType": "application/cbor", - "documentation": "Serializes sparse maps", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSparseMaps", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "sparseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps" + } }, { + "id": "RpcV2CborSerializesNullMapValues", + "documentation": "Serializes null map values in sparse maps", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps", "body": "v3BzcGFyc2VCb29sZWFuTWFwv2F49v9vc3BhcnNlTnVtYmVyTWFwv2F49v9vc3BhcnNlU3RyaW5nTWFwv2F49v9vc3BhcnNlU3RydWN0TWFwv2F49v//", "bodyMediaType": "application/cbor", - "documentation": "Serializes null map values in sparse maps", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSerializesNullMapValues", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "sparseBooleanMap": { "x": null @@ -1076,24 +1081,24 @@ "sparseStructMap": { "x": null } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps" + } }, { + "id": "RpcV2CborSerializesSparseSetMap", + "documentation": "A request that contains a sparse map of sets", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps", "body": "v2xzcGFyc2VTZXRNYXC/YXif/2F5n2FhYWL///8=", "bodyMediaType": "application/cbor", - "documentation": "A request that contains a sparse map of sets", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSerializesSparseSetMap", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "sparseSetMap": { "x": [], @@ -1102,24 +1107,24 @@ "b" ] } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps" + } }, { + "id": "RpcV2CborSerializesSparseSetMapAndRetainsNull", + "documentation": "A request that contains a sparse map of sets.", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps", "body": "v2xzcGFyc2VTZXRNYXC/YXif/2F5n2FhYWL/YXr2//8=", "bodyMediaType": "application/cbor", - "documentation": "A request that contains a sparse map of sets.", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSerializesSparseSetMapAndRetainsNull", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "sparseSetMap": { "x": [], @@ -1129,72 +1134,68 @@ ], "z": null } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps" + } }, { + "id": "RpcV2CborSerializesZeroValuesInSparseMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps", "body": "v29zcGFyc2VOdW1iZXJNYXC/YXgA/3BzcGFyc2VCb29sZWFuTWFwv2F49P//", "bodyMediaType": "application/cbor", - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSerializesZeroValuesInSparseMaps", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { - "sparseBooleanMap": { - "x": false - }, "sparseNumberMap": { "x": 0 + }, + "sparseBooleanMap": { + "x": false } - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps" + } } ], "responses": [ { + "id": "RpcV2CborSparseJsonMaps", + "documentation": "Deserializes sparse maps", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v29zcGFyc2VTdHJ1Y3RNYXC/Y2Zvb79iaGlldGhlcmX/Y2Jher9iaGljYnll////", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Deserializes sparse maps", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSparseJsonMaps", "params": { "sparseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborDeserializesNullMapValues", + "documentation": "Deserializes null map values", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v3BzcGFyc2VCb29sZWFuTWFwv2F49v9vc3BhcnNlTnVtYmVyTWFwv2F49v9vc3BhcnNlU3RyaW5nTWFwv2F49v9vc3BhcnNlU3RydWN0TWFwv2F49v//", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Deserializes null map values", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDeserializesNullMapValues", "params": { "sparseBooleanMap": { "x": null @@ -1208,19 +1209,19 @@ "sparseStructMap": { "x": null } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborDeserializesSparseSetMap", + "documentation": "A response that contains a sparse map of sets", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v2xzcGFyc2VTZXRNYXC/YXmfYWFhYv9heJ////8=", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "A response that contains a sparse map of sets", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDeserializesSparseSetMap", "params": { "sparseSetMap": { "x": [], @@ -1229,19 +1230,19 @@ "b" ] } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborDeserializesSparseSetMapAndRetainsNull", + "documentation": "A response that contains a sparse map of sets with a null", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v2xzcGFyc2VTZXRNYXC/YXif/2F5n2FhYWL/YXr2//8=", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "A response that contains a sparse map of sets with a null", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDeserializesSparseSetMapAndRetainsNull", "params": { "sparseSetMap": { "x": [], @@ -1251,111 +1252,111 @@ ], "z": null } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborDeserializesZeroValuesInSparseMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v29zcGFyc2VOdW1iZXJNYXC/YXgA/3BzcGFyc2VCb29sZWFuTWFwv2F49P//", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDeserializesZeroValuesInSparseMaps", "params": { - "sparseBooleanMap": { - "x": false - }, "sparseNumberMap": { "x": 0 + }, + "sparseBooleanMap": { + "x": false } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } } ] }, "smithy.protocoltests.rpcv2Cbor#RpcV2CborUnions": { "requests": [ { + "id": "RpcV2CborSerializesUnionValue", + "documentation": "Serializes a union followed by another structure member", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborUnions", "body": "omhjb250ZW50c6Frc3RyaW5nVmFsdWVjZm9vam90aGVyVmFsdWVjYmFy", "bodyMediaType": "application/cbor", - "documentation": "Serializes a union followed by another structure member", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSerializesUnionValue", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "contents": { "stringValue": "foo" }, "otherValue": "bar" - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborUnions" + } }, { + "id": "RpcV2CborSerializesNestedUnionValue", + "documentation": "Serializes a nested union followed by another structure member", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/RpcV2CborUnions", "body": "omhjb250ZW50c6FqdW5pb25WYWx1ZaFrc3RyaW5nVmFsdWVjZm9vam90aGVyVmFsdWVjYmFy", "bodyMediaType": "application/cbor", - "documentation": "Serializes a nested union followed by another structure member", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" - }, - "id": "RpcV2CborSerializesNestedUnionValue", - "method": "POST", - "params": { - "contents": { - "unionValue": { - "stringValue": "foo" - } - }, - "otherValue": "bar" + "Accept": "application/cbor" }, - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "uri": "/service/RpcV2Protocol/operation/RpcV2CborUnions" + "params": { + "contents": { + "unionValue": { + "stringValue": "foo" + } + }, + "otherValue": "bar" + } } ], "responses": [ { + "id": "RpcV2CborDeserializesUnionValue", + "documentation": "Deserializes a tagged union followed by another structure member", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "omhjb250ZW50c6Frc3RyaW5nVmFsdWVjZm9vam90aGVyVmFsdWVjYmFy", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Deserializes a tagged union followed by another structure member", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDeserializesUnionValue", "params": { "contents": { "stringValue": "foo" }, "otherValue": "bar" - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborDeserializesNestedUnionValue", + "documentation": "Deserializes a nested union followed by another structure member", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "omhjb250ZW50c6FqdW5pb25WYWx1ZaFrc3RyaW5nVmFsdWVjZm9vam90aGVyVmFsdWVjYmFy", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Deserializes a nested union followed by another structure member", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborDeserializesNestedUnionValue", "params": { "contents": { "unionValue": { @@ -1363,26 +1364,29 @@ } }, "otherValue": "bar" - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } } ] }, "smithy.protocoltests.rpcv2Cbor#SimpleScalarProperties": { "requests": [ { - "body": "v2lieXRlVmFsdWUFa2RvdWJsZVZhbHVl+z/+OVgQYk3TcWZhbHNlQm9vbGVhblZhbHVl9GpmbG9hdFZhbHVl+kD0AABsaW50ZWdlclZhbHVlGQEAaWxvbmdWYWx1ZRkmkWpzaG9ydFZhbHVlGSaqa3N0cmluZ1ZhbHVlZnNpbXBsZXB0cnVlQm9vbGVhblZhbHVl9WlibG9iVmFsdWVDZm9v/w==", - "bodyMediaType": "application/cbor", + "id": "RpcV2CborSimpleScalarProperties", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Serializes simple scalar properties", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSimpleScalarProperties", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/cbor", + "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties", + "body": "v2lieXRlVmFsdWUFa2RvdWJsZVZhbHVl+z/+OVgQYk3TcWZhbHNlQm9vbGVhblZhbHVl9GpmbG9hdFZhbHVl+kD0AABsaW50ZWdlclZhbHVlGQEAaWxvbmdWYWx1ZRkmkWpzaG9ydFZhbHVlGSaqa3N0cmluZ1ZhbHVlZnNpbXBsZXB0cnVlQm9vbGVhblZhbHVl9WlibG9iVmFsdWVDZm9v/w==", "params": { - "blobValue": "foo", "byteValue": 5, "doubleValue": 1.889, "falseBooleanValue": false, @@ -1391,220 +1395,216 @@ "longValue": 9873, "shortValue": 9898, "stringValue": "simple", - "trueBooleanValue": true - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties" + "trueBooleanValue": true, + "blobValue": "foo" + } }, { - "appliesTo": "client", + "id": "RpcV2CborClientDoesntSerializeNullStructureValues", + "documentation": "RpcV2 Cbor should not serialize null structure values", + "protocol": "smithy.protocols#rpcv2Cbor", + "method": "POST", + "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties", "body": "v/8=", "bodyMediaType": "application/cbor", - "documentation": "RpcV2 Cbor should not serialize null structure values", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" - }, - "id": "RpcV2CborClientDoesntSerializeNullStructureValues", - "method": "POST", - "params": { - "stringValue": null + "Accept": "application/cbor" }, - "protocol": "smithy.protocols#rpcv2Cbor", "requireHeaders": [ "Content-Length" ], - "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties" + "params": { + "stringValue": null + }, + "appliesTo": "client" }, { - "body": "v2tkb3VibGVWYWx1Zft/+AAAAAAAAGpmbG9hdFZhbHVl+n/AAAD/", - "bodyMediaType": "application/cbor", + "id": "RpcV2CborSupportsNaNFloatInputs", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Supports handling NaN float values.", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSupportsNaNFloatInputs", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/cbor", + "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties", + "body": "v2tkb3VibGVWYWx1Zft/+AAAAAAAAGpmbG9hdFZhbHVl+n/AAAD/", "params": { "doubleValue": "NaN", "floatValue": "NaN" - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties" + } }, { - "body": "v2tkb3VibGVWYWx1Zft/8AAAAAAAAGpmbG9hdFZhbHVl+n+AAAD/", - "bodyMediaType": "application/cbor", + "id": "RpcV2CborSupportsInfinityFloatInputs", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Supports handling Infinity float values.", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSupportsInfinityFloatInputs", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/cbor", + "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties", + "body": "v2tkb3VibGVWYWx1Zft/8AAAAAAAAGpmbG9hdFZhbHVl+n+AAAD/", "params": { "doubleValue": "Infinity", "floatValue": "Infinity" - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties" + } }, { - "body": "v2tkb3VibGVWYWx1Zfv/8AAAAAAAAGpmbG9hdFZhbHVl+v+AAAD/", - "bodyMediaType": "application/cbor", + "id": "RpcV2CborSupportsNegativeInfinityFloatInputs", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Supports handling Infinity float values.", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSupportsNegativeInfinityFloatInputs", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/cbor", + "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties", + "body": "v2tkb3VibGVWYWx1Zfv/8AAAAAAAAGpmbG9hdFZhbHVl+v+AAAD/", "params": { "doubleValue": "-Infinity", "floatValue": "-Infinity" - }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties" + } } ], "responses": [ { - "body": "v3B0cnVlQm9vbGVhblZhbHVl9XFmYWxzZUJvb2xlYW5WYWx1ZfRpYnl0ZVZhbHVlBWtkb3VibGVWYWx1Zfs//jlYEGJN02pmbG9hdFZhbHVl+kD0AABsaW50ZWdlclZhbHVlGQEAanNob3J0VmFsdWUZJqprc3RyaW5nVmFsdWVmc2ltcGxlaWJsb2JWYWx1ZUNmb2//", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborSimpleScalarProperties", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Serializes simple scalar properties", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSimpleScalarProperties", + "bodyMediaType": "application/cbor", + "body": "v3B0cnVlQm9vbGVhblZhbHVl9XFmYWxzZUJvb2xlYW5WYWx1ZfRpYnl0ZVZhbHVlBWtkb3VibGVWYWx1Zfs//jlYEGJN02pmbG9hdFZhbHVl+kD0AABsaW50ZWdlclZhbHVlGQEAanNob3J0VmFsdWUZJqprc3RyaW5nVmFsdWVmc2ltcGxlaWJsb2JWYWx1ZUNmb2//", + "code": 200, "params": { - "blobValue": "foo", + "trueBooleanValue": true, + "falseBooleanValue": false, "byteValue": 5, "doubleValue": 1.889, - "falseBooleanValue": false, "floatValue": 7.625, "integerValue": 256, "shortValue": 9898, "stringValue": "simple", - "trueBooleanValue": true - }, - "protocol": "smithy.protocols#rpcv2Cbor" + "blobValue": "foo" + } }, { - "appliesTo": "client", - "body": "qXB0cnVlQm9vbGVhblZhbHVl9XFmYWxzZUJvb2xlYW5WYWx1ZfRpYnl0ZVZhbHVlBWtkb3VibGVWYWx1Zfs//jlYEGJN02pmbG9hdFZhbHVl+kD0AABsaW50ZWdlclZhbHVlGQEAanNob3J0VmFsdWUZJqprc3RyaW5nVmFsdWVmc2ltcGxlaWJsb2JWYWx1ZUNmb28=", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborSimpleScalarPropertiesUsingDefiniteLength", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Deserializes simple scalar properties encoded using a map with definite length", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSimpleScalarPropertiesUsingDefiniteLength", + "bodyMediaType": "application/cbor", + "body": "qXB0cnVlQm9vbGVhblZhbHVl9XFmYWxzZUJvb2xlYW5WYWx1ZfRpYnl0ZVZhbHVlBWtkb3VibGVWYWx1Zfs//jlYEGJN02pmbG9hdFZhbHVl+kD0AABsaW50ZWdlclZhbHVlGQEAanNob3J0VmFsdWUZJqprc3RyaW5nVmFsdWVmc2ltcGxlaWJsb2JWYWx1ZUNmb28=", + "code": 200, "params": { - "blobValue": "foo", + "trueBooleanValue": true, + "falseBooleanValue": false, "byteValue": 5, "doubleValue": 1.889, - "falseBooleanValue": false, "floatValue": 7.625, "integerValue": 256, "shortValue": 9898, "stringValue": "simple", - "trueBooleanValue": true + "blobValue": "foo" }, - "protocol": "smithy.protocols#rpcv2Cbor" + "appliesTo": "client" }, { - "appliesTo": "client", + "id": "RpcV2CborClientDoesntDeserializeNullStructureValues", + "documentation": "RpcV2 Cbor should not deserialize null structure values", + "protocol": "smithy.protocols#rpcv2Cbor", "body": "v2tzdHJpbmdWYWx1Zfb/", - "bodyMediaType": "application/cbor", "code": 200, - "documentation": "RpcV2 Cbor should not deserialize null structure values", + "bodyMediaType": "application/cbor", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborClientDoesntDeserializeNullStructureValues", "params": {}, - "protocol": "smithy.protocols#rpcv2Cbor" + "appliesTo": "client" }, { - "body": "v2tkb3VibGVWYWx1Zft/+AAAAAAAAGpmbG9hdFZhbHVl+n/AAAD/", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborSupportsNaNFloatOutputs", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Supports handling NaN float values.", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSupportsNaNFloatOutputs", + "code": 200, + "bodyMediaType": "application/cbor", + "body": "v2tkb3VibGVWYWx1Zft/+AAAAAAAAGpmbG9hdFZhbHVl+n/AAAD/", "params": { "doubleValue": "NaN", "floatValue": "NaN" - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { - "body": "v2tkb3VibGVWYWx1Zft/8AAAAAAAAGpmbG9hdFZhbHVl+n+AAAD/", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborSupportsInfinityFloatOutputs", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Supports handling Infinity float values.", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSupportsInfinityFloatOutputs", + "code": 200, + "bodyMediaType": "application/cbor", + "body": "v2tkb3VibGVWYWx1Zft/8AAAAAAAAGpmbG9hdFZhbHVl+n+AAAD/", "params": { "doubleValue": "Infinity", "floatValue": "Infinity" - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { - "body": "v2tkb3VibGVWYWx1Zfv/8AAAAAAAAGpmbG9hdFZhbHVl+v+AAAD/", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborSupportsNegativeInfinityFloatOutputs", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Supports handling Negative Infinity float values.", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSupportsNegativeInfinityFloatOutputs", + "code": 200, + "bodyMediaType": "application/cbor", + "body": "v2tkb3VibGVWYWx1Zfv/8AAAAAAAAGpmbG9hdFZhbHVl+v+AAAD/", "params": { "doubleValue": "-Infinity", "floatValue": "-Infinity" - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { - "appliesTo": "client", - "body": "v2tkb3VibGVWYWx1Zfk+AGpmbG9hdFZhbHVl+UegbGludGVnZXJWYWx1ZRg4aWxvbmdWYWx1ZRkBAGpzaG9ydFZhbHVlCv8=", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborSupportsUpcastingDataOnDeserialize", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "Supports upcasting from a smaller byte representation of the same data type.", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSupportsUpcastingDataOnDeserialize", + "code": 200, + "bodyMediaType": "application/cbor", + "body": "v2tkb3VibGVWYWx1Zfk+AGpmbG9hdFZhbHVl+UegbGludGVnZXJWYWx1ZRg4aWxvbmdWYWx1ZRkBAGpzaG9ydFZhbHVlCv8=", "params": { "doubleValue": 1.5, "floatValue": 7.625, @@ -1612,21 +1612,20 @@ "longValue": 256, "shortValue": 10 }, - "protocol": "smithy.protocols#rpcv2Cbor" + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "v2lieXRlVmFsdWUFa2RvdWJsZVZhbHVl+z/+OVgQYk3TcWZhbHNlQm9vbGVhblZhbHVl9GpmbG9hdFZhbHVl+kD0AABrZXh0cmFPYmplY3S/c2luZGVmaW5pdGVMZW5ndGhNYXC/a3dpdGhBbkFycmF5nwECA///cWRlZmluaXRlTGVuZ3RoTWFwo3J3aXRoQURlZmluaXRlQXJyYXmDAQIDeB1hbmRTb21lSW5kZWZpbml0ZUxlbmd0aFN0cmluZ3gfdGhhdCBoYXMsIGJlZW4gY2h1bmtlZCBvbiBjb21tYWxub3JtYWxTdHJpbmdjZm9vanNob3J0VmFsdWUZJw9uc29tZU90aGVyRmllbGR2dGhpcyBzaG91bGQgYmUgc2tpcHBlZP9saW50ZWdlclZhbHVlGQEAaWxvbmdWYWx1ZRkmkWpzaG9ydFZhbHVlGSaqa3N0cmluZ1ZhbHVlZnNpbXBsZXB0cnVlQm9vbGVhblZhbHVl9WlibG9iVmFsdWVDZm9v/w==", - "bodyMediaType": "application/cbor", - "code": 200, + "id": "RpcV2CborExtraFieldsInTheBodyShouldBeSkippedByClients", + "protocol": "smithy.protocols#rpcv2Cbor", "documentation": "The client should skip over additional fields that are not part of the structure. This allows a\nclient generated against an older Smithy model to be able to communicate with a server that is\ngenerated against a newer Smithy model.", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborExtraFieldsInTheBodyShouldBeSkippedByClients", + "code": 200, + "bodyMediaType": "application/cbor", + "body": "v2lieXRlVmFsdWUFa2RvdWJsZVZhbHVl+z/+OVgQYk3TcWZhbHNlQm9vbGVhblZhbHVl9GpmbG9hdFZhbHVl+kD0AABrZXh0cmFPYmplY3S/c2luZGVmaW5pdGVMZW5ndGhNYXC/a3dpdGhBbkFycmF5nwECA///cWRlZmluaXRlTGVuZ3RoTWFwo3J3aXRoQURlZmluaXRlQXJyYXmDAQIDeB1hbmRTb21lSW5kZWZpbml0ZUxlbmd0aFN0cmluZ3gfdGhhdCBoYXMsIGJlZW4gY2h1bmtlZCBvbiBjb21tYWxub3JtYWxTdHJpbmdjZm9vanNob3J0VmFsdWUZJw9uc29tZU90aGVyRmllbGR2dGhpcyBzaG91bGQgYmUgc2tpcHBlZP9saW50ZWdlclZhbHVlGQEAaWxvbmdWYWx1ZRkmkWpzaG9ydFZhbHVlGSaqa3N0cmluZ1ZhbHVlZnNpbXBsZXB0cnVlQm9vbGVhblZhbHVl9WlibG9iVmFsdWVDZm9v/w==", "params": { - "blobValue": "foo", "byteValue": 5, "doubleValue": 1.889, "falseBooleanValue": false, @@ -1635,93 +1634,94 @@ "longValue": 9873, "shortValue": 9898, "stringValue": "simple", - "trueBooleanValue": true + "trueBooleanValue": true, + "blobValue": "foo" }, - "protocol": "smithy.protocols#rpcv2Cbor" + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Cbor#SparseNullsOperation": { "requests": [ { - "body": "v29zcGFyc2VTdHJpbmdNYXC/Y2Zvb/b//w==", - "bodyMediaType": "application/cbor", + "id": "RpcV2CborSparseMapsSerializeNullValues", "documentation": "Serializes null values in maps", + "protocol": "smithy.protocols#rpcv2Cbor", + "bodyMediaType": "application/cbor", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSparseMapsSerializeNullValues", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], + "body": "v29zcGFyc2VTdHJpbmdNYXC/Y2Zvb/b//w==", "params": { "sparseStringMap": { "foo": null } }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/service/RpcV2Protocol/operation/SparseNullsOperation" }, { - "body": "v3BzcGFyc2VTdHJpbmdMaXN0n/b//w==", - "bodyMediaType": "application/cbor", + "id": "RpcV2CborSparseListsSerializeNull", "documentation": "Serializes null values in lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "bodyMediaType": "application/cbor", "headers": { - "Accept": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "Accept": "application/cbor" }, - "id": "RpcV2CborSparseListsSerializeNull", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], + "body": "v3BzcGFyc2VTdHJpbmdMaXN0n/b//w==", "params": { "sparseStringList": [ null ] }, - "protocol": "smithy.protocols#rpcv2Cbor", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/service/RpcV2Protocol/operation/SparseNullsOperation" } ], "responses": [ { + "id": "RpcV2CborSparseMapsDeserializeNullValues", + "documentation": "Deserializes null values in maps", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v29zcGFyc2VTdHJpbmdNYXC/Y2Zvb/b//w==", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Deserializes null values in maps", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSparseMapsDeserializeNullValues", "params": { "sparseStringMap": { "foo": null } - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } }, { + "id": "RpcV2CborSparseListsDeserializeNull", + "documentation": "Deserializes null values in lists", + "protocol": "smithy.protocols#rpcv2Cbor", + "code": 200, "body": "v3BzcGFyc2VTdHJpbmdMaXN0n/b//w==", "bodyMediaType": "application/cbor", - "code": 200, - "documentation": "Deserializes null values in lists", "headers": { - "Content-Type": "application/cbor", - "smithy-protocol": "rpc-v2-cbor" + "smithy-protocol": "rpc-v2-cbor", + "Content-Type": "application/cbor" }, - "id": "RpcV2CborSparseListsDeserializeNull", "params": { "sparseStringList": [ null ] - }, - "protocol": "smithy.protocols#rpcv2Cbor" + } } ] } diff --git a/scripts/codegen-output-py/models/vectors/rpcv2-json.json b/scripts/codegen-output-py/models/vectors/rpcv2-json.json index ec0f51cfa..22801364a 100644 --- a/scripts/codegen-output-py/models/vectors/rpcv2-json.json +++ b/scripts/codegen-output-py/models/vectors/rpcv2-json.json @@ -2,774 +2,779 @@ "smithy.protocoltests.rpcv2Json#BigDecimalOperation": { "requests": [ { - "body": "{\n \"value\": \"1.5\"\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestBigDecimalSimpleValue", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a simple big decimal value as a JSON string to preserve precision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestBigDecimalSimpleValue", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/BigDecimalOperation", + "body": "{\n \"value\": \"1.5\"\n}", "params": { "value": 1.5 - }, + } + }, + { + "id": "RpcV2JsonRequestBigDecimalHighPrecision", "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], + "documentation": "Serializes a big decimal value that exceeds double precision in the decimal\nportion. Implementations use JSON strings to preserve this precision.", "tags": [ "arbitrary-precision" ], - "uri": "/service/RpcV2JsonProtocol/operation/BigDecimalOperation" - }, - { - "body": "{\n \"value\": \"0.100000000000000000000001\"\n}", - "bodyMediaType": "application/json", - "documentation": "Serializes a big decimal value that exceeds double precision in the decimal\nportion. Implementations use JSON strings to preserve this precision.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestBigDecimalHighPrecision", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/BigDecimalOperation", + "body": "{\n \"value\": \"0.100000000000000000000001\"\n}", "params": { "value": 0.100000000000000000000001 - }, + } + }, + { + "id": "RpcV2JsonRequestBigDecimalNegativeHighPrecision", "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], + "documentation": "Serializes a negative big decimal value that exceeds double precision in\nthe decimal portion. Implementations use JSON strings to preserve this\nprecision.", "tags": [ "arbitrary-precision" ], - "uri": "/service/RpcV2JsonProtocol/operation/BigDecimalOperation" - }, - { - "body": "{\n \"value\": \"-0.100000000000000000000001\"\n}", - "bodyMediaType": "application/json", - "documentation": "Serializes a negative big decimal value that exceeds double precision in\nthe decimal portion. Implementations use JSON strings to preserve this\nprecision.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestBigDecimalNegativeHighPrecision", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/BigDecimalOperation", + "body": "{\n \"value\": \"-0.100000000000000000000001\"\n}", "params": { "value": -0.100000000000000000000001 - }, + } + }, + { + "id": "RpcV2JsonRequestBigDecimalLargeWithFraction", "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], + "documentation": "Serializes a big decimal value that exceeds double precision in the integer\nportion. Implementations use JSON strings to preserve this precision.", "tags": [ "arbitrary-precision" ], - "uri": "/service/RpcV2JsonProtocol/operation/BigDecimalOperation" - }, - { - "body": "{\n \"value\": \"100000000000000000000001.0\"\n}", - "bodyMediaType": "application/json", - "documentation": "Serializes a big decimal value that exceeds double precision in the integer\nportion. Implementations use JSON strings to preserve this precision.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, - "id": "RpcV2JsonRequestBigDecimalLargeWithFraction", - "method": "POST", - "params": { - "value": 100000000000000000000001.0 + "Accept": "application/json" }, - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "tags": [ - "arbitrary-precision" - ], - "uri": "/service/RpcV2JsonProtocol/operation/BigDecimalOperation" + "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/BigDecimalOperation", + "body": "{\n \"value\": \"100000000000000000000001.0\"\n}", + "params": { + "value": 100000000000000000000001.0 + } } ], "responses": [ { - "body": "{\n \"value\": \"1.5\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseBigDecimalSimpleValue", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a simple big decimal value as a JSON string to preserve precision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseBigDecimalSimpleValue", + "bodyMediaType": "application/json", + "body": "{\n \"value\": \"1.5\"\n}", + "code": 200, "params": { "value": 1.5 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "arbitrary-precision" - ] + } }, { - "body": "{\n \"value\": \"0.100000000000000000000001\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseBigDecimalHighPrecision", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a big decimal value that exceeds double precision in the decimal\nportion. Implementations use JSON strings to preserve this precision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseBigDecimalHighPrecision", + "bodyMediaType": "application/json", + "body": "{\n \"value\": \"0.100000000000000000000001\"\n}", + "code": 200, "params": { "value": 0.100000000000000000000001 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "arbitrary-precision" - ] + } }, { - "body": "{\n \"value\": \"-0.100000000000000000000001\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseBigDecimalNegativeHighPrecision", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a negative big decimal value that exceeds double precision in\nthe decimal portion. Implementations use JSON strings to preserve this\nprecision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseBigDecimalNegativeHighPrecision", + "bodyMediaType": "application/json", + "body": "{\n \"value\": \"-0.100000000000000000000001\"\n}", + "code": 200, "params": { "value": -0.100000000000000000000001 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "arbitrary-precision" - ] + } }, { - "body": "{\n \"value\": \"100000000000000000000001.0\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseBigDecimalLargeWithFraction", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a big decimal value that exceeds double precision in the integer\nportion. Implementations use JSON strings to preserve this precision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseBigDecimalLargeWithFraction", + "bodyMediaType": "application/json", + "body": "{\n \"value\": \"100000000000000000000001.0\"\n}", + "code": 200, "params": { "value": 100000000000000000000001.0 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "arbitrary-precision" - ] + } } ] }, "smithy.protocoltests.rpcv2Json#BigIntegerOperation": { "requests": [ { - "body": "{\n \"value\": \"42\"\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestBigIntegerSimpleValue", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a simple big integer value as a JSON string to preserve precision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestBigIntegerSimpleValue", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/BigIntegerOperation", + "body": "{\n \"value\": \"42\"\n}", "params": { "value": 42 - }, + } + }, + { + "id": "RpcV2JsonRequestBigIntegerExceedingLongRange", "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], + "documentation": "Serializes a big integer value that exceeds the precision of a long.\nImplementations use JSON strings to preserve this precision.", "tags": [ "arbitrary-precision" ], - "uri": "/service/RpcV2JsonProtocol/operation/BigIntegerOperation" - }, - { - "body": "{\n \"value\": \"9223372036854775808\"\n}", - "bodyMediaType": "application/json", - "documentation": "Serializes a big integer value that exceeds the precision of a long.\nImplementations use JSON strings to preserve this precision.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestBigIntegerExceedingLongRange", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/BigIntegerOperation", + "body": "{\n \"value\": \"9223372036854775808\"\n}", "params": { "value": 9223372036854775808 - }, + } + }, + { + "id": "RpcV2JsonRequestBigIntegerNegativeLargeValue", "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], + "documentation": "Serializes a negative big integer value that exceeds the precision of a long.\nImplementations use JSON strings to preserve this precision.", "tags": [ "arbitrary-precision" ], - "uri": "/service/RpcV2JsonProtocol/operation/BigIntegerOperation" - }, - { - "body": "{\n \"value\": \"-9223372036854775809\"\n}", - "bodyMediaType": "application/json", - "documentation": "Serializes a negative big integer value that exceeds the precision of a long.\nImplementations use JSON strings to preserve this precision.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, - "id": "RpcV2JsonRequestBigIntegerNegativeLargeValue", - "method": "POST", - "params": { - "value": -9223372036854775809 + "Accept": "application/json" }, - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "tags": [ - "arbitrary-precision" - ], - "uri": "/service/RpcV2JsonProtocol/operation/BigIntegerOperation" + "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/BigIntegerOperation", + "body": "{\n \"value\": \"-9223372036854775809\"\n}", + "params": { + "value": -9223372036854775809 + } } ], "responses": [ { - "body": "{\n \"value\": \"42\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseBigIntegerSimpleValue", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a simple big integer value as a JSON string to preserve precision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseBigIntegerSimpleValue", + "bodyMediaType": "application/json", + "body": "{\n \"value\": \"42\"\n}", + "code": 200, "params": { "value": 42 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "arbitrary-precision" - ] + } }, { - "body": "{\n \"value\": \"9223372036854775808\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseBigIntegerExceedingLongRange", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a big integer value that exceeds the precision of a long.\nImplementations use JSON strings to preserve this precision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseBigIntegerExceedingLongRange", + "bodyMediaType": "application/json", + "body": "{\n \"value\": \"9223372036854775808\"\n}", + "code": 200, "params": { "value": 9223372036854775808 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "arbitrary-precision" - ] + } }, { - "body": "{\n \"value\": \"-9223372036854775809\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseBigIntegerNegativeLargeValue", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes a negative big integer value that exceeds the precision of a long.\nImplementations use JSON strings to preserve this precision.", + "tags": [ + "arbitrary-precision" + ], "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseBigIntegerNegativeLargeValue", + "bodyMediaType": "application/json", + "body": "{\n \"value\": \"-9223372036854775809\"\n}", + "code": 200, "params": { "value": -9223372036854775809 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "arbitrary-precision" - ] + } } ] }, "smithy.protocoltests.rpcv2Json#ComplexError": { "responses": [ { - "body": "{\n \"__type\": \"smithy.protocoltests.rpcv2Json#ComplexError\",\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Foo\": \"bar\"\n }\n}", - "bodyMediaType": "application/json", - "code": 400, - "documentation": "Parses a complex error with no message member", - "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, "id": "RpcV2JsonResponseComplexError", + "documentation": "Parses a complex error with no message member", + "protocol": "smithy.protocols#rpcv2Json", "params": { + "TopLevel": "Top level", "Nested": { "Foo": "bar" - }, - "TopLevel": "Top level" + } }, - "protocol": "smithy.protocols#rpcv2Json" + "code": 400, + "headers": { + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" + }, + "body": "{\n \"__type\": \"smithy.protocoltests.rpcv2Json#ComplexError\",\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Foo\": \"bar\"\n }\n}", + "bodyMediaType": "application/json" }, { - "body": "{\n \"__type\": \"smithy.protocoltests.rpcv2Json#ComplexError\"\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonResponseEmptyComplexError", + "protocol": "smithy.protocols#rpcv2Json", "code": 400, "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseEmptyComplexError", - "protocol": "smithy.protocols#rpcv2Json" + "body": "{\n \"__type\": \"smithy.protocoltests.rpcv2Json#ComplexError\"\n}", + "bodyMediaType": "application/json" } ] }, "smithy.protocoltests.rpcv2Json#EmptyInputOutput": { "requests": [ { - "body": "{}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestEmptyInput", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "When Input structure is empty we write an empty JSON object", - "forbidHeaders": [ - "X-Amz-Target" - ], "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestEmptyInput", - "method": "POST", - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "uri": "/service/RpcV2JsonProtocol/operation/EmptyInputOutput" + "forbidHeaders": [ + "X-Amz-Target" + ], + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/EmptyInputOutput", + "bodyMediaType": "application/json", + "body": "{}" } ], "responses": [ { + "id": "RpcV2JsonResponseEmptyOutput", + "protocol": "smithy.protocols#rpcv2Json", + "documentation": "When output structure is empty we write an empty JSON object", "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "When output structure is empty we write an empty JSON object", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseEmptyOutput", - "protocol": "smithy.protocols#rpcv2Json" + "code": 200 }, { - "appliesTo": "client", + "id": "RpcV2JsonResponseEmptyOutputNoBody", + "protocol": "smithy.protocols#rpcv2Json", + "documentation": "When output structure is empty the client should accept an empty body", "body": "", "bodyMediaType": "application/json", - "code": 200, - "documentation": "When output structure is empty the client should accept an empty body", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseEmptyOutputNoBody", - "protocol": "smithy.protocols#rpcv2Json" + "code": 200, + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Json#FractionalSeconds": { "responses": [ { - "appliesTo": "client", - "body": "{\n \"datetime\": 946845296.123\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseDateTimeWithFractionalSeconds", "documentation": "Ensures that clients can correctly parse timestamps with fractional seconds", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, + "body": "{\n \"datetime\": 946845296.123\n}", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseDateTimeWithFractionalSeconds", "params": { "datetime": 946845296.123 }, - "protocol": "smithy.protocols#rpcv2Json" + "bodyMediaType": "application/json", + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Json#InvalidGreeting": { "responses": [ { - "body": "{\n \"__type\": \"smithy.protocoltests.rpcv2Json#InvalidGreeting\",\n \"Message\": \"Hi\"\n}", - "bodyMediaType": "application/json", - "code": 400, - "documentation": "Parses simple RpcV2 JSON errors", - "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, "id": "RpcV2JsonResponseInvalidGreetingError", + "documentation": "Parses simple RpcV2 JSON errors", + "protocol": "smithy.protocols#rpcv2Json", "params": { "Message": "Hi" }, - "protocol": "smithy.protocols#rpcv2Json" + "code": 400, + "headers": { + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" + }, + "body": "{\n \"__type\": \"smithy.protocoltests.rpcv2Json#InvalidGreeting\",\n \"Message\": \"Hi\"\n}", + "bodyMediaType": "application/json" } ] }, "smithy.protocoltests.rpcv2Json#NoInputOutput": { "requests": [ { - "body": "", + "id": "RpcV2JsonRequestNoInput", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Body is empty and no Content-Type header if no input", + "headers": { + "smithy-protocol": "rpc-v2-json", + "Accept": "application/json" + }, "forbidHeaders": [ "Content-Type", "X-Amz-Target" ], - "headers": { - "Accept": "application/json", - "smithy-protocol": "rpc-v2-json" - }, - "id": "RpcV2JsonRequestNoInput", "method": "POST", - "protocol": "smithy.protocols#rpcv2Json", - "uri": "/service/RpcV2JsonProtocol/operation/NoInputOutput" + "uri": "/service/RpcV2JsonProtocol/operation/NoInputOutput", + "body": "" } ], "responses": [ { + "id": "RpcV2JsonResponseNoOutput", + "protocol": "smithy.protocols#rpcv2Json", + "documentation": "A `Content-Type` header should not be set if the response body is empty.", "body": "", "bodyMediaType": "application/json", - "code": 200, - "documentation": "A `Content-Type` header should not be set if the response body is empty.", - "forbidHeaders": [ - "Content-Type" - ], "headers": { "smithy-protocol": "rpc-v2-json" }, - "id": "RpcV2JsonResponseNoOutput", - "protocol": "smithy.protocols#rpcv2Json" + "forbidHeaders": [ + "Content-Type" + ], + "code": 200 }, { - "appliesTo": "client", - "body": "{}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseNoOutputClientAllowsEmptyJsonObject", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Clients should accept a JSON empty object if there is no output.", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseNoOutputClientAllowsEmptyJsonObject", - "protocol": "smithy.protocols#rpcv2Json" + "code": 200, + "bodyMediaType": "application/json", + "body": "{}", + "appliesTo": "client" }, { - "appliesTo": "client", - "body": "", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseNoOutputClientAllowsEmptyBody", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Clients should accept an empty body if there is no output and\nshould not raise an error if the `Content-Type` header is set.", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseNoOutputClientAllowsEmptyBody", - "protocol": "smithy.protocols#rpcv2Json" + "code": 200, + "bodyMediaType": "application/json", + "body": "", + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Json#OperationWithDefaults": { "requests": [ { - "appliesTo": "client", - "body": "{\n \"defaults\": {\n \"defaultString\": \"hi\",\n \"defaultBoolean\": true,\n \"defaultList\": [],\n \"defaultTimestamp\": 0,\n \"defaultBlob\": \"YWJj\",\n \"defaultByte\": 1,\n \"defaultShort\": 1,\n \"defaultInteger\": 10,\n \"defaultLong\": 100,\n \"defaultFloat\": 1.0,\n \"defaultDouble\": 1.0,\n \"defaultMap\": {},\n \"defaultEnum\": \"FOO\",\n \"defaultIntEnum\": 1,\n \"emptyString\": \"\",\n \"falseBoolean\": false,\n \"emptyBlob\": \"\",\n \"zeroByte\": 0,\n \"zeroShort\": 0,\n \"zeroInteger\": 0,\n \"zeroLong\": 0,\n \"zeroFloat\": 0.0,\n \"zeroDouble\": 0.0\n }\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestClientPopulatesDefaultValuesInInput", "documentation": "Client populates default values in input.", + "protocol": "smithy.protocols#rpcv2Json", + "appliesTo": "client", + "tags": [ + "defaults" + ], + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, - "id": "RpcV2JsonRequestClientPopulatesDefaultValuesInInput", - "method": "POST", - "params": { - "defaults": {} + "Accept": "application/json" }, - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults" + "bodyMediaType": "application/json", + "body": "{\n \"defaults\": {\n \"defaultString\": \"hi\",\n \"defaultBoolean\": true,\n \"defaultList\": [],\n \"defaultTimestamp\": 0,\n \"defaultBlob\": \"YWJj\",\n \"defaultByte\": 1,\n \"defaultShort\": 1,\n \"defaultInteger\": 10,\n \"defaultLong\": 100,\n \"defaultFloat\": 1.0,\n \"defaultDouble\": 1.0,\n \"defaultMap\": {},\n \"defaultEnum\": \"FOO\",\n \"defaultIntEnum\": 1,\n \"emptyString\": \"\",\n \"falseBoolean\": false,\n \"emptyBlob\": \"\",\n \"zeroByte\": 0,\n \"zeroShort\": 0,\n \"zeroInteger\": 0,\n \"zeroLong\": 0,\n \"zeroFloat\": 0.0,\n \"zeroDouble\": 0.0\n }\n}", + "params": { + "defaults": {} + } }, { + "id": "RpcV2JsonRequestClientSkipsTopLevelDefaultValuesInInput", + "documentation": "Client skips top level default values in input.", "appliesTo": "client", - "body": "{}", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client skips top level default values in input.", + "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestClientSkipsTopLevelDefaultValuesInInput", - "method": "POST", - "params": {}, - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults" + "body": "{}", + "params": {} }, { + "id": "RpcV2JsonRequestClientUsesExplicitlyProvidedMemberValuesOverDefaults", + "documentation": "Client uses explicitly provided member values over defaults", "appliesTo": "client", - "body": "{\n \"defaults\": {\n \"defaultString\": \"bye\",\n \"defaultBoolean\": true,\n \"defaultList\": [\"a\"],\n \"defaultTimestamp\": 1,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n }\n}", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Client uses explicitly provided member values over defaults", + "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestClientUsesExplicitlyProvidedMemberValuesOverDefaults", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], + "body": "{\n \"defaults\": {\n \"defaultString\": \"bye\",\n \"defaultBoolean\": true,\n \"defaultList\": [\"a\"],\n \"defaultTimestamp\": 1,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n }\n}", "params": { "defaults": { - "defaultBlob": "hi", + "defaultString": "bye", "defaultBoolean": true, - "defaultByte": 2, - "defaultDouble": 2.0, - "defaultEnum": "BAR", - "defaultFloat": 2.0, - "defaultIntEnum": 2, - "defaultInteger": 20, "defaultList": [ "a" ], + "defaultTimestamp": 1, + "defaultBlob": "hi", + "defaultByte": 2, + "defaultShort": 2, + "defaultInteger": 20, "defaultLong": 200, + "defaultFloat": 2.0, + "defaultDouble": 2.0, "defaultMap": { "name": "Jack" }, - "defaultShort": 2, - "defaultString": "bye", - "defaultTimestamp": 1, - "emptyBlob": "hi", + "defaultEnum": "BAR", + "defaultIntEnum": 2, "emptyString": "foo", "falseBoolean": true, + "emptyBlob": "hi", "zeroByte": 1, - "zeroDouble": 1.0, - "zeroFloat": 1.0, + "zeroShort": 1, "zeroInteger": 1, "zeroLong": 1, - "zeroShort": 1 + "zeroFloat": 1.0, + "zeroDouble": 1.0 } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults" + } }, { - "appliesTo": "client", - "body": "{\n \"topLevelDefault\": \"hi\",\n \"otherTopLevelDefault\": 0\n}", - "bodyMediaType": "application/json", - "documentation": "Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, "id": "RpcV2JsonRequestClientUsesExplicitlyProvidedValuesInTopLevel", + "documentation": "Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.", + "appliesTo": "client", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Json", "method": "POST", - "params": { - "otherTopLevelDefault": 0, - "topLevelDefault": "hi" + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults", + "headers": { + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json", + "Accept": "application/json" }, - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults" + "body": "{\n \"topLevelDefault\": \"hi\",\n \"otherTopLevelDefault\": 0\n}", + "params": { + "topLevelDefault": "hi", + "otherTopLevelDefault": 0 + } }, { + "id": "RpcV2JsonRequestClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional", + "documentation": "Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.", "appliesTo": "client", - "body": "{\n \"clientOptionalDefaults\": {}\n}", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", "bodyMediaType": "application/json", - "documentation": "Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.", + "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, - "id": "RpcV2JsonRequestClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional", - "method": "POST", - "params": { - "clientOptionalDefaults": {} + "Accept": "application/json" }, - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "tags": [ - "defaults" - ], - "uri": "/service/RpcV2JsonProtocol/operation/OperationWithDefaults" + "body": "{\n \"clientOptionalDefaults\": {}\n}", + "params": { + "clientOptionalDefaults": {} + } } ], "responses": [ { + "id": "RpcV2JsonResponseClientPopulatesDefaultsValuesWhenMissingInResponse", + "documentation": "Client populates default values when missing in response.", "appliesTo": "client", - "body": "{}", - "bodyMediaType": "application/json", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Json", "code": 200, - "documentation": "Client populates default values when missing in response.", + "bodyMediaType": "application/json", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseClientPopulatesDefaultsValuesWhenMissingInResponse", + "body": "{}", "params": { - "defaultBlob": "abc", + "defaultString": "hi", "defaultBoolean": true, + "defaultList": [], + "defaultTimestamp": 0, + "defaultBlob": "abc", "defaultByte": 1, - "defaultDouble": 1.0, - "defaultEnum": "FOO", - "defaultFloat": 1.0, - "defaultIntEnum": 1, + "defaultShort": 1, "defaultInteger": 10, - "defaultList": [], "defaultLong": 100, + "defaultFloat": 1.0, + "defaultDouble": 1.0, "defaultMap": {}, - "defaultShort": 1, - "defaultString": "hi", - "defaultTimestamp": 0, - "emptyBlob": "", + "defaultEnum": "FOO", + "defaultIntEnum": 1, "emptyString": "", "falseBoolean": false, + "emptyBlob": "", "zeroByte": 0, - "zeroDouble": 0.0, - "zeroFloat": 0.0, + "zeroShort": 0, "zeroInteger": 0, "zeroLong": 0, - "zeroShort": 0 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "defaults" - ] + "zeroFloat": 0.0, + "zeroDouble": 0.0 + } }, { + "id": "RpcV2JsonResponseClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse", + "documentation": "Client ignores default values if member values are present in the response.", "appliesTo": "client", - "body": "{\n \"defaultString\": \"bye\",\n \"defaultBoolean\": false,\n \"defaultList\": [\"a\"],\n \"defaultTimestamp\": 2,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n}", - "bodyMediaType": "application/json", + "tags": [ + "defaults" + ], + "protocol": "smithy.protocols#rpcv2Json", "code": 200, - "documentation": "Client ignores default values if member values are present in the response.", + "bodyMediaType": "application/json", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse", + "body": "{\n \"defaultString\": \"bye\",\n \"defaultBoolean\": false,\n \"defaultList\": [\"a\"],\n \"defaultTimestamp\": 2,\n \"defaultBlob\": \"aGk=\",\n \"defaultByte\": 2,\n \"defaultShort\": 2,\n \"defaultInteger\": 20,\n \"defaultLong\": 200,\n \"defaultFloat\": 2.0,\n \"defaultDouble\": 2.0,\n \"defaultMap\": {\"name\": \"Jack\"},\n \"defaultEnum\": \"BAR\",\n \"defaultIntEnum\": 2,\n \"emptyString\": \"foo\",\n \"falseBoolean\": true,\n \"emptyBlob\": \"aGk=\",\n \"zeroByte\": 1,\n \"zeroShort\": 1,\n \"zeroInteger\": 1,\n \"zeroLong\": 1,\n \"zeroFloat\": 1.0,\n \"zeroDouble\": 1.0\n}", "params": { - "defaultBlob": "hi", + "defaultString": "bye", "defaultBoolean": false, - "defaultByte": 2, - "defaultDouble": 2.0, - "defaultEnum": "BAR", - "defaultFloat": 2.0, - "defaultIntEnum": 2, - "defaultInteger": 20, "defaultList": [ "a" ], + "defaultTimestamp": 2, + "defaultBlob": "hi", + "defaultByte": 2, + "defaultShort": 2, + "defaultInteger": 20, "defaultLong": 200, + "defaultFloat": 2.0, + "defaultDouble": 2.0, "defaultMap": { "name": "Jack" }, - "defaultShort": 2, - "defaultString": "bye", - "defaultTimestamp": 2, - "emptyBlob": "hi", + "defaultEnum": "BAR", + "defaultIntEnum": 2, "emptyString": "foo", "falseBoolean": true, + "emptyBlob": "hi", "zeroByte": 1, - "zeroDouble": 1.0, - "zeroFloat": 1.0, + "zeroShort": 1, "zeroInteger": 1, "zeroLong": 1, - "zeroShort": 1 - }, - "protocol": "smithy.protocols#rpcv2Json", - "tags": [ - "defaults" - ] + "zeroFloat": 1.0, + "zeroDouble": 1.0 + } } ] }, "smithy.protocoltests.rpcv2Json#OptionalInputOutput": { "requests": [ { - "body": "{}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestOptionalInput", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "When input is empty we write an empty JSON object", - "forbidHeaders": [ - "X-Amz-Target" - ], "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestOptionalInput", + "forbidHeaders": [ + "X-Amz-Target" + ], "method": "POST", - "protocol": "smithy.protocols#rpcv2Json", - "uri": "/service/RpcV2JsonProtocol/operation/OptionalInputOutput" + "uri": "/service/RpcV2JsonProtocol/operation/OptionalInputOutput", + "bodyMediaType": "application/json", + "body": "{}" } ], "responses": [ { + "id": "RpcV2JsonResponseOptionalOutput", + "protocol": "smithy.protocols#rpcv2Json", + "documentation": "When output is empty we write an empty JSON object", "body": "{}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "When output is empty we write an empty JSON object", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseOptionalOutput", - "protocol": "smithy.protocols#rpcv2Json" + "code": 200 } ] }, "smithy.protocoltests.rpcv2Json#RecursiveShapes": { "requests": [ { + "id": "RpcV2JsonRequestRecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RecursiveShapes", "body": "{\n \"nested\": {\n \"foo\": \"Foo1\",\n \"nested\": {\n \"bar\": \"Bar1\",\n \"recursiveMember\": {\n \"foo\": \"Foo2\",\n \"nested\": {\n \"bar\": \"Bar2\"\n }\n }\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes recursive structures", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestRecursiveShapes", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "nested": { "foo": "Foo1", @@ -783,25 +788,21 @@ } } } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RecursiveShapes" + } } ], "responses": [ { + "id": "RpcV2JsonResponseRecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"nested\": {\n \"foo\": \"Foo1\",\n \"nested\": {\n \"bar\": \"Bar1\",\n \"recursiveMember\": {\n \"foo\": \"Foo2\",\n \"nested\": {\n \"bar\": \"Bar2\"\n }\n }\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes recursive structures", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseRecursiveShapes", "params": { "nested": { "foo": "Foo1", @@ -815,76 +816,80 @@ } } } - }, - "protocol": "smithy.protocols#rpcv2Json" + } } ] }, "smithy.protocoltests.rpcv2Json#RpcV2JsonDenseMaps": { "requests": [ { + "id": "RpcV2JsonRequestMaps", + "documentation": "Serializes maps", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonDenseMaps", "body": "{\n \"denseStructMap\": {\n \"foo\": {\n \"hi\": \"there\"\n },\n \"baz\": {\n \"hi\": \"bye\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes maps", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestMaps", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "denseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonDenseMaps" + } }, { + "id": "RpcV2JsonRequestSerializesZeroValuesInMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonDenseMaps", "body": "{\n \"denseNumberMap\": {\n \"x\": 0\n },\n \"denseBooleanMap\": {\n \"x\": false\n }\n}", "bodyMediaType": "application/json", - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSerializesZeroValuesInMaps", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { - "denseBooleanMap": { - "x": false - }, "denseNumberMap": { "x": 0 + }, + "denseBooleanMap": { + "x": false } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonDenseMaps" + } }, { + "id": "RpcV2JsonRequestSerializesDenseSetMap", + "documentation": "A request that contains a dense map of sets.", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonDenseMaps", "body": "{\n \"denseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"]\n }\n}", "bodyMediaType": "application/json", - "documentation": "A request that contains a dense map of sets.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSerializesDenseSetMap", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "denseSetMap": { "x": [], @@ -893,67 +898,63 @@ "b" ] } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonDenseMaps" + } } ], "responses": [ { + "id": "RpcV2JsonResponseMaps", + "documentation": "Deserializes maps", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"denseStructMap\": {\n \"foo\": {\n \"hi\": \"there\"\n },\n \"baz\": {\n \"hi\": \"bye\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes maps", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseMaps", "params": { "denseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { + "id": "RpcV2JsonResponseDeserializesZeroValuesInMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"denseNumberMap\": {\n \"x\": 0\n },\n \"denseBooleanMap\": {\n \"x\": false\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseDeserializesZeroValuesInMaps", "params": { - "denseBooleanMap": { - "x": false - }, "denseNumberMap": { "x": 0 + }, + "denseBooleanMap": { + "x": false } - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { + "id": "RpcV2JsonResponseDeserializesDenseSetMap", + "documentation": "A response that contains a dense map of sets", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"denseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"]\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "A response that contains a dense map of sets", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseDeserializesDenseSetMap", "params": { "denseSetMap": { "x": [], @@ -962,33 +963,49 @@ "b" ] } - }, - "protocol": "smithy.protocols#rpcv2Json" + } } ] }, "smithy.protocoltests.rpcv2Json#RpcV2JsonLists": { "requests": [ { + "id": "RpcV2JsonRequestLists", + "documentation": "Serializes RpcV2 JSON lists", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonLists", "body": "{\n \"stringList\": [\n \"foo\",\n \"bar\"\n ],\n \"stringSet\": [\n \"foo\",\n \"bar\"\n ],\n \"integerList\": [\n 1,\n 2\n ],\n \"booleanList\": [\n true,\n false\n ],\n \"timestampList\": [\n 1398796238,\n 1398796238\n ],\n \"enumList\": [\n \"Foo\",\n \"0\"\n ],\n \"intEnumList\": [\n 1,\n 2\n ],\n \"nestedStringList\": [\n [\n \"foo\",\n \"bar\"\n ],\n [\n \"baz\",\n \"qux\"\n ]\n ],\n \"structureList\": [\n {\n \"a\": \"1\",\n \"b\": \"2\"\n },\n {\n \"a\": \"3\",\n \"b\": \"4\"\n }\n ],\n \"blobList\": [\n \"Zm9v\",\n \"YmFy\"\n ]\n}", "bodyMediaType": "application/json", - "documentation": "Serializes RpcV2 JSON lists", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestLists", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { - "blobList": [ + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ "foo", "bar" ], + "integerList": [ + 1, + 2 + ], "booleanList": [ true, false ], + "timestampList": [ + 1398796238, + 1398796238 + ], "enumList": [ "Foo", "0" @@ -997,10 +1014,6 @@ 1, 2 ], - "integerList": [ - 1, - 2 - ], "nestedStringList": [ [ "foo", @@ -1011,14 +1024,6 @@ "qux" ] ], - "stringList": [ - "foo", - "bar" - ], - "stringSet": [ - "foo", - "bar" - ], "structureList": [ { "a": "1", @@ -1029,58 +1034,66 @@ "b": "4" } ], - "timestampList": [ - 1398796238, - 1398796238 + "blobList": [ + "foo", + "bar" ] - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonLists" + } }, { + "id": "RpcV2JsonRequestListsEmpty", + "documentation": "Serializes empty JSON lists", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonLists", "body": "{\n \"stringList\": []\n}", "bodyMediaType": "application/json", - "documentation": "Serializes empty JSON lists", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, - "id": "RpcV2JsonRequestListsEmpty", - "method": "POST", - "params": { - "stringList": [] + "Accept": "application/json" }, - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonLists" + "params": { + "stringList": [] + } } ], "responses": [ { + "id": "RpcV2JsonResponseLists", + "documentation": "Serializes RpcV2 JSON lists", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"stringList\": [\n \"foo\",\n \"bar\"\n ],\n \"stringSet\": [\n \"foo\",\n \"bar\"\n ],\n \"integerList\": [\n 1,\n 2\n ],\n \"booleanList\": [\n true,\n false\n ],\n \"timestampList\": [\n 1398796238,\n 1398796238\n ],\n \"enumList\": [\n \"Foo\",\n \"0\"\n ],\n \"intEnumList\": [\n 1,\n 2\n ],\n \"nestedStringList\": [\n [\n \"foo\",\n \"bar\"\n ],\n [\n \"baz\",\n \"qux\"\n ]\n ],\n \"structureList\": [\n {\n \"a\": \"1\",\n \"b\": \"2\"\n },\n {\n \"a\": \"3\",\n \"b\": \"4\"\n }\n ],\n \"blobList\": [\n \"Zm9v\",\n \"YmFy\"\n ]\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes RpcV2 JSON lists", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseLists", "params": { - "blobList": [ + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ "foo", "bar" ], + "integerList": [ + 1, + 2 + ], "booleanList": [ true, false ], + "timestampList": [ + 1398796238, + 1398796238 + ], "enumList": [ "Foo", "0" @@ -1089,10 +1102,6 @@ 1, 2 ], - "integerList": [ - 1, - 2 - ], "nestedStringList": [ [ "foo", @@ -1103,14 +1112,6 @@ "qux" ] ], - "stringList": [ - "foo", - "bar" - ], - "stringSet": [ - "foo", - "bar" - ], "structureList": [ { "a": "1", @@ -1121,70 +1122,74 @@ "b": "4" } ], - "timestampList": [ - 1398796238, - 1398796238 + "blobList": [ + "foo", + "bar" ] - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { + "id": "RpcV2JsonResponseListsEmpty", + "documentation": "Serializes empty RpcV2 JSON lists", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"stringList\": []\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Serializes empty RpcV2 JSON lists", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseListsEmpty", "params": { "stringList": [] - }, - "protocol": "smithy.protocols#rpcv2Json" + } } ] }, "smithy.protocoltests.rpcv2Json#RpcV2JsonSparseMaps": { "requests": [ { + "id": "RpcV2JsonRequestSparseMaps", + "documentation": "Serializes sparse maps", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps", "body": "{\n \"sparseStructMap\": {\n \"foo\": {\n \"hi\": \"there\"\n },\n \"baz\": {\n \"hi\": \"bye\"\n }\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes sparse maps", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSparseMaps", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "sparseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps" + } }, { + "id": "RpcV2JsonRequestSerializesNullMapValues", + "documentation": "Serializes null map values in sparse maps", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps", "body": "{\n \"sparseBooleanMap\": {\n \"x\": null\n },\n \"sparseNumberMap\": {\n \"x\": null\n },\n \"sparseStringMap\": {\n \"x\": null\n },\n \"sparseStructMap\": {\n \"x\": null\n }\n}", "bodyMediaType": "application/json", - "documentation": "Serializes null map values in sparse maps", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSerializesNullMapValues", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "sparseBooleanMap": { "x": null @@ -1198,24 +1203,24 @@ "sparseStructMap": { "x": null } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps" + } }, { + "id": "RpcV2JsonRequestSerializesSparseSetMap", + "documentation": "A request that contains a sparse map of sets", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps", "body": "{\n \"sparseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"]\n }\n}", "bodyMediaType": "application/json", - "documentation": "A request that contains a sparse map of sets", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSerializesSparseSetMap", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "sparseSetMap": { "x": [], @@ -1224,24 +1229,24 @@ "b" ] } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps" + } }, { + "id": "RpcV2JsonRequestSerializesSparseSetMapAndRetainsNull", + "documentation": "A request that contains a sparse map of sets.", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps", "body": "{\n \"sparseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"],\n \"z\": null\n }\n}", "bodyMediaType": "application/json", - "documentation": "A request that contains a sparse map of sets.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSerializesSparseSetMapAndRetainsNull", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "sparseSetMap": { "x": [], @@ -1251,72 +1256,68 @@ ], "z": null } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps" + } }, { + "id": "RpcV2JsonRequestSerializesZeroValuesInSparseMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps", "body": "{\n \"sparseNumberMap\": {\n \"x\": 0\n },\n \"sparseBooleanMap\": {\n \"x\": false\n }\n}", "bodyMediaType": "application/json", - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSerializesZeroValuesInSparseMaps", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { - "sparseBooleanMap": { - "x": false - }, "sparseNumberMap": { "x": 0 + }, + "sparseBooleanMap": { + "x": false } - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/RpcV2JsonSparseMaps" + } } ], "responses": [ { + "id": "RpcV2JsonResponseSparseJsonMaps", + "documentation": "Deserializes sparse maps", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"sparseStructMap\": {\n \"foo\": {\n \"hi\": \"there\"\n },\n \"baz\": {\n \"hi\": \"bye\"\n }\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes sparse maps", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseSparseJsonMaps", "params": { "sparseStructMap": { - "baz": { - "hi": "bye" - }, "foo": { "hi": "there" + }, + "baz": { + "hi": "bye" } } - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { + "id": "RpcV2JsonResponseDeserializesNullMapValues", + "documentation": "Deserializes null map values", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"sparseBooleanMap\": {\n \"x\": null\n },\n \"sparseNumberMap\": {\n \"x\": null\n },\n \"sparseStringMap\": {\n \"x\": null\n },\n \"sparseStructMap\": {\n \"x\": null\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes null map values", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseDeserializesNullMapValues", "params": { "sparseBooleanMap": { "x": null @@ -1330,19 +1331,19 @@ "sparseStructMap": { "x": null } - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { + "id": "RpcV2JsonResponseDeserializesSparseSetMap", + "documentation": "A response that contains a sparse map of sets", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"sparseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"]\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "A response that contains a sparse map of sets", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseDeserializesSparseSetMap", "params": { "sparseSetMap": { "x": [], @@ -1351,19 +1352,19 @@ "b" ] } - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { + "id": "RpcV2JsonResponseDeserializesSparseSetMapAndRetainsNull", + "documentation": "A response that contains a sparse map of sets with a null", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"sparseSetMap\": {\n \"x\": [],\n \"y\": [\"a\", \"b\"],\n \"z\": null\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "A response that contains a sparse map of sets with a null", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseDeserializesSparseSetMapAndRetainsNull", "params": { "sparseSetMap": { "x": [], @@ -1373,46 +1374,49 @@ ], "z": null } - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { + "id": "RpcV2JsonResponseDeserializesZeroValuesInSparseMaps", + "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"sparseNumberMap\": {\n \"x\": 0\n },\n \"sparseBooleanMap\": {\n \"x\": false\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Ensure that 0 and false are sent over the wire in all maps and lists", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseDeserializesZeroValuesInSparseMaps", "params": { - "sparseBooleanMap": { - "x": false - }, "sparseNumberMap": { "x": 0 + }, + "sparseBooleanMap": { + "x": false } - }, - "protocol": "smithy.protocols#rpcv2Json" + } } ] }, "smithy.protocoltests.rpcv2Json#SimpleScalarProperties": { "requests": [ { - "body": "{\n \"byteValue\": 5,\n \"doubleValue\": 1.889,\n \"falseBooleanValue\": false,\n \"floatValue\": 7.625,\n \"integerValue\": 256,\n \"longValue\": 9873,\n \"shortValue\": 9898,\n \"stringValue\": \"simple\",\n \"trueBooleanValue\": true,\n \"blobValue\": \"Zm9v\"\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestSimpleScalarProperties", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes simple scalar properties", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSimpleScalarProperties", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties", + "body": "{\n \"byteValue\": 5,\n \"doubleValue\": 1.889,\n \"falseBooleanValue\": false,\n \"floatValue\": 7.625,\n \"integerValue\": 256,\n \"longValue\": 9873,\n \"shortValue\": 9898,\n \"stringValue\": \"simple\",\n \"trueBooleanValue\": true,\n \"blobValue\": \"Zm9v\"\n}", "params": { - "blobValue": "foo", "byteValue": 5, "doubleValue": 1.889, "falseBooleanValue": false, @@ -1421,198 +1425,193 @@ "longValue": 9873, "shortValue": 9898, "stringValue": "simple", - "trueBooleanValue": true - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties" + "trueBooleanValue": true, + "blobValue": "foo" + } }, { - "appliesTo": "client", + "id": "RpcV2JsonRequestClientDoesntSerializeNullStructureValues", + "documentation": "RpcV2 JSON should not serialize null structure values", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties", "body": "{}", "bodyMediaType": "application/json", - "documentation": "RpcV2 JSON should not serialize null structure values", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" - }, - "id": "RpcV2JsonRequestClientDoesntSerializeNullStructureValues", - "method": "POST", - "params": { - "stringValue": null + "Accept": "application/json" }, - "protocol": "smithy.protocols#rpcv2Json", "requireHeaders": [ "Content-Length" ], - "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties" + "params": { + "stringValue": null + }, + "appliesTo": "client" }, { - "body": "{\n \"doubleValue\": \"NaN\",\n \"floatValue\": \"NaN\"\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestSupportsNaNFloatInputs", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Supports handling NaN float values.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSupportsNaNFloatInputs", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties", + "body": "{\n \"doubleValue\": \"NaN\",\n \"floatValue\": \"NaN\"\n}", "params": { "doubleValue": "NaN", "floatValue": "NaN" - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties" + } }, { - "body": "{\n \"doubleValue\": \"Infinity\",\n \"floatValue\": \"Infinity\"\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestSupportsInfinityFloatInputs", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Supports handling Infinity float values.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSupportsInfinityFloatInputs", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties", + "body": "{\n \"doubleValue\": \"Infinity\",\n \"floatValue\": \"Infinity\"\n}", "params": { "doubleValue": "Infinity", "floatValue": "Infinity" - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties" + } }, { - "body": "{\n \"doubleValue\": \"-Infinity\",\n \"floatValue\": \"-Infinity\"\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestSupportsNegativeInfinityFloatInputs", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Supports handling -Infinity float values.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSupportsNegativeInfinityFloatInputs", + "requireHeaders": [ + "Content-Length" + ], "method": "POST", + "bodyMediaType": "application/json", + "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties", + "body": "{\n \"doubleValue\": \"-Infinity\",\n \"floatValue\": \"-Infinity\"\n}", "params": { "doubleValue": "-Infinity", "floatValue": "-Infinity" - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/SimpleScalarProperties" + } } ], "responses": [ { - "body": "{\n \"trueBooleanValue\": true,\n \"falseBooleanValue\": false,\n \"byteValue\": 5,\n \"doubleValue\": 1.889,\n \"floatValue\": 7.625,\n \"integerValue\": 256,\n \"shortValue\": 9898,\n \"stringValue\": \"simple\",\n \"blobValue\": \"Zm9v\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseSimpleScalarProperties", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Serializes simple scalar properties", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseSimpleScalarProperties", + "bodyMediaType": "application/json", + "body": "{\n \"trueBooleanValue\": true,\n \"falseBooleanValue\": false,\n \"byteValue\": 5,\n \"doubleValue\": 1.889,\n \"floatValue\": 7.625,\n \"integerValue\": 256,\n \"shortValue\": 9898,\n \"stringValue\": \"simple\",\n \"blobValue\": \"Zm9v\"\n}", + "code": 200, "params": { - "blobValue": "foo", + "trueBooleanValue": true, + "falseBooleanValue": false, "byteValue": 5, "doubleValue": 1.889, - "falseBooleanValue": false, "floatValue": 7.625, "integerValue": 256, "shortValue": 9898, "stringValue": "simple", - "trueBooleanValue": true - }, - "protocol": "smithy.protocols#rpcv2Json" + "blobValue": "foo" + } }, { - "appliesTo": "client", + "id": "RpcV2JsonResponseClientDoesntDeserializeNullStructureValues", + "documentation": "RpcV2 JSON should not deserialize null structure values", + "protocol": "smithy.protocols#rpcv2Json", "body": "{\n \"stringValue\": null\n}", - "bodyMediaType": "application/json", "code": 200, - "documentation": "RpcV2 JSON should not deserialize null structure values", + "bodyMediaType": "application/json", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseClientDoesntDeserializeNullStructureValues", "params": {}, - "protocol": "smithy.protocols#rpcv2Json" + "appliesTo": "client" }, { - "body": "{\n \"doubleValue\": \"NaN\",\n \"floatValue\": \"NaN\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseSupportsNaNFloatOutputs", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Supports handling NaN float values.", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseSupportsNaNFloatOutputs", + "code": 200, + "bodyMediaType": "application/json", + "body": "{\n \"doubleValue\": \"NaN\",\n \"floatValue\": \"NaN\"\n}", "params": { "doubleValue": "NaN", "floatValue": "NaN" - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { - "body": "{\n \"doubleValue\": \"Infinity\",\n \"floatValue\": \"Infinity\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseSupportsInfinityFloatOutputs", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Supports handling Infinity float values.", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseSupportsInfinityFloatOutputs", + "code": 200, + "bodyMediaType": "application/json", + "body": "{\n \"doubleValue\": \"Infinity\",\n \"floatValue\": \"Infinity\"\n}", "params": { "doubleValue": "Infinity", "floatValue": "Infinity" - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { - "body": "{\n \"doubleValue\": \"-Infinity\",\n \"floatValue\": \"-Infinity\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseSupportsNegativeInfinityFloatOutputs", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "Supports handling Negative Infinity float values.", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseSupportsNegativeInfinityFloatOutputs", + "code": 200, + "bodyMediaType": "application/json", + "body": "{\n \"doubleValue\": \"-Infinity\",\n \"floatValue\": \"-Infinity\"\n}", "params": { "doubleValue": "-Infinity", "floatValue": "-Infinity" - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { - "appliesTo": "client", - "body": "{\n \"byteValue\": 5,\n \"doubleValue\": 1.889,\n \"falseBooleanValue\": false,\n \"floatValue\": 7.625,\n \"extraObject\": {\n \"normalString\": \"foo\",\n \"withAnArray\": [1, 2, 3]\n },\n \"integerValue\": 256,\n \"longValue\": 9873,\n \"shortValue\": 9898,\n \"stringValue\": \"simple\",\n \"someOtherField\": \"this should be skipped\",\n \"trueBooleanValue\": true,\n \"blobValue\": \"Zm9v\"\n}", - "bodyMediaType": "application/json", - "code": 200, + "id": "RpcV2JsonResponseExtraFieldsInTheBodyShouldBeSkippedByClients", + "protocol": "smithy.protocols#rpcv2Json", "documentation": "The client should skip over additional fields that are not part of the structure. This allows a\nclient generated against an older Smithy model to be able to communicate with a server that is\ngenerated against a newer Smithy model.", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseExtraFieldsInTheBodyShouldBeSkippedByClients", + "code": 200, + "bodyMediaType": "application/json", + "body": "{\n \"byteValue\": 5,\n \"doubleValue\": 1.889,\n \"falseBooleanValue\": false,\n \"floatValue\": 7.625,\n \"extraObject\": {\n \"normalString\": \"foo\",\n \"withAnArray\": [1, 2, 3]\n },\n \"integerValue\": 256,\n \"longValue\": 9873,\n \"shortValue\": 9898,\n \"stringValue\": \"simple\",\n \"someOtherField\": \"this should be skipped\",\n \"trueBooleanValue\": true,\n \"blobValue\": \"Zm9v\"\n}", "params": { - "blobValue": "foo", "byteValue": 5, "doubleValue": 1.889, "falseBooleanValue": false, @@ -1621,140 +1620,141 @@ "longValue": 9873, "shortValue": 9898, "stringValue": "simple", - "trueBooleanValue": true + "trueBooleanValue": true, + "blobValue": "foo" }, - "protocol": "smithy.protocols#rpcv2Json" + "appliesTo": "client" } ] }, "smithy.protocoltests.rpcv2Json#SparseNullsOperation": { "requests": [ { - "body": "{\n \"sparseStringMap\": {\n \"foo\": null\n }\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestSparseMapsSerializeNullValues", "documentation": "Serializes null values in maps", + "protocol": "smithy.protocols#rpcv2Json", + "bodyMediaType": "application/json", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSparseMapsSerializeNullValues", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], + "body": "{\n \"sparseStringMap\": {\n \"foo\": null\n }\n}", "params": { "sparseStringMap": { "foo": null } }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/service/RpcV2JsonProtocol/operation/SparseNullsOperation" }, { - "body": "{\n \"sparseStringList\": [\n null\n ]\n}", - "bodyMediaType": "application/json", + "id": "RpcV2JsonRequestSparseListsSerializeNull", "documentation": "Serializes null values in lists", + "protocol": "smithy.protocols#rpcv2Json", + "bodyMediaType": "application/json", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestSparseListsSerializeNull", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], + "body": "{\n \"sparseStringList\": [\n null\n ]\n}", "params": { "sparseStringList": [ null ] }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], + "method": "POST", "uri": "/service/RpcV2JsonProtocol/operation/SparseNullsOperation" } ], "responses": [ { + "id": "RpcV2JsonResponseSparseMapsDeserializeNullValues", + "documentation": "Deserializes null values in maps", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"sparseStringMap\": {\n \"foo\": null\n }\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes null values in maps", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseSparseMapsDeserializeNullValues", "params": { "sparseStringMap": { "foo": null } - }, - "protocol": "smithy.protocols#rpcv2Json" + } }, { + "id": "RpcV2JsonResponseSparseListsDeserializeNull", + "documentation": "Deserializes null values in lists", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"sparseStringList\": [\n null\n ]\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "Deserializes null values in lists", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseSparseListsDeserializeNull", "params": { "sparseStringList": [ null ] - }, - "protocol": "smithy.protocols#rpcv2Json" + } } ] }, "smithy.protocoltests.rpcv2Json#TimestampFormatIgnored": { "requests": [ { + "id": "RpcV2JsonRequestTimestampFormatIgnored", + "documentation": "The rpcv2Json protocol always serializes timestamps as epoch-seconds JSON numbers.\nThe timestampFormat trait MUST NOT be respected.", + "protocol": "smithy.protocols#rpcv2Json", + "method": "POST", + "uri": "/service/RpcV2JsonProtocol/operation/TimestampFormatIgnored", "body": "{\n \"dateTime\": 946845296,\n \"httpDate\": 946845296,\n \"epochSeconds\": 946845296,\n \"normal\": 946845296\n}", "bodyMediaType": "application/json", - "documentation": "The rpcv2Json protocol always serializes timestamps as epoch-seconds JSON numbers.\nThe timestampFormat trait MUST NOT be respected.", "headers": { - "Accept": "application/json", + "smithy-protocol": "rpc-v2-json", "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "Accept": "application/json" }, - "id": "RpcV2JsonRequestTimestampFormatIgnored", - "method": "POST", + "requireHeaders": [ + "Content-Length" + ], "params": { "dateTime": 946845296, - "epochSeconds": 946845296, "httpDate": 946845296, + "epochSeconds": 946845296, "normal": 946845296 - }, - "protocol": "smithy.protocols#rpcv2Json", - "requireHeaders": [ - "Content-Length" - ], - "uri": "/service/RpcV2JsonProtocol/operation/TimestampFormatIgnored" + } } ], "responses": [ { + "id": "RpcV2JsonResponseTimestampFormatIgnored", + "documentation": "The rpcv2Json protocol always serializes timestamps as epoch-seconds JSON numbers.\nThe timestampFormat trait MUST NOT be respected.", + "protocol": "smithy.protocols#rpcv2Json", + "code": 200, "body": "{\n \"dateTime\": 946845296,\n \"httpDate\": 946845296,\n \"epochSeconds\": 946845296,\n \"normal\": 946845296\n}", "bodyMediaType": "application/json", - "code": 200, - "documentation": "The rpcv2Json protocol always serializes timestamps as epoch-seconds JSON numbers.\nThe timestampFormat trait MUST NOT be respected.", "headers": { - "Content-Type": "application/json", - "smithy-protocol": "rpc-v2-json" + "smithy-protocol": "rpc-v2-json", + "Content-Type": "application/json" }, - "id": "RpcV2JsonResponseTimestampFormatIgnored", "params": { "dateTime": 946845296, - "epochSeconds": 946845296, "httpDate": 946845296, + "epochSeconds": 946845296, "normal": 946845296 - }, - "protocol": "smithy.protocols#rpcv2Json" + } } ] } diff --git a/scripts/codegen-output-py/pyrightconfig.json b/scripts/codegen-output-py/pyrightconfig.json index 82a998db9..7c0dc1d2a 100644 --- a/scripts/codegen-output-py/pyrightconfig.json +++ b/scripts/codegen-output-py/pyrightconfig.json @@ -24,6 +24,8 @@ "../../codegen-output-py/query-compatible-rpcv2-cbor/src", "../../codegen-output-py/rest-json-1-client/src", "../../codegen-output-py/rest-json-1/src", + "../../codegen-output-py/rest-xml-client/src", + "../../codegen-output-py/rest-xml-with-namespace-client/src", "../../codegen-output-py/rest-xml-with-namespace/src", "../../codegen-output-py/rest-xml/src", "../../codegen-output-py/rpcv2-cbor-client/src", diff --git a/scripts/codegen-output-py/refresh_models.py b/scripts/codegen-output-py/refresh_models.py index efd7a09d1..285197c52 100644 --- a/scripts/codegen-output-py/refresh_models.py +++ b/scripts/codegen-output-py/refresh_models.py @@ -110,14 +110,18 @@ def _protocol_vectors(model: dict[str, Any]) -> dict[str, Any]: def _dumps_exact(value: object) -> str: - """JSON with each Decimal written as the number literal it was parsed from.""" + """JSON with each Decimal written as the number literal it was parsed from. + + Keys keep their model order, since some protocols serialize map entries in + order. + """ def default(item: object) -> str: if isinstance(item, Decimal): return f"\u0000decimal:{item}" raise TypeError(f"Cannot encode {type(item).__name__}") - text = json.dumps(value, indent=2, sort_keys=True, default=default) + text = json.dumps(value, indent=2, default=default) return _DECIMAL.sub(r"\1", text) + "\n" diff --git a/scripts/codegen-output-py/tests/test_client_protocol_vectors.py b/scripts/codegen-output-py/tests/test_client_protocol_vectors.py index ed6249742..72f9d74d2 100644 --- a/scripts/codegen-output-py/tests/test_client_protocol_vectors.py +++ b/scripts/codegen-output-py/tests/test_client_protocol_vectors.py @@ -45,7 +45,7 @@ from smithy_python.generation import ClientSettings from smithy_python.integrations import ClientNames from smithy_python.model import load_model -from smithy_test import deep_equal +from smithy_test import deep_equal, xml_equal _ROOT = Path(__file__).resolve().parents[3] _INPUTS = _ROOT / "scripts/codegen-output-py" @@ -74,6 +74,8 @@ "RestJsonHttpChecksumRequired", "SDKAppliedContentEncoding_restJson1", "SDKAppendedGzipAfterProvidedEncoding_restJson1", + "SDKAppliedContentEncoding_restXml", + "SDKAppendedGzipAfterProvidedEncoding_restXml", "RpcV2CborClientPopulatesDefaultValuesInInput", "RpcV2CborClientSkipsTopLevelDefaultValuesInInput", "RpcV2CborClientUsesExplicitlyProvidedMemberValuesOverDefaults", @@ -86,11 +88,14 @@ ) # Response vectors that share a case ID with a passing request vector. The client -# reads an empty blob payload as b"", not as unset. -_EXPECTED_RESPONSE_FAILURES = frozenset({"RestJsonHttpPayloadTraitsWithNoBlobBody"}) +# reads an empty blob payload as b"", not as unset. The Java tests expect b"". +_EXPECTED_RESPONSE_FAILURES = frozenset( + {"RestJsonHttpPayloadTraitsWithNoBlobBody", "HttpPayloadTraitsWithNoBlobBody"} +) # How request bodies of each media type are decoded for comparison. Other bodies -# compare as bytes. JSON numbers are read as Decimal, so big numbers compare exactly. +# compare as bytes, except XML, which is compared parsed. JSON numbers are read as +# Decimal, so big numbers compare exactly. _BODY_DECODERS: dict[str, Any] = { "application/cbor": cbor_loads, "application/json": lambda body: json.loads(body, parse_float=Decimal), @@ -503,7 +508,9 @@ def _check_request( if "body" in case: media_type = case.get("bodyMediaType") actual_body, expected_body = _body(actual), _vector_body(case) - if media_type in _BODY_DECODERS: + if media_type == "application/xml": + assert xml_equal(actual_body, expected_body) + elif media_type in _BODY_DECODERS: assert deep_equal( _decoded(media_type, actual_body), _decoded(media_type, expected_body) ) @@ -572,5 +579,6 @@ def test_every_client_vector_is_collected() -> None: # The Java clients run the same vectors: rpcv2Cbor has 29 request and 43 # response vectors, and rpcv2Json has 34 and 39. restJson1 has 244, less the 8 # of the streaming operations the client omits. awsJson1_0 has 67, awsJson1_1 - # has 118, and the query-compatible awsJson1_0 service has 3. - assert len(list(_vectors())) == 72 + 73 + 236 + 67 + 118 + 3 + # has 118, and the query-compatible awsJson1_0 service has 3. restXml has + # 178, and the restXml service with a namespace has 2. + assert len(list(_vectors())) == 72 + 73 + 236 + 67 + 118 + 3 + 178 + 2