@aws-sdk/client-ecr-public 3.306.0 → 3.310.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/commands/BatchCheckLayerAvailabilityCommand.js +2 -2
- package/dist-cjs/commands/BatchDeleteImageCommand.js +2 -2
- package/dist-cjs/commands/CompleteLayerUploadCommand.js +2 -2
- package/dist-cjs/commands/CreateRepositoryCommand.js +2 -2
- package/dist-cjs/commands/DeleteRepositoryCommand.js +2 -2
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeImageTagsCommand.js +2 -2
- package/dist-cjs/commands/DescribeImagesCommand.js +2 -2
- package/dist-cjs/commands/DescribeRegistriesCommand.js +2 -2
- package/dist-cjs/commands/DescribeRepositoriesCommand.js +2 -2
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +2 -2
- package/dist-cjs/commands/GetRegistryCatalogDataCommand.js +2 -2
- package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js +2 -2
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js +2 -2
- package/dist-cjs/commands/InitiateLayerUploadCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutImageCommand.js +2 -2
- package/dist-cjs/commands/PutRegistryCatalogDataCommand.js +2 -2
- package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js +2 -2
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UploadLayerPartCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +509 -529
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +3 -3
- package/dist-es/commands/BatchDeleteImageCommand.js +3 -3
- package/dist-es/commands/CompleteLayerUploadCommand.js +3 -3
- package/dist-es/commands/CreateRepositoryCommand.js +3 -3
- package/dist-es/commands/DeleteRepositoryCommand.js +3 -3
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeImageTagsCommand.js +3 -3
- package/dist-es/commands/DescribeImagesCommand.js +3 -3
- package/dist-es/commands/DescribeRegistriesCommand.js +3 -3
- package/dist-es/commands/DescribeRepositoriesCommand.js +3 -3
- package/dist-es/commands/GetAuthorizationTokenCommand.js +3 -3
- package/dist-es/commands/GetRegistryCatalogDataCommand.js +3 -3
- package/dist-es/commands/GetRepositoryCatalogDataCommand.js +3 -3
- package/dist-es/commands/GetRepositoryPolicyCommand.js +3 -3
- package/dist-es/commands/InitiateLayerUploadCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutImageCommand.js +3 -3
- package/dist-es/commands/PutRegistryCatalogDataCommand.js +3 -3
- package/dist-es/commands/PutRepositoryCatalogDataCommand.js +3 -3
- package/dist-es/commands/SetRepositoryPolicyCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UploadLayerPartCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +462 -482
- package/dist-types/protocols/Aws_json1_1.d.ts +184 -46
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +46 -46
- package/package.json +35 -35
|
@@ -1,255 +1,255 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UploadLayerPartCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SetRepositoryPolicyCommand = exports.de_PutRepositoryCatalogDataCommand = exports.de_PutRegistryCatalogDataCommand = exports.de_PutImageCommand = exports.de_ListTagsForResourceCommand = exports.de_InitiateLayerUploadCommand = exports.de_GetRepositoryPolicyCommand = exports.de_GetRepositoryCatalogDataCommand = exports.de_GetRegistryCatalogDataCommand = exports.de_GetAuthorizationTokenCommand = exports.de_DescribeRepositoriesCommand = exports.de_DescribeRegistriesCommand = exports.de_DescribeImageTagsCommand = exports.de_DescribeImagesCommand = exports.de_DeleteRepositoryPolicyCommand = exports.de_DeleteRepositoryCommand = exports.de_CreateRepositoryCommand = exports.de_CompleteLayerUploadCommand = exports.de_BatchDeleteImageCommand = exports.de_BatchCheckLayerAvailabilityCommand = exports.se_UploadLayerPartCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SetRepositoryPolicyCommand = exports.se_PutRepositoryCatalogDataCommand = exports.se_PutRegistryCatalogDataCommand = exports.se_PutImageCommand = exports.se_ListTagsForResourceCommand = exports.se_InitiateLayerUploadCommand = exports.se_GetRepositoryPolicyCommand = exports.se_GetRepositoryCatalogDataCommand = exports.se_GetRegistryCatalogDataCommand = exports.se_GetAuthorizationTokenCommand = exports.se_DescribeRepositoriesCommand = exports.se_DescribeRegistriesCommand = exports.se_DescribeImageTagsCommand = exports.se_DescribeImagesCommand = exports.se_DeleteRepositoryPolicyCommand = exports.se_DeleteRepositoryCommand = exports.se_CreateRepositoryCommand = exports.se_CompleteLayerUploadCommand = exports.se_BatchDeleteImageCommand = exports.se_BatchCheckLayerAvailabilityCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const ECRPUBLICServiceException_1 = require("../models/ECRPUBLICServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.1",
|
|
11
11
|
"x-amz-target": "SpencerFrontendService.BatchCheckLayerAvailability",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_BatchCheckLayerAvailabilityRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_BatchCheckLayerAvailabilityCommand = se_BatchCheckLayerAvailabilityCommand;
|
|
18
|
+
const se_BatchDeleteImageCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.1",
|
|
21
21
|
"x-amz-target": "SpencerFrontendService.BatchDeleteImage",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_BatchDeleteImageRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_BatchDeleteImageCommand = se_BatchDeleteImageCommand;
|
|
28
|
+
const se_CompleteLayerUploadCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.1",
|
|
31
31
|
"x-amz-target": "SpencerFrontendService.CompleteLayerUpload",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_CompleteLayerUploadRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_CompleteLayerUploadCommand = se_CompleteLayerUploadCommand;
|
|
38
|
+
const se_CreateRepositoryCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.1",
|
|
41
41
|
"x-amz-target": "SpencerFrontendService.CreateRepository",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_CreateRepositoryRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_CreateRepositoryCommand = se_CreateRepositoryCommand;
|
|
48
|
+
const se_DeleteRepositoryCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.1",
|
|
51
51
|
"x-amz-target": "SpencerFrontendService.DeleteRepository",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_DeleteRepositoryRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_DeleteRepositoryCommand = se_DeleteRepositoryCommand;
|
|
58
|
+
const se_DeleteRepositoryPolicyCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.1",
|
|
61
61
|
"x-amz-target": "SpencerFrontendService.DeleteRepositoryPolicy",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_DeleteRepositoryPolicyRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_DeleteRepositoryPolicyCommand = se_DeleteRepositoryPolicyCommand;
|
|
68
|
+
const se_DescribeImagesCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "SpencerFrontendService.DescribeImages",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DescribeImagesRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_DescribeImagesCommand = se_DescribeImagesCommand;
|
|
78
|
+
const se_DescribeImageTagsCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "SpencerFrontendService.DescribeImageTags",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_DescribeImageTagsRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_DescribeImageTagsCommand = se_DescribeImageTagsCommand;
|
|
88
|
+
const se_DescribeRegistriesCommand = async (input, context) => {
|
|
89
89
|
const headers = {
|
|
90
90
|
"content-type": "application/x-amz-json-1.1",
|
|
91
91
|
"x-amz-target": "SpencerFrontendService.DescribeRegistries",
|
|
92
92
|
};
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(se_DescribeRegistriesRequest(input, context));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_DescribeRegistriesCommand = se_DescribeRegistriesCommand;
|
|
98
|
+
const se_DescribeRepositoriesCommand = async (input, context) => {
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/x-amz-json-1.1",
|
|
101
101
|
"x-amz-target": "SpencerFrontendService.DescribeRepositories",
|
|
102
102
|
};
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(se_DescribeRepositoriesRequest(input, context));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_DescribeRepositoriesCommand = se_DescribeRepositoriesCommand;
|
|
108
|
+
const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
109
109
|
const headers = {
|
|
110
110
|
"content-type": "application/x-amz-json-1.1",
|
|
111
111
|
"x-amz-target": "SpencerFrontendService.GetAuthorizationToken",
|
|
112
112
|
};
|
|
113
113
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
114
|
+
body = JSON.stringify(se_GetAuthorizationTokenRequest(input, context));
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_GetAuthorizationTokenCommand = se_GetAuthorizationTokenCommand;
|
|
118
|
+
const se_GetRegistryCatalogDataCommand = async (input, context) => {
|
|
119
119
|
const headers = {
|
|
120
120
|
"content-type": "application/x-amz-json-1.1",
|
|
121
121
|
"x-amz-target": "SpencerFrontendService.GetRegistryCatalogData",
|
|
122
122
|
};
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify(se_GetRegistryCatalogDataRequest(input, context));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_GetRegistryCatalogDataCommand = se_GetRegistryCatalogDataCommand;
|
|
128
|
+
const se_GetRepositoryCatalogDataCommand = async (input, context) => {
|
|
129
129
|
const headers = {
|
|
130
130
|
"content-type": "application/x-amz-json-1.1",
|
|
131
131
|
"x-amz-target": "SpencerFrontendService.GetRepositoryCatalogData",
|
|
132
132
|
};
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(se_GetRepositoryCatalogDataRequest(input, context));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_GetRepositoryCatalogDataCommand = se_GetRepositoryCatalogDataCommand;
|
|
138
|
+
const se_GetRepositoryPolicyCommand = async (input, context) => {
|
|
139
139
|
const headers = {
|
|
140
140
|
"content-type": "application/x-amz-json-1.1",
|
|
141
141
|
"x-amz-target": "SpencerFrontendService.GetRepositoryPolicy",
|
|
142
142
|
};
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify(se_GetRepositoryPolicyRequest(input, context));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
|
-
exports.
|
|
148
|
-
const
|
|
147
|
+
exports.se_GetRepositoryPolicyCommand = se_GetRepositoryPolicyCommand;
|
|
148
|
+
const se_InitiateLayerUploadCommand = async (input, context) => {
|
|
149
149
|
const headers = {
|
|
150
150
|
"content-type": "application/x-amz-json-1.1",
|
|
151
151
|
"x-amz-target": "SpencerFrontendService.InitiateLayerUpload",
|
|
152
152
|
};
|
|
153
153
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
154
|
+
body = JSON.stringify(se_InitiateLayerUploadRequest(input, context));
|
|
155
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
156
|
};
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
157
|
+
exports.se_InitiateLayerUploadCommand = se_InitiateLayerUploadCommand;
|
|
158
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.1",
|
|
161
161
|
"x-amz-target": "SpencerFrontendService.ListTagsForResource",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
exports.
|
|
168
|
-
const
|
|
167
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
168
|
+
const se_PutImageCommand = async (input, context) => {
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/x-amz-json-1.1",
|
|
171
171
|
"x-amz-target": "SpencerFrontendService.PutImage",
|
|
172
172
|
};
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify(se_PutImageRequest(input, context));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
exports.
|
|
178
|
-
const
|
|
177
|
+
exports.se_PutImageCommand = se_PutImageCommand;
|
|
178
|
+
const se_PutRegistryCatalogDataCommand = async (input, context) => {
|
|
179
179
|
const headers = {
|
|
180
180
|
"content-type": "application/x-amz-json-1.1",
|
|
181
181
|
"x-amz-target": "SpencerFrontendService.PutRegistryCatalogData",
|
|
182
182
|
};
|
|
183
183
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
184
|
+
body = JSON.stringify(se_PutRegistryCatalogDataRequest(input, context));
|
|
185
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
186
|
};
|
|
187
|
-
exports.
|
|
188
|
-
const
|
|
187
|
+
exports.se_PutRegistryCatalogDataCommand = se_PutRegistryCatalogDataCommand;
|
|
188
|
+
const se_PutRepositoryCatalogDataCommand = async (input, context) => {
|
|
189
189
|
const headers = {
|
|
190
190
|
"content-type": "application/x-amz-json-1.1",
|
|
191
191
|
"x-amz-target": "SpencerFrontendService.PutRepositoryCatalogData",
|
|
192
192
|
};
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(se_PutRepositoryCatalogDataRequest(input, context));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
|
-
exports.
|
|
198
|
-
const
|
|
197
|
+
exports.se_PutRepositoryCatalogDataCommand = se_PutRepositoryCatalogDataCommand;
|
|
198
|
+
const se_SetRepositoryPolicyCommand = async (input, context) => {
|
|
199
199
|
const headers = {
|
|
200
200
|
"content-type": "application/x-amz-json-1.1",
|
|
201
201
|
"x-amz-target": "SpencerFrontendService.SetRepositoryPolicy",
|
|
202
202
|
};
|
|
203
203
|
let body;
|
|
204
|
-
body = JSON.stringify(
|
|
204
|
+
body = JSON.stringify(se_SetRepositoryPolicyRequest(input, context));
|
|
205
205
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
206
|
};
|
|
207
|
-
exports.
|
|
208
|
-
const
|
|
207
|
+
exports.se_SetRepositoryPolicyCommand = se_SetRepositoryPolicyCommand;
|
|
208
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
209
209
|
const headers = {
|
|
210
210
|
"content-type": "application/x-amz-json-1.1",
|
|
211
211
|
"x-amz-target": "SpencerFrontendService.TagResource",
|
|
212
212
|
};
|
|
213
213
|
let body;
|
|
214
|
-
body = JSON.stringify(
|
|
214
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
215
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
216
|
};
|
|
217
|
-
exports.
|
|
218
|
-
const
|
|
217
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
218
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
219
219
|
const headers = {
|
|
220
220
|
"content-type": "application/x-amz-json-1.1",
|
|
221
221
|
"x-amz-target": "SpencerFrontendService.UntagResource",
|
|
222
222
|
};
|
|
223
223
|
let body;
|
|
224
|
-
body = JSON.stringify(
|
|
224
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
225
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
226
|
};
|
|
227
|
-
exports.
|
|
228
|
-
const
|
|
227
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
228
|
+
const se_UploadLayerPartCommand = async (input, context) => {
|
|
229
229
|
const headers = {
|
|
230
230
|
"content-type": "application/x-amz-json-1.1",
|
|
231
231
|
"x-amz-target": "SpencerFrontendService.UploadLayerPart",
|
|
232
232
|
};
|
|
233
233
|
let body;
|
|
234
|
-
body = JSON.stringify(
|
|
234
|
+
body = JSON.stringify(se_UploadLayerPartRequest(input, context));
|
|
235
235
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
236
|
};
|
|
237
|
-
exports.
|
|
238
|
-
const
|
|
237
|
+
exports.se_UploadLayerPartCommand = se_UploadLayerPartCommand;
|
|
238
|
+
const de_BatchCheckLayerAvailabilityCommand = async (output, context) => {
|
|
239
239
|
if (output.statusCode >= 300) {
|
|
240
|
-
return
|
|
240
|
+
return de_BatchCheckLayerAvailabilityCommandError(output, context);
|
|
241
241
|
}
|
|
242
242
|
const data = await parseBody(output.body, context);
|
|
243
243
|
let contents = {};
|
|
244
|
-
contents =
|
|
244
|
+
contents = de_BatchCheckLayerAvailabilityResponse(data, context);
|
|
245
245
|
const response = {
|
|
246
246
|
$metadata: deserializeMetadata(output),
|
|
247
247
|
...contents,
|
|
248
248
|
};
|
|
249
249
|
return Promise.resolve(response);
|
|
250
250
|
};
|
|
251
|
-
exports.
|
|
252
|
-
const
|
|
251
|
+
exports.de_BatchCheckLayerAvailabilityCommand = de_BatchCheckLayerAvailabilityCommand;
|
|
252
|
+
const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
|
|
253
253
|
const parsedOutput = {
|
|
254
254
|
...output,
|
|
255
255
|
body: await parseErrorBody(output.body, context),
|
|
@@ -258,19 +258,19 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
258
258
|
switch (errorCode) {
|
|
259
259
|
case "InvalidParameterException":
|
|
260
260
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
262
262
|
case "RegistryNotFoundException":
|
|
263
263
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
264
|
-
throw await
|
|
264
|
+
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
265
265
|
case "RepositoryNotFoundException":
|
|
266
266
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
267
|
-
throw await
|
|
267
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
268
268
|
case "ServerException":
|
|
269
269
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
270
|
-
throw await
|
|
270
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
271
271
|
case "UnsupportedCommandException":
|
|
272
272
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
273
|
-
throw await
|
|
273
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
274
274
|
default:
|
|
275
275
|
const parsedBody = parsedOutput.body;
|
|
276
276
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -281,21 +281,21 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
|
-
const
|
|
284
|
+
const de_BatchDeleteImageCommand = async (output, context) => {
|
|
285
285
|
if (output.statusCode >= 300) {
|
|
286
|
-
return
|
|
286
|
+
return de_BatchDeleteImageCommandError(output, context);
|
|
287
287
|
}
|
|
288
288
|
const data = await parseBody(output.body, context);
|
|
289
289
|
let contents = {};
|
|
290
|
-
contents =
|
|
290
|
+
contents = de_BatchDeleteImageResponse(data, context);
|
|
291
291
|
const response = {
|
|
292
292
|
$metadata: deserializeMetadata(output),
|
|
293
293
|
...contents,
|
|
294
294
|
};
|
|
295
295
|
return Promise.resolve(response);
|
|
296
296
|
};
|
|
297
|
-
exports.
|
|
298
|
-
const
|
|
297
|
+
exports.de_BatchDeleteImageCommand = de_BatchDeleteImageCommand;
|
|
298
|
+
const de_BatchDeleteImageCommandError = async (output, context) => {
|
|
299
299
|
const parsedOutput = {
|
|
300
300
|
...output,
|
|
301
301
|
body: await parseErrorBody(output.body, context),
|
|
@@ -304,16 +304,16 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
304
304
|
switch (errorCode) {
|
|
305
305
|
case "InvalidParameterException":
|
|
306
306
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
307
|
-
throw await
|
|
307
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
308
308
|
case "RepositoryNotFoundException":
|
|
309
309
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
310
|
-
throw await
|
|
310
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
311
311
|
case "ServerException":
|
|
312
312
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
313
|
-
throw await
|
|
313
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
314
314
|
case "UnsupportedCommandException":
|
|
315
315
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
316
|
-
throw await
|
|
316
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
317
317
|
default:
|
|
318
318
|
const parsedBody = parsedOutput.body;
|
|
319
319
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -324,21 +324,21 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
|
-
const
|
|
327
|
+
const de_CompleteLayerUploadCommand = async (output, context) => {
|
|
328
328
|
if (output.statusCode >= 300) {
|
|
329
|
-
return
|
|
329
|
+
return de_CompleteLayerUploadCommandError(output, context);
|
|
330
330
|
}
|
|
331
331
|
const data = await parseBody(output.body, context);
|
|
332
332
|
let contents = {};
|
|
333
|
-
contents =
|
|
333
|
+
contents = de_CompleteLayerUploadResponse(data, context);
|
|
334
334
|
const response = {
|
|
335
335
|
$metadata: deserializeMetadata(output),
|
|
336
336
|
...contents,
|
|
337
337
|
};
|
|
338
338
|
return Promise.resolve(response);
|
|
339
339
|
};
|
|
340
|
-
exports.
|
|
341
|
-
const
|
|
340
|
+
exports.de_CompleteLayerUploadCommand = de_CompleteLayerUploadCommand;
|
|
341
|
+
const de_CompleteLayerUploadCommandError = async (output, context) => {
|
|
342
342
|
const parsedOutput = {
|
|
343
343
|
...output,
|
|
344
344
|
body: await parseErrorBody(output.body, context),
|
|
@@ -347,34 +347,34 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
347
347
|
switch (errorCode) {
|
|
348
348
|
case "EmptyUploadException":
|
|
349
349
|
case "com.amazonaws.ecrpublic#EmptyUploadException":
|
|
350
|
-
throw await
|
|
350
|
+
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
351
351
|
case "InvalidLayerException":
|
|
352
352
|
case "com.amazonaws.ecrpublic#InvalidLayerException":
|
|
353
|
-
throw await
|
|
353
|
+
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
354
354
|
case "InvalidParameterException":
|
|
355
355
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
356
|
-
throw await
|
|
356
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
357
357
|
case "LayerAlreadyExistsException":
|
|
358
358
|
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException":
|
|
359
|
-
throw await
|
|
359
|
+
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
360
360
|
case "LayerPartTooSmallException":
|
|
361
361
|
case "com.amazonaws.ecrpublic#LayerPartTooSmallException":
|
|
362
|
-
throw await
|
|
362
|
+
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
363
363
|
case "RegistryNotFoundException":
|
|
364
364
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
365
|
-
throw await
|
|
365
|
+
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
366
366
|
case "RepositoryNotFoundException":
|
|
367
367
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
368
|
-
throw await
|
|
368
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
369
369
|
case "ServerException":
|
|
370
370
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
371
|
-
throw await
|
|
371
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
372
372
|
case "UnsupportedCommandException":
|
|
373
373
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
374
|
-
throw await
|
|
374
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
375
375
|
case "UploadNotFoundException":
|
|
376
376
|
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
377
|
-
throw await
|
|
377
|
+
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
378
378
|
default:
|
|
379
379
|
const parsedBody = parsedOutput.body;
|
|
380
380
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -385,21 +385,21 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
|
-
const
|
|
388
|
+
const de_CreateRepositoryCommand = async (output, context) => {
|
|
389
389
|
if (output.statusCode >= 300) {
|
|
390
|
-
return
|
|
390
|
+
return de_CreateRepositoryCommandError(output, context);
|
|
391
391
|
}
|
|
392
392
|
const data = await parseBody(output.body, context);
|
|
393
393
|
let contents = {};
|
|
394
|
-
contents =
|
|
394
|
+
contents = de_CreateRepositoryResponse(data, context);
|
|
395
395
|
const response = {
|
|
396
396
|
$metadata: deserializeMetadata(output),
|
|
397
397
|
...contents,
|
|
398
398
|
};
|
|
399
399
|
return Promise.resolve(response);
|
|
400
400
|
};
|
|
401
|
-
exports.
|
|
402
|
-
const
|
|
401
|
+
exports.de_CreateRepositoryCommand = de_CreateRepositoryCommand;
|
|
402
|
+
const de_CreateRepositoryCommandError = async (output, context) => {
|
|
403
403
|
const parsedOutput = {
|
|
404
404
|
...output,
|
|
405
405
|
body: await parseErrorBody(output.body, context),
|
|
@@ -408,25 +408,25 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
408
408
|
switch (errorCode) {
|
|
409
409
|
case "InvalidParameterException":
|
|
410
410
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
411
|
-
throw await
|
|
411
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
412
412
|
case "InvalidTagParameterException":
|
|
413
413
|
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
414
|
-
throw await
|
|
414
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
415
415
|
case "LimitExceededException":
|
|
416
416
|
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
417
|
-
throw await
|
|
417
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
418
418
|
case "RepositoryAlreadyExistsException":
|
|
419
419
|
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":
|
|
420
|
-
throw await
|
|
420
|
+
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
421
421
|
case "ServerException":
|
|
422
422
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
423
|
-
throw await
|
|
423
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
424
424
|
case "TooManyTagsException":
|
|
425
425
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
426
|
-
throw await
|
|
426
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
427
427
|
case "UnsupportedCommandException":
|
|
428
428
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
429
|
-
throw await
|
|
429
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
430
430
|
default:
|
|
431
431
|
const parsedBody = parsedOutput.body;
|
|
432
432
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -437,21 +437,21 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
const
|
|
440
|
+
const de_DeleteRepositoryCommand = async (output, context) => {
|
|
441
441
|
if (output.statusCode >= 300) {
|
|
442
|
-
return
|
|
442
|
+
return de_DeleteRepositoryCommandError(output, context);
|
|
443
443
|
}
|
|
444
444
|
const data = await parseBody(output.body, context);
|
|
445
445
|
let contents = {};
|
|
446
|
-
contents =
|
|
446
|
+
contents = de_DeleteRepositoryResponse(data, context);
|
|
447
447
|
const response = {
|
|
448
448
|
$metadata: deserializeMetadata(output),
|
|
449
449
|
...contents,
|
|
450
450
|
};
|
|
451
451
|
return Promise.resolve(response);
|
|
452
452
|
};
|
|
453
|
-
exports.
|
|
454
|
-
const
|
|
453
|
+
exports.de_DeleteRepositoryCommand = de_DeleteRepositoryCommand;
|
|
454
|
+
const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
455
455
|
const parsedOutput = {
|
|
456
456
|
...output,
|
|
457
457
|
body: await parseErrorBody(output.body, context),
|
|
@@ -460,19 +460,19 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
460
460
|
switch (errorCode) {
|
|
461
461
|
case "InvalidParameterException":
|
|
462
462
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
463
|
-
throw await
|
|
463
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
464
464
|
case "RepositoryNotEmptyException":
|
|
465
465
|
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException":
|
|
466
|
-
throw await
|
|
466
|
+
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
467
467
|
case "RepositoryNotFoundException":
|
|
468
468
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
469
|
-
throw await
|
|
469
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
470
470
|
case "ServerException":
|
|
471
471
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
472
|
-
throw await
|
|
472
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
473
473
|
case "UnsupportedCommandException":
|
|
474
474
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
475
|
-
throw await
|
|
475
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
476
476
|
default:
|
|
477
477
|
const parsedBody = parsedOutput.body;
|
|
478
478
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -483,21 +483,21 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
const
|
|
486
|
+
const de_DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
487
487
|
if (output.statusCode >= 300) {
|
|
488
|
-
return
|
|
488
|
+
return de_DeleteRepositoryPolicyCommandError(output, context);
|
|
489
489
|
}
|
|
490
490
|
const data = await parseBody(output.body, context);
|
|
491
491
|
let contents = {};
|
|
492
|
-
contents =
|
|
492
|
+
contents = de_DeleteRepositoryPolicyResponse(data, context);
|
|
493
493
|
const response = {
|
|
494
494
|
$metadata: deserializeMetadata(output),
|
|
495
495
|
...contents,
|
|
496
496
|
};
|
|
497
497
|
return Promise.resolve(response);
|
|
498
498
|
};
|
|
499
|
-
exports.
|
|
500
|
-
const
|
|
499
|
+
exports.de_DeleteRepositoryPolicyCommand = de_DeleteRepositoryPolicyCommand;
|
|
500
|
+
const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
|
|
501
501
|
const parsedOutput = {
|
|
502
502
|
...output,
|
|
503
503
|
body: await parseErrorBody(output.body, context),
|
|
@@ -506,19 +506,19 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
506
506
|
switch (errorCode) {
|
|
507
507
|
case "InvalidParameterException":
|
|
508
508
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
509
|
-
throw await
|
|
509
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
510
510
|
case "RepositoryNotFoundException":
|
|
511
511
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
512
|
-
throw await
|
|
512
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
513
513
|
case "RepositoryPolicyNotFoundException":
|
|
514
514
|
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
515
|
-
throw await
|
|
515
|
+
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
516
516
|
case "ServerException":
|
|
517
517
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
518
|
-
throw await
|
|
518
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
519
519
|
case "UnsupportedCommandException":
|
|
520
520
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
521
|
-
throw await
|
|
521
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
522
522
|
default:
|
|
523
523
|
const parsedBody = parsedOutput.body;
|
|
524
524
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -529,21 +529,21 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
|
-
const
|
|
532
|
+
const de_DescribeImagesCommand = async (output, context) => {
|
|
533
533
|
if (output.statusCode >= 300) {
|
|
534
|
-
return
|
|
534
|
+
return de_DescribeImagesCommandError(output, context);
|
|
535
535
|
}
|
|
536
536
|
const data = await parseBody(output.body, context);
|
|
537
537
|
let contents = {};
|
|
538
|
-
contents =
|
|
538
|
+
contents = de_DescribeImagesResponse(data, context);
|
|
539
539
|
const response = {
|
|
540
540
|
$metadata: deserializeMetadata(output),
|
|
541
541
|
...contents,
|
|
542
542
|
};
|
|
543
543
|
return Promise.resolve(response);
|
|
544
544
|
};
|
|
545
|
-
exports.
|
|
546
|
-
const
|
|
545
|
+
exports.de_DescribeImagesCommand = de_DescribeImagesCommand;
|
|
546
|
+
const de_DescribeImagesCommandError = async (output, context) => {
|
|
547
547
|
const parsedOutput = {
|
|
548
548
|
...output,
|
|
549
549
|
body: await parseErrorBody(output.body, context),
|
|
@@ -552,19 +552,19 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
552
552
|
switch (errorCode) {
|
|
553
553
|
case "ImageNotFoundException":
|
|
554
554
|
case "com.amazonaws.ecrpublic#ImageNotFoundException":
|
|
555
|
-
throw await
|
|
555
|
+
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
556
556
|
case "InvalidParameterException":
|
|
557
557
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
558
|
-
throw await
|
|
558
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
559
559
|
case "RepositoryNotFoundException":
|
|
560
560
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
561
|
-
throw await
|
|
561
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
562
562
|
case "ServerException":
|
|
563
563
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
564
|
-
throw await
|
|
564
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
565
565
|
case "UnsupportedCommandException":
|
|
566
566
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
567
|
-
throw await
|
|
567
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
568
568
|
default:
|
|
569
569
|
const parsedBody = parsedOutput.body;
|
|
570
570
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -575,21 +575,21 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
577
|
};
|
|
578
|
-
const
|
|
578
|
+
const de_DescribeImageTagsCommand = async (output, context) => {
|
|
579
579
|
if (output.statusCode >= 300) {
|
|
580
|
-
return
|
|
580
|
+
return de_DescribeImageTagsCommandError(output, context);
|
|
581
581
|
}
|
|
582
582
|
const data = await parseBody(output.body, context);
|
|
583
583
|
let contents = {};
|
|
584
|
-
contents =
|
|
584
|
+
contents = de_DescribeImageTagsResponse(data, context);
|
|
585
585
|
const response = {
|
|
586
586
|
$metadata: deserializeMetadata(output),
|
|
587
587
|
...contents,
|
|
588
588
|
};
|
|
589
589
|
return Promise.resolve(response);
|
|
590
590
|
};
|
|
591
|
-
exports.
|
|
592
|
-
const
|
|
591
|
+
exports.de_DescribeImageTagsCommand = de_DescribeImageTagsCommand;
|
|
592
|
+
const de_DescribeImageTagsCommandError = async (output, context) => {
|
|
593
593
|
const parsedOutput = {
|
|
594
594
|
...output,
|
|
595
595
|
body: await parseErrorBody(output.body, context),
|
|
@@ -598,16 +598,16 @@ const deserializeAws_json1_1DescribeImageTagsCommandError = async (output, conte
|
|
|
598
598
|
switch (errorCode) {
|
|
599
599
|
case "InvalidParameterException":
|
|
600
600
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
601
|
-
throw await
|
|
601
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
602
602
|
case "RepositoryNotFoundException":
|
|
603
603
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
604
|
-
throw await
|
|
604
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
605
605
|
case "ServerException":
|
|
606
606
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
607
|
-
throw await
|
|
607
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
608
608
|
case "UnsupportedCommandException":
|
|
609
609
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
610
|
-
throw await
|
|
610
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
611
611
|
default:
|
|
612
612
|
const parsedBody = parsedOutput.body;
|
|
613
613
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -618,21 +618,21 @@ const deserializeAws_json1_1DescribeImageTagsCommandError = async (output, conte
|
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
|
-
const
|
|
621
|
+
const de_DescribeRegistriesCommand = async (output, context) => {
|
|
622
622
|
if (output.statusCode >= 300) {
|
|
623
|
-
return
|
|
623
|
+
return de_DescribeRegistriesCommandError(output, context);
|
|
624
624
|
}
|
|
625
625
|
const data = await parseBody(output.body, context);
|
|
626
626
|
let contents = {};
|
|
627
|
-
contents =
|
|
627
|
+
contents = de_DescribeRegistriesResponse(data, context);
|
|
628
628
|
const response = {
|
|
629
629
|
$metadata: deserializeMetadata(output),
|
|
630
630
|
...contents,
|
|
631
631
|
};
|
|
632
632
|
return Promise.resolve(response);
|
|
633
633
|
};
|
|
634
|
-
exports.
|
|
635
|
-
const
|
|
634
|
+
exports.de_DescribeRegistriesCommand = de_DescribeRegistriesCommand;
|
|
635
|
+
const de_DescribeRegistriesCommandError = async (output, context) => {
|
|
636
636
|
const parsedOutput = {
|
|
637
637
|
...output,
|
|
638
638
|
body: await parseErrorBody(output.body, context),
|
|
@@ -641,13 +641,13 @@ const deserializeAws_json1_1DescribeRegistriesCommandError = async (output, cont
|
|
|
641
641
|
switch (errorCode) {
|
|
642
642
|
case "InvalidParameterException":
|
|
643
643
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
644
|
-
throw await
|
|
644
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
645
645
|
case "ServerException":
|
|
646
646
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
647
|
-
throw await
|
|
647
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
648
648
|
case "UnsupportedCommandException":
|
|
649
649
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
650
|
-
throw await
|
|
650
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
651
651
|
default:
|
|
652
652
|
const parsedBody = parsedOutput.body;
|
|
653
653
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -658,21 +658,21 @@ const deserializeAws_json1_1DescribeRegistriesCommandError = async (output, cont
|
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
|
-
const
|
|
661
|
+
const de_DescribeRepositoriesCommand = async (output, context) => {
|
|
662
662
|
if (output.statusCode >= 300) {
|
|
663
|
-
return
|
|
663
|
+
return de_DescribeRepositoriesCommandError(output, context);
|
|
664
664
|
}
|
|
665
665
|
const data = await parseBody(output.body, context);
|
|
666
666
|
let contents = {};
|
|
667
|
-
contents =
|
|
667
|
+
contents = de_DescribeRepositoriesResponse(data, context);
|
|
668
668
|
const response = {
|
|
669
669
|
$metadata: deserializeMetadata(output),
|
|
670
670
|
...contents,
|
|
671
671
|
};
|
|
672
672
|
return Promise.resolve(response);
|
|
673
673
|
};
|
|
674
|
-
exports.
|
|
675
|
-
const
|
|
674
|
+
exports.de_DescribeRepositoriesCommand = de_DescribeRepositoriesCommand;
|
|
675
|
+
const de_DescribeRepositoriesCommandError = async (output, context) => {
|
|
676
676
|
const parsedOutput = {
|
|
677
677
|
...output,
|
|
678
678
|
body: await parseErrorBody(output.body, context),
|
|
@@ -681,16 +681,16 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
681
681
|
switch (errorCode) {
|
|
682
682
|
case "InvalidParameterException":
|
|
683
683
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
685
685
|
case "RepositoryNotFoundException":
|
|
686
686
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
687
|
-
throw await
|
|
687
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
688
688
|
case "ServerException":
|
|
689
689
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
690
|
-
throw await
|
|
690
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
691
691
|
case "UnsupportedCommandException":
|
|
692
692
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
693
|
-
throw await
|
|
693
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
694
694
|
default:
|
|
695
695
|
const parsedBody = parsedOutput.body;
|
|
696
696
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -701,21 +701,21 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
703
|
};
|
|
704
|
-
const
|
|
704
|
+
const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
705
705
|
if (output.statusCode >= 300) {
|
|
706
|
-
return
|
|
706
|
+
return de_GetAuthorizationTokenCommandError(output, context);
|
|
707
707
|
}
|
|
708
708
|
const data = await parseBody(output.body, context);
|
|
709
709
|
let contents = {};
|
|
710
|
-
contents =
|
|
710
|
+
contents = de_GetAuthorizationTokenResponse(data, context);
|
|
711
711
|
const response = {
|
|
712
712
|
$metadata: deserializeMetadata(output),
|
|
713
713
|
...contents,
|
|
714
714
|
};
|
|
715
715
|
return Promise.resolve(response);
|
|
716
716
|
};
|
|
717
|
-
exports.
|
|
718
|
-
const
|
|
717
|
+
exports.de_GetAuthorizationTokenCommand = de_GetAuthorizationTokenCommand;
|
|
718
|
+
const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
719
719
|
const parsedOutput = {
|
|
720
720
|
...output,
|
|
721
721
|
body: await parseErrorBody(output.body, context),
|
|
@@ -724,13 +724,13 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
724
724
|
switch (errorCode) {
|
|
725
725
|
case "InvalidParameterException":
|
|
726
726
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
727
|
-
throw await
|
|
727
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
728
728
|
case "ServerException":
|
|
729
729
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
730
|
-
throw await
|
|
730
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
731
731
|
case "UnsupportedCommandException":
|
|
732
732
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
733
|
-
throw await
|
|
733
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
734
734
|
default:
|
|
735
735
|
const parsedBody = parsedOutput.body;
|
|
736
736
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -741,21 +741,21 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
|
-
const
|
|
744
|
+
const de_GetRegistryCatalogDataCommand = async (output, context) => {
|
|
745
745
|
if (output.statusCode >= 300) {
|
|
746
|
-
return
|
|
746
|
+
return de_GetRegistryCatalogDataCommandError(output, context);
|
|
747
747
|
}
|
|
748
748
|
const data = await parseBody(output.body, context);
|
|
749
749
|
let contents = {};
|
|
750
|
-
contents =
|
|
750
|
+
contents = de_GetRegistryCatalogDataResponse(data, context);
|
|
751
751
|
const response = {
|
|
752
752
|
$metadata: deserializeMetadata(output),
|
|
753
753
|
...contents,
|
|
754
754
|
};
|
|
755
755
|
return Promise.resolve(response);
|
|
756
756
|
};
|
|
757
|
-
exports.
|
|
758
|
-
const
|
|
757
|
+
exports.de_GetRegistryCatalogDataCommand = de_GetRegistryCatalogDataCommand;
|
|
758
|
+
const de_GetRegistryCatalogDataCommandError = async (output, context) => {
|
|
759
759
|
const parsedOutput = {
|
|
760
760
|
...output,
|
|
761
761
|
body: await parseErrorBody(output.body, context),
|
|
@@ -764,10 +764,10 @@ const deserializeAws_json1_1GetRegistryCatalogDataCommandError = async (output,
|
|
|
764
764
|
switch (errorCode) {
|
|
765
765
|
case "ServerException":
|
|
766
766
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
767
|
-
throw await
|
|
767
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
768
768
|
case "UnsupportedCommandException":
|
|
769
769
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
770
|
-
throw await
|
|
770
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
771
771
|
default:
|
|
772
772
|
const parsedBody = parsedOutput.body;
|
|
773
773
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -778,21 +778,21 @@ const deserializeAws_json1_1GetRegistryCatalogDataCommandError = async (output,
|
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
|
-
const
|
|
781
|
+
const de_GetRepositoryCatalogDataCommand = async (output, context) => {
|
|
782
782
|
if (output.statusCode >= 300) {
|
|
783
|
-
return
|
|
783
|
+
return de_GetRepositoryCatalogDataCommandError(output, context);
|
|
784
784
|
}
|
|
785
785
|
const data = await parseBody(output.body, context);
|
|
786
786
|
let contents = {};
|
|
787
|
-
contents =
|
|
787
|
+
contents = de_GetRepositoryCatalogDataResponse(data, context);
|
|
788
788
|
const response = {
|
|
789
789
|
$metadata: deserializeMetadata(output),
|
|
790
790
|
...contents,
|
|
791
791
|
};
|
|
792
792
|
return Promise.resolve(response);
|
|
793
793
|
};
|
|
794
|
-
exports.
|
|
795
|
-
const
|
|
794
|
+
exports.de_GetRepositoryCatalogDataCommand = de_GetRepositoryCatalogDataCommand;
|
|
795
|
+
const de_GetRepositoryCatalogDataCommandError = async (output, context) => {
|
|
796
796
|
const parsedOutput = {
|
|
797
797
|
...output,
|
|
798
798
|
body: await parseErrorBody(output.body, context),
|
|
@@ -801,19 +801,19 @@ const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (output
|
|
|
801
801
|
switch (errorCode) {
|
|
802
802
|
case "InvalidParameterException":
|
|
803
803
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
804
|
-
throw await
|
|
804
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
805
805
|
case "RepositoryCatalogDataNotFoundException":
|
|
806
806
|
case "com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":
|
|
807
|
-
throw await
|
|
807
|
+
throw await de_RepositoryCatalogDataNotFoundExceptionRes(parsedOutput, context);
|
|
808
808
|
case "RepositoryNotFoundException":
|
|
809
809
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
810
|
-
throw await
|
|
810
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
811
811
|
case "ServerException":
|
|
812
812
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
813
|
-
throw await
|
|
813
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
814
814
|
case "UnsupportedCommandException":
|
|
815
815
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
816
|
-
throw await
|
|
816
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
817
817
|
default:
|
|
818
818
|
const parsedBody = parsedOutput.body;
|
|
819
819
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -824,21 +824,21 @@ const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (output
|
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
};
|
|
827
|
-
const
|
|
827
|
+
const de_GetRepositoryPolicyCommand = async (output, context) => {
|
|
828
828
|
if (output.statusCode >= 300) {
|
|
829
|
-
return
|
|
829
|
+
return de_GetRepositoryPolicyCommandError(output, context);
|
|
830
830
|
}
|
|
831
831
|
const data = await parseBody(output.body, context);
|
|
832
832
|
let contents = {};
|
|
833
|
-
contents =
|
|
833
|
+
contents = de_GetRepositoryPolicyResponse(data, context);
|
|
834
834
|
const response = {
|
|
835
835
|
$metadata: deserializeMetadata(output),
|
|
836
836
|
...contents,
|
|
837
837
|
};
|
|
838
838
|
return Promise.resolve(response);
|
|
839
839
|
};
|
|
840
|
-
exports.
|
|
841
|
-
const
|
|
840
|
+
exports.de_GetRepositoryPolicyCommand = de_GetRepositoryPolicyCommand;
|
|
841
|
+
const de_GetRepositoryPolicyCommandError = async (output, context) => {
|
|
842
842
|
const parsedOutput = {
|
|
843
843
|
...output,
|
|
844
844
|
body: await parseErrorBody(output.body, context),
|
|
@@ -847,19 +847,19 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
847
847
|
switch (errorCode) {
|
|
848
848
|
case "InvalidParameterException":
|
|
849
849
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
850
|
-
throw await
|
|
850
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
851
851
|
case "RepositoryNotFoundException":
|
|
852
852
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
853
|
-
throw await
|
|
853
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
854
854
|
case "RepositoryPolicyNotFoundException":
|
|
855
855
|
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
856
|
-
throw await
|
|
856
|
+
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
857
857
|
case "ServerException":
|
|
858
858
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
859
|
-
throw await
|
|
859
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
860
860
|
case "UnsupportedCommandException":
|
|
861
861
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
862
|
-
throw await
|
|
862
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
863
863
|
default:
|
|
864
864
|
const parsedBody = parsedOutput.body;
|
|
865
865
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -870,21 +870,21 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
};
|
|
873
|
-
const
|
|
873
|
+
const de_InitiateLayerUploadCommand = async (output, context) => {
|
|
874
874
|
if (output.statusCode >= 300) {
|
|
875
|
-
return
|
|
875
|
+
return de_InitiateLayerUploadCommandError(output, context);
|
|
876
876
|
}
|
|
877
877
|
const data = await parseBody(output.body, context);
|
|
878
878
|
let contents = {};
|
|
879
|
-
contents =
|
|
879
|
+
contents = de_InitiateLayerUploadResponse(data, context);
|
|
880
880
|
const response = {
|
|
881
881
|
$metadata: deserializeMetadata(output),
|
|
882
882
|
...contents,
|
|
883
883
|
};
|
|
884
884
|
return Promise.resolve(response);
|
|
885
885
|
};
|
|
886
|
-
exports.
|
|
887
|
-
const
|
|
886
|
+
exports.de_InitiateLayerUploadCommand = de_InitiateLayerUploadCommand;
|
|
887
|
+
const de_InitiateLayerUploadCommandError = async (output, context) => {
|
|
888
888
|
const parsedOutput = {
|
|
889
889
|
...output,
|
|
890
890
|
body: await parseErrorBody(output.body, context),
|
|
@@ -893,19 +893,19 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
893
893
|
switch (errorCode) {
|
|
894
894
|
case "InvalidParameterException":
|
|
895
895
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
896
|
-
throw await
|
|
896
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
897
897
|
case "RegistryNotFoundException":
|
|
898
898
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
899
|
-
throw await
|
|
899
|
+
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
900
900
|
case "RepositoryNotFoundException":
|
|
901
901
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
902
|
-
throw await
|
|
902
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
903
903
|
case "ServerException":
|
|
904
904
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
905
|
-
throw await
|
|
905
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
906
906
|
case "UnsupportedCommandException":
|
|
907
907
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
908
|
-
throw await
|
|
908
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
909
909
|
default:
|
|
910
910
|
const parsedBody = parsedOutput.body;
|
|
911
911
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -916,21 +916,21 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
|
-
const
|
|
919
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
920
920
|
if (output.statusCode >= 300) {
|
|
921
|
-
return
|
|
921
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
922
922
|
}
|
|
923
923
|
const data = await parseBody(output.body, context);
|
|
924
924
|
let contents = {};
|
|
925
|
-
contents =
|
|
925
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
926
926
|
const response = {
|
|
927
927
|
$metadata: deserializeMetadata(output),
|
|
928
928
|
...contents,
|
|
929
929
|
};
|
|
930
930
|
return Promise.resolve(response);
|
|
931
931
|
};
|
|
932
|
-
exports.
|
|
933
|
-
const
|
|
932
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
933
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
934
934
|
const parsedOutput = {
|
|
935
935
|
...output,
|
|
936
936
|
body: await parseErrorBody(output.body, context),
|
|
@@ -939,16 +939,16 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
939
939
|
switch (errorCode) {
|
|
940
940
|
case "InvalidParameterException":
|
|
941
941
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
942
|
-
throw await
|
|
942
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
943
943
|
case "RepositoryNotFoundException":
|
|
944
944
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
945
|
-
throw await
|
|
945
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
946
946
|
case "ServerException":
|
|
947
947
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
948
|
-
throw await
|
|
948
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
949
949
|
case "UnsupportedCommandException":
|
|
950
950
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
951
|
-
throw await
|
|
951
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
952
952
|
default:
|
|
953
953
|
const parsedBody = parsedOutput.body;
|
|
954
954
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -959,21 +959,21 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
};
|
|
962
|
-
const
|
|
962
|
+
const de_PutImageCommand = async (output, context) => {
|
|
963
963
|
if (output.statusCode >= 300) {
|
|
964
|
-
return
|
|
964
|
+
return de_PutImageCommandError(output, context);
|
|
965
965
|
}
|
|
966
966
|
const data = await parseBody(output.body, context);
|
|
967
967
|
let contents = {};
|
|
968
|
-
contents =
|
|
968
|
+
contents = de_PutImageResponse(data, context);
|
|
969
969
|
const response = {
|
|
970
970
|
$metadata: deserializeMetadata(output),
|
|
971
971
|
...contents,
|
|
972
972
|
};
|
|
973
973
|
return Promise.resolve(response);
|
|
974
974
|
};
|
|
975
|
-
exports.
|
|
976
|
-
const
|
|
975
|
+
exports.de_PutImageCommand = de_PutImageCommand;
|
|
976
|
+
const de_PutImageCommandError = async (output, context) => {
|
|
977
977
|
const parsedOutput = {
|
|
978
978
|
...output,
|
|
979
979
|
body: await parseErrorBody(output.body, context),
|
|
@@ -982,37 +982,37 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
982
982
|
switch (errorCode) {
|
|
983
983
|
case "ImageAlreadyExistsException":
|
|
984
984
|
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException":
|
|
985
|
-
throw await
|
|
985
|
+
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
986
986
|
case "ImageDigestDoesNotMatchException":
|
|
987
987
|
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":
|
|
988
|
-
throw await
|
|
988
|
+
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
989
989
|
case "ImageTagAlreadyExistsException":
|
|
990
990
|
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":
|
|
991
|
-
throw await
|
|
991
|
+
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
992
992
|
case "InvalidParameterException":
|
|
993
993
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
994
|
-
throw await
|
|
994
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
995
995
|
case "LayersNotFoundException":
|
|
996
996
|
case "com.amazonaws.ecrpublic#LayersNotFoundException":
|
|
997
|
-
throw await
|
|
997
|
+
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
998
998
|
case "LimitExceededException":
|
|
999
999
|
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1000
|
-
throw await
|
|
1000
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1001
1001
|
case "ReferencedImagesNotFoundException":
|
|
1002
1002
|
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":
|
|
1003
|
-
throw await
|
|
1003
|
+
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
1004
1004
|
case "RegistryNotFoundException":
|
|
1005
1005
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1006
|
-
throw await
|
|
1006
|
+
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
1007
1007
|
case "RepositoryNotFoundException":
|
|
1008
1008
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1009
|
-
throw await
|
|
1009
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1010
1010
|
case "ServerException":
|
|
1011
1011
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1012
|
-
throw await
|
|
1012
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1013
1013
|
case "UnsupportedCommandException":
|
|
1014
1014
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1015
|
-
throw await
|
|
1015
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1016
1016
|
default:
|
|
1017
1017
|
const parsedBody = parsedOutput.body;
|
|
1018
1018
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1023,21 +1023,21 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
|
-
const
|
|
1026
|
+
const de_PutRegistryCatalogDataCommand = async (output, context) => {
|
|
1027
1027
|
if (output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
1028
|
+
return de_PutRegistryCatalogDataCommandError(output, context);
|
|
1029
1029
|
}
|
|
1030
1030
|
const data = await parseBody(output.body, context);
|
|
1031
1031
|
let contents = {};
|
|
1032
|
-
contents =
|
|
1032
|
+
contents = de_PutRegistryCatalogDataResponse(data, context);
|
|
1033
1033
|
const response = {
|
|
1034
1034
|
$metadata: deserializeMetadata(output),
|
|
1035
1035
|
...contents,
|
|
1036
1036
|
};
|
|
1037
1037
|
return Promise.resolve(response);
|
|
1038
1038
|
};
|
|
1039
|
-
exports.
|
|
1040
|
-
const
|
|
1039
|
+
exports.de_PutRegistryCatalogDataCommand = de_PutRegistryCatalogDataCommand;
|
|
1040
|
+
const de_PutRegistryCatalogDataCommandError = async (output, context) => {
|
|
1041
1041
|
const parsedOutput = {
|
|
1042
1042
|
...output,
|
|
1043
1043
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1046,13 +1046,13 @@ const deserializeAws_json1_1PutRegistryCatalogDataCommandError = async (output,
|
|
|
1046
1046
|
switch (errorCode) {
|
|
1047
1047
|
case "InvalidParameterException":
|
|
1048
1048
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1049
|
-
throw await
|
|
1049
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1050
1050
|
case "ServerException":
|
|
1051
1051
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1052
|
-
throw await
|
|
1052
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1053
1053
|
case "UnsupportedCommandException":
|
|
1054
1054
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1055
|
-
throw await
|
|
1055
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1056
1056
|
default:
|
|
1057
1057
|
const parsedBody = parsedOutput.body;
|
|
1058
1058
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1063,21 +1063,21 @@ const deserializeAws_json1_1PutRegistryCatalogDataCommandError = async (output,
|
|
|
1063
1063
|
});
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
|
-
const
|
|
1066
|
+
const de_PutRepositoryCatalogDataCommand = async (output, context) => {
|
|
1067
1067
|
if (output.statusCode >= 300) {
|
|
1068
|
-
return
|
|
1068
|
+
return de_PutRepositoryCatalogDataCommandError(output, context);
|
|
1069
1069
|
}
|
|
1070
1070
|
const data = await parseBody(output.body, context);
|
|
1071
1071
|
let contents = {};
|
|
1072
|
-
contents =
|
|
1072
|
+
contents = de_PutRepositoryCatalogDataResponse(data, context);
|
|
1073
1073
|
const response = {
|
|
1074
1074
|
$metadata: deserializeMetadata(output),
|
|
1075
1075
|
...contents,
|
|
1076
1076
|
};
|
|
1077
1077
|
return Promise.resolve(response);
|
|
1078
1078
|
};
|
|
1079
|
-
exports.
|
|
1080
|
-
const
|
|
1079
|
+
exports.de_PutRepositoryCatalogDataCommand = de_PutRepositoryCatalogDataCommand;
|
|
1080
|
+
const de_PutRepositoryCatalogDataCommandError = async (output, context) => {
|
|
1081
1081
|
const parsedOutput = {
|
|
1082
1082
|
...output,
|
|
1083
1083
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1086,16 +1086,16 @@ const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (output
|
|
|
1086
1086
|
switch (errorCode) {
|
|
1087
1087
|
case "InvalidParameterException":
|
|
1088
1088
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1089
|
-
throw await
|
|
1089
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1090
1090
|
case "RepositoryNotFoundException":
|
|
1091
1091
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1092
|
-
throw await
|
|
1092
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1093
1093
|
case "ServerException":
|
|
1094
1094
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1095
|
-
throw await
|
|
1095
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1096
1096
|
case "UnsupportedCommandException":
|
|
1097
1097
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1098
|
-
throw await
|
|
1098
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1099
1099
|
default:
|
|
1100
1100
|
const parsedBody = parsedOutput.body;
|
|
1101
1101
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1106,21 +1106,21 @@ const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (output
|
|
|
1106
1106
|
});
|
|
1107
1107
|
}
|
|
1108
1108
|
};
|
|
1109
|
-
const
|
|
1109
|
+
const de_SetRepositoryPolicyCommand = async (output, context) => {
|
|
1110
1110
|
if (output.statusCode >= 300) {
|
|
1111
|
-
return
|
|
1111
|
+
return de_SetRepositoryPolicyCommandError(output, context);
|
|
1112
1112
|
}
|
|
1113
1113
|
const data = await parseBody(output.body, context);
|
|
1114
1114
|
let contents = {};
|
|
1115
|
-
contents =
|
|
1115
|
+
contents = de_SetRepositoryPolicyResponse(data, context);
|
|
1116
1116
|
const response = {
|
|
1117
1117
|
$metadata: deserializeMetadata(output),
|
|
1118
1118
|
...contents,
|
|
1119
1119
|
};
|
|
1120
1120
|
return Promise.resolve(response);
|
|
1121
1121
|
};
|
|
1122
|
-
exports.
|
|
1123
|
-
const
|
|
1122
|
+
exports.de_SetRepositoryPolicyCommand = de_SetRepositoryPolicyCommand;
|
|
1123
|
+
const de_SetRepositoryPolicyCommandError = async (output, context) => {
|
|
1124
1124
|
const parsedOutput = {
|
|
1125
1125
|
...output,
|
|
1126
1126
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1129,16 +1129,16 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1129
1129
|
switch (errorCode) {
|
|
1130
1130
|
case "InvalidParameterException":
|
|
1131
1131
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1132
|
-
throw await
|
|
1132
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1133
1133
|
case "RepositoryNotFoundException":
|
|
1134
1134
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1135
|
-
throw await
|
|
1135
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1136
1136
|
case "ServerException":
|
|
1137
1137
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1138
|
-
throw await
|
|
1138
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1139
1139
|
case "UnsupportedCommandException":
|
|
1140
1140
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1141
|
-
throw await
|
|
1141
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1142
1142
|
default:
|
|
1143
1143
|
const parsedBody = parsedOutput.body;
|
|
1144
1144
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1149,21 +1149,21 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1149
1149
|
});
|
|
1150
1150
|
}
|
|
1151
1151
|
};
|
|
1152
|
-
const
|
|
1152
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1153
1153
|
if (output.statusCode >= 300) {
|
|
1154
|
-
return
|
|
1154
|
+
return de_TagResourceCommandError(output, context);
|
|
1155
1155
|
}
|
|
1156
1156
|
const data = await parseBody(output.body, context);
|
|
1157
1157
|
let contents = {};
|
|
1158
|
-
contents =
|
|
1158
|
+
contents = de_TagResourceResponse(data, context);
|
|
1159
1159
|
const response = {
|
|
1160
1160
|
$metadata: deserializeMetadata(output),
|
|
1161
1161
|
...contents,
|
|
1162
1162
|
};
|
|
1163
1163
|
return Promise.resolve(response);
|
|
1164
1164
|
};
|
|
1165
|
-
exports.
|
|
1166
|
-
const
|
|
1165
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1166
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1167
1167
|
const parsedOutput = {
|
|
1168
1168
|
...output,
|
|
1169
1169
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1172,22 +1172,22 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1172
1172
|
switch (errorCode) {
|
|
1173
1173
|
case "InvalidParameterException":
|
|
1174
1174
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1175
|
-
throw await
|
|
1175
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1176
1176
|
case "InvalidTagParameterException":
|
|
1177
1177
|
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1178
|
-
throw await
|
|
1178
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1179
1179
|
case "RepositoryNotFoundException":
|
|
1180
1180
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1181
|
-
throw await
|
|
1181
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1182
1182
|
case "ServerException":
|
|
1183
1183
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1184
|
-
throw await
|
|
1184
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1185
1185
|
case "TooManyTagsException":
|
|
1186
1186
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1187
|
-
throw await
|
|
1187
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1188
1188
|
case "UnsupportedCommandException":
|
|
1189
1189
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1190
|
-
throw await
|
|
1190
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1191
1191
|
default:
|
|
1192
1192
|
const parsedBody = parsedOutput.body;
|
|
1193
1193
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1198,21 +1198,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1198
1198
|
});
|
|
1199
1199
|
}
|
|
1200
1200
|
};
|
|
1201
|
-
const
|
|
1201
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1202
1202
|
if (output.statusCode >= 300) {
|
|
1203
|
-
return
|
|
1203
|
+
return de_UntagResourceCommandError(output, context);
|
|
1204
1204
|
}
|
|
1205
1205
|
const data = await parseBody(output.body, context);
|
|
1206
1206
|
let contents = {};
|
|
1207
|
-
contents =
|
|
1207
|
+
contents = de_UntagResourceResponse(data, context);
|
|
1208
1208
|
const response = {
|
|
1209
1209
|
$metadata: deserializeMetadata(output),
|
|
1210
1210
|
...contents,
|
|
1211
1211
|
};
|
|
1212
1212
|
return Promise.resolve(response);
|
|
1213
1213
|
};
|
|
1214
|
-
exports.
|
|
1215
|
-
const
|
|
1214
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1215
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1216
1216
|
const parsedOutput = {
|
|
1217
1217
|
...output,
|
|
1218
1218
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1221,22 +1221,22 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1221
1221
|
switch (errorCode) {
|
|
1222
1222
|
case "InvalidParameterException":
|
|
1223
1223
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1224
|
-
throw await
|
|
1224
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1225
1225
|
case "InvalidTagParameterException":
|
|
1226
1226
|
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1227
|
-
throw await
|
|
1227
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1228
1228
|
case "RepositoryNotFoundException":
|
|
1229
1229
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1230
|
-
throw await
|
|
1230
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1231
1231
|
case "ServerException":
|
|
1232
1232
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1233
|
-
throw await
|
|
1233
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1234
1234
|
case "TooManyTagsException":
|
|
1235
1235
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1236
|
-
throw await
|
|
1236
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1237
1237
|
case "UnsupportedCommandException":
|
|
1238
1238
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1239
|
-
throw await
|
|
1239
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1240
1240
|
default:
|
|
1241
1241
|
const parsedBody = parsedOutput.body;
|
|
1242
1242
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1247,21 +1247,21 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
};
|
|
1250
|
-
const
|
|
1250
|
+
const de_UploadLayerPartCommand = async (output, context) => {
|
|
1251
1251
|
if (output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
1252
|
+
return de_UploadLayerPartCommandError(output, context);
|
|
1253
1253
|
}
|
|
1254
1254
|
const data = await parseBody(output.body, context);
|
|
1255
1255
|
let contents = {};
|
|
1256
|
-
contents =
|
|
1256
|
+
contents = de_UploadLayerPartResponse(data, context);
|
|
1257
1257
|
const response = {
|
|
1258
1258
|
$metadata: deserializeMetadata(output),
|
|
1259
1259
|
...contents,
|
|
1260
1260
|
};
|
|
1261
1261
|
return Promise.resolve(response);
|
|
1262
1262
|
};
|
|
1263
|
-
exports.
|
|
1264
|
-
const
|
|
1263
|
+
exports.de_UploadLayerPartCommand = de_UploadLayerPartCommand;
|
|
1264
|
+
const de_UploadLayerPartCommandError = async (output, context) => {
|
|
1265
1265
|
const parsedOutput = {
|
|
1266
1266
|
...output,
|
|
1267
1267
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1270,28 +1270,28 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
1270
1270
|
switch (errorCode) {
|
|
1271
1271
|
case "InvalidLayerPartException":
|
|
1272
1272
|
case "com.amazonaws.ecrpublic#InvalidLayerPartException":
|
|
1273
|
-
throw await
|
|
1273
|
+
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
1274
1274
|
case "InvalidParameterException":
|
|
1275
1275
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1276
|
-
throw await
|
|
1276
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1277
1277
|
case "LimitExceededException":
|
|
1278
1278
|
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1279
|
-
throw await
|
|
1279
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1280
1280
|
case "RegistryNotFoundException":
|
|
1281
1281
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1282
|
-
throw await
|
|
1282
|
+
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
1283
1283
|
case "RepositoryNotFoundException":
|
|
1284
1284
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1285
|
-
throw await
|
|
1285
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1286
1286
|
case "ServerException":
|
|
1287
1287
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1288
|
-
throw await
|
|
1288
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1289
1289
|
case "UnsupportedCommandException":
|
|
1290
1290
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1291
|
-
throw await
|
|
1291
|
+
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1292
1292
|
case "UploadNotFoundException":
|
|
1293
1293
|
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
1294
|
-
throw await
|
|
1294
|
+
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
1295
1295
|
default:
|
|
1296
1296
|
const parsedBody = parsedOutput.body;
|
|
1297
1297
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1302,294 +1302,290 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
|
-
const
|
|
1305
|
+
const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
|
|
1306
1306
|
const body = parsedOutput.body;
|
|
1307
|
-
const deserialized =
|
|
1307
|
+
const deserialized = de_EmptyUploadException(body, context);
|
|
1308
1308
|
const exception = new models_0_1.EmptyUploadException({
|
|
1309
1309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1310
1310
|
...deserialized,
|
|
1311
1311
|
});
|
|
1312
1312
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1313
1313
|
};
|
|
1314
|
-
const
|
|
1314
|
+
const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1315
1315
|
const body = parsedOutput.body;
|
|
1316
|
-
const deserialized =
|
|
1316
|
+
const deserialized = de_ImageAlreadyExistsException(body, context);
|
|
1317
1317
|
const exception = new models_0_1.ImageAlreadyExistsException({
|
|
1318
1318
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1319
1319
|
...deserialized,
|
|
1320
1320
|
});
|
|
1321
1321
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1322
1322
|
};
|
|
1323
|
-
const
|
|
1323
|
+
const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) => {
|
|
1324
1324
|
const body = parsedOutput.body;
|
|
1325
|
-
const deserialized =
|
|
1325
|
+
const deserialized = de_ImageDigestDoesNotMatchException(body, context);
|
|
1326
1326
|
const exception = new models_0_1.ImageDigestDoesNotMatchException({
|
|
1327
1327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1328
1328
|
...deserialized,
|
|
1329
1329
|
});
|
|
1330
1330
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1331
1331
|
};
|
|
1332
|
-
const
|
|
1332
|
+
const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1333
1333
|
const body = parsedOutput.body;
|
|
1334
|
-
const deserialized =
|
|
1334
|
+
const deserialized = de_ImageNotFoundException(body, context);
|
|
1335
1335
|
const exception = new models_0_1.ImageNotFoundException({
|
|
1336
1336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1337
1337
|
...deserialized,
|
|
1338
1338
|
});
|
|
1339
1339
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1340
1340
|
};
|
|
1341
|
-
const
|
|
1341
|
+
const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1342
1342
|
const body = parsedOutput.body;
|
|
1343
|
-
const deserialized =
|
|
1343
|
+
const deserialized = de_ImageTagAlreadyExistsException(body, context);
|
|
1344
1344
|
const exception = new models_0_1.ImageTagAlreadyExistsException({
|
|
1345
1345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1346
1346
|
...deserialized,
|
|
1347
1347
|
});
|
|
1348
1348
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1349
1349
|
};
|
|
1350
|
-
const
|
|
1350
|
+
const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
|
|
1351
1351
|
const body = parsedOutput.body;
|
|
1352
|
-
const deserialized =
|
|
1352
|
+
const deserialized = de_InvalidLayerException(body, context);
|
|
1353
1353
|
const exception = new models_0_1.InvalidLayerException({
|
|
1354
1354
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1355
1355
|
...deserialized,
|
|
1356
1356
|
});
|
|
1357
1357
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1358
1358
|
};
|
|
1359
|
-
const
|
|
1359
|
+
const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
|
|
1360
1360
|
const body = parsedOutput.body;
|
|
1361
|
-
const deserialized =
|
|
1361
|
+
const deserialized = de_InvalidLayerPartException(body, context);
|
|
1362
1362
|
const exception = new models_0_1.InvalidLayerPartException({
|
|
1363
1363
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1364
1364
|
...deserialized,
|
|
1365
1365
|
});
|
|
1366
1366
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1367
1367
|
};
|
|
1368
|
-
const
|
|
1368
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1369
1369
|
const body = parsedOutput.body;
|
|
1370
|
-
const deserialized =
|
|
1370
|
+
const deserialized = de_InvalidParameterException(body, context);
|
|
1371
1371
|
const exception = new models_0_1.InvalidParameterException({
|
|
1372
1372
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1373
1373
|
...deserialized,
|
|
1374
1374
|
});
|
|
1375
1375
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1376
1376
|
};
|
|
1377
|
-
const
|
|
1377
|
+
const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
|
|
1378
1378
|
const body = parsedOutput.body;
|
|
1379
|
-
const deserialized =
|
|
1379
|
+
const deserialized = de_InvalidTagParameterException(body, context);
|
|
1380
1380
|
const exception = new models_0_1.InvalidTagParameterException({
|
|
1381
1381
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1382
1382
|
...deserialized,
|
|
1383
1383
|
});
|
|
1384
1384
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1385
1385
|
};
|
|
1386
|
-
const
|
|
1386
|
+
const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1387
1387
|
const body = parsedOutput.body;
|
|
1388
|
-
const deserialized =
|
|
1388
|
+
const deserialized = de_LayerAlreadyExistsException(body, context);
|
|
1389
1389
|
const exception = new models_0_1.LayerAlreadyExistsException({
|
|
1390
1390
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1391
1391
|
...deserialized,
|
|
1392
1392
|
});
|
|
1393
1393
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1394
1394
|
};
|
|
1395
|
-
const
|
|
1395
|
+
const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
|
|
1396
1396
|
const body = parsedOutput.body;
|
|
1397
|
-
const deserialized =
|
|
1397
|
+
const deserialized = de_LayerPartTooSmallException(body, context);
|
|
1398
1398
|
const exception = new models_0_1.LayerPartTooSmallException({
|
|
1399
1399
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1400
1400
|
...deserialized,
|
|
1401
1401
|
});
|
|
1402
1402
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1403
1403
|
};
|
|
1404
|
-
const
|
|
1404
|
+
const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1405
1405
|
const body = parsedOutput.body;
|
|
1406
|
-
const deserialized =
|
|
1406
|
+
const deserialized = de_LayersNotFoundException(body, context);
|
|
1407
1407
|
const exception = new models_0_1.LayersNotFoundException({
|
|
1408
1408
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1409
1409
|
...deserialized,
|
|
1410
1410
|
});
|
|
1411
1411
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1412
1412
|
};
|
|
1413
|
-
const
|
|
1413
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1414
1414
|
const body = parsedOutput.body;
|
|
1415
|
-
const deserialized =
|
|
1415
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1416
1416
|
const exception = new models_0_1.LimitExceededException({
|
|
1417
1417
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1418
1418
|
...deserialized,
|
|
1419
1419
|
});
|
|
1420
1420
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1421
1421
|
};
|
|
1422
|
-
const
|
|
1422
|
+
const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1423
1423
|
const body = parsedOutput.body;
|
|
1424
|
-
const deserialized =
|
|
1424
|
+
const deserialized = de_ReferencedImagesNotFoundException(body, context);
|
|
1425
1425
|
const exception = new models_0_1.ReferencedImagesNotFoundException({
|
|
1426
1426
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1427
1427
|
...deserialized,
|
|
1428
1428
|
});
|
|
1429
1429
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1430
1430
|
};
|
|
1431
|
-
const
|
|
1431
|
+
const de_RegistryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1432
1432
|
const body = parsedOutput.body;
|
|
1433
|
-
const deserialized =
|
|
1433
|
+
const deserialized = de_RegistryNotFoundException(body, context);
|
|
1434
1434
|
const exception = new models_0_1.RegistryNotFoundException({
|
|
1435
1435
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1436
1436
|
...deserialized,
|
|
1437
1437
|
});
|
|
1438
1438
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1439
1439
|
};
|
|
1440
|
-
const
|
|
1440
|
+
const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1441
1441
|
const body = parsedOutput.body;
|
|
1442
|
-
const deserialized =
|
|
1442
|
+
const deserialized = de_RepositoryAlreadyExistsException(body, context);
|
|
1443
1443
|
const exception = new models_0_1.RepositoryAlreadyExistsException({
|
|
1444
1444
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1445
1445
|
...deserialized,
|
|
1446
1446
|
});
|
|
1447
1447
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1448
1448
|
};
|
|
1449
|
-
const
|
|
1449
|
+
const de_RepositoryCatalogDataNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1450
1450
|
const body = parsedOutput.body;
|
|
1451
|
-
const deserialized =
|
|
1451
|
+
const deserialized = de_RepositoryCatalogDataNotFoundException(body, context);
|
|
1452
1452
|
const exception = new models_0_1.RepositoryCatalogDataNotFoundException({
|
|
1453
1453
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1454
1454
|
...deserialized,
|
|
1455
1455
|
});
|
|
1456
1456
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1457
1457
|
};
|
|
1458
|
-
const
|
|
1458
|
+
const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
1459
1459
|
const body = parsedOutput.body;
|
|
1460
|
-
const deserialized =
|
|
1460
|
+
const deserialized = de_RepositoryNotEmptyException(body, context);
|
|
1461
1461
|
const exception = new models_0_1.RepositoryNotEmptyException({
|
|
1462
1462
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1463
1463
|
...deserialized,
|
|
1464
1464
|
});
|
|
1465
1465
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1466
1466
|
};
|
|
1467
|
-
const
|
|
1467
|
+
const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1468
1468
|
const body = parsedOutput.body;
|
|
1469
|
-
const deserialized =
|
|
1469
|
+
const deserialized = de_RepositoryNotFoundException(body, context);
|
|
1470
1470
|
const exception = new models_0_1.RepositoryNotFoundException({
|
|
1471
1471
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1472
1472
|
...deserialized,
|
|
1473
1473
|
});
|
|
1474
1474
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1475
1475
|
};
|
|
1476
|
-
const
|
|
1476
|
+
const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1477
1477
|
const body = parsedOutput.body;
|
|
1478
|
-
const deserialized =
|
|
1478
|
+
const deserialized = de_RepositoryPolicyNotFoundException(body, context);
|
|
1479
1479
|
const exception = new models_0_1.RepositoryPolicyNotFoundException({
|
|
1480
1480
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1481
1481
|
...deserialized,
|
|
1482
1482
|
});
|
|
1483
1483
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1484
1484
|
};
|
|
1485
|
-
const
|
|
1485
|
+
const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
1486
1486
|
const body = parsedOutput.body;
|
|
1487
|
-
const deserialized =
|
|
1487
|
+
const deserialized = de_ServerException(body, context);
|
|
1488
1488
|
const exception = new models_0_1.ServerException({
|
|
1489
1489
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1490
1490
|
...deserialized,
|
|
1491
1491
|
});
|
|
1492
1492
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1493
1493
|
};
|
|
1494
|
-
const
|
|
1494
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1495
1495
|
const body = parsedOutput.body;
|
|
1496
|
-
const deserialized =
|
|
1496
|
+
const deserialized = de_TooManyTagsException(body, context);
|
|
1497
1497
|
const exception = new models_0_1.TooManyTagsException({
|
|
1498
1498
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1499
1499
|
...deserialized,
|
|
1500
1500
|
});
|
|
1501
1501
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1502
1502
|
};
|
|
1503
|
-
const
|
|
1503
|
+
const de_UnsupportedCommandExceptionRes = async (parsedOutput, context) => {
|
|
1504
1504
|
const body = parsedOutput.body;
|
|
1505
|
-
const deserialized =
|
|
1505
|
+
const deserialized = de_UnsupportedCommandException(body, context);
|
|
1506
1506
|
const exception = new models_0_1.UnsupportedCommandException({
|
|
1507
1507
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1508
1508
|
...deserialized,
|
|
1509
1509
|
});
|
|
1510
1510
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1511
1511
|
};
|
|
1512
|
-
const
|
|
1512
|
+
const de_UploadNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1513
1513
|
const body = parsedOutput.body;
|
|
1514
|
-
const deserialized =
|
|
1514
|
+
const deserialized = de_UploadNotFoundException(body, context);
|
|
1515
1515
|
const exception = new models_0_1.UploadNotFoundException({
|
|
1516
1516
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1517
1517
|
...deserialized,
|
|
1518
1518
|
});
|
|
1519
1519
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1520
1520
|
};
|
|
1521
|
-
const
|
|
1521
|
+
const se_ArchitectureList = (input, context) => {
|
|
1522
1522
|
return input
|
|
1523
1523
|
.filter((e) => e != null)
|
|
1524
1524
|
.map((entry) => {
|
|
1525
1525
|
return entry;
|
|
1526
1526
|
});
|
|
1527
1527
|
};
|
|
1528
|
-
const
|
|
1528
|
+
const se_BatchCheckLayerAvailabilityRequest = (input, context) => {
|
|
1529
1529
|
return {
|
|
1530
1530
|
...(input.layerDigests != null && {
|
|
1531
|
-
layerDigests:
|
|
1531
|
+
layerDigests: se_BatchedOperationLayerDigestList(input.layerDigests, context),
|
|
1532
1532
|
}),
|
|
1533
1533
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1534
1534
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1535
1535
|
};
|
|
1536
1536
|
};
|
|
1537
|
-
const
|
|
1537
|
+
const se_BatchDeleteImageRequest = (input, context) => {
|
|
1538
1538
|
return {
|
|
1539
|
-
...(input.imageIds != null && { imageIds:
|
|
1539
|
+
...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
|
|
1540
1540
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1541
1541
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1542
1542
|
};
|
|
1543
1543
|
};
|
|
1544
|
-
const
|
|
1544
|
+
const se_BatchedOperationLayerDigestList = (input, context) => {
|
|
1545
1545
|
return input
|
|
1546
1546
|
.filter((e) => e != null)
|
|
1547
1547
|
.map((entry) => {
|
|
1548
1548
|
return entry;
|
|
1549
1549
|
});
|
|
1550
1550
|
};
|
|
1551
|
-
const
|
|
1551
|
+
const se_CompleteLayerUploadRequest = (input, context) => {
|
|
1552
1552
|
return {
|
|
1553
|
-
...(input.layerDigests != null && {
|
|
1554
|
-
layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
|
|
1555
|
-
}),
|
|
1553
|
+
...(input.layerDigests != null && { layerDigests: se_LayerDigestList(input.layerDigests, context) }),
|
|
1556
1554
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1557
1555
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1558
1556
|
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1559
1557
|
};
|
|
1560
1558
|
};
|
|
1561
|
-
const
|
|
1559
|
+
const se_CreateRepositoryRequest = (input, context) => {
|
|
1562
1560
|
return {
|
|
1563
|
-
...(input.catalogData != null && {
|
|
1564
|
-
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
1565
|
-
}),
|
|
1561
|
+
...(input.catalogData != null && { catalogData: se_RepositoryCatalogDataInput(input.catalogData, context) }),
|
|
1566
1562
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1567
|
-
...(input.tags != null && { tags:
|
|
1563
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1568
1564
|
};
|
|
1569
1565
|
};
|
|
1570
|
-
const
|
|
1566
|
+
const se_DeleteRepositoryPolicyRequest = (input, context) => {
|
|
1571
1567
|
return {
|
|
1572
1568
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1573
1569
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1574
1570
|
};
|
|
1575
1571
|
};
|
|
1576
|
-
const
|
|
1572
|
+
const se_DeleteRepositoryRequest = (input, context) => {
|
|
1577
1573
|
return {
|
|
1578
1574
|
...(input.force != null && { force: input.force }),
|
|
1579
1575
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1580
1576
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1581
1577
|
};
|
|
1582
1578
|
};
|
|
1583
|
-
const
|
|
1579
|
+
const se_DescribeImagesRequest = (input, context) => {
|
|
1584
1580
|
return {
|
|
1585
|
-
...(input.imageIds != null && { imageIds:
|
|
1581
|
+
...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
|
|
1586
1582
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1587
1583
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1588
1584
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1589
1585
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1590
1586
|
};
|
|
1591
1587
|
};
|
|
1592
|
-
const
|
|
1588
|
+
const se_DescribeImageTagsRequest = (input, context) => {
|
|
1593
1589
|
return {
|
|
1594
1590
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1595
1591
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
@@ -1597,79 +1593,77 @@ const serializeAws_json1_1DescribeImageTagsRequest = (input, context) => {
|
|
|
1597
1593
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1598
1594
|
};
|
|
1599
1595
|
};
|
|
1600
|
-
const
|
|
1596
|
+
const se_DescribeRegistriesRequest = (input, context) => {
|
|
1601
1597
|
return {
|
|
1602
1598
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1603
1599
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1604
1600
|
};
|
|
1605
1601
|
};
|
|
1606
|
-
const
|
|
1602
|
+
const se_DescribeRepositoriesRequest = (input, context) => {
|
|
1607
1603
|
return {
|
|
1608
1604
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1609
1605
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1610
1606
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1611
|
-
...(input.repositoryNames != null && {
|
|
1612
|
-
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
1613
|
-
}),
|
|
1607
|
+
...(input.repositoryNames != null && { repositoryNames: se_RepositoryNameList(input.repositoryNames, context) }),
|
|
1614
1608
|
};
|
|
1615
1609
|
};
|
|
1616
|
-
const
|
|
1610
|
+
const se_GetAuthorizationTokenRequest = (input, context) => {
|
|
1617
1611
|
return {};
|
|
1618
1612
|
};
|
|
1619
|
-
const
|
|
1613
|
+
const se_GetRegistryCatalogDataRequest = (input, context) => {
|
|
1620
1614
|
return {};
|
|
1621
1615
|
};
|
|
1622
|
-
const
|
|
1616
|
+
const se_GetRepositoryCatalogDataRequest = (input, context) => {
|
|
1623
1617
|
return {
|
|
1624
1618
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1625
1619
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1626
1620
|
};
|
|
1627
1621
|
};
|
|
1628
|
-
const
|
|
1622
|
+
const se_GetRepositoryPolicyRequest = (input, context) => {
|
|
1629
1623
|
return {
|
|
1630
1624
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1631
1625
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1632
1626
|
};
|
|
1633
1627
|
};
|
|
1634
|
-
const
|
|
1628
|
+
const se_ImageIdentifier = (input, context) => {
|
|
1635
1629
|
return {
|
|
1636
1630
|
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
1637
1631
|
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
1638
1632
|
};
|
|
1639
1633
|
};
|
|
1640
|
-
const
|
|
1634
|
+
const se_ImageIdentifierList = (input, context) => {
|
|
1641
1635
|
return input
|
|
1642
1636
|
.filter((e) => e != null)
|
|
1643
1637
|
.map((entry) => {
|
|
1644
|
-
return
|
|
1638
|
+
return se_ImageIdentifier(entry, context);
|
|
1645
1639
|
});
|
|
1646
1640
|
};
|
|
1647
|
-
const
|
|
1641
|
+
const se_InitiateLayerUploadRequest = (input, context) => {
|
|
1648
1642
|
return {
|
|
1649
1643
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1650
1644
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1651
1645
|
};
|
|
1652
1646
|
};
|
|
1653
|
-
const
|
|
1647
|
+
const se_LayerDigestList = (input, context) => {
|
|
1654
1648
|
return input
|
|
1655
1649
|
.filter((e) => e != null)
|
|
1656
1650
|
.map((entry) => {
|
|
1657
1651
|
return entry;
|
|
1658
1652
|
});
|
|
1659
1653
|
};
|
|
1660
|
-
const
|
|
1654
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1661
1655
|
return {
|
|
1662
1656
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1663
1657
|
};
|
|
1664
1658
|
};
|
|
1665
|
-
const
|
|
1659
|
+
const se_OperatingSystemList = (input, context) => {
|
|
1666
1660
|
return input
|
|
1667
1661
|
.filter((e) => e != null)
|
|
1668
1662
|
.map((entry) => {
|
|
1669
1663
|
return entry;
|
|
1670
1664
|
});
|
|
1671
1665
|
};
|
|
1672
|
-
const
|
|
1666
|
+
const se_PutImageRequest = (input, context) => {
|
|
1673
1667
|
return {
|
|
1674
1668
|
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
1675
1669
|
...(input.imageManifest != null && { imageManifest: input.imageManifest }),
|
|
@@ -1679,42 +1673,38 @@ const serializeAws_json1_1PutImageRequest = (input, context) => {
|
|
|
1679
1673
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1680
1674
|
};
|
|
1681
1675
|
};
|
|
1682
|
-
const
|
|
1676
|
+
const se_PutRegistryCatalogDataRequest = (input, context) => {
|
|
1683
1677
|
return {
|
|
1684
1678
|
...(input.displayName != null && { displayName: input.displayName }),
|
|
1685
1679
|
};
|
|
1686
1680
|
};
|
|
1687
|
-
const
|
|
1681
|
+
const se_PutRepositoryCatalogDataRequest = (input, context) => {
|
|
1688
1682
|
return {
|
|
1689
|
-
...(input.catalogData != null && {
|
|
1690
|
-
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
1691
|
-
}),
|
|
1683
|
+
...(input.catalogData != null && { catalogData: se_RepositoryCatalogDataInput(input.catalogData, context) }),
|
|
1692
1684
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
1693
1685
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1694
1686
|
};
|
|
1695
1687
|
};
|
|
1696
|
-
const
|
|
1688
|
+
const se_RepositoryCatalogDataInput = (input, context) => {
|
|
1697
1689
|
return {
|
|
1698
1690
|
...(input.aboutText != null && { aboutText: input.aboutText }),
|
|
1699
|
-
...(input.architectures != null && {
|
|
1700
|
-
architectures: serializeAws_json1_1ArchitectureList(input.architectures, context),
|
|
1701
|
-
}),
|
|
1691
|
+
...(input.architectures != null && { architectures: se_ArchitectureList(input.architectures, context) }),
|
|
1702
1692
|
...(input.description != null && { description: input.description }),
|
|
1703
1693
|
...(input.logoImageBlob != null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) }),
|
|
1704
1694
|
...(input.operatingSystems != null && {
|
|
1705
|
-
operatingSystems:
|
|
1695
|
+
operatingSystems: se_OperatingSystemList(input.operatingSystems, context),
|
|
1706
1696
|
}),
|
|
1707
1697
|
...(input.usageText != null && { usageText: input.usageText }),
|
|
1708
1698
|
};
|
|
1709
1699
|
};
|
|
1710
|
-
const
|
|
1700
|
+
const se_RepositoryNameList = (input, context) => {
|
|
1711
1701
|
return input
|
|
1712
1702
|
.filter((e) => e != null)
|
|
1713
1703
|
.map((entry) => {
|
|
1714
1704
|
return entry;
|
|
1715
1705
|
});
|
|
1716
1706
|
};
|
|
1717
|
-
const
|
|
1707
|
+
const se_SetRepositoryPolicyRequest = (input, context) => {
|
|
1718
1708
|
return {
|
|
1719
1709
|
...(input.force != null && { force: input.force }),
|
|
1720
1710
|
...(input.policyText != null && { policyText: input.policyText }),
|
|
@@ -1722,39 +1712,39 @@ const serializeAws_json1_1SetRepositoryPolicyRequest = (input, context) => {
|
|
|
1722
1712
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1723
1713
|
};
|
|
1724
1714
|
};
|
|
1725
|
-
const
|
|
1715
|
+
const se_Tag = (input, context) => {
|
|
1726
1716
|
return {
|
|
1727
1717
|
...(input.Key != null && { Key: input.Key }),
|
|
1728
1718
|
...(input.Value != null && { Value: input.Value }),
|
|
1729
1719
|
};
|
|
1730
1720
|
};
|
|
1731
|
-
const
|
|
1721
|
+
const se_TagKeyList = (input, context) => {
|
|
1732
1722
|
return input
|
|
1733
1723
|
.filter((e) => e != null)
|
|
1734
1724
|
.map((entry) => {
|
|
1735
1725
|
return entry;
|
|
1736
1726
|
});
|
|
1737
1727
|
};
|
|
1738
|
-
const
|
|
1728
|
+
const se_TagList = (input, context) => {
|
|
1739
1729
|
return input
|
|
1740
1730
|
.filter((e) => e != null)
|
|
1741
1731
|
.map((entry) => {
|
|
1742
|
-
return
|
|
1732
|
+
return se_Tag(entry, context);
|
|
1743
1733
|
});
|
|
1744
1734
|
};
|
|
1745
|
-
const
|
|
1735
|
+
const se_TagResourceRequest = (input, context) => {
|
|
1746
1736
|
return {
|
|
1747
1737
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1748
|
-
...(input.tags != null && { tags:
|
|
1738
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1749
1739
|
};
|
|
1750
1740
|
};
|
|
1751
|
-
const
|
|
1741
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
1752
1742
|
return {
|
|
1753
1743
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1754
|
-
...(input.tagKeys != null && { tagKeys:
|
|
1744
|
+
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
1755
1745
|
};
|
|
1756
1746
|
};
|
|
1757
|
-
const
|
|
1747
|
+
const se_UploadLayerPartRequest = (input, context) => {
|
|
1758
1748
|
return {
|
|
1759
1749
|
...(input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
|
|
1760
1750
|
...(input.partFirstByte != null && { partFirstByte: input.partFirstByte }),
|
|
@@ -1764,7 +1754,7 @@ const serializeAws_json1_1UploadLayerPartRequest = (input, context) => {
|
|
|
1764
1754
|
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1765
1755
|
};
|
|
1766
1756
|
};
|
|
1767
|
-
const
|
|
1757
|
+
const de_ArchitectureList = (output, context) => {
|
|
1768
1758
|
const retVal = (output || [])
|
|
1769
1759
|
.filter((e) => e != null)
|
|
1770
1760
|
.map((entry) => {
|
|
@@ -1775,25 +1765,25 @@ const deserializeAws_json1_1ArchitectureList = (output, context) => {
|
|
|
1775
1765
|
});
|
|
1776
1766
|
return retVal;
|
|
1777
1767
|
};
|
|
1778
|
-
const
|
|
1768
|
+
const de_AuthorizationData = (output, context) => {
|
|
1779
1769
|
return {
|
|
1780
1770
|
authorizationToken: (0, smithy_client_1.expectString)(output.authorizationToken),
|
|
1781
1771
|
expiresAt: output.expiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt))) : undefined,
|
|
1782
1772
|
};
|
|
1783
1773
|
};
|
|
1784
|
-
const
|
|
1774
|
+
const de_BatchCheckLayerAvailabilityResponse = (output, context) => {
|
|
1785
1775
|
return {
|
|
1786
|
-
failures: output.failures != null ?
|
|
1787
|
-
layers: output.layers != null ?
|
|
1776
|
+
failures: output.failures != null ? de_LayerFailureList(output.failures, context) : undefined,
|
|
1777
|
+
layers: output.layers != null ? de_LayerList(output.layers, context) : undefined,
|
|
1788
1778
|
};
|
|
1789
1779
|
};
|
|
1790
|
-
const
|
|
1780
|
+
const de_BatchDeleteImageResponse = (output, context) => {
|
|
1791
1781
|
return {
|
|
1792
|
-
failures: output.failures != null ?
|
|
1793
|
-
imageIds: output.imageIds != null ?
|
|
1782
|
+
failures: output.failures != null ? de_ImageFailureList(output.failures, context) : undefined,
|
|
1783
|
+
imageIds: output.imageIds != null ? de_ImageIdentifierList(output.imageIds, context) : undefined,
|
|
1794
1784
|
};
|
|
1795
1785
|
};
|
|
1796
|
-
const
|
|
1786
|
+
const de_CompleteLayerUploadResponse = (output, context) => {
|
|
1797
1787
|
return {
|
|
1798
1788
|
layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
|
|
1799
1789
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
@@ -1801,96 +1791,90 @@ const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
|
|
|
1801
1791
|
uploadId: (0, smithy_client_1.expectString)(output.uploadId),
|
|
1802
1792
|
};
|
|
1803
1793
|
};
|
|
1804
|
-
const
|
|
1794
|
+
const de_CreateRepositoryResponse = (output, context) => {
|
|
1805
1795
|
return {
|
|
1806
|
-
catalogData: output.catalogData != null ?
|
|
1807
|
-
repository: output.repository != null ?
|
|
1796
|
+
catalogData: output.catalogData != null ? de_RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
1797
|
+
repository: output.repository != null ? de_Repository(output.repository, context) : undefined,
|
|
1808
1798
|
};
|
|
1809
1799
|
};
|
|
1810
|
-
const
|
|
1800
|
+
const de_DeleteRepositoryPolicyResponse = (output, context) => {
|
|
1811
1801
|
return {
|
|
1812
1802
|
policyText: (0, smithy_client_1.expectString)(output.policyText),
|
|
1813
1803
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
1814
1804
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
1815
1805
|
};
|
|
1816
1806
|
};
|
|
1817
|
-
const
|
|
1807
|
+
const de_DeleteRepositoryResponse = (output, context) => {
|
|
1818
1808
|
return {
|
|
1819
|
-
repository: output.repository != null ?
|
|
1809
|
+
repository: output.repository != null ? de_Repository(output.repository, context) : undefined,
|
|
1820
1810
|
};
|
|
1821
1811
|
};
|
|
1822
|
-
const
|
|
1812
|
+
const de_DescribeImagesResponse = (output, context) => {
|
|
1823
1813
|
return {
|
|
1824
|
-
imageDetails: output.imageDetails != null ?
|
|
1814
|
+
imageDetails: output.imageDetails != null ? de_ImageDetailList(output.imageDetails, context) : undefined,
|
|
1825
1815
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1826
1816
|
};
|
|
1827
1817
|
};
|
|
1828
|
-
const
|
|
1818
|
+
const de_DescribeImageTagsResponse = (output, context) => {
|
|
1829
1819
|
return {
|
|
1830
|
-
imageTagDetails: output.imageTagDetails != null
|
|
1831
|
-
? deserializeAws_json1_1ImageTagDetailList(output.imageTagDetails, context)
|
|
1832
|
-
: undefined,
|
|
1820
|
+
imageTagDetails: output.imageTagDetails != null ? de_ImageTagDetailList(output.imageTagDetails, context) : undefined,
|
|
1833
1821
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1834
1822
|
};
|
|
1835
1823
|
};
|
|
1836
|
-
const
|
|
1824
|
+
const de_DescribeRegistriesResponse = (output, context) => {
|
|
1837
1825
|
return {
|
|
1838
1826
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1839
|
-
registries: output.registries != null ?
|
|
1827
|
+
registries: output.registries != null ? de_RegistryList(output.registries, context) : undefined,
|
|
1840
1828
|
};
|
|
1841
1829
|
};
|
|
1842
|
-
const
|
|
1830
|
+
const de_DescribeRepositoriesResponse = (output, context) => {
|
|
1843
1831
|
return {
|
|
1844
1832
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1845
|
-
repositories: output.repositories != null ?
|
|
1833
|
+
repositories: output.repositories != null ? de_RepositoryList(output.repositories, context) : undefined,
|
|
1846
1834
|
};
|
|
1847
1835
|
};
|
|
1848
|
-
const
|
|
1836
|
+
const de_EmptyUploadException = (output, context) => {
|
|
1849
1837
|
return {
|
|
1850
1838
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1851
1839
|
};
|
|
1852
1840
|
};
|
|
1853
|
-
const
|
|
1841
|
+
const de_GetAuthorizationTokenResponse = (output, context) => {
|
|
1854
1842
|
return {
|
|
1855
|
-
authorizationData: output.authorizationData != null
|
|
1856
|
-
? deserializeAws_json1_1AuthorizationData(output.authorizationData, context)
|
|
1857
|
-
: undefined,
|
|
1843
|
+
authorizationData: output.authorizationData != null ? de_AuthorizationData(output.authorizationData, context) : undefined,
|
|
1858
1844
|
};
|
|
1859
1845
|
};
|
|
1860
|
-
const
|
|
1846
|
+
const de_GetRegistryCatalogDataResponse = (output, context) => {
|
|
1861
1847
|
return {
|
|
1862
|
-
registryCatalogData: output.registryCatalogData != null
|
|
1863
|
-
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
1864
|
-
: undefined,
|
|
1848
|
+
registryCatalogData: output.registryCatalogData != null ? de_RegistryCatalogData(output.registryCatalogData, context) : undefined,
|
|
1865
1849
|
};
|
|
1866
1850
|
};
|
|
1867
|
-
const
|
|
1851
|
+
const de_GetRepositoryCatalogDataResponse = (output, context) => {
|
|
1868
1852
|
return {
|
|
1869
|
-
catalogData: output.catalogData != null ?
|
|
1853
|
+
catalogData: output.catalogData != null ? de_RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
1870
1854
|
};
|
|
1871
1855
|
};
|
|
1872
|
-
const
|
|
1856
|
+
const de_GetRepositoryPolicyResponse = (output, context) => {
|
|
1873
1857
|
return {
|
|
1874
1858
|
policyText: (0, smithy_client_1.expectString)(output.policyText),
|
|
1875
1859
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
1876
1860
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
1877
1861
|
};
|
|
1878
1862
|
};
|
|
1879
|
-
const
|
|
1863
|
+
const de_Image = (output, context) => {
|
|
1880
1864
|
return {
|
|
1881
|
-
imageId: output.imageId != null ?
|
|
1865
|
+
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
1882
1866
|
imageManifest: (0, smithy_client_1.expectString)(output.imageManifest),
|
|
1883
1867
|
imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
|
|
1884
1868
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
1885
1869
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
1886
1870
|
};
|
|
1887
1871
|
};
|
|
1888
|
-
const
|
|
1872
|
+
const de_ImageAlreadyExistsException = (output, context) => {
|
|
1889
1873
|
return {
|
|
1890
1874
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1891
1875
|
};
|
|
1892
1876
|
};
|
|
1893
|
-
const
|
|
1877
|
+
const de_ImageDetail = (output, context) => {
|
|
1894
1878
|
return {
|
|
1895
1879
|
artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
|
|
1896
1880
|
imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
|
|
@@ -1899,91 +1883,91 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
1899
1883
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
|
|
1900
1884
|
: undefined,
|
|
1901
1885
|
imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
|
|
1902
|
-
imageTags: output.imageTags != null ?
|
|
1886
|
+
imageTags: output.imageTags != null ? de_ImageTagList(output.imageTags, context) : undefined,
|
|
1903
1887
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
1904
1888
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
1905
1889
|
};
|
|
1906
1890
|
};
|
|
1907
|
-
const
|
|
1891
|
+
const de_ImageDetailList = (output, context) => {
|
|
1908
1892
|
const retVal = (output || [])
|
|
1909
1893
|
.filter((e) => e != null)
|
|
1910
1894
|
.map((entry) => {
|
|
1911
1895
|
if (entry === null) {
|
|
1912
1896
|
return null;
|
|
1913
1897
|
}
|
|
1914
|
-
return
|
|
1898
|
+
return de_ImageDetail(entry, context);
|
|
1915
1899
|
});
|
|
1916
1900
|
return retVal;
|
|
1917
1901
|
};
|
|
1918
|
-
const
|
|
1902
|
+
const de_ImageDigestDoesNotMatchException = (output, context) => {
|
|
1919
1903
|
return {
|
|
1920
1904
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1921
1905
|
};
|
|
1922
1906
|
};
|
|
1923
|
-
const
|
|
1907
|
+
const de_ImageFailure = (output, context) => {
|
|
1924
1908
|
return {
|
|
1925
1909
|
failureCode: (0, smithy_client_1.expectString)(output.failureCode),
|
|
1926
1910
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
1927
|
-
imageId: output.imageId != null ?
|
|
1911
|
+
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
1928
1912
|
};
|
|
1929
1913
|
};
|
|
1930
|
-
const
|
|
1914
|
+
const de_ImageFailureList = (output, context) => {
|
|
1931
1915
|
const retVal = (output || [])
|
|
1932
1916
|
.filter((e) => e != null)
|
|
1933
1917
|
.map((entry) => {
|
|
1934
1918
|
if (entry === null) {
|
|
1935
1919
|
return null;
|
|
1936
1920
|
}
|
|
1937
|
-
return
|
|
1921
|
+
return de_ImageFailure(entry, context);
|
|
1938
1922
|
});
|
|
1939
1923
|
return retVal;
|
|
1940
1924
|
};
|
|
1941
|
-
const
|
|
1925
|
+
const de_ImageIdentifier = (output, context) => {
|
|
1942
1926
|
return {
|
|
1943
1927
|
imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
|
|
1944
1928
|
imageTag: (0, smithy_client_1.expectString)(output.imageTag),
|
|
1945
1929
|
};
|
|
1946
1930
|
};
|
|
1947
|
-
const
|
|
1931
|
+
const de_ImageIdentifierList = (output, context) => {
|
|
1948
1932
|
const retVal = (output || [])
|
|
1949
1933
|
.filter((e) => e != null)
|
|
1950
1934
|
.map((entry) => {
|
|
1951
1935
|
if (entry === null) {
|
|
1952
1936
|
return null;
|
|
1953
1937
|
}
|
|
1954
|
-
return
|
|
1938
|
+
return de_ImageIdentifier(entry, context);
|
|
1955
1939
|
});
|
|
1956
1940
|
return retVal;
|
|
1957
1941
|
};
|
|
1958
|
-
const
|
|
1942
|
+
const de_ImageNotFoundException = (output, context) => {
|
|
1959
1943
|
return {
|
|
1960
1944
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1961
1945
|
};
|
|
1962
1946
|
};
|
|
1963
|
-
const
|
|
1947
|
+
const de_ImageTagAlreadyExistsException = (output, context) => {
|
|
1964
1948
|
return {
|
|
1965
1949
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1966
1950
|
};
|
|
1967
1951
|
};
|
|
1968
|
-
const
|
|
1952
|
+
const de_ImageTagDetail = (output, context) => {
|
|
1969
1953
|
return {
|
|
1970
1954
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1971
|
-
imageDetail: output.imageDetail != null ?
|
|
1955
|
+
imageDetail: output.imageDetail != null ? de_ReferencedImageDetail(output.imageDetail, context) : undefined,
|
|
1972
1956
|
imageTag: (0, smithy_client_1.expectString)(output.imageTag),
|
|
1973
1957
|
};
|
|
1974
1958
|
};
|
|
1975
|
-
const
|
|
1959
|
+
const de_ImageTagDetailList = (output, context) => {
|
|
1976
1960
|
const retVal = (output || [])
|
|
1977
1961
|
.filter((e) => e != null)
|
|
1978
1962
|
.map((entry) => {
|
|
1979
1963
|
if (entry === null) {
|
|
1980
1964
|
return null;
|
|
1981
1965
|
}
|
|
1982
|
-
return
|
|
1966
|
+
return de_ImageTagDetail(entry, context);
|
|
1983
1967
|
});
|
|
1984
1968
|
return retVal;
|
|
1985
1969
|
};
|
|
1986
|
-
const
|
|
1970
|
+
const de_ImageTagList = (output, context) => {
|
|
1987
1971
|
const retVal = (output || [])
|
|
1988
1972
|
.filter((e) => e != null)
|
|
1989
1973
|
.map((entry) => {
|
|
@@ -1994,18 +1978,18 @@ const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
|
1994
1978
|
});
|
|
1995
1979
|
return retVal;
|
|
1996
1980
|
};
|
|
1997
|
-
const
|
|
1981
|
+
const de_InitiateLayerUploadResponse = (output, context) => {
|
|
1998
1982
|
return {
|
|
1999
1983
|
partSize: (0, smithy_client_1.expectLong)(output.partSize),
|
|
2000
1984
|
uploadId: (0, smithy_client_1.expectString)(output.uploadId),
|
|
2001
1985
|
};
|
|
2002
1986
|
};
|
|
2003
|
-
const
|
|
1987
|
+
const de_InvalidLayerException = (output, context) => {
|
|
2004
1988
|
return {
|
|
2005
1989
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2006
1990
|
};
|
|
2007
1991
|
};
|
|
2008
|
-
const
|
|
1992
|
+
const de_InvalidLayerPartException = (output, context) => {
|
|
2009
1993
|
return {
|
|
2010
1994
|
lastValidByteReceived: (0, smithy_client_1.expectLong)(output.lastValidByteReceived),
|
|
2011
1995
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
@@ -2014,17 +1998,17 @@ const deserializeAws_json1_1InvalidLayerPartException = (output, context) => {
|
|
|
2014
1998
|
uploadId: (0, smithy_client_1.expectString)(output.uploadId),
|
|
2015
1999
|
};
|
|
2016
2000
|
};
|
|
2017
|
-
const
|
|
2001
|
+
const de_InvalidParameterException = (output, context) => {
|
|
2018
2002
|
return {
|
|
2019
2003
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2020
2004
|
};
|
|
2021
2005
|
};
|
|
2022
|
-
const
|
|
2006
|
+
const de_InvalidTagParameterException = (output, context) => {
|
|
2023
2007
|
return {
|
|
2024
2008
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2025
2009
|
};
|
|
2026
2010
|
};
|
|
2027
|
-
const
|
|
2011
|
+
const de_Layer = (output, context) => {
|
|
2028
2012
|
return {
|
|
2029
2013
|
layerAvailability: (0, smithy_client_1.expectString)(output.layerAvailability),
|
|
2030
2014
|
layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
|
|
@@ -2032,61 +2016,61 @@ const deserializeAws_json1_1Layer = (output, context) => {
|
|
|
2032
2016
|
mediaType: (0, smithy_client_1.expectString)(output.mediaType),
|
|
2033
2017
|
};
|
|
2034
2018
|
};
|
|
2035
|
-
const
|
|
2019
|
+
const de_LayerAlreadyExistsException = (output, context) => {
|
|
2036
2020
|
return {
|
|
2037
2021
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2038
2022
|
};
|
|
2039
2023
|
};
|
|
2040
|
-
const
|
|
2024
|
+
const de_LayerFailure = (output, context) => {
|
|
2041
2025
|
return {
|
|
2042
2026
|
failureCode: (0, smithy_client_1.expectString)(output.failureCode),
|
|
2043
2027
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
2044
2028
|
layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
|
|
2045
2029
|
};
|
|
2046
2030
|
};
|
|
2047
|
-
const
|
|
2031
|
+
const de_LayerFailureList = (output, context) => {
|
|
2048
2032
|
const retVal = (output || [])
|
|
2049
2033
|
.filter((e) => e != null)
|
|
2050
2034
|
.map((entry) => {
|
|
2051
2035
|
if (entry === null) {
|
|
2052
2036
|
return null;
|
|
2053
2037
|
}
|
|
2054
|
-
return
|
|
2038
|
+
return de_LayerFailure(entry, context);
|
|
2055
2039
|
});
|
|
2056
2040
|
return retVal;
|
|
2057
2041
|
};
|
|
2058
|
-
const
|
|
2042
|
+
const de_LayerList = (output, context) => {
|
|
2059
2043
|
const retVal = (output || [])
|
|
2060
2044
|
.filter((e) => e != null)
|
|
2061
2045
|
.map((entry) => {
|
|
2062
2046
|
if (entry === null) {
|
|
2063
2047
|
return null;
|
|
2064
2048
|
}
|
|
2065
|
-
return
|
|
2049
|
+
return de_Layer(entry, context);
|
|
2066
2050
|
});
|
|
2067
2051
|
return retVal;
|
|
2068
2052
|
};
|
|
2069
|
-
const
|
|
2053
|
+
const de_LayerPartTooSmallException = (output, context) => {
|
|
2070
2054
|
return {
|
|
2071
2055
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2072
2056
|
};
|
|
2073
2057
|
};
|
|
2074
|
-
const
|
|
2058
|
+
const de_LayersNotFoundException = (output, context) => {
|
|
2075
2059
|
return {
|
|
2076
2060
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2077
2061
|
};
|
|
2078
2062
|
};
|
|
2079
|
-
const
|
|
2063
|
+
const de_LimitExceededException = (output, context) => {
|
|
2080
2064
|
return {
|
|
2081
2065
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2082
2066
|
};
|
|
2083
2067
|
};
|
|
2084
|
-
const
|
|
2068
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2085
2069
|
return {
|
|
2086
|
-
tags: output.tags != null ?
|
|
2070
|
+
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
2087
2071
|
};
|
|
2088
2072
|
};
|
|
2089
|
-
const
|
|
2073
|
+
const de_OperatingSystemList = (output, context) => {
|
|
2090
2074
|
const retVal = (output || [])
|
|
2091
2075
|
.filter((e) => e != null)
|
|
2092
2076
|
.map((entry) => {
|
|
@@ -2097,24 +2081,22 @@ const deserializeAws_json1_1OperatingSystemList = (output, context) => {
|
|
|
2097
2081
|
});
|
|
2098
2082
|
return retVal;
|
|
2099
2083
|
};
|
|
2100
|
-
const
|
|
2084
|
+
const de_PutImageResponse = (output, context) => {
|
|
2101
2085
|
return {
|
|
2102
|
-
image: output.image != null ?
|
|
2086
|
+
image: output.image != null ? de_Image(output.image, context) : undefined,
|
|
2103
2087
|
};
|
|
2104
2088
|
};
|
|
2105
|
-
const
|
|
2089
|
+
const de_PutRegistryCatalogDataResponse = (output, context) => {
|
|
2106
2090
|
return {
|
|
2107
|
-
registryCatalogData: output.registryCatalogData != null
|
|
2108
|
-
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
2109
|
-
: undefined,
|
|
2091
|
+
registryCatalogData: output.registryCatalogData != null ? de_RegistryCatalogData(output.registryCatalogData, context) : undefined,
|
|
2110
2092
|
};
|
|
2111
2093
|
};
|
|
2112
|
-
const
|
|
2094
|
+
const de_PutRepositoryCatalogDataResponse = (output, context) => {
|
|
2113
2095
|
return {
|
|
2114
|
-
catalogData: output.catalogData != null ?
|
|
2096
|
+
catalogData: output.catalogData != null ? de_RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
2115
2097
|
};
|
|
2116
2098
|
};
|
|
2117
|
-
const
|
|
2099
|
+
const de_ReferencedImageDetail = (output, context) => {
|
|
2118
2100
|
return {
|
|
2119
2101
|
artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
|
|
2120
2102
|
imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
|
|
@@ -2125,21 +2107,21 @@ const deserializeAws_json1_1ReferencedImageDetail = (output, context) => {
|
|
|
2125
2107
|
imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
|
|
2126
2108
|
};
|
|
2127
2109
|
};
|
|
2128
|
-
const
|
|
2110
|
+
const de_ReferencedImagesNotFoundException = (output, context) => {
|
|
2129
2111
|
return {
|
|
2130
2112
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2131
2113
|
};
|
|
2132
2114
|
};
|
|
2133
|
-
const
|
|
2115
|
+
const de_Registry = (output, context) => {
|
|
2134
2116
|
return {
|
|
2135
|
-
aliases: output.aliases != null ?
|
|
2117
|
+
aliases: output.aliases != null ? de_RegistryAliasList(output.aliases, context) : undefined,
|
|
2136
2118
|
registryArn: (0, smithy_client_1.expectString)(output.registryArn),
|
|
2137
2119
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
2138
2120
|
registryUri: (0, smithy_client_1.expectString)(output.registryUri),
|
|
2139
2121
|
verified: (0, smithy_client_1.expectBoolean)(output.verified),
|
|
2140
2122
|
};
|
|
2141
2123
|
};
|
|
2142
|
-
const
|
|
2124
|
+
const de_RegistryAlias = (output, context) => {
|
|
2143
2125
|
return {
|
|
2144
2126
|
defaultRegistryAlias: (0, smithy_client_1.expectBoolean)(output.defaultRegistryAlias),
|
|
2145
2127
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -2147,39 +2129,39 @@ const deserializeAws_json1_1RegistryAlias = (output, context) => {
|
|
|
2147
2129
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2148
2130
|
};
|
|
2149
2131
|
};
|
|
2150
|
-
const
|
|
2132
|
+
const de_RegistryAliasList = (output, context) => {
|
|
2151
2133
|
const retVal = (output || [])
|
|
2152
2134
|
.filter((e) => e != null)
|
|
2153
2135
|
.map((entry) => {
|
|
2154
2136
|
if (entry === null) {
|
|
2155
2137
|
return null;
|
|
2156
2138
|
}
|
|
2157
|
-
return
|
|
2139
|
+
return de_RegistryAlias(entry, context);
|
|
2158
2140
|
});
|
|
2159
2141
|
return retVal;
|
|
2160
2142
|
};
|
|
2161
|
-
const
|
|
2143
|
+
const de_RegistryCatalogData = (output, context) => {
|
|
2162
2144
|
return {
|
|
2163
2145
|
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
2164
2146
|
};
|
|
2165
2147
|
};
|
|
2166
|
-
const
|
|
2148
|
+
const de_RegistryList = (output, context) => {
|
|
2167
2149
|
const retVal = (output || [])
|
|
2168
2150
|
.filter((e) => e != null)
|
|
2169
2151
|
.map((entry) => {
|
|
2170
2152
|
if (entry === null) {
|
|
2171
2153
|
return null;
|
|
2172
2154
|
}
|
|
2173
|
-
return
|
|
2155
|
+
return de_Registry(entry, context);
|
|
2174
2156
|
});
|
|
2175
2157
|
return retVal;
|
|
2176
2158
|
};
|
|
2177
|
-
const
|
|
2159
|
+
const de_RegistryNotFoundException = (output, context) => {
|
|
2178
2160
|
return {
|
|
2179
2161
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2180
2162
|
};
|
|
2181
2163
|
};
|
|
2182
|
-
const
|
|
2164
|
+
const de_Repository = (output, context) => {
|
|
2183
2165
|
return {
|
|
2184
2166
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2185
2167
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
@@ -2188,101 +2170,99 @@ const deserializeAws_json1_1Repository = (output, context) => {
|
|
|
2188
2170
|
repositoryUri: (0, smithy_client_1.expectString)(output.repositoryUri),
|
|
2189
2171
|
};
|
|
2190
2172
|
};
|
|
2191
|
-
const
|
|
2173
|
+
const de_RepositoryAlreadyExistsException = (output, context) => {
|
|
2192
2174
|
return {
|
|
2193
2175
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2194
2176
|
};
|
|
2195
2177
|
};
|
|
2196
|
-
const
|
|
2178
|
+
const de_RepositoryCatalogData = (output, context) => {
|
|
2197
2179
|
return {
|
|
2198
2180
|
aboutText: (0, smithy_client_1.expectString)(output.aboutText),
|
|
2199
|
-
architectures: output.architectures != null ?
|
|
2181
|
+
architectures: output.architectures != null ? de_ArchitectureList(output.architectures, context) : undefined,
|
|
2200
2182
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2201
2183
|
logoUrl: (0, smithy_client_1.expectString)(output.logoUrl),
|
|
2202
2184
|
marketplaceCertified: (0, smithy_client_1.expectBoolean)(output.marketplaceCertified),
|
|
2203
|
-
operatingSystems: output.operatingSystems != null
|
|
2204
|
-
? deserializeAws_json1_1OperatingSystemList(output.operatingSystems, context)
|
|
2205
|
-
: undefined,
|
|
2185
|
+
operatingSystems: output.operatingSystems != null ? de_OperatingSystemList(output.operatingSystems, context) : undefined,
|
|
2206
2186
|
usageText: (0, smithy_client_1.expectString)(output.usageText),
|
|
2207
2187
|
};
|
|
2208
2188
|
};
|
|
2209
|
-
const
|
|
2189
|
+
const de_RepositoryCatalogDataNotFoundException = (output, context) => {
|
|
2210
2190
|
return {
|
|
2211
2191
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2212
2192
|
};
|
|
2213
2193
|
};
|
|
2214
|
-
const
|
|
2194
|
+
const de_RepositoryList = (output, context) => {
|
|
2215
2195
|
const retVal = (output || [])
|
|
2216
2196
|
.filter((e) => e != null)
|
|
2217
2197
|
.map((entry) => {
|
|
2218
2198
|
if (entry === null) {
|
|
2219
2199
|
return null;
|
|
2220
2200
|
}
|
|
2221
|
-
return
|
|
2201
|
+
return de_Repository(entry, context);
|
|
2222
2202
|
});
|
|
2223
2203
|
return retVal;
|
|
2224
2204
|
};
|
|
2225
|
-
const
|
|
2205
|
+
const de_RepositoryNotEmptyException = (output, context) => {
|
|
2226
2206
|
return {
|
|
2227
2207
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2228
2208
|
};
|
|
2229
2209
|
};
|
|
2230
|
-
const
|
|
2210
|
+
const de_RepositoryNotFoundException = (output, context) => {
|
|
2231
2211
|
return {
|
|
2232
2212
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2233
2213
|
};
|
|
2234
2214
|
};
|
|
2235
|
-
const
|
|
2215
|
+
const de_RepositoryPolicyNotFoundException = (output, context) => {
|
|
2236
2216
|
return {
|
|
2237
2217
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2238
2218
|
};
|
|
2239
2219
|
};
|
|
2240
|
-
const
|
|
2220
|
+
const de_ServerException = (output, context) => {
|
|
2241
2221
|
return {
|
|
2242
2222
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2243
2223
|
};
|
|
2244
2224
|
};
|
|
2245
|
-
const
|
|
2225
|
+
const de_SetRepositoryPolicyResponse = (output, context) => {
|
|
2246
2226
|
return {
|
|
2247
2227
|
policyText: (0, smithy_client_1.expectString)(output.policyText),
|
|
2248
2228
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
2249
2229
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
2250
2230
|
};
|
|
2251
2231
|
};
|
|
2252
|
-
const
|
|
2232
|
+
const de_Tag = (output, context) => {
|
|
2253
2233
|
return {
|
|
2254
2234
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2255
2235
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2256
2236
|
};
|
|
2257
2237
|
};
|
|
2258
|
-
const
|
|
2238
|
+
const de_TagList = (output, context) => {
|
|
2259
2239
|
const retVal = (output || [])
|
|
2260
2240
|
.filter((e) => e != null)
|
|
2261
2241
|
.map((entry) => {
|
|
2262
2242
|
if (entry === null) {
|
|
2263
2243
|
return null;
|
|
2264
2244
|
}
|
|
2265
|
-
return
|
|
2245
|
+
return de_Tag(entry, context);
|
|
2266
2246
|
});
|
|
2267
2247
|
return retVal;
|
|
2268
2248
|
};
|
|
2269
|
-
const
|
|
2249
|
+
const de_TagResourceResponse = (output, context) => {
|
|
2270
2250
|
return {};
|
|
2271
2251
|
};
|
|
2272
|
-
const
|
|
2252
|
+
const de_TooManyTagsException = (output, context) => {
|
|
2273
2253
|
return {
|
|
2274
2254
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2275
2255
|
};
|
|
2276
2256
|
};
|
|
2277
|
-
const
|
|
2257
|
+
const de_UnsupportedCommandException = (output, context) => {
|
|
2278
2258
|
return {
|
|
2279
2259
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2280
2260
|
};
|
|
2281
2261
|
};
|
|
2282
|
-
const
|
|
2262
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
2283
2263
|
return {};
|
|
2284
2264
|
};
|
|
2285
|
-
const
|
|
2265
|
+
const de_UploadLayerPartResponse = (output, context) => {
|
|
2286
2266
|
return {
|
|
2287
2267
|
lastByteReceived: (0, smithy_client_1.expectLong)(output.lastByteReceived),
|
|
2288
2268
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
@@ -2290,7 +2270,7 @@ const deserializeAws_json1_1UploadLayerPartResponse = (output, context) => {
|
|
|
2290
2270
|
uploadId: (0, smithy_client_1.expectString)(output.uploadId),
|
|
2291
2271
|
};
|
|
2292
2272
|
};
|
|
2293
|
-
const
|
|
2273
|
+
const de_UploadNotFoundException = (output, context) => {
|
|
2294
2274
|
return {
|
|
2295
2275
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2296
2276
|
};
|