Skip to content

Commit 5cb9c7b

Browse files
authored
chore(protocol_tests): regenerate protocol test clients (#2072)
1 parent 48cbebe commit 5cb9c7b

File tree

49 files changed

+2953
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2953
-44
lines changed

clients/client-application-discovery-service/protocols/Aws_json1_1.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ export const serializeAws_json1_1ExportConfigurationsCommand = async (
347347
"content-type": "application/x-amz-json-1.1",
348348
"x-amz-target": "AWSPoseidonService_V2015_11_01.ExportConfigurations",
349349
};
350-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
350+
const body = "{}";
351+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
351352
};
352353

353354
export const serializeAws_json1_1GetDiscoverySummaryCommand = async (

clients/client-config-service/protocols/Aws_json1_1.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,8 @@ export const serializeAws_json1_1GetComplianceSummaryByConfigRuleCommand = async
11931193
"content-type": "application/x-amz-json-1.1",
11941194
"x-amz-target": "StarlingDoveService.GetComplianceSummaryByConfigRule",
11951195
};
1196-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
1196+
const body = "{}";
1197+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
11971198
};
11981199

11991200
export const serializeAws_json1_1GetComplianceSummaryByResourceTypeCommand = async (

clients/client-direct-connect/protocols/Aws_json1_1.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,8 @@ export const serializeAws_json1_1DescribeLocationsCommand = async (
871871
"content-type": "application/x-amz-json-1.1",
872872
"x-amz-target": "OvertureService.DescribeLocations",
873873
};
874-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
874+
const body = "{}";
875+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
875876
};
876877

877878
export const serializeAws_json1_1DescribeTagsCommand = async (
@@ -895,7 +896,8 @@ export const serializeAws_json1_1DescribeVirtualGatewaysCommand = async (
895896
"content-type": "application/x-amz-json-1.1",
896897
"x-amz-target": "OvertureService.DescribeVirtualGateways",
897898
};
898-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
899+
const body = "{}";
900+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
899901
};
900902

901903
export const serializeAws_json1_1DescribeVirtualInterfacesCommand = async (

clients/client-frauddetector/protocols/Aws_json1_1.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@ export const serializeAws_json1_1GetKMSEncryptionKeyCommand = async (
602602
"content-type": "application/x-amz-json-1.1",
603603
"x-amz-target": "AWSHawksNestServiceFacade.GetKMSEncryptionKey",
604604
};
605-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
605+
const body = "{}";
606+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
606607
};
607608

608609
export const serializeAws_json1_1GetLabelsCommand = async (

clients/client-health/protocols/Aws_json1_1.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ export const serializeAws_json1_1DescribeHealthServiceStatusForOrganizationComma
239239
"content-type": "application/x-amz-json-1.1",
240240
"x-amz-target": "AWSHealth_20160804.DescribeHealthServiceStatusForOrganization",
241241
};
242-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
242+
const body = "{}";
243+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
243244
};
244245

245246
export const serializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand = async (
@@ -250,7 +251,8 @@ export const serializeAws_json1_1DisableHealthServiceAccessForOrganizationComman
250251
"content-type": "application/x-amz-json-1.1",
251252
"x-amz-target": "AWSHealth_20160804.DisableHealthServiceAccessForOrganization",
252253
};
253-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
254+
const body = "{}";
255+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
254256
};
255257

256258
export const serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand = async (
@@ -261,7 +263,8 @@ export const serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand
261263
"content-type": "application/x-amz-json-1.1",
262264
"x-amz-target": "AWSHealth_20160804.EnableHealthServiceAccessForOrganization",
263265
};
264-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
266+
const body = "{}";
267+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
265268
};
266269

267270
export const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand = async (

clients/client-inspector/protocols/Aws_json1_1.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ export const serializeAws_json1_1DescribeCrossAccountAccessRoleCommand = async (
388388
"content-type": "application/x-amz-json-1.1",
389389
"x-amz-target": "InspectorService.DescribeCrossAccountAccessRole",
390390
};
391-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
391+
const body = "{}";
392+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
392393
};
393394

