@aws-sdk/client-braket 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.
Files changed (31) hide show
  1. package/dist-cjs/commands/CancelJobCommand.js +2 -2
  2. package/dist-cjs/commands/CancelQuantumTaskCommand.js +2 -2
  3. package/dist-cjs/commands/CreateJobCommand.js +2 -2
  4. package/dist-cjs/commands/CreateQuantumTaskCommand.js +2 -2
  5. package/dist-cjs/commands/GetDeviceCommand.js +2 -2
  6. package/dist-cjs/commands/GetJobCommand.js +2 -2
  7. package/dist-cjs/commands/GetQuantumTaskCommand.js +2 -2
  8. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  9. package/dist-cjs/commands/SearchDevicesCommand.js +2 -2
  10. package/dist-cjs/commands/SearchJobsCommand.js +2 -2
  11. package/dist-cjs/commands/SearchQuantumTasksCommand.js +2 -2
  12. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  13. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  14. package/dist-cjs/protocols/Aws_restJson1.js +244 -264
  15. package/dist-es/commands/CancelJobCommand.js +3 -3
  16. package/dist-es/commands/CancelQuantumTaskCommand.js +3 -3
  17. package/dist-es/commands/CreateJobCommand.js +3 -3
  18. package/dist-es/commands/CreateQuantumTaskCommand.js +3 -3
  19. package/dist-es/commands/GetDeviceCommand.js +3 -3
  20. package/dist-es/commands/GetJobCommand.js +3 -3
  21. package/dist-es/commands/GetQuantumTaskCommand.js +3 -3
  22. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  23. package/dist-es/commands/SearchDevicesCommand.js +3 -3
  24. package/dist-es/commands/SearchJobsCommand.js +3 -3
  25. package/dist-es/commands/SearchQuantumTasksCommand.js +3 -3
  26. package/dist-es/commands/TagResourceCommand.js +3 -3
  27. package/dist-es/commands/UntagResourceCommand.js +3 -3
  28. package/dist-es/protocols/Aws_restJson1.js +217 -237
  29. package/dist-types/protocols/Aws_restJson1.d.ts +104 -26
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -26
  31. package/package.json +35 -35
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchQuantumTasksCommand = exports.deserializeAws_restJson1SearchJobsCommand = exports.deserializeAws_restJson1SearchDevicesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1GetQuantumTaskCommand = exports.deserializeAws_restJson1GetJobCommand = exports.deserializeAws_restJson1GetDeviceCommand = exports.deserializeAws_restJson1CreateQuantumTaskCommand = exports.deserializeAws_restJson1CreateJobCommand = exports.deserializeAws_restJson1CancelQuantumTaskCommand = exports.deserializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchQuantumTasksCommand = exports.serializeAws_restJson1SearchJobsCommand = exports.serializeAws_restJson1SearchDevicesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1GetQuantumTaskCommand = exports.serializeAws_restJson1GetJobCommand = exports.serializeAws_restJson1GetDeviceCommand = exports.serializeAws_restJson1CreateQuantumTaskCommand = exports.serializeAws_restJson1CreateJobCommand = exports.serializeAws_restJson1CancelQuantumTaskCommand = exports.serializeAws_restJson1CancelJobCommand = void 0;
3
+ exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchQuantumTasksCommand = exports.de_SearchJobsCommand = exports.de_SearchDevicesCommand = exports.de_ListTagsForResourceCommand = exports.de_GetQuantumTaskCommand = exports.de_GetJobCommand = exports.de_GetDeviceCommand = exports.de_CreateQuantumTaskCommand = exports.de_CreateJobCommand = exports.de_CancelQuantumTaskCommand = exports.de_CancelJobCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchQuantumTasksCommand = exports.se_SearchJobsCommand = exports.se_SearchDevicesCommand = exports.se_ListTagsForResourceCommand = exports.se_GetQuantumTaskCommand = exports.se_GetJobCommand = exports.se_GetDeviceCommand = exports.se_CreateQuantumTaskCommand = exports.se_CreateJobCommand = exports.se_CancelQuantumTaskCommand = exports.se_CancelJobCommand = 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 uuid_1 = require("uuid");
7
7
  const BraketServiceException_1 = require("../models/BraketServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
- const serializeAws_restJson1CancelJobCommand = async (input, context) => {
9
+ const se_CancelJobCommand = async (input, context) => {
10
10
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
11
  const headers = {};
12
12
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job/{jobArn}/cancel";
@@ -22,8 +22,8 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
22
22
  body,
23
23
  });
24
24
  };
25
- exports.serializeAws_restJson1CancelJobCommand = serializeAws_restJson1CancelJobCommand;
26
- const serializeAws_restJson1CancelQuantumTaskCommand = async (input, context) => {
25
+ exports.se_CancelJobCommand = se_CancelJobCommand;
26
+ const se_CancelQuantumTaskCommand = async (input, context) => {
27
27
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
28
  const headers = {
29
29
  "content-type": "application/json",
@@ -44,8 +44,8 @@ const serializeAws_restJson1CancelQuantumTaskCommand = async (input, context) =>
44
44
  body,
45
45
  });
46
46
  };
47
- exports.serializeAws_restJson1CancelQuantumTaskCommand = serializeAws_restJson1CancelQuantumTaskCommand;
48
- const serializeAws_restJson1CreateJobCommand = async (input, context) => {
47
+ exports.se_CancelQuantumTaskCommand = se_CancelQuantumTaskCommand;
48
+ const se_CreateJobCommand = async (input, context) => {
49
49
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
50
  const headers = {
51
51
  "content-type": "application/json",
@@ -54,33 +54,25 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
54
54
  let body;
55
55
  body = JSON.stringify({
56
56
  ...(input.algorithmSpecification != null && {
57
- algorithmSpecification: serializeAws_restJson1AlgorithmSpecification(input.algorithmSpecification, context),
57
+ algorithmSpecification: se_AlgorithmSpecification(input.algorithmSpecification, context),
58
58
  }),
59
59
  ...(input.checkpointConfig != null && {
60
- checkpointConfig: serializeAws_restJson1JobCheckpointConfig(input.checkpointConfig, context),
60
+ checkpointConfig: se_JobCheckpointConfig(input.checkpointConfig, context),
61
61
  }),
62
62
  clientToken: input.clientToken ?? (0, uuid_1.v4)(),
63
- ...(input.deviceConfig != null && {
64
- deviceConfig: serializeAws_restJson1DeviceConfig(input.deviceConfig, context),
65
- }),
66
- ...(input.hyperParameters != null && {
67
- hyperParameters: serializeAws_restJson1HyperParameters(input.hyperParameters, context),
68
- }),
69
- ...(input.inputDataConfig != null && {
70
- inputDataConfig: serializeAws_restJson1InputConfigList(input.inputDataConfig, context),
71
- }),
72
- ...(input.instanceConfig != null && {
73
- instanceConfig: serializeAws_restJson1InstanceConfig(input.instanceConfig, context),
74
- }),
63
+ ...(input.deviceConfig != null && { deviceConfig: se_DeviceConfig(input.deviceConfig, context) }),
64
+ ...(input.hyperParameters != null && { hyperParameters: se_HyperParameters(input.hyperParameters, context) }),
65
+ ...(input.inputDataConfig != null && { inputDataConfig: se_InputConfigList(input.inputDataConfig, context) }),
66
+ ...(input.instanceConfig != null && { instanceConfig: se_InstanceConfig(input.instanceConfig, context) }),
75
67
  ...(input.jobName != null && { jobName: input.jobName }),
76
68
  ...(input.outputDataConfig != null && {
77
- outputDataConfig: serializeAws_restJson1JobOutputDataConfig(input.outputDataConfig, context),
69
+ outputDataConfig: se_JobOutputDataConfig(input.outputDataConfig, context),
78
70
  }),
79
71
  ...(input.roleArn != null && { roleArn: input.roleArn }),
80
72
  ...(input.stoppingCondition != null && {
81
- stoppingCondition: serializeAws_restJson1JobStoppingCondition(input.stoppingCondition, context),
73
+ stoppingCondition: se_JobStoppingCondition(input.stoppingCondition, context),
82
74
  }),
83
- ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
75
+ ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
84
76
  });
85
77
  return new protocol_http_1.HttpRequest({
86
78
  protocol,
@@ -92,8 +84,8 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
92
84
  body,
93
85
  });
94
86
  };
95
- exports.serializeAws_restJson1CreateJobCommand = serializeAws_restJson1CreateJobCommand;
96
- const serializeAws_restJson1CreateQuantumTaskCommand = async (input, context) => {
87
+ exports.se_CreateJobCommand = se_CreateJobCommand;
88
+ const se_CreateQuantumTaskCommand = async (input, context) => {
97
89
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
90
  const headers = {
99
91
  "content-type": "application/json",
@@ -109,7 +101,7 @@ const serializeAws_restJson1CreateQuantumTaskCommand = async (input, context) =>
109
101
  ...(input.outputS3Bucket != null && { outputS3Bucket: input.outputS3Bucket }),
110
102
  ...(input.outputS3KeyPrefix != null && { outputS3KeyPrefix: input.outputS3KeyPrefix }),
111
103
  ...(input.shots != null && { shots: input.shots }),
112
- ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
104
+ ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
113
105
  });
114
106
  return new protocol_http_1.HttpRequest({
115
107
  protocol,
@@ -121,8 +113,8 @@ const serializeAws_restJson1CreateQuantumTaskCommand = async (input, context) =>
121
113
  body,
122
114
  });
123
115
  };
124
- exports.serializeAws_restJson1CreateQuantumTaskCommand = serializeAws_restJson1CreateQuantumTaskCommand;
125
- const serializeAws_restJson1GetDeviceCommand = async (input, context) => {
116
+ exports.se_CreateQuantumTaskCommand = se_CreateQuantumTaskCommand;
117
+ const se_GetDeviceCommand = async (input, context) => {
126
118
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
119
  const headers = {};
128
120
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device/{deviceArn}";
@@ -138,8 +130,8 @@ const serializeAws_restJson1GetDeviceCommand = async (input, context) => {
138
130
  body,
139
131
  });
140
132
  };
141
- exports.serializeAws_restJson1GetDeviceCommand = serializeAws_restJson1GetDeviceCommand;
142
- const serializeAws_restJson1GetJobCommand = async (input, context) => {
133
+ exports.se_GetDeviceCommand = se_GetDeviceCommand;
134
+ const se_GetJobCommand = async (input, context) => {
143
135
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
144
136
  const headers = {};
145
137
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job/{jobArn}";
@@ -155,8 +147,8 @@ const serializeAws_restJson1GetJobCommand = async (input, context) => {
155
147
  body,
156
148
  });
157
149
  };
158
- exports.serializeAws_restJson1GetJobCommand = serializeAws_restJson1GetJobCommand;
159
- const serializeAws_restJson1GetQuantumTaskCommand = async (input, context) => {
150
+ exports.se_GetJobCommand = se_GetJobCommand;
151
+ const se_GetQuantumTaskCommand = async (input, context) => {
160
152
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
153
  const headers = {};
162
154
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-task/{quantumTaskArn}";
@@ -172,8 +164,8 @@ const serializeAws_restJson1GetQuantumTaskCommand = async (input, context) => {
172
164
  body,
173
165
  });
174
166
  };
175
- exports.serializeAws_restJson1GetQuantumTaskCommand = serializeAws_restJson1GetQuantumTaskCommand;
176
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
167
+ exports.se_GetQuantumTaskCommand = se_GetQuantumTaskCommand;
168
+ const se_ListTagsForResourceCommand = async (input, context) => {
177
169
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
170
  const headers = {};
179
171
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -189,8 +181,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
189
181
  body,
190
182
  });
191
183
  };
