@aws-sdk/client-codeartifact 3.490.0 → 3.496.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/dist-cjs/Codeartifact.js +1 -87
- package/dist-cjs/CodeartifactClient.js +1 -43
- package/dist-cjs/commands/AssociateExternalConnectionCommand.js +1 -28
- package/dist-cjs/commands/CopyPackageVersionsCommand.js +1 -28
- package/dist-cjs/commands/CreateDomainCommand.js +1 -28
- package/dist-cjs/commands/CreateRepositoryCommand.js +1 -28
- package/dist-cjs/commands/DeleteDomainCommand.js +1 -28
- package/dist-cjs/commands/DeleteDomainPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeletePackageCommand.js +1 -28
- package/dist-cjs/commands/DeletePackageVersionsCommand.js +1 -28
- package/dist-cjs/commands/DeleteRepositoryCommand.js +1 -28
- package/dist-cjs/commands/DeleteRepositoryPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainCommand.js +1 -28
- package/dist-cjs/commands/DescribePackageCommand.js +1 -28
- package/dist-cjs/commands/DescribePackageVersionCommand.js +1 -28
- package/dist-cjs/commands/DescribeRepositoryCommand.js +1 -28
- package/dist-cjs/commands/DisassociateExternalConnectionCommand.js +1 -28
- package/dist-cjs/commands/DisposePackageVersionsCommand.js +1 -28
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +1 -28
- package/dist-cjs/commands/GetDomainPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetPackageVersionAssetCommand.js +1 -29
- package/dist-cjs/commands/GetPackageVersionReadmeCommand.js +1 -28
- package/dist-cjs/commands/GetRepositoryEndpointCommand.js +1 -28
- package/dist-cjs/commands/GetRepositoryPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/ListDomainsCommand.js +1 -28
- package/dist-cjs/commands/ListPackageVersionAssetsCommand.js +1 -28
- package/dist-cjs/commands/ListPackageVersionDependenciesCommand.js +1 -28
- package/dist-cjs/commands/ListPackageVersionsCommand.js +1 -28
- package/dist-cjs/commands/ListPackagesCommand.js +1 -28
- package/dist-cjs/commands/ListRepositoriesCommand.js +1 -28
- package/dist-cjs/commands/ListRepositoriesInDomainCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PublishPackageVersionCommand.js +1 -29
- package/dist-cjs/commands/PutDomainPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutPackageOriginConfigurationCommand.js +1 -28
- package/dist-cjs/commands/PutRepositoryPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdatePackageVersionsStatusCommand.js +1 -28
- package/dist-cjs/commands/UpdateRepositoryCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -41
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3943 -11
- package/dist-cjs/models/CodeartifactServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -178
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDomainsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPackageVersionAssetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPackagesPaginator.js +1 -7
- package/dist-cjs/pagination/ListRepositoriesInDomainPaginator.js +1 -7
- package/dist-cjs/pagination/ListRepositoriesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2810
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
|
@@ -1,2810 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_DescribePackageCommand = exports.de_DescribeDomainCommand = exports.de_DeleteRepositoryPermissionsPolicyCommand = exports.de_DeleteRepositoryCommand = exports.de_DeletePackageVersionsCommand = exports.de_DeletePackageCommand = exports.de_DeleteDomainPermissionsPolicyCommand = exports.de_DeleteDomainCommand = exports.de_CreateRepositoryCommand = exports.de_CreateDomainCommand = exports.de_CopyPackageVersionsCommand = exports.de_AssociateExternalConnectionCommand = exports.se_UpdateRepositoryCommand = exports.se_UpdatePackageVersionsStatusCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutRepositoryPermissionsPolicyCommand = exports.se_PutPackageOriginConfigurationCommand = exports.se_PutDomainPermissionsPolicyCommand = exports.se_PublishPackageVersionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRepositoriesInDomainCommand = exports.se_ListRepositoriesCommand = exports.se_ListPackageVersionsCommand = exports.se_ListPackageVersionDependenciesCommand = exports.se_ListPackageVersionAssetsCommand = exports.se_ListPackagesCommand = exports.se_ListDomainsCommand = exports.se_GetRepositoryPermissionsPolicyCommand = exports.se_GetRepositoryEndpointCommand = exports.se_GetPackageVersionReadmeCommand = exports.se_GetPackageVersionAssetCommand = exports.se_GetDomainPermissionsPolicyCommand = exports.se_GetAuthorizationTokenCommand = exports.se_DisposePackageVersionsCommand = exports.se_DisassociateExternalConnectionCommand = exports.se_DescribeRepositoryCommand = exports.se_DescribePackageVersionCommand = exports.se_DescribePackageCommand = exports.se_DescribeDomainCommand = exports.se_DeleteRepositoryPermissionsPolicyCommand = exports.se_DeleteRepositoryCommand = exports.se_DeletePackageVersionsCommand = exports.se_DeletePackageCommand = exports.se_DeleteDomainPermissionsPolicyCommand = exports.se_DeleteDomainCommand = exports.se_CreateRepositoryCommand = exports.se_CreateDomainCommand = exports.se_CopyPackageVersionsCommand = exports.se_AssociateExternalConnectionCommand = void 0;
|
|
4
|
-
exports.de_UpdateRepositoryCommand = exports.de_UpdatePackageVersionsStatusCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutRepositoryPermissionsPolicyCommand = exports.de_PutPackageOriginConfigurationCommand = exports.de_PutDomainPermissionsPolicyCommand = exports.de_PublishPackageVersionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRepositoriesInDomainCommand = exports.de_ListRepositoriesCommand = exports.de_ListPackageVersionsCommand = exports.de_ListPackageVersionDependenciesCommand = exports.de_ListPackageVersionAssetsCommand = exports.de_ListPackagesCommand = exports.de_ListDomainsCommand = exports.de_GetRepositoryPermissionsPolicyCommand = exports.de_GetRepositoryEndpointCommand = exports.de_GetPackageVersionReadmeCommand = exports.de_GetPackageVersionAssetCommand = exports.de_GetDomainPermissionsPolicyCommand = exports.de_GetAuthorizationTokenCommand = exports.de_DisposePackageVersionsCommand = exports.de_DisassociateExternalConnectionCommand = exports.de_DescribeRepositoryCommand = exports.de_DescribePackageVersionCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const CodeartifactServiceException_1 = require("../models/CodeartifactServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_AssociateExternalConnectionCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {};
|
|
12
|
-
b.bp("/v1/repository/external-connection");
|
|
13
|
-
const query = (0, smithy_client_1.map)({
|
|
14
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
15
|
-
[_do]: [, input[_dO]],
|
|
16
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
17
|
-
[_ec]: [, (0, smithy_client_1.expectNonNull)(input[_eC], `externalConnection`)],
|
|
18
|
-
});
|
|
19
|
-
let body;
|
|
20
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
exports.se_AssociateExternalConnectionCommand = se_AssociateExternalConnectionCommand;
|
|
24
|
-
const se_CopyPackageVersionsCommand = async (input, context) => {
|
|
25
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/v1/package/versions/copy");
|
|
30
|
-
const query = (0, smithy_client_1.map)({
|
|
31
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
32
|
-
[_do]: [, input[_dO]],
|
|
33
|
-
[_sr]: [, (0, smithy_client_1.expectNonNull)(input[_sR], `sourceRepository`)],
|
|
34
|
-
[_dr]: [, (0, smithy_client_1.expectNonNull)(input[_dR], `destinationRepository`)],
|
|
35
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
36
|
-
[_n]: [, input[_n]],
|
|
37
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
38
|
-
});
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
-
allowOverwrite: [],
|
|
42
|
-
includeFromUpstream: [],
|
|
43
|
-
versionRevisions: (_) => (0, smithy_client_1._json)(_),
|
|
44
|
-
versions: (_) => (0, smithy_client_1._json)(_),
|
|
45
|
-
}));
|
|
46
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
exports.se_CopyPackageVersionsCommand = se_CopyPackageVersionsCommand;
|
|
50
|
-
const se_CreateDomainCommand = async (input, context) => {
|
|
51
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
52
|
-
const headers = {
|
|
53
|
-
"content-type": "application/json",
|
|
54
|
-
};
|
|
55
|
-
b.bp("/v1/domain");
|
|
56
|
-
const query = (0, smithy_client_1.map)({
|
|
57
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
58
|
-
});
|
|
59
|
-
let body;
|
|
60
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
61
|
-
encryptionKey: [],
|
|
62
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
63
|
-
}));
|
|
64
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
exports.se_CreateDomainCommand = se_CreateDomainCommand;
|
|
68
|
-
const se_CreateRepositoryCommand = async (input, context) => {
|
|
69
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
70
|
-
const headers = {
|
|
71
|
-
"content-type": "application/json",
|
|
72
|
-
};
|
|
73
|
-
b.bp("/v1/repository");
|
|
74
|
-
const query = (0, smithy_client_1.map)({
|
|
75
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
76
|
-
[_do]: [, input[_dO]],
|
|
77
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
78
|
-
});
|
|
79
|
-
let body;
|
|
80
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
81
|
-
description: [],
|
|
82
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
83
|
-
upstreams: (_) => (0, smithy_client_1._json)(_),
|
|
84
|
-
}));
|
|
85
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
exports.se_CreateRepositoryCommand = se_CreateRepositoryCommand;
|
|
89
|
-
const se_DeleteDomainCommand = async (input, context) => {
|
|
90
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
91
|
-
const headers = {};
|
|
92
|
-
b.bp("/v1/domain");
|
|
93
|
-
const query = (0, smithy_client_1.map)({
|
|
94
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
95
|
-
[_do]: [, input[_dO]],
|
|
96
|
-
});
|
|
97
|
-
let body;
|
|
98
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
|
|
102
|
-
const se_DeleteDomainPermissionsPolicyCommand = async (input, context) => {
|
|
103
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
104
|
-
const headers = {};
|
|
105
|
-
b.bp("/v1/domain/permissions/policy");
|
|
106
|
-
const query = (0, smithy_client_1.map)({
|
|
107
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
108
|
-
[_do]: [, input[_dO]],
|
|
109
|
-
[_pr]: [, input[_pR]],
|
|
110
|
-
});
|
|
111
|
-
let body;
|
|
112
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
113
|
-
return b.build();
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteDomainPermissionsPolicyCommand = se_DeleteDomainPermissionsPolicyCommand;
|
|
116
|
-
const se_DeletePackageCommand = async (input, context) => {
|
|
117
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
118
|
-
const headers = {};
|
|
119
|
-
b.bp("/v1/package");
|
|
120
|
-
const query = (0, smithy_client_1.map)({
|
|
121
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
122
|
-
[_do]: [, input[_dO]],
|
|
123
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
124
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
125
|
-
[_n]: [, input[_n]],
|
|
126
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
127
|
-
});
|
|
128
|
-
let body;
|
|
129
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
130
|
-
return b.build();
|
|
131
|
-
};
|
|
132
|
-
exports.se_DeletePackageCommand = se_DeletePackageCommand;
|
|
133
|
-
const se_DeletePackageVersionsCommand = async (input, context) => {
|
|
134
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
135
|
-
const headers = {
|
|
136
|
-
"content-type": "application/json",
|
|
137
|
-
};
|
|
138
|
-
b.bp("/v1/package/versions/delete");
|
|
139
|
-
const query = (0, smithy_client_1.map)({
|
|
140
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
141
|
-
[_do]: [, input[_dO]],
|
|
142
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
143
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
144
|
-
[_n]: [, input[_n]],
|
|
145
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
146
|
-
});
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
149
|
-
expectedStatus: [],
|
|
150
|
-
versions: (_) => (0, smithy_client_1._json)(_),
|
|
151
|
-
}));
|
|
152
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
153
|
-
return b.build();
|
|
154
|
-
};
|
|
155
|
-
exports.se_DeletePackageVersionsCommand = se_DeletePackageVersionsCommand;
|
|
156
|
-
const se_DeleteRepositoryCommand = async (input, context) => {
|
|
157
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
158
|
-
const headers = {};
|
|
159
|
-
b.bp("/v1/repository");
|
|
160
|
-
const query = (0, smithy_client_1.map)({
|
|
161
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
162
|
-
[_do]: [, input[_dO]],
|
|
163
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
164
|
-
});
|
|
165
|
-
let body;
|
|
166
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
167
|
-
return b.build();
|
|
168
|
-
};
|
|
169
|
-
exports.se_DeleteRepositoryCommand = se_DeleteRepositoryCommand;
|
|
170
|
-
const se_DeleteRepositoryPermissionsPolicyCommand = async (input, context) => {
|
|
171
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
172
|
-
const headers = {};
|
|
173
|
-
b.bp("/v1/repository/permissions/policies");
|
|
174
|
-
const query = (0, smithy_client_1.map)({
|
|
175
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
176
|
-
[_do]: [, input[_dO]],
|
|
177
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
178
|
-
[_pr]: [, input[_pR]],
|
|
179
|
-
});
|
|
180
|
-
let body;
|
|
181
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
182
|
-
return b.build();
|
|
183
|
-
};
|
|
184
|
-
exports.se_DeleteRepositoryPermissionsPolicyCommand = se_DeleteRepositoryPermissionsPolicyCommand;
|
|
185
|
-
const se_DescribeDomainCommand = async (input, context) => {
|
|
186
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
187
|
-
const headers = {};
|
|
188
|
-
b.bp("/v1/domain");
|
|
189
|
-
const query = (0, smithy_client_1.map)({
|
|
190
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
191
|
-
[_do]: [, input[_dO]],
|
|
192
|
-
});
|
|
193
|
-
let body;
|
|
194
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
195
|
-
return b.build();
|
|
196
|
-
};
|
|
197
|
-
exports.se_DescribeDomainCommand = se_DescribeDomainCommand;
|
|
198
|
-
const se_DescribePackageCommand = async (input, context) => {
|
|
199
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
200
|
-
const headers = {};
|
|
201
|
-
b.bp("/v1/package");
|
|
202
|
-
const query = (0, smithy_client_1.map)({
|
|
203
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
204
|
-
[_do]: [, input[_dO]],
|
|
205
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
206
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
207
|
-
[_n]: [, input[_n]],
|
|
208
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
209
|
-
});
|
|
210
|
-
let body;
|
|
211
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
212
|
-
return b.build();
|
|
213
|
-
};
|
|
214
|
-
exports.se_DescribePackageCommand = se_DescribePackageCommand;
|
|
215
|
-
const se_DescribePackageVersionCommand = async (input, context) => {
|
|
216
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
217
|
-
const headers = {};
|
|
218
|
-
b.bp("/v1/package/version");
|
|
219
|
-
const query = (0, smithy_client_1.map)({
|
|
220
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
221
|
-
[_do]: [, input[_dO]],
|
|
222
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
223
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
224
|
-
[_n]: [, input[_n]],
|
|
225
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
226
|
-
[_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
|
|
227
|
-
});
|
|
228
|
-
let body;
|
|
229
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
230
|
-
return b.build();
|
|
231
|
-
};
|
|
232
|
-
exports.se_DescribePackageVersionCommand = se_DescribePackageVersionCommand;
|
|
233
|
-
const se_DescribeRepositoryCommand = async (input, context) => {
|
|
234
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
235
|
-
const headers = {};
|
|
236
|
-
b.bp("/v1/repository");
|
|
237
|
-
const query = (0, smithy_client_1.map)({
|
|
238
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
239
|
-
[_do]: [, input[_dO]],
|
|
240
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
241
|
-
});
|
|
242
|
-
let body;
|
|
243
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
244
|
-
return b.build();
|
|
245
|
-
};
|
|
246
|
-
exports.se_DescribeRepositoryCommand = se_DescribeRepositoryCommand;
|
|
247
|
-
const se_DisassociateExternalConnectionCommand = async (input, context) => {
|
|
248
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
249
|
-
const headers = {};
|
|
250
|
-
b.bp("/v1/repository/external-connection");
|
|
251
|
-
const query = (0, smithy_client_1.map)({
|
|
252
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
253
|
-
[_do]: [, input[_dO]],
|
|
254
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
255
|
-
[_ec]: [, (0, smithy_client_1.expectNonNull)(input[_eC], `externalConnection`)],
|
|
256
|
-
});
|
|
257
|
-
let body;
|
|
258
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
259
|
-
return b.build();
|
|
260
|
-
};
|
|
261
|
-
exports.se_DisassociateExternalConnectionCommand = se_DisassociateExternalConnectionCommand;
|
|
262
|
-
const se_DisposePackageVersionsCommand = async (input, context) => {
|
|
263
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
264
|
-
const headers = {
|
|
265
|
-
"content-type": "application/json",
|
|
266
|
-
};
|
|
267
|
-
b.bp("/v1/package/versions/dispose");
|
|
268
|
-
const query = (0, smithy_client_1.map)({
|
|
269
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
270
|
-
[_do]: [, input[_dO]],
|
|
271
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
272
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
273
|
-
[_n]: [, input[_n]],
|
|
274
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
275
|
-
});
|
|
276
|
-
let body;
|
|
277
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
278
|
-
expectedStatus: [],
|
|
279
|
-
versionRevisions: (_) => (0, smithy_client_1._json)(_),
|
|
280
|
-
versions: (_) => (0, smithy_client_1._json)(_),
|
|
281
|
-
}));
|
|
282
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
283
|
-
return b.build();
|
|
284
|
-
};
|
|
285
|
-
exports.se_DisposePackageVersionsCommand = se_DisposePackageVersionsCommand;
|
|
286
|
-
const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
287
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
288
|
-
const headers = {};
|
|
289
|
-
b.bp("/v1/authorization-token");
|
|
290
|
-
const query = (0, smithy_client_1.map)({
|
|
291
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
292
|
-
[_do]: [, input[_dO]],
|
|
293
|
-
[_du]: [() => input.durationSeconds !== void 0, () => input[_dS].toString()],
|
|
294
|
-
});
|
|
295
|
-
let body;
|
|
296
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
297
|
-
return b.build();
|
|
298
|
-
};
|
|
299
|
-
exports.se_GetAuthorizationTokenCommand = se_GetAuthorizationTokenCommand;
|
|
300
|
-
const se_GetDomainPermissionsPolicyCommand = async (input, context) => {
|
|
301
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
302
|
-
const headers = {};
|
|
303
|
-
b.bp("/v1/domain/permissions/policy");
|
|
304
|
-
const query = (0, smithy_client_1.map)({
|
|
305
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
306
|
-
[_do]: [, input[_dO]],
|
|
307
|
-
});
|
|
308
|
-
let body;
|
|
309
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
310
|
-
return b.build();
|
|
311
|
-
};
|
|
312
|
-
exports.se_GetDomainPermissionsPolicyCommand = se_GetDomainPermissionsPolicyCommand;
|
|
313
|
-
const se_GetPackageVersionAssetCommand = async (input, context) => {
|
|
314
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
315
|
-
const headers = {};
|
|
316
|
-
b.bp("/v1/package/version/asset");
|
|
317
|
-
const query = (0, smithy_client_1.map)({
|
|
318
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
319
|
-
[_do]: [, input[_dO]],
|
|
320
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
321
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
322
|
-
[_n]: [, input[_n]],
|
|
323
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
324
|
-
[_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
|
|
325
|
-
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `asset`)],
|
|
326
|
-
[_re]: [, input[_pVR]],
|
|
327
|
-
});
|
|
328
|
-
let body;
|
|
329
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
330
|
-
return b.build();
|
|
331
|
-
};
|
|
332
|
-
exports.se_GetPackageVersionAssetCommand = se_GetPackageVersionAssetCommand;
|
|
333
|
-
const se_GetPackageVersionReadmeCommand = async (input, context) => {
|
|
334
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
335
|
-
const headers = {};
|
|
336
|
-
b.bp("/v1/package/version/readme");
|
|
337
|
-
const query = (0, smithy_client_1.map)({
|
|
338
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
339
|
-
[_do]: [, input[_dO]],
|
|
340
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
341
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
342
|
-
[_n]: [, input[_n]],
|
|
343
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
344
|
-
[_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
|
|
345
|
-
});
|
|
346
|
-
let body;
|
|
347
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
348
|
-
return b.build();
|
|
349
|
-
};
|
|
350
|
-
exports.se_GetPackageVersionReadmeCommand = se_GetPackageVersionReadmeCommand;
|
|
351
|
-
const se_GetRepositoryEndpointCommand = async (input, context) => {
|
|
352
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
353
|
-
const headers = {};
|
|
354
|
-
b.bp("/v1/repository/endpoint");
|
|
355
|
-
const query = (0, smithy_client_1.map)({
|
|
356
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
357
|
-
[_do]: [, input[_dO]],
|
|
358
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
359
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
360
|
-
});
|
|
361
|
-
let body;
|
|
362
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
363
|
-
return b.build();
|
|
364
|
-
};
|
|
365
|
-
exports.se_GetRepositoryEndpointCommand = se_GetRepositoryEndpointCommand;
|
|
366
|
-
const se_GetRepositoryPermissionsPolicyCommand = async (input, context) => {
|
|
367
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
368
|
-
const headers = {};
|
|
369
|
-
b.bp("/v1/repository/permissions/policy");
|
|
370
|
-
const query = (0, smithy_client_1.map)({
|
|
371
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
372
|
-
[_do]: [, input[_dO]],
|
|
373
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
374
|
-
});
|
|
375
|
-
let body;
|
|
376
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
377
|
-
return b.build();
|
|
378
|
-
};
|
|
379
|
-
exports.se_GetRepositoryPermissionsPolicyCommand = se_GetRepositoryPermissionsPolicyCommand;
|
|
380
|
-
const se_ListDomainsCommand = async (input, context) => {
|
|
381
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
382
|
-
const headers = {
|
|
383
|
-
"content-type": "application/json",
|
|
384
|
-
};
|
|
385
|
-
b.bp("/v1/domains");
|
|
386
|
-
let body;
|
|
387
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
388
|
-
maxResults: [],
|
|
389
|
-
nextToken: [],
|
|
390
|
-
}));
|
|
391
|
-
b.m("POST").h(headers).b(body);
|
|
392
|
-
return b.build();
|
|
393
|
-
};
|
|
394
|
-
exports.se_ListDomainsCommand = se_ListDomainsCommand;
|
|
395
|
-
const se_ListPackagesCommand = async (input, context) => {
|
|
396
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
397
|
-
const headers = {};
|
|
398
|
-
b.bp("/v1/packages");
|
|
399
|
-
const query = (0, smithy_client_1.map)({
|
|
400
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
401
|
-
[_do]: [, input[_dO]],
|
|
402
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
403
|
-
[_f]: [, input[_f]],
|
|
404
|
-
[_n]: [, input[_n]],
|
|
405
|
-
[_pp]: [, input[_pP]],
|
|
406
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
407
|
-
[_nt]: [, input[_nT]],
|
|
408
|
-
[_pu]: [, input[_pu]],
|
|
409
|
-
[_u]: [, input[_u]],
|
|
410
|
-
});
|
|
411
|
-
let body;
|
|
412
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
413
|
-
return b.build();
|
|
414
|
-
};
|
|
415
|
-
exports.se_ListPackagesCommand = se_ListPackagesCommand;
|
|
416
|
-
const se_ListPackageVersionAssetsCommand = async (input, context) => {
|
|
417
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
418
|
-
const headers = {};
|
|
419
|
-
b.bp("/v1/package/version/assets");
|
|
420
|
-
const query = (0, smithy_client_1.map)({
|
|
421
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
422
|
-
[_do]: [, input[_dO]],
|
|
423
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
424
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
425
|
-
[_n]: [, input[_n]],
|
|
426
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
427
|
-
[_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
|
|
428
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
429
|
-
[_nt]: [, input[_nT]],
|
|
430
|
-
});
|
|
431
|
-
let body;
|
|
432
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
433
|
-
return b.build();
|
|
434
|
-
};
|
|
435
|
-
exports.se_ListPackageVersionAssetsCommand = se_ListPackageVersionAssetsCommand;
|
|
436
|
-
const se_ListPackageVersionDependenciesCommand = async (input, context) => {
|
|
437
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
438
|
-
const headers = {};
|
|
439
|
-
b.bp("/v1/package/version/dependencies");
|
|
440
|
-
const query = (0, smithy_client_1.map)({
|
|
441
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
442
|
-
[_do]: [, input[_dO]],
|
|
443
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
444
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
445
|
-
[_n]: [, input[_n]],
|
|
446
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
447
|
-
[_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
|
|
448
|
-
[_nt]: [, input[_nT]],
|
|
449
|
-
});
|
|
450
|
-
let body;
|
|
451
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
452
|
-
return b.build();
|
|
453
|
-
};
|
|
454
|
-
exports.se_ListPackageVersionDependenciesCommand = se_ListPackageVersionDependenciesCommand;
|
|
455
|
-
const se_ListPackageVersionsCommand = async (input, context) => {
|
|
456
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
457
|
-
const headers = {};
|
|
458
|
-
b.bp("/v1/package/versions");
|
|
459
|
-
const query = (0, smithy_client_1.map)({
|
|
460
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
461
|
-
[_do]: [, input[_dO]],
|
|
462
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
463
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
464
|
-
[_n]: [, input[_n]],
|
|
465
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
466
|
-
[_s]: [, input[_s]],
|
|
467
|
-
[_sB]: [, input[_sB]],
|
|
468
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
469
|
-
[_nt]: [, input[_nT]],
|
|
470
|
-
[_oT]: [, input[_oT]],
|
|
471
|
-
});
|
|
472
|
-
let body;
|
|
473
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
474
|
-
return b.build();
|
|
475
|
-
};
|
|
476
|
-
exports.se_ListPackageVersionsCommand = se_ListPackageVersionsCommand;
|
|
477
|
-
const se_ListRepositoriesCommand = async (input, context) => {
|
|
478
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
479
|
-
const headers = {};
|
|
480
|
-
b.bp("/v1/repositories");
|
|
481
|
-
const query = (0, smithy_client_1.map)({
|
|
482
|
-
[_rp]: [, input[_rP]],
|
|
483
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
484
|
-
[_nt]: [, input[_nT]],
|
|
485
|
-
});
|
|
486
|
-
let body;
|
|
487
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
488
|
-
return b.build();
|
|
489
|
-
};
|
|
490
|
-
exports.se_ListRepositoriesCommand = se_ListRepositoriesCommand;
|
|
491
|
-
const se_ListRepositoriesInDomainCommand = async (input, context) => {
|
|
492
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
493
|
-
const headers = {};
|
|
494
|
-
b.bp("/v1/domain/repositories");
|
|
495
|
-
const query = (0, smithy_client_1.map)({
|
|
496
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
497
|
-
[_do]: [, input[_dO]],
|
|
498
|
-
[_aa]: [, input[_aA]],
|
|
499
|
-
[_rp]: [, input[_rP]],
|
|
500
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
501
|
-
[_nt]: [, input[_nT]],
|
|
502
|
-
});
|
|
503
|
-
let body;
|
|
504
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
505
|
-
return b.build();
|
|
506
|
-
};
|
|
507
|
-
exports.se_ListRepositoriesInDomainCommand = se_ListRepositoriesInDomainCommand;
|
|
508
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
509
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
510
|
-
const headers = {};
|
|
511
|
-
b.bp("/v1/tags");
|
|
512
|
-
const query = (0, smithy_client_1.map)({
|
|
513
|
-
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
514
|
-
});
|
|
515
|
-
let body;
|
|
516
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
517
|
-
return b.build();
|
|
518
|
-
};
|
|
519
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
520
|
-
const se_PublishPackageVersionCommand = async (input, context) => {
|
|
521
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
522
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
523
|
-
"content-type": "application/octet-stream",
|
|
524
|
-
[_xacs]: input[_aSHA],
|
|
525
|
-
});
|
|
526
|
-
b.bp("/v1/package/version/publish");
|
|
527
|
-
const query = (0, smithy_client_1.map)({
|
|
528
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
529
|
-
[_do]: [, input[_dO]],
|
|
530
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
531
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
532
|
-
[_n]: [, input[_n]],
|
|
533
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
534
|
-
[_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
|
|
535
|
-
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_aN], `assetName`)],
|
|
536
|
-
[_un]: [() => input.unfinished !== void 0, () => input[_un].toString()],
|
|
537
|
-
});
|
|
538
|
-
let body;
|
|
539
|
-
if (input.assetContent !== undefined) {
|
|
540
|
-
body = input.assetContent;
|
|
541
|
-
}
|
|
542
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
543
|
-
return b.build();
|
|
544
|
-
};
|
|
545
|
-
exports.se_PublishPackageVersionCommand = se_PublishPackageVersionCommand;
|
|
546
|
-
const se_PutDomainPermissionsPolicyCommand = async (input, context) => {
|
|
547
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
548
|
-
const headers = {
|
|
549
|
-
"content-type": "application/json",
|
|
550
|
-
};
|
|
551
|
-
b.bp("/v1/domain/permissions/policy");
|
|
552
|
-
let body;
|
|
553
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
554
|
-
domain: [],
|
|
555
|
-
domainOwner: [],
|
|
556
|
-
policyDocument: [],
|
|
557
|
-
policyRevision: [],
|
|
558
|
-
}));
|
|
559
|
-
b.m("PUT").h(headers).b(body);
|
|
560
|
-
return b.build();
|
|
561
|
-
};
|
|
562
|
-
exports.se_PutDomainPermissionsPolicyCommand = se_PutDomainPermissionsPolicyCommand;
|
|
563
|
-
const se_PutPackageOriginConfigurationCommand = async (input, context) => {
|
|
564
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
565
|
-
const headers = {
|
|
566
|
-
"content-type": "application/json",
|
|
567
|
-
};
|
|
568
|
-
b.bp("/v1/package");
|
|
569
|
-
const query = (0, smithy_client_1.map)({
|
|
570
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
571
|
-
[_do]: [, input[_dO]],
|
|
572
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
573
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
574
|
-
[_n]: [, input[_n]],
|
|
575
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
576
|
-
});
|
|
577
|
-
let body;
|
|
578
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
579
|
-
restrictions: (_) => (0, smithy_client_1._json)(_),
|
|
580
|
-
}));
|
|
581
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
582
|
-
return b.build();
|
|
583
|
-
};
|
|
584
|
-
exports.se_PutPackageOriginConfigurationCommand = se_PutPackageOriginConfigurationCommand;
|
|
585
|
-
const se_PutRepositoryPermissionsPolicyCommand = async (input, context) => {
|
|
586
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
587
|
-
const headers = {
|
|
588
|
-
"content-type": "application/json",
|
|
589
|
-
};
|
|
590
|
-
b.bp("/v1/repository/permissions/policy");
|
|
591
|
-
const query = (0, smithy_client_1.map)({
|
|
592
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
593
|
-
[_do]: [, input[_dO]],
|
|
594
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
595
|
-
});
|
|
596
|
-
let body;
|
|
597
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
598
|
-
policyDocument: [],
|
|
599
|
-
policyRevision: [],
|
|
600
|
-
}));
|
|
601
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
602
|
-
return b.build();
|
|
603
|
-
};
|
|
604
|
-
exports.se_PutRepositoryPermissionsPolicyCommand = se_PutRepositoryPermissionsPolicyCommand;
|
|
605
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
606
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
607
|
-
const headers = {
|
|
608
|
-
"content-type": "application/json",
|
|
609
|
-
};
|
|
610
|
-
b.bp("/v1/tag");
|
|
611
|
-
const query = (0, smithy_client_1.map)({
|
|
612
|
-
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
613
|
-
});
|
|
614
|
-
let body;
|
|
615
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
616
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
617
|
-
}));
|
|
618
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
619
|
-
return b.build();
|
|
620
|
-
};
|
|
621
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
622
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
623
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
624
|
-
const headers = {
|
|
625
|
-
"content-type": "application/json",
|
|
626
|
-
};
|
|
627
|
-
b.bp("/v1/untag");
|
|
628
|
-
const query = (0, smithy_client_1.map)({
|
|
629
|
-
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
630
|
-
});
|
|
631
|
-
let body;
|
|
632
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
633
|
-
tagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
634
|
-
}));
|
|
635
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
636
|
-
return b.build();
|
|
637
|
-
};
|
|
638
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
639
|
-
const se_UpdatePackageVersionsStatusCommand = async (input, context) => {
|
|
640
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
641
|
-
const headers = {
|
|
642
|
-
"content-type": "application/json",
|
|
643
|
-
};
|
|
644
|
-
b.bp("/v1/package/versions/update_status");
|
|
645
|
-
const query = (0, smithy_client_1.map)({
|
|
646
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
647
|
-
[_do]: [, input[_dO]],
|
|
648
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
649
|
-
[_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
|
|
650
|
-
[_n]: [, input[_n]],
|
|
651
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
|
|
652
|
-
});
|
|
653
|
-
let body;
|
|
654
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
655
|
-
expectedStatus: [],
|
|
656
|
-
targetStatus: [],
|
|
657
|
-
versionRevisions: (_) => (0, smithy_client_1._json)(_),
|
|
658
|
-
versions: (_) => (0, smithy_client_1._json)(_),
|
|
659
|
-
}));
|
|
660
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
661
|
-
return b.build();
|
|
662
|
-
};
|
|
663
|
-
exports.se_UpdatePackageVersionsStatusCommand = se_UpdatePackageVersionsStatusCommand;
|
|
664
|
-
const se_UpdateRepositoryCommand = async (input, context) => {
|
|
665
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
666
|
-
const headers = {
|
|
667
|
-
"content-type": "application/json",
|
|
668
|
-
};
|
|
669
|
-
b.bp("/v1/repository");
|
|
670
|
-
const query = (0, smithy_client_1.map)({
|
|
671
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
|
|
672
|
-
[_do]: [, input[_dO]],
|
|
673
|
-
[_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
|
|
674
|
-
});
|
|
675
|
-
let body;
|
|
676
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
677
|
-
description: [],
|
|
678
|
-
upstreams: (_) => (0, smithy_client_1._json)(_),
|
|
679
|
-
}));
|
|
680
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
681
|
-
return b.build();
|
|
682
|
-
};
|
|
683
|
-
exports.se_UpdateRepositoryCommand = se_UpdateRepositoryCommand;
|
|
684
|
-
const de_AssociateExternalConnectionCommand = async (output, context) => {
|
|
685
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
686
|
-
return de_AssociateExternalConnectionCommandError(output, context);
|
|
687
|
-
}
|
|
688
|
-
const contents = (0, smithy_client_1.map)({
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
});
|
|
691
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
692
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
693
|
-
repository: (_) => de_RepositoryDescription(_, context),
|
|
694
|
-
});
|
|
695
|
-
Object.assign(contents, doc);
|
|
696
|
-
return contents;
|
|
697
|
-
};
|
|
698
|
-
exports.de_AssociateExternalConnectionCommand = de_AssociateExternalConnectionCommand;
|
|
699
|
-
const de_AssociateExternalConnectionCommandError = async (output, context) => {
|
|
700
|
-
const parsedOutput = {
|
|
701
|
-
...output,
|
|
702
|
-
body: await parseErrorBody(output.body, context),
|
|
703
|
-
};
|
|
704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
|
-
switch (errorCode) {
|
|
706
|
-
case "AccessDeniedException":
|
|
707
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
708
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ConflictException":
|
|
710
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
711
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
712
|
-
case "InternalServerException":
|
|
713
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
714
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ResourceNotFoundException":
|
|
716
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
717
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ServiceQuotaExceededException":
|
|
719
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
720
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ThrottlingException":
|
|
722
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
723
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ValidationException":
|
|
725
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
726
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
727
|
-
default:
|
|
728
|
-
const parsedBody = parsedOutput.body;
|
|
729
|
-
return throwDefaultError({
|
|
730
|
-
output,
|
|
731
|
-
parsedBody,
|
|
732
|
-
errorCode,
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
const de_CopyPackageVersionsCommand = async (output, context) => {
|
|
737
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
-
return de_CopyPackageVersionsCommandError(output, context);
|
|
739
|
-
}
|
|
740
|
-
const contents = (0, smithy_client_1.map)({
|
|
741
|
-
$metadata: deserializeMetadata(output),
|
|
742
|
-
});
|
|
743
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
744
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
745
|
-
failedVersions: smithy_client_1._json,
|
|
746
|
-
successfulVersions: smithy_client_1._json,
|
|
747
|
-
});
|
|
748
|
-
Object.assign(contents, doc);
|
|
749
|
-
return contents;
|
|
750
|
-
};
|
|
751
|
-
exports.de_CopyPackageVersionsCommand = de_CopyPackageVersionsCommand;
|
|
752
|
-
const de_CopyPackageVersionsCommandError = async (output, context) => {
|
|
753
|
-
const parsedOutput = {
|
|
754
|
-
...output,
|
|
755
|
-
body: await parseErrorBody(output.body, context),
|
|
756
|
-
};
|
|
757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
|
-
switch (errorCode) {
|
|
759
|
-
case "AccessDeniedException":
|
|
760
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
761
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ConflictException":
|
|
763
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
764
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
765
|
-
case "InternalServerException":
|
|
766
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
767
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
768
|
-
case "ResourceNotFoundException":
|
|
769
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
770
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
771
|
-
case "ServiceQuotaExceededException":
|
|
772
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
773
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ThrottlingException":
|
|
775
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
776
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ValidationException":
|
|
778
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
779
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode,
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
const de_CreateDomainCommand = async (output, context) => {
|
|
790
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
-
return de_CreateDomainCommandError(output, context);
|
|
792
|
-
}
|
|
793
|
-
const contents = (0, smithy_client_1.map)({
|
|
794
|
-
$metadata: deserializeMetadata(output),
|
|
795
|
-
});
|
|
796
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
797
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
798
|
-
domain: (_) => de_DomainDescription(_, context),
|
|
799
|
-
});
|
|
800
|
-
Object.assign(contents, doc);
|
|
801
|
-
return contents;
|
|
802
|
-
};
|
|
803
|
-
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
804
|
-
const de_CreateDomainCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "AccessDeniedException":
|
|
812
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
813
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ConflictException":
|
|
815
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
816
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
817
|
-
case "InternalServerException":
|
|
818
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
819
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ResourceNotFoundException":
|
|
821
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
822
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ServiceQuotaExceededException":
|
|
824
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
825
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ThrottlingException":
|
|
827
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
828
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ValidationException":
|
|
830
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
831
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
832
|
-
default:
|
|
833
|
-
const parsedBody = parsedOutput.body;
|
|
834
|
-
return throwDefaultError({
|
|
835
|
-
output,
|
|
836
|
-
parsedBody,
|
|
837
|
-
errorCode,
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
const de_CreateRepositoryCommand = async (output, context) => {
|
|
842
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
|
-
return de_CreateRepositoryCommandError(output, context);
|
|
844
|
-
}
|
|
845
|
-
const contents = (0, smithy_client_1.map)({
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
});
|
|
848
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
849
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
850
|
-
repository: (_) => de_RepositoryDescription(_, context),
|
|
851
|
-
});
|
|
852
|
-
Object.assign(contents, doc);
|
|
853
|
-
return contents;
|
|
854
|
-
};
|
|
855
|
-
exports.de_CreateRepositoryCommand = de_CreateRepositoryCommand;
|
|
856
|
-
const de_CreateRepositoryCommandError = async (output, context) => {
|
|
857
|
-
const parsedOutput = {
|
|
858
|
-
...output,
|
|
859
|
-
body: await parseErrorBody(output.body, context),
|
|
860
|
-
};
|
|
861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
-
switch (errorCode) {
|
|
863
|
-
case "AccessDeniedException":
|
|
864
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
865
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ConflictException":
|
|
867
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
868
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
869
|
-
case "InternalServerException":
|
|
870
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
871
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
872
|
-
case "ResourceNotFoundException":
|
|
873
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
874
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ServiceQuotaExceededException":
|
|
876
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
877
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ThrottlingException":
|
|
879
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
880
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ValidationException":
|
|
882
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
883
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
884
|
-
default:
|
|
885
|
-
const parsedBody = parsedOutput.body;
|
|
886
|
-
return throwDefaultError({
|
|
887
|
-
output,
|
|
888
|
-
parsedBody,
|
|
889
|
-
errorCode,
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
const de_DeleteDomainCommand = async (output, context) => {
|
|
894
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
895
|
-
return de_DeleteDomainCommandError(output, context);
|
|
896
|
-
}
|
|
897
|
-
const contents = (0, smithy_client_1.map)({
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
});
|
|
900
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
901
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
902
|
-
domain: (_) => de_DomainDescription(_, context),
|
|
903
|
-
});
|
|
904
|
-
Object.assign(contents, doc);
|
|
905
|
-
return contents;
|
|
906
|
-
};
|
|
907
|
-
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
908
|
-
const de_DeleteDomainCommandError = async (output, context) => {
|
|
909
|
-
const parsedOutput = {
|
|
910
|
-
...output,
|
|
911
|
-
body: await parseErrorBody(output.body, context),
|
|
912
|
-
};
|
|
913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
-
switch (errorCode) {
|
|
915
|
-
case "AccessDeniedException":
|
|
916
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
917
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ConflictException":
|
|
919
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
920
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
921
|
-
case "InternalServerException":
|
|
922
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
923
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
924
|
-
case "ThrottlingException":
|
|
925
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
926
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
927
|
-
case "ValidationException":
|
|
928
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
929
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
930
|
-
default:
|
|
931
|
-
const parsedBody = parsedOutput.body;
|
|
932
|
-
return throwDefaultError({
|
|
933
|
-
output,
|
|
934
|
-
parsedBody,
|
|
935
|
-
errorCode,
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
};
|
|
939
|
-
const de_DeleteDomainPermissionsPolicyCommand = async (output, context) => {
|
|
940
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
941
|
-
return de_DeleteDomainPermissionsPolicyCommandError(output, context);
|
|
942
|
-
}
|
|
943
|
-
const contents = (0, smithy_client_1.map)({
|
|
944
|
-
$metadata: deserializeMetadata(output),
|
|
945
|
-
});
|
|
946
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
947
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
948
|
-
policy: smithy_client_1._json,
|
|
949
|
-
});
|
|
950
|
-
Object.assign(contents, doc);
|
|
951
|
-
return contents;
|
|
952
|
-
};
|
|
953
|
-
exports.de_DeleteDomainPermissionsPolicyCommand = de_DeleteDomainPermissionsPolicyCommand;
|
|
954
|
-
const de_DeleteDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
955
|
-
const parsedOutput = {
|
|
956
|
-
...output,
|
|
957
|
-
body: await parseErrorBody(output.body, context),
|
|
958
|
-
};
|
|
959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
-
switch (errorCode) {
|
|
961
|
-
case "AccessDeniedException":
|
|
962
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
963
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ConflictException":
|
|
965
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
966
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
967
|
-
case "InternalServerException":
|
|
968
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
969
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ResourceNotFoundException":
|
|
971
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
972
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ThrottlingException":
|
|
974
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
975
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ValidationException":
|
|
977
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
978
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody,
|
|
984
|
-
errorCode,
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
const de_DeletePackageCommand = async (output, context) => {
|
|
989
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
990
|
-
return de_DeletePackageCommandError(output, context);
|
|
991
|
-
}
|
|
992
|
-
const contents = (0, smithy_client_1.map)({
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
});
|
|
995
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
996
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
997
|
-
deletedPackage: smithy_client_1._json,
|
|
998
|
-
});
|
|
999
|
-
Object.assign(contents, doc);
|
|
1000
|
-
return contents;
|
|
1001
|
-
};
|
|
1002
|
-
exports.de_DeletePackageCommand = de_DeletePackageCommand;
|
|
1003
|
-
const de_DeletePackageCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "AccessDeniedException":
|
|
1011
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1012
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ConflictException":
|
|
1014
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1015
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerException":
|
|
1017
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ResourceNotFoundException":
|
|
1020
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1021
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ThrottlingException":
|
|
1023
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1024
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ValidationException":
|
|
1026
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1027
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
const de_DeletePackageVersionsCommand = async (output, context) => {
|
|
1038
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return de_DeletePackageVersionsCommandError(output, context);
|
|
1040
|
-
}
|
|
1041
|
-
const contents = (0, smithy_client_1.map)({
|
|
1042
|
-
$metadata: deserializeMetadata(output),
|
|
1043
|
-
});
|
|
1044
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1045
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1046
|
-
failedVersions: smithy_client_1._json,
|
|
1047
|
-
successfulVersions: smithy_client_1._json,
|
|
1048
|
-
});
|
|
1049
|
-
Object.assign(contents, doc);
|
|
1050
|
-
return contents;
|
|
1051
|
-
};
|
|
1052
|
-
exports.de_DeletePackageVersionsCommand = de_DeletePackageVersionsCommand;
|
|
1053
|
-
const de_DeletePackageVersionsCommandError = async (output, context) => {
|
|
1054
|
-
const parsedOutput = {
|
|
1055
|
-
...output,
|
|
1056
|
-
body: await parseErrorBody(output.body, context),
|
|
1057
|
-
};
|
|
1058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
-
switch (errorCode) {
|
|
1060
|
-
case "AccessDeniedException":
|
|
1061
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ConflictException":
|
|
1064
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1065
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "InternalServerException":
|
|
1067
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1068
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ResourceNotFoundException":
|
|
1070
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ThrottlingException":
|
|
1073
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1074
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "ValidationException":
|
|
1076
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1077
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1078
|
-
default:
|
|
1079
|
-
const parsedBody = parsedOutput.body;
|
|
1080
|
-
return throwDefaultError({
|
|
1081
|
-
output,
|
|
1082
|
-
parsedBody,
|
|
1083
|
-
errorCode,
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
|
-
const de_DeleteRepositoryCommand = async (output, context) => {
|
|
1088
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
-
return de_DeleteRepositoryCommandError(output, context);
|
|
1090
|
-
}
|
|
1091
|
-
const contents = (0, smithy_client_1.map)({
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
});
|
|
1094
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1095
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1096
|
-
repository: (_) => de_RepositoryDescription(_, context),
|
|
1097
|
-
});
|
|
1098
|
-
Object.assign(contents, doc);
|
|
1099
|
-
return contents;
|
|
1100
|
-
};
|
|
1101
|
-
exports.de_DeleteRepositoryCommand = de_DeleteRepositoryCommand;
|
|
1102
|
-
const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "AccessDeniedException":
|
|
1110
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1111
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ConflictException":
|
|
1113
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1114
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "InternalServerException":
|
|
1116
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1117
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ResourceNotFoundException":
|
|
1119
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1120
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ThrottlingException":
|
|
1122
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1123
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ValidationException":
|
|
1125
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1126
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1127
|
-
default:
|
|
1128
|
-
const parsedBody = parsedOutput.body;
|
|
1129
|
-
return throwDefaultError({
|
|
1130
|
-
output,
|
|
1131
|
-
parsedBody,
|
|
1132
|
-
errorCode,
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
|
-
const de_DeleteRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
1137
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1138
|
-
return de_DeleteRepositoryPermissionsPolicyCommandError(output, context);
|
|
1139
|
-
}
|
|
1140
|
-
const contents = (0, smithy_client_1.map)({
|
|
1141
|
-
$metadata: deserializeMetadata(output),
|
|
1142
|
-
});
|
|
1143
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1144
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1145
|
-
policy: smithy_client_1._json,
|
|
1146
|
-
});
|
|
1147
|
-
Object.assign(contents, doc);
|
|
1148
|
-
return contents;
|
|
1149
|
-
};
|
|
1150
|
-
exports.de_DeleteRepositoryPermissionsPolicyCommand = de_DeleteRepositoryPermissionsPolicyCommand;
|
|
1151
|
-
const de_DeleteRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
1152
|
-
const parsedOutput = {
|
|
1153
|
-
...output,
|
|
1154
|
-
body: await parseErrorBody(output.body, context),
|
|
1155
|
-
};
|
|
1156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
-
switch (errorCode) {
|
|
1158
|
-
case "AccessDeniedException":
|
|
1159
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1160
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ConflictException":
|
|
1162
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1163
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "InternalServerException":
|
|
1165
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ResourceNotFoundException":
|
|
1168
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1169
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ThrottlingException":
|
|
1171
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1172
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ValidationException":
|
|
1174
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1175
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1176
|
-
default:
|
|
1177
|
-
const parsedBody = parsedOutput.body;
|
|
1178
|
-
return throwDefaultError({
|
|
1179
|
-
output,
|
|
1180
|
-
parsedBody,
|
|
1181
|
-
errorCode,
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
const de_DescribeDomainCommand = async (output, context) => {
|
|
1186
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1187
|
-
return de_DescribeDomainCommandError(output, context);
|
|
1188
|
-
}
|
|
1189
|
-
const contents = (0, smithy_client_1.map)({
|
|
1190
|
-
$metadata: deserializeMetadata(output),
|
|
1191
|
-
});
|
|
1192
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1193
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1194
|
-
domain: (_) => de_DomainDescription(_, context),
|
|
1195
|
-
});
|
|
1196
|
-
Object.assign(contents, doc);
|
|
1197
|
-
return contents;
|
|
1198
|
-
};
|
|
1199
|
-
exports.de_DescribeDomainCommand = de_DescribeDomainCommand;
|
|
1200
|
-
const de_DescribeDomainCommandError = async (output, context) => {
|
|
1201
|
-
const parsedOutput = {
|
|
1202
|
-
...output,
|
|
1203
|
-
body: await parseErrorBody(output.body, context),
|
|
1204
|
-
};
|
|
1205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
-
switch (errorCode) {
|
|
1207
|
-
case "AccessDeniedException":
|
|
1208
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1209
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "InternalServerException":
|
|
1211
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1212
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ResourceNotFoundException":
|
|
1214
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ThrottlingException":
|
|
1217
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1218
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ValidationException":
|
|
1220
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1222
|
-
default:
|
|
1223
|
-
const parsedBody = parsedOutput.body;
|
|
1224
|
-
return throwDefaultError({
|
|
1225
|
-
output,
|
|
1226
|
-
parsedBody,
|
|
1227
|
-
errorCode,
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
};
|
|
1231
|
-
const de_DescribePackageCommand = async (output, context) => {
|
|
1232
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1233
|
-
return de_DescribePackageCommandError(output, context);
|
|
1234
|
-
}
|
|
1235
|
-
const contents = (0, smithy_client_1.map)({
|
|
1236
|
-
$metadata: deserializeMetadata(output),
|
|
1237
|
-
});
|
|
1238
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1239
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1240
|
-
package: smithy_client_1._json,
|
|
1241
|
-
});
|
|
1242
|
-
Object.assign(contents, doc);
|
|
1243
|
-
return contents;
|
|
1244
|
-
};
|
|
1245
|
-
exports.de_DescribePackageCommand = de_DescribePackageCommand;
|
|
1246
|
-
const de_DescribePackageCommandError = async (output, context) => {
|
|
1247
|
-
const parsedOutput = {
|
|
1248
|
-
...output,
|
|
1249
|
-
body: await parseErrorBody(output.body, context),
|
|
1250
|
-
};
|
|
1251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
|
-
switch (errorCode) {
|
|
1253
|
-
case "AccessDeniedException":
|
|
1254
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1255
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "InternalServerException":
|
|
1257
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1258
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "ResourceNotFoundException":
|
|
1260
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1261
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "ThrottlingException":
|
|
1263
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1264
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ValidationException":
|
|
1266
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1267
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1268
|
-
default:
|
|
1269
|
-
const parsedBody = parsedOutput.body;
|
|
1270
|
-
return throwDefaultError({
|
|
1271
|
-
output,
|
|
1272
|
-
parsedBody,
|
|
1273
|
-
errorCode,
|
|
1274
|
-
});
|
|
1275
|
-
}
|
|
1276
|
-
};
|
|
1277
|
-
const de_DescribePackageVersionCommand = async (output, context) => {
|
|
1278
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1279
|
-
return de_DescribePackageVersionCommandError(output, context);
|
|
1280
|
-
}
|
|
1281
|
-
const contents = (0, smithy_client_1.map)({
|
|
1282
|
-
$metadata: deserializeMetadata(output),
|
|
1283
|
-
});
|
|
1284
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1285
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1286
|
-
packageVersion: (_) => de_PackageVersionDescription(_, context),
|
|
1287
|
-
});
|
|
1288
|
-
Object.assign(contents, doc);
|
|
1289
|
-
return contents;
|
|
1290
|
-
};
|
|
1291
|
-
exports.de_DescribePackageVersionCommand = de_DescribePackageVersionCommand;
|
|
1292
|
-
const de_DescribePackageVersionCommandError = async (output, context) => {
|
|
1293
|
-
const parsedOutput = {
|
|
1294
|
-
...output,
|
|
1295
|
-
body: await parseErrorBody(output.body, context),
|
|
1296
|
-
};
|
|
1297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
-
switch (errorCode) {
|
|
1299
|
-
case "AccessDeniedException":
|
|
1300
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1301
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ConflictException":
|
|
1303
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1304
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "InternalServerException":
|
|
1306
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1307
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ResourceNotFoundException":
|
|
1309
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ThrottlingException":
|
|
1312
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ValidationException":
|
|
1315
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1317
|
-
default:
|
|
1318
|
-
const parsedBody = parsedOutput.body;
|
|
1319
|
-
return throwDefaultError({
|
|
1320
|
-
output,
|
|
1321
|
-
parsedBody,
|
|
1322
|
-
errorCode,
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1326
|
-
const de_DescribeRepositoryCommand = async (output, context) => {
|
|
1327
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1328
|
-
return de_DescribeRepositoryCommandError(output, context);
|
|
1329
|
-
}
|
|
1330
|
-
const contents = (0, smithy_client_1.map)({
|
|
1331
|
-
$metadata: deserializeMetadata(output),
|
|
1332
|
-
});
|
|
1333
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1334
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1335
|
-
repository: (_) => de_RepositoryDescription(_, context),
|
|
1336
|
-
});
|
|
1337
|
-
Object.assign(contents, doc);
|
|
1338
|
-
return contents;
|
|
1339
|
-
};
|
|
1340
|
-
exports.de_DescribeRepositoryCommand = de_DescribeRepositoryCommand;
|
|
1341
|
-
const de_DescribeRepositoryCommandError = async (output, context) => {
|
|
1342
|
-
const parsedOutput = {
|
|
1343
|
-
...output,
|
|
1344
|
-
body: await parseErrorBody(output.body, context),
|
|
1345
|
-
};
|
|
1346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
-
switch (errorCode) {
|
|
1348
|
-
case "AccessDeniedException":
|
|
1349
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "InternalServerException":
|
|
1352
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ResourceNotFoundException":
|
|
1355
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ThrottlingException":
|
|
1358
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1359
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "ValidationException":
|
|
1361
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1362
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1363
|
-
default:
|
|
1364
|
-
const parsedBody = parsedOutput.body;
|
|
1365
|
-
return throwDefaultError({
|
|
1366
|
-
output,
|
|
1367
|
-
parsedBody,
|
|
1368
|
-
errorCode,
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
};
|
|
1372
|
-
const de_DisassociateExternalConnectionCommand = async (output, context) => {
|
|
1373
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
|
-
return de_DisassociateExternalConnectionCommandError(output, context);
|
|
1375
|
-
}
|
|
1376
|
-
const contents = (0, smithy_client_1.map)({
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
});
|
|
1379
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1380
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1381
|
-
repository: (_) => de_RepositoryDescription(_, context),
|
|
1382
|
-
});
|
|
1383
|
-
Object.assign(contents, doc);
|
|
1384
|
-
return contents;
|
|
1385
|
-
};
|
|
1386
|
-
exports.de_DisassociateExternalConnectionCommand = de_DisassociateExternalConnectionCommand;
|
|
1387
|
-
const de_DisassociateExternalConnectionCommandError = async (output, context) => {
|
|
1388
|
-
const parsedOutput = {
|
|
1389
|
-
...output,
|
|
1390
|
-
body: await parseErrorBody(output.body, context),
|
|
1391
|
-
};
|
|
1392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1393
|
-
switch (errorCode) {
|
|
1394
|
-
case "AccessDeniedException":
|
|
1395
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1396
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "ConflictException":
|
|
1398
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1399
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "InternalServerException":
|
|
1401
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1402
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ResourceNotFoundException":
|
|
1404
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1405
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ServiceQuotaExceededException":
|
|
1407
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1408
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "ThrottlingException":
|
|
1410
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1411
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "ValidationException":
|
|
1413
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1414
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1415
|
-
default:
|
|
1416
|
-
const parsedBody = parsedOutput.body;
|
|
1417
|
-
return throwDefaultError({
|
|
1418
|
-
output,
|
|
1419
|
-
parsedBody,
|
|
1420
|
-
errorCode,
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
};
|
|
1424
|
-
const de_DisposePackageVersionsCommand = async (output, context) => {
|
|
1425
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
|
-
return de_DisposePackageVersionsCommandError(output, context);
|
|
1427
|
-
}
|
|
1428
|
-
const contents = (0, smithy_client_1.map)({
|
|
1429
|
-
$metadata: deserializeMetadata(output),
|
|
1430
|
-
});
|
|
1431
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1432
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1433
|
-
failedVersions: smithy_client_1._json,
|
|
1434
|
-
successfulVersions: smithy_client_1._json,
|
|
1435
|
-
});
|
|
1436
|
-
Object.assign(contents, doc);
|
|
1437
|
-
return contents;
|
|
1438
|
-
};
|
|
1439
|
-
exports.de_DisposePackageVersionsCommand = de_DisposePackageVersionsCommand;
|
|
1440
|
-
const de_DisposePackageVersionsCommandError = async (output, context) => {
|
|
1441
|
-
const parsedOutput = {
|
|
1442
|
-
...output,
|
|
1443
|
-
body: await parseErrorBody(output.body, context),
|
|
1444
|
-
};
|
|
1445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
|
-
switch (errorCode) {
|
|
1447
|
-
case "AccessDeniedException":
|
|
1448
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1449
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ConflictException":
|
|
1451
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1452
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "InternalServerException":
|
|
1454
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1455
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ResourceNotFoundException":
|
|
1457
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1458
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ThrottlingException":
|
|
1460
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1461
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ValidationException":
|
|
1463
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1464
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1465
|
-
default:
|
|
1466
|
-
const parsedBody = parsedOutput.body;
|
|
1467
|
-
return throwDefaultError({
|
|
1468
|
-
output,
|
|
1469
|
-
parsedBody,
|
|
1470
|
-
errorCode,
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
};
|
|
1474
|
-
const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
1475
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1476
|
-
return de_GetAuthorizationTokenCommandError(output, context);
|
|
1477
|
-
}
|
|
1478
|
-
const contents = (0, smithy_client_1.map)({
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1480
|
-
});
|
|
1481
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1482
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1483
|
-
authorizationToken: smithy_client_1.expectString,
|
|
1484
|
-
expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1485
|
-
});
|
|
1486
|
-
Object.assign(contents, doc);
|
|
1487
|
-
return contents;
|
|
1488
|
-
};
|
|
1489
|
-
exports.de_GetAuthorizationTokenCommand = de_GetAuthorizationTokenCommand;
|
|
1490
|
-
const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
1491
|
-
const parsedOutput = {
|
|
1492
|
-
...output,
|
|
1493
|
-
body: await parseErrorBody(output.body, context),
|
|
1494
|
-
};
|
|
1495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
|
-
switch (errorCode) {
|
|
1497
|
-
case "AccessDeniedException":
|
|
1498
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1499
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "InternalServerException":
|
|
1501
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1502
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ResourceNotFoundException":
|
|
1504
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1505
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ThrottlingException":
|
|
1507
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1508
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "ValidationException":
|
|
1510
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1511
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1512
|
-
default:
|
|
1513
|
-
const parsedBody = parsedOutput.body;
|
|
1514
|
-
return throwDefaultError({
|
|
1515
|
-
output,
|
|
1516
|
-
parsedBody,
|
|
1517
|
-
errorCode,
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
|
-
const de_GetDomainPermissionsPolicyCommand = async (output, context) => {
|
|
1522
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1523
|
-
return de_GetDomainPermissionsPolicyCommandError(output, context);
|
|
1524
|
-
}
|
|
1525
|
-
const contents = (0, smithy_client_1.map)({
|
|
1526
|
-
$metadata: deserializeMetadata(output),
|
|
1527
|
-
});
|
|
1528
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1529
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1530
|
-
policy: smithy_client_1._json,
|
|
1531
|
-
});
|
|
1532
|
-
Object.assign(contents, doc);
|
|
1533
|
-
return contents;
|
|
1534
|
-
};
|
|
1535
|
-
exports.de_GetDomainPermissionsPolicyCommand = de_GetDomainPermissionsPolicyCommand;
|
|
1536
|
-
const de_GetDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
1537
|
-
const parsedOutput = {
|
|
1538
|
-
...output,
|
|
1539
|
-
body: await parseErrorBody(output.body, context),
|
|
1540
|
-
};
|
|
1541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
|
-
switch (errorCode) {
|
|
1543
|
-
case "AccessDeniedException":
|
|
1544
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1545
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "InternalServerException":
|
|
1547
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ResourceNotFoundException":
|
|
1550
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ThrottlingException":
|
|
1553
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1554
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ValidationException":
|
|
1556
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1557
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1558
|
-
default:
|
|
1559
|
-
const parsedBody = parsedOutput.body;
|
|
1560
|
-
return throwDefaultError({
|
|
1561
|
-
output,
|
|
1562
|
-
parsedBody,
|
|
1563
|
-
errorCode,
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
};
|
|
1567
|
-
const de_GetPackageVersionAssetCommand = async (output, context) => {
|
|
1568
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1569
|
-
return de_GetPackageVersionAssetCommandError(output, context);
|
|
1570
|
-
}
|
|
1571
|
-
const contents = (0, smithy_client_1.map)({
|
|
1572
|
-
$metadata: deserializeMetadata(output),
|
|
1573
|
-
[_aN]: [, output.headers[_xa]],
|
|
1574
|
-
[_pV]: [, output.headers[_xp]],
|
|
1575
|
-
[_pVR]: [, output.headers[_xp_]],
|
|
1576
|
-
});
|
|
1577
|
-
const data = output.body;
|
|
1578
|
-
context.sdkStreamMixin(data);
|
|
1579
|
-
contents.asset = data;
|
|
1580
|
-
return contents;
|
|
1581
|
-
};
|
|
1582
|
-
exports.de_GetPackageVersionAssetCommand = de_GetPackageVersionAssetCommand;
|
|
1583
|
-
const de_GetPackageVersionAssetCommandError = async (output, context) => {
|
|
1584
|
-
const parsedOutput = {
|
|
1585
|
-
...output,
|
|
1586
|
-
body: await parseErrorBody(output.body, context),
|
|
1587
|
-
};
|
|
1588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
-
switch (errorCode) {
|
|
1590
|
-
case "AccessDeniedException":
|
|
1591
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1592
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "ConflictException":
|
|
1594
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
1595
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1596
|
-
case "InternalServerException":
|
|
1597
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1598
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1599
|
-
case "ResourceNotFoundException":
|
|
1600
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1601
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1602
|
-
case "ThrottlingException":
|
|
1603
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1604
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "ValidationException":
|
|
1606
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1607
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1608
|
-
default:
|
|
1609
|
-
const parsedBody = parsedOutput.body;
|
|
1610
|
-
return throwDefaultError({
|
|
1611
|
-
output,
|
|
1612
|
-
parsedBody,
|
|
1613
|
-
errorCode,
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
};
|
|
1617
|
-
const de_GetPackageVersionReadmeCommand = async (output, context) => {
|
|
1618
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1619
|
-
return de_GetPackageVersionReadmeCommandError(output, context);
|
|
1620
|
-
}
|
|
1621
|
-
const contents = (0, smithy_client_1.map)({
|
|
1622
|
-
$metadata: deserializeMetadata(output),
|
|
1623
|
-
});
|
|
1624
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1625
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1626
|
-
format: smithy_client_1.expectString,
|
|
1627
|
-
namespace: smithy_client_1.expectString,
|
|
1628
|
-
package: smithy_client_1.expectString,
|
|
1629
|
-
readme: smithy_client_1.expectString,
|
|
1630
|
-
version: smithy_client_1.expectString,
|
|
1631
|
-
versionRevision: smithy_client_1.expectString,
|
|
1632
|
-
});
|
|
1633
|
-
Object.assign(contents, doc);
|
|
1634
|
-
return contents;
|
|
1635
|
-
};
|
|
1636
|
-
exports.de_GetPackageVersionReadmeCommand = de_GetPackageVersionReadmeCommand;
|
|
1637
|
-
const de_GetPackageVersionReadmeCommandError = async (output, context) => {
|
|
1638
|
-
const parsedOutput = {
|
|
1639
|
-
...output,
|
|
1640
|
-
body: await parseErrorBody(output.body, context),
|
|
1641
|
-
};
|
|
1642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
|
-
switch (errorCode) {
|
|
1644
|
-
case "AccessDeniedException":
|
|
1645
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1646
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "InternalServerException":
|
|
1648
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1649
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "ResourceNotFoundException":
|
|
1651
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1652
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "ThrottlingException":
|
|
1654
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ValidationException":
|
|
1657
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1658
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1659
|
-
default:
|
|
1660
|
-
const parsedBody = parsedOutput.body;
|
|
1661
|
-
return throwDefaultError({
|
|
1662
|
-
output,
|
|
1663
|
-
parsedBody,
|
|
1664
|
-
errorCode,
|
|
1665
|
-
});
|
|
1666
|
-
}
|
|
1667
|
-
};
|
|
1668
|
-
const de_GetRepositoryEndpointCommand = async (output, context) => {
|
|
1669
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1670
|
-
return de_GetRepositoryEndpointCommandError(output, context);
|
|
1671
|
-
}
|
|
1672
|
-
const contents = (0, smithy_client_1.map)({
|
|
1673
|
-
$metadata: deserializeMetadata(output),
|
|
1674
|
-
});
|
|
1675
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1676
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1677
|
-
repositoryEndpoint: smithy_client_1.expectString,
|
|
1678
|
-
});
|
|
1679
|
-
Object.assign(contents, doc);
|
|
1680
|
-
return contents;
|
|
1681
|
-
};
|
|
1682
|
-
exports.de_GetRepositoryEndpointCommand = de_GetRepositoryEndpointCommand;
|
|
1683
|
-
const de_GetRepositoryEndpointCommandError = async (output, context) => {
|
|
1684
|
-
const parsedOutput = {
|
|
1685
|
-
...output,
|
|
1686
|
-
body: await parseErrorBody(output.body, context),
|
|
1687
|
-
};
|
|
1688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
|
-
switch (errorCode) {
|
|
1690
|
-
case "AccessDeniedException":
|
|
1691
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1692
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "InternalServerException":
|
|
1694
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1695
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "ResourceNotFoundException":
|
|
1697
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1698
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "ThrottlingException":
|
|
1700
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1701
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "ValidationException":
|
|
1703
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1704
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1705
|
-
default:
|
|
1706
|
-
const parsedBody = parsedOutput.body;
|
|
1707
|
-
return throwDefaultError({
|
|
1708
|
-
output,
|
|
1709
|
-
parsedBody,
|
|
1710
|
-
errorCode,
|
|
1711
|
-
});
|
|
1712
|
-
}
|
|
1713
|
-
};
|
|
1714
|
-
const de_GetRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
1715
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1716
|
-
return de_GetRepositoryPermissionsPolicyCommandError(output, context);
|
|
1717
|
-
}
|
|
1718
|
-
const contents = (0, smithy_client_1.map)({
|
|
1719
|
-
$metadata: deserializeMetadata(output),
|
|
1720
|
-
});
|
|
1721
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1722
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1723
|
-
policy: smithy_client_1._json,
|
|
1724
|
-
});
|
|
1725
|
-
Object.assign(contents, doc);
|
|
1726
|
-
return contents;
|
|
1727
|
-
};
|
|
1728
|
-
exports.de_GetRepositoryPermissionsPolicyCommand = de_GetRepositoryPermissionsPolicyCommand;
|
|
1729
|
-
const de_GetRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
1730
|
-
const parsedOutput = {
|
|
1731
|
-
...output,
|
|
1732
|
-
body: await parseErrorBody(output.body, context),
|
|
1733
|
-
};
|
|
1734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
-
switch (errorCode) {
|
|
1736
|
-
case "AccessDeniedException":
|
|
1737
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1738
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "InternalServerException":
|
|
1740
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1741
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "ResourceNotFoundException":
|
|
1743
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1744
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ThrottlingException":
|
|
1746
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1747
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ValidationException":
|
|
1749
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1750
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1751
|
-
default:
|
|
1752
|
-
const parsedBody = parsedOutput.body;
|
|
1753
|
-
return throwDefaultError({
|
|
1754
|
-
output,
|
|
1755
|
-
parsedBody,
|
|
1756
|
-
errorCode,
|
|
1757
|
-
});
|
|
1758
|
-
}
|
|
1759
|
-
};
|
|
1760
|
-
const de_ListDomainsCommand = async (output, context) => {
|
|
1761
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1762
|
-
return de_ListDomainsCommandError(output, context);
|
|
1763
|
-
}
|
|
1764
|
-
const contents = (0, smithy_client_1.map)({
|
|
1765
|
-
$metadata: deserializeMetadata(output),
|
|
1766
|
-
});
|
|
1767
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1768
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1769
|
-
domains: (_) => de_DomainSummaryList(_, context),
|
|
1770
|
-
nextToken: smithy_client_1.expectString,
|
|
1771
|
-
});
|
|
1772
|
-
Object.assign(contents, doc);
|
|
1773
|
-
return contents;
|
|
1774
|
-
};
|
|
1775
|
-
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
1776
|
-
const de_ListDomainsCommandError = async (output, context) => {
|
|
1777
|
-
const parsedOutput = {
|
|
1778
|
-
...output,
|
|
1779
|
-
body: await parseErrorBody(output.body, context),
|
|
1780
|
-
};
|
|
1781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
|
-
switch (errorCode) {
|
|
1783
|
-
case "AccessDeniedException":
|
|
1784
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1785
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "InternalServerException":
|
|
1787
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1788
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "ThrottlingException":
|
|
1790
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1791
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "ValidationException":
|
|
1793
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1794
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1795
|
-
default:
|
|
1796
|
-
const parsedBody = parsedOutput.body;
|
|
1797
|
-
return throwDefaultError({
|
|
1798
|
-
output,
|
|
1799
|
-
parsedBody,
|
|
1800
|
-
errorCode,
|
|
1801
|
-
});
|
|
1802
|
-
}
|
|
1803
|
-
};
|
|
1804
|
-
const de_ListPackagesCommand = async (output, context) => {
|
|
1805
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1806
|
-
return de_ListPackagesCommandError(output, context);
|
|
1807
|
-
}
|
|
1808
|
-
const contents = (0, smithy_client_1.map)({
|
|
1809
|
-
$metadata: deserializeMetadata(output),
|
|
1810
|
-
});
|
|
1811
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1812
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1813
|
-
nextToken: smithy_client_1.expectString,
|
|
1814
|
-
packages: smithy_client_1._json,
|
|
1815
|
-
});
|
|
1816
|
-
Object.assign(contents, doc);
|
|
1817
|
-
return contents;
|
|
1818
|
-
};
|
|
1819
|
-
exports.de_ListPackagesCommand = de_ListPackagesCommand;
|
|
1820
|
-
const de_ListPackagesCommandError = async (output, context) => {
|
|
1821
|
-
const parsedOutput = {
|
|
1822
|
-
...output,
|
|
1823
|
-
body: await parseErrorBody(output.body, context),
|
|
1824
|
-
};
|
|
1825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
|
-
switch (errorCode) {
|
|
1827
|
-
case "AccessDeniedException":
|
|
1828
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1829
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "InternalServerException":
|
|
1831
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1832
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "ResourceNotFoundException":
|
|
1834
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1835
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "ThrottlingException":
|
|
1837
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1838
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ValidationException":
|
|
1840
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1841
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1842
|
-
default:
|
|
1843
|
-
const parsedBody = parsedOutput.body;
|
|
1844
|
-
return throwDefaultError({
|
|
1845
|
-
output,
|
|
1846
|
-
parsedBody,
|
|
1847
|
-
errorCode,
|
|
1848
|
-
});
|
|
1849
|
-
}
|
|
1850
|
-
};
|
|
1851
|
-
const de_ListPackageVersionAssetsCommand = async (output, context) => {
|
|
1852
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1853
|
-
return de_ListPackageVersionAssetsCommandError(output, context);
|
|
1854
|
-
}
|
|
1855
|
-
const contents = (0, smithy_client_1.map)({
|
|
1856
|
-
$metadata: deserializeMetadata(output),
|
|
1857
|
-
});
|
|
1858
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1859
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1860
|
-
assets: smithy_client_1._json,
|
|
1861
|
-
format: smithy_client_1.expectString,
|
|
1862
|
-
namespace: smithy_client_1.expectString,
|
|
1863
|
-
nextToken: smithy_client_1.expectString,
|
|
1864
|
-
package: smithy_client_1.expectString,
|
|
1865
|
-
version: smithy_client_1.expectString,
|
|
1866
|
-
versionRevision: smithy_client_1.expectString,
|
|
1867
|
-
});
|
|
1868
|
-
Object.assign(contents, doc);
|
|
1869
|
-
return contents;
|
|
1870
|
-
};
|
|
1871
|
-
exports.de_ListPackageVersionAssetsCommand = de_ListPackageVersionAssetsCommand;
|
|
1872
|
-
const de_ListPackageVersionAssetsCommandError = async (output, context) => {
|
|
1873
|
-
const parsedOutput = {
|
|
1874
|
-
...output,
|
|
1875
|
-
body: await parseErrorBody(output.body, context),
|
|
1876
|
-
};
|
|
1877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
|
-
switch (errorCode) {
|
|
1879
|
-
case "AccessDeniedException":
|
|
1880
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1881
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "InternalServerException":
|
|
1883
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1884
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ResourceNotFoundException":
|
|
1886
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1887
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "ThrottlingException":
|
|
1889
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1890
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "ValidationException":
|
|
1892
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1893
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1894
|
-
default:
|
|
1895
|
-
const parsedBody = parsedOutput.body;
|
|
1896
|
-
return throwDefaultError({
|
|
1897
|
-
output,
|
|
1898
|
-
parsedBody,
|
|
1899
|
-
errorCode,
|
|
1900
|
-
});
|
|
1901
|
-
}
|
|
1902
|
-
};
|
|
1903
|
-
const de_ListPackageVersionDependenciesCommand = async (output, context) => {
|
|
1904
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1905
|
-
return de_ListPackageVersionDependenciesCommandError(output, context);
|
|
1906
|
-
}
|
|
1907
|
-
const contents = (0, smithy_client_1.map)({
|
|
1908
|
-
$metadata: deserializeMetadata(output),
|
|
1909
|
-
});
|
|
1910
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1911
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1912
|
-
dependencies: smithy_client_1._json,
|
|
1913
|
-
format: smithy_client_1.expectString,
|
|
1914
|
-
namespace: smithy_client_1.expectString,
|
|
1915
|
-
nextToken: smithy_client_1.expectString,
|
|
1916
|
-
package: smithy_client_1.expectString,
|
|
1917
|
-
version: smithy_client_1.expectString,
|
|
1918
|
-
versionRevision: smithy_client_1.expectString,
|
|
1919
|
-
});
|
|
1920
|
-
Object.assign(contents, doc);
|
|
1921
|
-
return contents;
|
|
1922
|
-
};
|
|
1923
|
-
exports.de_ListPackageVersionDependenciesCommand = de_ListPackageVersionDependenciesCommand;
|
|
1924
|
-
const de_ListPackageVersionDependenciesCommandError = async (output, context) => {
|
|
1925
|
-
const parsedOutput = {
|
|
1926
|
-
...output,
|
|
1927
|
-
body: await parseErrorBody(output.body, context),
|
|
1928
|
-
};
|
|
1929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1930
|
-
switch (errorCode) {
|
|
1931
|
-
case "AccessDeniedException":
|
|
1932
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1933
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "InternalServerException":
|
|
1935
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1936
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "ResourceNotFoundException":
|
|
1938
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ThrottlingException":
|
|
1941
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "ValidationException":
|
|
1944
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1946
|
-
default:
|
|
1947
|
-
const parsedBody = parsedOutput.body;
|
|
1948
|
-
return throwDefaultError({
|
|
1949
|
-
output,
|
|
1950
|
-
parsedBody,
|
|
1951
|
-
errorCode,
|
|
1952
|
-
});
|
|
1953
|
-
}
|
|
1954
|
-
};
|
|
1955
|
-
const de_ListPackageVersionsCommand = async (output, context) => {
|
|
1956
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1957
|
-
return de_ListPackageVersionsCommandError(output, context);
|
|
1958
|
-
}
|
|
1959
|
-
const contents = (0, smithy_client_1.map)({
|
|
1960
|
-
$metadata: deserializeMetadata(output),
|
|
1961
|
-
});
|
|
1962
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1963
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1964
|
-
defaultDisplayVersion: smithy_client_1.expectString,
|
|
1965
|
-
format: smithy_client_1.expectString,
|
|
1966
|
-
namespace: smithy_client_1.expectString,
|
|
1967
|
-
nextToken: smithy_client_1.expectString,
|
|
1968
|
-
package: smithy_client_1.expectString,
|
|
1969
|
-
versions: smithy_client_1._json,
|
|
1970
|
-
});
|
|
1971
|
-
Object.assign(contents, doc);
|
|
1972
|
-
return contents;
|
|
1973
|
-
};
|
|
1974
|
-
exports.de_ListPackageVersionsCommand = de_ListPackageVersionsCommand;
|
|
1975
|
-
const de_ListPackageVersionsCommandError = async (output, context) => {
|
|
1976
|
-
const parsedOutput = {
|
|
1977
|
-
...output,
|
|
1978
|
-
body: await parseErrorBody(output.body, context),
|
|
1979
|
-
};
|
|
1980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
|
-
switch (errorCode) {
|
|
1982
|
-
case "AccessDeniedException":
|
|
1983
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1984
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1985
|
-
case "InternalServerException":
|
|
1986
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1987
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1988
|
-
case "ResourceNotFoundException":
|
|
1989
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1990
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1991
|
-
case "ThrottlingException":
|
|
1992
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1993
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "ValidationException":
|
|
1995
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
1996
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1997
|
-
default:
|
|
1998
|
-
const parsedBody = parsedOutput.body;
|
|
1999
|
-
return throwDefaultError({
|
|
2000
|
-
output,
|
|
2001
|
-
parsedBody,
|
|
2002
|
-
errorCode,
|
|
2003
|
-
});
|
|
2004
|
-
}
|
|
2005
|
-
};
|
|
2006
|
-
const de_ListRepositoriesCommand = async (output, context) => {
|
|
2007
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2008
|
-
return de_ListRepositoriesCommandError(output, context);
|
|
2009
|
-
}
|
|
2010
|
-
const contents = (0, smithy_client_1.map)({
|
|
2011
|
-
$metadata: deserializeMetadata(output),
|
|
2012
|
-
});
|
|
2013
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2014
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2015
|
-
nextToken: smithy_client_1.expectString,
|
|
2016
|
-
repositories: (_) => de_RepositorySummaryList(_, context),
|
|
2017
|
-
});
|
|
2018
|
-
Object.assign(contents, doc);
|
|
2019
|
-
return contents;
|
|
2020
|
-
};
|
|
2021
|
-
exports.de_ListRepositoriesCommand = de_ListRepositoriesCommand;
|
|
2022
|
-
const de_ListRepositoriesCommandError = async (output, context) => {
|
|
2023
|
-
const parsedOutput = {
|
|
2024
|
-
...output,
|
|
2025
|
-
body: await parseErrorBody(output.body, context),
|
|
2026
|
-
};
|
|
2027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2028
|
-
switch (errorCode) {
|
|
2029
|
-
case "AccessDeniedException":
|
|
2030
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2031
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2032
|
-
case "InternalServerException":
|
|
2033
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2034
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "ThrottlingException":
|
|
2036
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2037
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ValidationException":
|
|
2039
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2040
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody,
|
|
2046
|
-
errorCode,
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
|
-
const de_ListRepositoriesInDomainCommand = async (output, context) => {
|
|
2051
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2052
|
-
return de_ListRepositoriesInDomainCommandError(output, context);
|
|
2053
|
-
}
|
|
2054
|
-
const contents = (0, smithy_client_1.map)({
|
|
2055
|
-
$metadata: deserializeMetadata(output),
|
|
2056
|
-
});
|
|
2057
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2058
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2059
|
-
nextToken: smithy_client_1.expectString,
|
|
2060
|
-
repositories: (_) => de_RepositorySummaryList(_, context),
|
|
2061
|
-
});
|
|
2062
|
-
Object.assign(contents, doc);
|
|
2063
|
-
return contents;
|
|
2064
|
-
};
|
|
2065
|
-
exports.de_ListRepositoriesInDomainCommand = de_ListRepositoriesInDomainCommand;
|
|
2066
|
-
const de_ListRepositoriesInDomainCommandError = async (output, context) => {
|
|
2067
|
-
const parsedOutput = {
|
|
2068
|
-
...output,
|
|
2069
|
-
body: await parseErrorBody(output.body, context),
|
|
2070
|
-
};
|
|
2071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
|
-
switch (errorCode) {
|
|
2073
|
-
case "AccessDeniedException":
|
|
2074
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2075
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "InternalServerException":
|
|
2077
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2078
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2079
|
-
case "ResourceNotFoundException":
|
|
2080
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2081
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2082
|
-
case "ThrottlingException":
|
|
2083
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2084
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "ValidationException":
|
|
2086
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2087
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
return throwDefaultError({
|
|
2091
|
-
output,
|
|
2092
|
-
parsedBody,
|
|
2093
|
-
errorCode,
|
|
2094
|
-
});
|
|
2095
|
-
}
|
|
2096
|
-
};
|
|
2097
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2098
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2099
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2100
|
-
}
|
|
2101
|
-
const contents = (0, smithy_client_1.map)({
|
|
2102
|
-
$metadata: deserializeMetadata(output),
|
|
2103
|
-
});
|
|
2104
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2105
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2106
|
-
tags: smithy_client_1._json,
|
|
2107
|
-
});
|
|
2108
|
-
Object.assign(contents, doc);
|
|
2109
|
-
return contents;
|
|
2110
|
-
};
|
|
2111
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2112
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2113
|
-
const parsedOutput = {
|
|
2114
|
-
...output,
|
|
2115
|
-
body: await parseErrorBody(output.body, context),
|
|
2116
|
-
};
|
|
2117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
|
-
switch (errorCode) {
|
|
2119
|
-
case "AccessDeniedException":
|
|
2120
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2121
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "ResourceNotFoundException":
|
|
2123
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2124
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "ThrottlingException":
|
|
2126
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2127
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "ValidationException":
|
|
2129
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2130
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2131
|
-
default:
|
|
2132
|
-
const parsedBody = parsedOutput.body;
|
|
2133
|
-
return throwDefaultError({
|
|
2134
|
-
output,
|
|
2135
|
-
parsedBody,
|
|
2136
|
-
errorCode,
|
|
2137
|
-
});
|
|
2138
|
-
}
|
|
2139
|
-
};
|
|
2140
|
-
const de_PublishPackageVersionCommand = async (output, context) => {
|
|
2141
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2142
|
-
return de_PublishPackageVersionCommandError(output, context);
|
|
2143
|
-
}
|
|
2144
|
-
const contents = (0, smithy_client_1.map)({
|
|
2145
|
-
$metadata: deserializeMetadata(output),
|
|
2146
|
-
});
|
|
2147
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2148
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2149
|
-
asset: smithy_client_1._json,
|
|
2150
|
-
format: smithy_client_1.expectString,
|
|
2151
|
-
namespace: smithy_client_1.expectString,
|
|
2152
|
-
package: smithy_client_1.expectString,
|
|
2153
|
-
status: smithy_client_1.expectString,
|
|
2154
|
-
version: smithy_client_1.expectString,
|
|
2155
|
-
versionRevision: smithy_client_1.expectString,
|
|
2156
|
-
});
|
|
2157
|
-
Object.assign(contents, doc);
|
|
2158
|
-
return contents;
|
|
2159
|
-
};
|
|
2160
|
-
exports.de_PublishPackageVersionCommand = de_PublishPackageVersionCommand;
|
|
2161
|
-
const de_PublishPackageVersionCommandError = async (output, context) => {
|
|
2162
|
-
const parsedOutput = {
|
|
2163
|
-
...output,
|
|
2164
|
-
body: await parseErrorBody(output.body, context),
|
|
2165
|
-
};
|
|
2166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2167
|
-
switch (errorCode) {
|
|
2168
|
-
case "AccessDeniedException":
|
|
2169
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2170
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "ConflictException":
|
|
2172
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2173
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "InternalServerException":
|
|
2175
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2176
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "ResourceNotFoundException":
|
|
2178
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2179
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "ServiceQuotaExceededException":
|
|
2181
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2182
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ThrottlingException":
|
|
2184
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2185
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "ValidationException":
|
|
2187
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2188
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2189
|
-
default:
|
|
2190
|
-
const parsedBody = parsedOutput.body;
|
|
2191
|
-
return throwDefaultError({
|
|
2192
|
-
output,
|
|
2193
|
-
parsedBody,
|
|
2194
|
-
errorCode,
|
|
2195
|
-
});
|
|
2196
|
-
}
|
|
2197
|
-
};
|
|
2198
|
-
const de_PutDomainPermissionsPolicyCommand = async (output, context) => {
|
|
2199
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2200
|
-
return de_PutDomainPermissionsPolicyCommandError(output, context);
|
|
2201
|
-
}
|
|
2202
|
-
const contents = (0, smithy_client_1.map)({
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
});
|
|
2205
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2206
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2207
|
-
policy: smithy_client_1._json,
|
|
2208
|
-
});
|
|
2209
|
-
Object.assign(contents, doc);
|
|
2210
|
-
return contents;
|
|
2211
|
-
};
|
|
2212
|
-
exports.de_PutDomainPermissionsPolicyCommand = de_PutDomainPermissionsPolicyCommand;
|
|
2213
|
-
const de_PutDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
2214
|
-
const parsedOutput = {
|
|
2215
|
-
...output,
|
|
2216
|
-
body: await parseErrorBody(output.body, context),
|
|
2217
|
-
};
|
|
2218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2219
|
-
switch (errorCode) {
|
|
2220
|
-
case "AccessDeniedException":
|
|
2221
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2222
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "ConflictException":
|
|
2224
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2225
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "InternalServerException":
|
|
2227
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2228
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "ResourceNotFoundException":
|
|
2230
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2231
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "ServiceQuotaExceededException":
|
|
2233
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2234
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "ThrottlingException":
|
|
2236
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2237
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "ValidationException":
|
|
2239
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2240
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2241
|
-
default:
|
|
2242
|
-
const parsedBody = parsedOutput.body;
|
|
2243
|
-
return throwDefaultError({
|
|
2244
|
-
output,
|
|
2245
|
-
parsedBody,
|
|
2246
|
-
errorCode,
|
|
2247
|
-
});
|
|
2248
|
-
}
|
|
2249
|
-
};
|
|
2250
|
-
const de_PutPackageOriginConfigurationCommand = async (output, context) => {
|
|
2251
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2252
|
-
return de_PutPackageOriginConfigurationCommandError(output, context);
|
|
2253
|
-
}
|
|
2254
|
-
const contents = (0, smithy_client_1.map)({
|
|
2255
|
-
$metadata: deserializeMetadata(output),
|
|
2256
|
-
});
|
|
2257
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2258
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2259
|
-
originConfiguration: smithy_client_1._json,
|
|
2260
|
-
});
|
|
2261
|
-
Object.assign(contents, doc);
|
|
2262
|
-
return contents;
|
|
2263
|
-
};
|
|
2264
|
-
exports.de_PutPackageOriginConfigurationCommand = de_PutPackageOriginConfigurationCommand;
|
|
2265
|
-
const de_PutPackageOriginConfigurationCommandError = async (output, context) => {
|
|
2266
|
-
const parsedOutput = {
|
|
2267
|
-
...output,
|
|
2268
|
-
body: await parseErrorBody(output.body, context),
|
|
2269
|
-
};
|
|
2270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
|
-
switch (errorCode) {
|
|
2272
|
-
case "AccessDeniedException":
|
|
2273
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2274
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2275
|
-
case "InternalServerException":
|
|
2276
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2277
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2278
|
-
case "ResourceNotFoundException":
|
|
2279
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2280
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "ThrottlingException":
|
|
2282
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2283
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "ValidationException":
|
|
2285
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2286
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2287
|
-
default:
|
|
2288
|
-
const parsedBody = parsedOutput.body;
|
|
2289
|
-
return throwDefaultError({
|
|
2290
|
-
output,
|
|
2291
|
-
parsedBody,
|
|
2292
|
-
errorCode,
|
|
2293
|
-
});
|
|
2294
|
-
}
|
|
2295
|
-
};
|
|
2296
|
-
const de_PutRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
2297
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2298
|
-
return de_PutRepositoryPermissionsPolicyCommandError(output, context);
|
|
2299
|
-
}
|
|
2300
|
-
const contents = (0, smithy_client_1.map)({
|
|
2301
|
-
$metadata: deserializeMetadata(output),
|
|
2302
|
-
});
|
|
2303
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2304
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2305
|
-
policy: smithy_client_1._json,
|
|
2306
|
-
});
|
|
2307
|
-
Object.assign(contents, doc);
|
|
2308
|
-
return contents;
|
|
2309
|
-
};
|
|
2310
|
-
exports.de_PutRepositoryPermissionsPolicyCommand = de_PutRepositoryPermissionsPolicyCommand;
|
|
2311
|
-
const de_PutRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
2312
|
-
const parsedOutput = {
|
|
2313
|
-
...output,
|
|
2314
|
-
body: await parseErrorBody(output.body, context),
|
|
2315
|
-
};
|
|
2316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
|
-
switch (errorCode) {
|
|
2318
|
-
case "AccessDeniedException":
|
|
2319
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2320
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "ConflictException":
|
|
2322
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2323
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "InternalServerException":
|
|
2325
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2326
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "ResourceNotFoundException":
|
|
2328
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2329
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "ServiceQuotaExceededException":
|
|
2331
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2332
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "ThrottlingException":
|
|
2334
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2335
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "ValidationException":
|
|
2337
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2338
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2339
|
-
default:
|
|
2340
|
-
const parsedBody = parsedOutput.body;
|
|
2341
|
-
return throwDefaultError({
|
|
2342
|
-
output,
|
|
2343
|
-
parsedBody,
|
|
2344
|
-
errorCode,
|
|
2345
|
-
});
|
|
2346
|
-
}
|
|
2347
|
-
};
|
|
2348
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2349
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2350
|
-
return de_TagResourceCommandError(output, context);
|
|
2351
|
-
}
|
|
2352
|
-
const contents = (0, smithy_client_1.map)({
|
|
2353
|
-
$metadata: deserializeMetadata(output),
|
|
2354
|
-
});
|
|
2355
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2356
|
-
return contents;
|
|
2357
|
-
};
|
|
2358
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2359
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2360
|
-
const parsedOutput = {
|
|
2361
|
-
...output,
|
|
2362
|
-
body: await parseErrorBody(output.body, context),
|
|
2363
|
-
};
|
|
2364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2365
|
-
switch (errorCode) {
|
|
2366
|
-
case "AccessDeniedException":
|
|
2367
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2368
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "ResourceNotFoundException":
|
|
2370
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2371
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ServiceQuotaExceededException":
|
|
2373
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2374
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2375
|
-
case "ThrottlingException":
|
|
2376
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2377
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "ValidationException":
|
|
2379
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2381
|
-
default:
|
|
2382
|
-
const parsedBody = parsedOutput.body;
|
|
2383
|
-
return throwDefaultError({
|
|
2384
|
-
output,
|
|
2385
|
-
parsedBody,
|
|
2386
|
-
errorCode,
|
|
2387
|
-
});
|
|
2388
|
-
}
|
|
2389
|
-
};
|
|
2390
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2391
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2392
|
-
return de_UntagResourceCommandError(output, context);
|
|
2393
|
-
}
|
|
2394
|
-
const contents = (0, smithy_client_1.map)({
|
|
2395
|
-
$metadata: deserializeMetadata(output),
|
|
2396
|
-
});
|
|
2397
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2398
|
-
return contents;
|
|
2399
|
-
};
|
|
2400
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2401
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2402
|
-
const parsedOutput = {
|
|
2403
|
-
...output,
|
|
2404
|
-
body: await parseErrorBody(output.body, context),
|
|
2405
|
-
};
|
|
2406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
|
-
switch (errorCode) {
|
|
2408
|
-
case "AccessDeniedException":
|
|
2409
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2410
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "ResourceNotFoundException":
|
|
2412
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2413
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "ThrottlingException":
|
|
2415
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2416
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "ValidationException":
|
|
2418
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2420
|
-
default:
|
|
2421
|
-
const parsedBody = parsedOutput.body;
|
|
2422
|
-
return throwDefaultError({
|
|
2423
|
-
output,
|
|
2424
|
-
parsedBody,
|
|
2425
|
-
errorCode,
|
|
2426
|
-
});
|
|
2427
|
-
}
|
|
2428
|
-
};
|
|
2429
|
-
const de_UpdatePackageVersionsStatusCommand = async (output, context) => {
|
|
2430
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2431
|
-
return de_UpdatePackageVersionsStatusCommandError(output, context);
|
|
2432
|
-
}
|
|
2433
|
-
const contents = (0, smithy_client_1.map)({
|
|
2434
|
-
$metadata: deserializeMetadata(output),
|
|
2435
|
-
});
|
|
2436
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2437
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2438
|
-
failedVersions: smithy_client_1._json,
|
|
2439
|
-
successfulVersions: smithy_client_1._json,
|
|
2440
|
-
});
|
|
2441
|
-
Object.assign(contents, doc);
|
|
2442
|
-
return contents;
|
|
2443
|
-
};
|
|
2444
|
-
exports.de_UpdatePackageVersionsStatusCommand = de_UpdatePackageVersionsStatusCommand;
|
|
2445
|
-
const de_UpdatePackageVersionsStatusCommandError = async (output, context) => {
|
|
2446
|
-
const parsedOutput = {
|
|
2447
|
-
...output,
|
|
2448
|
-
body: await parseErrorBody(output.body, context),
|
|
2449
|
-
};
|
|
2450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2451
|
-
switch (errorCode) {
|
|
2452
|
-
case "AccessDeniedException":
|
|
2453
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2454
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2455
|
-
case "ConflictException":
|
|
2456
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2457
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "InternalServerException":
|
|
2459
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2460
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "ResourceNotFoundException":
|
|
2462
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2463
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "ThrottlingException":
|
|
2465
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2466
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "ValidationException":
|
|
2468
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2469
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2470
|
-
default:
|
|
2471
|
-
const parsedBody = parsedOutput.body;
|
|
2472
|
-
return throwDefaultError({
|
|
2473
|
-
output,
|
|
2474
|
-
parsedBody,
|
|
2475
|
-
errorCode,
|
|
2476
|
-
});
|
|
2477
|
-
}
|
|
2478
|
-
};
|
|
2479
|
-
const de_UpdateRepositoryCommand = async (output, context) => {
|
|
2480
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2481
|
-
return de_UpdateRepositoryCommandError(output, context);
|
|
2482
|
-
}
|
|
2483
|
-
const contents = (0, smithy_client_1.map)({
|
|
2484
|
-
$metadata: deserializeMetadata(output),
|
|
2485
|
-
});
|
|
2486
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2487
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2488
|
-
repository: (_) => de_RepositoryDescription(_, context),
|
|
2489
|
-
});
|
|
2490
|
-
Object.assign(contents, doc);
|
|
2491
|
-
return contents;
|
|
2492
|
-
};
|
|
2493
|
-
exports.de_UpdateRepositoryCommand = de_UpdateRepositoryCommand;
|
|
2494
|
-
const de_UpdateRepositoryCommandError = async (output, context) => {
|
|
2495
|
-
const parsedOutput = {
|
|
2496
|
-
...output,
|
|
2497
|
-
body: await parseErrorBody(output.body, context),
|
|
2498
|
-
};
|
|
2499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2500
|
-
switch (errorCode) {
|
|
2501
|
-
case "AccessDeniedException":
|
|
2502
|
-
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "ConflictException":
|
|
2505
|
-
case "com.amazonaws.codeartifact#ConflictException":
|
|
2506
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "InternalServerException":
|
|
2508
|
-
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2509
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "ResourceNotFoundException":
|
|
2511
|
-
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2512
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "ServiceQuotaExceededException":
|
|
2514
|
-
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2515
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2516
|
-
case "ThrottlingException":
|
|
2517
|
-
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2518
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "ValidationException":
|
|
2520
|
-
case "com.amazonaws.codeartifact#ValidationException":
|
|
2521
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2522
|
-
default:
|
|
2523
|
-
const parsedBody = parsedOutput.body;
|
|
2524
|
-
return throwDefaultError({
|
|
2525
|
-
output,
|
|
2526
|
-
parsedBody,
|
|
2527
|
-
errorCode,
|
|
2528
|
-
});
|
|
2529
|
-
}
|
|
2530
|
-
};
|
|
2531
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(CodeartifactServiceException_1.CodeartifactServiceException);
|
|
2532
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2533
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2534
|
-
const data = parsedOutput.body;
|
|
2535
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2536
|
-
message: smithy_client_1.expectString,
|
|
2537
|
-
});
|
|
2538
|
-
Object.assign(contents, doc);
|
|
2539
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
2540
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2541
|
-
...contents,
|
|
2542
|
-
});
|
|
2543
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2544
|
-
};
|
|
2545
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2546
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2547
|
-
const data = parsedOutput.body;
|
|
2548
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2549
|
-
message: smithy_client_1.expectString,
|
|
2550
|
-
resourceId: smithy_client_1.expectString,
|
|
2551
|
-
resourceType: smithy_client_1.expectString,
|
|
2552
|
-
});
|
|
2553
|
-
Object.assign(contents, doc);
|
|
2554
|
-
const exception = new models_0_1.ConflictException({
|
|
2555
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2556
|
-
...contents,
|
|
2557
|
-
});
|
|
2558
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2559
|
-
};
|
|
2560
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2561
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2562
|
-
const data = parsedOutput.body;
|
|
2563
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2564
|
-
message: smithy_client_1.expectString,
|
|
2565
|
-
});
|
|
2566
|
-
Object.assign(contents, doc);
|
|
2567
|
-
const exception = new models_0_1.InternalServerException({
|
|
2568
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2569
|
-
...contents,
|
|
2570
|
-
});
|
|
2571
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2572
|
-
};
|
|
2573
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2574
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2575
|
-
const data = parsedOutput.body;
|
|
2576
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2577
|
-
message: smithy_client_1.expectString,
|
|
2578
|
-
resourceId: smithy_client_1.expectString,
|
|
2579
|
-
resourceType: smithy_client_1.expectString,
|
|
2580
|
-
});
|
|
2581
|
-
Object.assign(contents, doc);
|
|
2582
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
2583
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2584
|
-
...contents,
|
|
2585
|
-
});
|
|
2586
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2587
|
-
};
|
|
2588
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2589
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2590
|
-
const data = parsedOutput.body;
|
|
2591
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2592
|
-
message: smithy_client_1.expectString,
|
|
2593
|
-
resourceId: smithy_client_1.expectString,
|
|
2594
|
-
resourceType: smithy_client_1.expectString,
|
|
2595
|
-
});
|
|
2596
|
-
Object.assign(contents, doc);
|
|
2597
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2598
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2599
|
-
...contents,
|
|
2600
|
-
});
|
|
2601
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2602
|
-
};
|
|
2603
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2604
|
-
const contents = (0, smithy_client_1.map)({
|
|
2605
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
2606
|
-
});
|
|
2607
|
-
const data = parsedOutput.body;
|
|
2608
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2609
|
-
message: smithy_client_1.expectString,
|
|
2610
|
-
});
|
|
2611
|
-
Object.assign(contents, doc);
|
|
2612
|
-
const exception = new models_0_1.ThrottlingException({
|
|
2613
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2614
|
-
...contents,
|
|
2615
|
-
});
|
|
2616
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2617
|
-
};
|
|
2618
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2619
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2620
|
-
const data = parsedOutput.body;
|
|
2621
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2622
|
-
message: smithy_client_1.expectString,
|
|
2623
|
-
reason: smithy_client_1.expectString,
|
|
2624
|
-
});
|
|
2625
|
-
Object.assign(contents, doc);
|
|
2626
|
-
const exception = new models_0_1.ValidationException({
|
|
2627
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2628
|
-
...contents,
|
|
2629
|
-
});
|
|
2630
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2631
|
-
};
|
|
2632
|
-
const de_DomainDescription = (output, context) => {
|
|
2633
|
-
return (0, smithy_client_1.take)(output, {
|
|
2634
|
-
arn: smithy_client_1.expectString,
|
|
2635
|
-
assetSizeBytes: smithy_client_1.expectLong,
|
|
2636
|
-
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2637
|
-
encryptionKey: smithy_client_1.expectString,
|
|
2638
|
-
name: smithy_client_1.expectString,
|
|
2639
|
-
owner: smithy_client_1.expectString,
|
|
2640
|
-
repositoryCount: smithy_client_1.expectInt32,
|
|
2641
|
-
s3BucketArn: smithy_client_1.expectString,
|
|
2642
|
-
status: smithy_client_1.expectString,
|
|
2643
|
-
});
|
|
2644
|
-
};
|
|
2645
|
-
const de_DomainSummary = (output, context) => {
|
|
2646
|
-
return (0, smithy_client_1.take)(output, {
|
|
2647
|
-
arn: smithy_client_1.expectString,
|
|
2648
|
-
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2649
|
-
encryptionKey: smithy_client_1.expectString,
|
|
2650
|
-
name: smithy_client_1.expectString,
|
|
2651
|
-
owner: smithy_client_1.expectString,
|
|
2652
|
-
status: smithy_client_1.expectString,
|
|
2653
|
-
});
|
|
2654
|
-
};
|
|
2655
|
-
const de_DomainSummaryList = (output, context) => {
|
|
2656
|
-
const retVal = (output || [])
|
|
2657
|
-
.filter((e) => e != null)
|
|
2658
|
-
.map((entry) => {
|
|
2659
|
-
return de_DomainSummary(entry, context);
|
|
2660
|
-
});
|
|
2661
|
-
return retVal;
|
|
2662
|
-
};
|
|
2663
|
-
const de_PackageVersionDescription = (output, context) => {
|
|
2664
|
-
return (0, smithy_client_1.take)(output, {
|
|
2665
|
-
displayName: smithy_client_1.expectString,
|
|
2666
|
-
format: smithy_client_1.expectString,
|
|
2667
|
-
homePage: smithy_client_1.expectString,
|
|
2668
|
-
licenses: smithy_client_1._json,
|
|
2669
|
-
namespace: smithy_client_1.expectString,
|
|
2670
|
-
origin: smithy_client_1._json,
|
|
2671
|
-
packageName: smithy_client_1.expectString,
|
|
2672
|
-
publishedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2673
|
-
revision: smithy_client_1.expectString,
|
|
2674
|
-
sourceCodeRepository: smithy_client_1.expectString,
|
|
2675
|
-
status: smithy_client_1.expectString,
|
|
2676
|
-
summary: smithy_client_1.expectString,
|
|
2677
|
-
version: smithy_client_1.expectString,
|
|
2678
|
-
});
|
|
2679
|
-
};
|
|
2680
|
-
const de_RepositoryDescription = (output, context) => {
|
|
2681
|
-
return (0, smithy_client_1.take)(output, {
|
|
2682
|
-
administratorAccount: smithy_client_1.expectString,
|
|
2683
|
-
arn: smithy_client_1.expectString,
|
|
2684
|
-
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2685
|
-
description: smithy_client_1.expectString,
|
|
2686
|
-
domainName: smithy_client_1.expectString,
|
|
2687
|
-
domainOwner: smithy_client_1.expectString,
|
|
2688
|
-
externalConnections: smithy_client_1._json,
|
|
2689
|
-
name: smithy_client_1.expectString,
|
|
2690
|
-
upstreams: smithy_client_1._json,
|
|
2691
|
-
});
|
|
2692
|
-
};
|
|
2693
|
-
const de_RepositorySummary = (output, context) => {
|
|
2694
|
-
return (0, smithy_client_1.take)(output, {
|
|
2695
|
-
administratorAccount: smithy_client_1.expectString,
|
|
2696
|
-
arn: smithy_client_1.expectString,
|
|
2697
|
-
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2698
|
-
description: smithy_client_1.expectString,
|
|
2699
|
-
domainName: smithy_client_1.expectString,
|
|
2700
|
-
domainOwner: smithy_client_1.expectString,
|
|
2701
|
-
name: smithy_client_1.expectString,
|
|
2702
|
-
});
|
|
2703
|
-
};
|
|
2704
|
-
const de_RepositorySummaryList = (output, context) => {
|
|
2705
|
-
const retVal = (output || [])
|
|
2706
|
-
.filter((e) => e != null)
|
|
2707
|
-
.map((entry) => {
|
|
2708
|
-
return de_RepositorySummary(entry, context);
|
|
2709
|
-
});
|
|
2710
|
-
return retVal;
|
|
2711
|
-
};
|
|
2712
|
-
const deserializeMetadata = (output) => ({
|
|
2713
|
-
httpStatusCode: output.statusCode,
|
|
2714
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2715
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2716
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2717
|
-
});
|
|
2718
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2719
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2720
|
-
value !== null &&
|
|
2721
|
-
value !== "" &&
|
|
2722
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2723
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2724
|
-
const _a = "asset";
|
|
2725
|
-
const _aA = "administratorAccount";
|
|
2726
|
-
const _aN = "assetName";
|
|
2727
|
-
const _aSHA = "assetSHA256";
|
|
2728
|
-
const _aa = "administrator-account";
|
|
2729
|
-
const _d = "domain";
|
|
2730
|
-
const _dO = "domainOwner";
|
|
2731
|
-
const _dR = "destinationRepository";
|
|
2732
|
-
const _dS = "durationSeconds";
|
|
2733
|
-
const _do = "domain-owner";
|
|
2734
|
-
const _dr = "destination-repository";
|
|
2735
|
-
const _du = "duration";
|
|
2736
|
-
const _eC = "externalConnection";
|
|
2737
|
-
const _ec = "external-connection";
|
|
2738
|
-
const _f = "format";
|
|
2739
|
-
const _mR = "maxResults";
|
|
2740
|
-
const _mr = "max-results";
|
|
2741
|
-
const _n = "namespace";
|
|
2742
|
-
const _nT = "nextToken";
|
|
2743
|
-
const _nt = "next-token";
|
|
2744
|
-
const _oT = "originType";
|
|
2745
|
-
const _p = "package";
|
|
2746
|
-
const _pP = "packagePrefix";
|
|
2747
|
-
const _pR = "policyRevision";
|
|
2748
|
-
const _pV = "packageVersion";
|
|
2749
|
-
const _pVR = "packageVersionRevision";
|
|
2750
|
-
const _pp = "package-prefix";
|
|
2751
|
-
const _pr = "policy-revision";
|
|
2752
|
-
const _pu = "publish";
|
|
2753
|
-
const _r = "repository";
|
|
2754
|
-
const _rA = "resourceArn";
|
|
2755
|
-
const _rAS = "retryAfterSeconds";
|
|
2756
|
-
const _rP = "repositoryPrefix";
|
|
2757
|
-
const _ra = "retry-after";
|
|
2758
|
-
const _re = "revision";
|
|
2759
|
-
const _rp = "repository-prefix";
|
|
2760
|
-
const _s = "status";
|
|
2761
|
-
const _sB = "sortBy";
|
|
2762
|
-
const _sR = "sourceRepository";
|
|
2763
|
-
const _sr = "source-repository";
|
|
2764
|
-
const _u = "upstream";
|
|
2765
|
-
const _un = "unfinished";
|
|
2766
|
-
const _v = "version";
|
|
2767
|
-
const _xa = "x-assetname";
|
|
2768
|
-
const _xacs = "x-amz-content-sha256";
|
|
2769
|
-
const _xp = "x-packageversion";
|
|
2770
|
-
const _xp_ = "x-packageversionrevision";
|
|
2771
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2772
|
-
if (encoded.length) {
|
|
2773
|
-
return JSON.parse(encoded);
|
|
2774
|
-
}
|
|
2775
|
-
return {};
|
|
2776
|
-
});
|
|
2777
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2778
|
-
const value = await parseBody(errorBody, context);
|
|
2779
|
-
value.message = value.message ?? value.Message;
|
|
2780
|
-
return value;
|
|
2781
|
-
};
|
|
2782
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2783
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2784
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2785
|
-
let cleanValue = rawValue;
|
|
2786
|
-
if (typeof cleanValue === "number") {
|
|
2787
|
-
cleanValue = cleanValue.toString();
|
|
2788
|
-
}
|
|
2789
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2790
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2791
|
-
}
|
|
2792
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2793
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2794
|
-
}
|
|
2795
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2796
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2797
|
-
}
|
|
2798
|
-
return cleanValue;
|
|
2799
|
-
};
|
|
2800
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2801
|
-
if (headerKey !== undefined) {
|
|
2802
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2803
|
-
}
|
|
2804
|
-
if (data.code !== undefined) {
|
|
2805
|
-
return sanitizeErrorCode(data.code);
|
|
2806
|
-
}
|
|
2807
|
-
if (data["__type"] !== undefined) {
|
|
2808
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2809
|
-
}
|
|
2810
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|