@aws-sdk/client-medical-imaging 3.476.0 → 3.478.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/pagination/ListDICOMImportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDatastoresPaginator.js +2 -24
- package/dist-cjs/pagination/ListImageSetVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchImageSetsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +136 -258
- package/dist-es/pagination/ListDICOMImportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListDatastoresPaginator.js +2 -23
- package/dist-es/pagination/ListImageSetVersionsPaginator.js +2 -23
- package/dist-es/pagination/SearchImageSetsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +138 -260
- package/dist-types/pagination/ListDICOMImportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatastoresPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImageSetVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchImageSetsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDICOMImportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatastoresPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImageSetVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchImageSetsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { MedicalImagingServiceException as __BaseException } from "../models/MedicalImagingServiceException";
|
|
5
6
|
import { AccessDeniedException, ConflictException, InternalServerException, MetadataUpdates, ResourceNotFoundException, SearchByAttributeValue, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
7
|
export const se_CopyImageSetCommand = async (input, context) => {
|
|
7
|
-
const
|
|
8
|
+
const b = rb(input, context);
|
|
8
9
|
const headers = {
|
|
9
10
|
"content-type": "application/json",
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "sourceImageSetId", () => input.sourceImageSetId, "{sourceImageSetId}", false);
|
|
12
|
+
b.bp("/datastore/{datastoreId}/imageSet/{sourceImageSetId}/copyImageSet");
|
|
13
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
14
|
+
b.p("sourceImageSetId", () => input.sourceImageSetId, "{sourceImageSetId}", false);
|
|
15
15
|
let body;
|
|
16
16
|
if (input.copyImageSetInformation !== undefined) {
|
|
17
17
|
body = _json(input.copyImageSetInformation);
|
|
@@ -27,22 +27,16 @@ export const se_CopyImageSetCommand = async (input, context) => {
|
|
|
27
27
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
port,
|
|
34
|
-
method: "POST",
|
|
35
|
-
headers,
|
|
36
|
-
path: resolvedPath,
|
|
37
|
-
body,
|
|
38
|
-
});
|
|
30
|
+
b.hn(resolvedHostname);
|
|
31
|
+
b.m("POST").h(headers).b(body);
|
|
32
|
+
return b.build();
|
|
39
33
|
};
|
|
40
34
|
export const se_CreateDatastoreCommand = async (input, context) => {
|
|
41
|
-
const
|
|
35
|
+
const b = rb(input, context);
|
|
42
36
|
const headers = {
|
|
43
37
|
"content-type": "application/json",
|
|
44
38
|
};
|
|
45
|
-
|
|
39
|
+
b.bp("/datastore");
|
|
46
40
|
let body;
|
|
47
41
|
body = JSON.stringify(take(input, {
|
|
48
42
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -50,39 +44,24 @@ export const se_CreateDatastoreCommand = async (input, context) => {
|
|
|
50
44
|
kmsKeyArn: [],
|
|
51
45
|
tags: (_) => _json(_),
|
|
52
46
|
}));
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
hostname,
|
|
56
|
-
port,
|
|
57
|
-
method: "POST",
|
|
58
|
-
headers,
|
|
59
|
-
path: resolvedPath,
|
|
60
|
-
body,
|
|
61
|
-
});
|
|
47
|
+
b.m("POST").h(headers).b(body);
|
|
48
|
+
return b.build();
|
|
62
49
|
};
|
|
63
50
|
export const se_DeleteDatastoreCommand = async (input, context) => {
|
|
64
|
-
const
|
|
51
|
+
const b = rb(input, context);
|
|
65
52
|
const headers = {};
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
b.bp("/datastore/{datastoreId}");
|
|
54
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
68
55
|
let body;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
hostname,
|
|
72
|
-
port,
|
|
73
|
-
method: "DELETE",
|
|
74
|
-
headers,
|
|
75
|
-
path: resolvedPath,
|
|
76
|
-
body,
|
|
77
|
-
});
|
|
56
|
+
b.m("DELETE").h(headers).b(body);
|
|
57
|
+
return b.build();
|
|
78
58
|
};
|
|
79
59
|
export const se_DeleteImageSetCommand = async (input, context) => {
|
|
80
|
-
const
|
|
60
|
+
const b = rb(input, context);
|
|
81
61
|
const headers = {};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
62
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/deleteImageSet");
|
|
63
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
64
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
86
65
|
let body;
|
|
87
66
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
88
67
|
if (context.disableHostPrefix !== true) {
|
|
@@ -91,59 +70,37 @@ export const se_DeleteImageSetCommand = async (input, context) => {
|
|
|
91
70
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
92
71
|
}
|
|
93
72
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
port,
|
|
98
|
-
method: "POST",
|
|
99
|
-
headers,
|
|
100
|
-
path: resolvedPath,
|
|
101
|
-
body,
|
|
102
|
-
});
|
|
73
|
+
b.hn(resolvedHostname);
|
|
74
|
+
b.m("POST").h(headers).b(body);
|
|
75
|
+
return b.build();
|
|
103
76
|
};
|
|
104
77
|
export const se_GetDatastoreCommand = async (input, context) => {
|
|
105
|
-
const
|
|
78
|
+
const b = rb(input, context);
|
|
106
79
|
const headers = {};
|
|
107
|
-
|
|
108
|
-
|
|
80
|
+
b.bp("/datastore/{datastoreId}");
|
|
81
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
109
82
|
let body;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
hostname,
|
|
113
|
-
port,
|
|
114
|
-
method: "GET",
|
|
115
|
-
headers,
|
|
116
|
-
path: resolvedPath,
|
|
117
|
-
body,
|
|
118
|
-
});
|
|
83
|
+
b.m("GET").h(headers).b(body);
|
|
84
|
+
return b.build();
|
|
119
85
|
};
|
|
120
86
|
export const se_GetDICOMImportJobCommand = async (input, context) => {
|
|
121
|
-
const
|
|
87
|
+
const b = rb(input, context);
|
|
122
88
|
const headers = {};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
89
|
+
b.bp("/getDICOMImportJob/datastore/{datastoreId}/job/{jobId}");
|
|
90
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
91
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
127
92
|
let body;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
hostname,
|
|
131
|
-
port,
|
|
132
|
-
method: "GET",
|
|
133
|
-
headers,
|
|
134
|
-
path: resolvedPath,
|
|
135
|
-
body,
|
|
136
|
-
});
|
|
93
|
+
b.m("GET").h(headers).b(body);
|
|
94
|
+
return b.build();
|
|
137
95
|
};
|
|
138
96
|
export const se_GetImageFrameCommand = async (input, context) => {
|
|
139
|
-
const
|
|
97
|
+
const b = rb(input, context);
|
|
140
98
|
const headers = {
|
|
141
99
|
"content-type": "application/json",
|
|
142
100
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
101
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageFrame");
|
|
102
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
103
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
147
104
|
let body;
|
|
148
105
|
if (input.imageFrameInformation !== undefined) {
|
|
149
106
|
body = _json(input.imageFrameInformation);
|
|
@@ -159,25 +116,18 @@ export const se_GetImageFrameCommand = async (input, context) => {
|
|
|
159
116
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
160
117
|
}
|
|
161
118
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
port,
|
|
166
|
-
method: "POST",
|
|
167
|
-
headers,
|
|
168
|
-
path: resolvedPath,
|
|
169
|
-
body,
|
|
170
|
-
});
|
|
119
|
+
b.hn(resolvedHostname);
|
|
120
|
+
b.m("POST").h(headers).b(body);
|
|
121
|
+
return b.build();
|
|
171
122
|
};
|
|
172
123
|
export const se_GetImageSetCommand = async (input, context) => {
|
|
173
|
-
const
|
|
124
|
+
const b = rb(input, context);
|
|
174
125
|
const headers = {};
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
126
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSet");
|
|
127
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
128
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
179
129
|
const query = map({
|
|
180
|
-
|
|
130
|
+
[_v]: [, input[_vI]],
|
|
181
131
|
});
|
|
182
132
|
let body;
|
|
183
133
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -187,26 +137,18 @@ export const se_GetImageSetCommand = async (input, context) => {
|
|
|
187
137
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
188
138
|
}
|
|
189
139
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
port,
|
|
194
|
-
method: "POST",
|
|
195
|
-
headers,
|
|
196
|
-
path: resolvedPath,
|
|
197
|
-
query,
|
|
198
|
-
body,
|
|
199
|
-
});
|
|
140
|
+
b.hn(resolvedHostname);
|
|
141
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
142
|
+
return b.build();
|
|
200
143
|
};
|
|
201
144
|
export const se_GetImageSetMetadataCommand = async (input, context) => {
|
|
202
|
-
const
|
|
145
|
+
const b = rb(input, context);
|
|
203
146
|
const headers = {};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
147
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSetMetadata");
|
|
148
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
149
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
208
150
|
const query = map({
|
|
209
|
-
|
|
151
|
+
[_v]: [, input[_vI]],
|
|
210
152
|
});
|
|
211
153
|
let body;
|
|
212
154
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -216,71 +158,46 @@ export const se_GetImageSetMetadataCommand = async (input, context) => {
|
|
|
216
158
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
217
159
|
}
|
|
218
160
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
port,
|
|
223
|
-
method: "POST",
|
|
224
|
-
headers,
|
|
225
|
-
path: resolvedPath,
|
|
226
|
-
query,
|
|
227
|
-
body,
|
|
228
|
-
});
|
|
161
|
+
b.hn(resolvedHostname);
|
|
162
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
163
|
+
return b.build();
|
|
229
164
|
};
|
|
230
165
|
export const se_ListDatastoresCommand = async (input, context) => {
|
|
231
|
-
const
|
|
166
|
+
const b = rb(input, context);
|
|
232
167
|
const headers = {};
|
|
233
|
-
|
|
168
|
+
b.bp("/datastore");
|
|
234
169
|
const query = map({
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
170
|
+
[_dS]: [, input[_dS]],
|
|
171
|
+
[_nT]: [, input[_nT]],
|
|
172
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
238
173
|
});
|
|
239
174
|
let body;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
hostname,
|
|
243
|
-
port,
|
|
244
|
-
method: "GET",
|
|
245
|
-
headers,
|
|
246
|
-
path: resolvedPath,
|
|
247
|
-
query,
|
|
248
|
-
body,
|
|
249
|
-
});
|
|
175
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
176
|
+
return b.build();
|
|
250
177
|
};
|
|
251
178
|
export const se_ListDICOMImportJobsCommand = async (input, context) => {
|
|
252
|
-
const
|
|
179
|
+
const b = rb(input, context);
|
|
253
180
|
const headers = {};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
181
|
+
b.bp("/listDICOMImportJobs/datastore/{datastoreId}");
|
|
182
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
257
183
|
const query = map({
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
184
|
+
[_jS]: [, input[_jS]],
|
|
185
|
+
[_nT]: [, input[_nT]],
|
|
186
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
261
187
|
});
|
|
262
188
|
let body;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
hostname,
|
|
266
|
-
port,
|
|
267
|
-
method: "GET",
|
|
268
|
-
headers,
|
|
269
|
-
path: resolvedPath,
|
|
270
|
-
query,
|
|
271
|
-
body,
|
|
272
|
-
});
|
|
189
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
190
|
+
return b.build();
|
|
273
191
|
};
|
|
274
192
|
export const se_ListImageSetVersionsCommand = async (input, context) => {
|
|
275
|
-
const
|
|
193
|
+
const b = rb(input, context);
|
|
276
194
|
const headers = {};
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
195
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/listImageSetVersions");
|
|
196
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
197
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
281
198
|
const query = map({
|
|
282
|
-
|
|
283
|
-
|
|
199
|
+
[_nT]: [, input[_nT]],
|
|
200
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
284
201
|
});
|
|
285
202
|
let body;
|
|
286
203
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -290,43 +207,29 @@ export const se_ListImageSetVersionsCommand = async (input, context) => {
|
|
|
290
207
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
291
208
|
}
|
|
292
209
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
port,
|
|
297
|
-
method: "POST",
|
|
298
|
-
headers,
|
|
299
|
-
path: resolvedPath,
|
|
300
|
-
query,
|
|
301
|
-
body,
|
|
302
|
-
});
|
|
210
|
+
b.hn(resolvedHostname);
|
|
211
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
212
|
+
return b.build();
|
|
303
213
|
};
|
|
304
214
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
305
|
-
const
|
|
215
|
+
const b = rb(input, context);
|
|
306
216
|
const headers = {};
|
|
307
|
-
|
|
308
|
-
|
|
217
|
+
b.bp("/tags/{resourceArn}");
|
|
218
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
309
219
|
let body;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
hostname,
|
|
313
|
-
port,
|
|
314
|
-
method: "GET",
|
|
315
|
-
headers,
|
|
316
|
-
path: resolvedPath,
|
|
317
|
-
body,
|
|
318
|
-
});
|
|
220
|
+
b.m("GET").h(headers).b(body);
|
|
221
|
+
return b.build();
|
|
319
222
|
};
|
|
320
223
|
export const se_SearchImageSetsCommand = async (input, context) => {
|
|
321
|
-
const
|
|
224
|
+
const b = rb(input, context);
|
|
322
225
|
const headers = {
|
|
323
226
|
"content-type": "application/json",
|
|
324
227
|
};
|
|
325
|
-
|
|
326
|
-
|
|
228
|
+
b.bp("/datastore/{datastoreId}/searchImageSets");
|
|
229
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
327
230
|
const query = map({
|
|
328
|
-
|
|
329
|
-
|
|
231
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
232
|
+
[_nT]: [, input[_nT]],
|
|
330
233
|
});
|
|
331
234
|
let body;
|
|
332
235
|
if (input.searchCriteria !== undefined) {
|
|
@@ -343,25 +246,17 @@ export const se_SearchImageSetsCommand = async (input, context) => {
|
|
|
343
246
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
344
247
|
}
|
|
345
248
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
port,
|
|
350
|
-
method: "POST",
|
|
351
|
-
headers,
|
|
352
|
-
path: resolvedPath,
|
|
353
|
-
query,
|
|
354
|
-
body,
|
|
355
|
-
});
|
|
249
|
+
b.hn(resolvedHostname);
|
|
250
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
251
|
+
return b.build();
|
|
356
252
|
};
|
|
357
253
|
export const se_StartDICOMImportJobCommand = async (input, context) => {
|
|
358
|
-
const
|
|
254
|
+
const b = rb(input, context);
|
|
359
255
|
const headers = {
|
|
360
256
|
"content-type": "application/json",
|
|
361
257
|
};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
258
|
+
b.bp("/startDICOMImportJob/datastore/{datastoreId}");
|
|
259
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
365
260
|
let body;
|
|
366
261
|
body = JSON.stringify(take(input, {
|
|
367
262
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -370,71 +265,48 @@ export const se_StartDICOMImportJobCommand = async (input, context) => {
|
|
|
370
265
|
jobName: [],
|
|
371
266
|
outputS3Uri: [],
|
|
372
267
|
}));
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
hostname,
|
|
376
|
-
port,
|
|
377
|
-
method: "POST",
|
|
378
|
-
headers,
|
|
379
|
-
path: resolvedPath,
|
|
380
|
-
body,
|
|
381
|
-
});
|
|
268
|
+
b.m("POST").h(headers).b(body);
|
|
269
|
+
return b.build();
|
|
382
270
|
};
|
|
383
271
|
export const se_TagResourceCommand = async (input, context) => {
|
|
384
|
-
const
|
|
272
|
+
const b = rb(input, context);
|
|
385
273
|
const headers = {
|
|
386
274
|
"content-type": "application/json",
|
|
387
275
|
};
|
|
388
|
-
|
|
389
|
-
|
|
276
|
+
b.bp("/tags/{resourceArn}");
|
|
277
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
390
278
|
let body;
|
|
391
279
|
body = JSON.stringify(take(input, {
|
|
392
280
|
tags: (_) => _json(_),
|
|
393
281
|
}));
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
hostname,
|
|
397
|
-
port,
|
|
398
|
-
method: "POST",
|
|
399
|
-
headers,
|
|
400
|
-
path: resolvedPath,
|
|
401
|
-
body,
|
|
402
|
-
});
|
|
282
|
+
b.m("POST").h(headers).b(body);
|
|
283
|
+
return b.build();
|
|
403
284
|
};
|
|
404
285
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
405
|
-
const
|
|
286
|
+
const b = rb(input, context);
|
|
406
287
|
const headers = {};
|
|
407
|
-
|
|
408
|
-
|
|
288
|
+
b.bp("/tags/{resourceArn}");
|
|
289
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
409
290
|
const query = map({
|
|
410
|
-
|
|
291
|
+
[_tK]: [
|
|
411
292
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
412
|
-
() => (input
|
|
293
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
413
294
|
],
|
|
414
295
|
});
|
|
415
296
|
let body;
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
hostname,
|
|
419
|
-
port,
|
|
420
|
-
method: "DELETE",
|
|
421
|
-
headers,
|
|
422
|
-
path: resolvedPath,
|
|
423
|
-
query,
|
|
424
|
-
body,
|
|
425
|
-
});
|
|
297
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
298
|
+
return b.build();
|
|
426
299
|
};
|
|
427
300
|
export const se_UpdateImageSetMetadataCommand = async (input, context) => {
|
|
428
|
-
const
|
|
301
|
+
const b = rb(input, context);
|
|
429
302
|
const headers = {
|
|
430
303
|
"content-type": "application/json",
|
|
431
304
|
};
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
305
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/updateImageSetMetadata");
|
|
306
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
307
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
436
308
|
const query = map({
|
|
437
|
-
|
|
309
|
+
[_lV]: [, __expectNonNull(input[_lVI], `latestVersionId`)],
|
|
438
310
|
});
|
|
439
311
|
let body;
|
|
440
312
|
if (input.updateImageSetMetadataUpdates !== undefined) {
|
|
@@ -451,16 +323,9 @@ export const se_UpdateImageSetMetadataCommand = async (input, context) => {
|
|
|
451
323
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
452
324
|
}
|
|
453
325
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
port,
|
|
458
|
-
method: "POST",
|
|
459
|
-
headers,
|
|
460
|
-
path: resolvedPath,
|
|
461
|
-
query,
|
|
462
|
-
body,
|
|
463
|
-
});
|
|
326
|
+
b.hn(resolvedHostname);
|
|
327
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
328
|
+
return b.build();
|
|
464
329
|
};
|
|
465
330
|
export const de_CopyImageSetCommand = async (output, context) => {
|
|
466
331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -763,7 +628,7 @@ export const de_GetImageFrameCommand = async (output, context) => {
|
|
|
763
628
|
}
|
|
764
629
|
const contents = map({
|
|
765
630
|
$metadata: deserializeMetadata(output),
|
|
766
|
-
|
|
631
|
+
[_cT]: [, output.headers[_ct]],
|
|
767
632
|
});
|
|
768
633
|
const data = output.body;
|
|
769
634
|
context.sdkStreamMixin(data);
|
|
@@ -867,8 +732,8 @@ export const de_GetImageSetMetadataCommand = async (output, context) => {
|
|
|
867
732
|
}
|
|
868
733
|
const contents = map({
|
|
869
734
|
$metadata: deserializeMetadata(output),
|
|
870
|
-
|
|
871
|
-
|
|
735
|
+
[_cT]: [, output.headers[_ct]],
|
|
736
|
+
[_cE]: [, output.headers[_ce]],
|
|
872
737
|
});
|
|
873
738
|
const data = output.body;
|
|
874
739
|
context.sdkStreamMixin(data);
|
|
@@ -1612,6 +1477,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1612
1477
|
value !== "" &&
|
|
1613
1478
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1614
1479
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1480
|
+
const _cE = "contentEncoding";
|
|
1481
|
+
const _cT = "contentType";
|
|
1482
|
+
const _ce = "content-encoding";
|
|
1483
|
+
const _ct = "content-type";
|
|
1484
|
+
const _dS = "datastoreStatus";
|
|
1485
|
+
const _jS = "jobStatus";
|
|
1486
|
+
const _lV = "latestVersion";
|
|
1487
|
+
const _lVI = "latestVersionId";
|
|
1488
|
+
const _mR = "maxResults";
|
|
1489
|
+
const _nT = "nextToken";
|
|
1490
|
+
const _tK = "tagKeys";
|
|
1491
|
+
const _v = "version";
|
|
1492
|
+
const _vI = "versionId";
|
|
1615
1493
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1616
1494
|
if (encoded.length) {
|
|
1617
1495
|
return JSON.parse(encoded);
|
|
@@ -4,4 +4,4 @@ import { MedicalImagingPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDICOMImportJobs: (config: MedicalImagingPaginationConfiguration, input: ListDICOMImportJobsCommandInput, ...rest: any[]) => Paginator<ListDICOMImportJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MedicalImagingPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatastores: (config: MedicalImagingPaginationConfiguration, input: ListDatastoresCommandInput, ...rest: any[]) => Paginator<ListDatastoresCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MedicalImagingPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListImageSetVersions: (config: MedicalImagingPaginationConfiguration, input: ListImageSetVersionsCommandInput, ...rest: any[]) => Paginator<ListImageSetVersionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MedicalImagingPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateSearchImageSets: (config: MedicalImagingPaginationConfiguration, input: SearchImageSetsCommandInput, ...rest: any[]) => Paginator<SearchImageSetsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDICOMImportJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListDICOMImportJobsCommand";
|
|
6
6
|
import { MedicalImagingPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDICOMImportJobs: (
|
|
8
8
|
config: MedicalImagingPaginationConfiguration,
|
|
9
9
|
input: ListDICOMImportJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDICOMImportJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDatastoresCommandOutput,
|
|
5
5
|
} from "../commands/ListDatastoresCommand";
|
|
6
6
|
import { MedicalImagingPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatastores: (
|
|
8
8
|
config: MedicalImagingPaginationConfiguration,
|
|
9
9
|
input: ListDatastoresCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDatastoresCommandOutput>;
|