Skip to content

Commit 299d2a1

Browse files
authored
fix: request default endpoints from serde context being overwritten (#1097)
* fix: request default endpoints from serde context being overwritten * test(client-s3): add client test
1 parent 00bfbe8 commit 299d2a1

File tree

224 files changed

+5172
-5130
lines changed

Some content is hidden

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

224 files changed

+5172
-5130
lines changed

Diff for: clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts

+36-36
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ export async function serializeAws_restJson1_1CreateAnalyzerCommand(
137137
}
138138
body = JSON.stringify(bodyParams);
139139
return new __HttpRequest({
140-
...context.endpoint,
141140
protocol: "https",
142141
method: "PUT",
143142
headers: headers,
144143
path: resolvedPath,
145-
body: body
144+
body: body,
145+
...context.endpoint
146146
});
147147
}
148148

@@ -186,12 +186,12 @@ export async function serializeAws_restJson1_1CreateArchiveRuleCommand(
186186
}
187187
body = JSON.stringify(bodyParams);
188188
return new __HttpRequest({
189-
...context.endpoint,
190189
protocol: "https",
191190
method: "PUT",
192191
headers: headers,
193192
path: resolvedPath,
194-
body: body
193+
body: body,
194+
...context.endpoint
195195
});
196196
}
197197

@@ -222,13 +222,13 @@ export async function serializeAws_restJson1_1DeleteAnalyzerCommand(
222222
}
223223
let body: any;
224224
return new __HttpRequest({
225-
...context.endpoint,
226225
protocol: "https",
227226
method: "DELETE",
228227
headers: headers,
229228
path: resolvedPath,
230229
query: query,
231-
body: body
230+
body: body,
231+
...context.endpoint
232232
});
233233
}
234234

@@ -271,13 +271,13 @@ export async function serializeAws_restJson1_1DeleteArchiveRuleCommand(
271271
}
272272
let body: any;
273273
return new __HttpRequest({
274-
...context.endpoint,
275274
protocol: "https",
276275
method: "DELETE",
277276
headers: headers,
278277
path: resolvedPath,
279278
query: query,
280-
body: body
279+
body: body,
280+
...context.endpoint
281281
});
282282
}
283283

@@ -297,13 +297,13 @@ export async function serializeAws_restJson1_1GetAnalyzedResourceCommand(
297297
}
298298
let body: any;
299299
return new __HttpRequest({
300-
...context.endpoint,
301300
protocol: "https",
302301
method: "GET",
303302
headers: headers,
304303
path: resolvedPath,
305304
query: query,
306-
body: body
305+
body: body,
306+
...context.endpoint
307307
});
308308
}
309309

@@ -330,12 +330,12 @@ export async function serializeAws_restJson1_1GetAnalyzerCommand(
330330
}
331331
let body: any;
332332
return new __HttpRequest({
333-
...context.endpoint,
334333
protocol: "https",
335334
method: "GET",
336335
headers: headers,
337336
path: resolvedPath,
338-
body: body
337+
body: body,
338+
...context.endpoint
339339
});
340340
}
341341

@@ -374,12 +374,12 @@ export async function serializeAws_restJson1_1GetArchiveRuleCommand(
374374
}
375375
let body: any;
376376
return new __HttpRequest({
377-
...context.endpoint,
378377
protocol: "https",
379378
method: "GET",
380379
headers: headers,
381380
path: resolvedPath,
382-
body: body
381+
body: body,
382+
...context.endpoint
383383
});
384384
}
385385

@@ -408,13 +408,13 @@ export async function serializeAws_restJson1_1GetFindingCommand(
408408
}
409409
let body: any;
410410
return new __HttpRequest({
411-
...context.endpoint,
412411
protocol: "https",
413412
method: "GET",
414413
headers: headers,
415414
path: resolvedPath,
416415
query: query,
417-
body: body
416+
body: body,
417+
...context.endpoint
418418
});
419419
}
420420

@@ -441,12 +441,12 @@ export async function serializeAws_restJson1_1ListAnalyzedResourcesCommand(
441441
}
442442
body = JSON.stringify(bodyParams);
443443
return new __HttpRequest({
444-
...context.endpoint,
445444
protocol: "https",
446445
method: "POST",
447446
headers: headers,
448447
path: resolvedPath,
449-
body: body
448+
body: body,
449+
...context.endpoint
450450
});
451451
}
452452

@@ -469,13 +469,13 @@ export async function serializeAws_restJson1_1ListAnalyzersCommand(
469469
}
470470
let body: any;
471471
return new __HttpRequest({
472-
...context.endpoint,
473472
protocol: "https",
474473
method: "GET",
475474
headers: headers,
476475
path: resolvedPath,
477476
query: query,
478-
body: body
477+
body: body,
478+
...context.endpoint
479479
});
480480
}
481481

