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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 19 additions & 34 deletions codegen-output/aws-json-1-0/src/awsjson10/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,8 @@
from smithy_http.aio.interfaces import AsyncHTTPClient
from smithy_http.plugins import user_agent_plugin

from . import models as _models
from .config import AsyncJSONRPC10Config, Plugin
from .models import (
CONTENT_TYPE_PARAMETERS,
EMPTY_INPUT_AND_EMPTY_OUTPUT,
ENDPOINT_OPERATION,
ENDPOINT_WITH_HOST_LABEL_OPERATION,
GREETING_WITH_ERRORS,
HOST_WITH_PATH_OPERATION,
JSON_UNIONS,
NO_INPUT_AND_NO_OUTPUT,
NO_INPUT_AND_OUTPUT,
OPERATION_WITH_DEFAULTS,
OPERATION_WITH_NESTED_STRUCTURE,
OPERATION_WITH_REQUIRED_MEMBERS,
OPERATION_WITH_REQUIRED_MEMBERS_WITH_DEFAULTS,
PUT_WITH_CONTENT_ENCODING,
QUERY_INCOMPATIBLE_OPERATION,
SIMPLE_SCALAR_PROPERTIES,
)
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -209,7 +192,7 @@ async def content_type_parameters(
An instance of `ContentTypeParametersOutput`.
"""
pipeline, call = await self._prepare_call(
input, CONTENT_TYPE_PARAMETERS, [], plugins
input, _models.CONTENT_TYPE_PARAMETERS, [], plugins
)
return await pipeline(call)

Expand All @@ -235,7 +218,7 @@ async def empty_input_and_empty_output(
An instance of `EmptyInputAndEmptyOutputOutput`.
"""
pipeline, call = await self._prepare_call(
input, EMPTY_INPUT_AND_EMPTY_OUTPUT, [], plugins
input, _models.EMPTY_INPUT_AND_EMPTY_OUTPUT, [], plugins
)
return await pipeline(call)

Expand All @@ -258,7 +241,7 @@ async def endpoint_operation(
An instance of `EndpointOperationOutput`.
"""
pipeline, call = await self._prepare_call(
input, ENDPOINT_OPERATION, [], plugins
input, _models.ENDPOINT_OPERATION, [], plugins
)
return await pipeline(call)

Expand All @@ -283,7 +266,7 @@ async def endpoint_with_host_label_operation(
An instance of `EndpointWithHostLabelOperationOutput`.
"""
pipeline, call = await self._prepare_call(
input, ENDPOINT_WITH_HOST_LABEL_OPERATION, [], plugins
input, _models.ENDPOINT_WITH_HOST_LABEL_OPERATION, [], plugins
)
return await pipeline(call)

Expand All @@ -310,7 +293,7 @@ async def greeting_with_errors(
An instance of `GreetingWithErrorsOutput`.
"""
pipeline, call = await self._prepare_call(
input, GREETING_WITH_ERRORS, [], plugins
input, _models.GREETING_WITH_ERRORS, [], plugins
)
return await pipeline(call)

Expand All @@ -333,7 +316,7 @@ async def host_with_path_operation(
An instance of `HostWithPathOperationOutput`.
"""
pipeline, call = await self._prepare_call(
input, HOST_WITH_PATH_OPERATION, [], plugins
input, _models.HOST_WITH_PATH_OPERATION, [], plugins
)
return await pipeline(call)

Expand All @@ -355,7 +338,9 @@ async def json_unions(
Returns:
An instance of `JsonUnionsOutput`.
"""
pipeline, call = await self._prepare_call(input, JSON_UNIONS, [], plugins)
pipeline, call = await self._prepare_call(
input, _models.JSON_UNIONS, [], plugins
)
return await pipeline(call)

async def no_input_and_no_output(
Expand All @@ -380,7 +365,7 @@ async def no_input_and_no_output(
An instance of `NoInputAndNoOutputOutput`.
"""
pipeline, call = await self._prepare_call(
input, NO_INPUT_AND_NO_OUTPUT, [], plugins
input, _models.NO_INPUT_AND_NO_OUTPUT, [], plugins
)
return await pipeline(call)

Expand All @@ -406,7 +391,7 @@ async def no_input_and_output(
An instance of `NoInputAndOutputOutput`.
"""
pipeline, call = await self._prepare_call(
input, NO_INPUT_AND_OUTPUT, [], plugins
input, _models.NO_INPUT_AND_OUTPUT, [], plugins
)
return await pipeline(call)

Expand All @@ -429,7 +414,7 @@ async def operation_with_defaults(
An instance of `OperationWithDefaultsOutput`.
"""
pipeline, call = await self._prepare_call(
input, OPERATION_WITH_DEFAULTS, [], plugins
input, _models.OPERATION_WITH_DEFAULTS, [], plugins
)
return await pipeline(call)

Expand All @@ -454,7 +439,7 @@ async def operation_with_nested_structure(
An instance of `OperationWithNestedStructureOutput`.
"""
pipeline, call = await self._prepare_call(
input, OPERATION_WITH_NESTED_STRUCTURE, [], plugins
input, _models.OPERATION_WITH_NESTED_STRUCTURE, [], plugins
)
return await pipeline(call)

Expand All @@ -479,7 +464,7 @@ async def operation_with_required_members(
An instance of `OperationWithRequiredMembersOutput`.
"""
pipeline, call = await self._prepare_call(
input, OPERATION_WITH_REQUIRED_MEMBERS, [], plugins
input, _models.OPERATION_WITH_REQUIRED_MEMBERS, [], plugins
)
return await pipeline(call)

Expand All @@ -504,7 +489,7 @@ async def operation_with_required_members_with_defaults(
An instance of `OperationWithRequiredMembersWithDefaultsOutput`.
"""
pipeline, call = await self._prepare_call(
input, OPERATION_WITH_REQUIRED_MEMBERS_WITH_DEFAULTS, [], plugins
input, _models.OPERATION_WITH_REQUIRED_MEMBERS_WITH_DEFAULTS, [], plugins
)
return await pipeline(call)

Expand All @@ -527,7 +512,7 @@ async def put_with_content_encoding(
An instance of `PutWithContentEncodingOutput`.
"""
pipeline, call = await self._prepare_call(
input, PUT_WITH_CONTENT_ENCODING, [], plugins
input, _models.PUT_WITH_CONTENT_ENCODING, [], plugins
)
return await pipeline(call)

Expand All @@ -552,7 +537,7 @@ async def query_incompatible_operation(
An instance of `QueryIncompatibleOperationOutput`.
"""
pipeline, call = await self._prepare_call(
input, QUERY_INCOMPATIBLE_OPERATION, [], plugins
input, _models.QUERY_INCOMPATIBLE_OPERATION, [], plugins
)
return await pipeline(call)

Expand All @@ -575,6 +560,6 @@ async def simple_scalar_properties(
An instance of `SimpleScalarPropertiesOutput`.
"""
pipeline, call = await self._prepare_call(
input, SIMPLE_SCALAR_PROPERTIES, [], plugins
input, _models.SIMPLE_SCALAR_PROPERTIES, [], plugins
)
return await pipeline(call)
Loading
Loading