394395
export const serializeAws_json1_1DescribeExclusionsCommand = async (

clients/client-opsworks/protocols/Aws_json1_1.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,8 @@ export const serializeAws_json1_1DescribeMyUserProfileCommand = async (
729729
"content-type": "application/x-amz-json-1.1",
730730
"x-amz-target": "OpsWorks_20130218.DescribeMyUserProfile",
731731
};
732-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
732+
const body = "{}";
733+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
733734
};
734735

735736
export const serializeAws_json1_1DescribeOperatingSystemsCommand = async (
@@ -740,7 +741,8 @@ export const serializeAws_json1_1DescribeOperatingSystemsCommand = async (
740741
"content-type": "application/x-amz-json-1.1",
741742
"x-amz-target": "OpsWorks_20130218.DescribeOperatingSystems",
742743
};
743-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
744+
const body = "{}";
745+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
744746
};
745747

746748
export const serializeAws_json1_1DescribePermissionsCommand = async (

clients/client-organizations/protocols/Aws_json1_1.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ export const serializeAws_json1_1DeleteOrganizationCommand = async (
411411
"content-type": "application/x-amz-json-1.1",
412412
"x-amz-target": "AWSOrganizationsV20161128.DeleteOrganization",
413413
};
414-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
414+
const body = "{}";
415+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
415416
};
416417

417418
export const serializeAws_json1_1DeleteOrganizationalUnitCommand = async (
@@ -513,7 +514,8 @@ export const serializeAws_json1_1DescribeOrganizationCommand = async (
513514
"content-type": "application/x-amz-json-1.1",
514515
"x-amz-target": "AWSOrganizationsV20161128.DescribeOrganization",
515516
};
516-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
517+
const body = "{}";
518+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
517519
};
518520

519521
export const serializeAws_json1_1DescribeOrganizationalUnitCommand = async (
@@ -641,7 +643,8 @@ export const serializeAws_json1_1LeaveOrganizationCommand = async (
641643
"content-type": "application/x-amz-json-1.1",
642644
"x-amz-target": "AWSOrganizationsV20161128.LeaveOrganization",
643645
};
644-
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
646+
const body = "{}";
647+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
645648
};
646649

