Skip to content

Commit

Permalink
Run the generator to move DetermineServiceOperationEndpoint from clie…
Browse files Browse the repository at this point in the history
…nt to clientConfig
  • Loading branch information
muhammad-othman committed May 10, 2024
1 parent 22f0b2e commit 48dcdeb
Show file tree
Hide file tree
Showing 1,210 changed files with 12,286 additions and 8,110 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions sdk/AWSSDK.NetFramework.sln
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{12EC4E4B-7
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IntegrationTests.NetFramework", "test/IntegrationTests/AWSSDK.IntegrationTests.NetFramework.csproj", "{87D7508C-4786-48A6-8EF7-460153897415}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.ProtocolTests.NetFramework", "test/ProtocolTests/AWSSDK.ProtocolTests.NetFramework.csproj", "{657DC990-AA8C-49C7-AA82-8A7FF0FF84C8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SmokeTests.NetFramework", "test/SmokeTests/AWSSDK.SmokeTests.NetFramework.csproj", "{E60CCF2A-9BC5-44C2-9B34-980CEF1E81F3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTests.Custom.NetFramework", "test/UnitTests/AWSSDK.UnitTests.Custom.NetFramework.csproj", "{D49ADA66-FE3E-49B3-9A19-61AADD6A75E5}"
Expand Down Expand Up @@ -3250,6 +3252,10 @@ Global
{87D7508C-4786-48A6-8EF7-460153897415}.Debug|Any CPU.Build.0 = Debug|Any CPU
{87D7508C-4786-48A6-8EF7-460153897415}.Release|Any CPU.ActiveCfg = Release|Any CPU
{87D7508C-4786-48A6-8EF7-460153897415}.Release|Any CPU.Build.0 = Release|Any CPU
{657DC990-AA8C-49C7-AA82-8A7FF0FF84C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{657DC990-AA8C-49C7-AA82-8A7FF0FF84C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{657DC990-AA8C-49C7-AA82-8A7FF0FF84C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{657DC990-AA8C-49C7-AA82-8A7FF0FF84C8}.Release|Any CPU.Build.0 = Release|Any CPU
{E60CCF2A-9BC5-44C2-9B34-980CEF1E81F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E60CCF2A-9BC5-44C2-9B34-980CEF1E81F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E60CCF2A-9BC5-44C2-9B34-980CEF1E81F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -4087,6 +4093,7 @@ Global
{527CCE19-B9C3-4CDA-ACD7-125A39265631} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB}
{21EF41CA-6BD3-4810-9970-7DB173E2A2A9} = {527CCE19-B9C3-4CDA-ACD7-125A39265631}
{87D7508C-4786-48A6-8EF7-460153897415} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B}
{657DC990-AA8C-49C7-AA82-8A7FF0FF84C8} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B}
{E60CCF2A-9BC5-44C2-9B34-980CEF1E81F3} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B}
{D49ADA66-FE3E-49B3-9A19-61AADD6A75E5} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B}
{098ED49B-6D54-421E-99C9-08FF892C64A1} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B}
Expand Down
24 changes: 24 additions & 0 deletions sdk/src/Services/ACMPCA/Generated/AmazonACMPCAConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Endpoints;
using Amazon.ACMPCA.Internal;

namespace Amazon.ACMPCA
Expand All @@ -34,6 +36,9 @@ public partial class AmazonACMPCAConfig : ClientConfig
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("ACM PCA", "3.7.301.43");

private static readonly AmazonACMPCAEndpointResolver EndpointResolver =
new AmazonACMPCAEndpointResolver();

private string _userAgent = UserAgentString;
///<summary>
/// The ServiceId, which is the unique identifier for a service.
Expand Down Expand Up @@ -89,5 +94,24 @@ public override string UserAgent
}
}

/// <summary>
/// Returns the endpoint that will be used for a particular request.
/// </summary>
/// <param name="parameters">A Container class for parameters used for endpoint resolution.</param>
/// <returns>The resolved endpoint for the given request.</returns>
public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters)
{
var requestContext = new RequestContext(false, new AWS4Signer())
{
ClientConfig = this,
OriginalRequest = parameters.Request,
Request = new DefaultRequest(parameters.Request, ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
return EndpointResolver.GetEndpoint(executionContext);
}


}
}
13 changes: 3 additions & 10 deletions sdk/src/Services/ACMPCA/Generated/_bcl/AmazonACMPCAClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Endpoints;

