diff --git a/generator/.DevConfigs/08424ec7-251c-4c0e-afbe-dda1f0ae7757.json b/generator/.DevConfigs/08424ec7-251c-4c0e-afbe-dda1f0ae7757.json new file mode 100644 index 000000000000..4150b68b032d --- /dev/null +++ b/generator/.DevConfigs/08424ec7-251c-4c0e-afbe-dda1f0ae7757.json @@ -0,0 +1,9 @@ +{ + "core": { + "updateMinimum": true, + "type": "patch", + "changeLogMessages": [ + "Add new protocol tests. Update JSON response unmarshallers to return safely if the service returns an empty string as a response instead of an empty json body" + ] + } +} \ No newline at end of file diff --git a/generator/ProtocolTestsGenerator/settings.gradle.kts b/generator/ProtocolTestsGenerator/settings.gradle.kts index 0c14cf8100c8..3f62b17aa313 100644 --- a/generator/ProtocolTestsGenerator/settings.gradle.kts +++ b/generator/ProtocolTestsGenerator/settings.gradle.kts @@ -12,7 +12,7 @@ pluginManagement { dependencyResolutionManagement { versionCatalogs { create("codegen") { - version("smithy", "1.54.0") + version("smithy", "1.60.3") library("protocol-tests", "software.amazon.smithy", "smithy-aws-protocol-tests").versionRef("smithy") library("codegen-core", "software.amazon.smithy", "smithy-codegen-core").versionRef("smithy") library("protocol-tests-traits", "software.amazon.smithy", "smithy-protocol-test-traits").versionRef("smithy") diff --git a/generator/ProtocolTestsGenerator/smithy-dotnet-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/HttpProtocolTestGenerator.java b/generator/ProtocolTestsGenerator/smithy-dotnet-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/HttpProtocolTestGenerator.java index c8e4315db0b5..0d4aedb908b6 100644 --- a/generator/ProtocolTestsGenerator/smithy-dotnet-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/HttpProtocolTestGenerator.java +++ b/generator/ProtocolTestsGenerator/smithy-dotnet-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/HttpProtocolTestGenerator.java @@ -94,7 +94,9 @@ private void generateErrorResponseTests(OperationShape operation, OperationIndex for (StructureShape error : index.getErrors(operation, service)) { error.getTrait(HttpResponseTestsTrait.class).ifPresent(trait -> { for (HttpResponseTestCase httpResponseTestCase : trait.getTestCasesFor(AppliesTo.CLIENT)) { - generateErrorResponseTest(operation, error, httpResponseTestCase); + if (!ProtocolTestCustomizations.TestsToSkip.contains(httpResponseTestCase.getId())){ + generateErrorResponseTest(operation, error, httpResponseTestCase); + } } }); } diff --git a/generator/ProtocolTestsGenerator/smithy-dotnet-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/customizations/ProtocolTestCustomizations.java b/generator/ProtocolTestsGenerator/smithy-dotnet-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/customizations/ProtocolTestCustomizations.java index 0cc7a2df9fd3..eba95dd47131 100644 --- a/generator/ProtocolTestsGenerator/smithy-dotnet-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/customizations/ProtocolTestCustomizations.java +++ b/generator/ProtocolTestsGenerator/smithy-dotnet-codegen/src/main/java/software/amazon/smithy/dotnet/codegen/customizations/ProtocolTestCustomizations.java @@ -96,7 +96,12 @@ private ProtocolTestCustomizations() { // to use exceptions and control flow. "QueryEmptyInputAndEmptyOutput", "QueryNoInputAndNoOutput", - "QueryNoInputAndOutput" + "QueryNoInputAndOutput", + // this test is skipped because in the C2J Ruby added a hook which adds the "code" json key which can NEVER exist in a + // non-query protocol. this causes our code generation to check on this code instead of what is modeled and our protocol + // test passes. As this can never happen in a real service, we can skip this to avoid unnecessary customizations in the generator + // for a scenario that will never happen. + "QueryCompatibleAwsJson10CustomCodeError" ); public static final List VNextTests = Arrays.asList( //These are the tests that are failing in v4 after updating to 1.54.0 and artifacts 1.0.3004.0. Each one needs to be investigated. diff --git a/generator/ProtocolTestsGenerator/smithy-dotnet-protocol-test/smithy-build.json b/generator/ProtocolTestsGenerator/smithy-dotnet-protocol-test/smithy-build.json index 520ca34ea199..c56d2960f12b 100644 --- a/generator/ProtocolTestsGenerator/smithy-dotnet-protocol-test/smithy-build.json +++ b/generator/ProtocolTestsGenerator/smithy-dotnet-protocol-test/smithy-build.json @@ -127,6 +127,24 @@ "packageVersion": "0.0.1" } } + }, + "QueryCompatibleJSONRPC10": { + "transforms": [ + { + "name": "includeServices", + "args": { + "services": [ + "aws.protocoltests.json10#QueryCompatibleJsonRpc10" + ] + } + } + ], + "plugins": { + "dotnet-protocol-test-codegen": { + "service": "aws.protocoltests.json10#QueryCompatibleJsonRpc10", + "packageVersion": "0.0.1" + } + } } } } \ No newline at end of file diff --git a/generator/ServiceClientGeneratorLib/Generators/Marshallers/JsonRPCResponseUnmarshaller.cs b/generator/ServiceClientGeneratorLib/Generators/Marshallers/JsonRPCResponseUnmarshaller.cs index 823ff8c47b09..9c116f4000a8 100644 --- a/generator/ServiceClientGeneratorLib/Generators/Marshallers/JsonRPCResponseUnmarshaller.cs +++ b/generator/ServiceClientGeneratorLib/Generators/Marshallers/JsonRPCResponseUnmarshaller.cs @@ -206,23 +206,24 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont #line default #line hidden this.Write(" StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context." + - "Stream);\r\n var unmarshaller = "); + "Stream);\r\n if (reader.Reader.IsFinalBlock) return response;\r\n " + + " var unmarshaller = "); - #line 94 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 95 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(payload.DetermineTypeUnmarshallerInstantiate())); #line default #line hidden this.Write(";\r\n response."); - #line 95 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 96 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(payload.PropertyName)); #line default #line hidden this.Write(" = unmarshaller.Unmarshall(context, ref reader);\r\n"); - #line 96 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 97 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } else if (this.IsWrapped) @@ -234,21 +235,21 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont this.Write(" StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context." + "Stream);\r\n\t\t\tresponse."); - #line 102 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 103 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.WrappedResultMember)); #line default #line hidden this.Write(" = "); - #line 102 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 103 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default #line hidden this.Write("Unmarshaller.Instance.Unmarshall(context, ref reader);\r\n"); - #line 103 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 104 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } else @@ -264,7 +265,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { "); - #line 113 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 114 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" foreach (var member in this.Operation.ResponseBodyMembers) @@ -275,21 +276,21 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont #line hidden this.Write(" if (context.TestExpression(\""); - #line 118 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 119 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.MarshallName)); #line default #line hidden this.Write("\", targetDepth))\r\n {\r\n var unmarshaller = "); - #line 120 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 121 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.DetermineTypeUnmarshallerInstantiate())); #line default #line hidden this.Write(";\r\n response."); - #line 121 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 122 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default @@ -297,7 +298,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont this.Write(" = unmarshaller.Unmarshall(context, ref reader);\r\n continue;\r\n" + " }\r\n"); - #line 124 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 125 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } @@ -306,7 +307,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont #line hidden this.Write(" }\r\n"); - #line 128 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 129 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } } @@ -339,7 +340,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte using (var streamCopy = new MemoryStream(responseBodyBytes)) "); - #line 155 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 156 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" if (this.Config.ServiceModel.IsAwsQueryCompatible) { @@ -348,7 +349,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte #line default #line hidden - #line 159 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 160 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" // Create a copy of context with headers in the response @@ -358,7 +359,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte this.Write(" using (var contextCopy = new JsonUnmarshallerContext(streamCopy, true" + ", context.ResponseData))\r\n"); - #line 163 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 164 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } else @@ -370,7 +371,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte this.Write(" using (var contextCopy = new JsonUnmarshallerContext(streamCopy, fals" + "e, context.ResponseData))\r\n"); - #line 169 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 170 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" // Create a new reader because the stream has been read already in the original context } @@ -381,7 +382,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte this.Write(" {\r\n StreamingUtf8JsonReader readerCopy = new Streaming" + "Utf8JsonReader(streamCopy);\r\n"); - #line 175 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 176 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" foreach (var exception in this.Operation.Exceptions) { @@ -391,14 +392,14 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte #line hidden this.Write(" if (errorResponse.Code != null && errorResponse.Code.Equals(\""); - #line 179 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 180 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(exception.Code)); #line default #line hidden this.Write("\"))\r\n {\r\n return "); - #line 181 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 182 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(exception.Name)); #line default @@ -406,7 +407,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte this.Write("Unmarshaller.Instance.Unmarshall(contextCopy, errorResponse, ref readerCopy);\r\n " + " }\r\n"); - #line 183 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 184 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } @@ -415,7 +416,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte #line hidden this.Write(" }\r\n"); - #line 187 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 188 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" if (this.Config.ServiceModel.IsAwsQueryCompatible) { @@ -426,7 +427,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte #line hidden this.Write(" return new "); - #line 192 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 193 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.BaseException)); #line default @@ -434,7 +435,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte this.Write("(errorResponse.Message, errorResponse.InnerException, errorType, errorCode, error" + "Response.RequestId, errorResponse.StatusCode);\r\n"); - #line 193 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 194 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } else @@ -445,7 +446,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte #line hidden this.Write(" return new "); - #line 198 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 199 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.BaseException)); #line default @@ -453,7 +454,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte this.Write("(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorRe" + "sponse.Code, errorResponse.RequestId, errorResponse.StatusCode);\r\n"); - #line 199 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 200 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } @@ -462,7 +463,7 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte #line hidden this.Write(" }\r\n\r\n"); - #line 204 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 205 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" if (payload != null && payload.Shape.IsStreaming) { @@ -483,7 +484,7 @@ public override bool HasStreamingProperty "); - #line 219 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 220 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } this.AddResponseSingletonMethod(); @@ -492,7 +493,7 @@ public override bool HasStreamingProperty #line default #line hidden - #line 223 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 224 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" if(isEventStreamOutput) { @@ -516,7 +517,7 @@ protected override bool ShouldReadEntireResponse(IWebResponseData response, bool public override bool HasStreamingProperty => true; "); - #line 241 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" + #line 242 "C:\Dev\Repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\Marshallers\JsonRPCResponseUnmarshaller.tt" } diff --git a/generator/ServiceClientGeneratorLib/Generators/Marshallers/JsonRPCResponseUnmarshaller.tt b/generator/ServiceClientGeneratorLib/Generators/Marshallers/JsonRPCResponseUnmarshaller.tt index 0b6fa34d8f41..82fe35d3cade 100644 --- a/generator/ServiceClientGeneratorLib/Generators/Marshallers/JsonRPCResponseUnmarshaller.tt +++ b/generator/ServiceClientGeneratorLib/Generators/Marshallers/JsonRPCResponseUnmarshaller.tt @@ -91,6 +91,7 @@ namespace <#=this.Config.Namespace #>.Model.Internal.MarshallTransformations { #> StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = <#= payload.DetermineTypeUnmarshallerInstantiate() #>; response.<#=payload.PropertyName#> = unmarshaller.Unmarshall(context, ref reader); <# diff --git a/generator/TestServiceModels/json10-tests-client/json-rpc-10-2020-07-14.normal.json b/generator/TestServiceModels/json10-tests-client/json-rpc-10-2020-07-14.normal.json index 4f2edb69f573..69de14a42fe7 100644 --- a/generator/TestServiceModels/json10-tests-client/json-rpc-10-2020-07-14.normal.json +++ b/generator/TestServiceModels/json10-tests-client/json-rpc-10-2020-07-14.normal.json @@ -114,6 +114,14 @@ "input":{"shape":"PutWithContentEncodingInput"}, "requestcompression":{"encodings":["gzip"]} }, + "QueryIncompatibleOperation":{ + "name":"QueryIncompatibleOperation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "idempotent":true + }, "SimpleScalarProperties":{ "name":"SimpleScalarProperties", "http":{ @@ -153,8 +161,7 @@ }, "ContentTypeParametersOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "Double":{ "type":"double", @@ -162,13 +169,11 @@ }, "EmptyInputAndEmptyOutputInput":{ "type":"structure", - "members":{ - } + "members":{} }, "EmptyInputAndEmptyOutputOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "EndpointWithHostLabelOperationInput":{ "type":"structure", @@ -196,8 +201,7 @@ }, "FooError":{ "type":"structure", - "members":{ - }, + "members":{}, "documentation":"

This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.

", "exception":true, "fault":true @@ -267,8 +271,7 @@ }, "NoInputAndOutputOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "PutWithContentEncodingInput":{ "type":"structure", diff --git a/generator/TestServiceModels/json11-tests-client/json-protocol-2018-01-01.normal.json b/generator/TestServiceModels/json11-tests-client/json-protocol-2018-01-01.normal.json index c1054b12c04f..c0c8cdb575f6 100644 --- a/generator/TestServiceModels/json11-tests-client/json-protocol-2018-01-01.normal.json +++ b/generator/TestServiceModels/json11-tests-client/json-protocol-2018-01-01.normal.json @@ -211,8 +211,7 @@ }, "ContentTypeParametersOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "DateTime":{ "type":"timestamp", @@ -226,8 +225,7 @@ }, "Document":{ "type":"structure", - "members":{ - }, + "members":{}, "document":true }, "Double":{ @@ -236,8 +234,7 @@ }, "EmptyStruct":{ "type":"structure", - "members":{ - } + "members":{} }, "ErrorWithMembers":{ "type":"structure", @@ -257,8 +254,7 @@ }, "ErrorWithoutMembers":{ "type":"structure", - "members":{ - }, + "members":{}, "exception":true, "fault":true }, @@ -291,8 +287,7 @@ }, "FooError":{ "type":"structure", - "members":{ - }, + "members":{}, "documentation":"

This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.

", "exception":true, "fault":true diff --git a/generator/TestServiceModels/query-compatible-json-rpc10/metadata.json b/generator/TestServiceModels/query-compatible-json-rpc10/metadata.json new file mode 100644 index 000000000000..3c858221afb0 --- /dev/null +++ b/generator/TestServiceModels/query-compatible-json-rpc10/metadata.json @@ -0,0 +1,5 @@ +{ + "active": true, + "test-service": true, + "synopsis": "query-compatible test service" +} \ No newline at end of file diff --git a/generator/TestServiceModels/query-compatible-json-rpc10/query-compatible-json-rpc-10-2020-07-14.normal.json b/generator/TestServiceModels/query-compatible-json-rpc10/query-compatible-json-rpc-10-2020-07-14.normal.json new file mode 100644 index 000000000000..3dfa5871a3a9 --- /dev/null +++ b/generator/TestServiceModels/query-compatible-json-rpc10/query-compatible-json-rpc-10-2020-07-14.normal.json @@ -0,0 +1,54 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-07-14", + "auth":["aws.auth#sigv4"], + "awsQueryCompatible":{}, + "endpointPrefix":"query-compatible-jsonrpc10", + "jsonVersion":"1.0", + "protocol":"json", + "protocols":["json"], + "serviceFullName":"Query Compatible Json 1.0 Protocol Service", + "serviceId":"Query Compatible JSON RPC 10", + "signatureVersion":"v4", + "signingName":"query-compatible-jsonrpc10", + "targetPrefix":"QueryCompatibleJsonRpc10", + "uid":"query-compatible-json-rpc-10-2020-07-14" + }, + "operations":{ + "QueryCompatibleOperation":{ + "name":"QueryCompatibleOperation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "errors":[ + {"shape":"CustomCodeError"}, + {"shape":"NoCustomCodeError"} + ], + "idempotent":true + } + }, + "shapes":{ + "CustomCodeError":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{ + "code":"Customized", + "httpStatusCode":402, + "senderFault":true + }, + "exception":true + }, + "NoCustomCodeError":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "String":{"type":"string"} + } +} diff --git a/generator/TestServiceModels/restjson-tests-client/rest-json-protocol-2019-12-16.normal.json b/generator/TestServiceModels/restjson-tests-client/rest-json-protocol-2019-12-16.normal.json index 1b52f0baf5e1..96b7deace3f6 100644 --- a/generator/TestServiceModels/restjson-tests-client/rest-json-protocol-2019-12-16.normal.json +++ b/generator/TestServiceModels/restjson-tests-client/rest-json-protocol-2019-12-16.normal.json @@ -176,6 +176,17 @@ "documentation":"

This example tests httpChecksumRequired trait

", "httpChecksumRequired":true }, + "HttpEmptyPrefixHeaders":{ + "name":"HttpEmptyPrefixHeaders", + "http":{ + "method":"GET", + "requestUri":"/HttpEmptyPrefixHeaders", + "responseCode":200 + }, + "input":{"shape":"HttpEmptyPrefixHeadersInput"}, + "output":{"shape":"HttpEmptyPrefixHeadersOutput"}, + "documentation":"

Clients that perform this test extract all headers from the response.

" + }, "HttpEnumPayload":{ "name":"HttpEnumPayload", "http":{ @@ -854,8 +865,7 @@ }, "ContentTypeParametersOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "DateTime":{ "type":"timestamp", @@ -894,8 +904,7 @@ }, "Document":{ "type":"structure", - "members":{ - }, + "members":{}, "document":true }, "DocumentTypeAsMapValueInputOutput":{ @@ -933,13 +942,11 @@ }, "EmptyInputAndEmptyOutputInput":{ "type":"structure", - "members":{ - } + "members":{} }, "EmptyInputAndEmptyOutputOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "EnumPayloadInput":{ "type":"structure", @@ -981,8 +988,7 @@ }, "FooError":{ "type":"structure", - "members":{ - }, + "members":{}, "documentation":"

This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.

", "error":{"httpStatusCode":500}, "exception":true, @@ -1030,6 +1036,36 @@ "type":"timestamp", "timestampFormat":"rfc822" }, + "HttpEmptyPrefixHeadersInput":{ + "type":"structure", + "members":{ + "prefixHeaders":{ + "shape":"StringMap", + "location":"headers", + "locationName":"" + }, + "specificHeader":{ + "shape":"String", + "location":"header", + "locationName":"hello" + } + } + }, + "HttpEmptyPrefixHeadersOutput":{ + "type":"structure", + "members":{ + "prefixHeaders":{ + "shape":"StringMap", + "location":"headers", + "locationName":"" + }, + "specificHeader":{ + "shape":"String", + "location":"header", + "locationName":"hello" + } + } + }, "HttpPayloadTraitsInputOutput":{ "type":"structure", "members":{ @@ -1058,8 +1094,7 @@ }, "HttpPrefixHeadersInResponseInput":{ "type":"structure", - "members":{ - } + "members":{} }, "HttpPrefixHeadersInResponseOutput":{ "type":"structure", @@ -1536,8 +1571,7 @@ }, "NoInputAndOutputOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "NullAndEmptyHeadersIO":{ "type":"structure", @@ -1711,8 +1745,7 @@ }, "ResponseCodeHttpFallbackInputOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "ResponseCodeRequiredOutput":{ "type":"structure", diff --git a/generator/TestServiceModels/restxml-tests-client/rest-xml-protocol-2019-12-16.normal.json b/generator/TestServiceModels/restxml-tests-client/rest-xml-protocol-2019-12-16.normal.json index 57c47de1a677..5d91859fd83e 100644 --- a/generator/TestServiceModels/restxml-tests-client/rest-xml-protocol-2019-12-16.normal.json +++ b/generator/TestServiceModels/restxml-tests-client/rest-xml-protocol-2019-12-16.normal.json @@ -229,6 +229,21 @@ "documentation": "

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

", "idempotent": true }, + "HttpEmptyPrefixHeaders": { + "name": "HttpEmptyPrefixHeaders", + "http": { + "method": "GET", + "requestUri": "/HttpEmptyPrefixHeaders", + "responseCode": 200 + }, + "input": { + "shape": "HttpEmptyPrefixHeadersInput" + }, + "output": { + "shape": "HttpEmptyPrefixHeadersOutput" + }, + "documentation": "

Clients that perform this test extract all headers from the response.

" + }, "HttpEnumPayload": { "name": "HttpEnumPayload", "http": { @@ -476,11 +491,11 @@ "responseCode": 200 }, "input": { - "shape": "NestedXmlMapWithXmlNameInputOutput", + "shape": "NestedXmlMapWithXmlNameRequest", "locationName": "NestedXmlMapWithXmlNameRequest" }, "output": { - "shape": "NestedXmlMapWithXmlNameInputOutput" + "shape": "NestedXmlMapWithXmlNameResponse" }, "documentation": "

Nested Xml Maps with key/values with @xmlName

" }, @@ -1337,6 +1352,36 @@ "type": "timestamp", "timestampFormat": "rfc822" }, + "HttpEmptyPrefixHeadersInput": { + "type": "structure", + "members": { + "prefixHeaders": { + "shape": "StringMap", + "location": "headers", + "locationName": "" + }, + "specificHeader": { + "shape": "String", + "location": "header", + "locationName": "hello" + } + } + }, + "HttpEmptyPrefixHeadersOutput": { + "type": "structure", + "members": { + "prefixHeaders": { + "shape": "StringMap", + "location": "headers", + "locationName": "" + }, + "specificHeader": { + "shape": "String", + "location": "header", + "locationName": "hello" + } + } + }, "HttpPayloadTraitsInputOutput": { "type": "structure", "members": { @@ -1786,14 +1831,6 @@ "locationName": "InnerValue" } }, - "NestedXmlMapWithXmlNameInputOutput": { - "type": "structure", - "members": { - "nestedXmlMapWithXmlNameMap": { - "shape": "NestedXmlMapWithXmlNameMap" - } - } - }, "NestedXmlMapWithXmlNameMap": { "type": "map", "key": { @@ -1804,6 +1841,22 @@ "shape": "NestedXmlMapWithXmlNameInnerMap" } }, + "NestedXmlMapWithXmlNameRequest": { + "type": "structure", + "members": { + "nestedXmlMapWithXmlNameMap": { + "shape": "NestedXmlMapWithXmlNameMap" + } + } + }, + "NestedXmlMapWithXmlNameResponse": { + "type": "structure", + "members": { + "nestedXmlMapWithXmlNameMap": { + "shape": "NestedXmlMapWithXmlNameMap" + } + } + }, "NestedXmlMapsRequest": { "type": "structure", "members": { diff --git a/generator/TestServiceModels/restxmlwithnamespace-tests-client/rest-xml-protocol-namespace-2019-12-16.normal.json b/generator/TestServiceModels/restxmlwithnamespace-tests-client/rest-xml-protocol-namespace-2019-12-16.normal.json index 65b7e98c25e4..10ee808abb3e 100644 --- a/generator/TestServiceModels/restxmlwithnamespace-tests-client/rest-xml-protocol-namespace-2019-12-16.normal.json +++ b/generator/TestServiceModels/restxmlwithnamespace-tests-client/rest-xml-protocol-namespace-2019-12-16.normal.json @@ -25,14 +25,14 @@ "responseCode": 200 }, "input": { - "shape": "SimpleScalarPropertiesInputOutput", + "shape": "SimpleScalarPropertiesRequest", "locationName": "SimpleScalarPropertiesRequest", "xmlNamespace": { "uri": "https://example.com" } }, "output": { - "shape": "SimpleScalarPropertiesInputOutput" + "shape": "SimpleScalarPropertiesResponse" }, "idempotent": true } @@ -68,7 +68,7 @@ } } }, - "SimpleScalarPropertiesInputOutput": { + "SimpleScalarPropertiesRequest": { "type": "structure", "members": { "foo": { @@ -102,10 +102,49 @@ }, "Nested": { "shape": "NestedWithNamespace", - "xmlNamespace": { - "prefix": "xsi", - "uri": "https://example.com" - } + "xmlNamespace": "https://example.com" + }, + "doubleValue": { + "shape": "Double", + "locationName": "DoubleDribble" + } + } + }, + "SimpleScalarPropertiesResponse": { + "type": "structure", + "members": { + "foo": { + "shape": "String", + "location": "header", + "locationName": "X-Foo" + }, + "stringValue": { + "shape": "String" + }, + "trueBooleanValue": { + "shape": "Boolean" + }, + "falseBooleanValue": { + "shape": "Boolean" + }, + "byteValue": { + "shape": "Integer" + }, + "shortValue": { + "shape": "Integer" + }, + "integerValue": { + "shape": "Integer" + }, + "longValue": { + "shape": "Long" + }, + "floatValue": { + "shape": "Float" + }, + "Nested": { + "shape": "NestedWithNamespace", + "xmlNamespace": "https://example.com" }, "doubleValue": { "shape": "Double", @@ -117,5 +156,5 @@ "type": "string" } }, - "documentation": "

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/awslabs/smithy/issues/616

" + "documentation": "

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

" } \ No newline at end of file diff --git a/sdk/AWSSDK.NetFramework.sln b/sdk/AWSSDK.NetFramework.sln index d26162f422c5..35f364f4ac47 100644 --- a/sdk/AWSSDK.NetFramework.sln +++ b/sdk/AWSSDK.NetFramework.sln @@ -1700,6 +1700,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "QueryCompatible", "QueryCom EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.QueryCompatible.NetFramework", "test/Services/QueryCompatible/AWSSDK.QueryCompatible.NetFramework.csproj", "{177AD0E8-3F84-4490-B86E-CC83B0ACF0B9}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "QueryCompatibleJSONRPC10", "QueryCompatibleJSONRPC10", "{C5D3F64F-43A4-4C7A-9880-A261E8164296}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.QueryCompatibleJSONRPC10.NetFramework", "test/Services/QueryCompatibleJSONRPC10/AWSSDK.QueryCompatibleJSONRPC10.NetFramework.csproj", "{CF7C5B2B-06BD-4F40-8900-1F6B9B68AABE}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "QueryProtocol", "QueryProtocol", "{CCB590A8-0E6F-44EC-808D-265AAD8EF527}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.QueryProtocol.NetFramework", "test/Services/QueryProtocol/AWSSDK.QueryProtocol.NetFramework.csproj", "{6634E23A-8167-4007-ACA6-DD595D00C203}" @@ -3452,6 +3456,10 @@ Global {177AD0E8-3F84-4490-B86E-CC83B0ACF0B9}.Debug|Any CPU.Build.0 = Debug|Any CPU {177AD0E8-3F84-4490-B86E-CC83B0ACF0B9}.Release|Any CPU.ActiveCfg = Release|Any CPU {177AD0E8-3F84-4490-B86E-CC83B0ACF0B9}.Release|Any CPU.Build.0 = Release|Any CPU + {CF7C5B2B-06BD-4F40-8900-1F6B9B68AABE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CF7C5B2B-06BD-4F40-8900-1F6B9B68AABE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CF7C5B2B-06BD-4F40-8900-1F6B9B68AABE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CF7C5B2B-06BD-4F40-8900-1F6B9B68AABE}.Release|Any CPU.Build.0 = Release|Any CPU {6634E23A-8167-4007-ACA6-DD595D00C203}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6634E23A-8167-4007-ACA6-DD595D00C203}.Debug|Any CPU.Build.0 = Debug|Any CPU {6634E23A-8167-4007-ACA6-DD595D00C203}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -4368,6 +4376,8 @@ Global {1E49599D-2ABC-4F3A-BBA2-05810DC719A3} = {269A6019-4AD8-4B83-B8BB-1A5093AEAA9A} {AA6991F5-6879-46FA-8246-DC63046985C2} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {177AD0E8-3F84-4490-B86E-CC83B0ACF0B9} = {AA6991F5-6879-46FA-8246-DC63046985C2} + {C5D3F64F-43A4-4C7A-9880-A261E8164296} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {CF7C5B2B-06BD-4F40-8900-1F6B9B68AABE} = {C5D3F64F-43A4-4C7A-9880-A261E8164296} {CCB590A8-0E6F-44EC-808D-265AAD8EF527} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {6634E23A-8167-4007-ACA6-DD595D00C203} = {CCB590A8-0E6F-44EC-808D-265AAD8EF527} {77577C08-80ED-465D-B374-CDA3C80313A7} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.NetStandard.sln b/sdk/AWSSDK.NetStandard.sln index 82d8ef61397f..17ee300d87b5 100644 --- a/sdk/AWSSDK.NetStandard.sln +++ b/sdk/AWSSDK.NetStandard.sln @@ -1696,6 +1696,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "QueryCompatible", "QueryCom EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.QueryCompatible.NetStandard", "test/Services/QueryCompatible/AWSSDK.QueryCompatible.NetStandard.csproj", "{2DED2C20-8EE6-4A6B-9ECD-B28ED5C04106}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "QueryCompatibleJSONRPC10", "QueryCompatibleJSONRPC10", "{8507375E-7DF6-4F21-9A90-BD5262AD3F73}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.QueryCompatibleJSONRPC10.NetStandard", "test/Services/QueryCompatibleJSONRPC10/AWSSDK.QueryCompatibleJSONRPC10.NetStandard.csproj", "{CE8281F9-8FB1-47FD-A2F7-DAE5864C919B}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "QueryProtocol", "QueryProtocol", "{747952E7-D0A1-48A8-8586-7D92C0AC59FB}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.QueryProtocol.NetStandard", "test/Services/QueryProtocol/AWSSDK.QueryProtocol.NetStandard.csproj", "{C6303AED-3D17-4561-B8B2-75787B512A55}" @@ -3444,6 +3448,10 @@ Global {2DED2C20-8EE6-4A6B-9ECD-B28ED5C04106}.Debug|Any CPU.Build.0 = Debug|Any CPU {2DED2C20-8EE6-4A6B-9ECD-B28ED5C04106}.Release|Any CPU.ActiveCfg = Release|Any CPU {2DED2C20-8EE6-4A6B-9ECD-B28ED5C04106}.Release|Any CPU.Build.0 = Release|Any CPU + {CE8281F9-8FB1-47FD-A2F7-DAE5864C919B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CE8281F9-8FB1-47FD-A2F7-DAE5864C919B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CE8281F9-8FB1-47FD-A2F7-DAE5864C919B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CE8281F9-8FB1-47FD-A2F7-DAE5864C919B}.Release|Any CPU.Build.0 = Release|Any CPU {C6303AED-3D17-4561-B8B2-75787B512A55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C6303AED-3D17-4561-B8B2-75787B512A55}.Debug|Any CPU.Build.0 = Debug|Any CPU {C6303AED-3D17-4561-B8B2-75787B512A55}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -4358,6 +4366,8 @@ Global {AFBA8AC0-8358-4463-A07D-33A1868F79D4} = {61C50CBB-3079-0458-E879-29B1577F7393} {F02D9857-E651-99C4-7662-DDA181A7AB14} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {2DED2C20-8EE6-4A6B-9ECD-B28ED5C04106} = {F02D9857-E651-99C4-7662-DDA181A7AB14} + {8507375E-7DF6-4F21-9A90-BD5262AD3F73} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {CE8281F9-8FB1-47FD-A2F7-DAE5864C919B} = {8507375E-7DF6-4F21-9A90-BD5262AD3F73} {747952E7-D0A1-48A8-8586-7D92C0AC59FB} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {C6303AED-3D17-4561-B8B2-75787B512A55} = {747952E7-D0A1-48A8-8586-7D92C0AC59FB} {31CF2397-B587-45F0-A22F-6C9994B4554C} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateComponentResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateComponentResponseUnmarshaller.cs index ddb3a0751065..8b0aca70cf31 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateComponentResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateComponentResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateComponentResponse response = new CreateComponentResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ComponentUnmarshaller.Instance; response.Entity = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateFormResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateFormResponseUnmarshaller.cs index 9b5fd2947af6..33a69dc087d5 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateFormResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateFormResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateFormResponse response = new CreateFormResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = FormUnmarshaller.Instance; response.Entity = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateThemeResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateThemeResponseUnmarshaller.cs index 262611628ef0..540f2872c8ec 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateThemeResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/CreateThemeResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateThemeResponse response = new CreateThemeResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ThemeUnmarshaller.Instance; response.Entity = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetCodegenJobResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetCodegenJobResponseUnmarshaller.cs index 418069bcd3cd..8ddc4f5c5616 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetCodegenJobResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetCodegenJobResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetCodegenJobResponse response = new GetCodegenJobResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CodegenJobUnmarshaller.Instance; response.Job = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetComponentResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetComponentResponseUnmarshaller.cs index 9bef6037a666..55bdc3896127 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetComponentResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetComponentResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetComponentResponse response = new GetComponentResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ComponentUnmarshaller.Instance; response.Component = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetFormResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetFormResponseUnmarshaller.cs index cb704d690a0f..39a3594384a8 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetFormResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetFormResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetFormResponse response = new GetFormResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = FormUnmarshaller.Instance; response.Form = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetThemeResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetThemeResponseUnmarshaller.cs index c7db1a154cb5..3e1080c5eeaa 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetThemeResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/GetThemeResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetThemeResponse response = new GetThemeResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ThemeUnmarshaller.Instance; response.Theme = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/StartCodegenJobResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/StartCodegenJobResponseUnmarshaller.cs index 6bd7e61085e1..dadb0198993f 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/StartCodegenJobResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/StartCodegenJobResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { StartCodegenJobResponse response = new StartCodegenJobResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CodegenJobUnmarshaller.Instance; response.Entity = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateComponentResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateComponentResponseUnmarshaller.cs index be3ee5bf2fe9..cf3ac177f7b1 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateComponentResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateComponentResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateComponentResponse response = new UpdateComponentResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ComponentUnmarshaller.Instance; response.Entity = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateFormResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateFormResponseUnmarshaller.cs index f200843c88bd..2a0443177caa 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateFormResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateFormResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateFormResponse response = new UpdateFormResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = FormUnmarshaller.Instance; response.Entity = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateThemeResponseUnmarshaller.cs b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateThemeResponseUnmarshaller.cs index d3e8386a39a7..00f896f0f220 100644 --- a/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateThemeResponseUnmarshaller.cs +++ b/sdk/src/Services/AmplifyUIBuilder/Generated/Model/Internal/MarshallTransformations/UpdateThemeResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateThemeResponse response = new UpdateThemeResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ThemeUnmarshaller.Instance; response.Entity = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateGatewayRouteResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateGatewayRouteResponseUnmarshaller.cs index c38d117a62f2..f778554af44a 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateGatewayRouteResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateGatewayRouteResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateGatewayRouteResponse response = new CreateGatewayRouteResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = GatewayRouteDataUnmarshaller.Instance; response.GatewayRoute = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateMeshResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateMeshResponseUnmarshaller.cs index 79e357da6944..9db2a8976822 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateMeshResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateMeshResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateMeshResponse response = new CreateMeshResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MeshDataUnmarshaller.Instance; response.Mesh = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateRouteResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateRouteResponseUnmarshaller.cs index 8f9e8166628e..b3cea27a074f 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateRouteResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateRouteResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateRouteResponse response = new CreateRouteResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = RouteDataUnmarshaller.Instance; response.Route = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualGatewayResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualGatewayResponseUnmarshaller.cs index 2d59320977ea..904eca27ac67 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualGatewayResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualGatewayResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateVirtualGatewayResponse response = new CreateVirtualGatewayResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualGatewayDataUnmarshaller.Instance; response.VirtualGateway = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualNodeResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualNodeResponseUnmarshaller.cs index a6900f9d329c..be64b6371b5a 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualNodeResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualNodeResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateVirtualNodeResponse response = new CreateVirtualNodeResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualNodeDataUnmarshaller.Instance; response.VirtualNode = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualRouterResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualRouterResponseUnmarshaller.cs index 186a2b593b8f..e25675a82d59 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualRouterResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualRouterResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateVirtualRouterResponse response = new CreateVirtualRouterResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualRouterDataUnmarshaller.Instance; response.VirtualRouter = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualServiceResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualServiceResponseUnmarshaller.cs index 366ce047616a..4948c7a8643c 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualServiceResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/CreateVirtualServiceResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateVirtualServiceResponse response = new CreateVirtualServiceResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualServiceDataUnmarshaller.Instance; response.VirtualService = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteGatewayRouteResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteGatewayRouteResponseUnmarshaller.cs index 0e81940fc19e..429165b0df97 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteGatewayRouteResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteGatewayRouteResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteGatewayRouteResponse response = new DeleteGatewayRouteResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = GatewayRouteDataUnmarshaller.Instance; response.GatewayRoute = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteMeshResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteMeshResponseUnmarshaller.cs index 63b8bf55c67c..c0b0d7154a37 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteMeshResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteMeshResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteMeshResponse response = new DeleteMeshResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MeshDataUnmarshaller.Instance; response.Mesh = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteRouteResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteRouteResponseUnmarshaller.cs index f396294af52c..af37b1d02ecf 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteRouteResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteRouteResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteRouteResponse response = new DeleteRouteResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = RouteDataUnmarshaller.Instance; response.Route = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualGatewayResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualGatewayResponseUnmarshaller.cs index a5389e446b00..ad97b773539e 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualGatewayResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualGatewayResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteVirtualGatewayResponse response = new DeleteVirtualGatewayResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualGatewayDataUnmarshaller.Instance; response.VirtualGateway = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualNodeResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualNodeResponseUnmarshaller.cs index 1dd0faa3055a..fd7900f543cd 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualNodeResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualNodeResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteVirtualNodeResponse response = new DeleteVirtualNodeResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualNodeDataUnmarshaller.Instance; response.VirtualNode = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualRouterResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualRouterResponseUnmarshaller.cs index 79640f782875..421b1aa64ca2 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualRouterResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualRouterResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteVirtualRouterResponse response = new DeleteVirtualRouterResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualRouterDataUnmarshaller.Instance; response.VirtualRouter = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualServiceResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualServiceResponseUnmarshaller.cs index b14794ad00d4..5f6e18061ff9 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualServiceResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DeleteVirtualServiceResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteVirtualServiceResponse response = new DeleteVirtualServiceResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualServiceDataUnmarshaller.Instance; response.VirtualService = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeGatewayRouteResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeGatewayRouteResponseUnmarshaller.cs index 81447d97188a..991004ce2843 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeGatewayRouteResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeGatewayRouteResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DescribeGatewayRouteResponse response = new DescribeGatewayRouteResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = GatewayRouteDataUnmarshaller.Instance; response.GatewayRoute = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeMeshResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeMeshResponseUnmarshaller.cs index 3cf2a1e5654c..d88de7d4968c 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeMeshResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeMeshResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DescribeMeshResponse response = new DescribeMeshResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MeshDataUnmarshaller.Instance; response.Mesh = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeRouteResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeRouteResponseUnmarshaller.cs index c81f121fb34a..7a27116b3bd7 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeRouteResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeRouteResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DescribeRouteResponse response = new DescribeRouteResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = RouteDataUnmarshaller.Instance; response.Route = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualGatewayResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualGatewayResponseUnmarshaller.cs index 163ecaaa497c..79d129554c8d 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualGatewayResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualGatewayResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DescribeVirtualGatewayResponse response = new DescribeVirtualGatewayResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualGatewayDataUnmarshaller.Instance; response.VirtualGateway = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualNodeResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualNodeResponseUnmarshaller.cs index 371dbc6fe47a..965fa98eb71f 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualNodeResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualNodeResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DescribeVirtualNodeResponse response = new DescribeVirtualNodeResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualNodeDataUnmarshaller.Instance; response.VirtualNode = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualRouterResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualRouterResponseUnmarshaller.cs index 838d2ae7d61f..95e5b5e5adbb 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualRouterResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualRouterResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DescribeVirtualRouterResponse response = new DescribeVirtualRouterResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualRouterDataUnmarshaller.Instance; response.VirtualRouter = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualServiceResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualServiceResponseUnmarshaller.cs index a0457c8b9ea4..4c600b224edd 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualServiceResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/DescribeVirtualServiceResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DescribeVirtualServiceResponse response = new DescribeVirtualServiceResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualServiceDataUnmarshaller.Instance; response.VirtualService = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateGatewayRouteResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateGatewayRouteResponseUnmarshaller.cs index 97bf1babe9ac..06f3f3bc1979 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateGatewayRouteResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateGatewayRouteResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateGatewayRouteResponse response = new UpdateGatewayRouteResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = GatewayRouteDataUnmarshaller.Instance; response.GatewayRoute = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateMeshResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateMeshResponseUnmarshaller.cs index 1f1aa8734c2d..391a33abb141 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateMeshResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateMeshResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateMeshResponse response = new UpdateMeshResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MeshDataUnmarshaller.Instance; response.Mesh = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateRouteResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateRouteResponseUnmarshaller.cs index 61b52a02f05a..6e3b533f8f21 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateRouteResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateRouteResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateRouteResponse response = new UpdateRouteResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = RouteDataUnmarshaller.Instance; response.Route = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualGatewayResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualGatewayResponseUnmarshaller.cs index be2d19c88435..2d19f7c2a9b8 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualGatewayResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualGatewayResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateVirtualGatewayResponse response = new UpdateVirtualGatewayResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualGatewayDataUnmarshaller.Instance; response.VirtualGateway = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualNodeResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualNodeResponseUnmarshaller.cs index f2fef4913013..1bd548b14f8f 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualNodeResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualNodeResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateVirtualNodeResponse response = new UpdateVirtualNodeResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualNodeDataUnmarshaller.Instance; response.VirtualNode = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualRouterResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualRouterResponseUnmarshaller.cs index 0ef9f7a9af0f..72bb390a7203 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualRouterResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualRouterResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateVirtualRouterResponse response = new UpdateVirtualRouterResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualRouterDataUnmarshaller.Instance; response.VirtualRouter = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualServiceResponseUnmarshaller.cs b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualServiceResponseUnmarshaller.cs index 47b397d948cf..dd4769c1fc89 100644 --- a/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualServiceResponseUnmarshaller.cs +++ b/sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/UpdateVirtualServiceResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateVirtualServiceResponse response = new UpdateVirtualServiceResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VirtualServiceDataUnmarshaller.Instance; response.VirtualService = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/ConfigureAgentResponseUnmarshaller.cs b/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/ConfigureAgentResponseUnmarshaller.cs index 968dbc9779f9..3e3a22561240 100644 --- a/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/ConfigureAgentResponseUnmarshaller.cs +++ b/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/ConfigureAgentResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { ConfigureAgentResponse response = new ConfigureAgentResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = AgentConfigurationUnmarshaller.Instance; response.Configuration = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/CreateProfilingGroupResponseUnmarshaller.cs b/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/CreateProfilingGroupResponseUnmarshaller.cs index d4567e69f635..6b9eef090df4 100644 --- a/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/CreateProfilingGroupResponseUnmarshaller.cs +++ b/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/CreateProfilingGroupResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateProfilingGroupResponse response = new CreateProfilingGroupResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ProfilingGroupDescriptionUnmarshaller.Instance; response.ProfilingGroup = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/DescribeProfilingGroupResponseUnmarshaller.cs b/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/DescribeProfilingGroupResponseUnmarshaller.cs index 56930fd2d394..8971e92fd4cc 100644 --- a/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/DescribeProfilingGroupResponseUnmarshaller.cs +++ b/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/DescribeProfilingGroupResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DescribeProfilingGroupResponse response = new DescribeProfilingGroupResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ProfilingGroupDescriptionUnmarshaller.Instance; response.ProfilingGroup = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/UpdateProfilingGroupResponseUnmarshaller.cs b/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/UpdateProfilingGroupResponseUnmarshaller.cs index 9d8c9ae96961..8bf5a1d6f347 100644 --- a/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/UpdateProfilingGroupResponseUnmarshaller.cs +++ b/sdk/src/Services/CodeGuruProfiler/Generated/Model/Internal/MarshallTransformations/UpdateProfilingGroupResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateProfilingGroupResponse response = new UpdateProfilingGroupResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ProfilingGroupDescriptionUnmarshaller.Instance; response.ProfilingGroup = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Glacier/Generated/Model/Internal/MarshallTransformations/GetVaultAccessPolicyResponseUnmarshaller.cs b/sdk/src/Services/Glacier/Generated/Model/Internal/MarshallTransformations/GetVaultAccessPolicyResponseUnmarshaller.cs index 516b10cb7f32..f7438e803996 100644 --- a/sdk/src/Services/Glacier/Generated/Model/Internal/MarshallTransformations/GetVaultAccessPolicyResponseUnmarshaller.cs +++ b/sdk/src/Services/Glacier/Generated/Model/Internal/MarshallTransformations/GetVaultAccessPolicyResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetVaultAccessPolicyResponse response = new GetVaultAccessPolicyResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VaultAccessPolicyUnmarshaller.Instance; response.Policy = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Glacier/Generated/Model/Internal/MarshallTransformations/GetVaultNotificationsResponseUnmarshaller.cs b/sdk/src/Services/Glacier/Generated/Model/Internal/MarshallTransformations/GetVaultNotificationsResponseUnmarshaller.cs index b1a7a32468f5..dbf895fae629 100644 --- a/sdk/src/Services/Glacier/Generated/Model/Internal/MarshallTransformations/GetVaultNotificationsResponseUnmarshaller.cs +++ b/sdk/src/Services/Glacier/Generated/Model/Internal/MarshallTransformations/GetVaultNotificationsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetVaultNotificationsResponse response = new GetVaultNotificationsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VaultNotificationConfigUnmarshaller.Instance; response.VaultNotificationConfig = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateAppResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateAppResponseUnmarshaller.cs index f930be1f5bc9..4f9875a3805d 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateAppResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateAppResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateAppResponse response = new CreateAppResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ApplicationResponseUnmarshaller.Instance; response.ApplicationResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateCampaignResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateCampaignResponseUnmarshaller.cs index 3d1b0cf4e9a2..b056d3a56104 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateCampaignResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateCampaignResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateCampaignResponse response = new CreateCampaignResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CampaignResponseUnmarshaller.Instance; response.CampaignResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateEmailTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateEmailTemplateResponseUnmarshaller.cs index 6769f7171bd8..237bba3ade56 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateEmailTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateEmailTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateEmailTemplateResponse response = new CreateEmailTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CreateTemplateMessageBodyUnmarshaller.Instance; response.CreateTemplateMessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateExportJobResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateExportJobResponseUnmarshaller.cs index 03e50b0ed8af..d9b6e4429972 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateExportJobResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateExportJobResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateExportJobResponse response = new CreateExportJobResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ExportJobResponseUnmarshaller.Instance; response.ExportJobResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateImportJobResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateImportJobResponseUnmarshaller.cs index f741397e791b..9ceeabaaca3f 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateImportJobResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateImportJobResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateImportJobResponse response = new CreateImportJobResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ImportJobResponseUnmarshaller.Instance; response.ImportJobResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateInAppTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateInAppTemplateResponseUnmarshaller.cs index 0a0d1168b5fa..e1f59f8690b3 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateInAppTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateInAppTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateInAppTemplateResponse response = new CreateInAppTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = TemplateCreateMessageBodyUnmarshaller.Instance; response.TemplateCreateMessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateJourneyResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateJourneyResponseUnmarshaller.cs index b188f3422c23..cae06c078472 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateJourneyResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateJourneyResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateJourneyResponse response = new CreateJourneyResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyResponseUnmarshaller.Instance; response.JourneyResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreatePushTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreatePushTemplateResponseUnmarshaller.cs index 5b1c72b7a52b..bb53874a506a 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreatePushTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreatePushTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreatePushTemplateResponse response = new CreatePushTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CreateTemplateMessageBodyUnmarshaller.Instance; response.CreateTemplateMessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateRecommenderConfigurationResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateRecommenderConfigurationResponseUnmarshaller.cs index 549c3be49f87..6351d9753096 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateRecommenderConfigurationResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateRecommenderConfigurationResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateRecommenderConfigurationResponse response = new CreateRecommenderConfigurationResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = RecommenderConfigurationResponseUnmarshaller.Instance; response.RecommenderConfigurationResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateSegmentResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateSegmentResponseUnmarshaller.cs index e39e13ee2fbd..79bdae3fb0e8 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateSegmentResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateSegmentResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateSegmentResponse response = new CreateSegmentResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SegmentResponseUnmarshaller.Instance; response.SegmentResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateSmsTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateSmsTemplateResponseUnmarshaller.cs index b7cd151e7731..880522114c4e 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateSmsTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateSmsTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateSmsTemplateResponse response = new CreateSmsTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CreateTemplateMessageBodyUnmarshaller.Instance; response.CreateTemplateMessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateVoiceTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateVoiceTemplateResponseUnmarshaller.cs index d1d5eeddc954..5d92888ab37e 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateVoiceTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreateVoiceTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { CreateVoiceTemplateResponse response = new CreateVoiceTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CreateTemplateMessageBodyUnmarshaller.Instance; response.CreateTemplateMessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteAdmChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteAdmChannelResponseUnmarshaller.cs index 4a9d55b8ae9f..ee10d8cb6852 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteAdmChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteAdmChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteAdmChannelResponse response = new DeleteAdmChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ADMChannelResponseUnmarshaller.Instance; response.ADMChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsChannelResponseUnmarshaller.cs index 3a8a2fd4ef3c..7952a94efad9 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteApnsChannelResponse response = new DeleteApnsChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSChannelResponseUnmarshaller.Instance; response.APNSChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsSandboxChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsSandboxChannelResponseUnmarshaller.cs index 7b9541b8ec19..da2fd2b2cb23 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsSandboxChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsSandboxChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteApnsSandboxChannelResponse response = new DeleteApnsSandboxChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSSandboxChannelResponseUnmarshaller.Instance; response.APNSSandboxChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsVoipChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsVoipChannelResponseUnmarshaller.cs index e62e10c3be1f..a0b1036b82a3 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsVoipChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsVoipChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteApnsVoipChannelResponse response = new DeleteApnsVoipChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSVoipChannelResponseUnmarshaller.Instance; response.APNSVoipChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsVoipSandboxChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsVoipSandboxChannelResponseUnmarshaller.cs index 1847dc59e95c..cc44e53d3570 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsVoipSandboxChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteApnsVoipSandboxChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteApnsVoipSandboxChannelResponse response = new DeleteApnsVoipSandboxChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSVoipSandboxChannelResponseUnmarshaller.Instance; response.APNSVoipSandboxChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteAppResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteAppResponseUnmarshaller.cs index a31b358d8dc6..f7dcd77990ef 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteAppResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteAppResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteAppResponse response = new DeleteAppResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ApplicationResponseUnmarshaller.Instance; response.ApplicationResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteBaiduChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteBaiduChannelResponseUnmarshaller.cs index da8c45e84cd3..05e0bdb4a631 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteBaiduChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteBaiduChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteBaiduChannelResponse response = new DeleteBaiduChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = BaiduChannelResponseUnmarshaller.Instance; response.BaiduChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteCampaignResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteCampaignResponseUnmarshaller.cs index 4ced5161cc62..a049c8d13438 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteCampaignResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteCampaignResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteCampaignResponse response = new DeleteCampaignResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CampaignResponseUnmarshaller.Instance; response.CampaignResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEmailChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEmailChannelResponseUnmarshaller.cs index 4dafeeb27115..238ebea6effb 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEmailChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEmailChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteEmailChannelResponse response = new DeleteEmailChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EmailChannelResponseUnmarshaller.Instance; response.EmailChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEmailTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEmailTemplateResponseUnmarshaller.cs index 3669b640d9ea..f171ef27ecf3 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEmailTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEmailTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteEmailTemplateResponse response = new DeleteEmailTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEndpointResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEndpointResponseUnmarshaller.cs index b152637eac99..c2d4892d9be6 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEndpointResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEndpointResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteEndpointResponse response = new DeleteEndpointResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EndpointResponseUnmarshaller.Instance; response.EndpointResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEventStreamResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEventStreamResponseUnmarshaller.cs index 1682d53008ef..983db2002965 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEventStreamResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteEventStreamResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteEventStreamResponse response = new DeleteEventStreamResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EventStreamUnmarshaller.Instance; response.EventStream = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteGcmChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteGcmChannelResponseUnmarshaller.cs index 9c9041b7f364..20d0c7f845b3 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteGcmChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteGcmChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteGcmChannelResponse response = new DeleteGcmChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = GCMChannelResponseUnmarshaller.Instance; response.GCMChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteInAppTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteInAppTemplateResponseUnmarshaller.cs index 31be2d0cca25..f5c432c4bb68 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteInAppTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteInAppTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteInAppTemplateResponse response = new DeleteInAppTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteJourneyResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteJourneyResponseUnmarshaller.cs index b121bf11e26b..0e9fb8476756 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteJourneyResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteJourneyResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteJourneyResponse response = new DeleteJourneyResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyResponseUnmarshaller.Instance; response.JourneyResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeletePushTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeletePushTemplateResponseUnmarshaller.cs index c017696b52ed..a9ee1bb6b91a 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeletePushTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeletePushTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeletePushTemplateResponse response = new DeletePushTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteRecommenderConfigurationResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteRecommenderConfigurationResponseUnmarshaller.cs index 2b1e0d9e14d6..f448aca2eb10 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteRecommenderConfigurationResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteRecommenderConfigurationResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteRecommenderConfigurationResponse response = new DeleteRecommenderConfigurationResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = RecommenderConfigurationResponseUnmarshaller.Instance; response.RecommenderConfigurationResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSegmentResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSegmentResponseUnmarshaller.cs index 328f0e8b4e05..3c2113a71c36 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSegmentResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSegmentResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteSegmentResponse response = new DeleteSegmentResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SegmentResponseUnmarshaller.Instance; response.SegmentResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSmsChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSmsChannelResponseUnmarshaller.cs index 7df05dd573b4..83aaf256343d 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSmsChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSmsChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteSmsChannelResponse response = new DeleteSmsChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SMSChannelResponseUnmarshaller.Instance; response.SMSChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSmsTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSmsTemplateResponseUnmarshaller.cs index 39ae11cedb10..97f593ecf0db 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSmsTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteSmsTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteSmsTemplateResponse response = new DeleteSmsTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteUserEndpointsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteUserEndpointsResponseUnmarshaller.cs index e067861f13ce..fd6d6230bccc 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteUserEndpointsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteUserEndpointsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteUserEndpointsResponse response = new DeleteUserEndpointsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EndpointsResponseUnmarshaller.Instance; response.EndpointsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteVoiceChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteVoiceChannelResponseUnmarshaller.cs index d7df6aa2ef07..6e534b9a2e9e 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteVoiceChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteVoiceChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteVoiceChannelResponse response = new DeleteVoiceChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VoiceChannelResponseUnmarshaller.Instance; response.VoiceChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteVoiceTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteVoiceTemplateResponseUnmarshaller.cs index eff947a213b5..22a91b065c72 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteVoiceTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/DeleteVoiceTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DeleteVoiceTemplateResponse response = new DeleteVoiceTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAdmChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAdmChannelResponseUnmarshaller.cs index b5f8694966e1..19de33966179 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAdmChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAdmChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetAdmChannelResponse response = new GetAdmChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ADMChannelResponseUnmarshaller.Instance; response.ADMChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsChannelResponseUnmarshaller.cs index b38e95a20465..93fe56e7d4b2 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetApnsChannelResponse response = new GetApnsChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSChannelResponseUnmarshaller.Instance; response.APNSChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsSandboxChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsSandboxChannelResponseUnmarshaller.cs index b00a6b228696..fcc315f220e2 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsSandboxChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsSandboxChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetApnsSandboxChannelResponse response = new GetApnsSandboxChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSSandboxChannelResponseUnmarshaller.Instance; response.APNSSandboxChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsVoipChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsVoipChannelResponseUnmarshaller.cs index 8bb4a9d57a9f..d6ea185d33a4 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsVoipChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsVoipChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetApnsVoipChannelResponse response = new GetApnsVoipChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSVoipChannelResponseUnmarshaller.Instance; response.APNSVoipChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsVoipSandboxChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsVoipSandboxChannelResponseUnmarshaller.cs index b3a09faa894f..25962905a8c5 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsVoipSandboxChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApnsVoipSandboxChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetApnsVoipSandboxChannelResponse response = new GetApnsVoipSandboxChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSVoipSandboxChannelResponseUnmarshaller.Instance; response.APNSVoipSandboxChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAppResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAppResponseUnmarshaller.cs index de993a968744..eb46f1200491 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAppResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAppResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetAppResponse response = new GetAppResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ApplicationResponseUnmarshaller.Instance; response.ApplicationResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApplicationDateRangeKpiResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApplicationDateRangeKpiResponseUnmarshaller.cs index 73a158cfda00..c959f9c63a5a 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApplicationDateRangeKpiResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApplicationDateRangeKpiResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetApplicationDateRangeKpiResponse response = new GetApplicationDateRangeKpiResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ApplicationDateRangeKpiResponseUnmarshaller.Instance; response.ApplicationDateRangeKpiResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApplicationSettingsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApplicationSettingsResponseUnmarshaller.cs index c3daa9b9081d..e56035be6798 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApplicationSettingsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetApplicationSettingsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetApplicationSettingsResponse response = new GetApplicationSettingsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ApplicationSettingsResourceUnmarshaller.Instance; response.ApplicationSettingsResource = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAppsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAppsResponseUnmarshaller.cs index 966a31d4d1a4..bb927f9c51ad 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAppsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetAppsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetAppsResponse response = new GetAppsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ApplicationsResponseUnmarshaller.Instance; response.ApplicationsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetBaiduChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetBaiduChannelResponseUnmarshaller.cs index 882ee7758991..d91ab767bd3f 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetBaiduChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetBaiduChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetBaiduChannelResponse response = new GetBaiduChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = BaiduChannelResponseUnmarshaller.Instance; response.BaiduChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignActivitiesResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignActivitiesResponseUnmarshaller.cs index 60958681c8fb..c49ba384fc39 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignActivitiesResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignActivitiesResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetCampaignActivitiesResponse response = new GetCampaignActivitiesResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ActivitiesResponseUnmarshaller.Instance; response.ActivitiesResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignDateRangeKpiResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignDateRangeKpiResponseUnmarshaller.cs index 3d5d2dd5dd23..09945b17e9ff 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignDateRangeKpiResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignDateRangeKpiResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetCampaignDateRangeKpiResponse response = new GetCampaignDateRangeKpiResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CampaignDateRangeKpiResponseUnmarshaller.Instance; response.CampaignDateRangeKpiResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignResponseUnmarshaller.cs index e41ac3b79669..44f996927c4a 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetCampaignResponse response = new GetCampaignResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CampaignResponseUnmarshaller.Instance; response.CampaignResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignVersionResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignVersionResponseUnmarshaller.cs index c9cf8718f61f..21a52696d69f 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignVersionResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignVersionResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetCampaignVersionResponse response = new GetCampaignVersionResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CampaignResponseUnmarshaller.Instance; response.CampaignResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignVersionsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignVersionsResponseUnmarshaller.cs index d394e2cdf558..2406e04d51bd 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignVersionsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignVersionsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetCampaignVersionsResponse response = new GetCampaignVersionsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CampaignsResponseUnmarshaller.Instance; response.CampaignsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignsResponseUnmarshaller.cs index abd979024c84..504c090e2f77 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetCampaignsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetCampaignsResponse response = new GetCampaignsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CampaignsResponseUnmarshaller.Instance; response.CampaignsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetChannelsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetChannelsResponseUnmarshaller.cs index 2a1d3184b4bc..f9d95f6cd818 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetChannelsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetChannelsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetChannelsResponse response = new GetChannelsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ChannelsResponseUnmarshaller.Instance; response.ChannelsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEmailChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEmailChannelResponseUnmarshaller.cs index 65850a869d8d..67eac9140eb1 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEmailChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEmailChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetEmailChannelResponse response = new GetEmailChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EmailChannelResponseUnmarshaller.Instance; response.EmailChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEmailTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEmailTemplateResponseUnmarshaller.cs index b1e43b6e2cb0..e377cbdfd512 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEmailTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEmailTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetEmailTemplateResponse response = new GetEmailTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EmailTemplateResponseUnmarshaller.Instance; response.EmailTemplateResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEndpointResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEndpointResponseUnmarshaller.cs index 9fa527b27e93..056af7333d58 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEndpointResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEndpointResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetEndpointResponse response = new GetEndpointResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EndpointResponseUnmarshaller.Instance; response.EndpointResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEventStreamResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEventStreamResponseUnmarshaller.cs index 7d7629ae6ab7..ad228e1f66f1 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEventStreamResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetEventStreamResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetEventStreamResponse response = new GetEventStreamResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EventStreamUnmarshaller.Instance; response.EventStream = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetExportJobResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetExportJobResponseUnmarshaller.cs index db4cfe9eaad2..11836ead06e0 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetExportJobResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetExportJobResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetExportJobResponse response = new GetExportJobResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ExportJobResponseUnmarshaller.Instance; response.ExportJobResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetExportJobsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetExportJobsResponseUnmarshaller.cs index c41f2474daa0..b562bcd33c61 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetExportJobsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetExportJobsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetExportJobsResponse response = new GetExportJobsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ExportJobsResponseUnmarshaller.Instance; response.ExportJobsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetGcmChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetGcmChannelResponseUnmarshaller.cs index b360c97cb3e5..215e79d85efc 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetGcmChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetGcmChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetGcmChannelResponse response = new GetGcmChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = GCMChannelResponseUnmarshaller.Instance; response.GCMChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetImportJobResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetImportJobResponseUnmarshaller.cs index 76852d158592..8edb4745f05d 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetImportJobResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetImportJobResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetImportJobResponse response = new GetImportJobResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ImportJobResponseUnmarshaller.Instance; response.ImportJobResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetImportJobsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetImportJobsResponseUnmarshaller.cs index 68857c632ecf..5e562cea4ed5 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetImportJobsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetImportJobsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetImportJobsResponse response = new GetImportJobsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ImportJobsResponseUnmarshaller.Instance; response.ImportJobsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetInAppMessagesResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetInAppMessagesResponseUnmarshaller.cs index 64c143309fee..defb83776c34 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetInAppMessagesResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetInAppMessagesResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetInAppMessagesResponse response = new GetInAppMessagesResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = InAppMessagesResponseUnmarshaller.Instance; response.InAppMessagesResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetInAppTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetInAppTemplateResponseUnmarshaller.cs index f27a862da1e9..f5b64e8f2606 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetInAppTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetInAppTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetInAppTemplateResponse response = new GetInAppTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = InAppTemplateResponseUnmarshaller.Instance; response.InAppTemplateResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyDateRangeKpiResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyDateRangeKpiResponseUnmarshaller.cs index 0f04f78fba4e..0d285aec4b11 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyDateRangeKpiResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyDateRangeKpiResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetJourneyDateRangeKpiResponse response = new GetJourneyDateRangeKpiResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyDateRangeKpiResponseUnmarshaller.Instance; response.JourneyDateRangeKpiResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyExecutionActivityMetricsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyExecutionActivityMetricsResponseUnmarshaller.cs index 54b180b0b269..dbada0d9d1ba 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyExecutionActivityMetricsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyExecutionActivityMetricsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetJourneyExecutionActivityMetricsResponse response = new GetJourneyExecutionActivityMetricsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyExecutionActivityMetricsResponseUnmarshaller.Instance; response.JourneyExecutionActivityMetricsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyExecutionMetricsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyExecutionMetricsResponseUnmarshaller.cs index cd18e015bf50..a32748e6debd 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyExecutionMetricsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyExecutionMetricsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetJourneyExecutionMetricsResponse response = new GetJourneyExecutionMetricsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyExecutionMetricsResponseUnmarshaller.Instance; response.JourneyExecutionMetricsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyResponseUnmarshaller.cs index 19cc5eb73a7a..838921a7ad7d 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetJourneyResponse response = new GetJourneyResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyResponseUnmarshaller.Instance; response.JourneyResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunExecutionActivityMetricsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunExecutionActivityMetricsResponseUnmarshaller.cs index 3276a0760354..561270aad481 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunExecutionActivityMetricsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunExecutionActivityMetricsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetJourneyRunExecutionActivityMetricsResponse response = new GetJourneyRunExecutionActivityMetricsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyRunExecutionActivityMetricsResponseUnmarshaller.Instance; response.JourneyRunExecutionActivityMetricsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunExecutionMetricsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunExecutionMetricsResponseUnmarshaller.cs index 8e886a5b7162..1987127a8063 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunExecutionMetricsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunExecutionMetricsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetJourneyRunExecutionMetricsResponse response = new GetJourneyRunExecutionMetricsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyRunExecutionMetricsResponseUnmarshaller.Instance; response.JourneyRunExecutionMetricsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunsResponseUnmarshaller.cs index fe43a6a4a137..f724def53335 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetJourneyRunsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetJourneyRunsResponse response = new GetJourneyRunsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyRunsResponseUnmarshaller.Instance; response.JourneyRunsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetPushTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetPushTemplateResponseUnmarshaller.cs index 22f490df00fb..31ec79672ea2 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetPushTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetPushTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetPushTemplateResponse response = new GetPushTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = PushNotificationTemplateResponseUnmarshaller.Instance; response.PushNotificationTemplateResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetRecommenderConfigurationResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetRecommenderConfigurationResponseUnmarshaller.cs index f5619942c41e..112257537dc4 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetRecommenderConfigurationResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetRecommenderConfigurationResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetRecommenderConfigurationResponse response = new GetRecommenderConfigurationResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = RecommenderConfigurationResponseUnmarshaller.Instance; response.RecommenderConfigurationResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetRecommenderConfigurationsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetRecommenderConfigurationsResponseUnmarshaller.cs index b536c1897355..31925549f797 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetRecommenderConfigurationsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetRecommenderConfigurationsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetRecommenderConfigurationsResponse response = new GetRecommenderConfigurationsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ListRecommenderConfigurationsResponseUnmarshaller.Instance; response.ListRecommenderConfigurationsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentExportJobsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentExportJobsResponseUnmarshaller.cs index 290541e15e7d..01503e6a720f 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentExportJobsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentExportJobsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetSegmentExportJobsResponse response = new GetSegmentExportJobsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ExportJobsResponseUnmarshaller.Instance; response.ExportJobsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentImportJobsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentImportJobsResponseUnmarshaller.cs index 3bfee01309ad..ae6fe56d8809 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentImportJobsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentImportJobsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetSegmentImportJobsResponse response = new GetSegmentImportJobsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ImportJobsResponseUnmarshaller.Instance; response.ImportJobsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentResponseUnmarshaller.cs index 1d67a9954038..6821c5f46a44 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetSegmentResponse response = new GetSegmentResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SegmentResponseUnmarshaller.Instance; response.SegmentResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentVersionResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentVersionResponseUnmarshaller.cs index 64f62c6edb98..391397b8e19e 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentVersionResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentVersionResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetSegmentVersionResponse response = new GetSegmentVersionResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SegmentResponseUnmarshaller.Instance; response.SegmentResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentVersionsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentVersionsResponseUnmarshaller.cs index 0e54dff0ebe6..7d621a637f4b 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentVersionsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentVersionsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetSegmentVersionsResponse response = new GetSegmentVersionsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SegmentsResponseUnmarshaller.Instance; response.SegmentsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentsResponseUnmarshaller.cs index 0273db8753bf..59416ce4766d 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSegmentsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetSegmentsResponse response = new GetSegmentsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SegmentsResponseUnmarshaller.Instance; response.SegmentsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSmsChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSmsChannelResponseUnmarshaller.cs index 4f3d2bcead80..0baa56c3aa63 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSmsChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSmsChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetSmsChannelResponse response = new GetSmsChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SMSChannelResponseUnmarshaller.Instance; response.SMSChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSmsTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSmsTemplateResponseUnmarshaller.cs index b996cf1c9817..8d87a85b455c 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSmsTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetSmsTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetSmsTemplateResponse response = new GetSmsTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SMSTemplateResponseUnmarshaller.Instance; response.SMSTemplateResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetUserEndpointsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetUserEndpointsResponseUnmarshaller.cs index baa09da69271..b7a9c3d88293 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetUserEndpointsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetUserEndpointsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetUserEndpointsResponse response = new GetUserEndpointsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EndpointsResponseUnmarshaller.Instance; response.EndpointsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetVoiceChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetVoiceChannelResponseUnmarshaller.cs index e2e22048c806..8b91d0fb4f24 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetVoiceChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetVoiceChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetVoiceChannelResponse response = new GetVoiceChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VoiceChannelResponseUnmarshaller.Instance; response.VoiceChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetVoiceTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetVoiceTemplateResponseUnmarshaller.cs index da16446595ba..82c34b202cc1 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetVoiceTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/GetVoiceTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { GetVoiceTemplateResponse response = new GetVoiceTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VoiceTemplateResponseUnmarshaller.Instance; response.VoiceTemplateResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListJourneysResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListJourneysResponseUnmarshaller.cs index b6080ee87be9..cd8cbf8de1b2 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListJourneysResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListJourneysResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { ListJourneysResponse response = new ListJourneysResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneysResponseUnmarshaller.Instance; response.JourneysResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs index 330a5748c11b..0437ac20a208 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { ListTagsForResourceResponse response = new ListTagsForResourceResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = TagsModelUnmarshaller.Instance; response.TagsModel = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTemplateVersionsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTemplateVersionsResponseUnmarshaller.cs index 311a22241e0c..0a62e2f5b6db 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTemplateVersionsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTemplateVersionsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { ListTemplateVersionsResponse response = new ListTemplateVersionsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = TemplateVersionsResponseUnmarshaller.Instance; response.TemplateVersionsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTemplatesResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTemplatesResponseUnmarshaller.cs index b09124b13fb3..050904a76061 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTemplatesResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/ListTemplatesResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { ListTemplatesResponse response = new ListTemplatesResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = TemplatesResponseUnmarshaller.Instance; response.TemplatesResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PhoneNumberValidateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PhoneNumberValidateResponseUnmarshaller.cs index 45931632521e..35f1e8770fa7 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PhoneNumberValidateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PhoneNumberValidateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { PhoneNumberValidateResponse response = new PhoneNumberValidateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = NumberValidateResponseUnmarshaller.Instance; response.NumberValidateResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PutEventStreamResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PutEventStreamResponseUnmarshaller.cs index 36cbb35b5ed1..1e15f1545f10 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PutEventStreamResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PutEventStreamResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { PutEventStreamResponse response = new PutEventStreamResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EventStreamUnmarshaller.Instance; response.EventStream = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PutEventsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PutEventsResponseUnmarshaller.cs index e220f94cf81c..31bd5061545c 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PutEventsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/PutEventsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { PutEventsResponse response = new PutEventsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EventsResponseUnmarshaller.Instance; response.EventsResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/RemoveAttributesResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/RemoveAttributesResponseUnmarshaller.cs index 92166a8bb8f3..ba3fb89ab1e8 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/RemoveAttributesResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/RemoveAttributesResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { RemoveAttributesResponse response = new RemoveAttributesResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = AttributesResourceUnmarshaller.Instance; response.AttributesResource = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendMessagesResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendMessagesResponseUnmarshaller.cs index e89c93b11bbc..7e71572dfb7a 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendMessagesResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendMessagesResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { SendMessagesResponse response = new SendMessagesResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageResponseUnmarshaller.Instance; response.MessageResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendOTPMessageResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendOTPMessageResponseUnmarshaller.cs index dc262ae3c5ae..cc46fc4f6bf5 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendOTPMessageResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendOTPMessageResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { SendOTPMessageResponse response = new SendOTPMessageResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageResponseUnmarshaller.Instance; response.MessageResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendUsersMessagesResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendUsersMessagesResponseUnmarshaller.cs index a58d44f0b2e1..666dad4331fb 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendUsersMessagesResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/SendUsersMessagesResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { SendUsersMessagesResponse response = new SendUsersMessagesResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SendUsersMessageResponseUnmarshaller.Instance; response.SendUsersMessageResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateAdmChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateAdmChannelResponseUnmarshaller.cs index 65dd2a490d05..e59f01591f4f 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateAdmChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateAdmChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateAdmChannelResponse response = new UpdateAdmChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ADMChannelResponseUnmarshaller.Instance; response.ADMChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsChannelResponseUnmarshaller.cs index 5fe0f08adea7..ebeebfdf8af8 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateApnsChannelResponse response = new UpdateApnsChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSChannelResponseUnmarshaller.Instance; response.APNSChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsSandboxChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsSandboxChannelResponseUnmarshaller.cs index 96c65f35cb4c..a5979ea0621b 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsSandboxChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsSandboxChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateApnsSandboxChannelResponse response = new UpdateApnsSandboxChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSSandboxChannelResponseUnmarshaller.Instance; response.APNSSandboxChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsVoipChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsVoipChannelResponseUnmarshaller.cs index 4eb388f15b24..d5d463ba09e6 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsVoipChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsVoipChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateApnsVoipChannelResponse response = new UpdateApnsVoipChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSVoipChannelResponseUnmarshaller.Instance; response.APNSVoipChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsVoipSandboxChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsVoipSandboxChannelResponseUnmarshaller.cs index c98573eea6ad..afe6a81c6a54 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsVoipSandboxChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApnsVoipSandboxChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateApnsVoipSandboxChannelResponse response = new UpdateApnsVoipSandboxChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = APNSVoipSandboxChannelResponseUnmarshaller.Instance; response.APNSVoipSandboxChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApplicationSettingsResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApplicationSettingsResponseUnmarshaller.cs index 194adf830aac..a27a46a1cc2d 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApplicationSettingsResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateApplicationSettingsResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateApplicationSettingsResponse response = new UpdateApplicationSettingsResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = ApplicationSettingsResourceUnmarshaller.Instance; response.ApplicationSettingsResource = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateBaiduChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateBaiduChannelResponseUnmarshaller.cs index 5172b0487b00..552b53b083b2 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateBaiduChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateBaiduChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateBaiduChannelResponse response = new UpdateBaiduChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = BaiduChannelResponseUnmarshaller.Instance; response.BaiduChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateCampaignResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateCampaignResponseUnmarshaller.cs index 7cc84b4fb8e0..94488c921ada 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateCampaignResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateCampaignResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateCampaignResponse response = new UpdateCampaignResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = CampaignResponseUnmarshaller.Instance; response.CampaignResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEmailChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEmailChannelResponseUnmarshaller.cs index ba7b577d75b6..a892476129d6 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEmailChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEmailChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateEmailChannelResponse response = new UpdateEmailChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = EmailChannelResponseUnmarshaller.Instance; response.EmailChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEmailTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEmailTemplateResponseUnmarshaller.cs index 3667c59aa155..1d3ffa6f859a 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEmailTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEmailTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateEmailTemplateResponse response = new UpdateEmailTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEndpointResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEndpointResponseUnmarshaller.cs index 29add9ec0f4a..39815633120c 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEndpointResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEndpointResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateEndpointResponse response = new UpdateEndpointResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEndpointsBatchResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEndpointsBatchResponseUnmarshaller.cs index d3b1ec4647e5..3ba64a9172e1 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEndpointsBatchResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateEndpointsBatchResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateEndpointsBatchResponse response = new UpdateEndpointsBatchResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateGcmChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateGcmChannelResponseUnmarshaller.cs index 6a44877c1a87..4fd68c1ebcf9 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateGcmChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateGcmChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateGcmChannelResponse response = new UpdateGcmChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = GCMChannelResponseUnmarshaller.Instance; response.GCMChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateInAppTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateInAppTemplateResponseUnmarshaller.cs index 5a4f2aca6459..b51e3842f2c2 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateInAppTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateInAppTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateInAppTemplateResponse response = new UpdateInAppTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateJourneyResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateJourneyResponseUnmarshaller.cs index e009338f9c1c..7e27ff47b367 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateJourneyResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateJourneyResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateJourneyResponse response = new UpdateJourneyResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyResponseUnmarshaller.Instance; response.JourneyResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateJourneyStateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateJourneyStateResponseUnmarshaller.cs index b76b8f3a91b4..e2d3171e3429 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateJourneyStateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateJourneyStateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateJourneyStateResponse response = new UpdateJourneyStateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = JourneyResponseUnmarshaller.Instance; response.JourneyResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdatePushTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdatePushTemplateResponseUnmarshaller.cs index 38df781ab678..bd82d4752029 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdatePushTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdatePushTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdatePushTemplateResponse response = new UpdatePushTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateRecommenderConfigurationResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateRecommenderConfigurationResponseUnmarshaller.cs index c7e903b7fe64..f633818f4de4 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateRecommenderConfigurationResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateRecommenderConfigurationResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateRecommenderConfigurationResponse response = new UpdateRecommenderConfigurationResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = RecommenderConfigurationResponseUnmarshaller.Instance; response.RecommenderConfigurationResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSegmentResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSegmentResponseUnmarshaller.cs index 138452f0b132..67a83ddb5fff 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSegmentResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSegmentResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateSegmentResponse response = new UpdateSegmentResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SegmentResponseUnmarshaller.Instance; response.SegmentResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSmsChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSmsChannelResponseUnmarshaller.cs index efdce4f10595..2d5fe08a86cf 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSmsChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSmsChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateSmsChannelResponse response = new UpdateSmsChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = SMSChannelResponseUnmarshaller.Instance; response.SMSChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSmsTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSmsTemplateResponseUnmarshaller.cs index d88100882ee4..7cef5830e4de 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSmsTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateSmsTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateSmsTemplateResponse response = new UpdateSmsTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateTemplateActiveVersionResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateTemplateActiveVersionResponseUnmarshaller.cs index 7a6a0c7dcd89..80a4b1ed5e0f 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateTemplateActiveVersionResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateTemplateActiveVersionResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateTemplateActiveVersionResponse response = new UpdateTemplateActiveVersionResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateVoiceChannelResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateVoiceChannelResponseUnmarshaller.cs index df2d13545226..4ccbbb4bfd55 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateVoiceChannelResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateVoiceChannelResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateVoiceChannelResponse response = new UpdateVoiceChannelResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VoiceChannelResponseUnmarshaller.Instance; response.VoiceChannelResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateVoiceTemplateResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateVoiceTemplateResponseUnmarshaller.cs index c386104010b1..f200681c2dfd 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateVoiceTemplateResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/UpdateVoiceTemplateResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { UpdateVoiceTemplateResponse response = new UpdateVoiceTemplateResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = MessageBodyUnmarshaller.Instance; response.MessageBody = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/VerifyOTPMessageResponseUnmarshaller.cs b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/VerifyOTPMessageResponseUnmarshaller.cs index 688a90d26865..f7b21b48a188 100644 --- a/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/VerifyOTPMessageResponseUnmarshaller.cs +++ b/sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/VerifyOTPMessageResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { VerifyOTPMessageResponse response = new VerifyOTPMessageResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = VerificationResponseUnmarshaller.Instance; response.VerificationResponse = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.csproj b/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.csproj index bc103b18b1c4..5da0187fab71 100644 --- a/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.csproj +++ b/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.csproj @@ -40,6 +40,7 @@ + @@ -52,4 +53,7 @@ + + + \ No newline at end of file diff --git a/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.sln b/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.sln index 42c421a877ae..30f257e0a580 100644 --- a/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.sln +++ b/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.sln @@ -31,6 +31,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.JsonProtocol.NetFram EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3.NetFramework", "..\..\src\Services\S3\AWSSDK.S3.NetFramework.csproj", "{6C0E771C-5B37-4781-B251-4D7FC14B4A98}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.QueryCompatibleJSONRPC10.NetFramework", "..\Services\QueryCompatibleJSONRPC10\AWSSDK.QueryCompatibleJSONRPC10.NetFramework.csproj", "{E1479D22-D509-45B8-F20A-870244119850}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -93,6 +95,10 @@ Global {6C0E771C-5B37-4781-B251-4D7FC14B4A98}.Debug|Any CPU.Build.0 = Debug|Any CPU {6C0E771C-5B37-4781-B251-4D7FC14B4A98}.Release|Any CPU.ActiveCfg = Release|Any CPU {6C0E771C-5B37-4781-B251-4D7FC14B4A98}.Release|Any CPU.Build.0 = Release|Any CPU + {E1479D22-D509-45B8-F20A-870244119850}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E1479D22-D509-45B8-F20A-870244119850}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E1479D22-D509-45B8-F20A-870244119850}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E1479D22-D509-45B8-F20A-870244119850}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetStandard.csproj b/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetStandard.csproj index e639058d534a..93c373076906 100644 --- a/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetStandard.csproj +++ b/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetStandard.csproj @@ -40,6 +40,7 @@ + diff --git a/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetStandard.sln b/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetStandard.sln index 79f0a875cd7c..84fa4f250ffa 100644 --- a/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetStandard.sln +++ b/sdk/test/ProtocolTests/AWSSDK.ProtocolTests.NetStandard.sln @@ -31,6 +31,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.CommonTest.NetStanda EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTestUtilities.Netstandard", "..\UnitTests\Custom\AWSSDK.UnitTestUtilities.Netstandard.csproj", "{A267E3F2-38CC-4659-B9C9-1BBB3058C88B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.QueryCompatibleJSONRPC10.NetStandard", "..\Services\QueryCompatibleJSONRPC10\AWSSDK.QueryCompatibleJSONRPC10.NetStandard.csproj", "{2CB42D7B-1D22-8605-7EC8-207E0DACC076}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -93,6 +95,10 @@ Global {A267E3F2-38CC-4659-B9C9-1BBB3058C88B}.Debug|Any CPU.Build.0 = Debug|Any CPU {A267E3F2-38CC-4659-B9C9-1BBB3058C88B}.Release|Any CPU.ActiveCfg = Release|Any CPU {A267E3F2-38CC-4659-B9C9-1BBB3058C88B}.Release|Any CPU.Build.0 = Release|Any CPU + {2CB42D7B-1D22-8605-7EC8-207E0DACC076}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2CB42D7B-1D22-8605-7EC8-207E0DACC076}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2CB42D7B-1D22-8605-7EC8-207E0DACC076}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2CB42D7B-1D22-8605-7EC8-207E0DACC076}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/test/ProtocolTests/Generated/JSONRPC10/dotnet-protocol-test-codegen/GreetingWithErrors.cs b/sdk/test/ProtocolTests/Generated/JSONRPC10/dotnet-protocol-test-codegen/GreetingWithErrors.cs index f693238adc74..65fc969249cc 100644 --- a/sdk/test/ProtocolTests/Generated/JSONRPC10/dotnet-protocol-test-codegen/GreetingWithErrors.cs +++ b/sdk/test/ProtocolTests/Generated/JSONRPC10/dotnet-protocol-test-codegen/GreetingWithErrors.cs @@ -63,6 +63,52 @@ public void AwsJson10InvalidGreetingErrorErrorResponse() Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); } + /// + /// Parses a complex error with no message member + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ErrorTest")] + [TestCategory("JsonRpc10")] + public void AwsJson10ComplexErrorErrorResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); + webResponseData.Headers["Content-Type"] = "application/x-amz-json-1.0"; + byte[] bytes = Encoding.ASCII.GetBytes("{\n \"__type\": \"aws.protocoltests.json10#ComplexError\",\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Foo\": \"bar\"\n }\n}"); + var stream = new MemoryStream(bytes); + var context = new JsonUnmarshallerContext(stream,true,webResponseData); + // Act + var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + // Assert + Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); + Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + } + + /// + /// Parses a complex error with an empty body + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ErrorTest")] + [TestCategory("JsonRpc10")] + public void AwsJson10EmptyComplexErrorErrorResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); + webResponseData.Headers["Content-Type"] = "application/x-amz-json-1.0"; + byte[] bytes = Encoding.ASCII.GetBytes("{\n \"__type\": \"aws.protocoltests.json10#ComplexError\"\n}"); + var stream = new MemoryStream(bytes); + var context = new JsonUnmarshallerContext(stream,true,webResponseData); + // Act + var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + // Assert + Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); + Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + } + /// /// Serializes the X-Amzn-ErrorType header. For an example service, /// see Amazon EKS. @@ -294,51 +340,5 @@ public void AwsJson10FooErrorWithDunderTypeUriAndNamespaceErrorResponse() Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 500)); } - /// - /// Parses a complex error with no message member - /// - [TestMethod] - [TestCategory("ProtocolTest")] - [TestCategory("ErrorTest")] - [TestCategory("JsonRpc10")] - public void AwsJson10ComplexErrorErrorResponse() - { - // Arrange - var webResponseData = new WebResponseData(); - webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); - webResponseData.Headers["Content-Type"] = "application/x-amz-json-1.0"; - byte[] bytes = Encoding.ASCII.GetBytes("{\n \"__type\": \"aws.protocoltests.json10#ComplexError\",\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Foo\": \"bar\"\n }\n}"); - var stream = new MemoryStream(bytes); - var context = new JsonUnmarshallerContext(stream,true,webResponseData); - // Act - var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); - // Assert - Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); - Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); - } - - /// - /// Parses a complex error with an empty body - /// - [TestMethod] - [TestCategory("ProtocolTest")] - [TestCategory("ErrorTest")] - [TestCategory("JsonRpc10")] - public void AwsJson10EmptyComplexErrorErrorResponse() - { - // Arrange - var webResponseData = new WebResponseData(); - webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); - webResponseData.Headers["Content-Type"] = "application/x-amz-json-1.0"; - byte[] bytes = Encoding.ASCII.GetBytes("{\n \"__type\": \"aws.protocoltests.json10#ComplexError\"\n}"); - var stream = new MemoryStream(bytes); - var context = new JsonUnmarshallerContext(stream,true,webResponseData); - // Act - var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); - // Assert - Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); - Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); - } - } } diff --git a/sdk/test/ProtocolTests/Generated/JSONRPC10/dotnet-protocol-test-codegen/QueryIncompatibleOperation.cs b/sdk/test/ProtocolTests/Generated/JSONRPC10/dotnet-protocol-test-codegen/QueryIncompatibleOperation.cs new file mode 100644 index 000000000000..26e34ca22f11 --- /dev/null +++ b/sdk/test/ProtocolTests/Generated/JSONRPC10/dotnet-protocol-test-codegen/QueryIncompatibleOperation.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated. + */ +using AWSSDK.ProtocolTests; +using AWSSDK.ProtocolTests.Utils; +using AWSSDK_DotNet.UnitTests.TestTools; +using Amazon.JSONRPC10; +using Amazon.JSONRPC10.Model; +using Amazon.JSONRPC10.Model.Internal.MarshallTransformations; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; + +namespace AWSSDK.ProtocolTests.JsonRpc10 +{ + [TestClass] + public class QueryIncompatibleOperation + { + /// + /// The query mode header MUST NOT be set on non-query-compatible + /// services. + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("RequestTest")] + [TestCategory("JsonRpc10")] + public void NonQueryCompatibleAwsJson10ForbidsQueryModeHeaderRequest() + { + // Arrange + var request = new QueryIncompatibleOperationRequest + { + }; + var config = new AmazonJSONRPC10Config + { + ServiceURL = "https://test.com/" + }; + + var marshaller = new QueryIncompatibleOperationRequestMarshaller(); + // Act + var marshalledRequest = ProtocolTestUtils.RunMockRequest(request,marshaller,config); + + // Assert + var expectedBody = "{}"; + JsonProtocolUtils.AssertBody(marshalledRequest, expectedBody); + Assert.AreEqual("POST", marshalledRequest.HttpMethod); + Uri actualUri = AmazonServiceClient.ComposeUrl(marshalledRequest); + Assert.AreEqual("/", ProtocolTestUtils.GetEncodedResourcePathFromOriginalString(actualUri)); + Assert.AreEqual("application/x-amz-json-1.0".Replace(" ",""), marshalledRequest.Headers["Content-Type"].Replace(" ","")); + Assert.AreEqual("JsonRpc10.QueryIncompatibleOperation".Replace(" ",""), marshalledRequest.Headers["X-Amz-Target"].Replace(" ","")); + } + + } +} diff --git a/sdk/test/ProtocolTests/Generated/QueryCompatibleJSONRPC10/dotnet-protocol-test-codegen/QueryCompatibleOperation.cs b/sdk/test/ProtocolTests/Generated/QueryCompatibleJSONRPC10/dotnet-protocol-test-codegen/QueryCompatibleOperation.cs new file mode 100644 index 000000000000..ef2802cd2cbb --- /dev/null +++ b/sdk/test/ProtocolTests/Generated/QueryCompatibleJSONRPC10/dotnet-protocol-test-codegen/QueryCompatibleOperation.cs @@ -0,0 +1,101 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated. + */ +using AWSSDK.ProtocolTests; +using AWSSDK.ProtocolTests.Utils; +using AWSSDK_DotNet.UnitTests.TestTools; +using Amazon.QueryCompatibleJSONRPC10; +using Amazon.QueryCompatibleJSONRPC10.Model; +using Amazon.QueryCompatibleJSONRPC10.Model.Internal.MarshallTransformations; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; + +namespace AWSSDK.ProtocolTests.QueryCompatibleJsonRpc10 +{ + [TestClass] + public class QueryCompatibleOperation + { + /// + /// Clients for query-compatible services MUST send the + /// x-amzn-query-mode header. + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("RequestTest")] + [TestCategory("QueryCompatibleJsonRpc10")] + public void QueryCompatibleAwsJson10CborSendsQueryModeHeaderRequest() + { + // Arrange + var request = new QueryCompatibleOperationRequest + { + }; + var config = new AmazonQueryCompatibleJSONRPC10Config + { + ServiceURL = "https://test.com/" + }; + + var marshaller = new QueryCompatibleOperationRequestMarshaller(); + // Act + var marshalledRequest = ProtocolTestUtils.RunMockRequest(request,marshaller,config); + + // Assert + var expectedBody = "{}"; + JsonProtocolUtils.AssertBody(marshalledRequest, expectedBody); + Assert.AreEqual("POST", marshalledRequest.HttpMethod); + Uri actualUri = AmazonServiceClient.ComposeUrl(marshalledRequest); + Assert.AreEqual("/", ProtocolTestUtils.GetEncodedResourcePathFromOriginalString(actualUri)); + Assert.AreEqual("application/x-amz-json-1.0".Replace(" ",""), marshalledRequest.Headers["Content-Type"].Replace(" ","")); + Assert.AreEqual("QueryCompatibleJsonRpc10.QueryCompatibleOperation".Replace(" ",""), marshalledRequest.Headers["X-Amz-Target"].Replace(" ","")); + Assert.AreEqual("true".Replace(" ",""), marshalledRequest.Headers["x-amzn-query-mode"].Replace(" ","")); + } + + /// + /// Parses simple errors with no query error code + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ErrorTest")] + [TestCategory("QueryCompatibleJsonRpc10")] + public void QueryCompatibleAwsJson10NoCustomCodeErrorErrorResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); + webResponseData.Headers["Content-Type"] = "application/x-amz-json-1.0"; + byte[] bytes = Encoding.ASCII.GetBytes("{\n \"__type\": \"aws.protocoltests.json10#NoCustomCodeError\",\n \"message\": \"Hi\"\n}"); + var stream = new MemoryStream(bytes); + var context = new JsonUnmarshallerContext(stream,true,webResponseData); + // Act + var errorResponse = new QueryCompatibleOperationResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + // Assert + Assert.IsInstanceOfType(errorResponse, typeof(NoCustomCodeErrorException)); + Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + } + + } +} diff --git a/sdk/test/ProtocolTests/Generated/QueryProtocol/dotnet-protocol-test-codegen/GreetingWithErrors.cs b/sdk/test/ProtocolTests/Generated/QueryProtocol/dotnet-protocol-test-codegen/GreetingWithErrors.cs index dfb7734ec51f..9feb405fbe34 100644 --- a/sdk/test/ProtocolTests/Generated/QueryProtocol/dotnet-protocol-test-codegen/GreetingWithErrors.cs +++ b/sdk/test/ProtocolTests/Generated/QueryProtocol/dotnet-protocol-test-codegen/GreetingWithErrors.cs @@ -92,47 +92,47 @@ public void QueryInvalidGreetingErrorErrorResponse() Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); } - /// - /// Parses customized XML errors - /// [TestMethod] [TestCategory("ProtocolTest")] [TestCategory("ErrorTest")] [TestCategory("AwsQuery")] - public void QueryCustomizedErrorErrorResponse() + public void QueryComplexErrorErrorResponse() { // Arrange var webResponseData = new WebResponseData(); - webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 402); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); webResponseData.Headers["Content-Type"] = "text/xml"; - byte[] bytes = Encoding.ASCII.GetBytes("\n \n Sender\n Customized\n Hi\n \n foo-id\n\n"); + byte[] bytes = Encoding.ASCII.GetBytes("\n \n Sender\n ComplexError\n Top level\n \n bar\n \n \n foo-id\n\n"); var stream = new MemoryStream(bytes); var context = new XmlUnmarshallerContext(stream,true,webResponseData); // Act - var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 402)); + var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); // Assert - Assert.IsInstanceOfType(errorResponse, typeof(CustomCodeErrorException)); - Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 402)); + Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); + Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); } + /// + /// Parses customized XML errors + /// [TestMethod] [TestCategory("ProtocolTest")] [TestCategory("ErrorTest")] [TestCategory("AwsQuery")] - public void QueryComplexErrorErrorResponse() + public void QueryCustomizedErrorErrorResponse() { // Arrange var webResponseData = new WebResponseData(); - webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 402); webResponseData.Headers["Content-Type"] = "text/xml"; - byte[] bytes = Encoding.ASCII.GetBytes("\n \n Sender\n ComplexError\n Top level\n \n bar\n \n \n foo-id\n\n"); + byte[] bytes = Encoding.ASCII.GetBytes("\n \n Sender\n Customized\n Hi\n \n foo-id\n\n"); var stream = new MemoryStream(bytes); var context = new XmlUnmarshallerContext(stream,true,webResponseData); // Act - var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 402)); // Assert - Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); - Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + Assert.IsInstanceOfType(errorResponse, typeof(CustomCodeErrorException)); + Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 402)); } } diff --git a/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/GreetingWithErrors.cs b/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/GreetingWithErrors.cs index bd49038c3cf2..37e5b176c286 100644 --- a/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/GreetingWithErrors.cs +++ b/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/GreetingWithErrors.cs @@ -105,6 +105,76 @@ public void RestJsonGreetingWithErrorsNoPayloadResponse() Assert.AreEqual((HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200), context.ResponseData.StatusCode); } + /// + /// Parses simple JSON errors + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ErrorTest")] + [TestCategory("RestJson")] + public void RestJsonInvalidGreetingErrorErrorResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); + webResponseData.Headers["Content-Type"] = "application/json"; + webResponseData.Headers["X-Amzn-Errortype"] = "InvalidGreeting"; + byte[] bytes = Encoding.ASCII.GetBytes("{\n \"Message\": \"Hi\"\n}"); + var stream = new MemoryStream(bytes); + var context = new JsonUnmarshallerContext(stream,true,webResponseData); + // Act + var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + // Assert + Assert.IsInstanceOfType(errorResponse, typeof(InvalidGreetingException)); + Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); + } + + /// + /// Serializes a complex error with no message member + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ErrorTest")] + [TestCategory("RestJson")] + public void RestJsonComplexErrorWithNoMessageErrorResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403); + webResponseData.Headers["Content-Type"] = "application/json"; + webResponseData.Headers["X-Amzn-Errortype"] = "ComplexError"; + webResponseData.Headers["X-Header"] = "Header"; + byte[] bytes = Encoding.ASCII.GetBytes("{\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Fooooo\": \"bar\"\n }\n}"); + var stream = new MemoryStream(bytes); + var context = new JsonUnmarshallerContext(stream,true,webResponseData); + // Act + var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403)); + // Assert + Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); + Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403)); + } + + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ErrorTest")] + [TestCategory("RestJson")] + public void RestJsonEmptyComplexErrorWithNoMessageErrorResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403); + webResponseData.Headers["Content-Type"] = "application/json"; + webResponseData.Headers["X-Amzn-Errortype"] = "ComplexError"; + byte[] bytes = Encoding.ASCII.GetBytes("{}"); + var stream = new MemoryStream(bytes); + var context = new JsonUnmarshallerContext(stream,true,webResponseData); + // Act + var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403)); + // Assert + Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); + Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403)); + } + /// /// Serializes the X-Amzn-ErrorType header. For an example service, /// see Amazon EKS. @@ -336,75 +406,5 @@ public void RestJsonFooErrorWithDunderTypeUriAndNamespaceErrorResponse() Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 500)); } - /// - /// Serializes a complex error with no message member - /// - [TestMethod] - [TestCategory("ProtocolTest")] - [TestCategory("ErrorTest")] - [TestCategory("RestJson")] - public void RestJsonComplexErrorWithNoMessageErrorResponse() - { - // Arrange - var webResponseData = new WebResponseData(); - webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403); - webResponseData.Headers["Content-Type"] = "application/json"; - webResponseData.Headers["X-Amzn-Errortype"] = "ComplexError"; - webResponseData.Headers["X-Header"] = "Header"; - byte[] bytes = Encoding.ASCII.GetBytes("{\n \"TopLevel\": \"Top level\",\n \"Nested\": {\n \"Fooooo\": \"bar\"\n }\n}"); - var stream = new MemoryStream(bytes); - var context = new JsonUnmarshallerContext(stream,true,webResponseData); - // Act - var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403)); - // Assert - Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); - Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403)); - } - - [TestMethod] - [TestCategory("ProtocolTest")] - [TestCategory("ErrorTest")] - [TestCategory("RestJson")] - public void RestJsonEmptyComplexErrorWithNoMessageErrorResponse() - { - // Arrange - var webResponseData = new WebResponseData(); - webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403); - webResponseData.Headers["Content-Type"] = "application/json"; - webResponseData.Headers["X-Amzn-Errortype"] = "ComplexError"; - byte[] bytes = Encoding.ASCII.GetBytes("{}"); - var stream = new MemoryStream(bytes); - var context = new JsonUnmarshallerContext(stream,true,webResponseData); - // Act - var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403)); - // Assert - Assert.IsInstanceOfType(errorResponse, typeof(ComplexErrorException)); - Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 403)); - } - - /// - /// Parses simple JSON errors - /// - [TestMethod] - [TestCategory("ProtocolTest")] - [TestCategory("ErrorTest")] - [TestCategory("RestJson")] - public void RestJsonInvalidGreetingErrorErrorResponse() - { - // Arrange - var webResponseData = new WebResponseData(); - webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400); - webResponseData.Headers["Content-Type"] = "application/json"; - webResponseData.Headers["X-Amzn-Errortype"] = "InvalidGreeting"; - byte[] bytes = Encoding.ASCII.GetBytes("{\n \"Message\": \"Hi\"\n}"); - var stream = new MemoryStream(bytes); - var context = new JsonUnmarshallerContext(stream,true,webResponseData); - // Act - var errorResponse = new GreetingWithErrorsResponseUnmarshaller().UnmarshallException(context, null, (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); - // Assert - Assert.IsInstanceOfType(errorResponse, typeof(InvalidGreetingException)); - Assert.AreEqual(errorResponse.StatusCode,(HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 400)); - } - } } diff --git a/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/HttpEmptyPrefixHeaders.cs b/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/HttpEmptyPrefixHeaders.cs new file mode 100644 index 000000000000..0f924322c1f7 --- /dev/null +++ b/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/HttpEmptyPrefixHeaders.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated. + */ +using AWSSDK.ProtocolTests; +using AWSSDK.ProtocolTests.Utils; +using AWSSDK_DotNet.UnitTests.TestTools; +using Amazon.RestJsonProtocol; +using Amazon.RestJsonProtocol.Model; +using Amazon.RestJsonProtocol.Model.Internal.MarshallTransformations; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; + +namespace AWSSDK.ProtocolTests.RestJson +{ + [TestClass] + public class HttpEmptyPrefixHeaders + { + /// + /// Serializes all request headers, using specific when present + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("RequestTest")] + [TestCategory("RestJson")] + public void RestJsonHttpEmptyPrefixHeadersRequestClientRequest() + { + // Arrange + var request = new HttpEmptyPrefixHeadersRequest + { + PrefixHeaders = new Dictionary() + { + + { "x-foo", "Foo" }, + { "hello", "Hello" }, + }, + SpecificHeader = "There", + }; + var config = new AmazonRestJsonProtocolConfig + { + ServiceURL = "https://test.com/" + }; + + var marshaller = new HttpEmptyPrefixHeadersRequestMarshaller(); + // Act + var marshalledRequest = ProtocolTestUtils.RunMockRequest(request,marshaller,config); + + // Assert + Assert.AreEqual("GET", marshalledRequest.HttpMethod); + Uri actualUri = AmazonServiceClient.ComposeUrl(marshalledRequest); + Assert.AreEqual("/HttpEmptyPrefixHeaders", ProtocolTestUtils.GetEncodedResourcePathFromOriginalString(actualUri)); + Assert.AreEqual("There".Replace(" ",""), marshalledRequest.Headers["hello"].Replace(" ","")); + Assert.AreEqual("Foo".Replace(" ",""), marshalledRequest.Headers["x-foo"].Replace(" ","")); + } + + /// + /// Deserializes all response headers with the same for prefix and + /// specific + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ResponseTest")] + [TestCategory("RestJson")] + public void RestJsonHttpEmptyPrefixHeadersResponseClientResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200); + webResponseData.Headers["hello"] = "There"; + webResponseData.Headers["x-foo"] = "Foo"; + byte[] bytes = Encoding.ASCII.GetBytes(""); + var stream = new MemoryStream(bytes); + var context = new JsonUnmarshallerContext(stream,true,webResponseData); + + // Act + var unmarshalledResponse = new HttpEmptyPrefixHeadersResponseUnmarshaller().Unmarshall(context); + var expectedResponse = new HttpEmptyPrefixHeadersResponse + { + PrefixHeaders = new Dictionary() + { + + { "x-foo", "Foo" }, + { "hello", "There" }, + }, + SpecificHeader = "There", + }; + + // Assert + var actualResponse = (HttpEmptyPrefixHeadersResponse)unmarshalledResponse; + Comparer.CompareObjects(expectedResponse,actualResponse); + Assert.AreEqual((HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200), context.ResponseData.StatusCode); + } + + } +} diff --git a/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/HttpPayloadWithStructure.cs b/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/HttpPayloadWithStructure.cs index 8563551accdc..0abea5ba509a 100644 --- a/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/HttpPayloadWithStructure.cs +++ b/sdk/test/ProtocolTests/Generated/RestJsonProtocol/dotnet-protocol-test-codegen/HttpPayloadWithStructure.cs @@ -110,5 +110,34 @@ public void RestJsonHttpPayloadWithStructureResponse() Assert.AreEqual((HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200), context.ResponseData.StatusCode); } + /// + /// Serializes a structure in the payload + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ResponseTest")] + [TestCategory("RestJson")] + public void RestJsonHttpPayloadWithStructureAndEmptyResponseBodyResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200); + byte[] bytes = Encoding.ASCII.GetBytes(""); + var stream = new MemoryStream(bytes); + var context = new JsonUnmarshallerContext(stream,true,webResponseData); + + // Act + var unmarshalledResponse = new HttpPayloadWithStructureResponseUnmarshaller().Unmarshall(context); + var expectedResponse = new HttpPayloadWithStructureResponse + { + Nested = null, + }; + + // Assert + var actualResponse = (HttpPayloadWithStructureResponse)unmarshalledResponse; + Comparer.CompareObjects(expectedResponse,actualResponse); + Assert.AreEqual((HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200), context.ResponseData.StatusCode); + } + } } diff --git a/sdk/test/ProtocolTests/Generated/RestXmlProtocol/dotnet-protocol-test-codegen/HttpEmptyPrefixHeaders.cs b/sdk/test/ProtocolTests/Generated/RestXmlProtocol/dotnet-protocol-test-codegen/HttpEmptyPrefixHeaders.cs new file mode 100644 index 000000000000..139b4e6a1199 --- /dev/null +++ b/sdk/test/ProtocolTests/Generated/RestXmlProtocol/dotnet-protocol-test-codegen/HttpEmptyPrefixHeaders.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated. + */ +using AWSSDK.ProtocolTests; +using AWSSDK.ProtocolTests.Utils; +using AWSSDK_DotNet.UnitTests.TestTools; +using Amazon.RestXmlProtocol; +using Amazon.RestXmlProtocol.Model; +using Amazon.RestXmlProtocol.Model.Internal.MarshallTransformations; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; +using System.Xml; +using System.Xml.Linq; + +namespace AWSSDK.ProtocolTests.RestXml +{ + [TestClass] + public class HttpEmptyPrefixHeaders + { + /// + /// Serializes all request headers, using specific when present + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("RequestTest")] + [TestCategory("RestXml")] + public void HttpEmptyPrefixHeadersRequestClientRequest() + { + // Arrange + var request = new HttpEmptyPrefixHeadersRequest + { + PrefixHeaders = new Dictionary() + { + + { "x-foo", "Foo" }, + { "hello", "Hello" }, + }, + SpecificHeader = "There", + }; + var config = new AmazonRestXmlProtocolConfig + { + ServiceURL = "https://test.com/" + }; + + var marshaller = new HttpEmptyPrefixHeadersRequestMarshaller(); + // Act + var marshalledRequest = ProtocolTestUtils.RunMockRequest(request,marshaller,config); + + // Assert + Assert.AreEqual("GET", marshalledRequest.HttpMethod); + Uri actualUri = AmazonServiceClient.ComposeUrl(marshalledRequest); + Assert.AreEqual("/HttpEmptyPrefixHeaders", ProtocolTestUtils.GetEncodedResourcePathFromOriginalString(actualUri)); + Assert.AreEqual("There".Replace(" ",""), marshalledRequest.Headers["hello"].Replace(" ","")); + Assert.AreEqual("Foo".Replace(" ",""), marshalledRequest.Headers["x-foo"].Replace(" ","")); + } + + /// + /// Deserializes all response headers with the same for prefix and + /// specific + /// + [TestMethod] + [TestCategory("ProtocolTest")] + [TestCategory("ResponseTest")] + [TestCategory("RestXml")] + public void HttpEmptyPrefixHeadersResponseClientResponse() + { + // Arrange + var webResponseData = new WebResponseData(); + webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200); + webResponseData.Headers["hello"] = "There"; + webResponseData.Headers["x-foo"] = "Foo"; + byte[] bytes = Encoding.ASCII.GetBytes(""); + var stream = new MemoryStream(bytes); + var context = new XmlUnmarshallerContext(stream,true,webResponseData); + + // Act + var unmarshalledResponse = new HttpEmptyPrefixHeadersResponseUnmarshaller().Unmarshall(context); + var expectedResponse = new HttpEmptyPrefixHeadersResponse + { + PrefixHeaders = new Dictionary() + { + + { "x-foo", "Foo" }, + { "hello", "There" }, + }, + SpecificHeader = "There", + }; + + // Assert + var actualResponse = (HttpEmptyPrefixHeadersResponse)unmarshalledResponse; + Comparer.CompareObjects(expectedResponse,actualResponse); + Assert.AreEqual((HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200), context.ResponseData.StatusCode); + } + + } +} diff --git a/sdk/test/ProtocolTests/Generated/RestXmlProtocol/dotnet-protocol-test-codegen/NestedXmlMapWithXmlName.cs b/sdk/test/ProtocolTests/Generated/RestXmlProtocol/dotnet-protocol-test-codegen/NestedXmlMapWithXmlName.cs index 013ded20f33f..2aa242f59da3 100644 --- a/sdk/test/ProtocolTests/Generated/RestXmlProtocol/dotnet-protocol-test-codegen/NestedXmlMapWithXmlName.cs +++ b/sdk/test/ProtocolTests/Generated/RestXmlProtocol/dotnet-protocol-test-codegen/NestedXmlMapWithXmlName.cs @@ -80,7 +80,7 @@ public void NestedXmlMapWithXmlNameSerializesRequest() var marshalledRequest = ProtocolTestUtils.RunMockRequest(request,marshaller,config); // Assert - var expectedBody = " \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"; + var expectedBody = " \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"; XmlTestUtils.AssertBody(marshalledRequest,expectedBody); Assert.AreEqual("POST", marshalledRequest.HttpMethod); Uri actualUri = AmazonServiceClient.ComposeUrl(marshalledRequest); @@ -102,7 +102,7 @@ public void NestedXmlMapWithXmlNameDeserializesResponse() var webResponseData = new WebResponseData(); webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200); webResponseData.Headers["Content-Type"] = "application/xml"; - byte[] bytes = Encoding.ASCII.GetBytes(" \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"); + byte[] bytes = Encoding.ASCII.GetBytes(" \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"); var stream = new MemoryStream(bytes); var context = new XmlUnmarshallerContext(stream,true,webResponseData); diff --git a/sdk/test/ProtocolTests/Generated/RestXmlProtocolNamespace/dotnet-protocol-test-codegen/SimpleScalarProperties.cs b/sdk/test/ProtocolTests/Generated/RestXmlProtocolNamespace/dotnet-protocol-test-codegen/SimpleScalarProperties.cs index 4fe52022cd9a..d0467b79d4dc 100644 --- a/sdk/test/ProtocolTests/Generated/RestXmlProtocolNamespace/dotnet-protocol-test-codegen/SimpleScalarProperties.cs +++ b/sdk/test/ProtocolTests/Generated/RestXmlProtocolNamespace/dotnet-protocol-test-codegen/SimpleScalarProperties.cs @@ -77,7 +77,7 @@ public void XmlNamespaceSimpleScalarPropertiesRequest() var marshalledRequest = ProtocolTestUtils.RunMockRequest(request,marshaller,config); // Assert - var expectedBody = "\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n"; + var expectedBody = "\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n"; XmlTestUtils.AssertBody(marshalledRequest,expectedBody); Assert.AreEqual("PUT", marshalledRequest.HttpMethod); Uri actualUri = AmazonServiceClient.ComposeUrl(marshalledRequest); @@ -100,7 +100,7 @@ public void XmlNamespaceSimpleScalarPropertiesResponse() webResponseData.StatusCode = (HttpStatusCode)Enum.ToObject(typeof(HttpStatusCode), 200); webResponseData.Headers["Content-Type"] = "application/xml"; webResponseData.Headers["X-Foo"] = "Foo"; - byte[] bytes = Encoding.ASCII.GetBytes("\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n"); + byte[] bytes = Encoding.ASCII.GetBytes("\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n"); var stream = new MemoryStream(bytes); var context = new XmlUnmarshallerContext(stream,true,webResponseData); diff --git a/sdk/test/Services/JSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryIncompatibleOperationRequestMarshaller.cs b/sdk/test/Services/JSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryIncompatibleOperationRequestMarshaller.cs new file mode 100644 index 000000000000..7bea18c32550 --- /dev/null +++ b/sdk/test/Services/JSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryIncompatibleOperationRequestMarshaller.cs @@ -0,0 +1,93 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.JSONRPC10.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Text.Json; +using System.Buffers; +#if !NETFRAMEWORK +using ThirdParty.RuntimeBackports; +#endif +#pragma warning disable CS0612,CS0618 +namespace Amazon.JSONRPC10.Model.Internal.MarshallTransformations +{ + /// + /// QueryIncompatibleOperation Request Marshaller + /// + public class QueryIncompatibleOperationRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((QueryIncompatibleOperationRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(QueryIncompatibleOperationRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.JSONRPC10"); + string target = "JsonRpc10.QueryIncompatibleOperation"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-14"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + var content = "{}"; + request.Content = System.Text.Encoding.UTF8.GetBytes(content); + + return request; + } + private static QueryIncompatibleOperationRequestMarshaller _instance = new QueryIncompatibleOperationRequestMarshaller(); + + internal static QueryIncompatibleOperationRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static QueryIncompatibleOperationRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/JSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryIncompatibleOperationResponseUnmarshaller.cs b/sdk/test/Services/JSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryIncompatibleOperationResponseUnmarshaller.cs new file mode 100644 index 000000000000..47e5c9f9434d --- /dev/null +++ b/sdk/test/Services/JSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryIncompatibleOperationResponseUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.JSONRPC10.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Text.Json; +using Amazon.Util; +#pragma warning disable CS0612,CS0618 +namespace Amazon.JSONRPC10.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for QueryIncompatibleOperation operation + /// + public class QueryIncompatibleOperationResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + QueryIncompatibleOperationResponse response = new QueryIncompatibleOperationResponse(); + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context, ref reader); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, context.ResponseData)) + { + StreamingUtf8JsonReader readerCopy = new StreamingUtf8JsonReader(streamCopy); + } + return new AmazonJSONRPC10Exception(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static QueryIncompatibleOperationResponseUnmarshaller _instance = new QueryIncompatibleOperationResponseUnmarshaller(); + + internal static QueryIncompatibleOperationResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static QueryIncompatibleOperationResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/JSONRPC10/Generated/Model/QueryIncompatibleOperationRequest.cs b/sdk/test/Services/JSONRPC10/Generated/Model/QueryIncompatibleOperationRequest.cs new file mode 100644 index 000000000000..0b67f020493a --- /dev/null +++ b/sdk/test/Services/JSONRPC10/Generated/Model/QueryIncompatibleOperationRequest.cs @@ -0,0 +1,40 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.JSONRPC10.Model +{ + /// + /// Container for the parameters to the QueryIncompatibleOperation operation. + /// + /// + public partial class QueryIncompatibleOperationRequest : AmazonJSONRPC10Request + { + + } +} \ No newline at end of file diff --git a/sdk/test/Services/JSONRPC10/Generated/Model/QueryIncompatibleOperationResponse.cs b/sdk/test/Services/JSONRPC10/Generated/Model/QueryIncompatibleOperationResponse.cs new file mode 100644 index 000000000000..adc25770bf35 --- /dev/null +++ b/sdk/test/Services/JSONRPC10/Generated/Model/QueryIncompatibleOperationResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.JSONRPC10.Model +{ + /// + /// This is the response object from the QueryIncompatibleOperation operation. + /// + public partial class QueryIncompatibleOperationResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/test/Services/JSONRPC10/Generated/_bcl/AmazonJSONRPC10Client.cs b/sdk/test/Services/JSONRPC10/Generated/_bcl/AmazonJSONRPC10Client.cs index 730c5637bb27..10d85a67cea1 100644 --- a/sdk/test/Services/JSONRPC10/Generated/_bcl/AmazonJSONRPC10Client.cs +++ b/sdk/test/Services/JSONRPC10/Generated/_bcl/AmazonJSONRPC10Client.cs @@ -701,6 +701,47 @@ public virtual PutWithContentEncodingResponse PutWithContentEncoding(PutWithCont #endregion + #region QueryIncompatibleOperation + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryIncompatibleOperation service method. + /// + /// The response from the QueryIncompatibleOperation service method, as returned by JSONRPC10. + /// REST API Reference for QueryIncompatibleOperation Operation + public virtual QueryIncompatibleOperationResponse QueryIncompatibleOperation(QueryIncompatibleOperationRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = QueryIncompatibleOperationRequestMarshaller.Instance; + options.ResponseUnmarshaller = QueryIncompatibleOperationResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryIncompatibleOperation service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the QueryIncompatibleOperation service method, as returned by JSONRPC10. + /// REST API Reference for QueryIncompatibleOperation Operation + public virtual Task QueryIncompatibleOperationAsync(QueryIncompatibleOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = QueryIncompatibleOperationRequestMarshaller.Instance; + options.ResponseUnmarshaller = QueryIncompatibleOperationResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + #region SimpleScalarProperties diff --git a/sdk/test/Services/JSONRPC10/Generated/_bcl/IAmazonJSONRPC10.cs b/sdk/test/Services/JSONRPC10/Generated/_bcl/IAmazonJSONRPC10.cs index 0322f231d3bf..36ab3a3ace0a 100644 --- a/sdk/test/Services/JSONRPC10/Generated/_bcl/IAmazonJSONRPC10.cs +++ b/sdk/test/Services/JSONRPC10/Generated/_bcl/IAmazonJSONRPC10.cs @@ -369,6 +369,34 @@ public partial interface IAmazonJSONRPC10 : IAmazonService, IDisposable #endregion + #region QueryIncompatibleOperation + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryIncompatibleOperation service method. + /// + /// The response from the QueryIncompatibleOperation service method, as returned by JSONRPC10. + /// REST API Reference for QueryIncompatibleOperation Operation + QueryIncompatibleOperationResponse QueryIncompatibleOperation(QueryIncompatibleOperationRequest request); + + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryIncompatibleOperation service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the QueryIncompatibleOperation service method, as returned by JSONRPC10. + /// REST API Reference for QueryIncompatibleOperation Operation + Task QueryIncompatibleOperationAsync(QueryIncompatibleOperationRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region SimpleScalarProperties diff --git a/sdk/test/Services/JSONRPC10/Generated/_netstandard/AmazonJSONRPC10Client.cs b/sdk/test/Services/JSONRPC10/Generated/_netstandard/AmazonJSONRPC10Client.cs index 8ab3e6fa5ec8..4de33db44094 100644 --- a/sdk/test/Services/JSONRPC10/Generated/_netstandard/AmazonJSONRPC10Client.cs +++ b/sdk/test/Services/JSONRPC10/Generated/_netstandard/AmazonJSONRPC10Client.cs @@ -598,6 +598,39 @@ internal virtual PutWithContentEncodingResponse PutWithContentEncoding(PutWithCo } #endregion + #region QueryIncompatibleOperation + + internal virtual QueryIncompatibleOperationResponse QueryIncompatibleOperation(QueryIncompatibleOperationRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = QueryIncompatibleOperationRequestMarshaller.Instance; + options.ResponseUnmarshaller = QueryIncompatibleOperationResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryIncompatibleOperation service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the QueryIncompatibleOperation service method, as returned by JSONRPC10. + /// REST API Reference for QueryIncompatibleOperation Operation + public virtual Task QueryIncompatibleOperationAsync(QueryIncompatibleOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = QueryIncompatibleOperationRequestMarshaller.Instance; + options.ResponseUnmarshaller = QueryIncompatibleOperationResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + #endregion + #region SimpleScalarProperties internal virtual SimpleScalarPropertiesResponse SimpleScalarProperties(SimpleScalarPropertiesRequest request) diff --git a/sdk/test/Services/JSONRPC10/Generated/_netstandard/IAmazonJSONRPC10.cs b/sdk/test/Services/JSONRPC10/Generated/_netstandard/IAmazonJSONRPC10.cs index 2bfd7104f612..b99d3a4daf3e 100644 --- a/sdk/test/Services/JSONRPC10/Generated/_netstandard/IAmazonJSONRPC10.cs +++ b/sdk/test/Services/JSONRPC10/Generated/_netstandard/IAmazonJSONRPC10.cs @@ -242,6 +242,24 @@ public partial interface IAmazonJSONRPC10 : IAmazonService, IDisposable #endregion + #region QueryIncompatibleOperation + + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryIncompatibleOperation service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the QueryIncompatibleOperation service method, as returned by JSONRPC10. + /// REST API Reference for QueryIncompatibleOperation Operation + Task QueryIncompatibleOperationAsync(QueryIncompatibleOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region SimpleScalarProperties diff --git a/sdk/test/Services/QueryCompatible/UnitTests/ErrorCodeUnmarshallingTests.cs b/sdk/test/Services/QueryCompatible/UnitTests/ErrorCodeUnmarshallingTests.cs deleted file mode 100644 index 1e5b4af06100..000000000000 --- a/sdk/test/Services/QueryCompatible/UnitTests/ErrorCodeUnmarshallingTests.cs +++ /dev/null @@ -1,134 +0,0 @@ -using System; -using System.Linq; -using System.Net; -using System.Text; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Amazon.Runtime; -using Amazon.Runtime.Internal.Transform; -using Amazon.QueryCompatible.Model.Internal.MarshallTransformations; -using Amazon.Util; -using ServiceClientGenerator; -using AWSSDK_DotNet.UnitTests.TestTools; - -namespace AWSSDK_DotNet.UnitTests.Marshalling -{ - [TestClass] - public class QueryCompatibleUnmarshallingTests - { - static readonly ServiceModel service_model = Utils.LoadServiceModel("aws-query-compatible"); - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("QueryCompatible")] - public void ModeledExceptionUnmarshalTest_When_HeaderIsPresent() - { - var response = GetJsonErrorResponse("AWS.SimpleQueueService.QueueDeletedRecently;Sender"); - Assert.AreEqual("AWS.SimpleQueueService.QueueDeletedRecently", response.ErrorCode); - Assert.AreEqual(ErrorType.Sender, response.ErrorType); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("QueryCompatible")] - public void ModeledExceptionUnmarshalTest_IgnoresErrorType_When_TypeUnparsable() - { - var response = GetJsonErrorResponse("AWS.SimpleQueueService.QueueDeletedRecently;Some"); - Assert.AreEqual("AWS.SimpleQueueService.QueueDeletedRecently", response.ErrorCode); - Assert.AreEqual(ErrorType.Unknown, response.ErrorType); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("QueryCompatible")] - public void ModeledExceptionUnmarshalTest_When_HeaderIsNotPresent() - { - var response = GetJsonErrorResponse(null); - Assert.AreEqual("QueueDeletedRecently", response.ErrorCode); - Assert.AreEqual(ErrorType.Unknown, response.ErrorType); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("QueryCompatible")] - public void ModeledExceptionUnmarshalTest_When_HeaderIsIncomplete() - { - var response = GetJsonErrorResponse("AWS.SimpleQueueService.QueueDeletedRecently"); - Assert.AreEqual("QueueDeletedRecently", response.ErrorCode); - Assert.AreEqual(ErrorType.Unknown, response.ErrorType); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("QueryCompatible")] - public void ModeledExceptionUnmarshalTest_When_HeaderIsEmpty() - { - var response = GetJsonErrorResponse(""); - Assert.AreEqual("QueueDeletedRecently", response.ErrorCode); - Assert.AreEqual(ErrorType.Unknown, response.ErrorType); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("QueryCompatible")] - public void UnmodeledExceptionUnmarshalTest_WhenHeaderIsPresent() - { - var body = "{\"__type\":\"com.amazonaws.awsquerycompatible#AccessDeniedException\"}"; - var response = UnmarshalException(body, "AccessDeniedException", "AccessDenied;Sender"); - Assert.AreEqual("AccessDenied", response.ErrorCode); - Assert.AreEqual(ErrorType.Sender, response.ErrorType); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("QueryCompatible")] - public void UnmodeledExceptionUnmarshalTest_IgnoresErrorType_When_TypeUnparsable() - { - var body = "{\"__type\":\"com.amazonaws.awsquerycompatible#AccessDeniedException\"}"; - var response = UnmarshalException(body, "AccessDeniedException", "AccessDenied;Some"); - Assert.AreEqual("AccessDenied", response.ErrorCode); - Assert.AreEqual(ErrorType.Unknown, response.ErrorType); - } - - private AmazonServiceException UnmarshalException(string body, string exceptionName, string amznQueryErrorHeaderValue) - { - var webResponse = CreateResponse(body, exceptionName, amznQueryErrorHeaderValue); - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(body), true, webResponse, true); - var response = CreateQueueResponseUnmarshaller.Instance.UnmarshallException(context, null, HttpStatusCode.BadRequest); - return response; - } - - private WebResponseData CreateResponse(string body, string exceptionName, string amznQueryErrorHeaderValue) - { - var webResponse = new WebResponseData - { - StatusCode = HttpStatusCode.ServiceUnavailable, - Headers = - { - {HeaderKeys.RequestIdHeader, Guid.NewGuid().ToString()}, - {HeaderKeys.XAmzCrc32,"0"}, - {HeaderKeys.XAmzErrorType, exceptionName}, - {HeaderKeys.ContentLengthHeader, UTF8Encoding.UTF8.GetBytes(body).Length.ToString()} - } - }; - if (amznQueryErrorHeaderValue != null) - webResponse.Headers.Add("x-amzn-query-error", amznQueryErrorHeaderValue); - return webResponse; - } - - private AmazonServiceException GetJsonErrorResponse(string amznQueryErrorHeaderValue) - { - var operation = service_model.FindOperation("CreateQueue"); - var exception = operation.Exceptions.First(e => e.Name.Equals("QueueDeletedRecentlyException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var response = UnmarshalException(jsonResponse, exception.ErrorCode, amznQueryErrorHeaderValue); - return response; - } - } -} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatible/UnitTests/HostPrefixMarshallingTests.cs b/sdk/test/Services/QueryCompatible/UnitTests/HostPrefixMarshallingTests.cs deleted file mode 100644 index 6a499c017fce..000000000000 --- a/sdk/test/Services/QueryCompatible/UnitTests/HostPrefixMarshallingTests.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Amazon.QueryCompatible.Model; -using Amazon.QueryCompatible.Model.Internal.MarshallTransformations; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace AWSSDK.UnitTests.QueryCompatible -{ - [TestClass] - public class HostPrefixMarshallingTests - { - [TestMethod] - public void StaticEndpointHostTrait() - { - var marshaller = new StaticOpRequestMarshaller(); - var request = new StaticOpRequest - { - Name = "myname" - }; - - var internalRequest = marshaller.Marshall(request); - Assert.AreEqual(internalRequest.HostPrefix, "data-"); - } - - [TestMethod] - public void MemberRefEndpointHostTrait() - { - var marshaller = new MemberRefOpRequestMarshaller(); - var request = new MemberRefOpRequest - { - Name = "myname" - }; - - var internalRequest = marshaller.Marshall(request); - Assert.AreEqual(internalRequest.HostPrefix, "foo-myname."); - } - } -} diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/AWSSDK.QueryCompatibleJSONRPC10.NetFramework.csproj b/sdk/test/Services/QueryCompatibleJSONRPC10/AWSSDK.QueryCompatibleJSONRPC10.NetFramework.csproj new file mode 100644 index 000000000000..8825059cf6a5 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/AWSSDK.QueryCompatibleJSONRPC10.NetFramework.csproj @@ -0,0 +1,84 @@ + + + true + net472 + $(DefineConstants);BCL;AWS_ASYNC_API;CODE_ANALYSIS + portable + true + AWSSDK.QueryCompatibleJSONRPC10 + AWSSDK.QueryCompatibleJSONRPC10 + + false + false + false + false + false + false + false + false + true + true + + CA1822 + + + + 11.0 + + + 9.0 + + + ../../../AWSDotNetSDK.ruleset + + + ../../../AWSDotNetSDKForBuild.ruleset + + + + + + ../../../awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + all + + + all + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/AWSSDK.QueryCompatibleJSONRPC10.NetStandard.csproj b/sdk/test/Services/QueryCompatibleJSONRPC10/AWSSDK.QueryCompatibleJSONRPC10.NetStandard.csproj new file mode 100644 index 000000000000..9a934b53e05d --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/AWSSDK.QueryCompatibleJSONRPC10.NetStandard.csproj @@ -0,0 +1,93 @@ + + + true + netstandard2.0;netcoreapp3.1;net8.0 + $(DefineConstants);NETSTANDARD;AWS_ASYNC_API + $(DefineConstants);NETSTANDARD20;AWS_ASYNC_ENUMERABLES_API + $(DefineConstants);AWS_ASYNC_ENUMERABLES_API + $(DefineConstants);AWS_ASYNC_ENUMERABLES_API + portable + true + AWSSDK.QueryCompatibleJSONRPC10 + AWSSDK.QueryCompatibleJSONRPC10 + + false + false + false + false + false + false + false + false + true + true + + CA1822 + + + + 8.0 + + + true + + + + 11.0 + + + 9.0 + + + ../../../AWSDotNetSDK.ruleset + + + ../../../AWSDotNetSDKForBuild.ruleset + + + + + + ../../../awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + all + + + all + + + + + + + + + + \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10Config.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10Config.cs new file mode 100644 index 000000000000..fbd19c8059e1 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10Config.cs @@ -0,0 +1,106 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + +using System; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Util.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Endpoints; +using Amazon.QueryCompatibleJSONRPC10.Internal; + +namespace Amazon.QueryCompatibleJSONRPC10 +{ + /// + /// Configuration for accessing Amazon QueryCompatibleJSONRPC10 service + /// + public partial class AmazonQueryCompatibleJSONRPC10Config : ClientConfig + { + private static readonly string UserAgentString = + InternalSDKUtils.BuildUserAgentString("Query Compatible JSON RPC 10", "4.0"); + + + private string _userAgent = UserAgentString; + /// + /// The ServiceId, which is the unique identifier for a service. + /// + public static new string ServiceId + { + get + { + return "Query Compatible JSON RPC 10"; + } + } + /// + /// Default constructor + /// + public AmazonQueryCompatibleJSONRPC10Config() + : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonQueryCompatibleJSONRPC10DefaultConfiguration.GetAllConfigurations())) + { + base.ServiceId = "Query Compatible JSON RPC 10"; + this.AuthenticationServiceName = "query-compatible-jsonrpc10"; + } + + /// + /// The constant used to lookup in the region hash the endpoint. + /// + public override string RegionEndpointServiceName + { + get + { + return "query-compatible-jsonrpc10"; + } + } + + /// + /// Gets the ServiceVersion property. + /// + public override string ServiceVersion + { + get + { + return "2020-07-14"; + } + } + + /// + /// Gets the value of UserAgent property. + /// + public override string UserAgent + { + get + { + return _userAgent; + } + } + + /// + /// Returns the endpoint that will be used for a particular request. + /// + /// A Container class for parameters used for endpoint resolution. + /// The resolved endpoint for the given request. + public override Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters) + { + // If the current service doesn't have an endpoint rule set (which is the case for configs + // that are used for testing), we'll return a placeholder endpoint so that unit tests pass. + return new Endpoint(this.ServiceURL ?? "https://example.com"); + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10DefaultConfiguration.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10DefaultConfiguration.cs new file mode 100644 index 000000000000..8e28195e3d48 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10DefaultConfiguration.cs @@ -0,0 +1,126 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; + +using Amazon.Runtime; + +namespace Amazon.QueryCompatibleJSONRPC10 +{ + /// + /// Configuration for accessing Amazon QueryCompatibleJSONRPC10 service + /// + public static class AmazonQueryCompatibleJSONRPC10DefaultConfiguration + { + /// + /// Collection of all s supported by + /// QueryCompatibleJSONRPC10 + /// + public static ReadOnlyCollection GetAllConfigurations() + { + return new ReadOnlyCollection(new List + { + Standard, + InRegion, + CrossRegion, + Mobile, + Auto + }); + } + + /// + ///

The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

+ ///
+ public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.Standard, + RetryMode = RequestRetryMode.Standard, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:03.1 + ConnectTimeout = TimeSpan.FromMilliseconds(3100L), + // 0:00:03.1 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

+ ///
+ public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.InRegion, + RetryMode = RequestRetryMode.Standard, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:01.1 + ConnectTimeout = TimeSpan.FromMilliseconds(1100L), + // 0:00:01.1 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

+ ///
+ public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.CrossRegion, + RetryMode = RequestRetryMode.Standard, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:03.1 + ConnectTimeout = TimeSpan.FromMilliseconds(3100L), + // 0:00:03.1 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

+ ///
+ public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.Mobile, + RetryMode = RequestRetryMode.Standard, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:30 + ConnectTimeout = TimeSpan.FromMilliseconds(30000L), + // 0:00:30 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.

Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query EC2 Instance Metadata service, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application

+ ///
+ public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.Auto, + RetryMode = RequestRetryMode.Standard, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:01.1 + ConnectTimeout = TimeSpan.FromMilliseconds(1100L), + // 0:00:01.1 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10Exception.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10Exception.cs new file mode 100644 index 000000000000..f406bc70e59e --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/AmazonQueryCompatibleJSONRPC10Exception.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Net; +using System.Text; + +using Amazon.Runtime; + +namespace Amazon.QueryCompatibleJSONRPC10 +{ + /// + /// Common exception for the QueryCompatibleJSONRPC10 service. + /// +#if !NETSTANDARD + [Serializable] +#endif + public partial class AmazonQueryCompatibleJSONRPC10Exception : AmazonServiceException + { + /// + /// Construct instance of AmazonQueryCompatibleJSONRPC10Exception + /// + /// + public AmazonQueryCompatibleJSONRPC10Exception(string message) + : base(message) + { + } + + /// + /// Construct instance of AmazonQueryCompatibleJSONRPC10Exception + /// + /// + /// + public AmazonQueryCompatibleJSONRPC10Exception(string message, Exception innerException) + : base(message, innerException) + { + } + + /// + /// Construct instance of AmazonQueryCompatibleJSONRPC10Exception + /// + /// + public AmazonQueryCompatibleJSONRPC10Exception(Exception innerException) + : base(innerException.Message, innerException) + { + } + + /// + /// Construct instance of AmazonQueryCompatibleJSONRPC10Exception + /// + /// + /// + /// + /// + /// + public AmazonQueryCompatibleJSONRPC10Exception(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) + { + } + + /// + /// Construct instance of AmazonQueryCompatibleJSONRPC10Exception + /// + /// + /// + /// + /// + /// + /// + public AmazonQueryCompatibleJSONRPC10Exception(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) + { + } + +#if !NETSTANDARD + /// + /// Constructs a new instance of the AmazonQueryCompatibleJSONRPC10Exception class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected AmazonQueryCompatibleJSONRPC10Exception(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } +#endif + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Internal/AmazonQueryCompatibleJSONRPC10AuthResolver.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Internal/AmazonQueryCompatibleJSONRPC10AuthResolver.cs new file mode 100644 index 000000000000..7bd2e60437c8 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Internal/AmazonQueryCompatibleJSONRPC10AuthResolver.cs @@ -0,0 +1,79 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + +using Amazon.Runtime; +using Amazon.Runtime.Credentials.Internal; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Identity; +using System.Collections.Generic; + +namespace Amazon.QueryCompatibleJSONRPC10.Internal +{ + /// + public class AmazonQueryCompatibleJSONRPC10AuthSchemeParameters : IAuthSchemeParameters + { + /// + public string Operation { get; set; } + + /// + /// Region is included as the service supports SigV4. + /// + public string Region { get; set; } + } + + /// + /// Handler responsible for converting the request context into the parameters expected by the auth scheme resolver. + /// + public class AmazonQueryCompatibleJSONRPC10AuthSchemeHandler : BaseAuthResolverHandler + { + /// + /// Modeled auth scheme resolver for QueryCompatibleJSONRPC10. + /// + public AmazonQueryCompatibleJSONRPC10AuthSchemeResolver AuthSchemeResolver { get; } = new(); + + /// + protected override List ResolveAuthOptions(IExecutionContext executionContext) + { + var requestContext = executionContext.RequestContext; + var mappedParameters = new AmazonQueryCompatibleJSONRPC10AuthSchemeParameters + { + Operation = requestContext.Request.RequestName, + Region = requestContext.ClientConfig.RegionEndpoint?.SystemName, + }; + + return AuthSchemeResolver.ResolveAuthScheme(mappedParameters); + } + } + + /// + public class AmazonQueryCompatibleJSONRPC10AuthSchemeResolver : IAuthSchemeResolver + { + /// + public List ResolveAuthScheme(AmazonQueryCompatibleJSONRPC10AuthSchemeParameters authParameters) + { + switch (authParameters.Operation) + { + default: + // Default for the service, applies to all remaining operations. + return AuthSchemeOption.DEFAULT_SIGV4; + } + } + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Internal/AmazonQueryCompatibleJSONRPC10Metadata.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Internal/AmazonQueryCompatibleJSONRPC10Metadata.cs new file mode 100644 index 000000000000..8fad30f8c114 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Internal/AmazonQueryCompatibleJSONRPC10Metadata.cs @@ -0,0 +1,55 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + + +using Amazon.Runtime.Internal; + + +namespace Amazon.QueryCompatibleJSONRPC10.Internal +{ + /// + /// Service metadata for Amazon QueryCompatibleJSONRPC10 service + /// + public partial class AmazonQueryCompatibleJSONRPC10Metadata : IServiceMetadata + { + /// + /// Gets the value of the Service Id. + /// + public string ServiceId + { + get + { + return "Query Compatible JSON RPC 10"; + } + } + + /// + /// Gets the dictionary that gives mapping of renamed operations + /// + public System.Collections.Generic.IDictionary OperationNameMapping + { + get + { + return new System.Collections.Generic.Dictionary(0) + { + }; + } + } + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/AmazonQueryCompatibleJSONRPC10Request.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/AmazonQueryCompatibleJSONRPC10Request.cs new file mode 100644 index 000000000000..9cf83d61d779 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/AmazonQueryCompatibleJSONRPC10Request.cs @@ -0,0 +1,30 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + +using Amazon.Runtime; + +namespace Amazon.QueryCompatibleJSONRPC10 +{ + /// + /// Base class for QueryCompatibleJSONRPC10 operation requests. + /// + public partial class AmazonQueryCompatibleJSONRPC10Request : AmazonWebServiceRequest + { + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/CustomCodeErrorException.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/CustomCodeErrorException.cs new file mode 100644 index 000000000000..d64cb0d0ffed --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/CustomCodeErrorException.cs @@ -0,0 +1,120 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.QueryCompatibleJSONRPC10.Model +{ + /// + /// + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class CustomCodeErrorException : AmazonQueryCompatibleJSONRPC10Exception + { + + /// + /// Constructs a new CustomCodeErrorException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public CustomCodeErrorException(string message) + : base(message) {} + + /// + /// Construct instance of CustomCodeErrorException + /// + /// + /// + public CustomCodeErrorException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of CustomCodeErrorException + /// + /// + public CustomCodeErrorException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of CustomCodeErrorException + /// + /// + /// + /// + /// + /// + /// + public CustomCodeErrorException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of CustomCodeErrorException + /// + /// + /// + /// + /// + /// + public CustomCodeErrorException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the CustomCodeErrorException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected CustomCodeErrorException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/CustomCodeErrorExceptionUnmarshaller.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/CustomCodeErrorExceptionUnmarshaller.cs new file mode 100644 index 000000000000..7a14098f8f5f --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/CustomCodeErrorExceptionUnmarshaller.cs @@ -0,0 +1,114 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.QueryCompatibleJSONRPC10.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Text.Json; +using Amazon.Util; +#pragma warning disable CS0612,CS0618 +namespace Amazon.QueryCompatibleJSONRPC10.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CustomCodeErrorException Object + /// + public class CustomCodeErrorExceptionUnmarshaller : IJsonErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public CustomCodeErrorException Unmarshall(JsonUnmarshallerContext context, ref StreamingUtf8JsonReader reader) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse(), ref reader); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + /// + public CustomCodeErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse, ref StreamingUtf8JsonReader reader) + { + if (context.Stream.Length > 0) + { + context.Read(ref reader); + } + + var errorCode = errorResponse.Code; + var errorType = errorResponse.Type; + var queryHeaderKey = Amazon.Util.HeaderKeys.XAmzQueryError; + if (context.ResponseData.IsHeaderPresent(queryHeaderKey)) + { + var queryError = context.ResponseData.GetHeaderValue(queryHeaderKey); + if (!string.IsNullOrEmpty(queryError) && queryError.Contains(";")) + { + var queryErrorParts = queryError.Split(';'); + if (queryErrorParts.Length == 2) + { + errorCode = queryErrorParts[0]; + var errorTypeString = queryErrorParts[1]; + if (Enum.IsDefined(typeof(ErrorType), errorTypeString)) + { + errorType = (ErrorType) Enum.Parse(typeof(ErrorType), errorTypeString); + } + } + } + } + CustomCodeErrorException unmarshalledObject = new CustomCodeErrorException(errorResponse.Message, errorResponse.InnerException, + errorType, errorCode, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + if (context.Stream.Length > 0) + { + while (context.ReadAtDepth(targetDepth, ref reader)) + { + } + } + + return unmarshalledObject; + } + + private static CustomCodeErrorExceptionUnmarshaller _instance = new CustomCodeErrorExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static CustomCodeErrorExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/NoCustomCodeErrorExceptionUnmarshaller.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/NoCustomCodeErrorExceptionUnmarshaller.cs new file mode 100644 index 000000000000..5616aa9a2f1b --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/NoCustomCodeErrorExceptionUnmarshaller.cs @@ -0,0 +1,114 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.QueryCompatibleJSONRPC10.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Text.Json; +using Amazon.Util; +#pragma warning disable CS0612,CS0618 +namespace Amazon.QueryCompatibleJSONRPC10.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for NoCustomCodeErrorException Object + /// + public class NoCustomCodeErrorExceptionUnmarshaller : IJsonErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public NoCustomCodeErrorException Unmarshall(JsonUnmarshallerContext context, ref StreamingUtf8JsonReader reader) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse(), ref reader); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + /// + public NoCustomCodeErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse, ref StreamingUtf8JsonReader reader) + { + if (context.Stream.Length > 0) + { + context.Read(ref reader); + } + + var errorCode = errorResponse.Code; + var errorType = errorResponse.Type; + var queryHeaderKey = Amazon.Util.HeaderKeys.XAmzQueryError; + if (context.ResponseData.IsHeaderPresent(queryHeaderKey)) + { + var queryError = context.ResponseData.GetHeaderValue(queryHeaderKey); + if (!string.IsNullOrEmpty(queryError) && queryError.Contains(";")) + { + var queryErrorParts = queryError.Split(';'); + if (queryErrorParts.Length == 2) + { + errorCode = queryErrorParts[0]; + var errorTypeString = queryErrorParts[1]; + if (Enum.IsDefined(typeof(ErrorType), errorTypeString)) + { + errorType = (ErrorType) Enum.Parse(typeof(ErrorType), errorTypeString); + } + } + } + } + NoCustomCodeErrorException unmarshalledObject = new NoCustomCodeErrorException(errorResponse.Message, errorResponse.InnerException, + errorType, errorCode, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + if (context.Stream.Length > 0) + { + while (context.ReadAtDepth(targetDepth, ref reader)) + { + } + } + + return unmarshalledObject; + } + + private static NoCustomCodeErrorExceptionUnmarshaller _instance = new NoCustomCodeErrorExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static NoCustomCodeErrorExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryCompatibleOperationRequestMarshaller.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryCompatibleOperationRequestMarshaller.cs new file mode 100644 index 000000000000..069af3453d2b --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryCompatibleOperationRequestMarshaller.cs @@ -0,0 +1,94 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.QueryCompatibleJSONRPC10.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Text.Json; +using System.Buffers; +#if !NETFRAMEWORK +using ThirdParty.RuntimeBackports; +#endif +#pragma warning disable CS0612,CS0618 +namespace Amazon.QueryCompatibleJSONRPC10.Model.Internal.MarshallTransformations +{ + /// + /// QueryCompatibleOperation Request Marshaller + /// + public class QueryCompatibleOperationRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((QueryCompatibleOperationRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(QueryCompatibleOperationRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.QueryCompatibleJSONRPC10"); + string target = "QueryCompatibleJsonRpc10.QueryCompatibleOperation"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-14"; + request.HttpMethod = "POST"; + + request.Headers[Amazon.Util.HeaderKeys.XAmzQueryMode] = "true"; + request.ResourcePath = "/"; + var content = "{}"; + request.Content = System.Text.Encoding.UTF8.GetBytes(content); + + return request; + } + private static QueryCompatibleOperationRequestMarshaller _instance = new QueryCompatibleOperationRequestMarshaller(); + + internal static QueryCompatibleOperationRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static QueryCompatibleOperationRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryCompatibleOperationResponseUnmarshaller.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryCompatibleOperationResponseUnmarshaller.cs new file mode 100644 index 000000000000..9ce9cc33b28c --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/Internal/MarshallTransformations/QueryCompatibleOperationResponseUnmarshaller.cs @@ -0,0 +1,125 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.QueryCompatibleJSONRPC10.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Text.Json; +using Amazon.Util; +#pragma warning disable CS0612,CS0618 +namespace Amazon.QueryCompatibleJSONRPC10.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for QueryCompatibleOperation operation + /// + public class QueryCompatibleOperationResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + QueryCompatibleOperationResponse response = new QueryCompatibleOperationResponse(); + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context, ref reader); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, true, context.ResponseData)) + { + StreamingUtf8JsonReader readerCopy = new StreamingUtf8JsonReader(streamCopy); + if (errorResponse.Code != null && errorResponse.Code.Equals("Customized")) + { + return CustomCodeErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse, ref readerCopy); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("NoCustomCodeError")) + { + return NoCustomCodeErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse, ref readerCopy); + } + } + var errorCode = errorResponse.Code; + var errorType = errorResponse.Type; + var queryHeaderKey = Amazon.Util.HeaderKeys.XAmzQueryError; + if (context.ResponseData.IsHeaderPresent(queryHeaderKey)) + { + var queryError = context.ResponseData.GetHeaderValue(queryHeaderKey); + if (!string.IsNullOrEmpty(queryError) && queryError.Contains(";")) + { + var queryErrorParts = queryError.Split(';'); + if (queryErrorParts.Length == 2) + { + errorCode = queryErrorParts[0]; + var errorTypeString = queryErrorParts[1]; + if (Enum.IsDefined(typeof(ErrorType), errorTypeString)) + { + errorType = (ErrorType) Enum.Parse(typeof(ErrorType), errorTypeString); + } + } + } + } + return new AmazonQueryCompatibleJSONRPC10Exception(errorResponse.Message, errorResponse.InnerException, errorType, errorCode, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static QueryCompatibleOperationResponseUnmarshaller _instance = new QueryCompatibleOperationResponseUnmarshaller(); + + internal static QueryCompatibleOperationResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static QueryCompatibleOperationResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/NoCustomCodeErrorException.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/NoCustomCodeErrorException.cs new file mode 100644 index 000000000000..33c0597bf698 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/NoCustomCodeErrorException.cs @@ -0,0 +1,120 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.QueryCompatibleJSONRPC10.Model +{ + /// + /// + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class NoCustomCodeErrorException : AmazonQueryCompatibleJSONRPC10Exception + { + + /// + /// Constructs a new NoCustomCodeErrorException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public NoCustomCodeErrorException(string message) + : base(message) {} + + /// + /// Construct instance of NoCustomCodeErrorException + /// + /// + /// + public NoCustomCodeErrorException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of NoCustomCodeErrorException + /// + /// + public NoCustomCodeErrorException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of NoCustomCodeErrorException + /// + /// + /// + /// + /// + /// + /// + public NoCustomCodeErrorException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of NoCustomCodeErrorException + /// + /// + /// + /// + /// + /// + public NoCustomCodeErrorException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the NoCustomCodeErrorException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected NoCustomCodeErrorException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/QueryCompatibleOperationRequest.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/QueryCompatibleOperationRequest.cs new file mode 100644 index 000000000000..ff8bbc79cd94 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/QueryCompatibleOperationRequest.cs @@ -0,0 +1,40 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.QueryCompatibleJSONRPC10.Model +{ + /// + /// Container for the parameters to the QueryCompatibleOperation operation. + /// + /// + public partial class QueryCompatibleOperationRequest : AmazonQueryCompatibleJSONRPC10Request + { + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/QueryCompatibleOperationResponse.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/QueryCompatibleOperationResponse.cs new file mode 100644 index 000000000000..a77959c6655c --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/Model/QueryCompatibleOperationResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.QueryCompatibleJSONRPC10.Model +{ + /// + /// This is the response object from the QueryCompatibleOperation operation. + /// + public partial class QueryCompatibleOperationResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/ServiceEnumerations.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/ServiceEnumerations.cs new file mode 100644 index 000000000000..a5c710c4f7ae --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/ServiceEnumerations.cs @@ -0,0 +1,26 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + +using System; + +using Amazon.Runtime; + +namespace Amazon.QueryCompatibleJSONRPC10 +{ +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_bcl/AmazonQueryCompatibleJSONRPC10Client.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_bcl/AmazonQueryCompatibleJSONRPC10Client.cs new file mode 100644 index 000000000000..ee0f66ef786a --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_bcl/AmazonQueryCompatibleJSONRPC10Client.cs @@ -0,0 +1,298 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + + +using System; +using System.Runtime.ExceptionServices; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; +using System.Net; + +using Amazon.QueryCompatibleJSONRPC10.Model; +using Amazon.QueryCompatibleJSONRPC10.Model.Internal.MarshallTransformations; +using Amazon.QueryCompatibleJSONRPC10.Internal; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Endpoints; + +#pragma warning disable CS1570 +namespace Amazon.QueryCompatibleJSONRPC10 +{ + /// + /// Implementation for accessing QueryCompatibleJSONRPC10 + /// + /// + /// + public partial class AmazonQueryCompatibleJSONRPC10Client : AmazonServiceClient, IAmazonQueryCompatibleJSONRPC10 + { + private static IServiceMetadata serviceMetadata = new AmazonQueryCompatibleJSONRPC10Metadata(); + #region Constructors + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + public AmazonQueryCompatibleJSONRPC10Client() + : base(new AmazonQueryCompatibleJSONRPC10Config()) { } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The region to connect. + public AmazonQueryCompatibleJSONRPC10Client(RegionEndpoint region) + : base(new AmazonQueryCompatibleJSONRPC10Config{RegionEndpoint = region}) { } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The AmazonQueryCompatibleJSONRPC10Client Configuration Object + public AmazonQueryCompatibleJSONRPC10Client(AmazonQueryCompatibleJSONRPC10Config config) + : base(config) { } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Credentials + /// + /// AWS Credentials + public AmazonQueryCompatibleJSONRPC10Client(AWSCredentials credentials) + : this(credentials, new AmazonQueryCompatibleJSONRPC10Config()) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Credentials + /// + /// AWS Credentials + /// The region to connect. + public AmazonQueryCompatibleJSONRPC10Client(AWSCredentials credentials, RegionEndpoint region) + : this(credentials, new AmazonQueryCompatibleJSONRPC10Config{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Credentials and an + /// AmazonQueryCompatibleJSONRPC10Client Configuration object. + /// + /// AWS Credentials + /// The AmazonQueryCompatibleJSONRPC10Client Configuration Object + public AmazonQueryCompatibleJSONRPC10Client(AWSCredentials credentials, AmazonQueryCompatibleJSONRPC10Config clientConfig) + : base(credentials, clientConfig) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonQueryCompatibleJSONRPC10Config()) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The region to connect. + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonQueryCompatibleJSONRPC10Config() {RegionEndpoint=region}) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID, AWS Secret Key and an + /// AmazonQueryCompatibleJSONRPC10Client Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The AmazonQueryCompatibleJSONRPC10Client Configuration Object + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, AmazonQueryCompatibleJSONRPC10Config clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonQueryCompatibleJSONRPC10Config()) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The region to connect. + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonQueryCompatibleJSONRPC10Config{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID, AWS Secret Key and an + /// AmazonQueryCompatibleJSONRPC10Client Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The AmazonQueryCompatibleJSONRPC10Client Configuration Object + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonQueryCompatibleJSONRPC10Config clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) + { + } + + #endregion + + #region Overrides + + /// + /// Customize the pipeline + /// + /// + protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) + { + pipeline.AddHandlerAfter(new AmazonQueryCompatibleJSONRPC10AuthSchemeHandler()); + } + + /// + /// Capture metadata for the service. + /// + protected override IServiceMetadata ServiceMetadata + { + get + { + return serviceMetadata; + } + } + + #endregion + + #region Dispose + + /// + /// Disposes the service client. + /// + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + } + + #endregion + + + #region QueryCompatibleOperation + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryCompatibleOperation service method. + /// + /// The response from the QueryCompatibleOperation service method, as returned by QueryCompatibleJSONRPC10. + /// + /// + /// + /// + /// + /// + /// REST API Reference for QueryCompatibleOperation Operation + public virtual QueryCompatibleOperationResponse QueryCompatibleOperation(QueryCompatibleOperationRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = QueryCompatibleOperationRequestMarshaller.Instance; + options.ResponseUnmarshaller = QueryCompatibleOperationResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryCompatibleOperation service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the QueryCompatibleOperation service method, as returned by QueryCompatibleJSONRPC10. + /// + /// + /// + /// + /// + /// + /// REST API Reference for QueryCompatibleOperation Operation + public virtual Task QueryCompatibleOperationAsync(QueryCompatibleOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = QueryCompatibleOperationRequestMarshaller.Instance; + options.ResponseUnmarshaller = QueryCompatibleOperationResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_bcl/IAmazonQueryCompatibleJSONRPC10.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_bcl/IAmazonQueryCompatibleJSONRPC10.cs new file mode 100644 index 000000000000..3e24d4ebf61c --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_bcl/IAmazonQueryCompatibleJSONRPC10.cs @@ -0,0 +1,83 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + + +using System; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; + +using Amazon.Runtime; +using Amazon.QueryCompatibleJSONRPC10.Model; + +#pragma warning disable CS1570 +namespace Amazon.QueryCompatibleJSONRPC10 +{ + /// + /// Interface for accessing QueryCompatibleJSONRPC10 + /// + /// + /// + public partial interface IAmazonQueryCompatibleJSONRPC10 : IAmazonService, IDisposable + { + + + + #region QueryCompatibleOperation + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryCompatibleOperation service method. + /// + /// The response from the QueryCompatibleOperation service method, as returned by QueryCompatibleJSONRPC10. + /// + /// + /// + /// + /// + /// + /// REST API Reference for QueryCompatibleOperation Operation + QueryCompatibleOperationResponse QueryCompatibleOperation(QueryCompatibleOperationRequest request); + + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryCompatibleOperation service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the QueryCompatibleOperation service method, as returned by QueryCompatibleJSONRPC10. + /// + /// + /// + /// + /// + /// + /// REST API Reference for QueryCompatibleOperation Operation + Task QueryCompatibleOperationAsync(QueryCompatibleOperationRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_netstandard/AmazonQueryCompatibleJSONRPC10Client.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_netstandard/AmazonQueryCompatibleJSONRPC10Client.cs new file mode 100644 index 000000000000..d200b32a9dec --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_netstandard/AmazonQueryCompatibleJSONRPC10Client.cs @@ -0,0 +1,286 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + + +using System; +using System.Runtime.ExceptionServices; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; +using System.Net; + +using Amazon.QueryCompatibleJSONRPC10.Model; +using Amazon.QueryCompatibleJSONRPC10.Model.Internal.MarshallTransformations; +using Amazon.QueryCompatibleJSONRPC10.Internal; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Endpoints; + +#pragma warning disable CS1570 +namespace Amazon.QueryCompatibleJSONRPC10 +{ + /// + /// Implementation for accessing QueryCompatibleJSONRPC10 + /// + /// + /// + public partial class AmazonQueryCompatibleJSONRPC10Client : AmazonServiceClient, IAmazonQueryCompatibleJSONRPC10 + { + private static IServiceMetadata serviceMetadata = new AmazonQueryCompatibleJSONRPC10Metadata(); + + #region Constructors + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + public AmazonQueryCompatibleJSONRPC10Client() + : base(new AmazonQueryCompatibleJSONRPC10Config()) { } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The region to connect. + public AmazonQueryCompatibleJSONRPC10Client(RegionEndpoint region) + : base(new AmazonQueryCompatibleJSONRPC10Config{RegionEndpoint = region}) { } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The AmazonQueryCompatibleJSONRPC10Client Configuration Object + public AmazonQueryCompatibleJSONRPC10Client(AmazonQueryCompatibleJSONRPC10Config config) + : base(config) { } + + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Credentials + /// + /// AWS Credentials + public AmazonQueryCompatibleJSONRPC10Client(AWSCredentials credentials) + : this(credentials, new AmazonQueryCompatibleJSONRPC10Config()) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Credentials + /// + /// AWS Credentials + /// The region to connect. + public AmazonQueryCompatibleJSONRPC10Client(AWSCredentials credentials, RegionEndpoint region) + : this(credentials, new AmazonQueryCompatibleJSONRPC10Config{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Credentials and an + /// AmazonQueryCompatibleJSONRPC10Client Configuration object. + /// + /// AWS Credentials + /// The AmazonQueryCompatibleJSONRPC10Client Configuration Object + public AmazonQueryCompatibleJSONRPC10Client(AWSCredentials credentials, AmazonQueryCompatibleJSONRPC10Config clientConfig) + : base(credentials, clientConfig) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonQueryCompatibleJSONRPC10Config()) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The region to connect. + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonQueryCompatibleJSONRPC10Config() {RegionEndpoint=region}) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID, AWS Secret Key and an + /// AmazonQueryCompatibleJSONRPC10Client Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The AmazonQueryCompatibleJSONRPC10Client Configuration Object + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, AmazonQueryCompatibleJSONRPC10Config clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonQueryCompatibleJSONRPC10Config()) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The region to connect. + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonQueryCompatibleJSONRPC10Config{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonQueryCompatibleJSONRPC10Client with AWS Access Key ID, AWS Secret Key and an + /// AmazonQueryCompatibleJSONRPC10Client Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The AmazonQueryCompatibleJSONRPC10Client Configuration Object + public AmazonQueryCompatibleJSONRPC10Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonQueryCompatibleJSONRPC10Config clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) + { + } + + #endregion + + #region Overrides + + /// + /// Customizes the runtime pipeline. + /// + /// Runtime pipeline for the current client. + protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) + { + pipeline.AddHandlerAfter(new AmazonQueryCompatibleJSONRPC10AuthSchemeHandler()); + } + + /// + /// Capture metadata for the service. + /// + protected override IServiceMetadata ServiceMetadata + { + get + { + return serviceMetadata; + } + } + + #endregion + + #region Dispose + + /// + /// Disposes the service client. + /// + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + } + + #endregion + + + #region QueryCompatibleOperation + + internal virtual QueryCompatibleOperationResponse QueryCompatibleOperation(QueryCompatibleOperationRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = QueryCompatibleOperationRequestMarshaller.Instance; + options.ResponseUnmarshaller = QueryCompatibleOperationResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryCompatibleOperation service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the QueryCompatibleOperation service method, as returned by QueryCompatibleJSONRPC10. + /// + /// + /// + /// + /// + /// + /// REST API Reference for QueryCompatibleOperation Operation + public virtual Task QueryCompatibleOperationAsync(QueryCompatibleOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = QueryCompatibleOperationRequestMarshaller.Instance; + options.ResponseUnmarshaller = QueryCompatibleOperationResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + #endregion + + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_netstandard/IAmazonQueryCompatibleJSONRPC10.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_netstandard/IAmazonQueryCompatibleJSONRPC10.cs new file mode 100644 index 000000000000..6e4a4ce7bd53 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Generated/_netstandard/IAmazonQueryCompatibleJSONRPC10.cs @@ -0,0 +1,93 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the query-compatible-json-rpc-10-2020-07-14.normal.json service model. + */ + + +using System; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; + +using Amazon.Runtime; +using Amazon.QueryCompatibleJSONRPC10.Model; + +#pragma warning disable CS1570 +namespace Amazon.QueryCompatibleJSONRPC10 +{ + /// + /// Interface for accessing QueryCompatibleJSONRPC10 + /// + /// + /// + public partial interface IAmazonQueryCompatibleJSONRPC10 : IAmazonService, IDisposable + { + + #region QueryCompatibleOperation + + + + /// + /// + /// + /// Container for the necessary parameters to execute the QueryCompatibleOperation service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the QueryCompatibleOperation service method, as returned by QueryCompatibleJSONRPC10. + /// + /// + /// + /// + /// + /// + /// REST API Reference for QueryCompatibleOperation Operation + Task QueryCompatibleOperationAsync(QueryCompatibleOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region Static factory interface methods +#if NET8_0_OR_GREATER +// Warning CA1033 is issued when the child types can not call the method defined in parent types. +// In this use case the intended caller is only meant to be the interface as a factory +// method to create the child types. Given the SDK use case the warning can be ignored. +#pragma warning disable CA1033 + /// + [System.Diagnostics.CodeAnalysis.DynamicDependency(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties, typeof(AmazonQueryCompatibleJSONRPC10Config))] + static ClientConfig IAmazonService.CreateDefaultClientConfig() => new AmazonQueryCompatibleJSONRPC10Config(); + + /// + [System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AssemblyLoadTrimming", "IL2026:RequiresUnreferencedCode", + Justification = "This suppression is here to ignore the warnings caused by CognitoSync. See justification in IAmazonService.")] + static IAmazonService IAmazonService.CreateDefaultServiceClient(AWSCredentials awsCredentials, ClientConfig clientConfig) + { + var serviceClientConfig = clientConfig as AmazonQueryCompatibleJSONRPC10Config; + if (serviceClientConfig == null) + { + throw new AmazonClientException("ClientConfig is not of type AmazonQueryCompatibleJSONRPC10Config to create AmazonQueryCompatibleJSONRPC10Client"); + } + + return awsCredentials == null ? + new AmazonQueryCompatibleJSONRPC10Client(serviceClientConfig) : + new AmazonQueryCompatibleJSONRPC10Client(awsCredentials, serviceClientConfig); + } +#pragma warning restore CA1033 +#endif + #endregion + } +} \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/Properties/AssemblyInfo.cs b/sdk/test/Services/QueryCompatibleJSONRPC10/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..0035957661ff --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/Properties/AssemblyInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AWSSDK.QueryCompatibleJSONRPC10")] +#if BCL +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.7.2) - Query Compatible Json 1.0 Protocol Service. query-compatible test service")] +#elif NETSTANDARD20 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Query Compatible Json 1.0 Protocol Service. query-compatible test service")] +#elif NETCOREAPP3_1 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Query Compatible Json 1.0 Protocol Service. query-compatible test service")] +#elif NET8_0 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET 8.0) - Query Compatible Json 1.0 Protocol Service. query-compatible test service")] +#else +#error Unknown platform constant - unable to set correct AssemblyDescription +#endif + +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] +[assembly: AssemblyCompany("Amazon.com, Inc")] +[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("4.0")] +[assembly: AssemblyFileVersion("4.0")] \ No newline at end of file diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/QueryCompatibleJSONRPC10.sln b/sdk/test/Services/QueryCompatibleJSONRPC10/QueryCompatibleJSONRPC10.sln new file mode 100644 index 000000000000..d04a97a1dda2 --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/QueryCompatibleJSONRPC10.sln @@ -0,0 +1,36 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.QueryCompatibleJSONRPC10.NetFramework", "AWSSDK.QueryCompatibleJSONRPC10.NetFramework.csproj", "{E15D0BB6-6F85-CB19-8674-BE45DABB407C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.QueryCompatibleJSONRPC10.NetStandard", "AWSSDK.QueryCompatibleJSONRPC10.NetStandard.csproj", "{40DC5D17-6CDA-97B1-6B3E-207CD10BABCE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.UnitTests.QueryCompatibleJSONRPC10.NetFramework", "UnitTests\AWSSDK.UnitTests.QueryCompatibleJSONRPC10.NetFramework.csproj", "{FD00848F-F103-EC87-2798-FCA9F0F63AA1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E15D0BB6-6F85-CB19-8674-BE45DABB407C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E15D0BB6-6F85-CB19-8674-BE45DABB407C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E15D0BB6-6F85-CB19-8674-BE45DABB407C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E15D0BB6-6F85-CB19-8674-BE45DABB407C}.Release|Any CPU.Build.0 = Release|Any CPU + {40DC5D17-6CDA-97B1-6B3E-207CD10BABCE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {40DC5D17-6CDA-97B1-6B3E-207CD10BABCE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {40DC5D17-6CDA-97B1-6B3E-207CD10BABCE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {40DC5D17-6CDA-97B1-6B3E-207CD10BABCE}.Release|Any CPU.Build.0 = Release|Any CPU + {FD00848F-F103-EC87-2798-FCA9F0F63AA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FD00848F-F103-EC87-2798-FCA9F0F63AA1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD00848F-F103-EC87-2798-FCA9F0F63AA1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FD00848F-F103-EC87-2798-FCA9F0F63AA1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {96214732-9218-4765-BE66-5FDD75AF5470} + EndGlobalSection +EndGlobal diff --git a/sdk/test/Services/QueryCompatibleJSONRPC10/UnitTests/AWSSDK.UnitTests.QueryCompatibleJSONRPC10.NetFramework.csproj b/sdk/test/Services/QueryCompatibleJSONRPC10/UnitTests/AWSSDK.UnitTests.QueryCompatibleJSONRPC10.NetFramework.csproj new file mode 100644 index 000000000000..19641699ec8d --- /dev/null +++ b/sdk/test/Services/QueryCompatibleJSONRPC10/UnitTests/AWSSDK.UnitTests.QueryCompatibleJSONRPC10.NetFramework.csproj @@ -0,0 +1,79 @@ + + + true + net472 + $(DefineConstants);TRACE;BCL;ASYNC_AWAIT;DEBUG + portable + true + AWSSDK.UnitTests.QueryCompatibleJSONRPC10.NetFramework + AWSSDK.UnitTests.QueryCompatibleJSONRPC10.NetFramework + + false + false + false + false + false + false + false + false + true + true + + CS1591,CS0612,CS0618 + + + true + + + + 11.0 + + + 9.0 + + + + + ../../../../awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/test/Services/RestJsonProtocol/Generated/Model/HttpEmptyPrefixHeadersRequest.cs b/sdk/test/Services/RestJsonProtocol/Generated/Model/HttpEmptyPrefixHeadersRequest.cs new file mode 100644 index 000000000000..6c2b9ae4cbed --- /dev/null +++ b/sdk/test/Services/RestJsonProtocol/Generated/Model/HttpEmptyPrefixHeadersRequest.cs @@ -0,0 +1,77 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the rest-json-protocol-2019-12-16.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.RestJsonProtocol.Model +{ + /// + /// Container for the parameters to the HttpEmptyPrefixHeaders operation. + /// Clients that perform this test extract all headers from the response. + /// + public partial class HttpEmptyPrefixHeadersRequest : AmazonRestJsonProtocolRequest + { + private Dictionary _prefixHeaders = AWSConfigs.InitializeCollections ? new Dictionary() : null; + private string _specificHeader; + + /// + /// Gets and sets the property PrefixHeaders. + /// + /// Starting with version 4 of the SDK this property will default to null. If no data for this property is returned + /// from the service the property will also be null. This was changed to improve performance and allow the SDK and caller + /// to distinguish between a property not set or a property being empty to clear out a value. To retain the previous + /// SDK behavior set the AWSConfigs.InitializeCollections static property to true. + /// + public Dictionary PrefixHeaders + { + get { return this._prefixHeaders; } + set { this._prefixHeaders = value; } + } + + // Check to see if PrefixHeaders property is set + internal bool IsSetPrefixHeaders() + { + return this._prefixHeaders != null && (this._prefixHeaders.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property SpecificHeader. + /// + public string SpecificHeader + { + get { return this._specificHeader; } + set { this._specificHeader = value; } + } + + // Check to see if SpecificHeader property is set + internal bool IsSetSpecificHeader() + { + return this._specificHeader != null; + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/RestJsonProtocol/Generated/Model/HttpEmptyPrefixHeadersResponse.cs b/sdk/test/Services/RestJsonProtocol/Generated/Model/HttpEmptyPrefixHeadersResponse.cs new file mode 100644 index 000000000000..1b34637998ad --- /dev/null +++ b/sdk/test/Services/RestJsonProtocol/Generated/Model/HttpEmptyPrefixHeadersResponse.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the rest-json-protocol-2019-12-16.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.RestJsonProtocol.Model +{ + /// + /// This is the response object from the HttpEmptyPrefixHeaders operation. + /// + public partial class HttpEmptyPrefixHeadersResponse : AmazonWebServiceResponse + { + private Dictionary _prefixHeaders = AWSConfigs.InitializeCollections ? new Dictionary() : null; + private string _specificHeader; + + /// + /// Gets and sets the property PrefixHeaders. + /// + /// Starting with version 4 of the SDK this property will default to null. If no data for this property is returned + /// from the service the property will also be null. This was changed to improve performance and allow the SDK and caller + /// to distinguish between a property not set or a property being empty to clear out a value. To retain the previous + /// SDK behavior set the AWSConfigs.InitializeCollections static property to true. + /// + public Dictionary PrefixHeaders + { + get { return this._prefixHeaders; } + set { this._prefixHeaders = value; } + } + + // Check to see if PrefixHeaders property is set + internal bool IsSetPrefixHeaders() + { + return this._prefixHeaders != null && (this._prefixHeaders.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property SpecificHeader. + /// + public string SpecificHeader + { + get { return this._specificHeader; } + set { this._specificHeader = value; } + } + + // Check to see if SpecificHeader property is set + internal bool IsSetSpecificHeader() + { + return this._specificHeader != null; + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/DocumentTypeAsPayloadResponseUnmarshaller.cs b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/DocumentTypeAsPayloadResponseUnmarshaller.cs index 2e8263cfea00..f5930aa98e54 100644 --- a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/DocumentTypeAsPayloadResponseUnmarshaller.cs +++ b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/DocumentTypeAsPayloadResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { DocumentTypeAsPayloadResponse response = new DocumentTypeAsPayloadResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = Amazon.Runtime.Documents.Internal.Transform.DocumentUnmarshaller.Instance; response.DocumentValue = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersRequestMarshaller.cs b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersRequestMarshaller.cs new file mode 100644 index 000000000000..26e68987865b --- /dev/null +++ b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersRequestMarshaller.cs @@ -0,0 +1,102 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the rest-json-protocol-2019-12-16.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.RestJsonProtocol.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Text.Json; +using System.Buffers; +#if !NETFRAMEWORK +using ThirdParty.RuntimeBackports; +#endif +#pragma warning disable CS0612,CS0618 +namespace Amazon.RestJsonProtocol.Model.Internal.MarshallTransformations +{ + /// + /// HttpEmptyPrefixHeaders Request Marshaller + /// + public class HttpEmptyPrefixHeadersRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((HttpEmptyPrefixHeadersRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(HttpEmptyPrefixHeadersRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.RestJsonProtocol"); + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-12-16"; + request.HttpMethod = "GET"; + + request.ResourcePath = "/HttpEmptyPrefixHeaders"; + + if (publicRequest.IsSetPrefixHeaders()) + { + //Map of headers with prefix "". + foreach (var kvpPrefixHeaders in publicRequest.PrefixHeaders) + { + request.Headers[$"{kvpPrefixHeaders.Key}"] = kvpPrefixHeaders.Value; + } + } + + if (publicRequest.IsSetSpecificHeader()) + { + request.Headers["hello"] = publicRequest.SpecificHeader; + } + + return request; + } + private static HttpEmptyPrefixHeadersRequestMarshaller _instance = new HttpEmptyPrefixHeadersRequestMarshaller(); + + internal static HttpEmptyPrefixHeadersRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static HttpEmptyPrefixHeadersRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersResponseUnmarshaller.cs b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersResponseUnmarshaller.cs new file mode 100644 index 000000000000..bcda3134a3d0 --- /dev/null +++ b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersResponseUnmarshaller.cs @@ -0,0 +1,118 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the rest-json-protocol-2019-12-16.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.RestJsonProtocol.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Text.Json; +using Amazon.Util; +#pragma warning disable CS0612,CS0618 +namespace Amazon.RestJsonProtocol.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for HttpEmptyPrefixHeaders operation + /// + public class HttpEmptyPrefixHeadersResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + HttpEmptyPrefixHeadersResponse response = new HttpEmptyPrefixHeadersResponse(); + //Map of headers with prefix "". + var headersForPrefixHeaders = new Dictionary(); + foreach (var namePrefixHeaders in context.ResponseData.GetHeaderNames()) + { + var keyToUse = namePrefixHeaders; + if("".Length > 0 && keyToUse.StartsWith("")) { + keyToUse = keyToUse.Substring("".Length); + } + + if (context.ResponseData.IsHeaderPresent($"{keyToUse}")) + { + headersForPrefixHeaders.Add( + keyToUse, + context.ResponseData.GetHeaderValue($"{keyToUse}") + ); + } + } + if(headersForPrefixHeaders.Count > 0) + response.PrefixHeaders = headersForPrefixHeaders; + if (context.ResponseData.IsHeaderPresent("hello")) + response.SpecificHeader = context.ResponseData.GetHeaderValue("hello"); + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context, ref reader); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, context.ResponseData)) + { + StreamingUtf8JsonReader readerCopy = new StreamingUtf8JsonReader(streamCopy); + } + return new AmazonRestJsonProtocolException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static HttpEmptyPrefixHeadersResponseUnmarshaller _instance = new HttpEmptyPrefixHeadersResponseUnmarshaller(); + + internal static HttpEmptyPrefixHeadersResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static HttpEmptyPrefixHeadersResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpPayloadWithStructureResponseUnmarshaller.cs b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpPayloadWithStructureResponseUnmarshaller.cs index 5ba592245649..9155e1e91a16 100644 --- a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpPayloadWithStructureResponseUnmarshaller.cs +++ b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpPayloadWithStructureResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { HttpPayloadWithStructureResponse response = new HttpPayloadWithStructureResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = NestedPayloadUnmarshaller.Instance; response.Nested = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpPayloadWithUnionResponseUnmarshaller.cs b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpPayloadWithUnionResponseUnmarshaller.cs index d5a6192b9540..94f00ff5b587 100644 --- a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpPayloadWithUnionResponseUnmarshaller.cs +++ b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/HttpPayloadWithUnionResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { HttpPayloadWithUnionResponse response = new HttpPayloadWithUnionResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = UnionPayloadUnmarshaller.Instance; response.Nested = unmarshaller.Unmarshall(context, ref reader); diff --git a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/TestPayloadStructureResponseUnmarshaller.cs b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/TestPayloadStructureResponseUnmarshaller.cs index d26b36489942..868cbfa16a38 100644 --- a/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/TestPayloadStructureResponseUnmarshaller.cs +++ b/sdk/test/Services/RestJsonProtocol/Generated/Model/Internal/MarshallTransformations/TestPayloadStructureResponseUnmarshaller.cs @@ -48,6 +48,7 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont { TestPayloadStructureResponse response = new TestPayloadStructureResponse(); StreamingUtf8JsonReader reader = new StreamingUtf8JsonReader(context.Stream); + if (reader.Reader.IsFinalBlock) return response; var unmarshaller = PayloadConfigUnmarshaller.Instance; response.PayloadConfig = unmarshaller.Unmarshall(context, ref reader); if (context.ResponseData.IsHeaderPresent("x-amz-test-id")) diff --git a/sdk/test/Services/RestJsonProtocol/Generated/_bcl/AmazonRestJsonProtocolClient.cs b/sdk/test/Services/RestJsonProtocol/Generated/_bcl/AmazonRestJsonProtocolClient.cs index a45a8373a503..f4e5945c0740 100644 --- a/sdk/test/Services/RestJsonProtocol/Generated/_bcl/AmazonRestJsonProtocolClient.cs +++ b/sdk/test/Services/RestJsonProtocol/Generated/_bcl/AmazonRestJsonProtocolClient.cs @@ -908,6 +908,47 @@ public virtual HttpChecksumRequiredResponse HttpChecksumRequired(HttpChecksumReq #endregion + #region HttpEmptyPrefixHeaders + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestJsonProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + public virtual HttpEmptyPrefixHeadersResponse HttpEmptyPrefixHeaders(HttpEmptyPrefixHeadersRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = HttpEmptyPrefixHeadersRequestMarshaller.Instance; + options.ResponseUnmarshaller = HttpEmptyPrefixHeadersResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestJsonProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + public virtual Task HttpEmptyPrefixHeadersAsync(HttpEmptyPrefixHeadersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = HttpEmptyPrefixHeadersRequestMarshaller.Instance; + options.ResponseUnmarshaller = HttpEmptyPrefixHeadersResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + #region HttpEnumPayload diff --git a/sdk/test/Services/RestJsonProtocol/Generated/_bcl/IAmazonRestJsonProtocol.cs b/sdk/test/Services/RestJsonProtocol/Generated/_bcl/IAmazonRestJsonProtocol.cs index 82b1f6dbad8c..119a3a8d2096 100644 --- a/sdk/test/Services/RestJsonProtocol/Generated/_bcl/IAmazonRestJsonProtocol.cs +++ b/sdk/test/Services/RestJsonProtocol/Generated/_bcl/IAmazonRestJsonProtocol.cs @@ -511,6 +511,34 @@ public partial interface IAmazonRestJsonProtocol : IAmazonService, IDisposable #endregion + #region HttpEmptyPrefixHeaders + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestJsonProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + HttpEmptyPrefixHeadersResponse HttpEmptyPrefixHeaders(HttpEmptyPrefixHeadersRequest request); + + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestJsonProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + Task HttpEmptyPrefixHeadersAsync(HttpEmptyPrefixHeadersRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region HttpEnumPayload diff --git a/sdk/test/Services/RestJsonProtocol/Generated/_netstandard/AmazonRestJsonProtocolClient.cs b/sdk/test/Services/RestJsonProtocol/Generated/_netstandard/AmazonRestJsonProtocolClient.cs index 7ef5599fe090..3faf4f13b4ab 100644 --- a/sdk/test/Services/RestJsonProtocol/Generated/_netstandard/AmazonRestJsonProtocolClient.cs +++ b/sdk/test/Services/RestJsonProtocol/Generated/_netstandard/AmazonRestJsonProtocolClient.cs @@ -764,6 +764,39 @@ internal virtual HttpChecksumRequiredResponse HttpChecksumRequired(HttpChecksumR } #endregion + #region HttpEmptyPrefixHeaders + + internal virtual HttpEmptyPrefixHeadersResponse HttpEmptyPrefixHeaders(HttpEmptyPrefixHeadersRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = HttpEmptyPrefixHeadersRequestMarshaller.Instance; + options.ResponseUnmarshaller = HttpEmptyPrefixHeadersResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestJsonProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + public virtual Task HttpEmptyPrefixHeadersAsync(HttpEmptyPrefixHeadersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = HttpEmptyPrefixHeadersRequestMarshaller.Instance; + options.ResponseUnmarshaller = HttpEmptyPrefixHeadersResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + #endregion + #region HttpEnumPayload internal virtual HttpEnumPayloadResponse HttpEnumPayload(HttpEnumPayloadRequest request) diff --git a/sdk/test/Services/RestJsonProtocol/Generated/_netstandard/IAmazonRestJsonProtocol.cs b/sdk/test/Services/RestJsonProtocol/Generated/_netstandard/IAmazonRestJsonProtocol.cs index 6eb4ecb68632..91546b6fa68c 100644 --- a/sdk/test/Services/RestJsonProtocol/Generated/_netstandard/IAmazonRestJsonProtocol.cs +++ b/sdk/test/Services/RestJsonProtocol/Generated/_netstandard/IAmazonRestJsonProtocol.cs @@ -333,6 +333,24 @@ public partial interface IAmazonRestJsonProtocol : IAmazonService, IDisposable #endregion + #region HttpEmptyPrefixHeaders + + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestJsonProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + Task HttpEmptyPrefixHeadersAsync(HttpEmptyPrefixHeadersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region HttpEnumPayload diff --git a/sdk/test/Services/RestXmlProtocol/Generated/Model/HttpEmptyPrefixHeadersRequest.cs b/sdk/test/Services/RestXmlProtocol/Generated/Model/HttpEmptyPrefixHeadersRequest.cs new file mode 100644 index 000000000000..4cec2b5432e8 --- /dev/null +++ b/sdk/test/Services/RestXmlProtocol/Generated/Model/HttpEmptyPrefixHeadersRequest.cs @@ -0,0 +1,77 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the rest-xml-protocol-2019-12-16.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.RestXmlProtocol.Model +{ + /// + /// Container for the parameters to the HttpEmptyPrefixHeaders operation. + /// Clients that perform this test extract all headers from the response. + /// + public partial class HttpEmptyPrefixHeadersRequest : AmazonRestXmlProtocolRequest + { + private Dictionary _prefixHeaders = AWSConfigs.InitializeCollections ? new Dictionary() : null; + private string _specificHeader; + + /// + /// Gets and sets the property PrefixHeaders. + /// + /// Starting with version 4 of the SDK this property will default to null. If no data for this property is returned + /// from the service the property will also be null. This was changed to improve performance and allow the SDK and caller + /// to distinguish between a property not set or a property being empty to clear out a value. To retain the previous + /// SDK behavior set the AWSConfigs.InitializeCollections static property to true. + /// + public Dictionary PrefixHeaders + { + get { return this._prefixHeaders; } + set { this._prefixHeaders = value; } + } + + // Check to see if PrefixHeaders property is set + internal bool IsSetPrefixHeaders() + { + return this._prefixHeaders != null && (this._prefixHeaders.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property SpecificHeader. + /// + public string SpecificHeader + { + get { return this._specificHeader; } + set { this._specificHeader = value; } + } + + // Check to see if SpecificHeader property is set + internal bool IsSetSpecificHeader() + { + return this._specificHeader != null; + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/RestXmlProtocol/Generated/Model/HttpEmptyPrefixHeadersResponse.cs b/sdk/test/Services/RestXmlProtocol/Generated/Model/HttpEmptyPrefixHeadersResponse.cs new file mode 100644 index 000000000000..f9296151fc11 --- /dev/null +++ b/sdk/test/Services/RestXmlProtocol/Generated/Model/HttpEmptyPrefixHeadersResponse.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the rest-xml-protocol-2019-12-16.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.RestXmlProtocol.Model +{ + /// + /// This is the response object from the HttpEmptyPrefixHeaders operation. + /// + public partial class HttpEmptyPrefixHeadersResponse : AmazonWebServiceResponse + { + private Dictionary _prefixHeaders = AWSConfigs.InitializeCollections ? new Dictionary() : null; + private string _specificHeader; + + /// + /// Gets and sets the property PrefixHeaders. + /// + /// Starting with version 4 of the SDK this property will default to null. If no data for this property is returned + /// from the service the property will also be null. This was changed to improve performance and allow the SDK and caller + /// to distinguish between a property not set or a property being empty to clear out a value. To retain the previous + /// SDK behavior set the AWSConfigs.InitializeCollections static property to true. + /// + public Dictionary PrefixHeaders + { + get { return this._prefixHeaders; } + set { this._prefixHeaders = value; } + } + + // Check to see if PrefixHeaders property is set + internal bool IsSetPrefixHeaders() + { + return this._prefixHeaders != null && (this._prefixHeaders.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property SpecificHeader. + /// + public string SpecificHeader + { + get { return this._specificHeader; } + set { this._specificHeader = value; } + } + + // Check to see if SpecificHeader property is set + internal bool IsSetSpecificHeader() + { + return this._specificHeader != null; + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersRequestMarshaller.cs b/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersRequestMarshaller.cs new file mode 100644 index 000000000000..3051ed7e5655 --- /dev/null +++ b/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersRequestMarshaller.cs @@ -0,0 +1,100 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the rest-xml-protocol-2019-12-16.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.RestXmlProtocol.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Xml; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.RestXmlProtocol.Model.Internal.MarshallTransformations +{ + /// + /// HttpEmptyPrefixHeaders Request Marshaller + /// + public partial class HttpEmptyPrefixHeadersRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((HttpEmptyPrefixHeadersRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(HttpEmptyPrefixHeadersRequest publicRequest) + { + var request = new DefaultRequest(publicRequest, "Amazon.RestXmlProtocol"); + request.HttpMethod = "GET"; + + if (publicRequest.IsSetPrefixHeaders()) + { + //Map of headers with prefix "". + foreach (var kvpPrefixHeaders in publicRequest.PrefixHeaders) + { + request.Headers[$"{kvpPrefixHeaders.Key}"] = kvpPrefixHeaders.Value; + } + } + + if (publicRequest.IsSetSpecificHeader()) + { + request.Headers["hello"] = publicRequest.SpecificHeader; + } + request.ResourcePath = "/HttpEmptyPrefixHeaders"; + + + PostMarshallCustomization(request, publicRequest); + return request; + } + private static HttpEmptyPrefixHeadersRequestMarshaller _instance = new HttpEmptyPrefixHeadersRequestMarshaller(); + + internal static HttpEmptyPrefixHeadersRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static HttpEmptyPrefixHeadersRequestMarshaller Instance + { + get + { + return _instance; + } + } + + partial void PostMarshallCustomization(DefaultRequest defaultRequest, HttpEmptyPrefixHeadersRequest publicRequest); + } +} \ No newline at end of file diff --git a/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersResponseUnmarshaller.cs b/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersResponseUnmarshaller.cs new file mode 100644 index 000000000000..7a20e191b3c6 --- /dev/null +++ b/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/HttpEmptyPrefixHeadersResponseUnmarshaller.cs @@ -0,0 +1,116 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the rest-xml-protocol-2019-12-16.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.RestXmlProtocol.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.RestXmlProtocol.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for HttpEmptyPrefixHeaders operation + /// + public class HttpEmptyPrefixHeadersResponseUnmarshaller : XmlResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) + { + HttpEmptyPrefixHeadersResponse response = new HttpEmptyPrefixHeadersResponse(); + //Map of headers with prefix "". + var headersForPrefixHeaders = new Dictionary(); + foreach (var namePrefixHeaders in context.ResponseData.GetHeaderNames()) + { + var keyToUse = namePrefixHeaders; + if("".Length > 0 && keyToUse.StartsWith("")) { + keyToUse = keyToUse.Substring("".Length); + } + + if (context.ResponseData.IsHeaderPresent($"{keyToUse}")) + { + headersForPrefixHeaders.Add( + keyToUse, + context.ResponseData.GetHeaderValue($"{keyToUse}") + ); + } + } + if(headersForPrefixHeaders.Count > 0) + response.PrefixHeaders = headersForPrefixHeaders; + if (context.ResponseData.IsHeaderPresent("hello")) + response.SpecificHeader = context.ResponseData.GetHeaderValue("hello"); + + return response; + } + + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + ErrorResponse errorResponse = XmlErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) + { + } + return new AmazonRestXmlProtocolException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); + } + + private static HttpEmptyPrefixHeadersResponseUnmarshaller _instance = new HttpEmptyPrefixHeadersResponseUnmarshaller(); + + internal static HttpEmptyPrefixHeadersResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static HttpEmptyPrefixHeadersResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/NestedXmlMapWithXmlNameRequestMarshaller.cs b/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/NestedXmlMapWithXmlNameRequestMarshaller.cs index 4cd9421728d2..1be64ef722fc 100644 --- a/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/NestedXmlMapWithXmlNameRequestMarshaller.cs +++ b/sdk/test/Services/RestXmlProtocol/Generated/Model/Internal/MarshallTransformations/NestedXmlMapWithXmlNameRequestMarshaller.cs @@ -62,7 +62,7 @@ public IRequest Marshall(NestedXmlMapWithXmlNameRequest publicRequest) var stringWriter = new XMLEncodedStringWriter(CultureInfo.InvariantCulture); using (var xmlWriter = XmlWriter.Create(stringWriter, new XmlWriterSettings() { Encoding = System.Text.Encoding.UTF8, OmitXmlDeclaration = true, NewLineHandling = NewLineHandling.Entitize })) { - xmlWriter.WriteStartElement("NestedXmlMapWithXmlNameInputOutput", ""); + xmlWriter.WriteStartElement("NestedXmlMapWithXmlNameRequest", ""); if(publicRequest.IsSetNestedXmlMapWithXmlNameMap()) { xmlWriter.WriteStartElement("nestedXmlMapWithXmlNameMap"); diff --git a/sdk/test/Services/RestXmlProtocol/Generated/_bcl/AmazonRestXmlProtocolClient.cs b/sdk/test/Services/RestXmlProtocol/Generated/_bcl/AmazonRestXmlProtocolClient.cs index e2d0dd339ca4..1c0d449c41e3 100644 --- a/sdk/test/Services/RestXmlProtocol/Generated/_bcl/AmazonRestXmlProtocolClient.cs +++ b/sdk/test/Services/RestXmlProtocol/Generated/_bcl/AmazonRestXmlProtocolClient.cs @@ -900,6 +900,47 @@ public virtual GreetingWithErrorsResponse GreetingWithErrors(GreetingWithErrorsR #endregion + #region HttpEmptyPrefixHeaders + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestXmlProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + public virtual HttpEmptyPrefixHeadersResponse HttpEmptyPrefixHeaders(HttpEmptyPrefixHeadersRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = HttpEmptyPrefixHeadersRequestMarshaller.Instance; + options.ResponseUnmarshaller = HttpEmptyPrefixHeadersResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestXmlProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + public virtual Task HttpEmptyPrefixHeadersAsync(HttpEmptyPrefixHeadersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = HttpEmptyPrefixHeadersRequestMarshaller.Instance; + options.ResponseUnmarshaller = HttpEmptyPrefixHeadersResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + #region HttpEnumPayload diff --git a/sdk/test/Services/RestXmlProtocol/Generated/_bcl/IAmazonRestXmlProtocol.cs b/sdk/test/Services/RestXmlProtocol/Generated/_bcl/IAmazonRestXmlProtocol.cs index febc2a62239d..43c70e266914 100644 --- a/sdk/test/Services/RestXmlProtocol/Generated/_bcl/IAmazonRestXmlProtocol.cs +++ b/sdk/test/Services/RestXmlProtocol/Generated/_bcl/IAmazonRestXmlProtocol.cs @@ -503,6 +503,34 @@ public partial interface IAmazonRestXmlProtocol : IAmazonService, IDisposable #endregion + #region HttpEmptyPrefixHeaders + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestXmlProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + HttpEmptyPrefixHeadersResponse HttpEmptyPrefixHeaders(HttpEmptyPrefixHeadersRequest request); + + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestXmlProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + Task HttpEmptyPrefixHeadersAsync(HttpEmptyPrefixHeadersRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region HttpEnumPayload diff --git a/sdk/test/Services/RestXmlProtocol/Generated/_netstandard/AmazonRestXmlProtocolClient.cs b/sdk/test/Services/RestXmlProtocol/Generated/_netstandard/AmazonRestXmlProtocolClient.cs index edd194294cb3..e10afb9a1168 100644 --- a/sdk/test/Services/RestXmlProtocol/Generated/_netstandard/AmazonRestXmlProtocolClient.cs +++ b/sdk/test/Services/RestXmlProtocol/Generated/_netstandard/AmazonRestXmlProtocolClient.cs @@ -760,6 +760,39 @@ internal virtual GreetingWithErrorsResponse GreetingWithErrors(GreetingWithError } #endregion + #region HttpEmptyPrefixHeaders + + internal virtual HttpEmptyPrefixHeadersResponse HttpEmptyPrefixHeaders(HttpEmptyPrefixHeadersRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = HttpEmptyPrefixHeadersRequestMarshaller.Instance; + options.ResponseUnmarshaller = HttpEmptyPrefixHeadersResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestXmlProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + public virtual Task HttpEmptyPrefixHeadersAsync(HttpEmptyPrefixHeadersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = HttpEmptyPrefixHeadersRequestMarshaller.Instance; + options.ResponseUnmarshaller = HttpEmptyPrefixHeadersResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + #endregion + #region HttpEnumPayload internal virtual HttpEnumPayloadResponse HttpEnumPayload(HttpEnumPayloadRequest request) diff --git a/sdk/test/Services/RestXmlProtocol/Generated/_netstandard/IAmazonRestXmlProtocol.cs b/sdk/test/Services/RestXmlProtocol/Generated/_netstandard/IAmazonRestXmlProtocol.cs index c790244b826d..7f5ee564c13a 100644 --- a/sdk/test/Services/RestXmlProtocol/Generated/_netstandard/IAmazonRestXmlProtocol.cs +++ b/sdk/test/Services/RestXmlProtocol/Generated/_netstandard/IAmazonRestXmlProtocol.cs @@ -329,6 +329,24 @@ public partial interface IAmazonRestXmlProtocol : IAmazonService, IDisposable #endregion + #region HttpEmptyPrefixHeaders + + + + /// + /// Clients that perform this test extract all headers from the response. + /// + /// Container for the necessary parameters to execute the HttpEmptyPrefixHeaders service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the HttpEmptyPrefixHeaders service method, as returned by RestXmlProtocol. + /// REST API Reference for HttpEmptyPrefixHeaders Operation + Task HttpEmptyPrefixHeadersAsync(HttpEmptyPrefixHeadersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region HttpEnumPayload diff --git a/sdk/test/Services/RestXmlProtocolNamespace/Generated/Model/Internal/MarshallTransformations/SimpleScalarPropertiesRequestMarshaller.cs b/sdk/test/Services/RestXmlProtocolNamespace/Generated/Model/Internal/MarshallTransformations/SimpleScalarPropertiesRequestMarshaller.cs index 05fc038c3949..e93108d5bb52 100644 --- a/sdk/test/Services/RestXmlProtocolNamespace/Generated/Model/Internal/MarshallTransformations/SimpleScalarPropertiesRequestMarshaller.cs +++ b/sdk/test/Services/RestXmlProtocolNamespace/Generated/Model/Internal/MarshallTransformations/SimpleScalarPropertiesRequestMarshaller.cs @@ -67,7 +67,7 @@ public IRequest Marshall(SimpleScalarPropertiesRequest publicRequest) var stringWriter = new XMLEncodedStringWriter(CultureInfo.InvariantCulture); using (var xmlWriter = XmlWriter.Create(stringWriter, new XmlWriterSettings() { Encoding = System.Text.Encoding.UTF8, OmitXmlDeclaration = true, NewLineHandling = NewLineHandling.Entitize })) { - xmlWriter.WriteStartElement("SimpleScalarPropertiesInputOutput", "https://example.com"); + xmlWriter.WriteStartElement("SimpleScalarPropertiesRequest", "https://example.com"); if(publicRequest.IsSetByteValue()) xmlWriter.WriteElementString("byteValue", StringUtils.FromInt(publicRequest.ByteValue.Value)); diff --git a/sdk/test/Services/RestXmlProtocolNamespace/Generated/_bcl/AmazonRestXmlProtocolNamespaceClient.cs b/sdk/test/Services/RestXmlProtocolNamespace/Generated/_bcl/AmazonRestXmlProtocolNamespaceClient.cs index 97c9d9a69df4..84c70679e8ec 100644 --- a/sdk/test/Services/RestXmlProtocolNamespace/Generated/_bcl/AmazonRestXmlProtocolNamespaceClient.cs +++ b/sdk/test/Services/RestXmlProtocolNamespace/Generated/_bcl/AmazonRestXmlProtocolNamespaceClient.cs @@ -50,7 +50,7 @@ namespace Amazon.RestXmlProtocolNamespace /// /// /// - /// See https://github.com/awslabs/smithy/issues/616 + /// See https://github.com/smithy-lang/smithy/issues/616 /// ///
public partial class AmazonRestXmlProtocolNamespaceClient : AmazonServiceClient, IAmazonRestXmlProtocolNamespace diff --git a/sdk/test/Services/RestXmlProtocolNamespace/Generated/_bcl/IAmazonRestXmlProtocolNamespace.cs b/sdk/test/Services/RestXmlProtocolNamespace/Generated/_bcl/IAmazonRestXmlProtocolNamespace.cs index 2b44ba2e4757..e6de9e61557e 100644 --- a/sdk/test/Services/RestXmlProtocolNamespace/Generated/_bcl/IAmazonRestXmlProtocolNamespace.cs +++ b/sdk/test/Services/RestXmlProtocolNamespace/Generated/_bcl/IAmazonRestXmlProtocolNamespace.cs @@ -42,7 +42,7 @@ namespace Amazon.RestXmlProtocolNamespace /// /// /// - /// See https://github.com/awslabs/smithy/issues/616 + /// See https://github.com/smithy-lang/smithy/issues/616 /// ///
public partial interface IAmazonRestXmlProtocolNamespace : IAmazonService, IDisposable diff --git a/sdk/test/Services/RestXmlProtocolNamespace/Generated/_netstandard/AmazonRestXmlProtocolNamespaceClient.cs b/sdk/test/Services/RestXmlProtocolNamespace/Generated/_netstandard/AmazonRestXmlProtocolNamespaceClient.cs index efa21a02ea4c..2ea8eedc4f34 100644 --- a/sdk/test/Services/RestXmlProtocolNamespace/Generated/_netstandard/AmazonRestXmlProtocolNamespaceClient.cs +++ b/sdk/test/Services/RestXmlProtocolNamespace/Generated/_netstandard/AmazonRestXmlProtocolNamespaceClient.cs @@ -50,7 +50,7 @@ namespace Amazon.RestXmlProtocolNamespace /// /// /// - /// See https://github.com/awslabs/smithy/issues/616 + /// See https://github.com/smithy-lang/smithy/issues/616 /// /// public partial class AmazonRestXmlProtocolNamespaceClient : AmazonServiceClient, IAmazonRestXmlProtocolNamespace diff --git a/sdk/test/Services/RestXmlProtocolNamespace/Generated/_netstandard/IAmazonRestXmlProtocolNamespace.cs b/sdk/test/Services/RestXmlProtocolNamespace/Generated/_netstandard/IAmazonRestXmlProtocolNamespace.cs index 427b266a3eee..5b2a2336b223 100644 --- a/sdk/test/Services/RestXmlProtocolNamespace/Generated/_netstandard/IAmazonRestXmlProtocolNamespace.cs +++ b/sdk/test/Services/RestXmlProtocolNamespace/Generated/_netstandard/IAmazonRestXmlProtocolNamespace.cs @@ -42,7 +42,7 @@ namespace Amazon.RestXmlProtocolNamespace /// /// /// - /// See https://github.com/awslabs/smithy/issues/616 + /// See https://github.com/smithy-lang/smithy/issues/616 /// /// public partial interface IAmazonRestXmlProtocolNamespace : IAmazonService, IDisposable