From 63af174bdccaef19bdf4ce74fd89c8a697a72234 Mon Sep 17 00:00:00 2001 From: Howard Lopez Date: Fri, 3 Jan 2020 13:18:35 -0800 Subject: [PATCH 1/2] Add alias for ApiGatewayV2Client GetApi method --- src/ApiGatewayV2/ApiGatewayV2Client.php | 4 ++-- src/data/aliases.json | 5 +++++ src/data/aliases.json.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ApiGatewayV2/ApiGatewayV2Client.php b/src/ApiGatewayV2/ApiGatewayV2Client.php index c5ae91e49c..5f0500197a 100644 --- a/src/ApiGatewayV2/ApiGatewayV2Client.php +++ b/src/ApiGatewayV2/ApiGatewayV2Client.php @@ -53,8 +53,8 @@ * @method \GuzzleHttp\Promise\Promise deleteRouteSettingsAsync(array $args = []) * @method \Aws\Result deleteStage(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteStageAsync(array $args = []) - * @method \Aws\Result getApi(array $args = []) - * @method \GuzzleHttp\Promise\Promise getApiAsync(array $args = []) + * @method \Aws\Result getApiResource(array $args = []) + * @method \GuzzleHttp\Promise\Promise getApiResourceAsync(array $args = []) * @method \Aws\Result getApiMapping(array $args = []) * @method \GuzzleHttp\Promise\Promise getApiMappingAsync(array $args = []) * @method \Aws\Result getApiMappings(array $args = []) diff --git a/src/data/aliases.json b/src/data/aliases.json index 2637851391..2b8ab3f1e6 100644 --- a/src/data/aliases.json +++ b/src/data/aliases.json @@ -1,5 +1,10 @@ { "operations": { + "ApiGatewayV2": { + "2018-11-29": { + "GetApi": "GetApiResource" + } + }, "CloudHSM": { "2014-05-30": { "GetConfig": "GetConfigFiles" diff --git a/src/data/aliases.json.php b/src/data/aliases.json.php index e36ecf0820..b6270471d0 100644 --- a/src/data/aliases.json.php +++ b/src/data/aliases.json.php @@ -1,3 +1,3 @@ [ 'CloudHSM' => [ '2014-05-30' => [ 'GetConfig' => 'GetConfigFiles', ], ], 'GroundStation' => [ '2019-05-23' => [ 'GetConfig' => 'GetMissionProfileConfig', ], ], 'Pinpoint' => [ '2016-12-01' => [ 'GetEndpoint' => 'GetUserEndpoint', 'UpdateEndpoint' => 'UpdateUserEndpoint', 'UpdateEndpointsBatch' => 'UpdateUserEndpointsBatch', ], ], ],]; +return [ 'operations' => [ 'ApiGatewayV2' => [ '2018-11-29' => [ 'GetApi' => 'GetApiResource', ], ], 'CloudHSM' => [ '2014-05-30' => [ 'GetConfig' => 'GetConfigFiles', ], ], 'GroundStation' => [ '2019-05-23' => [ 'GetConfig' => 'GetMissionProfileConfig', ], ], 'Pinpoint' => [ '2016-12-01' => [ 'GetEndpoint' => 'GetUserEndpoint', 'UpdateEndpoint' => 'UpdateUserEndpoint', 'UpdateEndpointsBatch' => 'UpdateUserEndpointsBatch', ], ], ],]; From 523e39bd28268b813ad1a1a4314a2f2f951c5fa1 Mon Sep 17 00:00:00 2001 From: Howard Lopez Date: Fri, 3 Jan 2020 13:20:58 -0800 Subject: [PATCH 2/2] Add changelog --- .changes/nextrelease/apigateway_v2_alias.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changes/nextrelease/apigateway_v2_alias.json diff --git a/.changes/nextrelease/apigateway_v2_alias.json b/.changes/nextrelease/apigateway_v2_alias.json new file mode 100644 index 0000000000..fea51113da --- /dev/null +++ b/.changes/nextrelease/apigateway_v2_alias.json @@ -0,0 +1,7 @@ +[ + { + "type": "enhancement", + "category": "ApiGatewayV2", + "description": "Adds an alias 'GetApiResource' for the 'GetApi' operation to avoid a naming conflict with the generic AwsClient 'GetApi' method." + } +]