#pragma warning disable CS1570
namespace Amazon.ACMPCA
Expand Down Expand Up @@ -3258,16 +3259,8 @@ public virtual UpdateCertificateAuthorityResponse UpdateCertificateAuthority(Upd
/// <returns>The resolved endpoint for the given request.</returns>
public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request)
{
var requestContext = new RequestContext(false, CreateSigner())
{
ClientConfig = Config,
OriginalRequest = request,
Request = new DefaultRequest(request, ServiceMetadata.ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
var resolver = new AmazonACMPCAEndpointResolver();
return resolver.GetEndpoint(executionContext);
var parameters = new ServiceOperationEndpointParameters(request);
return Config.DetermineServiceOperationEndpoint(parameters);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Endpoints;

#pragma warning disable CS1570
namespace Amazon.ACMPCA
Expand Down Expand Up @@ -2094,16 +2095,8 @@ internal virtual UpdateCertificateAuthorityResponse UpdateCertificateAuthority(U
/// <returns>The resolved endpoint for the given request.</returns>
public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request)
{
var requestContext = new RequestContext(false, CreateSigner())
{
ClientConfig = Config,
OriginalRequest = request,
Request = new DefaultRequest(request, ServiceMetadata.ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
var resolver = new AmazonACMPCAEndpointResolver();
return resolver.GetEndpoint(executionContext);
var parameters = new ServiceOperationEndpointParameters(request);
return Config.DetermineServiceOperationEndpoint(parameters);
}

#endregion
Expand Down
24 changes: 24 additions & 0 deletions sdk/src/Services/APIGateway/Generated/AmazonAPIGatewayConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Endpoints;
using Amazon.APIGateway.Internal;

namespace Amazon.APIGateway
Expand All @@ -34,6 +36,9 @@ public partial class AmazonAPIGatewayConfig : ClientConfig
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("API Gateway", "3.7.300.86");

private static readonly AmazonAPIGatewayEndpointResolver EndpointResolver =
new AmazonAPIGatewayEndpointResolver();

private string _userAgent = UserAgentString;
///<summary>
/// The ServiceId, which is the unique identifier for a service.
Expand Down Expand Up @@ -89,5 +94,24 @@ public override string UserAgent
}
}

/// <summary>
/// Returns the endpoint that will be used for a particular request.
/// </summary>
/// <param name="parameters">A Container class for parameters used for endpoint resolution.</param>
/// <returns>The resolved endpoint for the given request.</returns>
public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters)
{
var requestContext = new RequestContext(false, new AWS4Signer())
{
ClientConfig = this,
OriginalRequest = parameters.Request,
Request = new DefaultRequest(parameters.Request, ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
return EndpointResolver.GetEndpoint(executionContext);
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Endpoints;

#pragma warning disable CS1570
namespace Amazon.APIGateway
Expand Down Expand Up @@ -9110,16 +9111,8 @@ public virtual UpdateVpcLinkResponse UpdateVpcLink(UpdateVpcLinkRequest request)
/// <returns>The resolved endpoint for the given request.</returns>
public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request)
{
var requestContext = new RequestContext(false, CreateSigner())
{
ClientConfig = Config,
OriginalRequest = request,
Request = new DefaultRequest(request, ServiceMetadata.ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
var resolver = new AmazonAPIGatewayEndpointResolver();
return resolver.GetEndpoint(executionContext);
var parameters = new ServiceOperationEndpointParameters(request);
return Config.DetermineServiceOperationEndpoint(parameters);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Endpoints;

#pragma warning disable CS1570
namespace Amazon.APIGateway
Expand Down Expand Up @@ -6319,16 +6320,8 @@ internal virtual UpdateVpcLinkResponse UpdateVpcLink(UpdateVpcLinkRequest reques
/// <returns>The resolved endpoint for the given request.</returns>
public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request)
{
var requestContext = new RequestContext(false, CreateSigner())
{
ClientConfig = Config,
OriginalRequest = request,
Request = new DefaultRequest(request, ServiceMetadata.ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
var resolver = new AmazonAPIGatewayEndpointResolver();
return resolver.GetEndpoint(executionContext);
var parameters = new ServiceOperationEndpointParameters(request);
return Config.DetermineServiceOperationEndpoint(parameters);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Endpoints;
using Amazon.ARCZonalShift.Internal;

namespace Amazon.ARCZonalShift
Expand All @@ -34,6 +36,9 @@ public partial class AmazonARCZonalShiftConfig : ClientConfig
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("ARC Zonal Shift", "3.7.301.72");

private static readonly AmazonARCZonalShiftEndpointResolver EndpointResolver =
new AmazonARCZonalShiftEndpointResolver();

private string _userAgent = UserAgentString;
///<summary>
/// The ServiceId, which is the unique identifier for a service.
Expand Down Expand Up @@ -89,5 +94,24 @@ public override string UserAgent
}
}

/// <summary>
/// Returns the endpoint that will be used for a particular request.
/// </summary>
/// <param name="parameters">A Container class for parameters used for endpoint resolution.</param>
/// <returns>The resolved endpoint for the given request.</returns>
public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters)
{
var requestContext = new RequestContext(false, new AWS4Signer())
{
ClientConfig = this,
OriginalRequest = parameters.Request,
Request = new DefaultRequest(parameters.Request, ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
return EndpointResolver.GetEndpoint(executionContext);
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Endpoints;

#pragma warning disable CS1570
namespace Amazon.ARCZonalShift
Expand Down Expand Up @@ -1287,16 +1288,8 @@ public virtual UpdateZonalShiftResponse UpdateZonalShift(UpdateZonalShiftRequest
/// <returns>The resolved endpoint for the given request.</returns>
public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request)
{
var requestContext = new RequestContext(false, CreateSigner())
{
ClientConfig = Config,
OriginalRequest = request,
Request = new DefaultRequest(request, ServiceMetadata.ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
var resolver = new AmazonARCZonalShiftEndpointResolver();
return resolver.GetEndpoint(executionContext);
var parameters = new ServiceOperationEndpointParameters(request);
return Config.DetermineServiceOperationEndpoint(parameters);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Endpoints;

#pragma warning disable CS1570
namespace Amazon.ARCZonalShift
Expand Down Expand Up @@ -953,16 +954,8 @@ internal virtual UpdateZonalShiftResponse UpdateZonalShift(UpdateZonalShiftReque
/// <returns>The resolved endpoint for the given request.</returns>
public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request)
{
var requestContext = new RequestContext(false, CreateSigner())
{
ClientConfig = Config,
OriginalRequest = request,
Request = new DefaultRequest(request, ServiceMetadata.ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
var resolver = new AmazonARCZonalShiftEndpointResolver();
return resolver.GetEndpoint(executionContext);
var parameters = new ServiceOperationEndpointParameters(request);
return Config.DetermineServiceOperationEndpoint(parameters);
}

#endregion
Expand Down
24 changes: 24 additions & 0 deletions sdk/src/Services/AWSHealth/Generated/AmazonAWSHealthConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Endpoints;
using Amazon.AWSHealth.Internal;

namespace Amazon.AWSHealth
Expand All @@ -34,6 +36,9 @@ public partial class AmazonAWSHealthConfig : ClientConfig
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("Health", "3.7.300.84");

private static readonly AmazonAWSHealthEndpointResolver EndpointResolver =
new AmazonAWSHealthEndpointResolver();

private string _userAgent = UserAgentString;
///<summary>
/// The ServiceId, which is the unique identifier for a service.
Expand Down Expand Up @@ -89,5 +94,24 @@ public override string UserAgent
}
}

/// <summary>
/// Returns the endpoint that will be used for a particular request.
/// </summary>
/// <param name="parameters">A Container class for parameters used for endpoint resolution.</param>
/// <returns>The resolved endpoint for the given request.</returns>
public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters)
{
var requestContext = new RequestContext(false, new AWS4Signer())
{
ClientConfig = this,
OriginalRequest = parameters.Request,
Request = new DefaultRequest(parameters.Request, ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
return EndpointResolver.GetEndpoint(executionContext);
}


}
}
13 changes: 3 additions & 10 deletions sdk/src/Services/AWSHealth/Generated/_bcl/AmazonAWSHealthClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Endpoints;

#pragma warning disable CS1570
namespace Amazon.AWSHealth
Expand Down Expand Up @@ -1560,16 +1561,8 @@ public virtual EnableHealthServiceAccessForOrganizationResponse EnableHealthServ
/// <returns>The resolved endpoint for the given request.</returns>
public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request)
{
var requestContext = new RequestContext(false, CreateSigner())
{
ClientConfig = Config,
OriginalRequest = request,
Request = new DefaultRequest(request, ServiceMetadata.ServiceId)
};

var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
var resolver = new AmazonAWSHealthEndpointResolver();
return resolver.GetEndpoint(executionContext);
var parameters = new ServiceOperationEndpointParameters(request);
return Config.DetermineServiceOperationEndpoint(parameters);
}

#endregion
Expand Down
Loading

0 comments on commit 48dcdeb

Please sign in to comment.