@@ -509,13 +509,13 @@ export async function serializeAws_restJson1_1ListArchiveRulesCommand(
509509
}
510510
let body: any;
511511
return new __HttpRequest({
512-
...context.endpoint,
513512
protocol: "https",
514513
method: "GET",
515514
headers: headers,
516515
path: resolvedPath,
517516
query: query,
518-
body: body
517+
body: body,
518+
...context.endpoint
519519
});
520520
}
521521

@@ -551,12 +551,12 @@ export async function serializeAws_restJson1_1ListFindingsCommand(
551551
}
552552
body = JSON.stringify(bodyParams);
553553
return new __HttpRequest({
554-
...context.endpoint,
555554
protocol: "https",
556555
method: "POST",
557556
headers: headers,
558557
path: resolvedPath,
559-
body: body
558+
body: body,
559+
...context.endpoint
560560
});
561561
}
562562

@@ -583,12 +583,12 @@ export async function serializeAws_restJson1_1ListTagsForResourceCommand(
583583
}
584584
let body: any;
585585
return new __HttpRequest({
586-
...context.endpoint,
587586
protocol: "https",
588587
method: "GET",
589588
headers: headers,
590589
path: resolvedPath,
591-
body: body
590+
body: body,
591+
...context.endpoint
592592
});
593593
}
594594

@@ -609,12 +609,12 @@ export async function serializeAws_restJson1_1StartResourceScanCommand(
609609
}
610610
body = JSON.stringify(bodyParams);
611611
return new __HttpRequest({
612-
...context.endpoint,
613612
protocol: "https",
614613
method: "POST",
615614
headers: headers,
616615
path: resolvedPath,
617-
body: body
616+
body: body,
617+
...context.endpoint
618618
});
619619
}
620620

@@ -646,12 +646,12 @@ export async function serializeAws_restJson1_1TagResourceCommand(
646646
}
647647
body = JSON.stringify(bodyParams);
648648
return new __HttpRequest({
649-
...context.endpoint,
650649
protocol: "https",
651650
method: "POST",
652651
headers: headers,
653652
path: resolvedPath,
654-
body: body
653+
body: body,
654+
...context.endpoint
655655
});
656656
}
657657

@@ -682,13 +682,13 @@ export async function serializeAws_restJson1_1UntagResourceCommand(
682682
}
683683
let body: any;
684684
return new __HttpRequest({
685-
...context.endpoint,
686685
protocol: "https",
687686
method: "DELETE",
688687
headers: headers,
689688
path: resolvedPath,
690689
query: query,
691-
body: body
690+
body: body,
691+
...context.endpoint
692692
});
693693
}
694694

@@ -741,12 +741,12 @@ export async function serializeAws_restJson1_1UpdateArchiveRuleCommand(
741741
}
742742
body = JSON.stringify(bodyParams);
743743
return new __HttpRequest({
744-
...context.endpoint,
745744
protocol: "https",
746745
method: "PUT",
747746
headers: headers,
748747
path: resolvedPath,
749-
body: body
748+
body: body,
749+
...context.endpoint
750750
});
751751
}
752752

@@ -782,12 +782,12 @@ export async function serializeAws_restJson1_1UpdateFindingsCommand(
782782
}
783783
body = JSON.stringify(bodyParams);
784784
return new __HttpRequest({
785-
...context.endpoint,
786785
protocol: "https",
787786
method: "PUT",
788787
headers: headers,
789788
path: resolvedPath,
790-
body: body
789+
body: body,
790+
...context.endpoint
791791
});
792792
}
793793

Diff for: clients/client-acm-pca/protocols/Aws_json1_1.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4113,11 +4113,11 @@ const buildHttpRpcRequest = (
41134113
body: any
41144114
): __HttpRequest => {
41154115
const contents: any = {
4116-
...context.endpoint,
41174116
protocol: "https",
41184117
method: "POST",
41194118
path: path,
4120-
headers: headers
4119+
headers: headers,
4120+
...context.endpoint
41214121
};
41224122
if (resolvedHostname !== undefined) {
41234123
contents.hostname = resolvedHostname;

Diff for: clients/client-acm/protocols/Aws_json1_1.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2790,11 +2790,11 @@ const buildHttpRpcRequest = (
27902790
body: any
27912791
): __HttpRequest => {
27922792
const contents: any = {
2793-
...context.endpoint,
27942793
protocol: "https",
27952794
method: "POST",
27962795
path: path,
2797-
headers: headers
2796+
headers: headers,
2797+
...context.endpoint
27982798
};
27992799
if (resolvedHostname !== undefined) {
28002800
contents.hostname = resolvedHostname;

Diff for: clients/client-alexa-for-business/protocols/Aws_json1_1.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14195,11 +14195,11 @@ const buildHttpRpcRequest = (
1419514195
body: any
1419614196
): __HttpRequest => {
1419714197
const contents: any = {
14198-
...context.endpoint,
1419914198
protocol: "https",
1420014199
method: "POST",
1420114200
path: path,
14202-
headers: headers
14201+
headers: headers,
14202+
...context.endpoint
1420314203
};
1420414204
if (resolvedHostname !== undefined) {
1420514205
contents.hostname = resolvedHostname;

0 commit comments

Comments
 (0)