@aws-sdk/client-codeartifact 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +210 -204
- package/dist-es/protocols/Aws_restJson1.js +194 -188
- package/package.json +26 -26
|
@@ -46,16 +46,12 @@ const serializeAws_restJson1CopyPackageVersionsCommand = async (input, context)
|
|
|
46
46
|
};
|
|
47
47
|
let body;
|
|
48
48
|
body = JSON.stringify({
|
|
49
|
-
...(input.allowOverwrite
|
|
50
|
-
|
|
51
|
-
...(input.
|
|
52
|
-
input.includeFromUpstream !== null && { includeFromUpstream: input.includeFromUpstream }),
|
|
53
|
-
...(input.versionRevisions !== undefined &&
|
|
54
|
-
input.versionRevisions !== null && {
|
|
49
|
+
...(input.allowOverwrite != null && { allowOverwrite: input.allowOverwrite }),
|
|
50
|
+
...(input.includeFromUpstream != null && { includeFromUpstream: input.includeFromUpstream }),
|
|
51
|
+
...(input.versionRevisions != null && {
|
|
55
52
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
56
53
|
}),
|
|
57
|
-
...(input.versions
|
|
58
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
54
|
+
...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
59
55
|
});
|
|
60
56
|
return new protocol_http_1.HttpRequest({
|
|
61
57
|
protocol,
|
|
@@ -80,9 +76,8 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
|
|
|
80
76
|
};
|
|
81
77
|
let body;
|
|
82
78
|
body = JSON.stringify({
|
|
83
|
-
...(input.encryptionKey
|
|
84
|
-
...(input.tags
|
|
85
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
79
|
+
...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
|
|
80
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
86
81
|
});
|
|
87
82
|
return new protocol_http_1.HttpRequest({
|
|
88
83
|
protocol,
|
|
@@ -109,11 +104,9 @@ const serializeAws_restJson1CreateRepositoryCommand = async (input, context) =>
|
|
|
109
104
|
};
|
|
110
105
|
let body;
|
|
111
106
|
body = JSON.stringify({
|
|
112
|
-
...(input.description
|
|
113
|
-
...(input.tags
|
|
114
|
-
|
|
115
|
-
...(input.upstreams !== undefined &&
|
|
116
|
-
input.upstreams !== null && {
|
|
107
|
+
...(input.description != null && { description: input.description }),
|
|
108
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
109
|
+
...(input.upstreams != null && {
|
|
117
110
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
118
111
|
}),
|
|
119
112
|
});
|
|
@@ -188,10 +181,8 @@ const serializeAws_restJson1DeletePackageVersionsCommand = async (input, context
|
|
|
188
181
|
};
|
|
189
182
|
let body;
|
|
190
183
|
body = JSON.stringify({
|
|
191
|
-
...(input.expectedStatus
|
|
192
|
-
|
|
193
|
-
...(input.versions !== undefined &&
|
|
194
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
184
|
+
...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
|
|
185
|
+
...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
195
186
|
});
|
|
196
187
|
return new protocol_http_1.HttpRequest({
|
|
197
188
|
protocol,
|
|
@@ -358,14 +349,11 @@ const serializeAws_restJson1DisposePackageVersionsCommand = async (input, contex
|
|
|
358
349
|
};
|
|
359
350
|
let body;
|
|
360
351
|
body = JSON.stringify({
|
|
361
|
-
...(input.expectedStatus
|
|
362
|
-
|
|
363
|
-
...(input.versionRevisions !== undefined &&
|
|
364
|
-
input.versionRevisions !== null && {
|
|
352
|
+
...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
|
|
353
|
+
...(input.versionRevisions != null && {
|
|
365
354
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
366
355
|
}),
|
|
367
|
-
...(input.versions
|
|
368
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
356
|
+
...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
369
357
|
});
|
|
370
358
|
return new protocol_http_1.HttpRequest({
|
|
371
359
|
protocol,
|
|
@@ -529,8 +517,8 @@ const serializeAws_restJson1ListDomainsCommand = async (input, context) => {
|
|
|
529
517
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domains";
|
|
530
518
|
let body;
|
|
531
519
|
body = JSON.stringify({
|
|
532
|
-
...(input.maxResults
|
|
533
|
-
...(input.nextToken
|
|
520
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
521
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
534
522
|
});
|
|
535
523
|
return new protocol_http_1.HttpRequest({
|
|
536
524
|
protocol,
|
|
@@ -729,12 +717,10 @@ const serializeAws_restJson1PutDomainPermissionsPolicyCommand = async (input, co
|
|
|
729
717
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
|
|
730
718
|
let body;
|
|
731
719
|
body = JSON.stringify({
|
|
732
|
-
...(input.domain
|
|
733
|
-
...(input.domainOwner
|
|
734
|
-
...(input.policyDocument
|
|
735
|
-
|
|
736
|
-
...(input.policyRevision !== undefined &&
|
|
737
|
-
input.policyRevision !== null && { policyRevision: input.policyRevision }),
|
|
720
|
+
...(input.domain != null && { domain: input.domain }),
|
|
721
|
+
...(input.domainOwner != null && { domainOwner: input.domainOwner }),
|
|
722
|
+
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
723
|
+
...(input.policyRevision != null && { policyRevision: input.policyRevision }),
|
|
738
724
|
});
|
|
739
725
|
return new protocol_http_1.HttpRequest({
|
|
740
726
|
protocol,
|
|
@@ -760,10 +746,8 @@ const serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = async (input
|
|
|
760
746
|
};
|
|
761
747
|
let body;
|
|
762
748
|
body = JSON.stringify({
|
|
763
|
-
...(input.policyDocument
|
|
764
|
-
|
|
765
|
-
...(input.policyRevision !== undefined &&
|
|
766
|
-
input.policyRevision !== null && { policyRevision: input.policyRevision }),
|
|
749
|
+
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
750
|
+
...(input.policyRevision != null && { policyRevision: input.policyRevision }),
|
|
767
751
|
});
|
|
768
752
|
return new protocol_http_1.HttpRequest({
|
|
769
753
|
protocol,
|
|
@@ -788,8 +772,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
788
772
|
};
|
|
789
773
|
let body;
|
|
790
774
|
body = JSON.stringify({
|
|
791
|
-
...(input.tags
|
|
792
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
775
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
793
776
|
});
|
|
794
777
|
return new protocol_http_1.HttpRequest({
|
|
795
778
|
protocol,
|
|
@@ -814,8 +797,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
814
797
|
};
|
|
815
798
|
let body;
|
|
816
799
|
body = JSON.stringify({
|
|
817
|
-
...(input.tagKeys
|
|
818
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
|
|
800
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
|
|
819
801
|
});
|
|
820
802
|
return new protocol_http_1.HttpRequest({
|
|
821
803
|
protocol,
|
|
@@ -845,15 +827,12 @@ const serializeAws_restJson1UpdatePackageVersionsStatusCommand = async (input, c
|
|
|
845
827
|
};
|
|
846
828
|
let body;
|
|
847
829
|
body = JSON.stringify({
|
|
848
|
-
...(input.expectedStatus
|
|
849
|
-
|
|
850
|
-
...(input.
|
|
851
|
-
...(input.versionRevisions !== undefined &&
|
|
852
|
-
input.versionRevisions !== null && {
|
|
830
|
+
...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
|
|
831
|
+
...(input.targetStatus != null && { targetStatus: input.targetStatus }),
|
|
832
|
+
...(input.versionRevisions != null && {
|
|
853
833
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
854
834
|
}),
|
|
855
|
-
...(input.versions
|
|
856
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
835
|
+
...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
857
836
|
});
|
|
858
837
|
return new protocol_http_1.HttpRequest({
|
|
859
838
|
protocol,
|
|
@@ -880,9 +859,8 @@ const serializeAws_restJson1UpdateRepositoryCommand = async (input, context) =>
|
|
|
880
859
|
};
|
|
881
860
|
let body;
|
|
882
861
|
body = JSON.stringify({
|
|
883
|
-
...(input.description
|
|
884
|
-
...(input.upstreams
|
|
885
|
-
input.upstreams !== null && {
|
|
862
|
+
...(input.description != null && { description: input.description }),
|
|
863
|
+
...(input.upstreams != null && {
|
|
886
864
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
887
865
|
}),
|
|
888
866
|
});
|
|
@@ -919,8 +897,7 @@ const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (o
|
|
|
919
897
|
body: await parseBody(output.body, context),
|
|
920
898
|
};
|
|
921
899
|
let response;
|
|
922
|
-
|
|
923
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
901
|
switch (errorCode) {
|
|
925
902
|
case "AccessDeniedException":
|
|
926
903
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -945,10 +922,12 @@ const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (o
|
|
|
945
922
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
946
923
|
default:
|
|
947
924
|
const parsedBody = parsedOutput.body;
|
|
925
|
+
const $metadata = deserializeMetadata(output);
|
|
926
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
948
927
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
949
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
928
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
950
929
|
$fault: "client",
|
|
951
|
-
$metadata
|
|
930
|
+
$metadata,
|
|
952
931
|
});
|
|
953
932
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
954
933
|
}
|
|
@@ -978,8 +957,7 @@ const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, c
|
|
|
978
957
|
body: await parseBody(output.body, context),
|
|
979
958
|
};
|
|
980
959
|
let response;
|
|
981
|
-
|
|
982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
961
|
switch (errorCode) {
|
|
984
962
|
case "AccessDeniedException":
|
|
985
963
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1004,10 +982,12 @@ const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, c
|
|
|
1004
982
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1005
983
|
default:
|
|
1006
984
|
const parsedBody = parsedOutput.body;
|
|
985
|
+
const $metadata = deserializeMetadata(output);
|
|
986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1007
987
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1009
989
|
$fault: "client",
|
|
1010
|
-
$metadata
|
|
990
|
+
$metadata,
|
|
1011
991
|
});
|
|
1012
992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1013
993
|
}
|
|
@@ -1033,8 +1013,7 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1033
1013
|
body: await parseBody(output.body, context),
|
|
1034
1014
|
};
|
|
1035
1015
|
let response;
|
|
1036
|
-
|
|
1037
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
1017
|
switch (errorCode) {
|
|
1039
1018
|
case "AccessDeniedException":
|
|
1040
1019
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1059,10 +1038,12 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1059
1038
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1060
1039
|
default:
|
|
1061
1040
|
const parsedBody = parsedOutput.body;
|
|
1041
|
+
const $metadata = deserializeMetadata(output);
|
|
1042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1062
1043
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1064
1045
|
$fault: "client",
|
|
1065
|
-
$metadata
|
|
1046
|
+
$metadata,
|
|
1066
1047
|
});
|
|
1067
1048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1068
1049
|
}
|
|
@@ -1088,8 +1069,7 @@ const deserializeAws_restJson1CreateRepositoryCommandError = async (output, cont
|
|
|
1088
1069
|
body: await parseBody(output.body, context),
|
|
1089
1070
|
};
|
|
1090
1071
|
let response;
|
|
1091
|
-
|
|
1092
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1073
|
switch (errorCode) {
|
|
1094
1074
|
case "AccessDeniedException":
|
|
1095
1075
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1114,10 +1094,12 @@ const deserializeAws_restJson1CreateRepositoryCommandError = async (output, cont
|
|
|
1114
1094
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1115
1095
|
default:
|
|
1116
1096
|
const parsedBody = parsedOutput.body;
|
|
1097
|
+
const $metadata = deserializeMetadata(output);
|
|
1098
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1117
1099
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1118
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1100
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1119
1101
|
$fault: "client",
|
|
1120
|
-
$metadata
|
|
1102
|
+
$metadata,
|
|
1121
1103
|
});
|
|
1122
1104
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1123
1105
|
}
|
|
@@ -1143,8 +1125,7 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1143
1125
|
body: await parseBody(output.body, context),
|
|
1144
1126
|
};
|
|
1145
1127
|
let response;
|
|
1146
|
-
|
|
1147
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
1129
|
switch (errorCode) {
|
|
1149
1130
|
case "AccessDeniedException":
|
|
1150
1131
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1163,10 +1144,12 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1163
1144
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1164
1145
|
default:
|
|
1165
1146
|
const parsedBody = parsedOutput.body;
|
|
1147
|
+
const $metadata = deserializeMetadata(output);
|
|
1148
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1166
1149
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1167
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1168
1151
|
$fault: "client",
|
|
1169
|
-
$metadata
|
|
1152
|
+
$metadata,
|
|
1170
1153
|
});
|
|
1171
1154
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1172
1155
|
}
|
|
@@ -1192,8 +1175,7 @@ const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async
|
|
|
1192
1175
|
body: await parseBody(output.body, context),
|
|
1193
1176
|
};
|
|
1194
1177
|
let response;
|
|
1195
|
-
|
|
1196
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1179
|
switch (errorCode) {
|
|
1198
1180
|
case "AccessDeniedException":
|
|
1199
1181
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1215,10 +1197,12 @@ const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async
|
|
|
1215
1197
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1216
1198
|
default:
|
|
1217
1199
|
const parsedBody = parsedOutput.body;
|
|
1200
|
+
const $metadata = deserializeMetadata(output);
|
|
1201
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1218
1202
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1203
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1220
1204
|
$fault: "client",
|
|
1221
|
-
$metadata
|
|
1205
|
+
$metadata,
|
|
1222
1206
|
});
|
|
1223
1207
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1224
1208
|
}
|
|
@@ -1248,8 +1232,7 @@ const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output,
|
|
|
1248
1232
|
body: await parseBody(output.body, context),
|
|
1249
1233
|
};
|
|
1250
1234
|
let response;
|
|
1251
|
-
|
|
1252
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
1236
|
switch (errorCode) {
|
|
1254
1237
|
case "AccessDeniedException":
|
|
1255
1238
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1271,10 +1254,12 @@ const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output,
|
|
|
1271
1254
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1272
1255
|
default:
|
|
1273
1256
|
const parsedBody = parsedOutput.body;
|
|
1257
|
+
const $metadata = deserializeMetadata(output);
|
|
1258
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1274
1259
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1275
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1260
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1276
1261
|
$fault: "client",
|
|
1277
|
-
$metadata
|
|
1262
|
+
$metadata,
|
|
1278
1263
|
});
|
|
1279
1264
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1280
1265
|
}
|
|
@@ -1300,8 +1285,7 @@ const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, cont
|
|
|
1300
1285
|
body: await parseBody(output.body, context),
|
|
1301
1286
|
};
|
|
1302
1287
|
let response;
|
|
1303
|
-
|
|
1304
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
1289
|
switch (errorCode) {
|
|
1306
1290
|
case "AccessDeniedException":
|
|
1307
1291
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1323,10 +1307,12 @@ const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, cont
|
|
|
1323
1307
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1324
1308
|
default:
|
|
1325
1309
|
const parsedBody = parsedOutput.body;
|
|
1310
|
+
const $metadata = deserializeMetadata(output);
|
|
1311
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1326
1312
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1327
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1313
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1328
1314
|
$fault: "client",
|
|
1329
|
-
$metadata
|
|
1315
|
+
$metadata,
|
|
1330
1316
|
});
|
|
1331
1317
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1332
1318
|
}
|
|
@@ -1352,8 +1338,7 @@ const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = as
|
|
|
1352
1338
|
body: await parseBody(output.body, context),
|
|
1353
1339
|
};
|
|
1354
1340
|
let response;
|
|
1355
|
-
|
|
1356
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1342
|
switch (errorCode) {
|
|
1358
1343
|
case "AccessDeniedException":
|
|
1359
1344
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1375,10 +1360,12 @@ const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = as
|
|
|
1375
1360
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1376
1361
|
default:
|
|
1377
1362
|
const parsedBody = parsedOutput.body;
|
|
1363
|
+
const $metadata = deserializeMetadata(output);
|
|
1364
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1378
1365
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1366
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1380
1367
|
$fault: "client",
|
|
1381
|
-
$metadata
|
|
1368
|
+
$metadata,
|
|
1382
1369
|
});
|
|
1383
1370
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1384
1371
|
}
|
|
@@ -1404,8 +1391,7 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
|
|
|
1404
1391
|
body: await parseBody(output.body, context),
|
|
1405
1392
|
};
|
|
1406
1393
|
let response;
|
|
1407
|
-
|
|
1408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1395
|
switch (errorCode) {
|
|
1410
1396
|
case "AccessDeniedException":
|
|
1411
1397
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1424,10 +1410,12 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
|
|
|
1424
1410
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1425
1411
|
default:
|
|
1426
1412
|
const parsedBody = parsedOutput.body;
|
|
1413
|
+
const $metadata = deserializeMetadata(output);
|
|
1414
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1427
1415
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1428
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1416
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1429
1417
|
$fault: "client",
|
|
1430
|
-
$metadata
|
|
1418
|
+
$metadata,
|
|
1431
1419
|
});
|
|
1432
1420
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1433
1421
|
}
|
|
@@ -1453,8 +1441,7 @@ const deserializeAws_restJson1DescribePackageVersionCommandError = async (output
|
|
|
1453
1441
|
body: await parseBody(output.body, context),
|
|
1454
1442
|
};
|
|
1455
1443
|
let response;
|
|
1456
|
-
|
|
1457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1445
|
switch (errorCode) {
|
|
1459
1446
|
case "AccessDeniedException":
|
|
1460
1447
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1476,10 +1463,12 @@ const deserializeAws_restJson1DescribePackageVersionCommandError = async (output
|
|
|
1476
1463
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1477
1464
|
default:
|
|
1478
1465
|
const parsedBody = parsedOutput.body;
|
|
1466
|
+
const $metadata = deserializeMetadata(output);
|
|
1467
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1479
1468
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1469
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1481
1470
|
$fault: "client",
|
|
1482
|
-
$metadata
|
|
1471
|
+
$metadata,
|
|
1483
1472
|
});
|
|
1484
1473
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1485
1474
|
}
|
|
@@ -1505,8 +1494,7 @@ const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, co
|
|
|
1505
1494
|
body: await parseBody(output.body, context),
|
|
1506
1495
|
};
|
|
1507
1496
|
let response;
|
|
1508
|
-
|
|
1509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
1498
|
switch (errorCode) {
|
|
1511
1499
|
case "AccessDeniedException":
|
|
1512
1500
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1525,10 +1513,12 @@ const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, co
|
|
|
1525
1513
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1526
1514
|
default:
|
|
1527
1515
|
const parsedBody = parsedOutput.body;
|
|
1516
|
+
const $metadata = deserializeMetadata(output);
|
|
1517
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1528
1518
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1519
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1530
1520
|
$fault: "client",
|
|
1531
|
-
$metadata
|
|
1521
|
+
$metadata,
|
|
1532
1522
|
});
|
|
1533
1523
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1534
1524
|
}
|
|
@@ -1554,8 +1544,7 @@ const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async
|
|
|
1554
1544
|
body: await parseBody(output.body, context),
|
|
1555
1545
|
};
|
|
1556
1546
|
let response;
|
|
1557
|
-
|
|
1558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
1548
|
switch (errorCode) {
|
|
1560
1549
|
case "AccessDeniedException":
|
|
1561
1550
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1580,10 +1569,12 @@ const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async
|
|
|
1580
1569
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1581
1570
|
default:
|
|
1582
1571
|
const parsedBody = parsedOutput.body;
|
|
1572
|
+
const $metadata = deserializeMetadata(output);
|
|
1573
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1583
1574
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1575
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1585
1576
|
$fault: "client",
|
|
1586
|
-
$metadata
|
|
1577
|
+
$metadata,
|
|
1587
1578
|
});
|
|
1588
1579
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1589
1580
|
}
|
|
@@ -1613,8 +1604,7 @@ const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output
|
|
|
1613
1604
|
body: await parseBody(output.body, context),
|
|
1614
1605
|
};
|
|
1615
1606
|
let response;
|
|
1616
|
-
|
|
1617
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1608
|
switch (errorCode) {
|
|
1619
1609
|
case "AccessDeniedException":
|
|
1620
1610
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1636,10 +1626,12 @@ const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output
|
|
|
1636
1626
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1637
1627
|
default:
|
|
1638
1628
|
const parsedBody = parsedOutput.body;
|
|
1629
|
+
const $metadata = deserializeMetadata(output);
|
|
1630
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1639
1631
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1632
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1641
1633
|
$fault: "client",
|
|
1642
|
-
$metadata
|
|
1634
|
+
$metadata,
|
|
1643
1635
|
});
|
|
1644
1636
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1645
1637
|
}
|
|
@@ -1669,8 +1661,7 @@ const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output,
|
|
|
1669
1661
|
body: await parseBody(output.body, context),
|
|
1670
1662
|
};
|
|
1671
1663
|
let response;
|
|
1672
|
-
|
|
1673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1665
|
switch (errorCode) {
|
|
1675
1666
|
case "AccessDeniedException":
|
|
1676
1667
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1689,10 +1680,12 @@ const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output,
|
|
|
1689
1680
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1690
1681
|
default:
|
|
1691
1682
|
const parsedBody = parsedOutput.body;
|
|
1683
|
+
const $metadata = deserializeMetadata(output);
|
|
1684
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1692
1685
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1693
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1694
1687
|
$fault: "client",
|
|
1695
|
-
$metadata
|
|
1688
|
+
$metadata,
|
|
1696
1689
|
});
|
|
1697
1690
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1698
1691
|
}
|
|
@@ -1718,8 +1711,7 @@ const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (ou
|
|
|
1718
1711
|
body: await parseBody(output.body, context),
|
|
1719
1712
|
};
|
|
1720
1713
|
let response;
|
|
1721
|
-
|
|
1722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1715
|
switch (errorCode) {
|
|
1724
1716
|
case "AccessDeniedException":
|
|
1725
1717
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1738,10 +1730,12 @@ const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (ou
|
|
|
1738
1730
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1739
1731
|
default:
|
|
1740
1732
|
const parsedBody = parsedOutput.body;
|
|
1733
|
+
const $metadata = deserializeMetadata(output);
|
|
1734
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1741
1735
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1743
1737
|
$fault: "client",
|
|
1744
|
-
$metadata
|
|
1738
|
+
$metadata,
|
|
1745
1739
|
});
|
|
1746
1740
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1747
1741
|
}
|
|
@@ -1777,8 +1771,7 @@ const deserializeAws_restJson1GetPackageVersionAssetCommandError = async (output
|
|
|
1777
1771
|
body: await parseBody(output.body, context),
|
|
1778
1772
|
};
|
|
1779
1773
|
let response;
|
|
1780
|
-
|
|
1781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
1775
|
switch (errorCode) {
|
|
1783
1776
|
case "AccessDeniedException":
|
|
1784
1777
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1800,10 +1793,12 @@ const deserializeAws_restJson1GetPackageVersionAssetCommandError = async (output
|
|
|
1800
1793
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1801
1794
|
default:
|
|
1802
1795
|
const parsedBody = parsedOutput.body;
|
|
1796
|
+
const $metadata = deserializeMetadata(output);
|
|
1797
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1803
1798
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1804
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1805
1800
|
$fault: "client",
|
|
1806
|
-
$metadata
|
|
1801
|
+
$metadata,
|
|
1807
1802
|
});
|
|
1808
1803
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1809
1804
|
}
|
|
@@ -1849,8 +1844,7 @@ const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (outpu
|
|
|
1849
1844
|
body: await parseBody(output.body, context),
|
|
1850
1845
|
};
|
|
1851
1846
|
let response;
|
|
1852
|
-
|
|
1853
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1854
1848
|
switch (errorCode) {
|
|
1855
1849
|
case "AccessDeniedException":
|
|
1856
1850
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1869,10 +1863,12 @@ const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (outpu
|
|
|
1869
1863
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1870
1864
|
default:
|
|
1871
1865
|
const parsedBody = parsedOutput.body;
|
|
1866
|
+
const $metadata = deserializeMetadata(output);
|
|
1867
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1872
1868
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1869
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1874
1870
|
$fault: "client",
|
|
1875
|
-
$metadata
|
|
1871
|
+
$metadata,
|
|
1876
1872
|
});
|
|
1877
1873
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1878
1874
|
}
|
|
@@ -1898,8 +1894,7 @@ const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output,
|
|
|
1898
1894
|
body: await parseBody(output.body, context),
|
|
1899
1895
|
};
|
|
1900
1896
|
let response;
|
|
1901
|
-
|
|
1902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
1898
|
switch (errorCode) {
|
|
1904
1899
|
case "AccessDeniedException":
|
|
1905
1900
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1918,10 +1913,12 @@ const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output,
|
|
|
1918
1913
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1919
1914
|
default:
|
|
1920
1915
|
const parsedBody = parsedOutput.body;
|
|
1916
|
+
const $metadata = deserializeMetadata(output);
|
|
1917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1921
1918
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1919
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1923
1920
|
$fault: "client",
|
|
1924
|
-
$metadata
|
|
1921
|
+
$metadata,
|
|
1925
1922
|
});
|
|
1926
1923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1927
1924
|
}
|
|
@@ -1947,8 +1944,7 @@ const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async
|
|
|
1947
1944
|
body: await parseBody(output.body, context),
|
|
1948
1945
|
};
|
|
1949
1946
|
let response;
|
|
1950
|
-
|
|
1951
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1947
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
1948
|
switch (errorCode) {
|
|
1953
1949
|
case "AccessDeniedException":
|
|
1954
1950
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -1967,10 +1963,12 @@ const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async
|
|
|
1967
1963
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1968
1964
|
default:
|
|
1969
1965
|
const parsedBody = parsedOutput.body;
|
|
1966
|
+
const $metadata = deserializeMetadata(output);
|
|
1967
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1970
1968
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1971
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1969
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1972
1970
|
$fault: "client",
|
|
1973
|
-
$metadata
|
|
1971
|
+
$metadata,
|
|
1974
1972
|
});
|
|
1975
1973
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1976
1974
|
}
|
|
@@ -2000,8 +1998,7 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
2000
1998
|
body: await parseBody(output.body, context),
|
|
2001
1999
|
};
|
|
2002
2000
|
let response;
|
|
2003
|
-
|
|
2004
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
2002
|
switch (errorCode) {
|
|
2006
2003
|
case "AccessDeniedException":
|
|
2007
2004
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2017,10 +2014,12 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
2017
2014
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2018
2015
|
default:
|
|
2019
2016
|
const parsedBody = parsedOutput.body;
|
|
2017
|
+
const $metadata = deserializeMetadata(output);
|
|
2018
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2020
2019
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2020
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2022
2021
|
$fault: "client",
|
|
2023
|
-
$metadata
|
|
2022
|
+
$metadata,
|
|
2024
2023
|
});
|
|
2025
2024
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2026
2025
|
}
|
|
@@ -2050,8 +2049,7 @@ const deserializeAws_restJson1ListPackagesCommandError = async (output, context)
|
|
|
2050
2049
|
body: await parseBody(output.body, context),
|
|
2051
2050
|
};
|
|
2052
2051
|
let response;
|
|
2053
|
-
|
|
2054
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
2053
|
switch (errorCode) {
|
|
2056
2054
|
case "AccessDeniedException":
|
|
2057
2055
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2070,10 +2068,12 @@ const deserializeAws_restJson1ListPackagesCommandError = async (output, context)
|
|
|
2070
2068
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2071
2069
|
default:
|
|
2072
2070
|
const parsedBody = parsedOutput.body;
|
|
2071
|
+
const $metadata = deserializeMetadata(output);
|
|
2072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2073
2073
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2074
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2075
2075
|
$fault: "client",
|
|
2076
|
-
$metadata
|
|
2076
|
+
$metadata,
|
|
2077
2077
|
});
|
|
2078
2078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2079
2079
|
}
|
|
@@ -2123,8 +2123,7 @@ const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (outp
|
|
|
2123
2123
|
body: await parseBody(output.body, context),
|
|
2124
2124
|
};
|
|
2125
2125
|
let response;
|
|
2126
|
-
|
|
2127
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
2127
|
switch (errorCode) {
|
|
2129
2128
|
case "AccessDeniedException":
|
|
2130
2129
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2143,10 +2142,12 @@ const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (outp
|
|
|
2143
2142
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2144
2143
|
default:
|
|
2145
2144
|
const parsedBody = parsedOutput.body;
|
|
2145
|
+
const $metadata = deserializeMetadata(output);
|
|
2146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2146
2147
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2148
2149
|
$fault: "client",
|
|
2149
|
-
$metadata
|
|
2150
|
+
$metadata,
|
|
2150
2151
|
});
|
|
2151
2152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2152
2153
|
}
|
|
@@ -2196,8 +2197,7 @@ const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async
|
|
|
2196
2197
|
body: await parseBody(output.body, context),
|
|
2197
2198
|
};
|
|
2198
2199
|
let response;
|
|
2199
|
-
|
|
2200
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
2201
|
switch (errorCode) {
|
|
2202
2202
|
case "AccessDeniedException":
|
|
2203
2203
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2216,10 +2216,12 @@ const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async
|
|
|
2216
2216
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2217
2217
|
default:
|
|
2218
2218
|
const parsedBody = parsedOutput.body;
|
|
2219
|
+
const $metadata = deserializeMetadata(output);
|
|
2220
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2219
2221
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2220
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2222
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2221
2223
|
$fault: "client",
|
|
2222
|
-
$metadata
|
|
2224
|
+
$metadata,
|
|
2223
2225
|
});
|
|
2224
2226
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2225
2227
|
}
|
|
@@ -2265,8 +2267,7 @@ const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, c
|
|
|
2265
2267
|
body: await parseBody(output.body, context),
|
|
2266
2268
|
};
|
|
2267
2269
|
let response;
|
|
2268
|
-
|
|
2269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
2271
|
switch (errorCode) {
|
|
2271
2272
|
case "AccessDeniedException":
|
|
2272
2273
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2285,10 +2286,12 @@ const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, c
|
|
|
2285
2286
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2286
2287
|
default:
|
|
2287
2288
|
const parsedBody = parsedOutput.body;
|
|
2289
|
+
const $metadata = deserializeMetadata(output);
|
|
2290
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2288
2291
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2289
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2292
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2290
2293
|
$fault: "client",
|
|
2291
|
-
$metadata
|
|
2294
|
+
$metadata,
|
|
2292
2295
|
});
|
|
2293
2296
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2294
2297
|
}
|
|
@@ -2318,8 +2321,7 @@ const deserializeAws_restJson1ListRepositoriesCommandError = async (output, cont
|
|
|
2318
2321
|
body: await parseBody(output.body, context),
|
|
2319
2322
|
};
|
|
2320
2323
|
let response;
|
|
2321
|
-
|
|
2322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2324
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
2325
|
switch (errorCode) {
|
|
2324
2326
|
case "AccessDeniedException":
|
|
2325
2327
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2335,10 +2337,12 @@ const deserializeAws_restJson1ListRepositoriesCommandError = async (output, cont
|
|
|
2335
2337
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2336
2338
|
default:
|
|
2337
2339
|
const parsedBody = parsedOutput.body;
|
|
2340
|
+
const $metadata = deserializeMetadata(output);
|
|
2341
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2338
2342
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2339
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2340
2344
|
$fault: "client",
|
|
2341
|
-
$metadata
|
|
2345
|
+
$metadata,
|
|
2342
2346
|
});
|
|
2343
2347
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2344
2348
|
}
|
|
@@ -2368,8 +2372,7 @@ const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (outp
|
|
|
2368
2372
|
body: await parseBody(output.body, context),
|
|
2369
2373
|
};
|
|
2370
2374
|
let response;
|
|
2371
|
-
|
|
2372
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2373
2376
|
switch (errorCode) {
|
|
2374
2377
|
case "AccessDeniedException":
|
|
2375
2378
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2388,10 +2391,12 @@ const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (outp
|
|
|
2388
2391
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2389
2392
|
default:
|
|
2390
2393
|
const parsedBody = parsedOutput.body;
|
|
2394
|
+
const $metadata = deserializeMetadata(output);
|
|
2395
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2391
2396
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2392
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2397
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2393
2398
|
$fault: "client",
|
|
2394
|
-
$metadata
|
|
2399
|
+
$metadata,
|
|
2395
2400
|
});
|
|
2396
2401
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2397
2402
|
}
|
|
@@ -2417,8 +2422,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2417
2422
|
body: await parseBody(output.body, context),
|
|
2418
2423
|
};
|
|
2419
2424
|
let response;
|
|
2420
|
-
|
|
2421
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2422
2426
|
switch (errorCode) {
|
|
2423
2427
|
case "AccessDeniedException":
|
|
2424
2428
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2434,10 +2438,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2434
2438
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2435
2439
|
default:
|
|
2436
2440
|
const parsedBody = parsedOutput.body;
|
|
2441
|
+
const $metadata = deserializeMetadata(output);
|
|
2442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2437
2443
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2438
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2439
2445
|
$fault: "client",
|
|
2440
|
-
$metadata
|
|
2446
|
+
$metadata,
|
|
2441
2447
|
});
|
|
2442
2448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2443
2449
|
}
|
|
@@ -2463,8 +2469,7 @@ const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (ou
|
|
|
2463
2469
|
body: await parseBody(output.body, context),
|
|
2464
2470
|
};
|
|
2465
2471
|
let response;
|
|
2466
|
-
|
|
2467
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
2473
|
switch (errorCode) {
|
|
2469
2474
|
case "AccessDeniedException":
|
|
2470
2475
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2489,10 +2494,12 @@ const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (ou
|
|
|
2489
2494
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2490
2495
|
default:
|
|
2491
2496
|
const parsedBody = parsedOutput.body;
|
|
2497
|
+
const $metadata = deserializeMetadata(output);
|
|
2498
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2492
2499
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2500
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2494
2501
|
$fault: "client",
|
|
2495
|
-
$metadata
|
|
2502
|
+
$metadata,
|
|
2496
2503
|
});
|
|
2497
2504
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2498
2505
|
}
|
|
@@ -2518,8 +2525,7 @@ const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async
|
|
|
2518
2525
|
body: await parseBody(output.body, context),
|
|
2519
2526
|
};
|
|
2520
2527
|
let response;
|
|
2521
|
-
|
|
2522
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2523
2529
|
switch (errorCode) {
|
|
2524
2530
|
case "AccessDeniedException":
|
|
2525
2531
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2544,10 +2550,12 @@ const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async
|
|
|
2544
2550
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2545
2551
|
default:
|
|
2546
2552
|
const parsedBody = parsedOutput.body;
|
|
2553
|
+
const $metadata = deserializeMetadata(output);
|
|
2554
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2547
2555
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2549
2557
|
$fault: "client",
|
|
2550
|
-
$metadata
|
|
2558
|
+
$metadata,
|
|
2551
2559
|
});
|
|
2552
2560
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2553
2561
|
}
|
|
@@ -2569,8 +2577,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2569
2577
|
body: await parseBody(output.body, context),
|
|
2570
2578
|
};
|
|
2571
2579
|
let response;
|
|
2572
|
-
|
|
2573
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
2581
|
switch (errorCode) {
|
|
2575
2582
|
case "AccessDeniedException":
|
|
2576
2583
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2589,10 +2596,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2589
2596
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2590
2597
|
default:
|
|
2591
2598
|
const parsedBody = parsedOutput.body;
|
|
2599
|
+
const $metadata = deserializeMetadata(output);
|
|
2600
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2592
2601
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2594
2603
|
$fault: "client",
|
|
2595
|
-
$metadata
|
|
2604
|
+
$metadata,
|
|
2596
2605
|
});
|
|
2597
2606
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2598
2607
|
}
|
|
@@ -2614,8 +2623,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2614
2623
|
body: await parseBody(output.body, context),
|
|
2615
2624
|
};
|
|
2616
2625
|
let response;
|
|
2617
|
-
|
|
2618
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2619
2627
|
switch (errorCode) {
|
|
2620
2628
|
case "AccessDeniedException":
|
|
2621
2629
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2631,10 +2639,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2631
2639
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2632
2640
|
default:
|
|
2633
2641
|
const parsedBody = parsedOutput.body;
|
|
2642
|
+
const $metadata = deserializeMetadata(output);
|
|
2643
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2634
2644
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2635
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2645
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2636
2646
|
$fault: "client",
|
|
2637
|
-
$metadata
|
|
2647
|
+
$metadata,
|
|
2638
2648
|
});
|
|
2639
2649
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2640
2650
|
}
|
|
@@ -2664,8 +2674,7 @@ const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (o
|
|
|
2664
2674
|
body: await parseBody(output.body, context),
|
|
2665
2675
|
};
|
|
2666
2676
|
let response;
|
|
2667
|
-
|
|
2668
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
2678
|
switch (errorCode) {
|
|
2670
2679
|
case "AccessDeniedException":
|
|
2671
2680
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2687,10 +2696,12 @@ const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (o
|
|
|
2687
2696
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2688
2697
|
default:
|
|
2689
2698
|
const parsedBody = parsedOutput.body;
|
|
2699
|
+
const $metadata = deserializeMetadata(output);
|
|
2700
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2690
2701
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2691
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2702
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2692
2703
|
$fault: "client",
|
|
2693
|
-
$metadata
|
|
2704
|
+
$metadata,
|
|
2694
2705
|
});
|
|
2695
2706
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2696
2707
|
}
|
|
@@ -2716,8 +2727,7 @@ const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, cont
|
|
|
2716
2727
|
body: await parseBody(output.body, context),
|
|
2717
2728
|
};
|
|
2718
2729
|
let response;
|
|
2719
|
-
|
|
2720
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
2731
|
switch (errorCode) {
|
|
2722
2732
|
case "AccessDeniedException":
|
|
2723
2733
|
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
@@ -2742,10 +2752,12 @@ const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, cont
|
|
|
2742
2752
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2743
2753
|
default:
|
|
2744
2754
|
const parsedBody = parsedOutput.body;
|
|
2755
|
+
const $metadata = deserializeMetadata(output);
|
|
2756
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2745
2757
|
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2746
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2747
2759
|
$fault: "client",
|
|
2748
|
-
$metadata
|
|
2760
|
+
$metadata,
|
|
2749
2761
|
});
|
|
2750
2762
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2751
2763
|
}
|
|
@@ -2881,8 +2893,8 @@ const serializeAws_restJson1PackageVersionRevisionMap = (input, context) => {
|
|
|
2881
2893
|
};
|
|
2882
2894
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
2883
2895
|
return {
|
|
2884
|
-
...(input.key
|
|
2885
|
-
...(input.value
|
|
2896
|
+
...(input.key != null && { key: input.key }),
|
|
2897
|
+
...(input.value != null && { value: input.value }),
|
|
2886
2898
|
};
|
|
2887
2899
|
};
|
|
2888
2900
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -2907,8 +2919,7 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
2907
2919
|
};
|
|
2908
2920
|
const serializeAws_restJson1UpstreamRepository = (input, context) => {
|
|
2909
2921
|
return {
|
|
2910
|
-
...(input.repositoryName
|
|
2911
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2922
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2912
2923
|
};
|
|
2913
2924
|
};
|
|
2914
2925
|
const serializeAws_restJson1UpstreamRepositoryList = (input, context) => {
|
|
@@ -2934,9 +2945,7 @@ const deserializeAws_restJson1AssetHashes = (output, context) => {
|
|
|
2934
2945
|
};
|
|
2935
2946
|
const deserializeAws_restJson1AssetSummary = (output, context) => {
|
|
2936
2947
|
return {
|
|
2937
|
-
hashes: output.hashes
|
|
2938
|
-
? deserializeAws_restJson1AssetHashes(output.hashes, context)
|
|
2939
|
-
: undefined,
|
|
2948
|
+
hashes: output.hashes != null ? deserializeAws_restJson1AssetHashes(output.hashes, context) : undefined,
|
|
2940
2949
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2941
2950
|
size: (0, smithy_client_1.expectLong)(output.size),
|
|
2942
2951
|
};
|
|
@@ -2956,7 +2965,7 @@ const deserializeAws_restJson1DomainDescription = (output, context) => {
|
|
|
2956
2965
|
return {
|
|
2957
2966
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2958
2967
|
assetSizeBytes: (0, smithy_client_1.expectLong)(output.assetSizeBytes),
|
|
2959
|
-
createdTime: output.createdTime
|
|
2968
|
+
createdTime: output.createdTime != null
|
|
2960
2969
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdTime)))
|
|
2961
2970
|
: undefined,
|
|
2962
2971
|
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
@@ -2970,7 +2979,7 @@ const deserializeAws_restJson1DomainDescription = (output, context) => {
|
|
|
2970
2979
|
const deserializeAws_restJson1DomainSummary = (output, context) => {
|
|
2971
2980
|
return {
|
|
2972
2981
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2973
|
-
createdTime: output.createdTime
|
|
2982
|
+
createdTime: output.createdTime != null
|
|
2974
2983
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdTime)))
|
|
2975
2984
|
: undefined,
|
|
2976
2985
|
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
@@ -3049,12 +3058,10 @@ const deserializeAws_restJson1PackageVersionDescription = (output, context) => {
|
|
|
3049
3058
|
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
3050
3059
|
format: (0, smithy_client_1.expectString)(output.format),
|
|
3051
3060
|
homePage: (0, smithy_client_1.expectString)(output.homePage),
|
|
3052
|
-
licenses: output.licenses
|
|
3053
|
-
? deserializeAws_restJson1LicenseInfoList(output.licenses, context)
|
|
3054
|
-
: undefined,
|
|
3061
|
+
licenses: output.licenses != null ? deserializeAws_restJson1LicenseInfoList(output.licenses, context) : undefined,
|
|
3055
3062
|
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3056
3063
|
packageName: (0, smithy_client_1.expectString)(output.packageName),
|
|
3057
|
-
publishedTime: output.publishedTime
|
|
3064
|
+
publishedTime: output.publishedTime != null
|
|
3058
3065
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.publishedTime)))
|
|
3059
3066
|
: undefined,
|
|
3060
3067
|
revision: (0, smithy_client_1.expectString)(output.revision),
|
|
@@ -3106,11 +3113,11 @@ const deserializeAws_restJson1RepositoryDescription = (output, context) => {
|
|
|
3106
3113
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3107
3114
|
domainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
3108
3115
|
domainOwner: (0, smithy_client_1.expectString)(output.domainOwner),
|
|
3109
|
-
externalConnections: output.externalConnections
|
|
3116
|
+
externalConnections: output.externalConnections != null
|
|
3110
3117
|
? deserializeAws_restJson1RepositoryExternalConnectionInfoList(output.externalConnections, context)
|
|
3111
3118
|
: undefined,
|
|
3112
3119
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3113
|
-
upstreams: output.upstreams
|
|
3120
|
+
upstreams: output.upstreams != null
|
|
3114
3121
|
? deserializeAws_restJson1UpstreamRepositoryInfoList(output.upstreams, context)
|
|
3115
3122
|
: undefined,
|
|
3116
3123
|
};
|
|
@@ -3260,5 +3267,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3260
3267
|
if (data["__type"] !== undefined) {
|
|
3261
3268
|
return sanitizeErrorCode(data["__type"]);
|
|
3262
3269
|
}
|
|
3263
|
-
return "";
|
|
3264
3270
|
};
|