@aws-sdk/client-codeartifact 3.121.0 → 3.130.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 +32 -0
- package/README.md +10 -0
- package/dist-cjs/Codeartifact.js +30 -0
- package/dist-cjs/commands/DescribePackageCommand.js +36 -0
- package/dist-cjs/commands/PutPackageOriginConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +73 -3
- package/dist-cjs/protocols/Aws_restJson1.js +253 -69
- package/dist-es/Codeartifact.js +30 -0
- package/dist-es/commands/DescribePackageCommand.js +39 -0
- package/dist-es/commands/PutPackageOriginConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +52 -0
- package/dist-es/protocols/Aws_restJson1.js +271 -53
- package/dist-types/Codeartifact.d.ts +37 -1
- package/dist-types/CodeartifactClient.d.ts +14 -2
- package/dist-types/commands/DescribePackageCommand.d.ts +37 -0
- package/dist-types/commands/GetPackageVersionReadmeCommand.d.ts +3 -1
- package/dist-types/commands/PutPackageOriginConfigurationCommand.d.ts +43 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +466 -177
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Codeartifact.d.ts +10 -0
- package/dist-types/ts3.4/CodeartifactClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribePackageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutPackageOriginConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +136 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +26 -26
|
@@ -38,13 +38,9 @@ export var serializeAws_restJson1CopyPackageVersionsCommand = function (input, c
|
|
|
38
38
|
};
|
|
39
39
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/copy";
|
|
40
40
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.sourceRepository !== undefined && { "source-repository": input.sourceRepository })), (input.destinationRepository !== undefined && { "destination-repository": input.destinationRepository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
41
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.allowOverwrite
|
|
42
|
-
input.allowOverwrite !== null && { allowOverwrite: input.allowOverwrite })), (input.includeFromUpstream !== undefined &&
|
|
43
|
-
input.includeFromUpstream !== null && { includeFromUpstream: input.includeFromUpstream })), (input.versionRevisions !== undefined &&
|
|
44
|
-
input.versionRevisions !== null && {
|
|
41
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.allowOverwrite != null && { allowOverwrite: input.allowOverwrite })), (input.includeFromUpstream != null && { includeFromUpstream: input.includeFromUpstream })), (input.versionRevisions != null && {
|
|
45
42
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
46
|
-
})), (input.versions
|
|
47
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
43
|
+
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
48
44
|
return [2, new __HttpRequest({
|
|
49
45
|
protocol: protocol,
|
|
50
46
|
hostname: hostname,
|
|
@@ -70,8 +66,7 @@ export var serializeAws_restJson1CreateDomainCommand = function (input, context)
|
|
|
70
66
|
};
|
|
71
67
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain";
|
|
72
68
|
query = __assign({}, (input.domain !== undefined && { domain: input.domain }));
|
|
73
|
-
body = JSON.stringify(__assign(__assign({}, (input.encryptionKey
|
|
74
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
69
|
+
body = JSON.stringify(__assign(__assign({}, (input.encryptionKey != null && { encryptionKey: input.encryptionKey })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
75
70
|
return [2, new __HttpRequest({
|
|
76
71
|
protocol: protocol,
|
|
77
72
|
hostname: hostname,
|
|
@@ -97,9 +92,7 @@ export var serializeAws_restJson1CreateRepositoryCommand = function (input, cont
|
|
|
97
92
|
};
|
|
98
93
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository";
|
|
99
94
|
query = __assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository }));
|
|
100
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.description
|
|
101
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.upstreams !== undefined &&
|
|
102
|
-
input.upstreams !== null && {
|
|
95
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.upstreams != null && {
|
|
103
96
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
104
97
|
})));
|
|
105
98
|
return [2, new __HttpRequest({
|
|
@@ -173,9 +166,7 @@ export var serializeAws_restJson1DeletePackageVersionsCommand = function (input,
|
|
|
173
166
|
};
|
|
174
167
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/delete";
|
|
175
168
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
176
|
-
body = JSON.stringify(__assign(__assign({}, (input.expectedStatus
|
|
177
|
-
input.expectedStatus !== null && { expectedStatus: input.expectedStatus })), (input.versions !== undefined &&
|
|
178
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
169
|
+
body = JSON.stringify(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
179
170
|
return [2, new __HttpRequest({
|
|
180
171
|
protocol: protocol,
|
|
181
172
|
hostname: hostname,
|
|
@@ -258,6 +249,29 @@ export var serializeAws_restJson1DescribeDomainCommand = function (input, contex
|
|
|
258
249
|
}
|
|
259
250
|
});
|
|
260
251
|
}); };
|
|
252
|
+
export var serializeAws_restJson1DescribePackageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
253
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
254
|
+
return __generator(this, function (_c) {
|
|
255
|
+
switch (_c.label) {
|
|
256
|
+
case 0: return [4, context.endpoint()];
|
|
257
|
+
case 1:
|
|
258
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
259
|
+
headers = {};
|
|
260
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package";
|
|
261
|
+
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
262
|
+
return [2, new __HttpRequest({
|
|
263
|
+
protocol: protocol,
|
|
264
|
+
hostname: hostname,
|
|
265
|
+
port: port,
|
|
266
|
+
method: "GET",
|
|
267
|
+
headers: headers,
|
|
268
|
+
path: resolvedPath,
|
|
269
|
+
query: query,
|
|
270
|
+
body: body,
|
|
271
|
+
})];
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
}); };
|
|
261
275
|
export var serializeAws_restJson1DescribePackageVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
262
276
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
263
277
|
return __generator(this, function (_c) {
|
|
@@ -339,12 +353,9 @@ export var serializeAws_restJson1DisposePackageVersionsCommand = function (input
|
|
|
339
353
|
};
|
|
340
354
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/dispose";
|
|
341
355
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
342
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.expectedStatus
|
|
343
|
-
input.expectedStatus !== null && { expectedStatus: input.expectedStatus })), (input.versionRevisions !== undefined &&
|
|
344
|
-
input.versionRevisions !== null && {
|
|
356
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.versionRevisions != null && {
|
|
345
357
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
346
|
-
})), (input.versions
|
|
347
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
358
|
+
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
348
359
|
return [2, new __HttpRequest({
|
|
349
360
|
protocol: protocol,
|
|
350
361
|
hostname: hostname,
|
|
@@ -507,7 +518,7 @@ export var serializeAws_restJson1ListDomainsCommand = function (input, context)
|
|
|
507
518
|
"content-type": "application/json",
|
|
508
519
|
};
|
|
509
520
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domains";
|
|
510
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults
|
|
521
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
511
522
|
return [2, new __HttpRequest({
|
|
512
523
|
protocol: protocol,
|
|
513
524
|
hostname: hostname,
|
|
@@ -529,7 +540,7 @@ export var serializeAws_restJson1ListPackagesCommand = function (input, context)
|
|
|
529
540
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
530
541
|
headers = {};
|
|
531
542
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/packages";
|
|
532
|
-
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.packagePrefix !== undefined && { "package-prefix": input.packagePrefix })), (input.maxResults !== undefined && { "max-results": input.maxResults.toString() })), (input.nextToken !== undefined && { "next-token": input.nextToken }));
|
|
543
|
+
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.packagePrefix !== undefined && { "package-prefix": input.packagePrefix })), (input.maxResults !== undefined && { "max-results": input.maxResults.toString() })), (input.nextToken !== undefined && { "next-token": input.nextToken })), (input.publish !== undefined && { publish: input.publish })), (input.upstream !== undefined && { upstream: input.upstream }));
|
|
533
544
|
return [2, new __HttpRequest({
|
|
534
545
|
protocol: protocol,
|
|
535
546
|
hostname: hostname,
|
|
@@ -598,7 +609,7 @@ export var serializeAws_restJson1ListPackageVersionsCommand = function (input, c
|
|
|
598
609
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
599
610
|
headers = {};
|
|
600
611
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions";
|
|
601
|
-
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package })), (input.status !== undefined && { status: input.status })), (input.sortBy !== undefined && { sortBy: input.sortBy })), (input.maxResults !== undefined && { "max-results": input.maxResults.toString() })), (input.nextToken !== undefined && { "next-token": input.nextToken }));
|
|
612
|
+
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package })), (input.status !== undefined && { status: input.status })), (input.sortBy !== undefined && { sortBy: input.sortBy })), (input.maxResults !== undefined && { "max-results": input.maxResults.toString() })), (input.nextToken !== undefined && { "next-token": input.nextToken })), (input.originType !== undefined && { originType: input.originType }));
|
|
602
613
|
return [2, new __HttpRequest({
|
|
603
614
|
protocol: protocol,
|
|
604
615
|
hostname: hostname,
|
|
@@ -692,9 +703,7 @@ export var serializeAws_restJson1PutDomainPermissionsPolicyCommand = function (i
|
|
|
692
703
|
"content-type": "application/json",
|
|
693
704
|
};
|
|
694
705
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain/permissions/policy";
|
|
695
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.domain
|
|
696
|
-
input.policyDocument !== null && { policyDocument: input.policyDocument })), (input.policyRevision !== undefined &&
|
|
697
|
-
input.policyRevision !== null && { policyRevision: input.policyRevision })));
|
|
706
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.domain != null && { domain: input.domain })), (input.domainOwner != null && { domainOwner: input.domainOwner })), (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.policyRevision != null && { policyRevision: input.policyRevision })));
|
|
698
707
|
return [2, new __HttpRequest({
|
|
699
708
|
protocol: protocol,
|
|
700
709
|
hostname: hostname,
|
|
@@ -707,6 +716,34 @@ export var serializeAws_restJson1PutDomainPermissionsPolicyCommand = function (i
|
|
|
707
716
|
}
|
|
708
717
|
});
|
|
709
718
|
}); };
|
|
719
|
+
export var serializeAws_restJson1PutPackageOriginConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
720
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
721
|
+
return __generator(this, function (_c) {
|
|
722
|
+
switch (_c.label) {
|
|
723
|
+
case 0: return [4, context.endpoint()];
|
|
724
|
+
case 1:
|
|
725
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
726
|
+
headers = {
|
|
727
|
+
"content-type": "application/json",
|
|
728
|
+
};
|
|
729
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package";
|
|
730
|
+
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
731
|
+
body = JSON.stringify(__assign({}, (input.restrictions != null && {
|
|
732
|
+
restrictions: serializeAws_restJson1PackageOriginRestrictions(input.restrictions, context),
|
|
733
|
+
})));
|
|
734
|
+
return [2, new __HttpRequest({
|
|
735
|
+
protocol: protocol,
|
|
736
|
+
hostname: hostname,
|
|
737
|
+
port: port,
|
|
738
|
+
method: "POST",
|
|
739
|
+
headers: headers,
|
|
740
|
+
path: resolvedPath,
|
|
741
|
+
query: query,
|
|
742
|
+
body: body,
|
|
743
|
+
})];
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
}); };
|
|
710
747
|
export var serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
711
748
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
712
749
|
return __generator(this, function (_c) {
|
|
@@ -719,9 +756,7 @@ export var serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = functio
|
|
|
719
756
|
};
|
|
720
757
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository/permissions/policy";
|
|
721
758
|
query = __assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository }));
|
|
722
|
-
body = JSON.stringify(__assign(__assign({}, (input.policyDocument
|
|
723
|
-
input.policyDocument !== null && { policyDocument: input.policyDocument })), (input.policyRevision !== undefined &&
|
|
724
|
-
input.policyRevision !== null && { policyRevision: input.policyRevision })));
|
|
759
|
+
body = JSON.stringify(__assign(__assign({}, (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.policyRevision != null && { policyRevision: input.policyRevision })));
|
|
725
760
|
return [2, new __HttpRequest({
|
|
726
761
|
protocol: protocol,
|
|
727
762
|
hostname: hostname,
|
|
@@ -747,8 +782,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
747
782
|
};
|
|
748
783
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tag";
|
|
749
784
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
750
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
751
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
785
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
752
786
|
return [2, new __HttpRequest({
|
|
753
787
|
protocol: protocol,
|
|
754
788
|
hostname: hostname,
|
|
@@ -774,8 +808,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
774
808
|
};
|
|
775
809
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/untag";
|
|
776
810
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
777
|
-
body = JSON.stringify(__assign({}, (input.tagKeys
|
|
778
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
811
|
+
body = JSON.stringify(__assign({}, (input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
779
812
|
return [2, new __HttpRequest({
|
|
780
813
|
protocol: protocol,
|
|
781
814
|
hostname: hostname,
|
|
@@ -801,12 +834,9 @@ export var serializeAws_restJson1UpdatePackageVersionsStatusCommand = function (
|
|
|
801
834
|
};
|
|
802
835
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/update_status";
|
|
803
836
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
804
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.expectedStatus
|
|
805
|
-
input.expectedStatus !== null && { expectedStatus: input.expectedStatus })), (input.targetStatus !== undefined && input.targetStatus !== null && { targetStatus: input.targetStatus })), (input.versionRevisions !== undefined &&
|
|
806
|
-
input.versionRevisions !== null && {
|
|
837
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.targetStatus != null && { targetStatus: input.targetStatus })), (input.versionRevisions != null && {
|
|
807
838
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
808
|
-
})), (input.versions
|
|
809
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
839
|
+
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
810
840
|
return [2, new __HttpRequest({
|
|
811
841
|
protocol: protocol,
|
|
812
842
|
hostname: hostname,
|
|
@@ -832,8 +862,7 @@ export var serializeAws_restJson1UpdateRepositoryCommand = function (input, cont
|
|
|
832
862
|
};
|
|
833
863
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository";
|
|
834
864
|
query = __assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository }));
|
|
835
|
-
body = JSON.stringify(__assign(__assign({}, (input.description
|
|
836
|
-
input.upstreams !== null && {
|
|
865
|
+
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.upstreams != null && {
|
|
837
866
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
838
867
|
})));
|
|
839
868
|
return [2, new __HttpRequest({
|
|
@@ -1635,6 +1664,79 @@ var deserializeAws_restJson1DescribeDomainCommandError = function (output, conte
|
|
|
1635
1664
|
}
|
|
1636
1665
|
});
|
|
1637
1666
|
}); };
|
|
1667
|
+
export var deserializeAws_restJson1DescribePackageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1668
|
+
var contents, data, _a, _b;
|
|
1669
|
+
return __generator(this, function (_c) {
|
|
1670
|
+
switch (_c.label) {
|
|
1671
|
+
case 0:
|
|
1672
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1673
|
+
return [2, deserializeAws_restJson1DescribePackageCommandError(output, context)];
|
|
1674
|
+
}
|
|
1675
|
+
contents = {
|
|
1676
|
+
$metadata: deserializeMetadata(output),
|
|
1677
|
+
package: undefined,
|
|
1678
|
+
};
|
|
1679
|
+
_a = __expectNonNull;
|
|
1680
|
+
_b = __expectObject;
|
|
1681
|
+
return [4, parseBody(output.body, context)];
|
|
1682
|
+
case 1:
|
|
1683
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1684
|
+
if (data.package !== undefined && data.package !== null) {
|
|
1685
|
+
contents.package = deserializeAws_restJson1PackageDescription(data.package, context);
|
|
1686
|
+
}
|
|
1687
|
+
return [2, Promise.resolve(contents)];
|
|
1688
|
+
}
|
|
1689
|
+
});
|
|
1690
|
+
}); };
|
|
1691
|
+
var deserializeAws_restJson1DescribePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1692
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1693
|
+
var _c;
|
|
1694
|
+
return __generator(this, function (_d) {
|
|
1695
|
+
switch (_d.label) {
|
|
1696
|
+
case 0:
|
|
1697
|
+
_a = [__assign({}, output)];
|
|
1698
|
+
_c = {};
|
|
1699
|
+
return [4, parseBody(output.body, context)];
|
|
1700
|
+
case 1:
|
|
1701
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1702
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
+
_b = errorCode;
|
|
1704
|
+
switch (_b) {
|
|
1705
|
+
case "AccessDeniedException": return [3, 2];
|
|
1706
|
+
case "com.amazonaws.codeartifact#AccessDeniedException": return [3, 2];
|
|
1707
|
+
case "InternalServerException": return [3, 4];
|
|
1708
|
+
case "com.amazonaws.codeartifact#InternalServerException": return [3, 4];
|
|
1709
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1710
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException": return [3, 6];
|
|
1711
|
+
case "ThrottlingException": return [3, 8];
|
|
1712
|
+
case "com.amazonaws.codeartifact#ThrottlingException": return [3, 8];
|
|
1713
|
+
case "ValidationException": return [3, 10];
|
|
1714
|
+
case "com.amazonaws.codeartifact#ValidationException": return [3, 10];
|
|
1715
|
+
}
|
|
1716
|
+
return [3, 12];
|
|
1717
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1718
|
+
case 3: throw _d.sent();
|
|
1719
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1720
|
+
case 5: throw _d.sent();
|
|
1721
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1722
|
+
case 7: throw _d.sent();
|
|
1723
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1724
|
+
case 9: throw _d.sent();
|
|
1725
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1726
|
+
case 11: throw _d.sent();
|
|
1727
|
+
case 12:
|
|
1728
|
+
parsedBody = parsedOutput.body;
|
|
1729
|
+
$metadata = deserializeMetadata(output);
|
|
1730
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1731
|
+
response = new __BaseException({
|
|
1732
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1733
|
+
$fault: "client",
|
|
1734
|
+
$metadata: $metadata,
|
|
1735
|
+
});
|
|
1736
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1737
|
+
}
|
|
1738
|
+
});
|
|
1739
|
+
}); };
|
|
1638
1740
|
export var deserializeAws_restJson1DescribePackageVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1639
1741
|
var contents, data, _a, _b;
|
|
1640
1742
|
return __generator(this, function (_c) {
|
|
@@ -3153,6 +3255,79 @@ var deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = function (o
|
|
|
3153
3255
|
}
|
|
3154
3256
|
});
|
|
3155
3257
|
}); };
|
|
3258
|
+
export var deserializeAws_restJson1PutPackageOriginConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3259
|
+
var contents, data, _a, _b;
|
|
3260
|
+
return __generator(this, function (_c) {
|
|
3261
|
+
switch (_c.label) {
|
|
3262
|
+
case 0:
|
|
3263
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3264
|
+
return [2, deserializeAws_restJson1PutPackageOriginConfigurationCommandError(output, context)];
|
|
3265
|
+
}
|
|
3266
|
+
contents = {
|
|
3267
|
+
$metadata: deserializeMetadata(output),
|
|
3268
|
+
originConfiguration: undefined,
|
|
3269
|
+
};
|
|
3270
|
+
_a = __expectNonNull;
|
|
3271
|
+
_b = __expectObject;
|
|
3272
|
+
return [4, parseBody(output.body, context)];
|
|
3273
|
+
case 1:
|
|
3274
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3275
|
+
if (data.originConfiguration !== undefined && data.originConfiguration !== null) {
|
|
3276
|
+
contents.originConfiguration = deserializeAws_restJson1PackageOriginConfiguration(data.originConfiguration, context);
|
|
3277
|
+
}
|
|
3278
|
+
return [2, Promise.resolve(contents)];
|
|
3279
|
+
}
|
|
3280
|
+
});
|
|
3281
|
+
}); };
|
|
3282
|
+
var deserializeAws_restJson1PutPackageOriginConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3283
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3284
|
+
var _c;
|
|
3285
|
+
return __generator(this, function (_d) {
|
|
3286
|
+
switch (_d.label) {
|
|
3287
|
+
case 0:
|
|
3288
|
+
_a = [__assign({}, output)];
|
|
3289
|
+
_c = {};
|
|
3290
|
+
return [4, parseBody(output.body, context)];
|
|
3291
|
+
case 1:
|
|
3292
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3293
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
|
+
_b = errorCode;
|
|
3295
|
+
switch (_b) {
|
|
3296
|
+
case "AccessDeniedException": return [3, 2];
|
|
3297
|
+
case "com.amazonaws.codeartifact#AccessDeniedException": return [3, 2];
|
|
3298
|
+
case "InternalServerException": return [3, 4];
|
|
3299
|
+
case "com.amazonaws.codeartifact#InternalServerException": return [3, 4];
|
|
3300
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3301
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException": return [3, 6];
|
|
3302
|
+
case "ThrottlingException": return [3, 8];
|
|
3303
|
+
case "com.amazonaws.codeartifact#ThrottlingException": return [3, 8];
|
|
3304
|
+
case "ValidationException": return [3, 10];
|
|
3305
|
+
case "com.amazonaws.codeartifact#ValidationException": return [3, 10];
|
|
3306
|
+
}
|
|
3307
|
+
return [3, 12];
|
|
3308
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3309
|
+
case 3: throw _d.sent();
|
|
3310
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3311
|
+
case 5: throw _d.sent();
|
|
3312
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3313
|
+
case 7: throw _d.sent();
|
|
3314
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3315
|
+
case 9: throw _d.sent();
|
|
3316
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3317
|
+
case 11: throw _d.sent();
|
|
3318
|
+
case 12:
|
|
3319
|
+
parsedBody = parsedOutput.body;
|
|
3320
|
+
$metadata = deserializeMetadata(output);
|
|
3321
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3322
|
+
response = new __BaseException({
|
|
3323
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3324
|
+
$fault: "client",
|
|
3325
|
+
$metadata: $metadata,
|
|
3326
|
+
});
|
|
3327
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3328
|
+
}
|
|
3329
|
+
});
|
|
3330
|
+
}); };
|
|
3156
3331
|
export var deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3157
3332
|
var contents, data, _a, _b;
|
|
3158
3333
|
return __generator(this, function (_c) {
|
|
@@ -3634,6 +3809,9 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3634
3809
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3635
3810
|
});
|
|
3636
3811
|
}); };
|
|
3812
|
+
var serializeAws_restJson1PackageOriginRestrictions = function (input, context) {
|
|
3813
|
+
return __assign(__assign({}, (input.publish != null && { publish: input.publish })), (input.upstream != null && { upstream: input.upstream }));
|
|
3814
|
+
};
|
|
3637
3815
|
var serializeAws_restJson1PackageVersionList = function (input, context) {
|
|
3638
3816
|
return input
|
|
3639
3817
|
.filter(function (e) { return e != null; })
|
|
@@ -3655,7 +3833,7 @@ var serializeAws_restJson1PackageVersionRevisionMap = function (input, context)
|
|
|
3655
3833
|
}, {});
|
|
3656
3834
|
};
|
|
3657
3835
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
3658
|
-
return __assign(__assign({}, (input.key
|
|
3836
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
3659
3837
|
};
|
|
3660
3838
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
3661
3839
|
return input
|
|
@@ -3678,8 +3856,7 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
3678
3856
|
});
|
|
3679
3857
|
};
|
|
3680
3858
|
var serializeAws_restJson1UpstreamRepository = function (input, context) {
|
|
3681
|
-
return __assign({}, (input.repositoryName
|
|
3682
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
3859
|
+
return __assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
3683
3860
|
};
|
|
3684
3861
|
var serializeAws_restJson1UpstreamRepositoryList = function (input, context) {
|
|
3685
3862
|
return input
|
|
@@ -3703,9 +3880,7 @@ var deserializeAws_restJson1AssetHashes = function (output, context) {
|
|
|
3703
3880
|
};
|
|
3704
3881
|
var deserializeAws_restJson1AssetSummary = function (output, context) {
|
|
3705
3882
|
return {
|
|
3706
|
-
hashes: output.hashes
|
|
3707
|
-
? deserializeAws_restJson1AssetHashes(output.hashes, context)
|
|
3708
|
-
: undefined,
|
|
3883
|
+
hashes: output.hashes != null ? deserializeAws_restJson1AssetHashes(output.hashes, context) : undefined,
|
|
3709
3884
|
name: __expectString(output.name),
|
|
3710
3885
|
size: __expectLong(output.size),
|
|
3711
3886
|
};
|
|
@@ -3725,7 +3900,7 @@ var deserializeAws_restJson1DomainDescription = function (output, context) {
|
|
|
3725
3900
|
return {
|
|
3726
3901
|
arn: __expectString(output.arn),
|
|
3727
3902
|
assetSizeBytes: __expectLong(output.assetSizeBytes),
|
|
3728
|
-
createdTime: output.createdTime
|
|
3903
|
+
createdTime: output.createdTime != null
|
|
3729
3904
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
|
|
3730
3905
|
: undefined,
|
|
3731
3906
|
encryptionKey: __expectString(output.encryptionKey),
|
|
@@ -3736,10 +3911,16 @@ var deserializeAws_restJson1DomainDescription = function (output, context) {
|
|
|
3736
3911
|
status: __expectString(output.status),
|
|
3737
3912
|
};
|
|
3738
3913
|
};
|
|
3914
|
+
var deserializeAws_restJson1DomainEntryPoint = function (output, context) {
|
|
3915
|
+
return {
|
|
3916
|
+
externalConnectionName: __expectString(output.externalConnectionName),
|
|
3917
|
+
repositoryName: __expectString(output.repositoryName),
|
|
3918
|
+
};
|
|
3919
|
+
};
|
|
3739
3920
|
var deserializeAws_restJson1DomainSummary = function (output, context) {
|
|
3740
3921
|
return {
|
|
3741
3922
|
arn: __expectString(output.arn),
|
|
3742
|
-
createdTime: output.createdTime
|
|
3923
|
+
createdTime: output.createdTime != null
|
|
3743
3924
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
|
|
3744
3925
|
: undefined,
|
|
3745
3926
|
encryptionKey: __expectString(output.encryptionKey),
|
|
@@ -3795,10 +3976,36 @@ var deserializeAws_restJson1PackageDependencyList = function (output, context) {
|
|
|
3795
3976
|
});
|
|
3796
3977
|
return retVal;
|
|
3797
3978
|
};
|
|
3979
|
+
var deserializeAws_restJson1PackageDescription = function (output, context) {
|
|
3980
|
+
return {
|
|
3981
|
+
format: __expectString(output.format),
|
|
3982
|
+
name: __expectString(output.name),
|
|
3983
|
+
namespace: __expectString(output.namespace),
|
|
3984
|
+
originConfiguration: output.originConfiguration != null
|
|
3985
|
+
? deserializeAws_restJson1PackageOriginConfiguration(output.originConfiguration, context)
|
|
3986
|
+
: undefined,
|
|
3987
|
+
};
|
|
3988
|
+
};
|
|
3989
|
+
var deserializeAws_restJson1PackageOriginConfiguration = function (output, context) {
|
|
3990
|
+
return {
|
|
3991
|
+
restrictions: output.restrictions != null
|
|
3992
|
+
? deserializeAws_restJson1PackageOriginRestrictions(output.restrictions, context)
|
|
3993
|
+
: undefined,
|
|
3994
|
+
};
|
|
3995
|
+
};
|
|
3996
|
+
var deserializeAws_restJson1PackageOriginRestrictions = function (output, context) {
|
|
3997
|
+
return {
|
|
3998
|
+
publish: __expectString(output.publish),
|
|
3999
|
+
upstream: __expectString(output.upstream),
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
3798
4002
|
var deserializeAws_restJson1PackageSummary = function (output, context) {
|
|
3799
4003
|
return {
|
|
3800
4004
|
format: __expectString(output.format),
|
|
3801
4005
|
namespace: __expectString(output.namespace),
|
|
4006
|
+
originConfiguration: output.originConfiguration != null
|
|
4007
|
+
? deserializeAws_restJson1PackageOriginConfiguration(output.originConfiguration, context)
|
|
4008
|
+
: undefined,
|
|
3802
4009
|
package: __expectString(output.package),
|
|
3803
4010
|
};
|
|
3804
4011
|
};
|
|
@@ -3818,12 +4025,11 @@ var deserializeAws_restJson1PackageVersionDescription = function (output, contex
|
|
|
3818
4025
|
displayName: __expectString(output.displayName),
|
|
3819
4026
|
format: __expectString(output.format),
|
|
3820
4027
|
homePage: __expectString(output.homePage),
|
|
3821
|
-
licenses: output.licenses
|
|
3822
|
-
? deserializeAws_restJson1LicenseInfoList(output.licenses, context)
|
|
3823
|
-
: undefined,
|
|
4028
|
+
licenses: output.licenses != null ? deserializeAws_restJson1LicenseInfoList(output.licenses, context) : undefined,
|
|
3824
4029
|
namespace: __expectString(output.namespace),
|
|
4030
|
+
origin: output.origin != null ? deserializeAws_restJson1PackageVersionOrigin(output.origin, context) : undefined,
|
|
3825
4031
|
packageName: __expectString(output.packageName),
|
|
3826
|
-
publishedTime: output.publishedTime
|
|
4032
|
+
publishedTime: output.publishedTime != null
|
|
3827
4033
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.publishedTime)))
|
|
3828
4034
|
: undefined,
|
|
3829
4035
|
revision: __expectString(output.revision),
|
|
@@ -3849,8 +4055,17 @@ var deserializeAws_restJson1PackageVersionErrorMap = function (output, context)
|
|
|
3849
4055
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1PackageVersionError(value, context), _b));
|
|
3850
4056
|
}, {});
|
|
3851
4057
|
};
|
|
4058
|
+
var deserializeAws_restJson1PackageVersionOrigin = function (output, context) {
|
|
4059
|
+
return {
|
|
4060
|
+
domainEntryPoint: output.domainEntryPoint != null
|
|
4061
|
+
? deserializeAws_restJson1DomainEntryPoint(output.domainEntryPoint, context)
|
|
4062
|
+
: undefined,
|
|
4063
|
+
originType: __expectString(output.originType),
|
|
4064
|
+
};
|
|
4065
|
+
};
|
|
3852
4066
|
var deserializeAws_restJson1PackageVersionSummary = function (output, context) {
|
|
3853
4067
|
return {
|
|
4068
|
+
origin: output.origin != null ? deserializeAws_restJson1PackageVersionOrigin(output.origin, context) : undefined,
|
|
3854
4069
|
revision: __expectString(output.revision),
|
|
3855
4070
|
status: __expectString(output.status),
|
|
3856
4071
|
version: __expectString(output.version),
|
|
@@ -3874,11 +4089,11 @@ var deserializeAws_restJson1RepositoryDescription = function (output, context) {
|
|
|
3874
4089
|
description: __expectString(output.description),
|
|
3875
4090
|
domainName: __expectString(output.domainName),
|
|
3876
4091
|
domainOwner: __expectString(output.domainOwner),
|
|
3877
|
-
externalConnections: output.externalConnections
|
|
4092
|
+
externalConnections: output.externalConnections != null
|
|
3878
4093
|
? deserializeAws_restJson1RepositoryExternalConnectionInfoList(output.externalConnections, context)
|
|
3879
4094
|
: undefined,
|
|
3880
4095
|
name: __expectString(output.name),
|
|
3881
|
-
upstreams: output.upstreams
|
|
4096
|
+
upstreams: output.upstreams != null
|
|
3882
4097
|
? deserializeAws_restJson1UpstreamRepositoryInfoList(output.upstreams, context)
|
|
3883
4098
|
: undefined,
|
|
3884
4099
|
};
|
|
@@ -4016,6 +4231,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4016
4231
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4017
4232
|
var sanitizeErrorCode = function (rawValue) {
|
|
4018
4233
|
var cleanValue = rawValue;
|
|
4234
|
+
if (typeof cleanValue === "number") {
|
|
4235
|
+
cleanValue = cleanValue.toString();
|
|
4236
|
+
}
|
|
4019
4237
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4020
4238
|
cleanValue = cleanValue.split(":")[0];
|
|
4021
4239
|
}
|