@aws-sdk/client-braket 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +138 -169
- package/dist-es/protocols/Aws_restJson1.js +110 -141
- package/package.json +26 -26
|
@@ -84,30 +84,23 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
|
|
|
84
84
|
"content-type": "application/json",
|
|
85
85
|
};
|
|
86
86
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/job";
|
|
87
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.algorithmSpecification
|
|
88
|
-
input.algorithmSpecification !== null && {
|
|
87
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.algorithmSpecification != null && {
|
|
89
88
|
algorithmSpecification: serializeAws_restJson1AlgorithmSpecification(input.algorithmSpecification, context),
|
|
90
|
-
})), (input.checkpointConfig
|
|
91
|
-
input.checkpointConfig !== null && {
|
|
89
|
+
})), (input.checkpointConfig != null && {
|
|
92
90
|
checkpointConfig: serializeAws_restJson1JobCheckpointConfig(input.checkpointConfig, context),
|
|
93
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deviceConfig
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deviceConfig != null && {
|
|
92
|
+
deviceConfig: serializeAws_restJson1DeviceConfig(input.deviceConfig, context),
|
|
93
|
+
})), (input.hyperParameters != null && {
|
|
96
94
|
hyperParameters: serializeAws_restJson1HyperParameters(input.hyperParameters, context),
|
|
97
|
-
})), (input.inputDataConfig
|
|
98
|
-
input.inputDataConfig !== null && {
|
|
95
|
+
})), (input.inputDataConfig != null && {
|
|
99
96
|
inputDataConfig: serializeAws_restJson1InputConfigList(input.inputDataConfig, context),
|
|
100
|
-
})), (input.instanceConfig
|
|
101
|
-
input.instanceConfig !== null && {
|
|
97
|
+
})), (input.instanceConfig != null && {
|
|
102
98
|
instanceConfig: serializeAws_restJson1InstanceConfig(input.instanceConfig, context),
|
|
103
|
-
})), (input.jobName
|
|
104
|
-
input.outputDataConfig !== null && {
|
|
99
|
+
})), (input.jobName != null && { jobName: input.jobName })), (input.outputDataConfig != null && {
|
|
105
100
|
outputDataConfig: serializeAws_restJson1JobOutputDataConfig(input.outputDataConfig, context),
|
|
106
|
-
})), (input.roleArn
|
|
107
|
-
input.stoppingCondition !== null && {
|
|
101
|
+
})), (input.roleArn != null && { roleArn: input.roleArn })), (input.stoppingCondition != null && {
|
|
108
102
|
stoppingCondition: serializeAws_restJson1JobStoppingCondition(input.stoppingCondition, context),
|
|
109
|
-
})), (input.tags
|
|
110
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
103
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
111
104
|
return [2, new __HttpRequest({
|
|
112
105
|
protocol: protocol,
|
|
113
106
|
hostname: hostname,
|
|
@@ -132,11 +125,7 @@ export var serializeAws_restJson1CreateQuantumTaskCommand = function (input, con
|
|
|
132
125
|
"content-type": "application/json",
|
|
133
126
|
};
|
|
134
127
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/quantum-task";
|
|
135
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action
|
|
136
|
-
input.deviceParameters !== null && { deviceParameters: __LazyJsonString.fromObject(input.deviceParameters) })), (input.jobToken !== undefined && input.jobToken !== null && { jobToken: input.jobToken })), (input.outputS3Bucket !== undefined &&
|
|
137
|
-
input.outputS3Bucket !== null && { outputS3Bucket: input.outputS3Bucket })), (input.outputS3KeyPrefix !== undefined &&
|
|
138
|
-
input.outputS3KeyPrefix !== null && { outputS3KeyPrefix: input.outputS3KeyPrefix })), (input.shots !== undefined && input.shots !== null && { shots: input.shots })), (input.tags !== undefined &&
|
|
139
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
128
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: __LazyJsonString.fromObject(input.action) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deviceArn != null && { deviceArn: input.deviceArn })), (input.deviceParameters != null && { deviceParameters: __LazyJsonString.fromObject(input.deviceParameters) })), (input.jobToken != null && { jobToken: input.jobToken })), (input.outputS3Bucket != null && { outputS3Bucket: input.outputS3Bucket })), (input.outputS3KeyPrefix != null && { outputS3KeyPrefix: input.outputS3KeyPrefix })), (input.shots != null && { shots: input.shots })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
140
129
|
return [2, new __HttpRequest({
|
|
141
130
|
protocol: protocol,
|
|
142
131
|
hostname: hostname,
|
|
@@ -284,8 +273,7 @@ export var serializeAws_restJson1SearchDevicesCommand = function (input, context
|
|
|
284
273
|
"content-type": "application/json",
|
|
285
274
|
};
|
|
286
275
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/devices";
|
|
287
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
288
|
-
input.filters !== null && { filters: serializeAws_restJson1SearchDevicesFilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
276
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1SearchDevicesFilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
289
277
|
return [2, new __HttpRequest({
|
|
290
278
|
protocol: protocol,
|
|
291
279
|
hostname: hostname,
|
|
@@ -309,8 +297,7 @@ export var serializeAws_restJson1SearchJobsCommand = function (input, context) {
|
|
|
309
297
|
"content-type": "application/json",
|
|
310
298
|
};
|
|
311
299
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs";
|
|
312
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
313
|
-
input.filters !== null && { filters: serializeAws_restJson1SearchJobsFilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
300
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1SearchJobsFilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
314
301
|
return [2, new __HttpRequest({
|
|
315
302
|
protocol: protocol,
|
|
316
303
|
hostname: hostname,
|
|
@@ -334,10 +321,9 @@ export var serializeAws_restJson1SearchQuantumTasksCommand = function (input, co
|
|
|
334
321
|
"content-type": "application/json",
|
|
335
322
|
};
|
|
336
323
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/quantum-tasks";
|
|
337
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
338
|
-
input.filters !== null && {
|
|
324
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && {
|
|
339
325
|
filters: serializeAws_restJson1SearchQuantumTasksFilterList(input.filters, context),
|
|
340
|
-
})), (input.maxResults
|
|
326
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
341
327
|
return [2, new __HttpRequest({
|
|
342
328
|
protocol: protocol,
|
|
343
329
|
hostname: hostname,
|
|
@@ -371,8 +357,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
371
357
|
else {
|
|
372
358
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
373
359
|
}
|
|
374
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
375
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
360
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
376
361
|
return [2, new __HttpRequest({
|
|
377
362
|
protocol: protocol,
|
|
378
363
|
hostname: hostname,
|
|
@@ -447,7 +432,7 @@ export var deserializeAws_restJson1CancelJobCommand = function (output, context)
|
|
|
447
432
|
});
|
|
448
433
|
}); };
|
|
449
434
|
var deserializeAws_restJson1CancelJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
450
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
435
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
451
436
|
var _c;
|
|
452
437
|
return __generator(this, function (_d) {
|
|
453
438
|
switch (_d.label) {
|
|
@@ -457,7 +442,6 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
457
442
|
return [4, parseBody(output.body, context)];
|
|
458
443
|
case 1:
|
|
459
444
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
460
|
-
errorCode = "UnknownError";
|
|
461
445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
462
446
|
_b = errorCode;
|
|
463
447
|
switch (_b) {
|
|
@@ -489,10 +473,12 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
489
473
|
case 13: throw _d.sent();
|
|
490
474
|
case 14:
|
|
491
475
|
parsedBody = parsedOutput.body;
|
|
476
|
+
$metadata = deserializeMetadata(output);
|
|
477
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
492
478
|
response = new __BaseException({
|
|
493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
479
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
494
480
|
$fault: "client",
|
|
495
|
-
$metadata:
|
|
481
|
+
$metadata: $metadata,
|
|
496
482
|
});
|
|
497
483
|
throw __decorateServiceException(response, parsedBody);
|
|
498
484
|
}
|
|
@@ -527,7 +513,7 @@ export var deserializeAws_restJson1CancelQuantumTaskCommand = function (output,
|
|
|
527
513
|
});
|
|
528
514
|
}); };
|
|
529
515
|
var deserializeAws_restJson1CancelQuantumTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
530
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
516
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
531
517
|
var _c;
|
|
532
518
|
return __generator(this, function (_d) {
|
|
533
519
|
switch (_d.label) {
|
|
@@ -537,7 +523,6 @@ var deserializeAws_restJson1CancelQuantumTaskCommandError = function (output, co
|
|
|
537
523
|
return [4, parseBody(output.body, context)];
|
|
538
524
|
case 1:
|
|
539
525
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
540
|
-
errorCode = "UnknownError";
|
|
541
526
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
527
|
_b = errorCode;
|
|
543
528
|
switch (_b) {
|
|
@@ -569,10 +554,12 @@ var deserializeAws_restJson1CancelQuantumTaskCommandError = function (output, co
|
|
|
569
554
|
case 13: throw _d.sent();
|
|
570
555
|
case 14:
|
|
571
556
|
parsedBody = parsedOutput.body;
|
|
557
|
+
$metadata = deserializeMetadata(output);
|
|
558
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
572
559
|
response = new __BaseException({
|
|
573
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
574
561
|
$fault: "client",
|
|
575
|
-
$metadata:
|
|
562
|
+
$metadata: $metadata,
|
|
576
563
|
});
|
|
577
564
|
throw __decorateServiceException(response, parsedBody);
|
|
578
565
|
}
|
|
@@ -603,7 +590,7 @@ export var deserializeAws_restJson1CreateJobCommand = function (output, context)
|
|
|
603
590
|
});
|
|
604
591
|
}); };
|
|
605
592
|
var deserializeAws_restJson1CreateJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
606
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
593
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
607
594
|
var _c;
|
|
608
595
|
return __generator(this, function (_d) {
|
|
609
596
|
switch (_d.label) {
|
|
@@ -613,7 +600,6 @@ var deserializeAws_restJson1CreateJobCommandError = function (output, context) {
|
|
|
613
600
|
return [4, parseBody(output.body, context)];
|
|
614
601
|
case 1:
|
|
615
602
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
616
|
-
errorCode = "UnknownError";
|
|
617
603
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
604
|
_b = errorCode;
|
|
619
605
|
switch (_b) {
|
|
@@ -649,10 +635,12 @@ var deserializeAws_restJson1CreateJobCommandError = function (output, context) {
|
|
|
649
635
|
case 15: throw _d.sent();
|
|
650
636
|
case 16:
|
|
651
637
|
parsedBody = parsedOutput.body;
|
|
638
|
+
$metadata = deserializeMetadata(output);
|
|
639
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
652
640
|
response = new __BaseException({
|
|
653
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
641
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
654
642
|
$fault: "client",
|
|
655
|
-
$metadata:
|
|
643
|
+
$metadata: $metadata,
|
|
656
644
|
});
|
|
657
645
|
throw __decorateServiceException(response, parsedBody);
|
|
658
646
|
}
|
|
@@ -683,7 +671,7 @@ export var deserializeAws_restJson1CreateQuantumTaskCommand = function (output,
|
|
|
683
671
|
});
|
|
684
672
|
}); };
|
|
685
673
|
var deserializeAws_restJson1CreateQuantumTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
686
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
674
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
687
675
|
var _c;
|
|
688
676
|
return __generator(this, function (_d) {
|
|
689
677
|
switch (_d.label) {
|
|
@@ -693,7 +681,6 @@ var deserializeAws_restJson1CreateQuantumTaskCommandError = function (output, co
|
|
|
693
681
|
return [4, parseBody(output.body, context)];
|
|
694
682
|
case 1:
|
|
695
683
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
696
|
-
errorCode = "UnknownError";
|
|
697
684
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
685
|
_b = errorCode;
|
|
699
686
|
switch (_b) {
|
|
@@ -729,10 +716,12 @@ var deserializeAws_restJson1CreateQuantumTaskCommandError = function (output, co
|
|
|
729
716
|
case 15: throw _d.sent();
|
|
730
717
|
case 16:
|
|
731
718
|
parsedBody = parsedOutput.body;
|
|
719
|
+
$metadata = deserializeMetadata(output);
|
|
720
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
732
721
|
response = new __BaseException({
|
|
733
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
722
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
734
723
|
$fault: "client",
|
|
735
|
-
$metadata:
|
|
724
|
+
$metadata: $metadata,
|
|
736
725
|
});
|
|
737
726
|
throw __decorateServiceException(response, parsedBody);
|
|
738
727
|
}
|
|
@@ -783,7 +772,7 @@ export var deserializeAws_restJson1GetDeviceCommand = function (output, context)
|
|
|
783
772
|
});
|
|
784
773
|
}); };
|
|
785
774
|
var deserializeAws_restJson1GetDeviceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
786
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
775
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
787
776
|
var _c;
|
|
788
777
|
return __generator(this, function (_d) {
|
|
789
778
|
switch (_d.label) {
|
|
@@ -793,7 +782,6 @@ var deserializeAws_restJson1GetDeviceCommandError = function (output, context) {
|
|
|
793
782
|
return [4, parseBody(output.body, context)];
|
|
794
783
|
case 1:
|
|
795
784
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
796
|
-
errorCode = "UnknownError";
|
|
797
785
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
786
|
_b = errorCode;
|
|
799
787
|
switch (_b) {
|
|
@@ -821,10 +809,12 @@ var deserializeAws_restJson1GetDeviceCommandError = function (output, context) {
|
|
|
821
809
|
case 11: throw _d.sent();
|
|
822
810
|
case 12:
|
|
823
811
|
parsedBody = parsedOutput.body;
|
|
812
|
+
$metadata = deserializeMetadata(output);
|
|
813
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
824
814
|
response = new __BaseException({
|
|
825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
815
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
826
816
|
$fault: "client",
|
|
827
|
-
$metadata:
|
|
817
|
+
$metadata: $metadata,
|
|
828
818
|
});
|
|
829
819
|
throw __decorateServiceException(response, parsedBody);
|
|
830
820
|
}
|
|
@@ -927,7 +917,7 @@ export var deserializeAws_restJson1GetJobCommand = function (output, context) {
|
|
|
927
917
|
});
|
|
928
918
|
}); };
|
|
929
919
|
var deserializeAws_restJson1GetJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
930
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
920
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
931
921
|
var _c;
|
|
932
922
|
return __generator(this, function (_d) {
|
|
933
923
|
switch (_d.label) {
|
|
@@ -937,7 +927,6 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
|
|
|
937
927
|
return [4, parseBody(output.body, context)];
|
|
938
928
|
case 1:
|
|
939
929
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
940
|
-
errorCode = "UnknownError";
|
|
941
930
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
931
|
_b = errorCode;
|
|
943
932
|
switch (_b) {
|
|
@@ -965,10 +954,12 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
|
|
|
965
954
|
case 11: throw _d.sent();
|
|
966
955
|
case 12:
|
|
967
956
|
parsedBody = parsedOutput.body;
|
|
957
|
+
$metadata = deserializeMetadata(output);
|
|
958
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
968
959
|
response = new __BaseException({
|
|
969
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
960
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
970
961
|
$fault: "client",
|
|
971
|
-
$metadata:
|
|
962
|
+
$metadata: $metadata,
|
|
972
963
|
});
|
|
973
964
|
throw __decorateServiceException(response, parsedBody);
|
|
974
965
|
}
|
|
@@ -1043,7 +1034,7 @@ export var deserializeAws_restJson1GetQuantumTaskCommand = function (output, con
|
|
|
1043
1034
|
});
|
|
1044
1035
|
}); };
|
|
1045
1036
|
var deserializeAws_restJson1GetQuantumTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1046
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1037
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1047
1038
|
var _c;
|
|
1048
1039
|
return __generator(this, function (_d) {
|
|
1049
1040
|
switch (_d.label) {
|
|
@@ -1053,7 +1044,6 @@ var deserializeAws_restJson1GetQuantumTaskCommandError = function (output, conte
|
|
|
1053
1044
|
return [4, parseBody(output.body, context)];
|
|
1054
1045
|
case 1:
|
|
1055
1046
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1056
|
-
errorCode = "UnknownError";
|
|
1057
1047
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
1048
|
_b = errorCode;
|
|
1059
1049
|
switch (_b) {
|
|
@@ -1081,10 +1071,12 @@ var deserializeAws_restJson1GetQuantumTaskCommandError = function (output, conte
|
|
|
1081
1071
|
case 11: throw _d.sent();
|
|
1082
1072
|
case 12:
|
|
1083
1073
|
parsedBody = parsedOutput.body;
|
|
1074
|
+
$metadata = deserializeMetadata(output);
|
|
1075
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1084
1076
|
response = new __BaseException({
|
|
1085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1077
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1086
1078
|
$fault: "client",
|
|
1087
|
-
$metadata:
|
|
1079
|
+
$metadata: $metadata,
|
|
1088
1080
|
});
|
|
1089
1081
|
throw __decorateServiceException(response, parsedBody);
|
|
1090
1082
|
}
|
|
@@ -1115,7 +1107,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1115
1107
|
});
|
|
1116
1108
|
}); };
|
|
1117
1109
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1118
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1110
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1119
1111
|
var _c;
|
|
1120
1112
|
return __generator(this, function (_d) {
|
|
1121
1113
|
switch (_d.label) {
|
|
@@ -1125,7 +1117,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1125
1117
|
return [4, parseBody(output.body, context)];
|
|
1126
1118
|
case 1:
|
|
1127
1119
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1128
|
-
errorCode = "UnknownError";
|
|
1129
1120
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1121
|
_b = errorCode;
|
|
1131
1122
|
switch (_b) {
|
|
@@ -1145,10 +1136,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1145
1136
|
case 7: throw _d.sent();
|
|
1146
1137
|
case 8:
|
|
1147
1138
|
parsedBody = parsedOutput.body;
|
|
1139
|
+
$metadata = deserializeMetadata(output);
|
|
1140
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1148
1141
|
response = new __BaseException({
|
|
1149
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1150
1143
|
$fault: "client",
|
|
1151
|
-
$metadata:
|
|
1144
|
+
$metadata: $metadata,
|
|
1152
1145
|
});
|
|
1153
1146
|
throw __decorateServiceException(response, parsedBody);
|
|
1154
1147
|
}
|
|
@@ -1183,7 +1176,7 @@ export var deserializeAws_restJson1SearchDevicesCommand = function (output, cont
|
|
|
1183
1176
|
});
|
|
1184
1177
|
}); };
|
|
1185
1178
|
var deserializeAws_restJson1SearchDevicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1186
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1179
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1187
1180
|
var _c;
|
|
1188
1181
|
return __generator(this, function (_d) {
|
|
1189
1182
|
switch (_d.label) {
|
|
@@ -1193,7 +1186,6 @@ var deserializeAws_restJson1SearchDevicesCommandError = function (output, contex
|
|
|
1193
1186
|
return [4, parseBody(output.body, context)];
|
|
1194
1187
|
case 1:
|
|
1195
1188
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1196
|
-
errorCode = "UnknownError";
|
|
1197
1189
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
1190
|
_b = errorCode;
|
|
1199
1191
|
switch (_b) {
|
|
@@ -1217,10 +1209,12 @@ var deserializeAws_restJson1SearchDevicesCommandError = function (output, contex
|
|
|
1217
1209
|
case 9: throw _d.sent();
|
|
1218
1210
|
case 10:
|
|
1219
1211
|
parsedBody = parsedOutput.body;
|
|
1212
|
+
$metadata = deserializeMetadata(output);
|
|
1213
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1220
1214
|
response = new __BaseException({
|
|
1221
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1222
1216
|
$fault: "client",
|
|
1223
|
-
$metadata:
|
|
1217
|
+
$metadata: $metadata,
|
|
1224
1218
|
});
|
|
1225
1219
|
throw __decorateServiceException(response, parsedBody);
|
|
1226
1220
|
}
|
|
@@ -1255,7 +1249,7 @@ export var deserializeAws_restJson1SearchJobsCommand = function (output, context
|
|
|
1255
1249
|
});
|
|
1256
1250
|
}); };
|
|
1257
1251
|
var deserializeAws_restJson1SearchJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1258
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1252
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1259
1253
|
var _c;
|
|
1260
1254
|
return __generator(this, function (_d) {
|
|
1261
1255
|
switch (_d.label) {
|
|
@@ -1265,7 +1259,6 @@ var deserializeAws_restJson1SearchJobsCommandError = function (output, context)
|
|
|
1265
1259
|
return [4, parseBody(output.body, context)];
|
|
1266
1260
|
case 1:
|
|
1267
1261
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1268
|
-
errorCode = "UnknownError";
|
|
1269
1262
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1263
|
_b = errorCode;
|
|
1271
1264
|
switch (_b) {
|
|
@@ -1289,10 +1282,12 @@ var deserializeAws_restJson1SearchJobsCommandError = function (output, context)
|
|
|
1289
1282
|
case 9: throw _d.sent();
|
|
1290
1283
|
case 10:
|
|
1291
1284
|
parsedBody = parsedOutput.body;
|
|
1285
|
+
$metadata = deserializeMetadata(output);
|
|
1286
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1292
1287
|
response = new __BaseException({
|
|
1293
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1288
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1294
1289
|
$fault: "client",
|
|
1295
|
-
$metadata:
|
|
1290
|
+
$metadata: $metadata,
|
|
1296
1291
|
});
|
|
1297
1292
|
throw __decorateServiceException(response, parsedBody);
|
|
1298
1293
|
}
|
|
@@ -1327,7 +1322,7 @@ export var deserializeAws_restJson1SearchQuantumTasksCommand = function (output,
|
|
|
1327
1322
|
});
|
|
1328
1323
|
}); };
|
|
1329
1324
|
var deserializeAws_restJson1SearchQuantumTasksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1330
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1325
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1331
1326
|
var _c;
|
|
1332
1327
|
return __generator(this, function (_d) {
|
|
1333
1328
|
switch (_d.label) {
|
|
@@ -1337,7 +1332,6 @@ var deserializeAws_restJson1SearchQuantumTasksCommandError = function (output, c
|
|
|
1337
1332
|
return [4, parseBody(output.body, context)];
|
|
1338
1333
|
case 1:
|
|
1339
1334
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1340
|
-
errorCode = "UnknownError";
|
|
1341
1335
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
1336
|
_b = errorCode;
|
|
1343
1337
|
switch (_b) {
|
|
@@ -1361,10 +1355,12 @@ var deserializeAws_restJson1SearchQuantumTasksCommandError = function (output, c
|
|
|
1361
1355
|
case 9: throw _d.sent();
|
|
1362
1356
|
case 10:
|
|
1363
1357
|
parsedBody = parsedOutput.body;
|
|
1358
|
+
$metadata = deserializeMetadata(output);
|
|
1359
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1364
1360
|
response = new __BaseException({
|
|
1365
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1361
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1366
1362
|
$fault: "client",
|
|
1367
|
-
$metadata:
|
|
1363
|
+
$metadata: $metadata,
|
|
1368
1364
|
});
|
|
1369
1365
|
throw __decorateServiceException(response, parsedBody);
|
|
1370
1366
|
}
|
|
@@ -1389,7 +1385,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1389
1385
|
});
|
|
1390
1386
|
}); };
|
|
1391
1387
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1392
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1388
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1393
1389
|
var _c;
|
|
1394
1390
|
return __generator(this, function (_d) {
|
|
1395
1391
|
switch (_d.label) {
|
|
@@ -1399,7 +1395,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1399
1395
|
return [4, parseBody(output.body, context)];
|
|
1400
1396
|
case 1:
|
|
1401
1397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1402
|
-
errorCode = "UnknownError";
|
|
1403
1398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
1399
|
_b = errorCode;
|
|
1405
1400
|
switch (_b) {
|
|
@@ -1419,10 +1414,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1419
1414
|
case 7: throw _d.sent();
|
|
1420
1415
|
case 8:
|
|
1421
1416
|
parsedBody = parsedOutput.body;
|
|
1417
|
+
$metadata = deserializeMetadata(output);
|
|
1418
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1422
1419
|
response = new __BaseException({
|
|
1423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1424
1421
|
$fault: "client",
|
|
1425
|
-
$metadata:
|
|
1422
|
+
$metadata: $metadata,
|
|
1426
1423
|
});
|
|
1427
1424
|
throw __decorateServiceException(response, parsedBody);
|
|
1428
1425
|
}
|
|
@@ -1447,7 +1444,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1447
1444
|
});
|
|
1448
1445
|
}); };
|
|
1449
1446
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1450
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1447
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1451
1448
|
var _c;
|
|
1452
1449
|
return __generator(this, function (_d) {
|
|
1453
1450
|
switch (_d.label) {
|
|
@@ -1457,7 +1454,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1457
1454
|
return [4, parseBody(output.body, context)];
|
|
1458
1455
|
case 1:
|
|
1459
1456
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1460
|
-
errorCode = "UnknownError";
|
|
1461
1457
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
1458
|
_b = errorCode;
|
|
1463
1459
|
switch (_b) {
|
|
@@ -1477,10 +1473,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1477
1473
|
case 7: throw _d.sent();
|
|
1478
1474
|
case 8:
|
|
1479
1475
|
parsedBody = parsedOutput.body;
|
|
1476
|
+
$metadata = deserializeMetadata(output);
|
|
1477
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1480
1478
|
response = new __BaseException({
|
|
1481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1479
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1482
1480
|
$fault: "client",
|
|
1483
|
-
$metadata:
|
|
1481
|
+
$metadata: $metadata,
|
|
1484
1482
|
});
|
|
1485
1483
|
throw __decorateServiceException(response, parsedBody);
|
|
1486
1484
|
}
|
|
@@ -1595,23 +1593,22 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1595
1593
|
});
|
|
1596
1594
|
}); };
|
|
1597
1595
|
var serializeAws_restJson1AlgorithmSpecification = function (input, context) {
|
|
1598
|
-
return __assign(__assign({}, (input.containerImage
|
|
1599
|
-
input.containerImage !== null && {
|
|
1596
|
+
return __assign(__assign({}, (input.containerImage != null && {
|
|
1600
1597
|
containerImage: serializeAws_restJson1ContainerImage(input.containerImage, context),
|
|
1601
|
-
})), (input.scriptModeConfig
|
|
1602
|
-
input.scriptModeConfig !== null && {
|
|
1598
|
+
})), (input.scriptModeConfig != null && {
|
|
1603
1599
|
scriptModeConfig: serializeAws_restJson1ScriptModeConfig(input.scriptModeConfig, context),
|
|
1604
1600
|
}));
|
|
1605
1601
|
};
|
|
1606
1602
|
var serializeAws_restJson1ContainerImage = function (input, context) {
|
|
1607
|
-
return __assign({}, (input.uri
|
|
1603
|
+
return __assign({}, (input.uri != null && { uri: input.uri }));
|
|
1608
1604
|
};
|
|
1609
1605
|
var serializeAws_restJson1DataSource = function (input, context) {
|
|
1610
|
-
return __assign({}, (input.s3DataSource
|
|
1611
|
-
|
|
1606
|
+
return __assign({}, (input.s3DataSource != null && {
|
|
1607
|
+
s3DataSource: serializeAws_restJson1S3DataSource(input.s3DataSource, context),
|
|
1608
|
+
}));
|
|
1612
1609
|
};
|
|
1613
1610
|
var serializeAws_restJson1DeviceConfig = function (input, context) {
|
|
1614
|
-
return __assign({}, (input.device
|
|
1611
|
+
return __assign({}, (input.device != null && { device: input.device }));
|
|
1615
1612
|
};
|
|
1616
1613
|
var serializeAws_restJson1HyperParameters = function (input, context) {
|
|
1617
1614
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -1634,33 +1631,28 @@ var serializeAws_restJson1InputConfigList = function (input, context) {
|
|
|
1634
1631
|
});
|
|
1635
1632
|
};
|
|
1636
1633
|
var serializeAws_restJson1InputFileConfig = function (input, context) {
|
|
1637
|
-
return __assign(__assign(__assign({}, (input.channelName
|
|
1638
|
-
input.dataSource !== null && { dataSource: serializeAws_restJson1DataSource(input.dataSource, context) }));
|
|
1634
|
+
return __assign(__assign(__assign({}, (input.channelName != null && { channelName: input.channelName })), (input.contentType != null && { contentType: input.contentType })), (input.dataSource != null && { dataSource: serializeAws_restJson1DataSource(input.dataSource, context) }));
|
|
1639
1635
|
};
|
|
1640
1636
|
var serializeAws_restJson1InstanceConfig = function (input, context) {
|
|
1641
|
-
return __assign(__assign(__assign({}, (input.instanceCount
|
|
1642
|
-
input.volumeSizeInGb !== null && { volumeSizeInGb: input.volumeSizeInGb }));
|
|
1637
|
+
return __assign(__assign(__assign({}, (input.instanceCount != null && { instanceCount: input.instanceCount })), (input.instanceType != null && { instanceType: input.instanceType })), (input.volumeSizeInGb != null && { volumeSizeInGb: input.volumeSizeInGb }));
|
|
1643
1638
|
};
|
|
1644
1639
|
var serializeAws_restJson1JobCheckpointConfig = function (input, context) {
|
|
1645
|
-
return __assign(__assign({}, (input.localPath
|
|
1640
|
+
return __assign(__assign({}, (input.localPath != null && { localPath: input.localPath })), (input.s3Uri != null && { s3Uri: input.s3Uri }));
|
|
1646
1641
|
};
|
|
1647
1642
|
var serializeAws_restJson1JobOutputDataConfig = function (input, context) {
|
|
1648
|
-
return __assign(__assign({}, (input.kmsKeyId
|
|
1643
|
+
return __assign(__assign({}, (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.s3Path != null && { s3Path: input.s3Path }));
|
|
1649
1644
|
};
|
|
1650
1645
|
var serializeAws_restJson1JobStoppingCondition = function (input, context) {
|
|
1651
|
-
return __assign({}, (input.maxRuntimeInSeconds
|
|
1652
|
-
input.maxRuntimeInSeconds !== null && { maxRuntimeInSeconds: input.maxRuntimeInSeconds }));
|
|
1646
|
+
return __assign({}, (input.maxRuntimeInSeconds != null && { maxRuntimeInSeconds: input.maxRuntimeInSeconds }));
|
|
1653
1647
|
};
|
|
1654
1648
|
var serializeAws_restJson1S3DataSource = function (input, context) {
|
|
1655
|
-
return __assign({}, (input.s3Uri
|
|
1649
|
+
return __assign({}, (input.s3Uri != null && { s3Uri: input.s3Uri }));
|
|
1656
1650
|
};
|
|
1657
1651
|
var serializeAws_restJson1ScriptModeConfig = function (input, context) {
|
|
1658
|
-
return __assign(__assign(__assign({}, (input.compressionType
|
|
1659
|
-
input.compressionType !== null && { compressionType: input.compressionType })), (input.entryPoint !== undefined && input.entryPoint !== null && { entryPoint: input.entryPoint })), (input.s3Uri !== undefined && input.s3Uri !== null && { s3Uri: input.s3Uri }));
|
|
1652
|
+
return __assign(__assign(__assign({}, (input.compressionType != null && { compressionType: input.compressionType })), (input.entryPoint != null && { entryPoint: input.entryPoint })), (input.s3Uri != null && { s3Uri: input.s3Uri }));
|
|
1660
1653
|
};
|
|
1661
1654
|
var serializeAws_restJson1SearchDevicesFilter = function (input, context) {
|
|
1662
|
-
return __assign(__assign({}, (input.name
|
|
1663
|
-
input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }));
|
|
1655
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }));
|
|
1664
1656
|
};
|
|
1665
1657
|
var serializeAws_restJson1SearchDevicesFilterList = function (input, context) {
|
|
1666
1658
|
return input
|
|
@@ -1673,8 +1665,7 @@ var serializeAws_restJson1SearchDevicesFilterList = function (input, context) {
|
|
|
1673
1665
|
});
|
|
1674
1666
|
};
|
|
1675
1667
|
var serializeAws_restJson1SearchJobsFilter = function (input, context) {
|
|
1676
|
-
return __assign(__assign(__assign({}, (input.name
|
|
1677
|
-
input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }));
|
|
1668
|
+
return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }));
|
|
1678
1669
|
};
|
|
1679
1670
|
var serializeAws_restJson1SearchJobsFilterList = function (input, context) {
|
|
1680
1671
|
return input
|
|
@@ -1687,8 +1678,7 @@ var serializeAws_restJson1SearchJobsFilterList = function (input, context) {
|
|
|
1687
1678
|
});
|
|
1688
1679
|
};
|
|
1689
1680
|
var serializeAws_restJson1SearchQuantumTasksFilter = function (input, context) {
|
|
1690
|
-
return __assign(__assign(__assign({}, (input.name
|
|
1691
|
-
input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }));
|
|
1681
|
+
return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }));
|
|
1692
1682
|
};
|
|
1693
1683
|
var serializeAws_restJson1SearchQuantumTasksFilterList = function (input, context) {
|
|
1694
1684
|
return input
|
|
@@ -1722,10 +1712,10 @@ var serializeAws_restJson1TagsMap = function (input, context) {
|
|
|
1722
1712
|
};
|
|
1723
1713
|
var deserializeAws_restJson1AlgorithmSpecification = function (output, context) {
|
|
1724
1714
|
return {
|
|
1725
|
-
containerImage: output.containerImage
|
|
1715
|
+
containerImage: output.containerImage != null
|
|
1726
1716
|
? deserializeAws_restJson1ContainerImage(output.containerImage, context)
|
|
1727
1717
|
: undefined,
|
|
1728
|
-
scriptModeConfig: output.scriptModeConfig
|
|
1718
|
+
scriptModeConfig: output.scriptModeConfig != null
|
|
1729
1719
|
? deserializeAws_restJson1ScriptModeConfig(output.scriptModeConfig, context)
|
|
1730
1720
|
: undefined,
|
|
1731
1721
|
};
|
|
@@ -1737,9 +1727,7 @@ var deserializeAws_restJson1ContainerImage = function (output, context) {
|
|
|
1737
1727
|
};
|
|
1738
1728
|
var deserializeAws_restJson1DataSource = function (output, context) {
|
|
1739
1729
|
return {
|
|
1740
|
-
s3DataSource: output.s3DataSource
|
|
1741
|
-
? deserializeAws_restJson1S3DataSource(output.s3DataSource, context)
|
|
1742
|
-
: undefined,
|
|
1730
|
+
s3DataSource: output.s3DataSource != null ? deserializeAws_restJson1S3DataSource(output.s3DataSource, context) : undefined,
|
|
1743
1731
|
};
|
|
1744
1732
|
};
|
|
1745
1733
|
var deserializeAws_restJson1DeviceConfig = function (output, context) {
|
|
@@ -1792,9 +1780,7 @@ var deserializeAws_restJson1InputFileConfig = function (output, context) {
|
|
|
1792
1780
|
return {
|
|
1793
1781
|
channelName: __expectString(output.channelName),
|
|
1794
1782
|
contentType: __expectString(output.contentType),
|
|
1795
|
-
dataSource: output.dataSource
|
|
1796
|
-
? deserializeAws_restJson1DataSource(output.dataSource, context)
|
|
1797
|
-
: undefined,
|
|
1783
|
+
dataSource: output.dataSource != null ? deserializeAws_restJson1DataSource(output.dataSource, context) : undefined,
|
|
1798
1784
|
};
|
|
1799
1785
|
};
|
|
1800
1786
|
var deserializeAws_restJson1InstanceConfig = function (output, context) {
|
|
@@ -1814,9 +1800,7 @@ var deserializeAws_restJson1JobEventDetails = function (output, context) {
|
|
|
1814
1800
|
return {
|
|
1815
1801
|
eventType: __expectString(output.eventType),
|
|
1816
1802
|
message: __expectString(output.message),
|
|
1817
|
-
timeOfEvent: output.timeOfEvent
|
|
1818
|
-
? __expectNonNull(__parseRfc3339DateTime(output.timeOfEvent))
|
|
1819
|
-
: undefined,
|
|
1803
|
+
timeOfEvent: output.timeOfEvent != null ? __expectNonNull(__parseRfc3339DateTime(output.timeOfEvent)) : undefined,
|
|
1820
1804
|
};
|
|
1821
1805
|
};
|
|
1822
1806
|
var deserializeAws_restJson1JobEvents = function (output, context) {
|
|
@@ -1843,22 +1827,14 @@ var deserializeAws_restJson1JobStoppingCondition = function (output, context) {
|
|
|
1843
1827
|
};
|
|
1844
1828
|
var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
1845
1829
|
return {
|
|
1846
|
-
createdAt: output.createdAt
|
|
1847
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
1848
|
-
: undefined,
|
|
1830
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
1849
1831
|
device: __expectString(output.device),
|
|
1850
|
-
endedAt: output.endedAt
|
|
1851
|
-
? __expectNonNull(__parseRfc3339DateTime(output.endedAt))
|
|
1852
|
-
: undefined,
|
|
1832
|
+
endedAt: output.endedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.endedAt)) : undefined,
|
|
1853
1833
|
jobArn: __expectString(output.jobArn),
|
|
1854
1834
|
jobName: __expectString(output.jobName),
|
|
1855
|
-
startedAt: output.startedAt
|
|
1856
|
-
? __expectNonNull(__parseRfc3339DateTime(output.startedAt))
|
|
1857
|
-
: undefined,
|
|
1835
|
+
startedAt: output.startedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.startedAt)) : undefined,
|
|
1858
1836
|
status: __expectString(output.status),
|
|
1859
|
-
tags: output.tags
|
|
1860
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
1861
|
-
: undefined,
|
|
1837
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
1862
1838
|
};
|
|
1863
1839
|
};
|
|
1864
1840
|
var deserializeAws_restJson1JobSummaryList = function (output, context) {
|
|
@@ -1874,21 +1850,15 @@ var deserializeAws_restJson1JobSummaryList = function (output, context) {
|
|
|
1874
1850
|
};
|
|
1875
1851
|
var deserializeAws_restJson1QuantumTaskSummary = function (output, context) {
|
|
1876
1852
|
return {
|
|
1877
|
-
createdAt: output.createdAt
|
|
1878
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
1879
|
-
: undefined,
|
|
1853
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
1880
1854
|
deviceArn: __expectString(output.deviceArn),
|
|
1881
|
-
endedAt: output.endedAt
|
|
1882
|
-
? __expectNonNull(__parseRfc3339DateTime(output.endedAt))
|
|
1883
|
-
: undefined,
|
|
1855
|
+
endedAt: output.endedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.endedAt)) : undefined,
|
|
1884
1856
|
outputS3Bucket: __expectString(output.outputS3Bucket),
|
|
1885
1857
|
outputS3Directory: __expectString(output.outputS3Directory),
|
|
1886
1858
|
quantumTaskArn: __expectString(output.quantumTaskArn),
|
|
1887
1859
|
shots: __expectLong(output.shots),
|
|
1888
1860
|
status: __expectString(output.status),
|
|
1889
|
-
tags: output.tags
|
|
1890
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
1891
|
-
: undefined,
|
|
1861
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
1892
1862
|
};
|
|
1893
1863
|
};
|
|
1894
1864
|
var deserializeAws_restJson1QuantumTaskSummaryList = function (output, context) {
|
|
@@ -1980,5 +1950,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1980
1950
|
if (data["__type"] !== undefined) {
|
|
1981
1951
|
return sanitizeErrorCode(data["__type"]);
|
|
1982
1952
|
}
|
|
1983
|
-
return "";
|
|
1984
1953
|
};
|