647650
export const serializeAws_json1_1ListAccountsCommand = async (

protocol_tests/aws-ec2/EC2Protocol.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ import {
44
EmptyInputAndEmptyOutputCommandInput,
55
EmptyInputAndEmptyOutputCommandOutput,
66
} from "./commands/EmptyInputAndEmptyOutputCommand";
7+
import {
8+
EndpointOperationCommand,
9+
EndpointOperationCommandInput,
10+
EndpointOperationCommandOutput,
11+
} from "./commands/EndpointOperationCommand";
12+
import {
13+
EndpointWithHostLabelOperationCommand,
14+
EndpointWithHostLabelOperationCommandInput,
15+
EndpointWithHostLabelOperationCommandOutput,
16+
} from "./commands/EndpointWithHostLabelOperationCommand";
717
import {
818
GreetingWithErrorsCommand,
919
GreetingWithErrorsCommandInput,
@@ -114,6 +124,64 @@ export class EC2Protocol extends EC2ProtocolClient {
114124
}
115125
}
116126

127+
public endpointOperation(
128+
args: EndpointOperationCommandInput,
129+
options?: __HttpHandlerOptions
130+
): Promise<EndpointOperationCommandOutput>;
131+
public endpointOperation(
132+
args: EndpointOperationCommandInput,
133+
cb: (err: any, data?: EndpointOperationCommandOutput) => void
134+
): void;
135+
public endpointOperation(
136+
args: EndpointOperationCommandInput,
137+
options: __HttpHandlerOptions,
138+
cb: (err: any, data?: EndpointOperationCommandOutput) => void
139+
): void;
140+
public endpointOperation(
141+
args: EndpointOperationCommandInput,
142+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: EndpointOperationCommandOutput) => void),
143+
cb?: (err: any, data?: EndpointOperationCommandOutput) => void
144+
): Promise<EndpointOperationCommandOutput> | void {
145+
const command = new EndpointOperationCommand(args);
146+
if (typeof optionsOrCb === "function") {
147+
this.send(command, optionsOrCb);
148+
} else if (typeof cb === "function") {
149+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150+
this.send(command, optionsOrCb || {}, cb);
151+
} else {
152+
return this.send(command, optionsOrCb);
153+
}
154+
}
155+
156+
public endpointWithHostLabelOperation(
157+
args: EndpointWithHostLabelOperationCommandInput,
158+
options?: __HttpHandlerOptions
159+
): Promise<EndpointWithHostLabelOperationCommandOutput>;
160+
public endpointWithHostLabelOperation(
161+
args: EndpointWithHostLabelOperationCommandInput,
162+
cb: (err: any, data?: EndpointWithHostLabelOperationCommandOutput) => void
163+
): void;
164+
public endpointWithHostLabelOperation(
165+
args: EndpointWithHostLabelOperationCommandInput,
166+
options: __HttpHandlerOptions,
167+
cb: (err: any, data?: EndpointWithHostLabelOperationCommandOutput) => void
168+
): void;
169+
public endpointWithHostLabelOperation(
170+
args: EndpointWithHostLabelOperationCommandInput,
171+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: EndpointWithHostLabelOperationCommandOutput) => void),
172+
cb?: (err: any, data?: EndpointWithHostLabelOperationCommandOutput) => void
173+
): Promise<EndpointWithHostLabelOperationCommandOutput> | void {
174+
const command = new EndpointWithHostLabelOperationCommand(args);
175+
if (typeof optionsOrCb === "function") {
176+
this.send(command, optionsOrCb);
177+
} else if (typeof cb === "function") {
178+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
179+
this.send(command, optionsOrCb || {}, cb);
180+
} else {
181+
return this.send(command, optionsOrCb);
182+
}
183+
}
184+
117185
/**
118186
* This operation has three possible return values:
119187
*

protocol_tests/aws-ec2/EC2ProtocolClient.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import {
22
EmptyInputAndEmptyOutputCommandInput,
33
EmptyInputAndEmptyOutputCommandOutput,
44
} from "./commands/EmptyInputAndEmptyOutputCommand";
5+
import { EndpointOperationCommandInput, EndpointOperationCommandOutput } from "./commands/EndpointOperationCommand";
6+
import {
7+
EndpointWithHostLabelOperationCommandInput,
8+
EndpointWithHostLabelOperationCommandOutput,
9+
} from "./commands/EndpointWithHostLabelOperationCommand";
510
import { GreetingWithErrorsCommandInput, GreetingWithErrorsCommandOutput } from "./commands/GreetingWithErrorsCommand";
611
import {
712
IgnoresWrappingXmlNameCommandInput,
@@ -81,6 +86,8 @@ import {
8186

8287
export type ServiceInputTypes =
8388
| EmptyInputAndEmptyOutputCommandInput
89+
| EndpointOperationCommandInput
90+
| EndpointWithHostLabelOperationCommandInput
8491
| GreetingWithErrorsCommandInput
8592
| IgnoresWrappingXmlNameCommandInput
8693
| NestedStructuresCommandInput
@@ -101,6 +108,8 @@ export type ServiceInputTypes =
101108

102109
export type ServiceOutputTypes =
103110
| EmptyInputAndEmptyOutputCommandOutput
111+
| EndpointOperationCommandOutput
112+
| EndpointWithHostLabelOperationCommandOutput
104113
| GreetingWithErrorsCommandOutput
105114
| IgnoresWrappingXmlNameCommandOutput
106115
| NestedStructuresCommandOutput

0 commit comments

Comments
 (0)