Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requestcompression codegen name #4851

Merged
merged 2 commits into from
Jan 26, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -176,7 +176,7 @@ public Map<String, OperationModel> constructOperations() {
operationModel.setEndpointTrait(op.getEndpoint());
operationModel.setHttpChecksumRequired(op.isHttpChecksumRequired());
operationModel.setHttpChecksum(op.getHttpChecksum());
operationModel.setRequestCompression(op.getRequestCompression());
operationModel.setRequestcompression(op.getRequestcompression());
operationModel.setStaticContextParams(op.getStaticContextParams());
operationModel.setAuth(getAuthFromOperation(op));

Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
import software.amazon.awssdk.annotations.SdkInternalApi;

/**
* Class to map the RequestCompression trait of an operation.
* Class to map the requestcompression trait of an operation.
*/
@SdkInternalApi
public class RequestCompression {
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ public class OperationModel extends DocumentationModel {

private HttpChecksum httpChecksum;

private RequestCompression requestCompression;
private RequestCompression requestcompression;

@JsonIgnore
private Map<String, StaticContextParam> staticContextParams;
@@ -342,12 +342,12 @@ public void setHttpChecksum(HttpChecksum httpChecksum) {
this.httpChecksum = httpChecksum;
}

public RequestCompression getRequestCompression() {
return requestCompression;
public RequestCompression getRequestcompression() {
return requestcompression;
}

public void setRequestCompression(RequestCompression requestCompression) {
this.requestCompression = requestCompression;
public void setRequestcompression(RequestCompression requestcompression) {
this.requestcompression = requestcompression;
}

public Map<String, StaticContextParam> getStaticContextParams() {
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ public class Operation {

private HttpChecksum httpChecksum;

private RequestCompression requestCompression;
private RequestCompression requestcompression;

private Map<String, StaticContextParam> staticContextParams;

@@ -202,12 +202,12 @@ public void setHttpChecksum(HttpChecksum httpChecksum) {
this.httpChecksum = httpChecksum;
}

public RequestCompression getRequestCompression() {
return requestCompression;
public RequestCompression getRequestcompression() {
return requestcompression;
}

public void setRequestCompression(RequestCompression requestCompression) {
this.requestCompression = requestCompression;
public void setRequestcompression(RequestCompression requestcompression) {
this.requestcompression = requestcompression;
}

public Map<String, StaticContextParam> getStaticContextParams() {
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ private RequestCompressionTrait() {
* return an empty code-block.
*/
public static CodeBlock create(OperationModel operationModel, IntermediateModel model) {
if (operationModel.getRequestCompression() == null) {
if (operationModel.getRequestcompression() == null) {
return CodeBlock.of("");
}

@@ -49,7 +49,7 @@ public static CodeBlock create(OperationModel operationModel, IntermediateModel
throw new IllegalStateException("Request compression for S3 is not yet supported in the AWS SDK for Java.");
}

List<String> encodings = operationModel.getRequestCompression().getEncodings();
List<String> encodings = operationModel.getRequestcompression().getEncodings();

return CodeBlock.of(".putExecutionAttribute($T.REQUEST_COMPRESSION, "
+ "$T.builder().encodings($L).isStreaming($L).build())",
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
"method": "POST",
"requestUri": "/"
},
"requestCompression": {
"requestcompression": {
"encodings": ["gzip"]
}
},
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@
"method": "POST",
"requestUri": "/"
},
"requestCompression": {
"requestcompression": {
"encodings": ["gzip"]
}
},
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
"method": "POST",
"requestUri": "/"
},
"requestCompression": {
"requestcompression": {
"encodings": ["gzip"]
}
},
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@
"method": "POST",
"requestUri": "/"
},
"requestCompression": {
"requestcompression": {
"encodings": ["gzip"]
}
},
Original file line number Diff line number Diff line change
@@ -294,7 +294,7 @@
},
"input":{"shape":"RequestCompressionStructure"},
"output":{"shape":"RequestCompressionStructure"},
"requestCompression": {
"requestcompression": {
"encodings": ["gzip"]
}
},
@@ -306,7 +306,7 @@
},
"input":{"shape":"RequestCompressionStructureWithStreaming"},
"output":{"shape":"RequestCompressionStructureWithStreaming"},
"requestCompression": {
"requestcompression": {
"encodings": ["gzip"]
},
"authtype":"v4-unsigned-body"