192
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
193
- const serializeAws_restJson1SearchDevicesCommand = async (input, context) => {
184
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
185
+ const se_SearchDevicesCommand = async (input, context) => {
194
186
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
187
  const headers = {
196
188
  "content-type": "application/json",
@@ -198,7 +190,7 @@ const serializeAws_restJson1SearchDevicesCommand = async (input, context) => {
198
190
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices";
199
191
  let body;
200
192
  body = JSON.stringify({
201
- ...(input.filters != null && { filters: serializeAws_restJson1SearchDevicesFilterList(input.filters, context) }),
193
+ ...(input.filters != null && { filters: se_SearchDevicesFilterList(input.filters, context) }),
202
194
  ...(input.maxResults != null && { maxResults: input.maxResults }),
203
195
  ...(input.nextToken != null && { nextToken: input.nextToken }),
204
196
  });
@@ -212,8 +204,8 @@ const serializeAws_restJson1SearchDevicesCommand = async (input, context) => {
212
204
  body,
213
205
  });
214
206
  };
215
- exports.serializeAws_restJson1SearchDevicesCommand = serializeAws_restJson1SearchDevicesCommand;
216
- const serializeAws_restJson1SearchJobsCommand = async (input, context) => {
207
+ exports.se_SearchDevicesCommand = se_SearchDevicesCommand;
208
+ const se_SearchJobsCommand = async (input, context) => {
217
209
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
218
210
  const headers = {
219
211
  "content-type": "application/json",
@@ -221,7 +213,7 @@ const serializeAws_restJson1SearchJobsCommand = async (input, context) => {
221
213
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
222
214
  let body;
223
215
  body = JSON.stringify({
224
- ...(input.filters != null && { filters: serializeAws_restJson1SearchJobsFilterList(input.filters, context) }),
216
+ ...(input.filters != null && { filters: se_SearchJobsFilterList(input.filters, context) }),
225
217
  ...(input.maxResults != null && { maxResults: input.maxResults }),
226
218
  ...(input.nextToken != null && { nextToken: input.nextToken }),
227
219
  });
@@ -235,8 +227,8 @@ const serializeAws_restJson1SearchJobsCommand = async (input, context) => {
235
227
  body,
236
228
  });
237
229
  };
238
- exports.serializeAws_restJson1SearchJobsCommand = serializeAws_restJson1SearchJobsCommand;
239
- const serializeAws_restJson1SearchQuantumTasksCommand = async (input, context) => {
230
+ exports.se_SearchJobsCommand = se_SearchJobsCommand;
231
+ const se_SearchQuantumTasksCommand = async (input, context) => {
240
232
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
241
233
  const headers = {
242
234
  "content-type": "application/json",
@@ -244,9 +236,7 @@ const serializeAws_restJson1SearchQuantumTasksCommand = async (input, context) =
244
236
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-tasks";
245
237
  let body;
246
238
  body = JSON.stringify({
247
- ...(input.filters != null && {
248
- filters: serializeAws_restJson1SearchQuantumTasksFilterList(input.filters, context),
249
- }),
239
+ ...(input.filters != null && { filters: se_SearchQuantumTasksFilterList(input.filters, context) }),
250
240
  ...(input.maxResults != null && { maxResults: input.maxResults }),
251
241
  ...(input.nextToken != null && { nextToken: input.nextToken }),
252
242
  });
@@ -260,8 +250,8 @@ const serializeAws_restJson1SearchQuantumTasksCommand = async (input, context) =
260
250
  body,
261
251
  });
262
252
  };
263
- exports.serializeAws_restJson1SearchQuantumTasksCommand = serializeAws_restJson1SearchQuantumTasksCommand;
264
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
253
+ exports.se_SearchQuantumTasksCommand = se_SearchQuantumTasksCommand;
254
+ const se_TagResourceCommand = async (input, context) => {
265
255
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
256
  const headers = {
267
257
  "content-type": "application/json",
@@ -270,7 +260,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
270
260
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
271
261
  let body;
272
262
  body = JSON.stringify({
273
- ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
263
+ ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
274
264
  });
275
265
  return new protocol_http_1.HttpRequest({
276
266
  protocol,
@@ -282,8 +272,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
282
272
  body,
283
273
  });
284
274
  };
285
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
286
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
275
+ exports.se_TagResourceCommand = se_TagResourceCommand;
276
+ const se_UntagResourceCommand = async (input, context) => {
287
277
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
288
278
  const headers = {};
289
279
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -306,10 +296,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
306
296
  body,
307
297
  });
308
298
  };
309
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
310
- const deserializeAws_restJson1CancelJobCommand = async (output, context) => {
299
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
300
+ const de_CancelJobCommand = async (output, context) => {
311
301
  if (output.statusCode !== 200 && output.statusCode >= 300) {
312
- return deserializeAws_restJson1CancelJobCommandError(output, context);
302
+ return de_CancelJobCommandError(output, context);
313
303
  }
314
304
  const contents = map({
315
305
  $metadata: deserializeMetadata(output),
@@ -323,8 +313,8 @@ const deserializeAws_restJson1CancelJobCommand = async (output, context) => {
323
313
  }
324
314
  return contents;
325
315
  };
326
- exports.deserializeAws_restJson1CancelJobCommand = deserializeAws_restJson1CancelJobCommand;
327
- const deserializeAws_restJson1CancelJobCommandError = async (output, context) => {
316
+ exports.de_CancelJobCommand = de_CancelJobCommand;
317
+ const de_CancelJobCommandError = async (output, context) => {
328
318
  const parsedOutput = {
329
319
  ...output,
330
320
  body: await parseErrorBody(output.body, context),
@@ -333,22 +323,22 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
333
323
  switch (errorCode) {
334
324
  case "AccessDeniedException":
335
325
  case "com.amazonaws.braket#AccessDeniedException":
336
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
326
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
337
327
  case "ConflictException":
338
328
  case "com.amazonaws.braket#ConflictException":
339
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
329
+ throw await de_ConflictExceptionRes(parsedOutput, context);
340
330
  case "InternalServiceException":
341
331
  case "com.amazonaws.braket#InternalServiceException":
342
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
332
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
343
333
  case "ResourceNotFoundException":
344
334
  case "com.amazonaws.braket#ResourceNotFoundException":
345
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
335
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
346
336
  case "ThrottlingException":
347
337
  case "com.amazonaws.braket#ThrottlingException":
348
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
338
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
349
339
  case "ValidationException":
350
340
  case "com.amazonaws.braket#ValidationException":
351
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
341
+ throw await de_ValidationExceptionRes(parsedOutput, context);
352
342
  default:
353
343
  const parsedBody = parsedOutput.body;
354
344
  (0, smithy_client_1.throwDefaultError)({
@@ -359,9 +349,9 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
359
349
  });
360
350
  }
361
351
  };
362
- const deserializeAws_restJson1CancelQuantumTaskCommand = async (output, context) => {
352
+ const de_CancelQuantumTaskCommand = async (output, context) => {
363
353
  if (output.statusCode !== 200 && output.statusCode >= 300) {
364
- return deserializeAws_restJson1CancelQuantumTaskCommandError(output, context);
354
+ return de_CancelQuantumTaskCommandError(output, context);
365
355
  }
366
356
  const contents = map({
367
357
  $metadata: deserializeMetadata(output),
@@ -375,8 +365,8 @@ const deserializeAws_restJson1CancelQuantumTaskCommand = async (output, context)
375
365
  }
376
366
  return contents;
377
367
  };
378
- exports.deserializeAws_restJson1CancelQuantumTaskCommand = deserializeAws_restJson1CancelQuantumTaskCommand;
379
- const deserializeAws_restJson1CancelQuantumTaskCommandError = async (output, context) => {
368
+ exports.de_CancelQuantumTaskCommand = de_CancelQuantumTaskCommand;
369
+ const de_CancelQuantumTaskCommandError = async (output, context) => {
380
370
  const parsedOutput = {
381
371
  ...output,
382
372
  body: await parseErrorBody(output.body, context),
@@ -385,22 +375,22 @@ const deserializeAws_restJson1CancelQuantumTaskCommandError = async (output, con
385
375
  switch (errorCode) {
386
376
  case "AccessDeniedException":
387
377
  case "com.amazonaws.braket#AccessDeniedException":
388
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
378
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
389
379
  case "ConflictException":
390
380
  case "com.amazonaws.braket#ConflictException":
391
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
381
+ throw await de_ConflictExceptionRes(parsedOutput, context);
392
382
  case "InternalServiceException":
393
383
  case "com.amazonaws.braket#InternalServiceException":
394
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
384
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
395
385
  case "ResourceNotFoundException":
396
386
  case "com.amazonaws.braket#ResourceNotFoundException":
397
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
387
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
398
388
  case "ThrottlingException":
399
389
  case "com.amazonaws.braket#ThrottlingException":
400
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
390
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
401
391
  case "ValidationException":
402
392
  case "com.amazonaws.braket#ValidationException":
403
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
393
+ throw await de_ValidationExceptionRes(parsedOutput, context);
404
394
  default:
405
395
  const parsedBody = parsedOutput.body;
406
396
  (0, smithy_client_1.throwDefaultError)({
@@ -411,9 +401,9 @@ const deserializeAws_restJson1CancelQuantumTaskCommandError = async (output, con
411
401
  });
412
402
  }
413
403
  };
414
- const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
404
+ const de_CreateJobCommand = async (output, context) => {
415
405
  if (output.statusCode !== 201 && output.statusCode >= 300) {
416
- return deserializeAws_restJson1CreateJobCommandError(output, context);
406
+ return de_CreateJobCommandError(output, context);
417
407
  }
418
408
  const contents = map({
419
409
  $metadata: deserializeMetadata(output),
@@ -424,8 +414,8 @@ const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
424
414
  }
425
415
  return contents;
426
416
  };
427
- exports.deserializeAws_restJson1CreateJobCommand = deserializeAws_restJson1CreateJobCommand;
428
- const deserializeAws_restJson1CreateJobCommandError = async (output, context) => {
417
+ exports.de_CreateJobCommand = de_CreateJobCommand;
418
+ const de_CreateJobCommandError = async (output, context) => {
429
419
  const parsedOutput = {
430
420
  ...output,
431
421
  body: await parseErrorBody(output.body, context),
@@ -434,25 +424,25 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
434
424
  switch (errorCode) {
435
425
  case "AccessDeniedException":
436
426
  case "com.amazonaws.braket#AccessDeniedException":
437
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
427
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
438
428
  case "ConflictException":
439
429
  case "com.amazonaws.braket#ConflictException":
440
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
430
+ throw await de_ConflictExceptionRes(parsedOutput, context);
441
431
  case "DeviceRetiredException":
442
432
  case "com.amazonaws.braket#DeviceRetiredException":
443
- throw await deserializeAws_restJson1DeviceRetiredExceptionResponse(parsedOutput, context);
433
+ throw await de_DeviceRetiredExceptionRes(parsedOutput, context);
444
434
  case "InternalServiceException":
445
435
  case "com.amazonaws.braket#InternalServiceException":
446
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
436
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
447
437
  case "ServiceQuotaExceededException":
448
438
  case "com.amazonaws.braket#ServiceQuotaExceededException":
449
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
439
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
450
440
  case "ThrottlingException":
451
441
  case "com.amazonaws.braket#ThrottlingException":
452
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
442
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
453
443
  case "ValidationException":
454
444
  case "com.amazonaws.braket#ValidationException":
455
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
445
+ throw await de_ValidationExceptionRes(parsedOutput, context);
456
446
  default:
457
447
  const parsedBody = parsedOutput.body;
458
448
  (0, smithy_client_1.throwDefaultError)({
@@ -463,9 +453,9 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
463
453
  });
464
454
  }
465
455
  };
466
- const deserializeAws_restJson1CreateQuantumTaskCommand = async (output, context) => {
456
+ const de_CreateQuantumTaskCommand = async (output, context) => {
467
457
  if (output.statusCode !== 201 && output.statusCode >= 300) {
468
- return deserializeAws_restJson1CreateQuantumTaskCommandError(output, context);
458
+ return de_CreateQuantumTaskCommandError(output, context);
469
459
  }
470
460
  const contents = map({
471
461
  $metadata: deserializeMetadata(output),
@@ -476,8 +466,8 @@ const deserializeAws_restJson1CreateQuantumTaskCommand = async (output, context)
476
466
  }
477
467
  return contents;
478
468
  };
479
- exports.deserializeAws_restJson1CreateQuantumTaskCommand = deserializeAws_restJson1CreateQuantumTaskCommand;
480
- const deserializeAws_restJson1CreateQuantumTaskCommandError = async (output, context) => {
469
+ exports.de_CreateQuantumTaskCommand = de_CreateQuantumTaskCommand;
470
+ const de_CreateQuantumTaskCommandError = async (output, context) => {
481
471
  const parsedOutput = {
482
472
  ...output,
483
473
  body: await parseErrorBody(output.body, context),
@@ -486,25 +476,25 @@ const deserializeAws_restJson1CreateQuantumTaskCommandError = async (output, con
486
476
  switch (errorCode) {
487
477
  case "AccessDeniedException":
488
478
  case "com.amazonaws.braket#AccessDeniedException":
489
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
479
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
490
480
  case "DeviceOfflineException":
491
481
  case "com.amazonaws.braket#DeviceOfflineException":
492
- throw await deserializeAws_restJson1DeviceOfflineExceptionResponse(parsedOutput, context);
482
+ throw await de_DeviceOfflineExceptionRes(parsedOutput, context);
493
483
  case "DeviceRetiredException":
494
484
  case "com.amazonaws.braket#DeviceRetiredException":
495
- throw await deserializeAws_restJson1DeviceRetiredExceptionResponse(parsedOutput, context);
485
+ throw await de_DeviceRetiredExceptionRes(parsedOutput, context);
496
486
  case "InternalServiceException":
497
487
  case "com.amazonaws.braket#InternalServiceException":
498
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
488
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
499
489
  case "ServiceQuotaExceededException":
500
490
  case "com.amazonaws.braket#ServiceQuotaExceededException":
501
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
491
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
502
492
  case "ThrottlingException":
503
493
  case "com.amazonaws.braket#ThrottlingException":
504
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
494
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
505
495
  case "ValidationException":
506
496
  case "com.amazonaws.braket#ValidationException":
507
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
497
+ throw await de_ValidationExceptionRes(parsedOutput, context);
508
498
  default:
509
499
  const parsedBody = parsedOutput.body;
510
500
  (0, smithy_client_1.throwDefaultError)({
@@ -515,9 +505,9 @@ const deserializeAws_restJson1CreateQuantumTaskCommandError = async (output, con
515
505
  });
516
506
  }
517
507
  };
518
- const deserializeAws_restJson1GetDeviceCommand = async (output, context) => {
508
+ const de_GetDeviceCommand = async (output, context) => {
519
509
  if (output.statusCode !== 200 && output.statusCode >= 300) {
520
- return deserializeAws_restJson1GetDeviceCommandError(output, context);
510
+ return de_GetDeviceCommandError(output, context);
521
511
  }
522
512
  const contents = map({
523
513
  $metadata: deserializeMetadata(output),
@@ -543,8 +533,8 @@ const deserializeAws_restJson1GetDeviceCommand = async (output, context) => {
543
533
  }
544
534
  return contents;
545
535
  };
546
- exports.deserializeAws_restJson1GetDeviceCommand = deserializeAws_restJson1GetDeviceCommand;
547
- const deserializeAws_restJson1GetDeviceCommandError = async (output, context) => {
536
+ exports.de_GetDeviceCommand = de_GetDeviceCommand;
537
+ const de_GetDeviceCommandError = async (output, context) => {
548
538
  const parsedOutput = {
549
539
  ...output,
550
540
  body: await parseErrorBody(output.body, context),
@@ -553,19 +543,19 @@ const deserializeAws_restJson1GetDeviceCommandError = async (output, context) =>
553
543
  switch (errorCode) {
554
544
  case "AccessDeniedException":
555
545
  case "com.amazonaws.braket#AccessDeniedException":
556
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
546
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
557
547
  case "InternalServiceException":
558
548
  case "com.amazonaws.braket#InternalServiceException":
559
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
549
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
560
550
  case "ResourceNotFoundException":
561
551
  case "com.amazonaws.braket#ResourceNotFoundException":
562
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
552
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
563
553
  case "ThrottlingException":
564
554
  case "com.amazonaws.braket#ThrottlingException":
565
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
555
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
566
556
  case "ValidationException":
567
557
  case "com.amazonaws.braket#ValidationException":
568
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
558
+ throw await de_ValidationExceptionRes(parsedOutput, context);
569
559
  default:
570
560
  const parsedBody = parsedOutput.body;
571
561
  (0, smithy_client_1.throwDefaultError)({
@@ -576,46 +566,46 @@ const deserializeAws_restJson1GetDeviceCommandError = async (output, context) =>
576
566
  });
577
567
  }
578
568
  };
579
- const deserializeAws_restJson1GetJobCommand = async (output, context) => {
569
+ const de_GetJobCommand = async (output, context) => {
580
570
  if (output.statusCode !== 200 && output.statusCode >= 300) {
581
- return deserializeAws_restJson1GetJobCommandError(output, context);
571
+ return de_GetJobCommandError(output, context);
582
572
  }
583
573
  const contents = map({
584
574
  $metadata: deserializeMetadata(output),
585
575
  });
586
576
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
587
577
  if (data.algorithmSpecification != null) {
588
- contents.algorithmSpecification = deserializeAws_restJson1AlgorithmSpecification(data.algorithmSpecification, context);
578
+ contents.algorithmSpecification = de_AlgorithmSpecification(data.algorithmSpecification, context);
589
579
  }
590
580
  if (data.billableDuration != null) {
591
581
  contents.billableDuration = (0, smithy_client_1.expectInt32)(data.billableDuration);
592
582
  }
593
583
  if (data.checkpointConfig != null) {
594
- contents.checkpointConfig = deserializeAws_restJson1JobCheckpointConfig(data.checkpointConfig, context);
584
+ contents.checkpointConfig = de_JobCheckpointConfig(data.checkpointConfig, context);
595
585
  }
596
586
  if (data.createdAt != null) {
597
587
  contents.createdAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdAt));
598
588
  }
599
589
  if (data.deviceConfig != null) {
600
- contents.deviceConfig = deserializeAws_restJson1DeviceConfig(data.deviceConfig, context);
590
+ contents.deviceConfig = de_DeviceConfig(data.deviceConfig, context);
601
591
  }
602
592
  if (data.endedAt != null) {
603
593
  contents.endedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.endedAt));
604
594
  }
605
595
  if (data.events != null) {
606
- contents.events = deserializeAws_restJson1JobEvents(data.events, context);
596
+ contents.events = de_JobEvents(data.events, context);
607
597
  }
608
598
  if (data.failureReason != null) {
609
599
  contents.failureReason = (0, smithy_client_1.expectString)(data.failureReason);
610
600
  }
611
601
  if (data.hyperParameters != null) {
612
- contents.hyperParameters = deserializeAws_restJson1HyperParameters(data.hyperParameters, context);
602
+ contents.hyperParameters = de_HyperParameters(data.hyperParameters, context);
613
603
  }
614
604
  if (data.inputDataConfig != null) {
615
- contents.inputDataConfig = deserializeAws_restJson1InputConfigList(data.inputDataConfig, context);
605
+ contents.inputDataConfig = de_InputConfigList(data.inputDataConfig, context);
616
606
  }
617
607
  if (data.instanceConfig != null) {
618
- contents.instanceConfig = deserializeAws_restJson1InstanceConfig(data.instanceConfig, context);
608
+ contents.instanceConfig = de_InstanceConfig(data.instanceConfig, context);
619
609
  }
620
610
  if (data.jobArn != null) {
621
611
  contents.jobArn = (0, smithy_client_1.expectString)(data.jobArn);
@@ -624,7 +614,7 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
624
614
  contents.jobName = (0, smithy_client_1.expectString)(data.jobName);
625
615
  }
626
616
  if (data.outputDataConfig != null) {
627
- contents.outputDataConfig = deserializeAws_restJson1JobOutputDataConfig(data.outputDataConfig, context);
617
+ contents.outputDataConfig = de_JobOutputDataConfig(data.outputDataConfig, context);
628
618
  }
629
619
  if (data.roleArn != null) {
630
620
  contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
@@ -636,15 +626,15 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
636
626
  contents.status = (0, smithy_client_1.expectString)(data.status);
637
627
  }
638
628
  if (data.stoppingCondition != null) {
639
- contents.stoppingCondition = deserializeAws_restJson1JobStoppingCondition(data.stoppingCondition, context);
629
+ contents.stoppingCondition = de_JobStoppingCondition(data.stoppingCondition, context);
640
630
  }
641
631
  if (data.tags != null) {
642
- contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
632
+ contents.tags = de_TagsMap(data.tags, context);
643
633
  }
644
634
  return contents;
645
635
  };
646
- exports.deserializeAws_restJson1GetJobCommand = deserializeAws_restJson1GetJobCommand;
647
- const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
636
+ exports.de_GetJobCommand = de_GetJobCommand;
637
+ const de_GetJobCommandError = async (output, context) => {
648
638
  const parsedOutput = {
649
639
  ...output,
650
640
  body: await parseErrorBody(output.body, context),
@@ -653,19 +643,19 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
653
643
  switch (errorCode) {
654
644
  case "AccessDeniedException":
655
645
  case "com.amazonaws.braket#AccessDeniedException":
656
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
646
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
657
647
  case "InternalServiceException":
658
648
  case "com.amazonaws.braket#InternalServiceException":
659
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
649
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
660
650
  case "ResourceNotFoundException":
661
651
  case "com.amazonaws.braket#ResourceNotFoundException":
662
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
652
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
663
653
  case "ThrottlingException":
664
654
  case "com.amazonaws.braket#ThrottlingException":
665
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
655
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
666
656
  case "ValidationException":
667
657
  case "com.amazonaws.braket#ValidationException":
668
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
658
+ throw await de_ValidationExceptionRes(parsedOutput, context);
669
659
  default:
670
660
  const parsedBody = parsedOutput.body;
671
661
  (0, smithy_client_1.throwDefaultError)({
@@ -676,9 +666,9 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
676
666
  });
677
667
  }
678
668
  };
679
- const deserializeAws_restJson1GetQuantumTaskCommand = async (output, context) => {
669
+ const de_GetQuantumTaskCommand = async (output, context) => {
680
670
  if (output.statusCode !== 200 && output.statusCode >= 300) {
681
- return deserializeAws_restJson1GetQuantumTaskCommandError(output, context);
671
+ return de_GetQuantumTaskCommandError(output, context);
682
672
  }
683
673
  const contents = map({
684
674
  $metadata: deserializeMetadata(output),
@@ -718,12 +708,12 @@ const deserializeAws_restJson1GetQuantumTaskCommand = async (output, context) =>
718
708
  contents.status = (0, smithy_client_1.expectString)(data.status);
719
709
  }
720
710
  if (data.tags != null) {
721
- contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
711
+ contents.tags = de_TagsMap(data.tags, context);
722
712
  }
723
713
  return contents;
724
714
  };
725
- exports.deserializeAws_restJson1GetQuantumTaskCommand = deserializeAws_restJson1GetQuantumTaskCommand;
726
- const deserializeAws_restJson1GetQuantumTaskCommandError = async (output, context) => {
715
+ exports.de_GetQuantumTaskCommand = de_GetQuantumTaskCommand;
716
+ const de_GetQuantumTaskCommandError = async (output, context) => {
727
717
  const parsedOutput = {
728
718
  ...output,
729
719
  body: await parseErrorBody(output.body, context),
@@ -732,19 +722,19 @@ const deserializeAws_restJson1GetQuantumTaskCommandError = async (output, contex
732
722
  switch (errorCode) {
733
723
  case "AccessDeniedException":
734
724
  case "com.amazonaws.braket#AccessDeniedException":
735
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
725
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
736
726
  case "InternalServiceException":
737
727
  case "com.amazonaws.braket#InternalServiceException":
738
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
728
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
739
729
  case "ResourceNotFoundException":
740
730
  case "com.amazonaws.braket#ResourceNotFoundException":
741
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
731
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
742
732
  case "ThrottlingException":
743
733
  case "com.amazonaws.braket#ThrottlingException":
744
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
734
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
745
735
  case "ValidationException":
746
736
  case "com.amazonaws.braket#ValidationException":
747
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
737
+ throw await de_ValidationExceptionRes(parsedOutput, context);
748
738
  default:
749
739
  const parsedBody = parsedOutput.body;
750
740
  (0, smithy_client_1.throwDefaultError)({
@@ -755,21 +745,21 @@ const deserializeAws_restJson1GetQuantumTaskCommandError = async (output, contex
755
745
  });
756
746
  }
757
747
  };
758
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
748
+ const de_ListTagsForResourceCommand = async (output, context) => {
759
749
  if (output.statusCode !== 200 && output.statusCode >= 300) {
760
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
750
+ return de_ListTagsForResourceCommandError(output, context);
761
751
  }
762
752
  const contents = map({
763
753
  $metadata: deserializeMetadata(output),
764
754
  });
765
755
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
766
756
  if (data.tags != null) {
767
- contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
757
+ contents.tags = de_TagsMap(data.tags, context);
768
758
  }
769
759
  return contents;
770
760
  };
771
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
772
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
761
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
762
+ const de_ListTagsForResourceCommandError = async (output, context) => {
773
763
  const parsedOutput = {
774
764
  ...output,
775
765
  body: await parseErrorBody(output.body, context),
@@ -778,13 +768,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
778
768
  switch (errorCode) {
779
769
  case "InternalServiceException":
780
770
  case "com.amazonaws.braket#InternalServiceException":
781
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
771
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
782
772
  case "ResourceNotFoundException":
783
773
  case "com.amazonaws.braket#ResourceNotFoundException":
784
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
774
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
785
775
  case "ValidationException":
786
776
  case "com.amazonaws.braket#ValidationException":
787
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
777
+ throw await de_ValidationExceptionRes(parsedOutput, context);
788
778
  default:
789
779
  const parsedBody = parsedOutput.body;
790
780
  (0, smithy_client_1.throwDefaultError)({
@@ -795,24 +785,24 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
795
785
  });
796
786
  }
797
787
  };
798
- const deserializeAws_restJson1SearchDevicesCommand = async (output, context) => {
788
+ const de_SearchDevicesCommand = async (output, context) => {
799
789
  if (output.statusCode !== 200 && output.statusCode >= 300) {
800
- return deserializeAws_restJson1SearchDevicesCommandError(output, context);
790
+ return de_SearchDevicesCommandError(output, context);
801
791
  }
802
792
  const contents = map({
803
793
  $metadata: deserializeMetadata(output),
804
794
  });
805
795
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
806
796
  if (data.devices != null) {
807
- contents.devices = deserializeAws_restJson1DeviceSummaryList(data.devices, context);
797
+ contents.devices = de_DeviceSummaryList(data.devices, context);
808
798
  }
809
799
  if (data.nextToken != null) {
810
800
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
811
801
  }
812
802
  return contents;
813
803
  };
814
- exports.deserializeAws_restJson1SearchDevicesCommand = deserializeAws_restJson1SearchDevicesCommand;
815
- const deserializeAws_restJson1SearchDevicesCommandError = async (output, context) => {
804
+ exports.de_SearchDevicesCommand = de_SearchDevicesCommand;
805
+ const de_SearchDevicesCommandError = async (output, context) => {
816
806
  const parsedOutput = {
817
807
  ...output,
818
808
  body: await parseErrorBody(output.body, context),
@@ -821,16 +811,16 @@ const deserializeAws_restJson1SearchDevicesCommandError = async (output, context
821
811
  switch (errorCode) {
822
812
  case "AccessDeniedException":
823
813
  case "com.amazonaws.braket#AccessDeniedException":
824
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
814
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
825
815
  case "InternalServiceException":
826
816
  case "com.amazonaws.braket#InternalServiceException":
827
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
817
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
828
818
  case "ThrottlingException":
829
819
  case "com.amazonaws.braket#ThrottlingException":
830
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
820
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
831
821
  case "ValidationException":
832
822
  case "com.amazonaws.braket#ValidationException":
833
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
823
+ throw await de_ValidationExceptionRes(parsedOutput, context);
834
824
  default:
835
825
  const parsedBody = parsedOutput.body;
836
826
  (0, smithy_client_1.throwDefaultError)({
@@ -841,24 +831,24 @@ const deserializeAws_restJson1SearchDevicesCommandError = async (output, context
841
831
  });
842
832
  }
843
833
  };
844
- const deserializeAws_restJson1SearchJobsCommand = async (output, context) => {
834
+ const de_SearchJobsCommand = async (output, context) => {
845
835
  if (output.statusCode !== 200 && output.statusCode >= 300) {
846
- return deserializeAws_restJson1SearchJobsCommandError(output, context);
836
+ return de_SearchJobsCommandError(output, context);
847
837
  }
848
838
  const contents = map({
849
839
  $metadata: deserializeMetadata(output),
850
840
  });
851
841
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
852
842
  if (data.jobs != null) {
853
- contents.jobs = deserializeAws_restJson1JobSummaryList(data.jobs, context);
843
+ contents.jobs = de_JobSummaryList(data.jobs, context);
854
844
  }
855
845
  if (data.nextToken != null) {
856
846
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
857
847
  }
858
848
  return contents;
859
849
  };
860
- exports.deserializeAws_restJson1SearchJobsCommand = deserializeAws_restJson1SearchJobsCommand;
861
- const deserializeAws_restJson1SearchJobsCommandError = async (output, context) => {
850
+ exports.de_SearchJobsCommand = de_SearchJobsCommand;
851
+ const de_SearchJobsCommandError = async (output, context) => {
862
852
  const parsedOutput = {
863
853
  ...output,
864
854
  body: await parseErrorBody(output.body, context),
@@ -867,16 +857,16 @@ const deserializeAws_restJson1SearchJobsCommandError = async (output, context) =
867
857
  switch (errorCode) {
868
858
  case "AccessDeniedException":
869
859
  case "com.amazonaws.braket#AccessDeniedException":
870
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
860
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
871
861
  case "InternalServiceException":
872
862
  case "com.amazonaws.braket#InternalServiceException":
873
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
863
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
874
864
  case "ThrottlingException":
875
865
  case "com.amazonaws.braket#ThrottlingException":
876
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
866
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
877
867
  case "ValidationException":
878
868
  case "com.amazonaws.braket#ValidationException":
879
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
869
+ throw await de_ValidationExceptionRes(parsedOutput, context);
880
870
  default:
881
871
  const parsedBody = parsedOutput.body;
882
872
  (0, smithy_client_1.throwDefaultError)({
@@ -887,9 +877,9 @@ const deserializeAws_restJson1SearchJobsCommandError = async (output, context) =
887
877
  });
888
878
  }
889
879
  };
890
- const deserializeAws_restJson1SearchQuantumTasksCommand = async (output, context) => {
880
+ const de_SearchQuantumTasksCommand = async (output, context) => {
891
881
  if (output.statusCode !== 200 && output.statusCode >= 300) {
892
- return deserializeAws_restJson1SearchQuantumTasksCommandError(output, context);
882
+ return de_SearchQuantumTasksCommandError(output, context);
893
883
  }
894
884
  const contents = map({
895
885
  $metadata: deserializeMetadata(output),
@@ -899,12 +889,12 @@ const deserializeAws_restJson1SearchQuantumTasksCommand = async (output, context
899
889
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
900
890
  }
901
891
  if (data.quantumTasks != null) {
902
- contents.quantumTasks = deserializeAws_restJson1QuantumTaskSummaryList(data.quantumTasks, context);
892
+ contents.quantumTasks = de_QuantumTaskSummaryList(data.quantumTasks, context);
903
893
  }
904
894
  return contents;
905
895
  };
906
- exports.deserializeAws_restJson1SearchQuantumTasksCommand = deserializeAws_restJson1SearchQuantumTasksCommand;
907
- const deserializeAws_restJson1SearchQuantumTasksCommandError = async (output, context) => {
896
+ exports.de_SearchQuantumTasksCommand = de_SearchQuantumTasksCommand;
897
+ const de_SearchQuantumTasksCommandError = async (output, context) => {
908
898
  const parsedOutput = {
909
899
  ...output,
910
900
  body: await parseErrorBody(output.body, context),
@@ -913,16 +903,16 @@ const deserializeAws_restJson1SearchQuantumTasksCommandError = async (output, co
913
903
  switch (errorCode) {
914
904
  case "AccessDeniedException":
915
905
  case "com.amazonaws.braket#AccessDeniedException":
916
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
906
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
917
907
  case "InternalServiceException":
918
908
  case "com.amazonaws.braket#InternalServiceException":
919
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
909
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
920
910
  case "ThrottlingException":
921
911
  case "com.amazonaws.braket#ThrottlingException":
922
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
912
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
923
913
  case "ValidationException":
924
914
  case "com.amazonaws.braket#ValidationException":
925
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
915
+ throw await de_ValidationExceptionRes(parsedOutput, context);
926
916
  default:
927
917
  const parsedBody = parsedOutput.body;
928
918
  (0, smithy_client_1.throwDefaultError)({
@@ -933,9 +923,9 @@ const deserializeAws_restJson1SearchQuantumTasksCommandError = async (output, co
933
923
  });
934
924
  }
935
925
  };
936
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
926
+ const de_TagResourceCommand = async (output, context) => {
937
927
  if (output.statusCode !== 200 && output.statusCode >= 300) {
938
- return deserializeAws_restJson1TagResourceCommandError(output, context);
928
+ return de_TagResourceCommandError(output, context);
939
929
  }
940
930
  const contents = map({
941
931
  $metadata: deserializeMetadata(output),
@@ -943,8 +933,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
943
933
  await collectBody(output.body, context);
944
934
  return contents;
945
935
  };
946
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
947
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
936
+ exports.de_TagResourceCommand = de_TagResourceCommand;
937
+ const de_TagResourceCommandError = async (output, context) => {
948
938
  const parsedOutput = {
949
939
  ...output,
950
940
  body: await parseErrorBody(output.body, context),
@@ -953,13 +943,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
953
943
  switch (errorCode) {
954
944
  case "InternalServiceException":
955
945
  case "com.amazonaws.braket#InternalServiceException":
956
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
946
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
957
947
  case "ResourceNotFoundException":
958
948
  case "com.amazonaws.braket#ResourceNotFoundException":
959
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
949
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
960
950
  case "ValidationException":
961
951
  case "com.amazonaws.braket#ValidationException":
962
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
952
+ throw await de_ValidationExceptionRes(parsedOutput, context);
963
953
  default:
964
954
  const parsedBody = parsedOutput.body;
965
955
  (0, smithy_client_1.throwDefaultError)({
@@ -970,9 +960,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
970
960
  });
971
961
  }
972
962
  };
973
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
963
+ const de_UntagResourceCommand = async (output, context) => {
974
964
  if (output.statusCode !== 200 && output.statusCode >= 300) {
975
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
965
+ return de_UntagResourceCommandError(output, context);
976
966
  }
977
967
  const contents = map({
978
968
  $metadata: deserializeMetadata(output),
@@ -980,8 +970,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
980
970
  await collectBody(output.body, context);
981
971
  return contents;
982
972
  };
983
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
984
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
973
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
974
+ const de_UntagResourceCommandError = async (output, context) => {
985
975
  const parsedOutput = {
986
976
  ...output,
987
977
  body: await parseErrorBody(output.body, context),
@@ -990,13 +980,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
990
980
  switch (errorCode) {
991
981
  case "InternalServiceException":
992
982
  case "com.amazonaws.braket#InternalServiceException":
993
- throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
983
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
994
984
  case "ResourceNotFoundException":
995
985
  case "com.amazonaws.braket#ResourceNotFoundException":
996
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
986
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
997
987
  case "ValidationException":
998
988
  case "com.amazonaws.braket#ValidationException":
999
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
989
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1000
990
  default:
1001
991
  const parsedBody = parsedOutput.body;
1002
992
  (0, smithy_client_1.throwDefaultError)({
@@ -1008,7 +998,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1008
998
  }
1009
999
  };
1010
1000
  const map = smithy_client_1.map;
1011
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1001
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1012
1002
  const contents = map({});
1013
1003
  const data = parsedOutput.body;
1014
1004
  if (data.message != null) {
@@ -1020,7 +1010,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
1020
1010
  });
1021
1011
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1022
1012
  };
1023
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1013
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1024
1014
  const contents = map({});
1025
1015
  const data = parsedOutput.body;
1026
1016
  if (data.message != null) {
@@ -1032,7 +1022,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1032
1022
  });
1033
1023
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1034
1024
  };
1035
- const deserializeAws_restJson1DeviceOfflineExceptionResponse = async (parsedOutput, context) => {
1025
+ const de_DeviceOfflineExceptionRes = async (parsedOutput, context) => {
1036
1026
  const contents = map({});
1037
1027
  const data = parsedOutput.body;
1038
1028
  if (data.message != null) {
@@ -1044,7 +1034,7 @@ const deserializeAws_restJson1DeviceOfflineExceptionResponse = async (parsedOutp
1044
1034
  });
1045
1035
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1046
1036
  };
1047
- const deserializeAws_restJson1DeviceRetiredExceptionResponse = async (parsedOutput, context) => {
1037
+ const de_DeviceRetiredExceptionRes = async (parsedOutput, context) => {
1048
1038
  const contents = map({});
1049
1039
  const data = parsedOutput.body;
1050
1040
  if (data.message != null) {
@@ -1056,7 +1046,7 @@ const deserializeAws_restJson1DeviceRetiredExceptionResponse = async (parsedOutp
1056
1046
  });
1057
1047
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1058
1048
  };
1059
- const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
1049
+ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
1060
1050
  const contents = map({});
1061
1051
  const data = parsedOutput.body;
1062
1052
  if (data.message != null) {
@@ -1068,7 +1058,7 @@ const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOu
1068
1058
  });
1069
1059
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1070
1060
  };
1071
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1061
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1072
1062
  const contents = map({});
1073
1063
  const data = parsedOutput.body;
1074
1064
  if (data.message != null) {
@@ -1080,7 +1070,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1080
1070
  });
1081
1071
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1082
1072
  };
1083
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1073
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1084
1074
  const contents = map({});
1085
1075
  const data = parsedOutput.body;
1086
1076
  if (data.message != null) {
@@ -1092,7 +1082,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1092
1082
  });
1093
1083
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1094
1084
  };
1095
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1085
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1096
1086
  const contents = map({});
1097
1087
  const data = parsedOutput.body;
1098
1088
  if (data.message != null) {
@@ -1104,7 +1094,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1104
1094
  });
1105
1095
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1106
1096
  };
1107
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1097
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1108
1098
  const contents = map({});
1109
1099
  const data = parsedOutput.body;
1110
1100
  if (data.message != null) {
@@ -1116,34 +1106,28 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1116
1106
  });
1117
1107
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1118
1108
  };
1119
- const serializeAws_restJson1AlgorithmSpecification = (input, context) => {
1109
+ const se_AlgorithmSpecification = (input, context) => {
1120
1110
  return {
1121
- ...(input.containerImage != null && {
1122
- containerImage: serializeAws_restJson1ContainerImage(input.containerImage, context),
1123
- }),
1124
- ...(input.scriptModeConfig != null && {
1125
- scriptModeConfig: serializeAws_restJson1ScriptModeConfig(input.scriptModeConfig, context),
1126
- }),
1111
+ ...(input.containerImage != null && { containerImage: se_ContainerImage(input.containerImage, context) }),
1112
+ ...(input.scriptModeConfig != null && { scriptModeConfig: se_ScriptModeConfig(input.scriptModeConfig, context) }),
1127
1113
  };
1128
1114
  };
1129
- const serializeAws_restJson1ContainerImage = (input, context) => {
1115
+ const se_ContainerImage = (input, context) => {
1130
1116
  return {
1131
1117
  ...(input.uri != null && { uri: input.uri }),
1132
1118
  };
1133
1119
  };
1134
- const serializeAws_restJson1DataSource = (input, context) => {
1120
+ const se_DataSource = (input, context) => {
1135
1121
  return {
1136
- ...(input.s3DataSource != null && {
1137
- s3DataSource: serializeAws_restJson1S3DataSource(input.s3DataSource, context),
1138
- }),
1122
+ ...(input.s3DataSource != null && { s3DataSource: se_S3DataSource(input.s3DataSource, context) }),
1139
1123
  };
1140
1124
  };
1141
- const serializeAws_restJson1DeviceConfig = (input, context) => {
1125
+ const se_DeviceConfig = (input, context) => {
1142
1126
  return {
1143
1127
  ...(input.device != null && { device: input.device }),
1144
1128
  };
1145
1129
  };
1146
- const serializeAws_restJson1HyperParameters = (input, context) => {
1130
+ const se_HyperParameters = (input, context) => {
1147
1131
  return Object.entries(input).reduce((acc, [key, value]) => {
1148
1132
  if (value === null) {
1149
1133
  return acc;
@@ -1152,105 +1136,105 @@ const serializeAws_restJson1HyperParameters = (input, context) => {
1152
1136
  return acc;
1153
1137
  }, {});
1154
1138
  };
1155
- const serializeAws_restJson1InputConfigList = (input, context) => {
1139
+ const se_InputConfigList = (input, context) => {
1156
1140
  return input
1157
1141
  .filter((e) => e != null)
1158
1142
  .map((entry) => {
1159
- return serializeAws_restJson1InputFileConfig(entry, context);
1143
+ return se_InputFileConfig(entry, context);
1160
1144
  });
1161
1145
  };
1162
- const serializeAws_restJson1InputFileConfig = (input, context) => {
1146
+ const se_InputFileConfig = (input, context) => {
1163
1147
  return {
1164
1148
  ...(input.channelName != null && { channelName: input.channelName }),
1165
1149
  ...(input.contentType != null && { contentType: input.contentType }),
1166
- ...(input.dataSource != null && { dataSource: serializeAws_restJson1DataSource(input.dataSource, context) }),
1150
+ ...(input.dataSource != null && { dataSource: se_DataSource(input.dataSource, context) }),
1167
1151
  };
1168
1152
  };
1169
- const serializeAws_restJson1InstanceConfig = (input, context) => {
1153
+ const se_InstanceConfig = (input, context) => {
1170
1154
  return {
1171
1155
  ...(input.instanceCount != null && { instanceCount: input.instanceCount }),
1172
1156
  ...(input.instanceType != null && { instanceType: input.instanceType }),
1173
1157
  ...(input.volumeSizeInGb != null && { volumeSizeInGb: input.volumeSizeInGb }),
1174
1158
  };
1175
1159
  };
1176
- const serializeAws_restJson1JobCheckpointConfig = (input, context) => {
1160
+ const se_JobCheckpointConfig = (input, context) => {
1177
1161
  return {
1178
1162
  ...(input.localPath != null && { localPath: input.localPath }),
1179
1163
  ...(input.s3Uri != null && { s3Uri: input.s3Uri }),
1180
1164
  };
1181
1165
  };
1182
- const serializeAws_restJson1JobOutputDataConfig = (input, context) => {
1166
+ const se_JobOutputDataConfig = (input, context) => {
1183
1167
  return {
1184
1168
  ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
1185
1169
  ...(input.s3Path != null && { s3Path: input.s3Path }),
1186
1170
  };
1187
1171
  };
1188
- const serializeAws_restJson1JobStoppingCondition = (input, context) => {
1172
+ const se_JobStoppingCondition = (input, context) => {
1189
1173
  return {
1190
1174
  ...(input.maxRuntimeInSeconds != null && { maxRuntimeInSeconds: input.maxRuntimeInSeconds }),
1191
1175
  };
1192
1176
  };
1193
- const serializeAws_restJson1S3DataSource = (input, context) => {
1177
+ const se_S3DataSource = (input, context) => {
1194
1178
  return {
1195
1179
  ...(input.s3Uri != null && { s3Uri: input.s3Uri }),
1196
1180
  };
1197
1181
  };
1198
- const serializeAws_restJson1ScriptModeConfig = (input, context) => {
1182
+ const se_ScriptModeConfig = (input, context) => {
1199
1183
  return {
1200
1184
  ...(input.compressionType != null && { compressionType: input.compressionType }),
1201
1185
  ...(input.entryPoint != null && { entryPoint: input.entryPoint }),
1202
1186
  ...(input.s3Uri != null && { s3Uri: input.s3Uri }),
1203
1187
  };
1204
1188
  };
1205
- const serializeAws_restJson1SearchDevicesFilter = (input, context) => {
1189
+ const se_SearchDevicesFilter = (input, context) => {
1206
1190
  return {
1207
1191
  ...(input.name != null && { name: input.name }),
1208
- ...(input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }),
1192
+ ...(input.values != null && { values: se_String256List(input.values, context) }),
1209
1193
  };
1210
1194
  };
1211
- const serializeAws_restJson1SearchDevicesFilterList = (input, context) => {
1195
+ const se_SearchDevicesFilterList = (input, context) => {
1212
1196
  return input
1213
1197
  .filter((e) => e != null)
1214
1198
  .map((entry) => {
1215
- return serializeAws_restJson1SearchDevicesFilter(entry, context);
1199
+ return se_SearchDevicesFilter(entry, context);
1216
1200
  });
1217
1201
  };
1218
- const serializeAws_restJson1SearchJobsFilter = (input, context) => {
1202
+ const se_SearchJobsFilter = (input, context) => {
1219
1203
  return {
1220
1204
  ...(input.name != null && { name: input.name }),
1221
1205
  ...(input.operator != null && { operator: input.operator }),
1222
- ...(input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }),
1206
+ ...(input.values != null && { values: se_String256List(input.values, context) }),
1223
1207
  };
1224
1208
  };
1225
- const serializeAws_restJson1SearchJobsFilterList = (input, context) => {
1209
+ const se_SearchJobsFilterList = (input, context) => {
1226
1210
  return input
1227
1211
  .filter((e) => e != null)
1228
1212
  .map((entry) => {
1229
- return serializeAws_restJson1SearchJobsFilter(entry, context);
1213
+ return se_SearchJobsFilter(entry, context);
1230
1214
  });
1231
1215
  };
1232
- const serializeAws_restJson1SearchQuantumTasksFilter = (input, context) => {
1216
+ const se_SearchQuantumTasksFilter = (input, context) => {
1233
1217
  return {
1234
1218
  ...(input.name != null && { name: input.name }),
1235
1219
  ...(input.operator != null && { operator: input.operator }),
1236
- ...(input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }),
1220
+ ...(input.values != null && { values: se_String256List(input.values, context) }),
1237
1221
  };
1238
1222
  };
1239
- const serializeAws_restJson1SearchQuantumTasksFilterList = (input, context) => {
1223
+ const se_SearchQuantumTasksFilterList = (input, context) => {
1240
1224
  return input
1241
1225
  .filter((e) => e != null)
1242
1226
  .map((entry) => {
1243
- return serializeAws_restJson1SearchQuantumTasksFilter(entry, context);
1227
+ return se_SearchQuantumTasksFilter(entry, context);
1244
1228
  });
1245
1229
  };
1246
- const serializeAws_restJson1String256List = (input, context) => {
1230
+ const se_String256List = (input, context) => {
1247
1231
  return input
1248
1232
  .filter((e) => e != null)
1249
1233
  .map((entry) => {
1250
1234
  return entry;
1251
1235
  });
1252
1236
  };
1253
- const serializeAws_restJson1TagsMap = (input, context) => {
1237
+ const se_TagsMap = (input, context) => {
1254
1238
  return Object.entries(input).reduce((acc, [key, value]) => {
1255
1239
  if (value === null) {
1256
1240
  return acc;
@@ -1259,32 +1243,28 @@ const serializeAws_restJson1TagsMap = (input, context) => {
1259
1243
  return acc;
1260
1244
  }, {});
1261
1245
  };
1262
- const deserializeAws_restJson1AlgorithmSpecification = (output, context) => {
1246
+ const de_AlgorithmSpecification = (output, context) => {
1263
1247
  return {
1264
- containerImage: output.containerImage != null
1265
- ? deserializeAws_restJson1ContainerImage(output.containerImage, context)
1266
- : undefined,
1267
- scriptModeConfig: output.scriptModeConfig != null
1268
- ? deserializeAws_restJson1ScriptModeConfig(output.scriptModeConfig, context)
1269
- : undefined,
1248
+ containerImage: output.containerImage != null ? de_ContainerImage(output.containerImage, context) : undefined,
1249
+ scriptModeConfig: output.scriptModeConfig != null ? de_ScriptModeConfig(output.scriptModeConfig, context) : undefined,
1270
1250
  };
1271
1251
  };
1272
- const deserializeAws_restJson1ContainerImage = (output, context) => {
1252
+ const de_ContainerImage = (output, context) => {
1273
1253
  return {
1274
1254
  uri: (0, smithy_client_1.expectString)(output.uri),
1275
1255
  };
1276
1256
  };
1277
- const deserializeAws_restJson1DataSource = (output, context) => {
1257
+ const de_DataSource = (output, context) => {
1278
1258
  return {
1279
- s3DataSource: output.s3DataSource != null ? deserializeAws_restJson1S3DataSource(output.s3DataSource, context) : undefined,
1259
+ s3DataSource: output.s3DataSource != null ? de_S3DataSource(output.s3DataSource, context) : undefined,
1280
1260
  };
1281
1261
  };
1282
- const deserializeAws_restJson1DeviceConfig = (output, context) => {
1262
+ const de_DeviceConfig = (output, context) => {
1283
1263
  return {
1284
1264
  device: (0, smithy_client_1.expectString)(output.device),
1285
1265
  };
1286
1266
  };
1287
- const deserializeAws_restJson1DeviceSummary = (output, context) => {
1267
+ const de_DeviceSummary = (output, context) => {
1288
1268
  return {
1289
1269
  deviceArn: (0, smithy_client_1.expectString)(output.deviceArn),
1290
1270
  deviceName: (0, smithy_client_1.expectString)(output.deviceName),
@@ -1293,18 +1273,18 @@ const deserializeAws_restJson1DeviceSummary = (output, context) => {
1293
1273
  providerName: (0, smithy_client_1.expectString)(output.providerName),
1294
1274
  };
1295
1275
  };
1296
- const deserializeAws_restJson1DeviceSummaryList = (output, context) => {
1276
+ const de_DeviceSummaryList = (output, context) => {
1297
1277
  const retVal = (output || [])
1298
1278
  .filter((e) => e != null)
1299
1279
  .map((entry) => {
1300
1280
  if (entry === null) {
1301
1281
  return null;
1302
1282
  }
1303
- return deserializeAws_restJson1DeviceSummary(entry, context);
1283
+ return de_DeviceSummary(entry, context);
1304
1284
  });
1305
1285
  return retVal;
1306
1286
  };
1307
- const deserializeAws_restJson1HyperParameters = (output, context) => {
1287
+ const de_HyperParameters = (output, context) => {
1308
1288
  return Object.entries(output).reduce((acc, [key, value]) => {
1309
1289
  if (value === null) {
1310
1290
  return acc;
@@ -1313,67 +1293,67 @@ const deserializeAws_restJson1HyperParameters = (output, context) => {
1313
1293
  return acc;
1314
1294
  }, {});
1315
1295
  };
1316
- const deserializeAws_restJson1InputConfigList = (output, context) => {
1296
+ const de_InputConfigList = (output, context) => {
1317
1297
  const retVal = (output || [])
1318
1298
  .filter((e) => e != null)
1319
1299
  .map((entry) => {
1320
1300
  if (entry === null) {
1321
1301
  return null;
1322
1302
  }
1323
- return deserializeAws_restJson1InputFileConfig(entry, context);
1303
+ return de_InputFileConfig(entry, context);
1324
1304
  });
1325
1305
  return retVal;
1326
1306
  };
1327
- const deserializeAws_restJson1InputFileConfig = (output, context) => {
1307
+ const de_InputFileConfig = (output, context) => {
1328
1308
  return {
1329
1309
  channelName: (0, smithy_client_1.expectString)(output.channelName),
1330
1310
  contentType: (0, smithy_client_1.expectString)(output.contentType),
1331
- dataSource: output.dataSource != null ? deserializeAws_restJson1DataSource(output.dataSource, context) : undefined,
1311
+ dataSource: output.dataSource != null ? de_DataSource(output.dataSource, context) : undefined,
1332
1312
  };
1333
1313
  };
1334
- const deserializeAws_restJson1InstanceConfig = (output, context) => {
1314
+ const de_InstanceConfig = (output, context) => {
1335
1315
  return {
1336
1316
  instanceCount: (0, smithy_client_1.expectInt32)(output.instanceCount),
1337
1317
  instanceType: (0, smithy_client_1.expectString)(output.instanceType),
1338
1318
  volumeSizeInGb: (0, smithy_client_1.expectInt32)(output.volumeSizeInGb),
1339
1319
  };
1340
1320
  };
1341
- const deserializeAws_restJson1JobCheckpointConfig = (output, context) => {
1321
+ const de_JobCheckpointConfig = (output, context) => {
1342
1322
  return {
1343
1323
  localPath: (0, smithy_client_1.expectString)(output.localPath),
1344
1324
  s3Uri: (0, smithy_client_1.expectString)(output.s3Uri),
1345
1325
  };
1346
1326
  };
1347
- const deserializeAws_restJson1JobEventDetails = (output, context) => {
1327
+ const de_JobEventDetails = (output, context) => {
1348
1328
  return {
1349
1329
  eventType: (0, smithy_client_1.expectString)(output.eventType),
1350
1330
  message: (0, smithy_client_1.expectString)(output.message),
1351
1331
  timeOfEvent: output.timeOfEvent != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.timeOfEvent)) : undefined,
1352
1332
  };
1353
1333
  };
1354
- const deserializeAws_restJson1JobEvents = (output, context) => {
1334
+ const de_JobEvents = (output, context) => {
1355
1335
  const retVal = (output || [])
1356
1336
  .filter((e) => e != null)
1357
1337
  .map((entry) => {
1358
1338
  if (entry === null) {
1359
1339
  return null;
1360
1340
  }
1361
- return deserializeAws_restJson1JobEventDetails(entry, context);
1341
+ return de_JobEventDetails(entry, context);
1362
1342
  });
1363
1343
  return retVal;
1364
1344
  };
1365
- const deserializeAws_restJson1JobOutputDataConfig = (output, context) => {
1345
+ const de_JobOutputDataConfig = (output, context) => {
1366
1346
  return {
1367
1347
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
1368
1348
  s3Path: (0, smithy_client_1.expectString)(output.s3Path),
1369
1349
  };
1370
1350
  };
1371
- const deserializeAws_restJson1JobStoppingCondition = (output, context) => {
1351
+ const de_JobStoppingCondition = (output, context) => {
1372
1352
  return {
1373
1353
  maxRuntimeInSeconds: (0, smithy_client_1.expectInt32)(output.maxRuntimeInSeconds),
1374
1354
  };
1375
1355
  };
1376
- const deserializeAws_restJson1JobSummary = (output, context) => {
1356
+ const de_JobSummary = (output, context) => {
1377
1357
  return {
1378
1358
  createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1379
1359
  device: (0, smithy_client_1.expectString)(output.device),
@@ -1382,21 +1362,21 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
1382
1362
  jobName: (0, smithy_client_1.expectString)(output.jobName),
1383
1363
  startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.startedAt)) : undefined,
1384
1364
  status: (0, smithy_client_1.expectString)(output.status),
1385
- tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
1365
+ tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
1386
1366
  };
1387
1367
  };
1388
- const deserializeAws_restJson1JobSummaryList = (output, context) => {
1368
+ const de_JobSummaryList = (output, context) => {
1389
1369
  const retVal = (output || [])
1390
1370
  .filter((e) => e != null)
1391
1371
  .map((entry) => {
1392
1372
  if (entry === null) {
1393
1373
  return null;
1394
1374
  }
1395
- return deserializeAws_restJson1JobSummary(entry, context);
1375
+ return de_JobSummary(entry, context);
1396
1376
  });
1397
1377
  return retVal;
1398
1378
  };
1399
- const deserializeAws_restJson1QuantumTaskSummary = (output, context) => {
1379
+ const de_QuantumTaskSummary = (output, context) => {
1400
1380
  return {
1401
1381
  createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1402
1382
  deviceArn: (0, smithy_client_1.expectString)(output.deviceArn),
@@ -1406,33 +1386,33 @@ const deserializeAws_restJson1QuantumTaskSummary = (output, context) => {
1406
1386
  quantumTaskArn: (0, smithy_client_1.expectString)(output.quantumTaskArn),
1407
1387
  shots: (0, smithy_client_1.expectLong)(output.shots),
1408
1388
  status: (0, smithy_client_1.expectString)(output.status),
1409
- tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
1389
+ tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
1410
1390
  };
1411
1391
  };
1412
- const deserializeAws_restJson1QuantumTaskSummaryList = (output, context) => {
1392
+ const de_QuantumTaskSummaryList = (output, context) => {
1413
1393
  const retVal = (output || [])
1414
1394
  .filter((e) => e != null)
1415
1395
  .map((entry) => {
1416
1396
  if (entry === null) {
1417
1397
  return null;
1418
1398
  }
1419
- return deserializeAws_restJson1QuantumTaskSummary(entry, context);
1399
+ return de_QuantumTaskSummary(entry, context);
1420
1400
  });
1421
1401
  return retVal;
1422
1402
  };
1423
- const deserializeAws_restJson1S3DataSource = (output, context) => {
1403
+ const de_S3DataSource = (output, context) => {
1424
1404
  return {
1425
1405
  s3Uri: (0, smithy_client_1.expectString)(output.s3Uri),
1426
1406
  };
1427
1407
  };
1428
- const deserializeAws_restJson1ScriptModeConfig = (output, context) => {
1408
+ const de_ScriptModeConfig = (output, context) => {
1429
1409
  return {
1430
1410
  compressionType: (0, smithy_client_1.expectString)(output.compressionType),
1431
1411
  entryPoint: (0, smithy_client_1.expectString)(output.entryPoint),
1432
1412
  s3Uri: (0, smithy_client_1.expectString)(output.s3Uri),
1433
1413
  };
1434
1414
  };
1435
- const deserializeAws_restJson1TagsMap = (output, context) => {
1415
+ const de_TagsMap = (output, context) => {
1436
1416
  return Object.entries(output).reduce((acc, [key, value]) => {
1437
1417
  if (value === null) {
1438
1418
  return acc;