Skip to content

Commit 7f58bf4

Browse files
committed
Suffix clients with Client after service name
1 parent 4b90aec commit 7f58bf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codegen/core/src/main/java/software/amazon/smithy/python/codegen/ClientGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private void generateService(PythonWriter writer) {
5757
var pluginSymbol = CodegenUtils.getPluginSymbol(context.settings());
5858
writer.addLogger();
5959

60-
writer.openBlock("class $L:", "", serviceSymbol.getName(), () -> {
60+
writer.openBlock("class $LClient:", "", serviceSymbol.getName(), () -> {
6161
var docs = service.getTrait(DocumentationTrait.class)
6262
.map(StringTrait::getValue)
6363
.orElse("Client for " + serviceSymbol.getName());

codegen/core/src/main/java/software/amazon/smithy/python/codegen/HttpProtocolTestGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ private void writeClientBlock(
600600
LOGGER.fine(String.format("Writing client block for %s in %s", serviceSymbol.getName(), testCase.getId()));
601601

602602
// Set up the test http client, which is used to "handle" the requests
603-
writer.openBlock("client = $T(", ")\n", serviceSymbol, () -> {
603+
writer.openBlock("client = $TClient(", ")\n", serviceSymbol, () -> {
604604
additionalConfigurator.ifPresent(Runnable::run);
605605
});
606606
}

0 commit comments

Comments
 (0)