diff --git a/extensions/test/NETCore.SetupTests/MockServiceClasses.cs b/extensions/test/NETCore.SetupTests/MockServiceClasses.cs index 9b5bb0d4843e..19aaed5a2fb4 100644 --- a/extensions/test/NETCore.SetupTests/MockServiceClasses.cs +++ b/extensions/test/NETCore.SetupTests/MockServiceClasses.cs @@ -34,11 +34,6 @@ public MockServiceClient(AWSCredentials credentials, MockServiceConfig config) { } - - protected override AbstractAWSSigner CreateSigner() - { - return new AWS4Signer(); - } } public class MockServiceConfig : AmazonS3Config diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs index 8fbd42392322..3ab1eec780da 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.cs @@ -182,53 +182,18 @@ public override string TransformText() #line default #line hidden - this.Write("Client()\r\n"); + this.Write("Client()\r\n : base(new Amazon"); #line 83 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - if (this.Config.ClassName == "AutoScaling") { - - #line default - #line hidden - this.Write(" : base(new Amazon"); - - #line 84 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden - this.Write("Config()) { }\r\n"); - - #line 85 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" -} else { - - #line default - #line hidden - this.Write(" : base(FallbackCredentialsFactory.GetCredentials("); - - #line 86 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : "")); - - #line default - #line hidden - this.Write("), new Amazon"); + this.Write("Config()) { }\r\n\r\n /// \r\n /// Constructs Amazon"); #line 86 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); - #line default - #line hidden - this.Write("Config()) { }\r\n"); - - #line 87 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" -} - - #line default - #line hidden - this.Write("\r\n /// \r\n /// Constructs Amazon"); - - #line 90 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); - #line default #line hidden this.Write(@"Client with the credentials loaded from the application's @@ -248,56 +213,22 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 105 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); - - #line default - #line hidden - this.Write("Client(RegionEndpoint region)\r\n"); - - #line 106 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - if (this.Config.ClassName == "AutoScaling") { - - #line default - #line hidden - this.Write(" : base(new Amazon"); - - #line 107 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 101 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden - this.Write("Config{RegionEndpoint = region}) { }\r\n"); + this.Write("Client(RegionEndpoint region)\r\n : base(new Amazon"); - #line 108 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" -} else { - - #line default - #line hidden - this.Write(" : base(FallbackCredentialsFactory.GetCredentials("); - - #line 109 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : "")); - - #line default - #line hidden - this.Write("), new Amazon"); - - #line 109 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 102 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden - this.Write("Config{RegionEndpoint = region}) { }\r\n"); + this.Write("Config{RegionEndpoint = region}) { }\r\n\r\n /// \r\n /// Constr" + + "ucts Amazon"); - #line 110 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" -} - - #line default - #line hidden - this.Write("\r\n /// \r\n /// Constructs Amazon"); - - #line 113 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 105 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -318,56 +249,29 @@ public override string TransformText() /// /// The Amazon"); - #line 127 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 119 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client Configuration Object\r\n public Amazon"); - #line 128 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 120 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client(Amazon"); - #line 128 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 120 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden - this.Write("Config config)\r\n"); + this.Write("Config config)\r\n : base(config) { }\r\n\r\n /// \r\n " + + "/// Constructs Amazon"); - #line 129 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - if (this.Config.ClassName == "AutoScaling") { - - #line default - #line hidden - this.Write(" : base(config) { }\r\n"); - - #line 131 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" -} else { - - #line default - #line hidden - this.Write(" : base(FallbackCredentialsFactory.GetCredentials(config"); - - #line 132 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? ", fallbackToAnonymous: true" : "")); - - #line default - #line hidden - this.Write("), config){}\r\n"); - - #line 133 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" -} - - #line default - #line hidden - this.Write("\r\n /// \r\n /// Constructs Amazon"); - - #line 136 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 124 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -375,14 +279,14 @@ public override string TransformText() this.Write("Client with AWS Credentials\r\n /// \r\n /// AWS Credentials\r\n public Amazon"); - #line 139 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 127 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client(AWSCredentials credentials)\r\n : this(credentials, new Amazon"); - #line 140 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 128 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -390,7 +294,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 145 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 133 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -399,7 +303,7 @@ public override string TransformText() "dentials\">AWS Credentials\r\n /// The region t" + "o connect.\r\n public Amazon"); - #line 149 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 137 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -407,7 +311,7 @@ public override string TransformText() this.Write("Client(AWSCredentials credentials, RegionEndpoint region)\r\n : this(cre" + "dentials, new Amazon"); - #line 150 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 138 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -415,14 +319,14 @@ public override string TransformText() this.Write("Config{RegionEndpoint = region})\r\n {\r\n }\r\n\r\n /// \r\n" + " /// Constructs Amazon"); - #line 155 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 143 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client with AWS Credentials and an\r\n /// Amazon"); - #line 156 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 144 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -431,21 +335,21 @@ public override string TransformText() "edentials\">AWS Credentials\r\n /// The A" + "mazon"); - #line 159 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 147 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client Configuration Object\r\n public Amazon"); - #line 160 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 148 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client(AWSCredentials credentials, Amazon"); - #line 160 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 148 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -453,7 +357,7 @@ public override string TransformText() this.Write("Config clientConfig)\r\n : base(credentials, clientConfig)\r\n {\r\n " + " }\r\n\r\n /// \r\n /// Constructs Amazon"); - #line 166 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 154 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -462,7 +366,7 @@ public override string TransformText() " /// AWS Access Key ID\r\n /// AWS Secret Access Key\r\n public Amazon"); - #line 170 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 158 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -470,7 +374,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey)\r\n : this(awsA" + "ccessKeyId, awsSecretAccessKey, new Amazon"); - #line 171 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 159 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -478,7 +382,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 176 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 164 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -490,7 +394,7 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 181 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 169 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -498,7 +402,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)\r\n" + " : this(awsAccessKeyId, awsSecretAccessKey, new Amazon"); - #line 182 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 170 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -506,14 +410,14 @@ public override string TransformText() this.Write("Config() {RegionEndpoint=region})\r\n {\r\n }\r\n\r\n /// \r" + "\n /// Constructs Amazon"); - #line 187 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 175 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client with AWS Access Key ID, AWS Secret Key and an\r\n /// Amazon"); - #line 188 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 176 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -523,21 +427,21 @@ public override string TransformText() "ssKey\">AWS Secret Access Key\r\n /// The" + " Amazon"); - #line 192 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 180 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client Configuration Object\r\n public Amazon"); - #line 193 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 181 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, Amazon"); - #line 193 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 181 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -546,7 +450,7 @@ public override string TransformText() "ntConfig)\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs" + " Amazon"); - #line 199 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 187 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -558,7 +462,7 @@ public override string TransformText() /// AWS Session Token public Amazon"); - #line 204 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 192 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -567,7 +471,7 @@ public override string TransformText() "\n : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new Ama" + "zon"); - #line 205 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 193 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -575,7 +479,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 210 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 198 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -588,7 +492,7 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 216 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 204 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -597,7 +501,7 @@ public override string TransformText() "RegionEndpoint region)\r\n : this(awsAccessKeyId, awsSecretAccessKey, a" + "wsSessionToken, new Amazon"); - #line 217 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 205 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -605,14 +509,14 @@ public override string TransformText() this.Write("Config{RegionEndpoint = region})\r\n {\r\n }\r\n\r\n /// \r\n" + " /// Constructs Amazon"); - #line 222 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 210 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client with AWS Access Key ID, AWS Secret Key and an\r\n /// Amazon"); - #line 223 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 211 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -624,14 +528,14 @@ public override string TransformText() /// AWS Session Token /// The Amazon"); - #line 228 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 216 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client Configuration Object\r\n public Amazon"); - #line 229 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 217 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -639,7 +543,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, " + "Amazon"); - #line 229 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 217 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -647,25 +551,16 @@ public override string TransformText() this.Write("Config clientConfig)\r\n : base(awsAccessKeyId, awsSecretAccessKey, awsS" + "essionToken, clientConfig)\r\n {\r\n }\r\n\r\n #endregion\r\n"); - #line 235 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 223 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } #line default #line hidden - this.Write("\r\n #region Overrides\r\n\r\n /// \r\n /// Creates the sig" + - "ner for the service.\r\n /// \r\n protected override Abstrac" + - "tAWSSigner CreateSigner()\r\n {\r\n return new "); - - #line 246 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(GeneratorHelpers.DetermineSigner(this.Config.ServiceModel.SignatureVersion, this.Config.ClassName))); - - #line default - #line hidden - this.Write("();\r\n } \r\n\r\n"); + this.Write("\r\n #region Overrides \r\n\r\n"); - #line 249 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 229 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(this.Config.ServiceModel.Customizations.PipelineOverride != null || this.Config.EndpointsRuleSet != null) { #line default @@ -674,7 +569,7 @@ public override string TransformText() "\r\n /// \r\n protected override void C" + "ustomizeRuntimePipeline(RuntimePipeline pipeline)\r\n {\r\n"); - #line 256 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 236 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" var pipelineOverrides = this.Config.ServiceModel.Customizations.PipelineOverride; if (pipelineOverrides != null) @@ -689,14 +584,14 @@ public override string TransformText() #line hidden this.Write(" if("); - #line 265 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 245 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.Condition)); #line default #line hidden this.Write(")\r\n {\r\n"); - #line 267 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 247 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(o.OverrideMethod == "remove") { @@ -706,14 +601,14 @@ public override string TransformText() #line hidden this.Write(" pipeline."); - #line 271 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 251 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod)); #line default #line hidden this.Write("();\r\n"); - #line 272 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 252 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } else @@ -724,28 +619,28 @@ public override string TransformText() #line hidden this.Write(" pipeline."); - #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 257 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod)); #line default #line hidden this.Write("(new "); - #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 257 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.NewType)); #line default #line hidden this.Write("("); - #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 257 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.ConstructorInput)); #line default #line hidden this.Write("));\r\n"); - #line 278 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 258 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -754,7 +649,7 @@ public override string TransformText() #line hidden this.Write(" }\r\n"); - #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 262 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } else if(o.OverrideMethod == "remove") @@ -765,14 +660,14 @@ public override string TransformText() #line hidden this.Write(" pipeline."); - #line 287 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 267 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod)); #line default #line hidden this.Write("();\r\n"); - #line 288 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 268 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } else @@ -783,28 +678,28 @@ public override string TransformText() #line hidden this.Write(" pipeline."); - #line 293 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 273 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod)); #line default #line hidden this.Write("(new "); - #line 293 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 273 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.NewType)); #line default #line hidden this.Write("("); - #line 293 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 273 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.ConstructorInput)); #line default #line hidden this.Write("));\r\n"); - #line 294 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 274 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } } @@ -814,7 +709,7 @@ public override string TransformText() #line default #line hidden - #line 299 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 279 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -823,21 +718,21 @@ public override string TransformText() " pipeline.AddHandlerAfter(new Ama" + "zon"); - #line 301 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 281 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("EndpointResolver());\r\n"); - #line 302 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } #line default #line hidden this.Write(" }\t\r\n"); - #line 304 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 284 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -866,7 +761,7 @@ protected override void Dispose(bool disposing) { "); - #line 327 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 307 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(this.Config.ServiceId == "S3") { @@ -879,7 +774,7 @@ protected override void Dispose(bool disposing) " {\r\n clientConfig.S3ExpressCredentialProvider.Dispose();\r\n " + " }\r\n"); - #line 336 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 316 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -888,7 +783,7 @@ protected override void Dispose(bool disposing) #line hidden this.Write(" base.Dispose(disposing);\r\n }\r\n\r\n #endregion\r\n\r\n"); - #line 344 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 324 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" var endpointOperation = this.Config.ServiceModel.FindEndpointOperation(); if(endpointOperation != null) @@ -910,14 +805,14 @@ protected override IEnumerable EndpointOperation(Endpoint { var request = new "); - #line 360 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 340 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(endpointOperation.Name)); #line default #line hidden this.Write("Request\r\n\t\t\t\t{\r\n"); - #line 362 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 342 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(endpointOperation.RequestHasOperationEndpointOperationMember) { @@ -927,7 +822,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t\t\t\tOperation = context.OperationName,\r\n"); - #line 367 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 347 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } if(endpointOperation.RequestHasIdentifiersEndpointOperationMember) @@ -939,7 +834,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("\t\t\t\t\tIdentifiers = new Dictionary(context.EndpointDiscoveryData.I" + "dentifiers),\r\n"); - #line 373 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 353 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -948,7 +843,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\tvar response = "); - #line 378 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 358 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(endpointOperation.Name)); #line default @@ -972,7 +867,7 @@ protected override IEnumerable EndpointOperation(Endpoint #endregion "); - #line 395 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 375 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -984,14 +879,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n #region "); - #line 402 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 382 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("\r\n\r\n"); - #line 404 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 384 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" // Creates a version of the operation that takes no arguments and passes a request with no set members if specified in the customizations if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name)) @@ -1001,7 +896,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line default #line hidden - #line 409 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 389 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.FormatOperationDocumentationSync(operation, false); if(operation.IsDeprecated) @@ -1012,14 +907,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 414 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 394 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 415 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 395 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1028,35 +923,35 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" public virtual "); - #line 418 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 398 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response "); - #line 418 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 398 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("()\r\n {\r\n return "); - #line 420 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 400 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("(new "); - #line 420 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 400 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Request());\r\n }\r\n\r\n"); - #line 423 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 403 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } // Adds any simple method forms specified in the customizations file @@ -1066,7 +961,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line default #line hidden - #line 428 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 408 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.FormatOperationDocumentationSync(operation, true); if(operation.IsDeprecated) @@ -1077,14 +972,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 433 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 413 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 434 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 414 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1093,28 +988,28 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" "); - #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.IsInternal ? "internal" : "public")); #line default #line hidden this.Write(" virtual "); - #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response "); - #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("("); - #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1122,21 +1017,21 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Request request)\r\n {\r\n var options = new InvokeOptions();\r\n " + " options.RequestMarshaller = "); - #line 440 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 420 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("RequestMarshaller.Instance;\r\n options.ResponseUnmarshaller = "); - #line 441 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("ResponseUnmarshaller.Instance;\r\n"); - #line 442 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 422 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(!operation.IsEndpointOperation && operation.EndpointDiscoveryEnabled) { @@ -1146,7 +1041,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" options.EndpointDiscoveryMarshaller = "); - #line 446 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 426 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1154,7 +1049,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("EndpointDiscoveryMarshaller.Instance;\r\n options.EndpointOperation = En" + "dpointOperation;\r\n"); - #line 448 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 428 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1163,14 +1058,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n return Invoke<"); - #line 452 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 432 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response>(request, options);\r\n }\r\n\r\n"); - #line 455 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 435 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" // Creates a version of the operation that takes no arguments and passes a request with no set members if specified in the customizations if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name)) @@ -1180,7 +1075,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line default #line hidden - #line 460 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 440 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.FormatOperationDocumentationAsync(operation, false); if(operation.IsDeprecated) @@ -1191,14 +1086,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 465 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 445 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 466 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 446 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1207,14 +1102,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" public virtual Task<"); - #line 469 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 449 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response> "); - #line 469 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 449 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1222,21 +1117,21 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Async(System.Threading.CancellationToken cancellationToken = default(Cancellation" + "Token))\r\n {\r\n return "); - #line 471 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 451 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Async(new "); - #line 471 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 451 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Request(), cancellationToken);\r\n }\r\n"); - #line 473 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 453 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1252,14 +1147,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 483 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 463 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1268,28 +1163,28 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" "); - #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 467 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.IsInternal ? "internal" : "public")); #line default #line hidden this.Write(" virtual Task<"); - #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 467 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response> "); - #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 467 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Async("); - #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 467 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1298,21 +1193,21 @@ protected override IEnumerable EndpointOperation(Endpoint "ancellationToken))\r\n {\r\n var options = new InvokeOptions();\r\n " + " options.RequestMarshaller = "); - #line 490 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 470 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("RequestMarshaller.Instance;\r\n options.ResponseUnmarshaller = "); - #line 491 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 471 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("ResponseUnmarshaller.Instance;\r\n"); - #line 492 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 472 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if(!operation.IsEndpointOperation && operation.EndpointDiscoveryEnabled) { @@ -1322,7 +1217,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" options.EndpointDiscoveryMarshaller = "); - #line 496 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 476 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1330,7 +1225,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("EndpointDiscoveryMarshaller.Instance;\r\n options.EndpointOperation = En" + "dpointOperation;\r\n"); - #line 498 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 478 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1339,7 +1234,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" \r\n return InvokeAsync<"); - #line 502 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 482 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1347,7 +1242,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Response>(request, options, cancellationToken);\r\n }\r\n\r\n #endregion\r" + "\n "); - #line 506 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 486 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } @@ -1356,7 +1251,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n"); - #line 510 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 490 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -1378,7 +1273,7 @@ public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(Amazo "); - #line 526 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" + #line 506 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetFramework.tt" } #line default diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt index 640a17a5b27b..cf05c102fc9b 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetFramework.tt @@ -80,11 +80,7 @@ namespace <#=this.Config.Namespace#> /// /// public Amazon<#=this.Config.ClassName#>Client() -<# if (this.Config.ClassName == "AutoScaling") { #> : base(new Amazon<#=this.Config.ClassName#>Config()) { } -<#} else {#> - : base(FallbackCredentialsFactory.GetCredentials(<#= fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : ""#>), new Amazon<#=this.Config.ClassName#>Config()) { } -<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with the credentials loaded from the application's @@ -103,11 +99,7 @@ namespace <#=this.Config.Namespace#> /// /// The region to connect. public Amazon<#=this.Config.ClassName#>Client(RegionEndpoint region) -<# if (this.Config.ClassName == "AutoScaling") { #> : base(new Amazon<#=this.Config.ClassName#>Config{RegionEndpoint = region}) { } -<#} else {#> - : base(FallbackCredentialsFactory.GetCredentials(<#= fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : ""#>), new Amazon<#=this.Config.ClassName#>Config{RegionEndpoint = region}) { } -<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with the credentials loaded from the application's @@ -126,11 +118,7 @@ namespace <#=this.Config.Namespace#> /// /// The Amazon<#=this.Config.ClassName#>Client Configuration Object public Amazon<#=this.Config.ClassName#>Client(Amazon<#=this.Config.ClassName#>Config config) -<# if (this.Config.ClassName == "AutoScaling") { #> : base(config) { } -<#} else {#> - : base(FallbackCredentialsFactory.GetCredentials(config<#= fallbackToAnonymousCredentials ? ", fallbackToAnonymous: true" : ""#>), config){} -<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with AWS Credentials @@ -236,15 +224,7 @@ namespace <#=this.Config.Namespace#> } #> - #region Overrides - - /// - /// Creates the signer for the service. - /// - protected override AbstractAWSSigner CreateSigner() - { - return new <#=GeneratorHelpers.DetermineSigner(this.Config.ServiceModel.SignatureVersion, this.Config.ClassName)#>(); - } + #region Overrides <# if(this.Config.ServiceModel.Customizations.PipelineOverride != null || this.Config.EndpointsRuleSet != null) { #> /// diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs index ea8821de77b3..f8188b0a55f5 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.cs @@ -138,53 +138,18 @@ public override string TransformText() #line default #line hidden - this.Write("Client()\r\n"); + this.Write("Client()\r\n : base(new Amazon"); #line 60 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - if (this.Config.ClassName == "AutoScaling") { - - #line default - #line hidden - this.Write(" : base(new Amazon"); - - #line 61 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden - this.Write("Config()) { }\r\n"); - - #line 62 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" -} else { - - #line default - #line hidden - this.Write(" : base(FallbackCredentialsFactory.GetCredentials("); - - #line 63 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : "")); - - #line default - #line hidden - this.Write("), new Amazon"); + this.Write("Config()) { }\r\n\r\n /// \r\n /// Constructs Amazon"); #line 63 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); - #line default - #line hidden - this.Write("Config()) { }\r\n"); - - #line 64 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" -} - - #line default - #line hidden - this.Write("\r\n /// \r\n /// Constructs Amazon"); - - #line 67 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); - #line default #line hidden this.Write(@"Client with the credentials loaded from the application's @@ -204,56 +169,22 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 82 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); - - #line default - #line hidden - this.Write("Client(RegionEndpoint region)\r\n"); - - #line 83 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - if (this.Config.ClassName == "AutoScaling") { - - #line default - #line hidden - this.Write(" : base(new Amazon"); - - #line 84 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 78 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden - this.Write("Config{RegionEndpoint = region}) { }\r\n"); - - #line 85 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" -} else { - - #line default - #line hidden - this.Write(" : base(FallbackCredentialsFactory.GetCredentials("); + this.Write("Client(RegionEndpoint region)\r\n : base(new Amazon"); - #line 86 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : "")); - - #line default - #line hidden - this.Write("), new Amazon"); - - #line 86 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 79 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden - this.Write("Config{RegionEndpoint = region}) { }\r\n"); - - #line 87 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" -} - - #line default - #line hidden - this.Write("\r\n /// \r\n /// Constructs Amazon"); + this.Write("Config{RegionEndpoint = region}) { }\r\n\r\n /// \r\n /// Constr" + + "ucts Amazon"); - #line 90 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 82 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -274,56 +205,29 @@ public override string TransformText() /// /// The Amazon"); - #line 104 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 96 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client Configuration Object\r\n public Amazon"); - #line 105 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 97 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client(Amazon"); - #line 105 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 97 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden - this.Write("Config config)\r\n"); + this.Write("Config config)\r\n : base(config) { }\r\n\r\n\r\n /// \r\n " + + " /// Constructs Amazon"); - #line 106 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - if (this.Config.ClassName == "AutoScaling") { - - #line default - #line hidden - this.Write(" : base(config) { }\r\n"); - - #line 108 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" -} else { - - #line default - #line hidden - this.Write(" : base(FallbackCredentialsFactory.GetCredentials(config"); - - #line 109 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(fallbackToAnonymousCredentials ? ", fallbackToAnonymous: true" : "")); - - #line default - #line hidden - this.Write("), config){}\r\n"); - - #line 110 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" -} - - #line default - #line hidden - this.Write("\r\n\r\n /// \r\n /// Constructs Amazon"); - - #line 114 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 102 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -331,14 +235,14 @@ public override string TransformText() this.Write("Client with AWS Credentials\r\n /// \r\n /// AWS Credentials\r\n public Amazon"); - #line 117 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 105 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client(AWSCredentials credentials)\r\n : this(credentials, new Amazon"); - #line 118 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 106 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -346,7 +250,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 123 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 111 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -355,7 +259,7 @@ public override string TransformText() "dentials\">AWS Credentials\r\n /// The region t" + "o connect.\r\n public Amazon"); - #line 127 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 115 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -363,7 +267,7 @@ public override string TransformText() this.Write("Client(AWSCredentials credentials, RegionEndpoint region)\r\n : this(cre" + "dentials, new Amazon"); - #line 128 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 116 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -371,14 +275,14 @@ public override string TransformText() this.Write("Config{RegionEndpoint = region})\r\n {\r\n }\r\n\r\n /// \r\n" + " /// Constructs Amazon"); - #line 133 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 121 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client with AWS Credentials and an\r\n /// Amazon"); - #line 134 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 122 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -387,21 +291,21 @@ public override string TransformText() "edentials\">AWS Credentials\r\n /// The A" + "mazon"); - #line 137 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 125 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client Configuration Object\r\n public Amazon"); - #line 138 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 126 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client(AWSCredentials credentials, Amazon"); - #line 138 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 126 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -409,7 +313,7 @@ public override string TransformText() this.Write("Config clientConfig)\r\n : base(credentials, clientConfig)\r\n {\r\n " + " }\r\n\r\n /// \r\n /// Constructs Amazon"); - #line 144 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 132 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -418,7 +322,7 @@ public override string TransformText() " /// AWS Access Key ID\r\n /// AWS Secret Access Key\r\n public Amazon"); - #line 148 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 136 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -426,7 +330,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey)\r\n : this(awsA" + "ccessKeyId, awsSecretAccessKey, new Amazon"); - #line 149 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 137 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -434,7 +338,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 154 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 142 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -446,7 +350,7 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 159 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 147 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -454,7 +358,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)\r\n" + " : this(awsAccessKeyId, awsSecretAccessKey, new Amazon"); - #line 160 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 148 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -462,14 +366,14 @@ public override string TransformText() this.Write("Config() {RegionEndpoint=region})\r\n {\r\n }\r\n\r\n /// \r" + "\n /// Constructs Amazon"); - #line 165 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 153 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client with AWS Access Key ID, AWS Secret Key and an\r\n /// Amazon"); - #line 166 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 154 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -479,21 +383,21 @@ public override string TransformText() "ssKey\">AWS Secret Access Key\r\n /// The" + " Amazon"); - #line 170 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 158 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client Configuration Object\r\n public Amazon"); - #line 171 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 159 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, Amazon"); - #line 171 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 159 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -502,7 +406,7 @@ public override string TransformText() "ntConfig)\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs" + " Amazon"); - #line 177 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 165 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -514,7 +418,7 @@ public override string TransformText() /// AWS Session Token public Amazon"); - #line 182 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 170 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -523,7 +427,7 @@ public override string TransformText() "\n : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new Ama" + "zon"); - #line 183 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 171 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -531,7 +435,7 @@ public override string TransformText() this.Write("Config())\r\n {\r\n }\r\n\r\n /// \r\n /// Constructs " + "Amazon"); - #line 188 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 176 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -544,7 +448,7 @@ public override string TransformText() /// The region to connect. public Amazon"); - #line 194 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 182 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -553,7 +457,7 @@ public override string TransformText() "RegionEndpoint region)\r\n : this(awsAccessKeyId, awsSecretAccessKey, a" + "wsSessionToken, new Amazon"); - #line 195 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 183 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -561,14 +465,14 @@ public override string TransformText() this.Write("Config{RegionEndpoint = region})\r\n {\r\n }\r\n\r\n /// \r\n" + " /// Constructs Amazon"); - #line 200 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 188 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client with AWS Access Key ID, AWS Secret Key and an\r\n /// Amazon"); - #line 201 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 189 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -580,14 +484,14 @@ public override string TransformText() /// AWS Session Token /// The Amazon"); - #line 206 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 194 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("Client Configuration Object\r\n public Amazon"); - #line 207 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 195 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -595,7 +499,7 @@ public override string TransformText() this.Write("Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, " + "Amazon"); - #line 207 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 195 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -603,7 +507,7 @@ public override string TransformText() this.Write("Config clientConfig)\r\n : base(awsAccessKeyId, awsSecretAccessKey, awsS" + "essionToken, clientConfig)\r\n {\r\n }\r\n\r\n #endregion\r\n"); - #line 213 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 201 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -611,7 +515,7 @@ public override string TransformText() #line default #line hidden - #line 216 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 204 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" // Creates paginators for service if available if (this.Config.ServiceModel.HasPaginators) @@ -622,7 +526,7 @@ public override string TransformText() #line hidden this.Write("#if AWS_ASYNC_ENUMERABLES_API\r\n private I"); - #line 222 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 210 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -630,7 +534,7 @@ public override string TransformText() this.Write("PaginatorFactory _paginators;\r\n\r\n /// \r\n /// Paginators fo" + "r the service\r\n /// \r\n public I"); - #line 227 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 215 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -639,7 +543,7 @@ public override string TransformText() " if (this._paginators == null) \r\n {\r\n " + "this._paginators = new "); - #line 233 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 221 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceNameRoot)); #line default @@ -647,25 +551,16 @@ public override string TransformText() this.Write("PaginatorFactory(this);\r\n }\r\n return this._paginato" + "rs;\r\n }\r\n }\r\n#endif\r\n"); - #line 239 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 227 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } #line default #line hidden - this.Write("\r\n #region Overrides\r\n\r\n\t\t/// \r\n /// Creates the signer fo" + - "r the service.\r\n /// \r\n protected override AbstractAWSSi" + - "gner CreateSigner()\r\n {\r\n return new "); - - #line 250 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(GeneratorHelpers.DetermineSigner(this.Config.ServiceModel.SignatureVersion, this.Config.ClassName))); - - #line default - #line hidden - this.Write("();\r\n } \r\n\r\n"); + this.Write("\r\n #region Overrides\r\n\r\n"); - #line 253 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 233 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(this.Config.ServiceModel.Customizations.PipelineOverride != null || this.Config.EndpointsRuleSet != null) { #line default @@ -678,7 +573,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { "); - #line 260 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 240 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" var pipelineOverrides = this.Config.ServiceModel.Customizations.PipelineOverride; if (pipelineOverrides != null) @@ -693,14 +588,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" if("); - #line 269 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 249 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.Condition)); #line default #line hidden this.Write(")\r\n {\r\n"); - #line 271 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 251 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(o.OverrideMethod == "remove") { @@ -710,14 +605,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" pipeline."); - #line 275 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 255 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod)); #line default #line hidden this.Write("();\r\n"); - #line 276 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 256 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } else @@ -728,28 +623,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" pipeline."); - #line 281 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 261 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod)); #line default #line hidden this.Write("(new "); - #line 281 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 261 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.NewType)); #line default #line hidden this.Write("("); - #line 281 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 261 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.ConstructorInput)); #line default #line hidden this.Write("));\r\n"); - #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 262 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -758,7 +653,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" }\r\n"); - #line 286 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 266 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } else if(o.OverrideMethod == "remove") @@ -769,14 +664,14 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" pipeline."); - #line 291 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 271 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod)); #line default #line hidden this.Write("();\r\n"); - #line 292 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 272 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } else @@ -787,28 +682,28 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line hidden this.Write(" pipeline."); - #line 297 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.FormattedOverrideMethod)); #line default #line hidden this.Write("(new "); - #line 297 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.NewType)); #line default #line hidden this.Write("("); - #line 297 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(o.ConstructorInput)); #line default #line hidden this.Write("));\r\n"); - #line 298 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 278 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } } @@ -818,7 +713,7 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) #line default #line hidden - #line 303 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 283 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -827,21 +722,21 @@ protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) " pipeline.AddHandlerAfter(new Ama" + "zon"); - #line 305 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 285 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("EndpointResolver());\r\n"); - #line 306 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 286 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } #line default #line hidden this.Write(" }\r\n"); - #line 308 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 288 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -870,7 +765,7 @@ protected override void Dispose(bool disposing) { "); - #line 331 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 311 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(this.Config.ServiceId == "S3") { @@ -883,7 +778,7 @@ protected override void Dispose(bool disposing) " {\r\n clientConfig.S3ExpressCredentialProvider.Dispose();\r\n " + " }\r\n"); - #line 340 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 320 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -892,7 +787,7 @@ protected override void Dispose(bool disposing) #line hidden this.Write(" base.Dispose(disposing);\r\n }\r\n\r\n #endregion\r\n\r\n"); - #line 348 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 328 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" var endpointOperation = this.Config.ServiceModel.FindEndpointOperation(); if(endpointOperation != null) @@ -914,14 +809,14 @@ protected override IEnumerable EndpointOperation(Endpoint { var request = new "); - #line 364 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 344 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(endpointOperation.Name)); #line default #line hidden this.Write("Request\r\n\t\t\t\t{\r\n"); - #line 366 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 346 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(endpointOperation.RequestHasOperationEndpointOperationMember) { @@ -931,7 +826,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t\t\t\tOperation = context.OperationName,\r\n"); - #line 371 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 351 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } if(endpointOperation.RequestHasIdentifiersEndpointOperationMember) @@ -943,7 +838,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("\t\t\t\t\tIdentifiers = new Dictionary(context.EndpointDiscoveryData.I" + "dentifiers),\r\n"); - #line 377 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 357 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -952,7 +847,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t\t\t};\r\n\t\t\t\t \r\n\t\t\t\tvar response = "); - #line 382 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 362 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(endpointOperation.Name)); #line default @@ -976,7 +871,7 @@ protected override IEnumerable EndpointOperation(Endpoint #endregion "); - #line 399 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 379 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -989,14 +884,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n #region "); - #line 407 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 387 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("\r\n\r\n"); - #line 409 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 389 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name)) { @@ -1008,14 +903,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 415 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 395 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 416 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 396 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1024,35 +919,35 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" internal virtual "); - #line 419 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 399 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response "); - #line 419 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 399 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("()\r\n {\r\n return "); - #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 401 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("(new "); - #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 401 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Request());\r\n }\r\n"); - #line 423 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 403 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } if(operation.IsDeprecated) @@ -1063,14 +958,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 428 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 408 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 429 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 409 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1079,21 +974,21 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" internal virtual "); - #line 432 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 412 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response "); - #line 432 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 412 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("("); - #line 432 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 412 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1101,21 +996,21 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Request request)\r\n {\r\n var options = new InvokeOptions();\r\n " + " options.RequestMarshaller = "); - #line 435 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 415 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("RequestMarshaller.Instance;\r\n options.ResponseUnmarshaller = "); - #line 436 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 416 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("ResponseUnmarshaller.Instance;\r\n"); - #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(!operation.IsEndpointOperation && operation.EndpointDiscoveryEnabled) { @@ -1125,7 +1020,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" options.EndpointDiscoveryMarshaller = "); - #line 441 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1133,7 +1028,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("EndpointDiscoveryMarshaller.Instance;\r\n options.EndpointOperation = En" + "dpointOperation;\r\n"); - #line 443 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 423 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1142,14 +1037,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n return Invoke<"); - #line 447 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 427 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response>(request, options);\r\n }\r\n\r\n"); - #line 450 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 430 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" // Creates a version of the operation that takes no arguments and passes a request with no set members if specified in the customizations if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name)) @@ -1159,7 +1054,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line default #line hidden - #line 455 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 435 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.FormatOperationDocumentationAsync(operation, false); if(operation.IsDeprecated) @@ -1170,14 +1065,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 460 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 440 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 461 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 441 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1186,14 +1081,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" public virtual Task<"); - #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 444 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response> "); - #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 444 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1201,21 +1096,21 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Async(System.Threading.CancellationToken cancellationToken = default(Cancellation" + "Token))\r\n {\r\n return "); - #line 466 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 446 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Async(new "); - #line 466 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 446 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Request(), cancellationToken);\r\n }\r\n\r\n"); - #line 469 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 449 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } // Add async simple methods @@ -1226,7 +1121,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n"); - #line 475 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 455 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.FormatOperationDocumentationAsync(operation, true); if(operation.IsDeprecated) @@ -1237,14 +1132,14 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\t\t[Obsolete(\""); - #line 480 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 460 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 481 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 461 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1253,28 +1148,28 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" "); - #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.IsInternal ? "internal" : "public")); #line default #line hidden this.Write(" virtual Task<"); - #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Response> "); - #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("Async("); - #line 484 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 464 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1283,21 +1178,21 @@ protected override IEnumerable EndpointOperation(Endpoint "ancellationToken))\r\n {\r\n var options = new InvokeOptions();\r\n " + " options.RequestMarshaller = "); - #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 467 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("RequestMarshaller.Instance;\r\n options.ResponseUnmarshaller = "); - #line 488 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 468 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default #line hidden this.Write("ResponseUnmarshaller.Instance;\r\n"); - #line 489 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 469 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if(!operation.IsEndpointOperation && operation.EndpointDiscoveryEnabled) { @@ -1307,7 +1202,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write(" options.EndpointDiscoveryMarshaller = "); - #line 493 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 473 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1315,7 +1210,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("EndpointDiscoveryMarshaller.Instance;\r\n options.EndpointOperation = En" + "dpointOperation;\r\n"); - #line 495 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 475 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1324,7 +1219,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n return InvokeAsync<"); - #line 499 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 479 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name)); #line default @@ -1332,7 +1227,7 @@ protected override IEnumerable EndpointOperation(Endpoint this.Write("Response>(request, options, cancellationToken);\r\n }\r\n\r\n #endregion\r" + "\n "); - #line 503 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 483 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } @@ -1341,7 +1236,7 @@ protected override IEnumerable EndpointOperation(Endpoint #line hidden this.Write("\r\n"); - #line 507 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 487 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -1363,7 +1258,7 @@ public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(Amazo "); - #line 523 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" + #line 503 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceClientsNetStandard.tt" } #line default diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt index 251012a0f9d6..78cacecc8b06 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceClientsNetStandard.tt @@ -57,11 +57,7 @@ namespace <#=this.Config.Namespace#> /// /// public Amazon<#=this.Config.ClassName#>Client() -<# if (this.Config.ClassName == "AutoScaling") { #> : base(new Amazon<#=this.Config.ClassName#>Config()) { } -<#} else {#> - : base(FallbackCredentialsFactory.GetCredentials(<#= fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : ""#>), new Amazon<#=this.Config.ClassName#>Config()) { } -<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with the credentials loaded from the application's @@ -80,11 +76,7 @@ namespace <#=this.Config.Namespace#> /// /// The region to connect. public Amazon<#=this.Config.ClassName#>Client(RegionEndpoint region) -<# if (this.Config.ClassName == "AutoScaling") { #> : base(new Amazon<#=this.Config.ClassName#>Config{RegionEndpoint = region}) { } -<#} else {#> - : base(FallbackCredentialsFactory.GetCredentials(<#= fallbackToAnonymousCredentials ? "fallbackToAnonymous: true" : ""#>), new Amazon<#=this.Config.ClassName#>Config{RegionEndpoint = region}) { } -<#}#> /// /// Constructs Amazon<#=this.Config.ClassName#>Client with the credentials loaded from the application's @@ -103,11 +95,7 @@ namespace <#=this.Config.Namespace#> /// /// The Amazon<#=this.Config.ClassName#>Client Configuration Object public Amazon<#=this.Config.ClassName#>Client(Amazon<#=this.Config.ClassName#>Config config) -<# if (this.Config.ClassName == "AutoScaling") { #> : base(config) { } -<#} else {#> - : base(FallbackCredentialsFactory.GetCredentials(config<#= fallbackToAnonymousCredentials ? ", fallbackToAnonymous: true" : ""#>), config){} -<#}#> /// @@ -242,14 +230,6 @@ namespace <#=this.Config.Namespace#> #region Overrides - /// - /// Creates the signer for the service. - /// - protected override AbstractAWSSigner CreateSigner() - { - return new <#=GeneratorHelpers.DetermineSigner(this.Config.ServiceModel.SignatureVersion, this.Config.ClassName)#>(); - } - <# if(this.Config.ServiceModel.Customizations.PipelineOverride != null || this.Config.EndpointsRuleSet != null) { #> /// /// Customizes the runtime pipeline. diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceConfig.cs b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceConfig.cs index ae687ad6ecb8..662dc1a83652 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceConfig.cs +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceConfig.cs @@ -18,7 +18,7 @@ namespace ServiceClientGenerator.Generators.SourceFiles /// Class to produce the template output /// - #line 1 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 1 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] public partial class ServiceConfig : BaseGenerator { @@ -29,7 +29,7 @@ public partial class ServiceConfig : BaseGenerator public override string TransformText() { - #line 6 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 6 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" AddLicenseHeader(); @@ -40,35 +40,35 @@ public override string TransformText() "zon.Util.Internal;\r\nusing Amazon.Runtime.Internal.Auth;\r\nusing Amazon.Runtime.En" + "dpoints;\r\nusing "); - #line 16 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 16 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write(".Internal;\r\n\r\nnamespace "); - #line 18 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 18 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write("\r\n{\r\n /// \r\n /// Configuration for accessing Amazon "); - #line 21 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 21 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write(" service\r\n /// \r\n [AWSSignerType(\""); - #line 23 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 23 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Config.ServiceModel.SignatureVersion)); #line default #line hidden this.Write("\")]\r\n public partial class Amazon"); - #line 24 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 24 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -76,42 +76,42 @@ public override string TransformText() this.Write("Config : ClientConfig\r\n {\r\n private static readonly string UserAgentStr" + "ing =\r\n InternalSDKUtils.BuildUserAgentString(\""); - #line 27 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 27 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceId)); #line default #line hidden this.Write("\", \""); - #line 27 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 27 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceFileVersion)); #line default #line hidden this.Write("\");\r\n\r\n"); - #line 29 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 29 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" if (this.Config.EndpointsRuleSet != null) { #line default #line hidden this.Write(" private static readonly Amazon"); - #line 30 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 30 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("EndpointResolver EndpointResolver =\r\n new Amazon"); - #line 31 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 31 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("EndpointResolver();\r\n"); - #line 32 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 32 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" } #line default @@ -127,7 +127,7 @@ public override string TransformText() { return """); - #line 42 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 42 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceId)); #line default @@ -135,7 +135,7 @@ public override string TransformText() this.Write("\";\r\n }\r\n }\r\n /// \r\n /// Default construc" + "tor\r\n /// \r\n public Amazon"); - #line 48 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 48 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -143,7 +143,7 @@ public override string TransformText() this.Write("Config()\r\n : base(new Amazon.Runtime.Internal.DefaultConfigurationProv" + "ider(Amazon"); - #line 49 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 49 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default @@ -151,14 +151,14 @@ public override string TransformText() this.Write("DefaultConfiguration.GetAllConfigurations()))\r\n {\r\n base.Servic" + "eId = \""); - #line 51 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 51 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceId)); #line default #line hidden this.Write("\";\r\n"); - #line 52 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 52 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" if(!string.IsNullOrEmpty(this.Config.AuthenticationServiceName)) { @@ -168,14 +168,14 @@ public override string TransformText() #line hidden this.Write(" this.AuthenticationServiceName = \""); - #line 56 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 56 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.AuthenticationServiceName)); #line default #line hidden this.Write("\";\r\n"); - #line 57 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 57 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" } if(this.Config.OverrideMaxRetries.HasValue) @@ -186,14 +186,14 @@ public override string TransformText() #line hidden this.Write(" this.MaxErrorRetry = "); - #line 62 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 62 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.OverrideMaxRetries)); #line default #line hidden this.Write(";\r\n"); - #line 63 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 63 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" } if(!string.IsNullOrEmpty(this.Config.DefaultRegion)) @@ -205,14 +205,14 @@ public override string TransformText() this.Write(" var region = FallbackRegionFactory.GetRegionEndpoint(false);\r\n " + " this.RegionEndpoint = region ?? RegionEndpoint."); - #line 69 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 69 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.DefaultRegion)); #line default #line hidden this.Write(";\r\n"); - #line 70 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 70 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" } @@ -220,7 +220,7 @@ public override string TransformText() #line default #line hidden - #line 73 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 73 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" if (this.Config.EndpointsRuleSet != null) { @@ -230,14 +230,14 @@ public override string TransformText() #line hidden this.Write(" this.EndpointProvider = new Amazon"); - #line 77 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 77 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName)); #line default #line hidden this.Write("EndpointProvider();\r\n"); - #line 78 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 78 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" } @@ -255,7 +255,7 @@ public override string RegionEndpointServiceName { return """); - #line 90 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 90 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.RegionLookupName)); #line default @@ -264,7 +264,7 @@ public override string RegionEndpointServiceName "ceVersion property.\r\n /// \r\n public override string Serv" + "iceVersion\r\n {\r\n get\r\n {\r\n return \""); - #line 101 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 101 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ServiceModel.APIVersion)); #line default @@ -286,7 +286,7 @@ public override string UserAgent "); - #line 116 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 116 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" if (this.Config.EndpointsRuleSet != null) foreach(var parameter in this.Config.ServiceModel.ClientContextParameters) { @@ -295,34 +295,34 @@ public override string UserAgent #line hidden this.Write(" /// \r\n /// "); - #line 120 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 120 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(parameter.documentation)); #line default #line hidden this.Write("\r\n /// \r\n public "); - #line 122 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 122 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(parameter.nativeType)); #line default #line hidden this.Write(" "); - #line 122 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 122 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" this.Write(this.ToStringHelper.ToStringWithCulture(parameter.name)); #line default #line hidden this.Write(" { get; set; }\r\n\r\n"); - #line 124 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 124 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" } #line default #line hidden - #line 125 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 125 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" if (this.Config.EndpointsRuleSet != null) { #line default @@ -334,14 +334,7 @@ public override string UserAgent /// The resolved endpoint for the given request. public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters) { - var requestContext = new RequestContext(false, new "); - - #line 133 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" - this.Write(this.ToStringHelper.ToStringWithCulture(GeneratorHelpers.DetermineSigner(this.Config.ServiceModel.SignatureVersion, this.Config.ClassName))); - - #line default - #line hidden - this.Write(@"()) + var requestContext = new RequestContext(false) { ClientConfig = this, OriginalRequest = parameters.Request, @@ -354,7 +347,7 @@ public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpo "); - #line 144 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 144 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" } else if (this.Config.IsTestService) { @@ -374,7 +367,7 @@ public override Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpo } "); - #line 158 "C:\repos\aws-sdk-net-staging\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" + #line 158 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceConfig.tt" } #line default diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceConfig.tt b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceConfig.tt index 0a0d53a564b8..2f7c9ff157df 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceConfig.tt +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceConfig.tt @@ -130,7 +130,7 @@ namespace <#=this.Config.Namespace#> /// The resolved endpoint for the given request. public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters) { - var requestContext = new RequestContext(false, new <#=GeneratorHelpers.DetermineSigner(this.Config.ServiceModel.SignatureVersion, this.Config.ClassName)#>()) + var requestContext = new RequestContext(false) { ClientConfig = this, OriginalRequest = parameters.Request, diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/StructureGenerator.cs b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/StructureGenerator.cs index 47e523344a84..22620e24520d 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/StructureGenerator.cs +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/StructureGenerator.cs @@ -18,7 +18,7 @@ namespace ServiceClientGenerator.Generators.SourceFiles /// Class to produce the template output /// - #line 1 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 1 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] public partial class StructureGenerator : BaseGenerator { @@ -30,7 +30,7 @@ public override string TransformText() { this.Write("\r\n"); - #line 7 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 7 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" AddLicenseHeader(); @@ -41,28 +41,17 @@ public override string TransformText() "\r\nusing System.Text;\r\nusing System.IO;\r\nusing System.Net;\r\n\r\nusing Amazon.Runtim" + "e;\r\nusing Amazon.Runtime.Internal;\r\n"); - #line 19 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 19 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" bool structureIsNotEventStream = this.Structure != null && !this.Structure.IsEventStream; bool structureIsEventStream = this.Structure != null && this.Structure.IsEventStream; bool structureIsEvent = this.Structure != null && this.Structure.IsEvent; -if(this.StructureType == StructureType.Request && this.Operation.AuthType.HasValue) -{ - - - #line default - #line hidden - this.Write("using Amazon.Runtime.Internal.Auth;\r\n"); - - #line 27 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" - -} #line default #line hidden - #line 30 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 24 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(structureIsEvent || structureIsEventStream) { @@ -73,7 +62,7 @@ public override string TransformText() this.Write("using Amazon.Runtime.EventStreams;\r\nusing Amazon.Runtime.EventStreams.Internal;\r\n" + "using "); - #line 36 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 30 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default @@ -81,7 +70,7 @@ public override string TransformText() this.Write(".Model.Internal.MarshallTransformations;\r\nusing Amazon.Runtime.EventStreams.Utils" + ";\r\n"); - #line 38 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 32 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -90,14 +79,14 @@ public override string TransformText() #line hidden this.Write("\r\n#pragma warning disable CS0612,CS0618,CS1570\r\nnamespace "); - #line 43 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 37 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace)); #line default #line hidden this.Write(".Model\r\n{\r\n"); - #line 45 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 39 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(this.StructureType == StructureType.Request) this.FormatOperationRequestDocumentation(this.Operation); @@ -111,14 +100,14 @@ public override string TransformText() #line hidden this.Write(" /// \r\n /// This is the response object from the "); - #line 54 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 48 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Operation.Name)); #line default #line hidden this.Write(" operation.\r\n /// \r\n"); - #line 56 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 50 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else @@ -128,7 +117,7 @@ public override string TransformText() #line default #line hidden - #line 61 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 55 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(this.Structure != null && this.Structure.IsDeprecated) { @@ -138,14 +127,14 @@ public override string TransformText() #line hidden this.Write(" [Obsolete(\""); - #line 65 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 59 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 66 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 60 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } if(this.Structure is ExceptionShape) @@ -156,7 +145,7 @@ public override string TransformText() #line hidden this.Write(" #if !NETSTANDARD\r\n [Serializable]\r\n #endif\r\n"); - #line 74 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 68 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -164,7 +153,7 @@ public override string TransformText() #line default #line hidden - #line 77 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 71 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(this.Structure != null && this.Structure.IsEventStream) @@ -181,14 +170,14 @@ public override string TransformText() #line hidden this.Write(" "); - #line 88 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 82 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(EventStreamOutput)); #line default #line hidden this.Write("\r\n"); - #line 89 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 83 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -196,7 +185,7 @@ public override string TransformText() #line default #line hidden - #line 92 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 86 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" bool hasStreamingMember = this.Structure?.Members.Any(member => member.Shape.IsStreaming) ?? false; @@ -214,20 +203,20 @@ public override string TransformText() #line hidden this.Write(" public partial class "); - #line 104 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 98 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.ClassName)); #line default #line hidden - #line 104 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 98 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.BaseClassString)); #line default #line hidden this.Write(", IDisposable\r\n {\r\n"); - #line 106 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 100 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else @@ -237,7 +226,7 @@ public override string TransformText() #line default #line hidden - #line 111 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 105 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if( (this.Structure == null) || (structureIsNotEventStream)) { @@ -247,20 +236,20 @@ public override string TransformText() #line hidden this.Write(" public partial class "); - #line 115 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 109 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.ClassName)); #line default #line hidden - #line 115 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 109 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.BaseClassString)); #line default #line hidden this.Write("\r\n"); - #line 116 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 110 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(structureIsEvent) { @@ -270,7 +259,7 @@ public override string TransformText() #line hidden this.Write(" : IEventStreamEvent\r\n"); - #line 121 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 115 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -279,7 +268,7 @@ public override string TransformText() #line hidden this.Write(" {\r\n"); - #line 125 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 119 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -287,7 +276,7 @@ public override string TransformText() #line default #line hidden - #line 128 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 122 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -295,7 +284,7 @@ public override string TransformText() #line default #line hidden - #line 131 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 125 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(structureIsNotEventStream) { @@ -307,28 +296,28 @@ public override string TransformText() #line hidden this.Write(" private "); - #line 137 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 131 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default #line hidden this.Write(" _response;\r\n\r\n /// \r\n /// Gets and sets the "); - #line 140 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 134 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default #line hidden this.Write(" property.\r\n /// \r\n public "); - #line 142 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 136 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default #line hidden this.Write(" "); - #line 142 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 136 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -336,7 +325,7 @@ public override string TransformText() this.Write("\r\n {\r\n get { return this._response; }\r\n set { this._" + "response = value; }\r\n }\r\n"); - #line 147 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 141 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else @@ -359,27 +348,27 @@ public override string TransformText() #line hidden this.Write(" private "); - #line 164 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 158 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.DetermineType())); #line default #line hidden this.Write(" "); - #line 164 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 158 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden - #line 164 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 158 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.IsCollection ? string.Format(" = AWSConfigs.InitializeCollections ? new {0}() : null;", member.DetermineType()) : ";")); #line default #line hidden this.Write("\r\n"); - #line 165 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 159 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -388,7 +377,7 @@ public override string TransformText() #line hidden this.Write("\r\n"); - #line 169 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 163 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" AddSimpleRequestConstructors(this.ClassName, this.Structure, this.Config.Namespace); @@ -403,14 +392,14 @@ public override string TransformText() #line hidden this.Write(" private RetryableDetails _retryableDetails = new RetryableDetails("); - #line 178 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 172 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(exceptionShape.Throttling.ToString().ToLower())); #line default #line hidden this.Write(");\r\n"); - #line 179 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 173 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" @@ -418,7 +407,7 @@ public override string TransformText() #line hidden this.Write("\r\n"); - #line 182 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 176 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -427,7 +416,7 @@ public override string TransformText() #line hidden this.Write(" /// \r\n /// Constructs a new "); - #line 2 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 2 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -436,7 +425,7 @@ public override string TransformText() "/// \r\n /// Describes the error encountered.\r\n " + " /// \r\n public "); - #line 8 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 8 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -444,7 +433,7 @@ public override string TransformText() this.Write("(string message) \r\n : base(message) {}\r\n\r\n /// \r\n " + " /// Construct instance of "); - #line 12 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 12 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -452,7 +441,7 @@ public override string TransformText() this.Write("\r\n /// \r\n /// \r\n ///" + " \r\n public "); - #line 16 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 16 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -460,7 +449,7 @@ public override string TransformText() this.Write("(string message, Exception innerException) \r\n : base(message, innerExc" + "eption) {}\r\n\r\n /// \r\n /// Construct instance of "); - #line 20 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 20 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -468,7 +457,7 @@ public override string TransformText() this.Write("\r\n /// \r\n /// \r\n " + " public "); - #line 23 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 23 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -476,7 +465,7 @@ public override string TransformText() this.Write("(Exception innerException) \r\n : base(innerException) {}\r\n\r\n ///" + " \r\n /// Construct instance of "); - #line 27 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 27 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -491,7 +480,7 @@ public override string TransformText() /// public "); - #line 35 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 35 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -502,7 +491,7 @@ public override string TransformText() /// /// Construct instance of "); - #line 39 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 39 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -516,7 +505,7 @@ public override string TransformText() /// public "); - #line 46 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" + #line 46 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionConstructors.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -528,7 +517,7 @@ public override string TransformText() this.Write("#if !NETSTANDARD\r\n /// \r\n /// Constructs a new instance of" + " the "); - #line 3 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 3 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -541,7 +530,7 @@ public override string TransformText() /// The class name is null or is zero (0). protected "); - #line 9 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 9 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" this.Write(this.ToStringHelper.ToStringWithCulture(this.Structure.Name)); #line default @@ -549,7 +538,7 @@ public override string TransformText() this.Write("(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serializatio" + "n.StreamingContext context)\r\n : base(info, context)\r\n {\r\n"); - #line 12 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 12 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" foreach(var member in this.Structure.Members) { @@ -559,35 +548,35 @@ public override string TransformText() #line hidden this.Write(" this."); - #line 16 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 16 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write(" = ("); - #line 16 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 16 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" this.Write(this.ToStringHelper.ToStringWithCulture(member.DetermineType())); #line default #line hidden this.Write(")info.GetValue(\""); - #line 16 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 16 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write("\", typeof("); - #line 16 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 16 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" this.Write(this.ToStringHelper.ToStringWithCulture(member.DetermineType())); #line default #line hidden this.Write("));\r\n"); - #line 17 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 17 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" } @@ -611,7 +600,7 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf base.GetObjectData(info, context); "); - #line 35 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 35 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" foreach(var member in this.Structure.Members) { @@ -621,21 +610,21 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" info.AddValue(\""); - #line 39 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 39 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write("\", this."); - #line 39 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 39 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write(");\r\n"); - #line 40 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" + #line 40 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\.\Exceptions\ExceptionSerialization.t4" } @@ -645,7 +634,7 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf this.Write(" }\r\n#endif\r\n"); this.Write("\r\n"); - #line 187 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 181 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } foreach(var member in this.Structure.Members) @@ -665,13 +654,13 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line default #line hidden - #line 202 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 196 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.FormatPropertyDocumentation(member); #line default #line hidden - #line 203 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 197 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(member.IsDeprecated) { @@ -681,14 +670,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" [Obsolete(\""); - #line 207 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 201 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 208 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 202 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -717,14 +706,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" [AWSProperty("); - #line 231 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 225 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(string.Join(", ", propertyAttributes))); #line default #line hidden this.Write(")]\r\n"); - #line 232 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 226 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -749,55 +738,55 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" "); - #line 251 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 245 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.AccessModifier)); #line default #line hidden this.Write(" "); - #line 251 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 245 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(memberModifier)); #line default #line hidden - #line 251 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 245 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.DetermineType())); #line default #line hidden this.Write(" "); - #line 251 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 245 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write("\r\n {\r\n get { return this."); - #line 253 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 247 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write("; }\r\n set { "); - #line 254 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 248 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.IsBackwardsCompatibleDateTimeProperty ? "this." + member.BackwardCompatibilityVariableName + " = " : "")); #line default #line hidden this.Write("this."); - #line 254 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 248 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(" = value; }\r\n }\r\n\r\n"); - #line 257 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 251 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if (member.EmitIsSetProperties) { @@ -808,7 +797,7 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf this.Write(" /// \r\n /// This property is set to true if the property <" + "seealso cref=\""); - #line 262 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 256 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default @@ -824,7 +813,7 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf /// "); - #line 271 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 265 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(member.IsDeprecated) { @@ -834,14 +823,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" [Obsolete(\""); - #line 275 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 269 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.DeprecationMessage)); #line default #line hidden this.Write("\")]\r\n"); - #line 276 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 270 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -850,7 +839,7 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" public bool Is"); - #line 279 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 273 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default @@ -858,7 +847,7 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf this.Write("Set\r\n {\r\n get\r\n {\r\n return Amazon.Uti" + "l.Internal.InternalSDKUtils.GetIsSet(this."); - #line 283 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 277 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default @@ -866,14 +855,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf this.Write(");\r\n }\r\n set\r\n {\r\n Amazon.Util.In" + "ternal.InternalSDKUtils.SetIsSet(value, ref this."); - #line 287 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 281 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(");\r\n"); - #line 288 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 282 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if(member.IsBackwardsCompatibleDateTimeProperty) { @@ -884,14 +873,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf this.Write(" \r\n Amazon.Util.Internal.InternalSDKUtils.SetIsSet(value, ref thi" + "s."); - #line 292 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 286 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityVariableName)); #line default #line hidden this.Write(");\r\n"); - #line 293 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 287 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -900,7 +889,7 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" }\r\n }\r\n\r\n"); - #line 299 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 293 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -909,21 +898,21 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" // Check to see if "); - #line 302 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 296 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write(" property is set\r\n internal bool IsSet"); - #line 303 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 297 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write("()\r\n {\r\n"); - #line 305 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 299 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if (member.EmitIsSetProperties) { @@ -933,14 +922,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" return this.Is"); - #line 309 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 303 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write("Set; \r\n"); - #line 310 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 304 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else if (member.IsNullable) @@ -951,14 +940,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" return this."); - #line 315 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 309 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(".HasValue; \r\n"); - #line 316 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 310 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else if (member.IsList && (member.MarshallLocation == MarshallLocation.Header || member.MarshallLocation == MarshallLocation.Headers)) @@ -971,21 +960,21 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" return this."); - #line 323 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 317 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(" != null && this."); - #line 323 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 317 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(".Count > 0;\r\n"); - #line 324 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 318 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else if (member.IsMap || member.IsList) @@ -996,21 +985,21 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" return this."); - #line 329 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 323 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(" != null && (this."); - #line 329 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 323 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(".Count > 0 || !AWSConfigs.InitializeCollections); \r\n"); - #line 330 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 324 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else if (member.IsDocument) @@ -1021,14 +1010,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" return !this."); - #line 335 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 329 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(".IsNull();\r\n"); - #line 336 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 330 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else @@ -1043,14 +1032,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" return !string.IsNullOrEmpty(this."); - #line 345 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 339 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(");\r\n"); - #line 346 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 340 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } else @@ -1061,14 +1050,14 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" return this."); - #line 351 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 345 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(" != null;\r\n"); - #line 352 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 346 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } } @@ -1078,76 +1067,10 @@ public override void GetObjectData(System.Runtime.Serialization.SerializationInf #line hidden this.Write(" }\r\n\r\n"); - #line 358 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 352 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } - if (this.StructureType == StructureType.Request && this.Operation.AuthType.HasValue) - { - - - #line default - #line hidden - this.Write(" /// \r\n /// Get the signer to use for this request.\r\n " + - " /// \r\n /// A signer for this request.\r\n " + - " override protected AbstractAWSSigner CreateSigner()\r\n {\r\n"); - - #line 370 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" - - switch (this.Operation.AuthType.Value) - { - case OperationAuthType.None: - - - #line default - #line hidden - this.Write(" return new NullSigner();\r\n"); - - #line 376 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" - - break; - case OperationAuthType.V4: - - - #line default - #line hidden - this.Write(" return new AWS4Signer();\r\n"); - - #line 381 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" - - break; - case OperationAuthType.V4UnsignedBody: - - - #line default - #line hidden - this.Write(" return new AWS4Signer(false);\r\n"); - - #line 386 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" - - break; - case OperationAuthType.Bearer: - - - #line default - #line hidden - this.Write(" return new BearerTokenSigner();\r\n"); - - #line 391 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" - - break; - default: - throw new ArgumentException("Unhandled value for operation authtype:" + this.Operation.AuthType.Value); - } - - - #line default - #line hidden - this.Write(" }\r\n"); - - #line 398 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" - - } // Flexible checksum overrides to allow response validation configuration on the request if (this.StructureType == StructureType.Request && !string.IsNullOrEmpty(this.Operation.ChecksumConfiguration?.RequestValidationModeMember)) { @@ -1166,7 +1089,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode { if (IsSet"); - #line 412 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 367 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Operation.ChecksumConfiguration.RequestValidationModeMember)); #line default @@ -1174,7 +1097,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode this.Write("())\r\n {\r\n return (CoreChecksumResponseBehavior)" + "Enum.Parse(typeof(CoreChecksumResponseBehavior), this."); - #line 414 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 369 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Operation.ChecksumConfiguration.RequestValidationModeMember)); #line default @@ -1184,7 +1107,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode "ithm> _supportedChecksumAlgorithms = new List\r\n {\r" + "\n "); - #line 423 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 378 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(string.Join(", ", Operation.ChecksumConfiguration?.ResponseAlgorithms?.Select(s => $"CoreChecksumAlgorithm.{s}").ToArray()))); #line default @@ -1199,7 +1122,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode #endregion "); - #line 431 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 386 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -1211,7 +1134,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode #line hidden this.Write("#region Backwards compatible properties\r\n"); - #line 438 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 393 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" foreach(var member in this.Structure.Members) { @@ -1223,27 +1146,27 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode #line hidden this.Write(" private "); - #line 444 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 399 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.DetermineType())); #line default #line hidden this.Write(" "); - #line 444 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 399 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityVariableName)); #line default #line hidden - #line 444 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 399 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.IsCollection ? string.Format(" = AWSConfigs.InitializeCollections ? new {0}() : null;", member.DetermineType()) : ";")); #line default #line hidden this.Write("\r\n"); - #line 445 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 400 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -1252,7 +1175,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode #line hidden this.Write("\r\n"); - #line 449 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 404 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" foreach(var member in this.Structure.Members) { @@ -1263,7 +1186,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode #line default #line hidden - #line 455 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 410 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.FormatPropertyDocumentation(member, "This property is deprecated. Setting this property results in non-UTC DateTimes " + "not being marshalled correctly. Use " + member.PropertyName + " instead. Setting either " + member.BackwardCompatibilityPropertyName + " or " + member.PropertyName + " results in both " + member.BackwardCompatibilityPropertyName + " and " + @@ -1276,35 +1199,35 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode this.Write(" [Obsolete(\"Setting this property results in non-UTC DateTimes not being m" + "arshalled correctly. \" +\r\n \"Use "); - #line 462 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write(" instead. Setting either "); - #line 462 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityPropertyName)); #line default #line hidden this.Write(" or "); - #line 462 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write(" results in both "); - #line 462 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 417 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityPropertyName)); #line default #line hidden this.Write(" and \" +\r\n \""); - #line 463 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 418 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default @@ -1312,7 +1235,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode this.Write(" being assigned, the latest assignment to either one of the two property is \" + \r" + "\n \"reflected in the value of both. "); - #line 464 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 419 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityPropertyName)); #line default @@ -1321,41 +1244,41 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode "on-Utc DateTime to it results in the wrong timestamp being passed to the service" + ".\", false)]\r\n "); - #line 466 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.AccessModifier)); #line default #line hidden this.Write(" "); - #line 466 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.DetermineType())); #line default #line hidden - #line 466 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.UseNullable ? "?" : "")); #line default #line hidden this.Write(" "); - #line 466 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 421 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityPropertyName)); #line default #line hidden this.Write("\r\n {\r\n get { return this."); - #line 468 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 423 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityVariableName)); #line default #line hidden this.Write(".GetValueOrDefault(); }\r\n set\r\n {\r\n this."); - #line 471 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 426 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityVariableName)); #line default @@ -1363,7 +1286,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode this.Write(" = value;\r\n if (value != null)\r\n {\r\n " + " this."); - #line 474 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 429 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default @@ -1371,14 +1294,14 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode this.Write(" = new DateTime(value.Value.Ticks, DateTimeKind.Utc);\r\n }\r\n " + " else\r\n {\r\n this."); - #line 478 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 433 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(" = null;\r\n }\r\n }\r\n }\r\n"); - #line 482 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 437 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if (member.EmitIsSetProperties) { @@ -1389,7 +1312,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode this.Write(" /// \r\n /// This property is set to true if the property <" + "seealso cref=\""); - #line 487 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 442 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityPropertyName)); #line default @@ -1405,42 +1328,42 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode /// [Obsolete(""Setting "); - #line 496 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 451 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityPropertyName)); #line default #line hidden this.Write(" results in non-UTC DateTimes not being marshalled correctly. Use "); - #line 496 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 451 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write(" instead.\", false)]\r\n public bool Is"); - #line 497 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 452 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.BackwardCompatibilityPropertyName)); #line default #line hidden this.Write("Set\r\n {\r\n get\r\n {\r\n return this.Is"); - #line 501 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 456 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write("Set;\r\n }\r\n set\r\n {\r\n this.Is"); - #line 505 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 460 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.PropertyName)); #line default #line hidden this.Write("Set = value;;\r\n }\r\n }\r\n"); - #line 508 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 463 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } } @@ -1451,7 +1374,7 @@ protected override CoreChecksumResponseBehavior CoreChecksumMode #line hidden this.Write("#endregion\r\n"); - #line 514 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 469 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } if (this.Structure is ExceptionShape) @@ -1476,7 +1399,7 @@ public override RetryableDetails Retryable } "); - #line 533 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 488 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } } @@ -1491,7 +1414,7 @@ public override RetryableDetails Retryable #line hidden this.Write("\r\n"); - #line 543 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 498 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } if (this.StructureType == StructureType.Response && hasStreamingMember) @@ -1525,7 +1448,7 @@ protected virtual void Dispose(bool disposing) { "); - #line 571 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 526 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" if (this.Structure != null) { @@ -1539,21 +1462,21 @@ protected virtual void Dispose(bool disposing) #line hidden this.Write(" this."); - #line 579 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 534 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write("?.Dispose();\r\n this."); - #line 580 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 535 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(member.VariableName)); #line default #line hidden this.Write(" = null;\r\n"); - #line 581 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 536 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } } @@ -1565,7 +1488,7 @@ protected virtual void Dispose(bool disposing) this.Write(" }\r\n\r\n this._disposed = true;\r\n }\r\n\r\n #endr" + "egion\r\n"); - #line 592 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 547 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" } @@ -1576,7 +1499,7 @@ protected virtual void Dispose(bool disposing) return this.GenerationEnvironment.ToString(); } - #line 598 "C:\Projects\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" + #line 553 "C:\repos\aws-sdk-net-v4\generator\ServiceClientGeneratorLib\Generators\SourceFiles\StructureGenerator.tt" // Set to true when the service model specifies a shape that should be wrapped in a response. ElastiCache CreateCacheCluster is an example of this. public bool IsWrapped { get; set; } diff --git a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/StructureGenerator.tt b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/StructureGenerator.tt index 1b96f94fffee..16ab4509088c 100644 --- a/generator/ServiceClientGeneratorLib/Generators/SourceFiles/StructureGenerator.tt +++ b/generator/ServiceClientGeneratorLib/Generators/SourceFiles/StructureGenerator.tt @@ -20,12 +20,6 @@ using Amazon.Runtime.Internal; bool structureIsNotEventStream = this.Structure != null && !this.Structure.IsEventStream; bool structureIsEventStream = this.Structure != null && this.Structure.IsEventStream; bool structureIsEvent = this.Structure != null && this.Structure.IsEvent; -if(this.StructureType == StructureType.Request && this.Operation.AuthType.HasValue) -{ -#> -using Amazon.Runtime.Internal.Auth; -<# -} #> <# if(structureIsEvent || structureIsEventStream) @@ -358,45 +352,6 @@ namespace <#=this.Config.Namespace#>.Model <# } - if (this.StructureType == StructureType.Request && this.Operation.AuthType.HasValue) - { -#> - /// - /// Get the signer to use for this request. - /// - /// A signer for this request. - override protected AbstractAWSSigner CreateSigner() - { -<# - switch (this.Operation.AuthType.Value) - { - case OperationAuthType.None: -#> - return new NullSigner(); -<# - break; - case OperationAuthType.V4: -#> - return new AWS4Signer(); -<# - break; - case OperationAuthType.V4UnsignedBody: -#> - return new AWS4Signer(false); -<# - break; - case OperationAuthType.Bearer: -#> - return new BearerTokenSigner(); -<# - break; - default: - throw new ArgumentException("Unhandled value for operation authtype:" + this.Operation.AuthType.Value); - } -#> - } -<# - } // Flexible checksum overrides to allow response validation configuration on the request if (this.StructureType == StructureType.Request && !string.IsNullOrEmpty(this.Operation.ChecksumConfiguration?.RequestValidationModeMember)) { diff --git a/generator/ServiceModels/cognito-sync/cognito-sync.customizations.json b/generator/ServiceModels/cognito-sync/cognito-sync.customizations.json index 54ad2c74f2ac..76b5f5b558e4 100644 --- a/generator/ServiceModels/cognito-sync/cognito-sync.customizations.json +++ b/generator/ServiceModels/cognito-sync/cognito-sync.customizations.json @@ -9,7 +9,7 @@ "operation":"addBefore", "newType":"Amazon.CognitoSync.Internal.CognitoCredentialsRetriever", "targetType":"Amazon.Runtime.Internal.Marshaller", - "constructorInput":"this.Credentials" + "constructorInput":"this.DefaultAWSCredentials" } ] }, diff --git a/generator/ServiceModels/docdb/docdb.customizations.json b/generator/ServiceModels/docdb/docdb.customizations.json index e7cbb75d36ae..d1ba2737e3ec 100644 --- a/generator/ServiceModels/docdb/docdb.customizations.json +++ b/generator/ServiceModels/docdb/docdb.customizations.json @@ -5,7 +5,7 @@ "operation": "addBefore", "newType": "Amazon.DocDB.Internal.PreSignedUrlRequestHandler", "targetType": "Amazon.Runtime.Internal.Marshaller", - "constructorInput": "this.Credentials" + "constructorInput": "this.DefaultAWSCredentials" } ] } diff --git a/generator/ServiceModels/ec2/ec2.customizations.json b/generator/ServiceModels/ec2/ec2.customizations.json index 3b9538eedc03..c88b57e1dc0a 100644 --- a/generator/ServiceModels/ec2/ec2.customizations.json +++ b/generator/ServiceModels/ec2/ec2.customizations.json @@ -5,7 +5,7 @@ "operation": "addBefore", "newType": "Amazon.EC2.Internal.AmazonEC2PreMarshallHandler", "targetType": "Amazon.Runtime.Internal.Marshaller", - "constructorInput": "this.Credentials" + "constructorInput": "this.DefaultAWSCredentials" }, { "operation": "addAfter", diff --git a/generator/ServiceModels/neptune/neptune.customizations.json b/generator/ServiceModels/neptune/neptune.customizations.json index 1bb78afe3574..07149923fbf3 100644 --- a/generator/ServiceModels/neptune/neptune.customizations.json +++ b/generator/ServiceModels/neptune/neptune.customizations.json @@ -40,7 +40,7 @@ "operation": "addBefore", "newType": "Amazon.Neptune.Internal.PreSignedUrlRequestHandler", "targetType": "Amazon.Runtime.Internal.Marshaller", - "constructorInput": "this.Credentials" + "constructorInput": "this.DefaultAWSCredentials" } ] } diff --git a/generator/ServiceModels/rds/rds.customizations.json b/generator/ServiceModels/rds/rds.customizations.json index 7c5554733b5d..7bb95bf36a45 100644 --- a/generator/ServiceModels/rds/rds.customizations.json +++ b/generator/ServiceModels/rds/rds.customizations.json @@ -20,7 +20,7 @@ "operation": "addBefore", "newType": "Amazon.RDS.Internal.PreSignedUrlRequestHandler", "targetType": "Amazon.Runtime.Internal.Marshaller", - "constructorInput": "this.Credentials" + "constructorInput": "this.DefaultAWSCredentials" } ] }, diff --git a/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs b/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs index af4c29dd347c..eceaeea05313 100644 --- a/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs +++ b/sdk/src/Core/Amazon.Runtime/AmazonServiceClient.cs @@ -162,7 +162,6 @@ protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config) config.Validate(); this.DefaultAWSCredentials = credentials; _config = config; - Signer = CreateSigner(); EndpointDiscoveryResolver = new EndpointDiscoveryResolver(config, _logger); Initialize(); UpdateSecurityProtocol(); @@ -171,12 +170,6 @@ protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config) _uptimeMetricMeasurer = MetricsUtilities.MeasureDuration(config, TelemetryConstants.ClientUptimeMetricName); } - protected AbstractAWSSigner Signer - { - get; - private set; - } - protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, ClientConfig config) : this(new SessionAWSCredentials(awsAccessKeyId, awsSecretAccessKey, awsSessionToken), config) { @@ -187,6 +180,11 @@ protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, { } + protected AmazonServiceClient(ClientConfig config) + : this(null, config) + { + } + protected virtual void Initialize() { } @@ -202,7 +200,7 @@ protected TResponse Invoke(AmazonWebServiceRequest request, InvokeOpt ThrowIfDisposed(); var executionContext = new ExecutionContext( - new RequestContext(this.Config.LogMetrics, Signer) + new RequestContext(this.Config.LogMetrics) { ClientConfig = this.Config, Marshaller = options.RequestMarshaller, @@ -233,7 +231,7 @@ protected System.Threading.Tasks.Task InvokeAsync( cancellationToken = _config.BuildDefaultCancellationToken(); var executionContext = new ExecutionContext( - new RequestContext(this.Config.LogMetrics, Signer) + new RequestContext(this.Config.LogMetrics) { ClientConfig = this.Config, Marshaller = options.RequestMarshaller, @@ -302,7 +300,7 @@ protected virtual void ProcessExceptionHandlers(IExecutionContext executionConte mExceptionEvent(this, args); } -#endregion + #endregion #region Dispose methods @@ -335,9 +333,8 @@ private void ThrowIfDisposed() throw new ObjectDisposedException(GetType().FullName); } -#endregion + #endregion - protected abstract AbstractAWSSigner CreateSigner(); protected virtual void CustomizeRuntimePipeline(RuntimePipeline pipeline) { } private void BuildRuntimePipeline() @@ -469,7 +466,7 @@ public static Uri ComposeUrl(IRequest iRequest) /// If true the accepted path characters {/+:} are not encoded. /// Uri for the given SDK request public static Uri ComposeUrl(IRequest internalRequest, bool skipEncodingValidPathChars) - { + { Uri url = internalRequest.Endpoint; var resourcePath = internalRequest.ResourcePath; if (resourcePath == null) @@ -532,7 +529,7 @@ public static Uri ComposeUrl(IRequest internalRequest, bool skipEncodingValidPat DontUnescapePathDotsAndSlashes(uri); return uri; } - + /// /// Patches the in-flight uri to stop it unescaping the path etc (what Uri did before @@ -625,6 +622,6 @@ private static void SetupCSMHandler(IRequestContext requestContext) { requestContext.CSMCallEvent = new MonitoringAPICallEvent(requestContext); } - } + } } } diff --git a/sdk/src/Core/Amazon.Runtime/Internal/AmazonWebServiceRequest.cs b/sdk/src/Core/Amazon.Runtime/Internal/AmazonWebServiceRequest.cs index 188dcab45c79..71cb36c31272 100644 --- a/sdk/src/Core/Amazon.Runtime/Internal/AmazonWebServiceRequest.cs +++ b/sdk/src/Core/Amazon.Runtime/Internal/AmazonWebServiceRequest.cs @@ -58,22 +58,6 @@ internal bool GetIncludeSHA256Header() return this.IncludeSHA256Header; } - /// - /// Gets the signer to use for this request. - /// A null return value indicates to use the configured - /// signer for the service that this request is part of. - /// - /// A signer for this request, or null. - protected virtual AbstractAWSSigner CreateSigner() - { - return null; - } - - internal AbstractAWSSigner GetSigner() - { - return CreateSigner(); - } - /// /// Checksum validation behavior for validating the integrity of this request's response /// diff --git a/sdk/src/Core/Amazon.Runtime/Pipeline/Contexts.cs b/sdk/src/Core/Amazon.Runtime/Pipeline/Contexts.cs index acaa23924355..bc6e6b173eb0 100644 --- a/sdk/src/Core/Amazon.Runtime/Pipeline/Contexts.cs +++ b/sdk/src/Core/Amazon.Runtime/Pipeline/Contexts.cs @@ -31,7 +31,7 @@ public interface IRequestContext ResponseUnmarshaller Unmarshaller { get; } InvokeOptionsBase Options { get; } RequestMetrics Metrics { get; } - AbstractAWSSigner Signer { get; } + AbstractAWSSigner Signer { get; set; } IClientConfig ClientConfig { get; } ImmutableCredentials ImmutableCredentials { get; set; } @@ -93,15 +93,16 @@ namespace Amazon.Runtime.Internal public class RequestContext : IRequestContext { private IServiceMetadata _serviceMetadata; - AbstractAWSSigner clientSigner; IDictionary _contextAttributes; - public RequestContext(bool enableMetrics, AbstractAWSSigner clientSigner) + public RequestContext(bool enableMetric) + : this (enableMetric, null) { - if (clientSigner == null) - throw new ArgumentNullException("clientSigner"); + } - this.clientSigner = clientSigner; + public RequestContext(bool enableMetrics, AbstractAWSSigner clientSigner) + { + this.Signer = clientSigner; this.Metrics = new RequestMetrics(); this.Metrics.IsEnabled = enableMetrics; this.InvocationId = Guid.NewGuid(); @@ -120,17 +121,7 @@ public RequestContext(bool enableMetrics, AbstractAWSSigner clientSigner) public ResponseUnmarshaller Unmarshaller { get; set; } public InvokeOptionsBase Options { get; set; } public ImmutableCredentials ImmutableCredentials { get; set; } - public AbstractAWSSigner Signer - { - get - { - var requestSigner = OriginalRequest == null ? null : OriginalRequest.GetSigner(); - if (requestSigner == null) - return clientSigner; - else - return requestSigner; - } - } + public AbstractAWSSigner Signer { get; set; } #if AWS_ASYNC_API public System.Threading.CancellationToken CancellationToken { get; set; } diff --git a/sdk/src/Services/AutoScaling/Generated/AmazonAutoScalingConfig.cs b/sdk/src/Services/AutoScaling/Generated/AmazonAutoScalingConfig.cs index 072ac3d988b6..6d97cf1fb4e2 100644 --- a/sdk/src/Services/AutoScaling/Generated/AmazonAutoScalingConfig.cs +++ b/sdk/src/Services/AutoScaling/Generated/AmazonAutoScalingConfig.cs @@ -101,7 +101,7 @@ public override string UserAgent /// The resolved endpoint for the given request. public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters) { - var requestContext = new RequestContext(false, new AWS4Signer()) + var requestContext = new RequestContext(false) { ClientConfig = this, OriginalRequest = parameters.Request, diff --git a/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs b/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs index 1ad15d325987..91e625507ad3 100644 --- a/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs +++ b/sdk/src/Services/AutoScaling/Generated/_bcl/AmazonAutoScalingClient.cs @@ -230,15 +230,7 @@ public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, #endregion - #region Overrides - - /// - /// Creates the signer for the service. - /// - protected override AbstractAWSSigner CreateSigner() - { - return new AWS4Signer(); - } + #region Overrides /// /// Customize the pipeline diff --git a/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs b/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs index 83782a824c35..aae153f94b88 100644 --- a/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs +++ b/sdk/src/Services/AutoScaling/Generated/_netstandard/AmazonAutoScalingClient.cs @@ -236,14 +236,6 @@ public IAutoScalingPaginatorFactory Paginators #region Overrides - /// - /// Creates the signer for the service. - /// - protected override AbstractAWSSigner CreateSigner() - { - return new AWS4Signer(); - } - /// /// Customizes the runtime pipeline. /// diff --git a/sdk/test/UnitTests/Custom/Runtime/RetryHandlerTests.cs b/sdk/test/UnitTests/Custom/Runtime/RetryHandlerTests.cs index 5f1580e3fc72..a452c8385891 100644 --- a/sdk/test/UnitTests/Custom/Runtime/RetryHandlerTests.cs +++ b/sdk/test/UnitTests/Custom/Runtime/RetryHandlerTests.cs @@ -563,10 +563,5 @@ public MockServicePipelineValueClient(AWSCredentials credentials, ClientConfig c : base(credentials, clientConfig) { } - - protected override AbstractAWSSigner CreateSigner() - { - return new AWS4Signer(); - } } } diff --git a/sdk/test/UnitTests/Custom/Runtime/_bcl/BearerTokenServiceTests.cs b/sdk/test/UnitTests/Custom/Runtime/_bcl/BearerTokenServiceTests.cs index 8638035a60c6..e91291781362 100644 --- a/sdk/test/UnitTests/Custom/Runtime/_bcl/BearerTokenServiceTests.cs +++ b/sdk/test/UnitTests/Custom/Runtime/_bcl/BearerTokenServiceTests.cs @@ -18,7 +18,7 @@ namespace AWSSDK.UnitTests.Runtime /// . These tests combine as much real plumbing together as possible /// to ensure the plumbing is working. /// - /// A Bearer Auth Service is when returns + /// A Bearer Auth Service is when resolves /// . /// [TestClass]