@aws-sdk/client-codeartifact 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +607 -798
- package/dist-es/protocols/Aws_restJson1.js +716 -608
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { CodeartifactServiceException as __BaseException } from "../models/CodeartifactServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1AssociateExternalConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -12,7 +12,12 @@ export var serializeAws_restJson1AssociateExternalConnectionCommand = function (
|
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository/external-connection";
|
|
15
|
-
query =
|
|
15
|
+
query = map({
|
|
16
|
+
domain: [, input.domain],
|
|
17
|
+
"domain-owner": [, input.domainOwner],
|
|
18
|
+
repository: [, input.repository],
|
|
19
|
+
"external-connection": [, input.externalConnection],
|
|
20
|
+
});
|
|
16
21
|
return [2, new __HttpRequest({
|
|
17
22
|
protocol: protocol,
|
|
18
23
|
hostname: hostname,
|
|
@@ -37,7 +42,15 @@ export var serializeAws_restJson1CopyPackageVersionsCommand = function (input, c
|
|
|
37
42
|
"content-type": "application/json",
|
|
38
43
|
};
|
|
39
44
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/copy";
|
|
40
|
-
query =
|
|
45
|
+
query = map({
|
|
46
|
+
domain: [, input.domain],
|
|
47
|
+
"domain-owner": [, input.domainOwner],
|
|
48
|
+
"source-repository": [, input.sourceRepository],
|
|
49
|
+
"destination-repository": [, input.destinationRepository],
|
|
50
|
+
format: [, input.format],
|
|
51
|
+
namespace: [, input.namespace],
|
|
52
|
+
package: [, input.package],
|
|
53
|
+
});
|
|
41
54
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.allowOverwrite != null && { allowOverwrite: input.allowOverwrite })), (input.includeFromUpstream != null && { includeFromUpstream: input.includeFromUpstream })), (input.versionRevisions != null && {
|
|
42
55
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
43
56
|
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
@@ -65,7 +78,9 @@ export var serializeAws_restJson1CreateDomainCommand = function (input, context)
|
|
|
65
78
|
"content-type": "application/json",
|
|
66
79
|
};
|
|
67
80
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain";
|
|
68
|
-
query =
|
|
81
|
+
query = map({
|
|
82
|
+
domain: [, input.domain],
|
|
83
|
+
});
|
|
69
84
|
body = JSON.stringify(__assign(__assign({}, (input.encryptionKey != null && { encryptionKey: input.encryptionKey })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
70
85
|
return [2, new __HttpRequest({
|
|
71
86
|
protocol: protocol,
|
|
@@ -91,7 +106,11 @@ export var serializeAws_restJson1CreateRepositoryCommand = function (input, cont
|
|
|
91
106
|
"content-type": "application/json",
|
|
92
107
|
};
|
|
93
108
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository";
|
|
94
|
-
query =
|
|
109
|
+
query = map({
|
|
110
|
+
domain: [, input.domain],
|
|
111
|
+
"domain-owner": [, input.domainOwner],
|
|
112
|
+
repository: [, input.repository],
|
|
113
|
+
});
|
|
95
114
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.upstreams != null && {
|
|
96
115
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
97
116
|
})));
|
|
@@ -117,7 +136,10 @@ export var serializeAws_restJson1DeleteDomainCommand = function (input, context)
|
|
|
117
136
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
118
137
|
headers = {};
|
|
119
138
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain";
|
|
120
|
-
query =
|
|
139
|
+
query = map({
|
|
140
|
+
domain: [, input.domain],
|
|
141
|
+
"domain-owner": [, input.domainOwner],
|
|
142
|
+
});
|
|
121
143
|
return [2, new __HttpRequest({
|
|
122
144
|
protocol: protocol,
|
|
123
145
|
hostname: hostname,
|
|
@@ -140,7 +162,11 @@ export var serializeAws_restJson1DeleteDomainPermissionsPolicyCommand = function
|
|
|
140
162
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
141
163
|
headers = {};
|
|
142
164
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain/permissions/policy";
|
|
143
|
-
query =
|
|
165
|
+
query = map({
|
|
166
|
+
domain: [, input.domain],
|
|
167
|
+
"domain-owner": [, input.domainOwner],
|
|
168
|
+
"policy-revision": [, input.policyRevision],
|
|
169
|
+
});
|
|
144
170
|
return [2, new __HttpRequest({
|
|
145
171
|
protocol: protocol,
|
|
146
172
|
hostname: hostname,
|
|
@@ -165,7 +191,14 @@ export var serializeAws_restJson1DeletePackageVersionsCommand = function (input,
|
|
|
165
191
|
"content-type": "application/json",
|
|
166
192
|
};
|
|
167
193
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/delete";
|
|
168
|
-
query =
|
|
194
|
+
query = map({
|
|
195
|
+
domain: [, input.domain],
|
|
196
|
+
"domain-owner": [, input.domainOwner],
|
|
197
|
+
repository: [, input.repository],
|
|
198
|
+
format: [, input.format],
|
|
199
|
+
namespace: [, input.namespace],
|
|
200
|
+
package: [, input.package],
|
|
201
|
+
});
|
|
169
202
|
body = JSON.stringify(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
170
203
|
return [2, new __HttpRequest({
|
|
171
204
|
protocol: protocol,
|
|
@@ -189,7 +222,11 @@ export var serializeAws_restJson1DeleteRepositoryCommand = function (input, cont
|
|
|
189
222
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
190
223
|
headers = {};
|
|
191
224
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository";
|
|
192
|
-
query =
|
|
225
|
+
query = map({
|
|
226
|
+
domain: [, input.domain],
|
|
227
|
+
"domain-owner": [, input.domainOwner],
|
|
228
|
+
repository: [, input.repository],
|
|
229
|
+
});
|
|
193
230
|
return [2, new __HttpRequest({
|
|
194
231
|
protocol: protocol,
|
|
195
232
|
hostname: hostname,
|
|
@@ -212,7 +249,12 @@ export var serializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = func
|
|
|
212
249
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
213
250
|
headers = {};
|
|
214
251
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository/permissions/policies";
|
|
215
|
-
query =
|
|
252
|
+
query = map({
|
|
253
|
+
domain: [, input.domain],
|
|
254
|
+
"domain-owner": [, input.domainOwner],
|
|
255
|
+
repository: [, input.repository],
|
|
256
|
+
"policy-revision": [, input.policyRevision],
|
|
257
|
+
});
|
|
216
258
|
return [2, new __HttpRequest({
|
|
217
259
|
protocol: protocol,
|
|
218
260
|
hostname: hostname,
|
|
@@ -235,7 +277,10 @@ export var serializeAws_restJson1DescribeDomainCommand = function (input, contex
|
|
|
235
277
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
236
278
|
headers = {};
|
|
237
279
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain";
|
|
238
|
-
query =
|
|
280
|
+
query = map({
|
|
281
|
+
domain: [, input.domain],
|
|
282
|
+
"domain-owner": [, input.domainOwner],
|
|
283
|
+
});
|
|
239
284
|
return [2, new __HttpRequest({
|
|
240
285
|
protocol: protocol,
|
|
241
286
|
hostname: hostname,
|
|
@@ -258,7 +303,14 @@ export var serializeAws_restJson1DescribePackageCommand = function (input, conte
|
|
|
258
303
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
259
304
|
headers = {};
|
|
260
305
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package";
|
|
261
|
-
query =
|
|
306
|
+
query = map({
|
|
307
|
+
domain: [, input.domain],
|
|
308
|
+
"domain-owner": [, input.domainOwner],
|
|
309
|
+
repository: [, input.repository],
|
|
310
|
+
format: [, input.format],
|
|
311
|
+
namespace: [, input.namespace],
|
|
312
|
+
package: [, input.package],
|
|
313
|
+
});
|
|
262
314
|
return [2, new __HttpRequest({
|
|
263
315
|
protocol: protocol,
|
|
264
316
|
hostname: hostname,
|
|
@@ -281,7 +333,15 @@ export var serializeAws_restJson1DescribePackageVersionCommand = function (input
|
|
|
281
333
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
282
334
|
headers = {};
|
|
283
335
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/version";
|
|
284
|
-
query =
|
|
336
|
+
query = map({
|
|
337
|
+
domain: [, input.domain],
|
|
338
|
+
"domain-owner": [, input.domainOwner],
|
|
339
|
+
repository: [, input.repository],
|
|
340
|
+
format: [, input.format],
|
|
341
|
+
namespace: [, input.namespace],
|
|
342
|
+
package: [, input.package],
|
|
343
|
+
version: [, input.packageVersion],
|
|
344
|
+
});
|
|
285
345
|
return [2, new __HttpRequest({
|
|
286
346
|
protocol: protocol,
|
|
287
347
|
hostname: hostname,
|
|
@@ -304,7 +364,11 @@ export var serializeAws_restJson1DescribeRepositoryCommand = function (input, co
|
|
|
304
364
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
305
365
|
headers = {};
|
|
306
366
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository";
|
|
307
|
-
query =
|
|
367
|
+
query = map({
|
|
368
|
+
domain: [, input.domain],
|
|
369
|
+
"domain-owner": [, input.domainOwner],
|
|
370
|
+
repository: [, input.repository],
|
|
371
|
+
});
|
|
308
372
|
return [2, new __HttpRequest({
|
|
309
373
|
protocol: protocol,
|
|
310
374
|
hostname: hostname,
|
|
@@ -327,7 +391,12 @@ export var serializeAws_restJson1DisassociateExternalConnectionCommand = functio
|
|
|
327
391
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
328
392
|
headers = {};
|
|
329
393
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository/external-connection";
|
|
330
|
-
query =
|
|
394
|
+
query = map({
|
|
395
|
+
domain: [, input.domain],
|
|
396
|
+
"domain-owner": [, input.domainOwner],
|
|
397
|
+
repository: [, input.repository],
|
|
398
|
+
"external-connection": [, input.externalConnection],
|
|
399
|
+
});
|
|
331
400
|
return [2, new __HttpRequest({
|
|
332
401
|
protocol: protocol,
|
|
333
402
|
hostname: hostname,
|
|
@@ -352,7 +421,14 @@ export var serializeAws_restJson1DisposePackageVersionsCommand = function (input
|
|
|
352
421
|
"content-type": "application/json",
|
|
353
422
|
};
|
|
354
423
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/dispose";
|
|
355
|
-
query =
|
|
424
|
+
query = map({
|
|
425
|
+
domain: [, input.domain],
|
|
426
|
+
"domain-owner": [, input.domainOwner],
|
|
427
|
+
repository: [, input.repository],
|
|
428
|
+
format: [, input.format],
|
|
429
|
+
namespace: [, input.namespace],
|
|
430
|
+
package: [, input.package],
|
|
431
|
+
});
|
|
356
432
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.versionRevisions != null && {
|
|
357
433
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
358
434
|
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
@@ -378,7 +454,11 @@ export var serializeAws_restJson1GetAuthorizationTokenCommand = function (input,
|
|
|
378
454
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
379
455
|
headers = {};
|
|
380
456
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/authorization-token";
|
|
381
|
-
query =
|
|
457
|
+
query = map({
|
|
458
|
+
domain: [, input.domain],
|
|
459
|
+
"domain-owner": [, input.domainOwner],
|
|
460
|
+
duration: [function () { return input.durationSeconds !== void 0; }, function () { return input.durationSeconds.toString(); }],
|
|
461
|
+
});
|
|
382
462
|
return [2, new __HttpRequest({
|
|
383
463
|
protocol: protocol,
|
|
384
464
|
hostname: hostname,
|
|
@@ -401,7 +481,10 @@ export var serializeAws_restJson1GetDomainPermissionsPolicyCommand = function (i
|
|
|
401
481
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
402
482
|
headers = {};
|
|
403
483
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain/permissions/policy";
|
|
404
|
-
query =
|
|
484
|
+
query = map({
|
|
485
|
+
domain: [, input.domain],
|
|
486
|
+
"domain-owner": [, input.domainOwner],
|
|
487
|
+
});
|
|
405
488
|
return [2, new __HttpRequest({
|
|
406
489
|
protocol: protocol,
|
|
407
490
|
hostname: hostname,
|
|
@@ -424,7 +507,17 @@ export var serializeAws_restJson1GetPackageVersionAssetCommand = function (input
|
|
|
424
507
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
425
508
|
headers = {};
|
|
426
509
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/version/asset";
|
|
427
|
-
query =
|
|
510
|
+
query = map({
|
|
511
|
+
domain: [, input.domain],
|
|
512
|
+
"domain-owner": [, input.domainOwner],
|
|
513
|
+
repository: [, input.repository],
|
|
514
|
+
format: [, input.format],
|
|
515
|
+
namespace: [, input.namespace],
|
|
516
|
+
package: [, input.package],
|
|
517
|
+
version: [, input.packageVersion],
|
|
518
|
+
asset: [, input.asset],
|
|
519
|
+
revision: [, input.packageVersionRevision],
|
|
520
|
+
});
|
|
428
521
|
return [2, new __HttpRequest({
|
|
429
522
|
protocol: protocol,
|
|
430
523
|
hostname: hostname,
|
|
@@ -447,7 +540,15 @@ export var serializeAws_restJson1GetPackageVersionReadmeCommand = function (inpu
|
|
|
447
540
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
448
541
|
headers = {};
|
|
449
542
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/version/readme";
|
|
450
|
-
query =
|
|
543
|
+
query = map({
|
|
544
|
+
domain: [, input.domain],
|
|
545
|
+
"domain-owner": [, input.domainOwner],
|
|
546
|
+
repository: [, input.repository],
|
|
547
|
+
format: [, input.format],
|
|
548
|
+
namespace: [, input.namespace],
|
|
549
|
+
package: [, input.package],
|
|
550
|
+
version: [, input.packageVersion],
|
|
551
|
+
});
|
|
451
552
|
return [2, new __HttpRequest({
|
|
452
553
|
protocol: protocol,
|
|
453
554
|
hostname: hostname,
|
|
@@ -470,7 +571,12 @@ export var serializeAws_restJson1GetRepositoryEndpointCommand = function (input,
|
|
|
470
571
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
471
572
|
headers = {};
|
|
472
573
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository/endpoint";
|
|
473
|
-
query =
|
|
574
|
+
query = map({
|
|
575
|
+
domain: [, input.domain],
|
|
576
|
+
"domain-owner": [, input.domainOwner],
|
|
577
|
+
repository: [, input.repository],
|
|
578
|
+
format: [, input.format],
|
|
579
|
+
});
|
|
474
580
|
return [2, new __HttpRequest({
|
|
475
581
|
protocol: protocol,
|
|
476
582
|
hostname: hostname,
|
|
@@ -493,7 +599,11 @@ export var serializeAws_restJson1GetRepositoryPermissionsPolicyCommand = functio
|
|
|
493
599
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
494
600
|
headers = {};
|
|
495
601
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository/permissions/policy";
|
|
496
|
-
query =
|
|
602
|
+
query = map({
|
|
603
|
+
domain: [, input.domain],
|
|
604
|
+
"domain-owner": [, input.domainOwner],
|
|
605
|
+
repository: [, input.repository],
|
|
606
|
+
});
|
|
497
607
|
return [2, new __HttpRequest({
|
|
498
608
|
protocol: protocol,
|
|
499
609
|
hostname: hostname,
|
|
@@ -540,7 +650,18 @@ export var serializeAws_restJson1ListPackagesCommand = function (input, context)
|
|
|
540
650
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
541
651
|
headers = {};
|
|
542
652
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/packages";
|
|
543
|
-
query =
|
|
653
|
+
query = map({
|
|
654
|
+
domain: [, input.domain],
|
|
655
|
+
"domain-owner": [, input.domainOwner],
|
|
656
|
+
repository: [, input.repository],
|
|
657
|
+
format: [, input.format],
|
|
658
|
+
namespace: [, input.namespace],
|
|
659
|
+
"package-prefix": [, input.packagePrefix],
|
|
660
|
+
"max-results": [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
661
|
+
"next-token": [, input.nextToken],
|
|
662
|
+
publish: [, input.publish],
|
|
663
|
+
upstream: [, input.upstream],
|
|
664
|
+
});
|
|
544
665
|
return [2, new __HttpRequest({
|
|
545
666
|
protocol: protocol,
|
|
546
667
|
hostname: hostname,
|
|
@@ -563,7 +684,17 @@ export var serializeAws_restJson1ListPackageVersionAssetsCommand = function (inp
|
|
|
563
684
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
564
685
|
headers = {};
|
|
565
686
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/version/assets";
|
|
566
|
-
query =
|
|
687
|
+
query = map({
|
|
688
|
+
domain: [, input.domain],
|
|
689
|
+
"domain-owner": [, input.domainOwner],
|
|
690
|
+
repository: [, input.repository],
|
|
691
|
+
format: [, input.format],
|
|
692
|
+
namespace: [, input.namespace],
|
|
693
|
+
package: [, input.package],
|
|
694
|
+
version: [, input.packageVersion],
|
|
695
|
+
"max-results": [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
696
|
+
"next-token": [, input.nextToken],
|
|
697
|
+
});
|
|
567
698
|
return [2, new __HttpRequest({
|
|
568
699
|
protocol: protocol,
|
|
569
700
|
hostname: hostname,
|
|
@@ -586,7 +717,16 @@ export var serializeAws_restJson1ListPackageVersionDependenciesCommand = functio
|
|
|
586
717
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
587
718
|
headers = {};
|
|
588
719
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/version/dependencies";
|
|
589
|
-
query =
|
|
720
|
+
query = map({
|
|
721
|
+
domain: [, input.domain],
|
|
722
|
+
"domain-owner": [, input.domainOwner],
|
|
723
|
+
repository: [, input.repository],
|
|
724
|
+
format: [, input.format],
|
|
725
|
+
namespace: [, input.namespace],
|
|
726
|
+
package: [, input.package],
|
|
727
|
+
version: [, input.packageVersion],
|
|
728
|
+
"next-token": [, input.nextToken],
|
|
729
|
+
});
|
|
590
730
|
return [2, new __HttpRequest({
|
|
591
731
|
protocol: protocol,
|
|
592
732
|
hostname: hostname,
|
|
@@ -609,7 +749,19 @@ export var serializeAws_restJson1ListPackageVersionsCommand = function (input, c
|
|
|
609
749
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
610
750
|
headers = {};
|
|
611
751
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions";
|
|
612
|
-
query =
|
|
752
|
+
query = map({
|
|
753
|
+
domain: [, input.domain],
|
|
754
|
+
"domain-owner": [, input.domainOwner],
|
|
755
|
+
repository: [, input.repository],
|
|
756
|
+
format: [, input.format],
|
|
757
|
+
namespace: [, input.namespace],
|
|
758
|
+
package: [, input.package],
|
|
759
|
+
status: [, input.status],
|
|
760
|
+
sortBy: [, input.sortBy],
|
|
761
|
+
"max-results": [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
762
|
+
"next-token": [, input.nextToken],
|
|
763
|
+
originType: [, input.originType],
|
|
764
|
+
});
|
|
613
765
|
return [2, new __HttpRequest({
|
|
614
766
|
protocol: protocol,
|
|
615
767
|
hostname: hostname,
|
|
@@ -632,7 +784,11 @@ export var serializeAws_restJson1ListRepositoriesCommand = function (input, cont
|
|
|
632
784
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
633
785
|
headers = {};
|
|
634
786
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repositories";
|
|
635
|
-
query =
|
|
787
|
+
query = map({
|
|
788
|
+
"repository-prefix": [, input.repositoryPrefix],
|
|
789
|
+
"max-results": [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
790
|
+
"next-token": [, input.nextToken],
|
|
791
|
+
});
|
|
636
792
|
return [2, new __HttpRequest({
|
|
637
793
|
protocol: protocol,
|
|
638
794
|
hostname: hostname,
|
|
@@ -655,7 +811,14 @@ export var serializeAws_restJson1ListRepositoriesInDomainCommand = function (inp
|
|
|
655
811
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
656
812
|
headers = {};
|
|
657
813
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain/repositories";
|
|
658
|
-
query =
|
|
814
|
+
query = map({
|
|
815
|
+
domain: [, input.domain],
|
|
816
|
+
"domain-owner": [, input.domainOwner],
|
|
817
|
+
"administrator-account": [, input.administratorAccount],
|
|
818
|
+
"repository-prefix": [, input.repositoryPrefix],
|
|
819
|
+
"max-results": [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
820
|
+
"next-token": [, input.nextToken],
|
|
821
|
+
});
|
|
659
822
|
return [2, new __HttpRequest({
|
|
660
823
|
protocol: protocol,
|
|
661
824
|
hostname: hostname,
|
|
@@ -678,7 +841,9 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
678
841
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
679
842
|
headers = {};
|
|
680
843
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags";
|
|
681
|
-
query =
|
|
844
|
+
query = map({
|
|
845
|
+
resourceArn: [, input.resourceArn],
|
|
846
|
+
});
|
|
682
847
|
return [2, new __HttpRequest({
|
|
683
848
|
protocol: protocol,
|
|
684
849
|
hostname: hostname,
|
|
@@ -727,7 +892,14 @@ export var serializeAws_restJson1PutPackageOriginConfigurationCommand = function
|
|
|
727
892
|
"content-type": "application/json",
|
|
728
893
|
};
|
|
729
894
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package";
|
|
730
|
-
query =
|
|
895
|
+
query = map({
|
|
896
|
+
domain: [, input.domain],
|
|
897
|
+
"domain-owner": [, input.domainOwner],
|
|
898
|
+
repository: [, input.repository],
|
|
899
|
+
format: [, input.format],
|
|
900
|
+
namespace: [, input.namespace],
|
|
901
|
+
package: [, input.package],
|
|
902
|
+
});
|
|
731
903
|
body = JSON.stringify(__assign({}, (input.restrictions != null && {
|
|
732
904
|
restrictions: serializeAws_restJson1PackageOriginRestrictions(input.restrictions, context),
|
|
733
905
|
})));
|
|
@@ -755,7 +927,11 @@ export var serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = functio
|
|
|
755
927
|
"content-type": "application/json",
|
|
756
928
|
};
|
|
757
929
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository/permissions/policy";
|
|
758
|
-
query =
|
|
930
|
+
query = map({
|
|
931
|
+
domain: [, input.domain],
|
|
932
|
+
"domain-owner": [, input.domainOwner],
|
|
933
|
+
repository: [, input.repository],
|
|
934
|
+
});
|
|
759
935
|
body = JSON.stringify(__assign(__assign({}, (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.policyRevision != null && { policyRevision: input.policyRevision })));
|
|
760
936
|
return [2, new __HttpRequest({
|
|
761
937
|
protocol: protocol,
|
|
@@ -781,7 +957,9 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
781
957
|
"content-type": "application/json",
|
|
782
958
|
};
|
|
783
959
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tag";
|
|
784
|
-
query =
|
|
960
|
+
query = map({
|
|
961
|
+
resourceArn: [, input.resourceArn],
|
|
962
|
+
});
|
|
785
963
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
786
964
|
return [2, new __HttpRequest({
|
|
787
965
|
protocol: protocol,
|
|
@@ -807,7 +985,9 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
807
985
|
"content-type": "application/json",
|
|
808
986
|
};
|
|
809
987
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/untag";
|
|
810
|
-
query =
|
|
988
|
+
query = map({
|
|
989
|
+
resourceArn: [, input.resourceArn],
|
|
990
|
+
});
|
|
811
991
|
body = JSON.stringify(__assign({}, (input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
812
992
|
return [2, new __HttpRequest({
|
|
813
993
|
protocol: protocol,
|
|
@@ -833,7 +1013,14 @@ export var serializeAws_restJson1UpdatePackageVersionsStatusCommand = function (
|
|
|
833
1013
|
"content-type": "application/json",
|
|
834
1014
|
};
|
|
835
1015
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/update_status";
|
|
836
|
-
query =
|
|
1016
|
+
query = map({
|
|
1017
|
+
domain: [, input.domain],
|
|
1018
|
+
"domain-owner": [, input.domainOwner],
|
|
1019
|
+
repository: [, input.repository],
|
|
1020
|
+
format: [, input.format],
|
|
1021
|
+
namespace: [, input.namespace],
|
|
1022
|
+
package: [, input.package],
|
|
1023
|
+
});
|
|
837
1024
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.targetStatus != null && { targetStatus: input.targetStatus })), (input.versionRevisions != null && {
|
|
838
1025
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
839
1026
|
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
@@ -861,7 +1048,11 @@ export var serializeAws_restJson1UpdateRepositoryCommand = function (input, cont
|
|
|
861
1048
|
"content-type": "application/json",
|
|
862
1049
|
};
|
|
863
1050
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository";
|
|
864
|
-
query =
|
|
1051
|
+
query = map({
|
|
1052
|
+
domain: [, input.domain],
|
|
1053
|
+
"domain-owner": [, input.domainOwner],
|
|
1054
|
+
repository: [, input.repository],
|
|
1055
|
+
});
|
|
865
1056
|
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.upstreams != null && {
|
|
866
1057
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
867
1058
|
})));
|
|
@@ -886,24 +1077,23 @@ export var deserializeAws_restJson1AssociateExternalConnectionCommand = function
|
|
|
886
1077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
1078
|
return [2, deserializeAws_restJson1AssociateExternalConnectionCommandError(output, context)];
|
|
888
1079
|
}
|
|
889
|
-
contents = {
|
|
1080
|
+
contents = map({
|
|
890
1081
|
$metadata: deserializeMetadata(output),
|
|
891
|
-
|
|
892
|
-
};
|
|
1082
|
+
});
|
|
893
1083
|
_a = __expectNonNull;
|
|
894
1084
|
_b = __expectObject;
|
|
895
1085
|
return [4, parseBody(output.body, context)];
|
|
896
1086
|
case 1:
|
|
897
1087
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
898
|
-
if (data.repository
|
|
1088
|
+
if (data.repository != null) {
|
|
899
1089
|
contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
|
|
900
1090
|
}
|
|
901
|
-
return [2,
|
|
1091
|
+
return [2, contents];
|
|
902
1092
|
}
|
|
903
1093
|
});
|
|
904
1094
|
}); };
|
|
905
1095
|
var deserializeAws_restJson1AssociateExternalConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
906
|
-
var parsedOutput, _a,
|
|
1096
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
907
1097
|
var _c;
|
|
908
1098
|
return __generator(this, function (_d) {
|
|
909
1099
|
switch (_d.label) {
|
|
@@ -948,14 +1138,14 @@ var deserializeAws_restJson1AssociateExternalConnectionCommandError = function (
|
|
|
948
1138
|
case 15: throw _d.sent();
|
|
949
1139
|
case 16:
|
|
950
1140
|
parsedBody = parsedOutput.body;
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
$metadata: $metadata,
|
|
1141
|
+
throwDefaultError({
|
|
1142
|
+
output: output,
|
|
1143
|
+
parsedBody: parsedBody,
|
|
1144
|
+
exceptionCtor: __BaseException,
|
|
1145
|
+
errorCode: errorCode,
|
|
957
1146
|
});
|
|
958
|
-
|
|
1147
|
+
_d.label = 17;
|
|
1148
|
+
case 17: return [2];
|
|
959
1149
|
}
|
|
960
1150
|
});
|
|
961
1151
|
}); };
|
|
@@ -967,28 +1157,26 @@ export var deserializeAws_restJson1CopyPackageVersionsCommand = function (output
|
|
|
967
1157
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
968
1158
|
return [2, deserializeAws_restJson1CopyPackageVersionsCommandError(output, context)];
|
|
969
1159
|
}
|
|
970
|
-
contents = {
|
|
1160
|
+
contents = map({
|
|
971
1161
|
$metadata: deserializeMetadata(output),
|
|
972
|
-
|
|
973
|
-
successfulVersions: undefined,
|
|
974
|
-
};
|
|
1162
|
+
});
|
|
975
1163
|
_a = __expectNonNull;
|
|
976
1164
|
_b = __expectObject;
|
|
977
1165
|
return [4, parseBody(output.body, context)];
|
|
978
1166
|
case 1:
|
|
979
1167
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
980
|
-
if (data.failedVersions
|
|
1168
|
+
if (data.failedVersions != null) {
|
|
981
1169
|
contents.failedVersions = deserializeAws_restJson1PackageVersionErrorMap(data.failedVersions, context);
|
|
982
1170
|
}
|
|
983
|
-
if (data.successfulVersions
|
|
1171
|
+
if (data.successfulVersions != null) {
|
|
984
1172
|
contents.successfulVersions = deserializeAws_restJson1SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
|
|
985
1173
|
}
|
|
986
|
-
return [2,
|
|
1174
|
+
return [2, contents];
|
|
987
1175
|
}
|
|
988
1176
|
});
|
|
989
1177
|
}); };
|
|
990
1178
|
var deserializeAws_restJson1CopyPackageVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
991
|
-
var parsedOutput, _a,
|
|
1179
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
992
1180
|
var _c;
|
|
993
1181
|
return __generator(this, function (_d) {
|
|
994
1182
|
switch (_d.label) {
|
|
@@ -1033,14 +1221,14 @@ var deserializeAws_restJson1CopyPackageVersionsCommandError = function (output,
|
|
|
1033
1221
|
case 15: throw _d.sent();
|
|
1034
1222
|
case 16:
|
|
1035
1223
|
parsedBody = parsedOutput.body;
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
$metadata: $metadata,
|
|
1224
|
+
throwDefaultError({
|
|
1225
|
+
output: output,
|
|
1226
|
+
parsedBody: parsedBody,
|
|
1227
|
+
exceptionCtor: __BaseException,
|
|
1228
|
+
errorCode: errorCode,
|
|
1042
1229
|
});
|
|
1043
|
-
|
|
1230
|
+
_d.label = 17;
|
|
1231
|
+
case 17: return [2];
|
|
1044
1232
|
}
|
|
1045
1233
|
});
|
|
1046
1234
|
}); };
|
|
@@ -1052,24 +1240,23 @@ export var deserializeAws_restJson1CreateDomainCommand = function (output, conte
|
|
|
1052
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1053
1241
|
return [2, deserializeAws_restJson1CreateDomainCommandError(output, context)];
|
|
1054
1242
|
}
|
|
1055
|
-
contents = {
|
|
1243
|
+
contents = map({
|
|
1056
1244
|
$metadata: deserializeMetadata(output),
|
|
1057
|
-
|
|
1058
|
-
};
|
|
1245
|
+
});
|
|
1059
1246
|
_a = __expectNonNull;
|
|
1060
1247
|
_b = __expectObject;
|
|
1061
1248
|
return [4, parseBody(output.body, context)];
|
|
1062
1249
|
case 1:
|
|
1063
1250
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1064
|
-
if (data.domain
|
|
1251
|
+
if (data.domain != null) {
|
|
1065
1252
|
contents.domain = deserializeAws_restJson1DomainDescription(data.domain, context);
|
|
1066
1253
|
}
|
|
1067
|
-
return [2,
|
|
1254
|
+
return [2, contents];
|
|
1068
1255
|
}
|
|
1069
1256
|
});
|
|
1070
1257
|
}); };
|
|
1071
1258
|
var deserializeAws_restJson1CreateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1072
|
-
var parsedOutput, _a,
|
|
1259
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1073
1260
|
var _c;
|
|
1074
1261
|
return __generator(this, function (_d) {
|
|
1075
1262
|
switch (_d.label) {
|
|
@@ -1114,14 +1301,14 @@ var deserializeAws_restJson1CreateDomainCommandError = function (output, context
|
|
|
1114
1301
|
case 15: throw _d.sent();
|
|
1115
1302
|
case 16:
|
|
1116
1303
|
parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
$metadata: $metadata,
|
|
1304
|
+
throwDefaultError({
|
|
1305
|
+
output: output,
|
|
1306
|
+
parsedBody: parsedBody,
|
|
1307
|
+
exceptionCtor: __BaseException,
|
|
1308
|
+
errorCode: errorCode,
|
|
1123
1309
|
});
|
|
1124
|
-
|
|
1310
|
+
_d.label = 17;
|
|
1311
|
+
case 17: return [2];
|
|
1125
1312
|
}
|
|
1126
1313
|
});
|
|
1127
1314
|
}); };
|
|
@@ -1133,24 +1320,23 @@ export var deserializeAws_restJson1CreateRepositoryCommand = function (output, c
|
|
|
1133
1320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
1321
|
return [2, deserializeAws_restJson1CreateRepositoryCommandError(output, context)];
|
|
1135
1322
|
}
|
|
1136
|
-
contents = {
|
|
1323
|
+
contents = map({
|
|
1137
1324
|
$metadata: deserializeMetadata(output),
|
|
1138
|
-
|
|
1139
|
-
};
|
|
1325
|
+
});
|
|
1140
1326
|
_a = __expectNonNull;
|
|
1141
1327
|
_b = __expectObject;
|
|
1142
1328
|
return [4, parseBody(output.body, context)];
|
|
1143
1329
|
case 1:
|
|
1144
1330
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1145
|
-
if (data.repository
|
|
1331
|
+
if (data.repository != null) {
|
|
1146
1332
|
contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
|
|
1147
1333
|
}
|
|
1148
|
-
return [2,
|
|
1334
|
+
return [2, contents];
|
|
1149
1335
|
}
|
|
1150
1336
|
});
|
|
1151
1337
|
}); };
|
|
1152
1338
|
var deserializeAws_restJson1CreateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1153
|
-
var parsedOutput, _a,
|
|
1339
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1154
1340
|
var _c;
|
|
1155
1341
|
return __generator(this, function (_d) {
|
|
1156
1342
|
switch (_d.label) {
|
|
@@ -1195,14 +1381,14 @@ var deserializeAws_restJson1CreateRepositoryCommandError = function (output, con
|
|
|
1195
1381
|
case 15: throw _d.sent();
|
|
1196
1382
|
case 16:
|
|
1197
1383
|
parsedBody = parsedOutput.body;
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
$metadata: $metadata,
|
|
1384
|
+
throwDefaultError({
|
|
1385
|
+
output: output,
|
|
1386
|
+
parsedBody: parsedBody,
|
|
1387
|
+
exceptionCtor: __BaseException,
|
|
1388
|
+
errorCode: errorCode,
|
|
1204
1389
|
});
|
|
1205
|
-
|
|
1390
|
+
_d.label = 17;
|
|
1391
|
+
case 17: return [2];
|
|
1206
1392
|
}
|
|
1207
1393
|
});
|
|
1208
1394
|
}); };
|
|
@@ -1214,24 +1400,23 @@ export var deserializeAws_restJson1DeleteDomainCommand = function (output, conte
|
|
|
1214
1400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1215
1401
|
return [2, deserializeAws_restJson1DeleteDomainCommandError(output, context)];
|
|
1216
1402
|
}
|
|
1217
|
-
contents = {
|
|
1403
|
+
contents = map({
|
|
1218
1404
|
$metadata: deserializeMetadata(output),
|
|
1219
|
-
|
|
1220
|
-
};
|
|
1405
|
+
});
|
|
1221
1406
|
_a = __expectNonNull;
|
|
1222
1407
|
_b = __expectObject;
|
|
1223
1408
|
return [4, parseBody(output.body, context)];
|
|
1224
1409
|
case 1:
|
|
1225
1410
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1226
|
-
if (data.domain
|
|
1411
|
+
if (data.domain != null) {
|
|
1227
1412
|
contents.domain = deserializeAws_restJson1DomainDescription(data.domain, context);
|
|
1228
1413
|
}
|
|
1229
|
-
return [2,
|
|
1414
|
+
return [2, contents];
|
|
1230
1415
|
}
|
|
1231
1416
|
});
|
|
1232
1417
|
}); };
|
|
1233
1418
|
var deserializeAws_restJson1DeleteDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1234
|
-
var parsedOutput, _a,
|
|
1419
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1235
1420
|
var _c;
|
|
1236
1421
|
return __generator(this, function (_d) {
|
|
1237
1422
|
switch (_d.label) {
|
|
@@ -1268,14 +1453,14 @@ var deserializeAws_restJson1DeleteDomainCommandError = function (output, context
|
|
|
1268
1453
|
case 11: throw _d.sent();
|
|
1269
1454
|
case 12:
|
|
1270
1455
|
parsedBody = parsedOutput.body;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
$metadata: $metadata,
|
|
1456
|
+
throwDefaultError({
|
|
1457
|
+
output: output,
|
|
1458
|
+
parsedBody: parsedBody,
|
|
1459
|
+
exceptionCtor: __BaseException,
|
|
1460
|
+
errorCode: errorCode,
|
|
1277
1461
|
});
|
|
1278
|
-
|
|
1462
|
+
_d.label = 13;
|
|
1463
|
+
case 13: return [2];
|
|
1279
1464
|
}
|
|
1280
1465
|
});
|
|
1281
1466
|
}); };
|
|
@@ -1287,24 +1472,23 @@ export var deserializeAws_restJson1DeleteDomainPermissionsPolicyCommand = functi
|
|
|
1287
1472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1288
1473
|
return [2, deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError(output, context)];
|
|
1289
1474
|
}
|
|
1290
|
-
contents = {
|
|
1475
|
+
contents = map({
|
|
1291
1476
|
$metadata: deserializeMetadata(output),
|
|
1292
|
-
|
|
1293
|
-
};
|
|
1477
|
+
});
|
|
1294
1478
|
_a = __expectNonNull;
|
|
1295
1479
|
_b = __expectObject;
|
|
1296
1480
|
return [4, parseBody(output.body, context)];
|
|
1297
1481
|
case 1:
|
|
1298
1482
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1299
|
-
if (data.policy
|
|
1483
|
+
if (data.policy != null) {
|
|
1300
1484
|
contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
|
|
1301
1485
|
}
|
|
1302
|
-
return [2,
|
|
1486
|
+
return [2, contents];
|
|
1303
1487
|
}
|
|
1304
1488
|
});
|
|
1305
1489
|
}); };
|
|
1306
1490
|
var deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1307
|
-
var parsedOutput, _a,
|
|
1491
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1308
1492
|
var _c;
|
|
1309
1493
|
return __generator(this, function (_d) {
|
|
1310
1494
|
switch (_d.label) {
|
|
@@ -1345,14 +1529,14 @@ var deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = function
|
|
|
1345
1529
|
case 13: throw _d.sent();
|
|
1346
1530
|
case 14:
|
|
1347
1531
|
parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
$metadata: $metadata,
|
|
1532
|
+
throwDefaultError({
|
|
1533
|
+
output: output,
|
|
1534
|
+
parsedBody: parsedBody,
|
|
1535
|
+
exceptionCtor: __BaseException,
|
|
1536
|
+
errorCode: errorCode,
|
|
1354
1537
|
});
|
|
1355
|
-
|
|
1538
|
+
_d.label = 15;
|
|
1539
|
+
case 15: return [2];
|
|
1356
1540
|
}
|
|
1357
1541
|
});
|
|
1358
1542
|
}); };
|
|
@@ -1364,28 +1548,26 @@ export var deserializeAws_restJson1DeletePackageVersionsCommand = function (outp
|
|
|
1364
1548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1365
1549
|
return [2, deserializeAws_restJson1DeletePackageVersionsCommandError(output, context)];
|
|
1366
1550
|
}
|
|
1367
|
-
contents = {
|
|
1551
|
+
contents = map({
|
|
1368
1552
|
$metadata: deserializeMetadata(output),
|
|
1369
|
-
|
|
1370
|
-
successfulVersions: undefined,
|
|
1371
|
-
};
|
|
1553
|
+
});
|
|
1372
1554
|
_a = __expectNonNull;
|
|
1373
1555
|
_b = __expectObject;
|
|
1374
1556
|
return [4, parseBody(output.body, context)];
|
|
1375
1557
|
case 1:
|
|
1376
1558
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1377
|
-
if (data.failedVersions
|
|
1559
|
+
if (data.failedVersions != null) {
|
|
1378
1560
|
contents.failedVersions = deserializeAws_restJson1PackageVersionErrorMap(data.failedVersions, context);
|
|
1379
1561
|
}
|
|
1380
|
-
if (data.successfulVersions
|
|
1562
|
+
if (data.successfulVersions != null) {
|
|
1381
1563
|
contents.successfulVersions = deserializeAws_restJson1SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
|
|
1382
1564
|
}
|
|
1383
|
-
return [2,
|
|
1565
|
+
return [2, contents];
|
|
1384
1566
|
}
|
|
1385
1567
|
});
|
|
1386
1568
|
}); };
|
|
1387
1569
|
var deserializeAws_restJson1DeletePackageVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1388
|
-
var parsedOutput, _a,
|
|
1570
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1389
1571
|
var _c;
|
|
1390
1572
|
return __generator(this, function (_d) {
|
|
1391
1573
|
switch (_d.label) {
|
|
@@ -1426,14 +1608,14 @@ var deserializeAws_restJson1DeletePackageVersionsCommandError = function (output
|
|
|
1426
1608
|
case 13: throw _d.sent();
|
|
1427
1609
|
case 14:
|
|
1428
1610
|
parsedBody = parsedOutput.body;
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
$metadata: $metadata,
|
|
1611
|
+
throwDefaultError({
|
|
1612
|
+
output: output,
|
|
1613
|
+
parsedBody: parsedBody,
|
|
1614
|
+
exceptionCtor: __BaseException,
|
|
1615
|
+
errorCode: errorCode,
|
|
1435
1616
|
});
|
|
1436
|
-
|
|
1617
|
+
_d.label = 15;
|
|
1618
|
+
case 15: return [2];
|
|
1437
1619
|
}
|
|
1438
1620
|
});
|
|
1439
1621
|
}); };
|
|
@@ -1445,24 +1627,23 @@ export var deserializeAws_restJson1DeleteRepositoryCommand = function (output, c
|
|
|
1445
1627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1446
1628
|
return [2, deserializeAws_restJson1DeleteRepositoryCommandError(output, context)];
|
|
1447
1629
|
}
|
|
1448
|
-
contents = {
|
|
1630
|
+
contents = map({
|
|
1449
1631
|
$metadata: deserializeMetadata(output),
|
|
1450
|
-
|
|
1451
|
-
};
|
|
1632
|
+
});
|
|
1452
1633
|
_a = __expectNonNull;
|
|
1453
1634
|
_b = __expectObject;
|
|
1454
1635
|
return [4, parseBody(output.body, context)];
|
|
1455
1636
|
case 1:
|
|
1456
1637
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1457
|
-
if (data.repository
|
|
1638
|
+
if (data.repository != null) {
|
|
1458
1639
|
contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
|
|
1459
1640
|
}
|
|
1460
|
-
return [2,
|
|
1641
|
+
return [2, contents];
|
|
1461
1642
|
}
|
|
1462
1643
|
});
|
|
1463
1644
|
}); };
|
|
1464
1645
|
var deserializeAws_restJson1DeleteRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1465
|
-
var parsedOutput, _a,
|
|
1646
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1466
1647
|
var _c;
|
|
1467
1648
|
return __generator(this, function (_d) {
|
|
1468
1649
|
switch (_d.label) {
|
|
@@ -1503,14 +1684,14 @@ var deserializeAws_restJson1DeleteRepositoryCommandError = function (output, con
|
|
|
1503
1684
|
case 13: throw _d.sent();
|
|
1504
1685
|
case 14:
|
|
1505
1686
|
parsedBody = parsedOutput.body;
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
$metadata: $metadata,
|
|
1687
|
+
throwDefaultError({
|
|
1688
|
+
output: output,
|
|
1689
|
+
parsedBody: parsedBody,
|
|
1690
|
+
exceptionCtor: __BaseException,
|
|
1691
|
+
errorCode: errorCode,
|
|
1512
1692
|
});
|
|
1513
|
-
|
|
1693
|
+
_d.label = 15;
|
|
1694
|
+
case 15: return [2];
|
|
1514
1695
|
}
|
|
1515
1696
|
});
|
|
1516
1697
|
}); };
|
|
@@ -1522,24 +1703,23 @@ export var deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = fu
|
|
|
1522
1703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1523
1704
|
return [2, deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError(output, context)];
|
|
1524
1705
|
}
|
|
1525
|
-
contents = {
|
|
1706
|
+
contents = map({
|
|
1526
1707
|
$metadata: deserializeMetadata(output),
|
|
1527
|
-
|
|
1528
|
-
};
|
|
1708
|
+
});
|
|
1529
1709
|
_a = __expectNonNull;
|
|
1530
1710
|
_b = __expectObject;
|
|
1531
1711
|
return [4, parseBody(output.body, context)];
|
|
1532
1712
|
case 1:
|
|
1533
1713
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1534
|
-
if (data.policy
|
|
1714
|
+
if (data.policy != null) {
|
|
1535
1715
|
contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
|
|
1536
1716
|
}
|
|
1537
|
-
return [2,
|
|
1717
|
+
return [2, contents];
|
|
1538
1718
|
}
|
|
1539
1719
|
});
|
|
1540
1720
|
}); };
|
|
1541
1721
|
var deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1542
|
-
var parsedOutput, _a,
|
|
1722
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1543
1723
|
var _c;
|
|
1544
1724
|
return __generator(this, function (_d) {
|
|
1545
1725
|
switch (_d.label) {
|
|
@@ -1580,14 +1760,14 @@ var deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = func
|
|
|
1580
1760
|
case 13: throw _d.sent();
|
|
1581
1761
|
case 14:
|
|
1582
1762
|
parsedBody = parsedOutput.body;
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
$metadata: $metadata,
|
|
1763
|
+
throwDefaultError({
|
|
1764
|
+
output: output,
|
|
1765
|
+
parsedBody: parsedBody,
|
|
1766
|
+
exceptionCtor: __BaseException,
|
|
1767
|
+
errorCode: errorCode,
|
|
1589
1768
|
});
|
|
1590
|
-
|
|
1769
|
+
_d.label = 15;
|
|
1770
|
+
case 15: return [2];
|
|
1591
1771
|
}
|
|
1592
1772
|
});
|
|
1593
1773
|
}); };
|
|
@@ -1599,24 +1779,23 @@ export var deserializeAws_restJson1DescribeDomainCommand = function (output, con
|
|
|
1599
1779
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1600
1780
|
return [2, deserializeAws_restJson1DescribeDomainCommandError(output, context)];
|
|
1601
1781
|
}
|
|
1602
|
-
contents = {
|
|
1782
|
+
contents = map({
|
|
1603
1783
|
$metadata: deserializeMetadata(output),
|
|
1604
|
-
|
|
1605
|
-
};
|
|
1784
|
+
});
|
|
1606
1785
|
_a = __expectNonNull;
|
|
1607
1786
|
_b = __expectObject;
|
|
1608
1787
|
return [4, parseBody(output.body, context)];
|
|
1609
1788
|
case 1:
|
|
1610
1789
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1611
|
-
if (data.domain
|
|
1790
|
+
if (data.domain != null) {
|
|
1612
1791
|
contents.domain = deserializeAws_restJson1DomainDescription(data.domain, context);
|
|
1613
1792
|
}
|
|
1614
|
-
return [2,
|
|
1793
|
+
return [2, contents];
|
|
1615
1794
|
}
|
|
1616
1795
|
});
|
|
1617
1796
|
}); };
|
|
1618
1797
|
var deserializeAws_restJson1DescribeDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1619
|
-
var parsedOutput, _a,
|
|
1798
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1620
1799
|
var _c;
|
|
1621
1800
|
return __generator(this, function (_d) {
|
|
1622
1801
|
switch (_d.label) {
|
|
@@ -1653,14 +1832,14 @@ var deserializeAws_restJson1DescribeDomainCommandError = function (output, conte
|
|
|
1653
1832
|
case 11: throw _d.sent();
|
|
1654
1833
|
case 12:
|
|
1655
1834
|
parsedBody = parsedOutput.body;
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
$metadata: $metadata,
|
|
1835
|
+
throwDefaultError({
|
|
1836
|
+
output: output,
|
|
1837
|
+
parsedBody: parsedBody,
|
|
1838
|
+
exceptionCtor: __BaseException,
|
|
1839
|
+
errorCode: errorCode,
|
|
1662
1840
|
});
|
|
1663
|
-
|
|
1841
|
+
_d.label = 13;
|
|
1842
|
+
case 13: return [2];
|
|
1664
1843
|
}
|
|
1665
1844
|
});
|
|
1666
1845
|
}); };
|
|
@@ -1672,24 +1851,23 @@ export var deserializeAws_restJson1DescribePackageCommand = function (output, co
|
|
|
1672
1851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1673
1852
|
return [2, deserializeAws_restJson1DescribePackageCommandError(output, context)];
|
|
1674
1853
|
}
|
|
1675
|
-
contents = {
|
|
1854
|
+
contents = map({
|
|
1676
1855
|
$metadata: deserializeMetadata(output),
|
|
1677
|
-
|
|
1678
|
-
};
|
|
1856
|
+
});
|
|
1679
1857
|
_a = __expectNonNull;
|
|
1680
1858
|
_b = __expectObject;
|
|
1681
1859
|
return [4, parseBody(output.body, context)];
|
|
1682
1860
|
case 1:
|
|
1683
1861
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1684
|
-
if (data.package
|
|
1862
|
+
if (data.package != null) {
|
|
1685
1863
|
contents.package = deserializeAws_restJson1PackageDescription(data.package, context);
|
|
1686
1864
|
}
|
|
1687
|
-
return [2,
|
|
1865
|
+
return [2, contents];
|
|
1688
1866
|
}
|
|
1689
1867
|
});
|
|
1690
1868
|
}); };
|
|
1691
1869
|
var deserializeAws_restJson1DescribePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1692
|
-
var parsedOutput, _a,
|
|
1870
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1693
1871
|
var _c;
|
|
1694
1872
|
return __generator(this, function (_d) {
|
|
1695
1873
|
switch (_d.label) {
|
|
@@ -1726,14 +1904,14 @@ var deserializeAws_restJson1DescribePackageCommandError = function (output, cont
|
|
|
1726
1904
|
case 11: throw _d.sent();
|
|
1727
1905
|
case 12:
|
|
1728
1906
|
parsedBody = parsedOutput.body;
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
$metadata: $metadata,
|
|
1907
|
+
throwDefaultError({
|
|
1908
|
+
output: output,
|
|
1909
|
+
parsedBody: parsedBody,
|
|
1910
|
+
exceptionCtor: __BaseException,
|
|
1911
|
+
errorCode: errorCode,
|
|
1735
1912
|
});
|
|
1736
|
-
|
|
1913
|
+
_d.label = 13;
|
|
1914
|
+
case 13: return [2];
|
|
1737
1915
|
}
|
|
1738
1916
|
});
|
|
1739
1917
|
}); };
|
|
@@ -1745,24 +1923,23 @@ export var deserializeAws_restJson1DescribePackageVersionCommand = function (out
|
|
|
1745
1923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
1924
|
return [2, deserializeAws_restJson1DescribePackageVersionCommandError(output, context)];
|
|
1747
1925
|
}
|
|
1748
|
-
contents = {
|
|
1926
|
+
contents = map({
|
|
1749
1927
|
$metadata: deserializeMetadata(output),
|
|
1750
|
-
|
|
1751
|
-
};
|
|
1928
|
+
});
|
|
1752
1929
|
_a = __expectNonNull;
|
|
1753
1930
|
_b = __expectObject;
|
|
1754
1931
|
return [4, parseBody(output.body, context)];
|
|
1755
1932
|
case 1:
|
|
1756
1933
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1757
|
-
if (data.packageVersion
|
|
1934
|
+
if (data.packageVersion != null) {
|
|
1758
1935
|
contents.packageVersion = deserializeAws_restJson1PackageVersionDescription(data.packageVersion, context);
|
|
1759
1936
|
}
|
|
1760
|
-
return [2,
|
|
1937
|
+
return [2, contents];
|
|
1761
1938
|
}
|
|
1762
1939
|
});
|
|
1763
1940
|
}); };
|
|
1764
1941
|
var deserializeAws_restJson1DescribePackageVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1765
|
-
var parsedOutput, _a,
|
|
1942
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1766
1943
|
var _c;
|
|
1767
1944
|
return __generator(this, function (_d) {
|
|
1768
1945
|
switch (_d.label) {
|
|
@@ -1803,14 +1980,14 @@ var deserializeAws_restJson1DescribePackageVersionCommandError = function (outpu
|
|
|
1803
1980
|
case 13: throw _d.sent();
|
|
1804
1981
|
case 14:
|
|
1805
1982
|
parsedBody = parsedOutput.body;
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
$metadata: $metadata,
|
|
1983
|
+
throwDefaultError({
|
|
1984
|
+
output: output,
|
|
1985
|
+
parsedBody: parsedBody,
|
|
1986
|
+
exceptionCtor: __BaseException,
|
|
1987
|
+
errorCode: errorCode,
|
|
1812
1988
|
});
|
|
1813
|
-
|
|
1989
|
+
_d.label = 15;
|
|
1990
|
+
case 15: return [2];
|
|
1814
1991
|
}
|
|
1815
1992
|
});
|
|
1816
1993
|
}); };
|
|
@@ -1822,24 +1999,23 @@ export var deserializeAws_restJson1DescribeRepositoryCommand = function (output,
|
|
|
1822
1999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1823
2000
|
return [2, deserializeAws_restJson1DescribeRepositoryCommandError(output, context)];
|
|
1824
2001
|
}
|
|
1825
|
-
contents = {
|
|
2002
|
+
contents = map({
|
|
1826
2003
|
$metadata: deserializeMetadata(output),
|
|
1827
|
-
|
|
1828
|
-
};
|
|
2004
|
+
});
|
|
1829
2005
|
_a = __expectNonNull;
|
|
1830
2006
|
_b = __expectObject;
|
|
1831
2007
|
return [4, parseBody(output.body, context)];
|
|
1832
2008
|
case 1:
|
|
1833
2009
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1834
|
-
if (data.repository
|
|
2010
|
+
if (data.repository != null) {
|
|
1835
2011
|
contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
|
|
1836
2012
|
}
|
|
1837
|
-
return [2,
|
|
2013
|
+
return [2, contents];
|
|
1838
2014
|
}
|
|
1839
2015
|
});
|
|
1840
2016
|
}); };
|
|
1841
2017
|
var deserializeAws_restJson1DescribeRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1842
|
-
var parsedOutput, _a,
|
|
2018
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1843
2019
|
var _c;
|
|
1844
2020
|
return __generator(this, function (_d) {
|
|
1845
2021
|
switch (_d.label) {
|
|
@@ -1876,14 +2052,14 @@ var deserializeAws_restJson1DescribeRepositoryCommandError = function (output, c
|
|
|
1876
2052
|
case 11: throw _d.sent();
|
|
1877
2053
|
case 12:
|
|
1878
2054
|
parsedBody = parsedOutput.body;
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
$metadata: $metadata,
|
|
2055
|
+
throwDefaultError({
|
|
2056
|
+
output: output,
|
|
2057
|
+
parsedBody: parsedBody,
|
|
2058
|
+
exceptionCtor: __BaseException,
|
|
2059
|
+
errorCode: errorCode,
|
|
1885
2060
|
});
|
|
1886
|
-
|
|
2061
|
+
_d.label = 13;
|
|
2062
|
+
case 13: return [2];
|
|
1887
2063
|
}
|
|
1888
2064
|
});
|
|
1889
2065
|
}); };
|
|
@@ -1895,24 +2071,23 @@ export var deserializeAws_restJson1DisassociateExternalConnectionCommand = funct
|
|
|
1895
2071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
2072
|
return [2, deserializeAws_restJson1DisassociateExternalConnectionCommandError(output, context)];
|
|
1897
2073
|
}
|
|
1898
|
-
contents = {
|
|
2074
|
+
contents = map({
|
|
1899
2075
|
$metadata: deserializeMetadata(output),
|
|
1900
|
-
|
|
1901
|
-
};
|
|
2076
|
+
});
|
|
1902
2077
|
_a = __expectNonNull;
|
|
1903
2078
|
_b = __expectObject;
|
|
1904
2079
|
return [4, parseBody(output.body, context)];
|
|
1905
2080
|
case 1:
|
|
1906
2081
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1907
|
-
if (data.repository
|
|
2082
|
+
if (data.repository != null) {
|
|
1908
2083
|
contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
|
|
1909
2084
|
}
|
|
1910
|
-
return [2,
|
|
2085
|
+
return [2, contents];
|
|
1911
2086
|
}
|
|
1912
2087
|
});
|
|
1913
2088
|
}); };
|
|
1914
2089
|
var deserializeAws_restJson1DisassociateExternalConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1915
|
-
var parsedOutput, _a,
|
|
2090
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1916
2091
|
var _c;
|
|
1917
2092
|
return __generator(this, function (_d) {
|
|
1918
2093
|
switch (_d.label) {
|
|
@@ -1957,14 +2132,14 @@ var deserializeAws_restJson1DisassociateExternalConnectionCommandError = functio
|
|
|
1957
2132
|
case 15: throw _d.sent();
|
|
1958
2133
|
case 16:
|
|
1959
2134
|
parsedBody = parsedOutput.body;
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
$metadata: $metadata,
|
|
2135
|
+
throwDefaultError({
|
|
2136
|
+
output: output,
|
|
2137
|
+
parsedBody: parsedBody,
|
|
2138
|
+
exceptionCtor: __BaseException,
|
|
2139
|
+
errorCode: errorCode,
|
|
1966
2140
|
});
|
|
1967
|
-
|
|
2141
|
+
_d.label = 17;
|
|
2142
|
+
case 17: return [2];
|
|
1968
2143
|
}
|
|
1969
2144
|
});
|
|
1970
2145
|
}); };
|
|
@@ -1976,28 +2151,26 @@ export var deserializeAws_restJson1DisposePackageVersionsCommand = function (out
|
|
|
1976
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1977
2152
|
return [2, deserializeAws_restJson1DisposePackageVersionsCommandError(output, context)];
|
|
1978
2153
|
}
|
|
1979
|
-
contents = {
|
|
2154
|
+
contents = map({
|
|
1980
2155
|
$metadata: deserializeMetadata(output),
|
|
1981
|
-
|
|
1982
|
-
successfulVersions: undefined,
|
|
1983
|
-
};
|
|
2156
|
+
});
|
|
1984
2157
|
_a = __expectNonNull;
|
|
1985
2158
|
_b = __expectObject;
|
|
1986
2159
|
return [4, parseBody(output.body, context)];
|
|
1987
2160
|
case 1:
|
|
1988
2161
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1989
|
-
if (data.failedVersions
|
|
2162
|
+
if (data.failedVersions != null) {
|
|
1990
2163
|
contents.failedVersions = deserializeAws_restJson1PackageVersionErrorMap(data.failedVersions, context);
|
|
1991
2164
|
}
|
|
1992
|
-
if (data.successfulVersions
|
|
2165
|
+
if (data.successfulVersions != null) {
|
|
1993
2166
|
contents.successfulVersions = deserializeAws_restJson1SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
|
|
1994
2167
|
}
|
|
1995
|
-
return [2,
|
|
2168
|
+
return [2, contents];
|
|
1996
2169
|
}
|
|
1997
2170
|
});
|
|
1998
2171
|
}); };
|
|
1999
2172
|
var deserializeAws_restJson1DisposePackageVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2000
|
-
var parsedOutput, _a,
|
|
2173
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2001
2174
|
var _c;
|
|
2002
2175
|
return __generator(this, function (_d) {
|
|
2003
2176
|
switch (_d.label) {
|
|
@@ -2038,14 +2211,14 @@ var deserializeAws_restJson1DisposePackageVersionsCommandError = function (outpu
|
|
|
2038
2211
|
case 13: throw _d.sent();
|
|
2039
2212
|
case 14:
|
|
2040
2213
|
parsedBody = parsedOutput.body;
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
$metadata: $metadata,
|
|
2214
|
+
throwDefaultError({
|
|
2215
|
+
output: output,
|
|
2216
|
+
parsedBody: parsedBody,
|
|
2217
|
+
exceptionCtor: __BaseException,
|
|
2218
|
+
errorCode: errorCode,
|
|
2047
2219
|
});
|
|
2048
|
-
|
|
2220
|
+
_d.label = 15;
|
|
2221
|
+
case 15: return [2];
|
|
2049
2222
|
}
|
|
2050
2223
|
});
|
|
2051
2224
|
}); };
|
|
@@ -2057,28 +2230,26 @@ export var deserializeAws_restJson1GetAuthorizationTokenCommand = function (outp
|
|
|
2057
2230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2058
2231
|
return [2, deserializeAws_restJson1GetAuthorizationTokenCommandError(output, context)];
|
|
2059
2232
|
}
|
|
2060
|
-
contents = {
|
|
2233
|
+
contents = map({
|
|
2061
2234
|
$metadata: deserializeMetadata(output),
|
|
2062
|
-
|
|
2063
|
-
expiration: undefined,
|
|
2064
|
-
};
|
|
2235
|
+
});
|
|
2065
2236
|
_a = __expectNonNull;
|
|
2066
2237
|
_b = __expectObject;
|
|
2067
2238
|
return [4, parseBody(output.body, context)];
|
|
2068
2239
|
case 1:
|
|
2069
2240
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2070
|
-
if (data.authorizationToken
|
|
2241
|
+
if (data.authorizationToken != null) {
|
|
2071
2242
|
contents.authorizationToken = __expectString(data.authorizationToken);
|
|
2072
2243
|
}
|
|
2073
|
-
if (data.expiration
|
|
2244
|
+
if (data.expiration != null) {
|
|
2074
2245
|
contents.expiration = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.expiration)));
|
|
2075
2246
|
}
|
|
2076
|
-
return [2,
|
|
2247
|
+
return [2, contents];
|
|
2077
2248
|
}
|
|
2078
2249
|
});
|
|
2079
2250
|
}); };
|
|
2080
2251
|
var deserializeAws_restJson1GetAuthorizationTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2081
|
-
var parsedOutput, _a,
|
|
2252
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2082
2253
|
var _c;
|
|
2083
2254
|
return __generator(this, function (_d) {
|
|
2084
2255
|
switch (_d.label) {
|
|
@@ -2115,14 +2286,14 @@ var deserializeAws_restJson1GetAuthorizationTokenCommandError = function (output
|
|
|
2115
2286
|
case 11: throw _d.sent();
|
|
2116
2287
|
case 12:
|
|
2117
2288
|
parsedBody = parsedOutput.body;
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
$metadata: $metadata,
|
|
2289
|
+
throwDefaultError({
|
|
2290
|
+
output: output,
|
|
2291
|
+
parsedBody: parsedBody,
|
|
2292
|
+
exceptionCtor: __BaseException,
|
|
2293
|
+
errorCode: errorCode,
|
|
2124
2294
|
});
|
|
2125
|
-
|
|
2295
|
+
_d.label = 13;
|
|
2296
|
+
case 13: return [2];
|
|
2126
2297
|
}
|
|
2127
2298
|
});
|
|
2128
2299
|
}); };
|
|
@@ -2134,24 +2305,23 @@ export var deserializeAws_restJson1GetDomainPermissionsPolicyCommand = function
|
|
|
2134
2305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2135
2306
|
return [2, deserializeAws_restJson1GetDomainPermissionsPolicyCommandError(output, context)];
|
|
2136
2307
|
}
|
|
2137
|
-
contents = {
|
|
2308
|
+
contents = map({
|
|
2138
2309
|
$metadata: deserializeMetadata(output),
|
|
2139
|
-
|
|
2140
|
-
};
|
|
2310
|
+
});
|
|
2141
2311
|
_a = __expectNonNull;
|
|
2142
2312
|
_b = __expectObject;
|
|
2143
2313
|
return [4, parseBody(output.body, context)];
|
|
2144
2314
|
case 1:
|
|
2145
2315
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2146
|
-
if (data.policy
|
|
2316
|
+
if (data.policy != null) {
|
|
2147
2317
|
contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
|
|
2148
2318
|
}
|
|
2149
|
-
return [2,
|
|
2319
|
+
return [2, contents];
|
|
2150
2320
|
}
|
|
2151
2321
|
});
|
|
2152
2322
|
}); };
|
|
2153
2323
|
var deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2154
|
-
var parsedOutput, _a,
|
|
2324
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2155
2325
|
var _c;
|
|
2156
2326
|
return __generator(this, function (_d) {
|
|
2157
2327
|
switch (_d.label) {
|
|
@@ -2188,14 +2358,14 @@ var deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = function (o
|
|
|
2188
2358
|
case 11: throw _d.sent();
|
|
2189
2359
|
case 12:
|
|
2190
2360
|
parsedBody = parsedOutput.body;
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
$metadata: $metadata,
|
|
2361
|
+
throwDefaultError({
|
|
2362
|
+
output: output,
|
|
2363
|
+
parsedBody: parsedBody,
|
|
2364
|
+
exceptionCtor: __BaseException,
|
|
2365
|
+
errorCode: errorCode,
|
|
2197
2366
|
});
|
|
2198
|
-
|
|
2367
|
+
_d.label = 13;
|
|
2368
|
+
case 13: return [2];
|
|
2199
2369
|
}
|
|
2200
2370
|
});
|
|
2201
2371
|
}); };
|
|
@@ -2205,29 +2375,19 @@ export var deserializeAws_restJson1GetPackageVersionAssetCommand = function (out
|
|
|
2205
2375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2206
2376
|
return [2, deserializeAws_restJson1GetPackageVersionAssetCommandError(output, context)];
|
|
2207
2377
|
}
|
|
2208
|
-
contents = {
|
|
2378
|
+
contents = map({
|
|
2209
2379
|
$metadata: deserializeMetadata(output),
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
};
|
|
2215
|
-
if (output.headers["x-assetname"] !== undefined) {
|
|
2216
|
-
contents.assetName = output.headers["x-assetname"];
|
|
2217
|
-
}
|
|
2218
|
-
if (output.headers["x-packageversion"] !== undefined) {
|
|
2219
|
-
contents.packageVersion = output.headers["x-packageversion"];
|
|
2220
|
-
}
|
|
2221
|
-
if (output.headers["x-packageversionrevision"] !== undefined) {
|
|
2222
|
-
contents.packageVersionRevision = output.headers["x-packageversionrevision"];
|
|
2223
|
-
}
|
|
2380
|
+
assetName: [, output.headers["x-assetname"]],
|
|
2381
|
+
packageVersion: [, output.headers["x-packageversion"]],
|
|
2382
|
+
packageVersionRevision: [, output.headers["x-packageversionrevision"]],
|
|
2383
|
+
});
|
|
2224
2384
|
data = output.body;
|
|
2225
2385
|
contents.asset = data;
|
|
2226
|
-
return [2,
|
|
2386
|
+
return [2, contents];
|
|
2227
2387
|
});
|
|
2228
2388
|
}); };
|
|
2229
2389
|
var deserializeAws_restJson1GetPackageVersionAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2230
|
-
var parsedOutput, _a,
|
|
2390
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2231
2391
|
var _c;
|
|
2232
2392
|
return __generator(this, function (_d) {
|
|
2233
2393
|
switch (_d.label) {
|
|
@@ -2268,14 +2428,14 @@ var deserializeAws_restJson1GetPackageVersionAssetCommandError = function (outpu
|
|
|
2268
2428
|
case 13: throw _d.sent();
|
|
2269
2429
|
case 14:
|
|
2270
2430
|
parsedBody = parsedOutput.body;
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
$metadata: $metadata,
|
|
2431
|
+
throwDefaultError({
|
|
2432
|
+
output: output,
|
|
2433
|
+
parsedBody: parsedBody,
|
|
2434
|
+
exceptionCtor: __BaseException,
|
|
2435
|
+
errorCode: errorCode,
|
|
2277
2436
|
});
|
|
2278
|
-
|
|
2437
|
+
_d.label = 15;
|
|
2438
|
+
case 15: return [2];
|
|
2279
2439
|
}
|
|
2280
2440
|
});
|
|
2281
2441
|
}); };
|
|
@@ -2287,44 +2447,38 @@ export var deserializeAws_restJson1GetPackageVersionReadmeCommand = function (ou
|
|
|
2287
2447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2288
2448
|
return [2, deserializeAws_restJson1GetPackageVersionReadmeCommandError(output, context)];
|
|
2289
2449
|
}
|
|
2290
|
-
contents = {
|
|
2450
|
+
contents = map({
|
|
2291
2451
|
$metadata: deserializeMetadata(output),
|
|
2292
|
-
|
|
2293
|
-
namespace: undefined,
|
|
2294
|
-
package: undefined,
|
|
2295
|
-
readme: undefined,
|
|
2296
|
-
version: undefined,
|
|
2297
|
-
versionRevision: undefined,
|
|
2298
|
-
};
|
|
2452
|
+
});
|
|
2299
2453
|
_a = __expectNonNull;
|
|
2300
2454
|
_b = __expectObject;
|
|
2301
2455
|
return [4, parseBody(output.body, context)];
|
|
2302
2456
|
case 1:
|
|
2303
2457
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2304
|
-
if (data.format
|
|
2458
|
+
if (data.format != null) {
|
|
2305
2459
|
contents.format = __expectString(data.format);
|
|
2306
2460
|
}
|
|
2307
|
-
if (data.namespace
|
|
2461
|
+
if (data.namespace != null) {
|
|
2308
2462
|
contents.namespace = __expectString(data.namespace);
|
|
2309
2463
|
}
|
|
2310
|
-
if (data.package
|
|
2464
|
+
if (data.package != null) {
|
|
2311
2465
|
contents.package = __expectString(data.package);
|
|
2312
2466
|
}
|
|
2313
|
-
if (data.readme
|
|
2467
|
+
if (data.readme != null) {
|
|
2314
2468
|
contents.readme = __expectString(data.readme);
|
|
2315
2469
|
}
|
|
2316
|
-
if (data.version
|
|
2470
|
+
if (data.version != null) {
|
|
2317
2471
|
contents.version = __expectString(data.version);
|
|
2318
2472
|
}
|
|
2319
|
-
if (data.versionRevision
|
|
2473
|
+
if (data.versionRevision != null) {
|
|
2320
2474
|
contents.versionRevision = __expectString(data.versionRevision);
|
|
2321
2475
|
}
|
|
2322
|
-
return [2,
|
|
2476
|
+
return [2, contents];
|
|
2323
2477
|
}
|
|
2324
2478
|
});
|
|
2325
2479
|
}); };
|
|
2326
2480
|
var deserializeAws_restJson1GetPackageVersionReadmeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2327
|
-
var parsedOutput, _a,
|
|
2481
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2328
2482
|
var _c;
|
|
2329
2483
|
return __generator(this, function (_d) {
|
|
2330
2484
|
switch (_d.label) {
|
|
@@ -2361,14 +2515,14 @@ var deserializeAws_restJson1GetPackageVersionReadmeCommandError = function (outp
|
|
|
2361
2515
|
case 11: throw _d.sent();
|
|
2362
2516
|
case 12:
|
|
2363
2517
|
parsedBody = parsedOutput.body;
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
$metadata: $metadata,
|
|
2518
|
+
throwDefaultError({
|
|
2519
|
+
output: output,
|
|
2520
|
+
parsedBody: parsedBody,
|
|
2521
|
+
exceptionCtor: __BaseException,
|
|
2522
|
+
errorCode: errorCode,
|
|
2370
2523
|
});
|
|
2371
|
-
|
|
2524
|
+
_d.label = 13;
|
|
2525
|
+
case 13: return [2];
|
|
2372
2526
|
}
|
|
2373
2527
|
});
|
|
2374
2528
|
}); };
|
|
@@ -2380,24 +2534,23 @@ export var deserializeAws_restJson1GetRepositoryEndpointCommand = function (outp
|
|
|
2380
2534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2381
2535
|
return [2, deserializeAws_restJson1GetRepositoryEndpointCommandError(output, context)];
|
|
2382
2536
|
}
|
|
2383
|
-
contents = {
|
|
2537
|
+
contents = map({
|
|
2384
2538
|
$metadata: deserializeMetadata(output),
|
|
2385
|
-
|
|
2386
|
-
};
|
|
2539
|
+
});
|
|
2387
2540
|
_a = __expectNonNull;
|
|
2388
2541
|
_b = __expectObject;
|
|
2389
2542
|
return [4, parseBody(output.body, context)];
|
|
2390
2543
|
case 1:
|
|
2391
2544
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2392
|
-
if (data.repositoryEndpoint
|
|
2545
|
+
if (data.repositoryEndpoint != null) {
|
|
2393
2546
|
contents.repositoryEndpoint = __expectString(data.repositoryEndpoint);
|
|
2394
2547
|
}
|
|
2395
|
-
return [2,
|
|
2548
|
+
return [2, contents];
|
|
2396
2549
|
}
|
|
2397
2550
|
});
|
|
2398
2551
|
}); };
|
|
2399
2552
|
var deserializeAws_restJson1GetRepositoryEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2400
|
-
var parsedOutput, _a,
|
|
2553
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2401
2554
|
var _c;
|
|
2402
2555
|
return __generator(this, function (_d) {
|
|
2403
2556
|
switch (_d.label) {
|
|
@@ -2434,14 +2587,14 @@ var deserializeAws_restJson1GetRepositoryEndpointCommandError = function (output
|
|
|
2434
2587
|
case 11: throw _d.sent();
|
|
2435
2588
|
case 12:
|
|
2436
2589
|
parsedBody = parsedOutput.body;
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
$metadata: $metadata,
|
|
2590
|
+
throwDefaultError({
|
|
2591
|
+
output: output,
|
|
2592
|
+
parsedBody: parsedBody,
|
|
2593
|
+
exceptionCtor: __BaseException,
|
|
2594
|
+
errorCode: errorCode,
|
|
2443
2595
|
});
|
|
2444
|
-
|
|
2596
|
+
_d.label = 13;
|
|
2597
|
+
case 13: return [2];
|
|
2445
2598
|
}
|
|
2446
2599
|
});
|
|
2447
2600
|
}); };
|
|
@@ -2453,24 +2606,23 @@ export var deserializeAws_restJson1GetRepositoryPermissionsPolicyCommand = funct
|
|
|
2453
2606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2454
2607
|
return [2, deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError(output, context)];
|
|
2455
2608
|
}
|
|
2456
|
-
contents = {
|
|
2609
|
+
contents = map({
|
|
2457
2610
|
$metadata: deserializeMetadata(output),
|
|
2458
|
-
|
|
2459
|
-
};
|
|
2611
|
+
});
|
|
2460
2612
|
_a = __expectNonNull;
|
|
2461
2613
|
_b = __expectObject;
|
|
2462
2614
|
return [4, parseBody(output.body, context)];
|
|
2463
2615
|
case 1:
|
|
2464
2616
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2465
|
-
if (data.policy
|
|
2617
|
+
if (data.policy != null) {
|
|
2466
2618
|
contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
|
|
2467
2619
|
}
|
|
2468
|
-
return [2,
|
|
2620
|
+
return [2, contents];
|
|
2469
2621
|
}
|
|
2470
2622
|
});
|
|
2471
2623
|
}); };
|
|
2472
2624
|
var deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2473
|
-
var parsedOutput, _a,
|
|
2625
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2474
2626
|
var _c;
|
|
2475
2627
|
return __generator(this, function (_d) {
|
|
2476
2628
|
switch (_d.label) {
|
|
@@ -2507,14 +2659,14 @@ var deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = functio
|
|
|
2507
2659
|
case 11: throw _d.sent();
|
|
2508
2660
|
case 12:
|
|
2509
2661
|
parsedBody = parsedOutput.body;
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
$metadata: $metadata,
|
|
2662
|
+
throwDefaultError({
|
|
2663
|
+
output: output,
|
|
2664
|
+
parsedBody: parsedBody,
|
|
2665
|
+
exceptionCtor: __BaseException,
|
|
2666
|
+
errorCode: errorCode,
|
|
2516
2667
|
});
|
|
2517
|
-
|
|
2668
|
+
_d.label = 13;
|
|
2669
|
+
case 13: return [2];
|
|
2518
2670
|
}
|
|
2519
2671
|
});
|
|
2520
2672
|
}); };
|
|
@@ -2526,28 +2678,26 @@ export var deserializeAws_restJson1ListDomainsCommand = function (output, contex
|
|
|
2526
2678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2527
2679
|
return [2, deserializeAws_restJson1ListDomainsCommandError(output, context)];
|
|
2528
2680
|
}
|
|
2529
|
-
contents = {
|
|
2681
|
+
contents = map({
|
|
2530
2682
|
$metadata: deserializeMetadata(output),
|
|
2531
|
-
|
|
2532
|
-
nextToken: undefined,
|
|
2533
|
-
};
|
|
2683
|
+
});
|
|
2534
2684
|
_a = __expectNonNull;
|
|
2535
2685
|
_b = __expectObject;
|
|
2536
2686
|
return [4, parseBody(output.body, context)];
|
|
2537
2687
|
case 1:
|
|
2538
2688
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2539
|
-
if (data.domains
|
|
2689
|
+
if (data.domains != null) {
|
|
2540
2690
|
contents.domains = deserializeAws_restJson1DomainSummaryList(data.domains, context);
|
|
2541
2691
|
}
|
|
2542
|
-
if (data.nextToken
|
|
2692
|
+
if (data.nextToken != null) {
|
|
2543
2693
|
contents.nextToken = __expectString(data.nextToken);
|
|
2544
2694
|
}
|
|
2545
|
-
return [2,
|
|
2695
|
+
return [2, contents];
|
|
2546
2696
|
}
|
|
2547
2697
|
});
|
|
2548
2698
|
}); };
|
|
2549
2699
|
var deserializeAws_restJson1ListDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2550
|
-
var parsedOutput, _a,
|
|
2700
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2551
2701
|
var _c;
|
|
2552
2702
|
return __generator(this, function (_d) {
|
|
2553
2703
|
switch (_d.label) {
|
|
@@ -2580,14 +2730,14 @@ var deserializeAws_restJson1ListDomainsCommandError = function (output, context)
|
|
|
2580
2730
|
case 9: throw _d.sent();
|
|
2581
2731
|
case 10:
|
|
2582
2732
|
parsedBody = parsedOutput.body;
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
$metadata: $metadata,
|
|
2733
|
+
throwDefaultError({
|
|
2734
|
+
output: output,
|
|
2735
|
+
parsedBody: parsedBody,
|
|
2736
|
+
exceptionCtor: __BaseException,
|
|
2737
|
+
errorCode: errorCode,
|
|
2589
2738
|
});
|
|
2590
|
-
|
|
2739
|
+
_d.label = 11;
|
|
2740
|
+
case 11: return [2];
|
|
2591
2741
|
}
|
|
2592
2742
|
});
|
|
2593
2743
|
}); };
|
|
@@ -2599,28 +2749,26 @@ export var deserializeAws_restJson1ListPackagesCommand = function (output, conte
|
|
|
2599
2749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2600
2750
|
return [2, deserializeAws_restJson1ListPackagesCommandError(output, context)];
|
|
2601
2751
|
}
|
|
2602
|
-
contents = {
|
|
2752
|
+
contents = map({
|
|
2603
2753
|
$metadata: deserializeMetadata(output),
|
|
2604
|
-
|
|
2605
|
-
packages: undefined,
|
|
2606
|
-
};
|
|
2754
|
+
});
|
|
2607
2755
|
_a = __expectNonNull;
|
|
2608
2756
|
_b = __expectObject;
|
|
2609
2757
|
return [4, parseBody(output.body, context)];
|
|
2610
2758
|
case 1:
|
|
2611
2759
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2612
|
-
if (data.nextToken
|
|
2760
|
+
if (data.nextToken != null) {
|
|
2613
2761
|
contents.nextToken = __expectString(data.nextToken);
|
|
2614
2762
|
}
|
|
2615
|
-
if (data.packages
|
|
2763
|
+
if (data.packages != null) {
|
|
2616
2764
|
contents.packages = deserializeAws_restJson1PackageSummaryList(data.packages, context);
|
|
2617
2765
|
}
|
|
2618
|
-
return [2,
|
|
2766
|
+
return [2, contents];
|
|
2619
2767
|
}
|
|
2620
2768
|
});
|
|
2621
2769
|
}); };
|
|
2622
2770
|
var deserializeAws_restJson1ListPackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2623
|
-
var parsedOutput, _a,
|
|
2771
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2624
2772
|
var _c;
|
|
2625
2773
|
return __generator(this, function (_d) {
|
|
2626
2774
|
switch (_d.label) {
|
|
@@ -2657,14 +2805,14 @@ var deserializeAws_restJson1ListPackagesCommandError = function (output, context
|
|
|
2657
2805
|
case 11: throw _d.sent();
|
|
2658
2806
|
case 12:
|
|
2659
2807
|
parsedBody = parsedOutput.body;
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
$metadata: $metadata,
|
|
2808
|
+
throwDefaultError({
|
|
2809
|
+
output: output,
|
|
2810
|
+
parsedBody: parsedBody,
|
|
2811
|
+
exceptionCtor: __BaseException,
|
|
2812
|
+
errorCode: errorCode,
|
|
2666
2813
|
});
|
|
2667
|
-
|
|
2814
|
+
_d.label = 13;
|
|
2815
|
+
case 13: return [2];
|
|
2668
2816
|
}
|
|
2669
2817
|
});
|
|
2670
2818
|
}); };
|
|
@@ -2676,48 +2824,41 @@ export var deserializeAws_restJson1ListPackageVersionAssetsCommand = function (o
|
|
|
2676
2824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2677
2825
|
return [2, deserializeAws_restJson1ListPackageVersionAssetsCommandError(output, context)];
|
|
2678
2826
|
}
|
|
2679
|
-
contents = {
|
|
2827
|
+
contents = map({
|
|
2680
2828
|
$metadata: deserializeMetadata(output),
|
|
2681
|
-
|
|
2682
|
-
format: undefined,
|
|
2683
|
-
namespace: undefined,
|
|
2684
|
-
nextToken: undefined,
|
|
2685
|
-
package: undefined,
|
|
2686
|
-
version: undefined,
|
|
2687
|
-
versionRevision: undefined,
|
|
2688
|
-
};
|
|
2829
|
+
});
|
|
2689
2830
|
_a = __expectNonNull;
|
|
2690
2831
|
_b = __expectObject;
|
|
2691
2832
|
return [4, parseBody(output.body, context)];
|
|
2692
2833
|
case 1:
|
|
2693
2834
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2694
|
-
if (data.assets
|
|
2835
|
+
if (data.assets != null) {
|
|
2695
2836
|
contents.assets = deserializeAws_restJson1AssetSummaryList(data.assets, context);
|
|
2696
2837
|
}
|
|
2697
|
-
if (data.format
|
|
2838
|
+
if (data.format != null) {
|
|
2698
2839
|
contents.format = __expectString(data.format);
|
|
2699
2840
|
}
|
|
2700
|
-
if (data.namespace
|
|
2841
|
+
if (data.namespace != null) {
|
|
2701
2842
|
contents.namespace = __expectString(data.namespace);
|
|
2702
2843
|
}
|
|
2703
|
-
if (data.nextToken
|
|
2844
|
+
if (data.nextToken != null) {
|
|
2704
2845
|
contents.nextToken = __expectString(data.nextToken);
|
|
2705
2846
|
}
|
|
2706
|
-
if (data.package
|
|
2847
|
+
if (data.package != null) {
|
|
2707
2848
|
contents.package = __expectString(data.package);
|
|
2708
2849
|
}
|
|
2709
|
-
if (data.version
|
|
2850
|
+
if (data.version != null) {
|
|
2710
2851
|
contents.version = __expectString(data.version);
|
|
2711
2852
|
}
|
|
2712
|
-
if (data.versionRevision
|
|
2853
|
+
if (data.versionRevision != null) {
|
|
2713
2854
|
contents.versionRevision = __expectString(data.versionRevision);
|
|
2714
2855
|
}
|
|
2715
|
-
return [2,
|
|
2856
|
+
return [2, contents];
|
|
2716
2857
|
}
|
|
2717
2858
|
});
|
|
2718
2859
|
}); };
|
|
2719
2860
|
var deserializeAws_restJson1ListPackageVersionAssetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2720
|
-
var parsedOutput, _a,
|
|
2861
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2721
2862
|
var _c;
|
|
2722
2863
|
return __generator(this, function (_d) {
|
|
2723
2864
|
switch (_d.label) {
|
|
@@ -2754,14 +2895,14 @@ var deserializeAws_restJson1ListPackageVersionAssetsCommandError = function (out
|
|
|
2754
2895
|
case 11: throw _d.sent();
|
|
2755
2896
|
case 12:
|
|
2756
2897
|
parsedBody = parsedOutput.body;
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
$metadata: $metadata,
|
|
2898
|
+
throwDefaultError({
|
|
2899
|
+
output: output,
|
|
2900
|
+
parsedBody: parsedBody,
|
|
2901
|
+
exceptionCtor: __BaseException,
|
|
2902
|
+
errorCode: errorCode,
|
|
2763
2903
|
});
|
|
2764
|
-
|
|
2904
|
+
_d.label = 13;
|
|
2905
|
+
case 13: return [2];
|
|
2765
2906
|
}
|
|
2766
2907
|
});
|
|
2767
2908
|
}); };
|
|
@@ -2773,48 +2914,41 @@ export var deserializeAws_restJson1ListPackageVersionDependenciesCommand = funct
|
|
|
2773
2914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2774
2915
|
return [2, deserializeAws_restJson1ListPackageVersionDependenciesCommandError(output, context)];
|
|
2775
2916
|
}
|
|
2776
|
-
contents = {
|
|
2917
|
+
contents = map({
|
|
2777
2918
|
$metadata: deserializeMetadata(output),
|
|
2778
|
-
|
|
2779
|
-
format: undefined,
|
|
2780
|
-
namespace: undefined,
|
|
2781
|
-
nextToken: undefined,
|
|
2782
|
-
package: undefined,
|
|
2783
|
-
version: undefined,
|
|
2784
|
-
versionRevision: undefined,
|
|
2785
|
-
};
|
|
2919
|
+
});
|
|
2786
2920
|
_a = __expectNonNull;
|
|
2787
2921
|
_b = __expectObject;
|
|
2788
2922
|
return [4, parseBody(output.body, context)];
|
|
2789
2923
|
case 1:
|
|
2790
2924
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2791
|
-
if (data.dependencies
|
|
2925
|
+
if (data.dependencies != null) {
|
|
2792
2926
|
contents.dependencies = deserializeAws_restJson1PackageDependencyList(data.dependencies, context);
|
|
2793
2927
|
}
|
|
2794
|
-
if (data.format
|
|
2928
|
+
if (data.format != null) {
|
|
2795
2929
|
contents.format = __expectString(data.format);
|
|
2796
2930
|
}
|
|
2797
|
-
if (data.namespace
|
|
2931
|
+
if (data.namespace != null) {
|
|
2798
2932
|
contents.namespace = __expectString(data.namespace);
|
|
2799
2933
|
}
|
|
2800
|
-
if (data.nextToken
|
|
2934
|
+
if (data.nextToken != null) {
|
|
2801
2935
|
contents.nextToken = __expectString(data.nextToken);
|
|
2802
2936
|
}
|
|
2803
|
-
if (data.package
|
|
2937
|
+
if (data.package != null) {
|
|
2804
2938
|
contents.package = __expectString(data.package);
|
|
2805
2939
|
}
|
|
2806
|
-
if (data.version
|
|
2940
|
+
if (data.version != null) {
|
|
2807
2941
|
contents.version = __expectString(data.version);
|
|
2808
2942
|
}
|
|
2809
|
-
if (data.versionRevision
|
|
2943
|
+
if (data.versionRevision != null) {
|
|
2810
2944
|
contents.versionRevision = __expectString(data.versionRevision);
|
|
2811
2945
|
}
|
|
2812
|
-
return [2,
|
|
2946
|
+
return [2, contents];
|
|
2813
2947
|
}
|
|
2814
2948
|
});
|
|
2815
2949
|
}); };
|
|
2816
2950
|
var deserializeAws_restJson1ListPackageVersionDependenciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2817
|
-
var parsedOutput, _a,
|
|
2951
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2818
2952
|
var _c;
|
|
2819
2953
|
return __generator(this, function (_d) {
|
|
2820
2954
|
switch (_d.label) {
|
|
@@ -2851,14 +2985,14 @@ var deserializeAws_restJson1ListPackageVersionDependenciesCommandError = functio
|
|
|
2851
2985
|
case 11: throw _d.sent();
|
|
2852
2986
|
case 12:
|
|
2853
2987
|
parsedBody = parsedOutput.body;
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
$metadata: $metadata,
|
|
2988
|
+
throwDefaultError({
|
|
2989
|
+
output: output,
|
|
2990
|
+
parsedBody: parsedBody,
|
|
2991
|
+
exceptionCtor: __BaseException,
|
|
2992
|
+
errorCode: errorCode,
|
|
2860
2993
|
});
|
|
2861
|
-
|
|
2994
|
+
_d.label = 13;
|
|
2995
|
+
case 13: return [2];
|
|
2862
2996
|
}
|
|
2863
2997
|
});
|
|
2864
2998
|
}); };
|
|
@@ -2870,44 +3004,38 @@ export var deserializeAws_restJson1ListPackageVersionsCommand = function (output
|
|
|
2870
3004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2871
3005
|
return [2, deserializeAws_restJson1ListPackageVersionsCommandError(output, context)];
|
|
2872
3006
|
}
|
|
2873
|
-
contents = {
|
|
3007
|
+
contents = map({
|
|
2874
3008
|
$metadata: deserializeMetadata(output),
|
|
2875
|
-
|
|
2876
|
-
format: undefined,
|
|
2877
|
-
namespace: undefined,
|
|
2878
|
-
nextToken: undefined,
|
|
2879
|
-
package: undefined,
|
|
2880
|
-
versions: undefined,
|
|
2881
|
-
};
|
|
3009
|
+
});
|
|
2882
3010
|
_a = __expectNonNull;
|
|
2883
3011
|
_b = __expectObject;
|
|
2884
3012
|
return [4, parseBody(output.body, context)];
|
|
2885
3013
|
case 1:
|
|
2886
3014
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2887
|
-
if (data.defaultDisplayVersion
|
|
3015
|
+
if (data.defaultDisplayVersion != null) {
|
|
2888
3016
|
contents.defaultDisplayVersion = __expectString(data.defaultDisplayVersion);
|
|
2889
3017
|
}
|
|
2890
|
-
if (data.format
|
|
3018
|
+
if (data.format != null) {
|
|
2891
3019
|
contents.format = __expectString(data.format);
|
|
2892
3020
|
}
|
|
2893
|
-
if (data.namespace
|
|
3021
|
+
if (data.namespace != null) {
|
|
2894
3022
|
contents.namespace = __expectString(data.namespace);
|
|
2895
3023
|
}
|
|
2896
|
-
if (data.nextToken
|
|
3024
|
+
if (data.nextToken != null) {
|
|
2897
3025
|
contents.nextToken = __expectString(data.nextToken);
|
|
2898
3026
|
}
|
|
2899
|
-
if (data.package
|
|
3027
|
+
if (data.package != null) {
|
|
2900
3028
|
contents.package = __expectString(data.package);
|
|
2901
3029
|
}
|
|
2902
|
-
if (data.versions
|
|
3030
|
+
if (data.versions != null) {
|
|
2903
3031
|
contents.versions = deserializeAws_restJson1PackageVersionSummaryList(data.versions, context);
|
|
2904
3032
|
}
|
|
2905
|
-
return [2,
|
|
3033
|
+
return [2, contents];
|
|
2906
3034
|
}
|
|
2907
3035
|
});
|
|
2908
3036
|
}); };
|
|
2909
3037
|
var deserializeAws_restJson1ListPackageVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2910
|
-
var parsedOutput, _a,
|
|
3038
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2911
3039
|
var _c;
|
|
2912
3040
|
return __generator(this, function (_d) {
|
|
2913
3041
|
switch (_d.label) {
|
|
@@ -2944,14 +3072,14 @@ var deserializeAws_restJson1ListPackageVersionsCommandError = function (output,
|
|
|
2944
3072
|
case 11: throw _d.sent();
|
|
2945
3073
|
case 12:
|
|
2946
3074
|
parsedBody = parsedOutput.body;
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
$metadata: $metadata,
|
|
3075
|
+
throwDefaultError({
|
|
3076
|
+
output: output,
|
|
3077
|
+
parsedBody: parsedBody,
|
|
3078
|
+
exceptionCtor: __BaseException,
|
|
3079
|
+
errorCode: errorCode,
|
|
2953
3080
|
});
|
|
2954
|
-
|
|
3081
|
+
_d.label = 13;
|
|
3082
|
+
case 13: return [2];
|
|
2955
3083
|
}
|
|
2956
3084
|
});
|
|
2957
3085
|
}); };
|
|
@@ -2963,28 +3091,26 @@ export var deserializeAws_restJson1ListRepositoriesCommand = function (output, c
|
|
|
2963
3091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2964
3092
|
return [2, deserializeAws_restJson1ListRepositoriesCommandError(output, context)];
|
|
2965
3093
|
}
|
|
2966
|
-
contents = {
|
|
3094
|
+
contents = map({
|
|
2967
3095
|
$metadata: deserializeMetadata(output),
|
|
2968
|
-
|
|
2969
|
-
repositories: undefined,
|
|
2970
|
-
};
|
|
3096
|
+
});
|
|
2971
3097
|
_a = __expectNonNull;
|
|
2972
3098
|
_b = __expectObject;
|
|
2973
3099
|
return [4, parseBody(output.body, context)];
|
|
2974
3100
|
case 1:
|
|
2975
3101
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2976
|
-
if (data.nextToken
|
|
3102
|
+
if (data.nextToken != null) {
|
|
2977
3103
|
contents.nextToken = __expectString(data.nextToken);
|
|
2978
3104
|
}
|
|
2979
|
-
if (data.repositories
|
|
3105
|
+
if (data.repositories != null) {
|
|
2980
3106
|
contents.repositories = deserializeAws_restJson1RepositorySummaryList(data.repositories, context);
|
|
2981
3107
|
}
|
|
2982
|
-
return [2,
|
|
3108
|
+
return [2, contents];
|
|
2983
3109
|
}
|
|
2984
3110
|
});
|
|
2985
3111
|
}); };
|
|
2986
3112
|
var deserializeAws_restJson1ListRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2987
|
-
var parsedOutput, _a,
|
|
3113
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2988
3114
|
var _c;
|
|
2989
3115
|
return __generator(this, function (_d) {
|
|
2990
3116
|
switch (_d.label) {
|
|
@@ -3017,14 +3143,14 @@ var deserializeAws_restJson1ListRepositoriesCommandError = function (output, con
|
|
|
3017
3143
|
case 9: throw _d.sent();
|
|
3018
3144
|
case 10:
|
|
3019
3145
|
parsedBody = parsedOutput.body;
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
$metadata: $metadata,
|
|
3146
|
+
throwDefaultError({
|
|
3147
|
+
output: output,
|
|
3148
|
+
parsedBody: parsedBody,
|
|
3149
|
+
exceptionCtor: __BaseException,
|
|
3150
|
+
errorCode: errorCode,
|
|
3026
3151
|
});
|
|
3027
|
-
|
|
3152
|
+
_d.label = 11;
|
|
3153
|
+
case 11: return [2];
|
|
3028
3154
|
}
|
|
3029
3155
|
});
|
|
3030
3156
|
}); };
|
|
@@ -3036,28 +3162,26 @@ export var deserializeAws_restJson1ListRepositoriesInDomainCommand = function (o
|
|
|
3036
3162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3037
3163
|
return [2, deserializeAws_restJson1ListRepositoriesInDomainCommandError(output, context)];
|
|
3038
3164
|
}
|
|
3039
|
-
contents = {
|
|
3165
|
+
contents = map({
|
|
3040
3166
|
$metadata: deserializeMetadata(output),
|
|
3041
|
-
|
|
3042
|
-
repositories: undefined,
|
|
3043
|
-
};
|
|
3167
|
+
});
|
|
3044
3168
|
_a = __expectNonNull;
|
|
3045
3169
|
_b = __expectObject;
|
|
3046
3170
|
return [4, parseBody(output.body, context)];
|
|
3047
3171
|
case 1:
|
|
3048
3172
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3049
|
-
if (data.nextToken
|
|
3173
|
+
if (data.nextToken != null) {
|
|
3050
3174
|
contents.nextToken = __expectString(data.nextToken);
|
|
3051
3175
|
}
|
|
3052
|
-
if (data.repositories
|
|
3176
|
+
if (data.repositories != null) {
|
|
3053
3177
|
contents.repositories = deserializeAws_restJson1RepositorySummaryList(data.repositories, context);
|
|
3054
3178
|
}
|
|
3055
|
-
return [2,
|
|
3179
|
+
return [2, contents];
|
|
3056
3180
|
}
|
|
3057
3181
|
});
|
|
3058
3182
|
}); };
|
|
3059
3183
|
var deserializeAws_restJson1ListRepositoriesInDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3060
|
-
var parsedOutput, _a,
|
|
3184
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3061
3185
|
var _c;
|
|
3062
3186
|
return __generator(this, function (_d) {
|
|
3063
3187
|
switch (_d.label) {
|
|
@@ -3094,14 +3218,14 @@ var deserializeAws_restJson1ListRepositoriesInDomainCommandError = function (out
|
|
|
3094
3218
|
case 11: throw _d.sent();
|
|
3095
3219
|
case 12:
|
|
3096
3220
|
parsedBody = parsedOutput.body;
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
$metadata: $metadata,
|
|
3221
|
+
throwDefaultError({
|
|
3222
|
+
output: output,
|
|
3223
|
+
parsedBody: parsedBody,
|
|
3224
|
+
exceptionCtor: __BaseException,
|
|
3225
|
+
errorCode: errorCode,
|
|
3103
3226
|
});
|
|
3104
|
-
|
|
3227
|
+
_d.label = 13;
|
|
3228
|
+
case 13: return [2];
|
|
3105
3229
|
}
|
|
3106
3230
|
});
|
|
3107
3231
|
}); };
|
|
@@ -3113,24 +3237,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3113
3237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3114
3238
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
3115
3239
|
}
|
|
3116
|
-
contents = {
|
|
3240
|
+
contents = map({
|
|
3117
3241
|
$metadata: deserializeMetadata(output),
|
|
3118
|
-
|
|
3119
|
-
};
|
|
3242
|
+
});
|
|
3120
3243
|
_a = __expectNonNull;
|
|
3121
3244
|
_b = __expectObject;
|
|
3122
3245
|
return [4, parseBody(output.body, context)];
|
|
3123
3246
|
case 1:
|
|
3124
3247
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3125
|
-
if (data.tags
|
|
3248
|
+
if (data.tags != null) {
|
|
3126
3249
|
contents.tags = deserializeAws_restJson1TagList(data.tags, context);
|
|
3127
3250
|
}
|
|
3128
|
-
return [2,
|
|
3251
|
+
return [2, contents];
|
|
3129
3252
|
}
|
|
3130
3253
|
});
|
|
3131
3254
|
}); };
|
|
3132
3255
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3133
|
-
var parsedOutput, _a,
|
|
3256
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3134
3257
|
var _c;
|
|
3135
3258
|
return __generator(this, function (_d) {
|
|
3136
3259
|
switch (_d.label) {
|
|
@@ -3163,14 +3286,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3163
3286
|
case 9: throw _d.sent();
|
|
3164
3287
|
case 10:
|
|
3165
3288
|
parsedBody = parsedOutput.body;
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
$metadata: $metadata,
|
|
3289
|
+
throwDefaultError({
|
|
3290
|
+
output: output,
|
|
3291
|
+
parsedBody: parsedBody,
|
|
3292
|
+
exceptionCtor: __BaseException,
|
|
3293
|
+
errorCode: errorCode,
|
|
3172
3294
|
});
|
|
3173
|
-
|
|
3295
|
+
_d.label = 11;
|
|
3296
|
+
case 11: return [2];
|
|
3174
3297
|
}
|
|
3175
3298
|
});
|
|
3176
3299
|
}); };
|
|
@@ -3182,24 +3305,23 @@ export var deserializeAws_restJson1PutDomainPermissionsPolicyCommand = function
|
|
|
3182
3305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3183
3306
|
return [2, deserializeAws_restJson1PutDomainPermissionsPolicyCommandError(output, context)];
|
|
3184
3307
|
}
|
|
3185
|
-
contents = {
|
|
3308
|
+
contents = map({
|
|
3186
3309
|
$metadata: deserializeMetadata(output),
|
|
3187
|
-
|
|
3188
|
-
};
|
|
3310
|
+
});
|
|
3189
3311
|
_a = __expectNonNull;
|
|
3190
3312
|
_b = __expectObject;
|
|
3191
3313
|
return [4, parseBody(output.body, context)];
|
|
3192
3314
|
case 1:
|
|
3193
3315
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3194
|
-
if (data.policy
|
|
3316
|
+
if (data.policy != null) {
|
|
3195
3317
|
contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
|
|
3196
3318
|
}
|
|
3197
|
-
return [2,
|
|
3319
|
+
return [2, contents];
|
|
3198
3320
|
}
|
|
3199
3321
|
});
|
|
3200
3322
|
}); };
|
|
3201
3323
|
var deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3202
|
-
var parsedOutput, _a,
|
|
3324
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3203
3325
|
var _c;
|
|
3204
3326
|
return __generator(this, function (_d) {
|
|
3205
3327
|
switch (_d.label) {
|
|
@@ -3244,14 +3366,14 @@ var deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = function (o
|
|
|
3244
3366
|
case 15: throw _d.sent();
|
|
3245
3367
|
case 16:
|
|
3246
3368
|
parsedBody = parsedOutput.body;
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
$metadata: $metadata,
|
|
3369
|
+
throwDefaultError({
|
|
3370
|
+
output: output,
|
|
3371
|
+
parsedBody: parsedBody,
|
|
3372
|
+
exceptionCtor: __BaseException,
|
|
3373
|
+
errorCode: errorCode,
|
|
3253
3374
|
});
|
|
3254
|
-
|
|
3375
|
+
_d.label = 17;
|
|
3376
|
+
case 17: return [2];
|
|
3255
3377
|
}
|
|
3256
3378
|
});
|
|
3257
3379
|
}); };
|
|
@@ -3263,24 +3385,23 @@ export var deserializeAws_restJson1PutPackageOriginConfigurationCommand = functi
|
|
|
3263
3385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3264
3386
|
return [2, deserializeAws_restJson1PutPackageOriginConfigurationCommandError(output, context)];
|
|
3265
3387
|
}
|
|
3266
|
-
contents = {
|
|
3388
|
+
contents = map({
|
|
3267
3389
|
$metadata: deserializeMetadata(output),
|
|
3268
|
-
|
|
3269
|
-
};
|
|
3390
|
+
});
|
|
3270
3391
|
_a = __expectNonNull;
|
|
3271
3392
|
_b = __expectObject;
|
|
3272
3393
|
return [4, parseBody(output.body, context)];
|
|
3273
3394
|
case 1:
|
|
3274
3395
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3275
|
-
if (data.originConfiguration
|
|
3396
|
+
if (data.originConfiguration != null) {
|
|
3276
3397
|
contents.originConfiguration = deserializeAws_restJson1PackageOriginConfiguration(data.originConfiguration, context);
|
|
3277
3398
|
}
|
|
3278
|
-
return [2,
|
|
3399
|
+
return [2, contents];
|
|
3279
3400
|
}
|
|
3280
3401
|
});
|
|
3281
3402
|
}); };
|
|
3282
3403
|
var deserializeAws_restJson1PutPackageOriginConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3283
|
-
var parsedOutput, _a,
|
|
3404
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3284
3405
|
var _c;
|
|
3285
3406
|
return __generator(this, function (_d) {
|
|
3286
3407
|
switch (_d.label) {
|
|
@@ -3317,14 +3438,14 @@ var deserializeAws_restJson1PutPackageOriginConfigurationCommandError = function
|
|
|
3317
3438
|
case 11: throw _d.sent();
|
|
3318
3439
|
case 12:
|
|
3319
3440
|
parsedBody = parsedOutput.body;
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
$metadata: $metadata,
|
|
3441
|
+
throwDefaultError({
|
|
3442
|
+
output: output,
|
|
3443
|
+
parsedBody: parsedBody,
|
|
3444
|
+
exceptionCtor: __BaseException,
|
|
3445
|
+
errorCode: errorCode,
|
|
3326
3446
|
});
|
|
3327
|
-
|
|
3447
|
+
_d.label = 13;
|
|
3448
|
+
case 13: return [2];
|
|
3328
3449
|
}
|
|
3329
3450
|
});
|
|
3330
3451
|
}); };
|
|
@@ -3336,24 +3457,23 @@ export var deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand = funct
|
|
|
3336
3457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3337
3458
|
return [2, deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError(output, context)];
|
|
3338
3459
|
}
|
|
3339
|
-
contents = {
|
|
3460
|
+
contents = map({
|
|
3340
3461
|
$metadata: deserializeMetadata(output),
|
|
3341
|
-
|
|
3342
|
-
};
|
|
3462
|
+
});
|
|
3343
3463
|
_a = __expectNonNull;
|
|
3344
3464
|
_b = __expectObject;
|
|
3345
3465
|
return [4, parseBody(output.body, context)];
|
|
3346
3466
|
case 1:
|
|
3347
3467
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3348
|
-
if (data.policy
|
|
3468
|
+
if (data.policy != null) {
|
|
3349
3469
|
contents.policy = deserializeAws_restJson1ResourcePolicy(data.policy, context);
|
|
3350
3470
|
}
|
|
3351
|
-
return [2,
|
|
3471
|
+
return [2, contents];
|
|
3352
3472
|
}
|
|
3353
3473
|
});
|
|
3354
3474
|
}); };
|
|
3355
3475
|
var deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3356
|
-
var parsedOutput, _a,
|
|
3476
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3357
3477
|
var _c;
|
|
3358
3478
|
return __generator(this, function (_d) {
|
|
3359
3479
|
switch (_d.label) {
|
|
@@ -3398,14 +3518,14 @@ var deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = functio
|
|
|
3398
3518
|
case 15: throw _d.sent();
|
|
3399
3519
|
case 16:
|
|
3400
3520
|
parsedBody = parsedOutput.body;
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
$metadata: $metadata,
|
|
3521
|
+
throwDefaultError({
|
|
3522
|
+
output: output,
|
|
3523
|
+
parsedBody: parsedBody,
|
|
3524
|
+
exceptionCtor: __BaseException,
|
|
3525
|
+
errorCode: errorCode,
|
|
3407
3526
|
});
|
|
3408
|
-
|
|
3527
|
+
_d.label = 17;
|
|
3528
|
+
case 17: return [2];
|
|
3409
3529
|
}
|
|
3410
3530
|
});
|
|
3411
3531
|
}); };
|
|
@@ -3417,18 +3537,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3417
3537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3418
3538
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3419
3539
|
}
|
|
3420
|
-
contents = {
|
|
3540
|
+
contents = map({
|
|
3421
3541
|
$metadata: deserializeMetadata(output),
|
|
3422
|
-
};
|
|
3542
|
+
});
|
|
3423
3543
|
return [4, collectBody(output.body, context)];
|
|
3424
3544
|
case 1:
|
|
3425
3545
|
_a.sent();
|
|
3426
|
-
return [2,
|
|
3546
|
+
return [2, contents];
|
|
3427
3547
|
}
|
|
3428
3548
|
});
|
|
3429
3549
|
}); };
|
|
3430
3550
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3431
|
-
var parsedOutput, _a,
|
|
3551
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3432
3552
|
var _c;
|
|
3433
3553
|
return __generator(this, function (_d) {
|
|
3434
3554
|
switch (_d.label) {
|
|
@@ -3465,14 +3585,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3465
3585
|
case 11: throw _d.sent();
|
|
3466
3586
|
case 12:
|
|
3467
3587
|
parsedBody = parsedOutput.body;
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
$metadata: $metadata,
|
|
3588
|
+
throwDefaultError({
|
|
3589
|
+
output: output,
|
|
3590
|
+
parsedBody: parsedBody,
|
|
3591
|
+
exceptionCtor: __BaseException,
|
|
3592
|
+
errorCode: errorCode,
|
|
3474
3593
|
});
|
|
3475
|
-
|
|
3594
|
+
_d.label = 13;
|
|
3595
|
+
case 13: return [2];
|
|
3476
3596
|
}
|
|
3477
3597
|
});
|
|
3478
3598
|
}); };
|
|
@@ -3484,18 +3604,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3484
3604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3485
3605
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3486
3606
|
}
|
|
3487
|
-
contents = {
|
|
3607
|
+
contents = map({
|
|
3488
3608
|
$metadata: deserializeMetadata(output),
|
|
3489
|
-
};
|
|
3609
|
+
});
|
|
3490
3610
|
return [4, collectBody(output.body, context)];
|
|
3491
3611
|
case 1:
|
|
3492
3612
|
_a.sent();
|
|
3493
|
-
return [2,
|
|
3613
|
+
return [2, contents];
|
|
3494
3614
|
}
|
|
3495
3615
|
});
|
|
3496
3616
|
}); };
|
|
3497
3617
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3498
|
-
var parsedOutput, _a,
|
|
3618
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3499
3619
|
var _c;
|
|
3500
3620
|
return __generator(this, function (_d) {
|
|
3501
3621
|
switch (_d.label) {
|
|
@@ -3528,14 +3648,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3528
3648
|
case 9: throw _d.sent();
|
|
3529
3649
|
case 10:
|
|
3530
3650
|
parsedBody = parsedOutput.body;
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
$metadata: $metadata,
|
|
3651
|
+
throwDefaultError({
|
|
3652
|
+
output: output,
|
|
3653
|
+
parsedBody: parsedBody,
|
|
3654
|
+
exceptionCtor: __BaseException,
|
|
3655
|
+
errorCode: errorCode,
|
|
3537
3656
|
});
|
|
3538
|
-
|
|
3657
|
+
_d.label = 11;
|
|
3658
|
+
case 11: return [2];
|
|
3539
3659
|
}
|
|
3540
3660
|
});
|
|
3541
3661
|
}); };
|
|
@@ -3547,28 +3667,26 @@ export var deserializeAws_restJson1UpdatePackageVersionsStatusCommand = function
|
|
|
3547
3667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3548
3668
|
return [2, deserializeAws_restJson1UpdatePackageVersionsStatusCommandError(output, context)];
|
|
3549
3669
|
}
|
|
3550
|
-
contents = {
|
|
3670
|
+
contents = map({
|
|
3551
3671
|
$metadata: deserializeMetadata(output),
|
|
3552
|
-
|
|
3553
|
-
successfulVersions: undefined,
|
|
3554
|
-
};
|
|
3672
|
+
});
|
|
3555
3673
|
_a = __expectNonNull;
|
|
3556
3674
|
_b = __expectObject;
|
|
3557
3675
|
return [4, parseBody(output.body, context)];
|
|
3558
3676
|
case 1:
|
|
3559
3677
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3560
|
-
if (data.failedVersions
|
|
3678
|
+
if (data.failedVersions != null) {
|
|
3561
3679
|
contents.failedVersions = deserializeAws_restJson1PackageVersionErrorMap(data.failedVersions, context);
|
|
3562
3680
|
}
|
|
3563
|
-
if (data.successfulVersions
|
|
3681
|
+
if (data.successfulVersions != null) {
|
|
3564
3682
|
contents.successfulVersions = deserializeAws_restJson1SuccessfulPackageVersionInfoMap(data.successfulVersions, context);
|
|
3565
3683
|
}
|
|
3566
|
-
return [2,
|
|
3684
|
+
return [2, contents];
|
|
3567
3685
|
}
|
|
3568
3686
|
});
|
|
3569
3687
|
}); };
|
|
3570
3688
|
var deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3571
|
-
var parsedOutput, _a,
|
|
3689
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3572
3690
|
var _c;
|
|
3573
3691
|
return __generator(this, function (_d) {
|
|
3574
3692
|
switch (_d.label) {
|
|
@@ -3609,14 +3727,14 @@ var deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = function (
|
|
|
3609
3727
|
case 13: throw _d.sent();
|
|
3610
3728
|
case 14:
|
|
3611
3729
|
parsedBody = parsedOutput.body;
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
$metadata: $metadata,
|
|
3730
|
+
throwDefaultError({
|
|
3731
|
+
output: output,
|
|
3732
|
+
parsedBody: parsedBody,
|
|
3733
|
+
exceptionCtor: __BaseException,
|
|
3734
|
+
errorCode: errorCode,
|
|
3618
3735
|
});
|
|
3619
|
-
|
|
3736
|
+
_d.label = 15;
|
|
3737
|
+
case 15: return [2];
|
|
3620
3738
|
}
|
|
3621
3739
|
});
|
|
3622
3740
|
}); };
|
|
@@ -3628,24 +3746,23 @@ export var deserializeAws_restJson1UpdateRepositoryCommand = function (output, c
|
|
|
3628
3746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3629
3747
|
return [2, deserializeAws_restJson1UpdateRepositoryCommandError(output, context)];
|
|
3630
3748
|
}
|
|
3631
|
-
contents = {
|
|
3749
|
+
contents = map({
|
|
3632
3750
|
$metadata: deserializeMetadata(output),
|
|
3633
|
-
|
|
3634
|
-
};
|
|
3751
|
+
});
|
|
3635
3752
|
_a = __expectNonNull;
|
|
3636
3753
|
_b = __expectObject;
|
|
3637
3754
|
return [4, parseBody(output.body, context)];
|
|
3638
3755
|
case 1:
|
|
3639
3756
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3640
|
-
if (data.repository
|
|
3757
|
+
if (data.repository != null) {
|
|
3641
3758
|
contents.repository = deserializeAws_restJson1RepositoryDescription(data.repository, context);
|
|
3642
3759
|
}
|
|
3643
|
-
return [2,
|
|
3760
|
+
return [2, contents];
|
|
3644
3761
|
}
|
|
3645
3762
|
});
|
|
3646
3763
|
}); };
|
|
3647
3764
|
var deserializeAws_restJson1UpdateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3648
|
-
var parsedOutput, _a,
|
|
3765
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3649
3766
|
var _c;
|
|
3650
3767
|
return __generator(this, function (_d) {
|
|
3651
3768
|
switch (_d.label) {
|
|
@@ -3690,23 +3807,24 @@ var deserializeAws_restJson1UpdateRepositoryCommandError = function (output, con
|
|
|
3690
3807
|
case 15: throw _d.sent();
|
|
3691
3808
|
case 16:
|
|
3692
3809
|
parsedBody = parsedOutput.body;
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
$metadata: $metadata,
|
|
3810
|
+
throwDefaultError({
|
|
3811
|
+
output: output,
|
|
3812
|
+
parsedBody: parsedBody,
|
|
3813
|
+
exceptionCtor: __BaseException,
|
|
3814
|
+
errorCode: errorCode,
|
|
3699
3815
|
});
|
|
3700
|
-
|
|
3816
|
+
_d.label = 17;
|
|
3817
|
+
case 17: return [2];
|
|
3701
3818
|
}
|
|
3702
3819
|
});
|
|
3703
3820
|
}); };
|
|
3821
|
+
var map = __map;
|
|
3704
3822
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3705
3823
|
var contents, data, exception;
|
|
3706
3824
|
return __generator(this, function (_a) {
|
|
3707
|
-
contents = {};
|
|
3825
|
+
contents = map({});
|
|
3708
3826
|
data = parsedOutput.body;
|
|
3709
|
-
if (data.message
|
|
3827
|
+
if (data.message != null) {
|
|
3710
3828
|
contents.message = __expectString(data.message);
|
|
3711
3829
|
}
|
|
3712
3830
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3716,15 +3834,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3716
3834
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3717
3835
|
var contents, data, exception;
|
|
3718
3836
|
return __generator(this, function (_a) {
|
|
3719
|
-
contents = {};
|
|
3837
|
+
contents = map({});
|
|
3720
3838
|
data = parsedOutput.body;
|
|
3721
|
-
if (data.message
|
|
3839
|
+
if (data.message != null) {
|
|
3722
3840
|
contents.message = __expectString(data.message);
|
|
3723
3841
|
}
|
|
3724
|
-
if (data.resourceId
|
|
3842
|
+
if (data.resourceId != null) {
|
|
3725
3843
|
contents.resourceId = __expectString(data.resourceId);
|
|
3726
3844
|
}
|
|
3727
|
-
if (data.resourceType
|
|
3845
|
+
if (data.resourceType != null) {
|
|
3728
3846
|
contents.resourceType = __expectString(data.resourceType);
|
|
3729
3847
|
}
|
|
3730
3848
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3734,9 +3852,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3734
3852
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3735
3853
|
var contents, data, exception;
|
|
3736
3854
|
return __generator(this, function (_a) {
|
|
3737
|
-
contents = {};
|
|
3855
|
+
contents = map({});
|
|
3738
3856
|
data = parsedOutput.body;
|
|
3739
|
-
if (data.message
|
|
3857
|
+
if (data.message != null) {
|
|
3740
3858
|
contents.message = __expectString(data.message);
|
|
3741
3859
|
}
|
|
3742
3860
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3746,15 +3864,15 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3746
3864
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3747
3865
|
var contents, data, exception;
|
|
3748
3866
|
return __generator(this, function (_a) {
|
|
3749
|
-
contents = {};
|
|
3867
|
+
contents = map({});
|
|
3750
3868
|
data = parsedOutput.body;
|
|
3751
|
-
if (data.message
|
|
3869
|
+
if (data.message != null) {
|
|
3752
3870
|
contents.message = __expectString(data.message);
|
|
3753
3871
|
}
|
|
3754
|
-
if (data.resourceId
|
|
3872
|
+
if (data.resourceId != null) {
|
|
3755
3873
|
contents.resourceId = __expectString(data.resourceId);
|
|
3756
3874
|
}
|
|
3757
|
-
if (data.resourceType
|
|
3875
|
+
if (data.resourceType != null) {
|
|
3758
3876
|
contents.resourceType = __expectString(data.resourceType);
|
|
3759
3877
|
}
|
|
3760
3878
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3764,15 +3882,15 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3764
3882
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3765
3883
|
var contents, data, exception;
|
|
3766
3884
|
return __generator(this, function (_a) {
|
|
3767
|
-
contents = {};
|
|
3885
|
+
contents = map({});
|
|
3768
3886
|
data = parsedOutput.body;
|
|
3769
|
-
if (data.message
|
|
3887
|
+
if (data.message != null) {
|
|
3770
3888
|
contents.message = __expectString(data.message);
|
|
3771
3889
|
}
|
|
3772
|
-
if (data.resourceId
|
|
3890
|
+
if (data.resourceId != null) {
|
|
3773
3891
|
contents.resourceId = __expectString(data.resourceId);
|
|
3774
3892
|
}
|
|
3775
|
-
if (data.resourceType
|
|
3893
|
+
if (data.resourceType != null) {
|
|
3776
3894
|
contents.resourceType = __expectString(data.resourceType);
|
|
3777
3895
|
}
|
|
3778
3896
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3782,12 +3900,14 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3782
3900
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3783
3901
|
var contents, data, exception;
|
|
3784
3902
|
return __generator(this, function (_a) {
|
|
3785
|
-
contents = {
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3903
|
+
contents = map({
|
|
3904
|
+
retryAfterSeconds: [
|
|
3905
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
3906
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
3907
|
+
],
|
|
3908
|
+
});
|
|
3789
3909
|
data = parsedOutput.body;
|
|
3790
|
-
if (data.message
|
|
3910
|
+
if (data.message != null) {
|
|
3791
3911
|
contents.message = __expectString(data.message);
|
|
3792
3912
|
}
|
|
3793
3913
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3797,12 +3917,12 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3797
3917
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3798
3918
|
var contents, data, exception;
|
|
3799
3919
|
return __generator(this, function (_a) {
|
|
3800
|
-
contents = {};
|
|
3920
|
+
contents = map({});
|
|
3801
3921
|
data = parsedOutput.body;
|
|
3802
|
-
if (data.message
|
|
3922
|
+
if (data.message != null) {
|
|
3803
3923
|
contents.message = __expectString(data.message);
|
|
3804
3924
|
}
|
|
3805
|
-
if (data.reason
|
|
3925
|
+
if (data.reason != null) {
|
|
3806
3926
|
contents.reason = __expectString(data.reason);
|
|
3807
3927
|
}
|
|
3808
3928
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3816,9 +3936,6 @@ var serializeAws_restJson1PackageVersionList = function (input, context) {
|
|
|
3816
3936
|
return input
|
|
3817
3937
|
.filter(function (e) { return e != null; })
|
|
3818
3938
|
.map(function (entry) {
|
|
3819
|
-
if (entry === null) {
|
|
3820
|
-
return null;
|
|
3821
|
-
}
|
|
3822
3939
|
return entry;
|
|
3823
3940
|
});
|
|
3824
3941
|
};
|
|
@@ -3839,9 +3956,6 @@ var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
|
3839
3956
|
return input
|
|
3840
3957
|
.filter(function (e) { return e != null; })
|
|
3841
3958
|
.map(function (entry) {
|
|
3842
|
-
if (entry === null) {
|
|
3843
|
-
return null;
|
|
3844
|
-
}
|
|
3845
3959
|
return entry;
|
|
3846
3960
|
});
|
|
3847
3961
|
};
|
|
@@ -3849,9 +3963,6 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
3849
3963
|
return input
|
|
3850
3964
|
.filter(function (e) { return e != null; })
|
|
3851
3965
|
.map(function (entry) {
|
|
3852
|
-
if (entry === null) {
|
|
3853
|
-
return null;
|
|
3854
|
-
}
|
|
3855
3966
|
return serializeAws_restJson1Tag(entry, context);
|
|
3856
3967
|
});
|
|
3857
3968
|
};
|
|
@@ -3862,9 +3973,6 @@ var serializeAws_restJson1UpstreamRepositoryList = function (input, context) {
|
|
|
3862
3973
|
return input
|
|
3863
3974
|
.filter(function (e) { return e != null; })
|
|
3864
3975
|
.map(function (entry) {
|
|
3865
|
-
if (entry === null) {
|
|
3866
|
-
return null;
|
|
3867
|
-
}
|
|
3868
3976
|
return serializeAws_restJson1UpstreamRepository(entry, context);
|
|
3869
3977
|
});
|
|
3870
3978
|
};
|