@aws-sdk/client-iottwinmaker 3.118.0 → 3.127.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 +295 -371
- package/dist-es/protocols/Aws_restJson1.js +221 -297
- package/package.json +26 -26
|
@@ -25,8 +25,7 @@ export var serializeAws_restJson1BatchPutPropertyValuesCommand = function (input
|
|
|
25
25
|
else {
|
|
26
26
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
27
27
|
}
|
|
28
|
-
body = JSON.stringify(__assign({}, (input.entries
|
|
29
|
-
input.entries !== null && { entries: serializeAws_restJson1Entries(input.entries, context) })));
|
|
28
|
+
body = JSON.stringify(__assign({}, (input.entries != null && { entries: serializeAws_restJson1Entries(input.entries, context) })));
|
|
30
29
|
return [4, context.endpoint()];
|
|
31
30
|
case 2:
|
|
32
31
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -80,12 +79,9 @@ export var serializeAws_restJson1CreateComponentTypeCommand = function (input, c
|
|
|
80
79
|
else {
|
|
81
80
|
throw new Error("No value provided for input HTTP label: componentTypeId.");
|
|
82
81
|
}
|
|
83
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
84
|
-
input.extendsFrom !== null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) })), (input.functions !== undefined &&
|
|
85
|
-
input.functions !== null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) })), (input.isSingleton !== undefined && input.isSingleton !== null && { isSingleton: input.isSingleton })), (input.propertyDefinitions !== undefined &&
|
|
86
|
-
input.propertyDefinitions !== null && {
|
|
82
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) })), (input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) })), (input.isSingleton != null && { isSingleton: input.isSingleton })), (input.propertyDefinitions != null && {
|
|
87
83
|
propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
88
|
-
})), (input.tags
|
|
84
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
89
85
|
return [4, context.endpoint()];
|
|
90
86
|
case 2:
|
|
91
87
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -128,11 +124,9 @@ export var serializeAws_restJson1CreateEntityCommand = function (input, context)
|
|
|
128
124
|
else {
|
|
129
125
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
130
126
|
}
|
|
131
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.components
|
|
132
|
-
input.components !== null && {
|
|
127
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.components != null && {
|
|
133
128
|
components: serializeAws_restJson1ComponentsMapRequest(input.components, context),
|
|
134
|
-
})), (input.description
|
|
135
|
-
input.parentEntityId !== null && { parentEntityId: input.parentEntityId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
129
|
+
})), (input.description != null && { description: input.description })), (input.entityId != null && { entityId: input.entityId })), (input.entityName != null && { entityName: input.entityName })), (input.parentEntityId != null && { parentEntityId: input.parentEntityId })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
136
130
|
return [4, context.endpoint()];
|
|
137
131
|
case 2:
|
|
138
132
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -175,11 +169,9 @@ export var serializeAws_restJson1CreateSceneCommand = function (input, context)
|
|
|
175
169
|
else {
|
|
176
170
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
177
171
|
}
|
|
178
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.capabilities
|
|
179
|
-
input.capabilities !== null && {
|
|
172
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.capabilities != null && {
|
|
180
173
|
capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
|
|
181
|
-
})), (input.contentLocation
|
|
182
|
-
input.contentLocation !== null && { contentLocation: input.contentLocation })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.sceneId !== undefined && input.sceneId !== null && { sceneId: input.sceneId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
174
|
+
})), (input.contentLocation != null && { contentLocation: input.contentLocation })), (input.description != null && { description: input.description })), (input.sceneId != null && { sceneId: input.sceneId })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
183
175
|
return [4, context.endpoint()];
|
|
184
176
|
case 2:
|
|
185
177
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -222,7 +214,7 @@ export var serializeAws_restJson1CreateWorkspaceCommand = function (input, conte
|
|
|
222
214
|
else {
|
|
223
215
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
224
216
|
}
|
|
225
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description
|
|
217
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.role != null && { role: input.role })), (input.s3Location != null && { s3Location: input.s3Location })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
226
218
|
return [4, context.endpoint()];
|
|
227
219
|
case 2:
|
|
228
220
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -563,9 +555,7 @@ export var serializeAws_restJson1GetPropertyValueCommand = function (input, cont
|
|
|
563
555
|
else {
|
|
564
556
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
565
557
|
}
|
|
566
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.componentName
|
|
567
|
-
input.componentTypeId !== null && { componentTypeId: input.componentTypeId })), (input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId })), (input.selectedProperties !== undefined &&
|
|
568
|
-
input.selectedProperties !== null && {
|
|
558
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.componentName != null && { componentName: input.componentName })), (input.componentTypeId != null && { componentTypeId: input.componentTypeId })), (input.entityId != null && { entityId: input.entityId })), (input.selectedProperties != null && {
|
|
569
559
|
selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
|
|
570
560
|
})));
|
|
571
561
|
return [4, context.endpoint()];
|
|
@@ -611,19 +601,13 @@ export var serializeAws_restJson1GetPropertyValueHistoryCommand = function (inpu
|
|
|
611
601
|
else {
|
|
612
602
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
613
603
|
}
|
|
614
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.componentName
|
|
615
|
-
input.componentTypeId !== null && { componentTypeId: input.componentTypeId })), (input.endDateTime !== undefined &&
|
|
616
|
-
input.endDateTime !== null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) })), (input.endTime !== undefined && input.endTime !== null && { endTime: input.endTime })), (input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId })), (input.interpolation !== undefined &&
|
|
617
|
-
input.interpolation !== null && {
|
|
604
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.componentName != null && { componentName: input.componentName })), (input.componentTypeId != null && { componentTypeId: input.componentTypeId })), (input.endDateTime != null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) })), (input.endTime != null && { endTime: input.endTime })), (input.entityId != null && { entityId: input.entityId })), (input.interpolation != null && {
|
|
618
605
|
interpolation: serializeAws_restJson1InterpolationParameters(input.interpolation, context),
|
|
619
|
-
})), (input.maxResults
|
|
620
|
-
input.propertyFilters !== null && {
|
|
606
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.orderByTime != null && { orderByTime: input.orderByTime })), (input.propertyFilters != null && {
|
|
621
607
|
propertyFilters: serializeAws_restJson1PropertyFilters(input.propertyFilters, context),
|
|
622
|
-
})), (input.selectedProperties
|
|
623
|
-
input.selectedProperties !== null && {
|
|
608
|
+
})), (input.selectedProperties != null && {
|
|
624
609
|
selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
|
|
625
|
-
})), (input.startDateTime
|
|
626
|
-
input.startDateTime !== null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) })), (input.startTime !== undefined && input.startTime !== null && { startTime: input.startTime })));
|
|
610
|
+
})), (input.startDateTime != null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) })), (input.startTime != null && { startTime: input.startTime })));
|
|
627
611
|
return [4, context.endpoint()];
|
|
628
612
|
case 2:
|
|
629
613
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -758,8 +742,7 @@ export var serializeAws_restJson1ListComponentTypesCommand = function (input, co
|
|
|
758
742
|
else {
|
|
759
743
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
760
744
|
}
|
|
761
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
762
|
-
input.filters !== null && { filters: serializeAws_restJson1ListComponentTypesFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
745
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1ListComponentTypesFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
763
746
|
return [4, context.endpoint()];
|
|
764
747
|
case 2:
|
|
765
748
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -802,8 +785,7 @@ export var serializeAws_restJson1ListEntitiesCommand = function (input, context)
|
|
|
802
785
|
else {
|
|
803
786
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
804
787
|
}
|
|
805
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
806
|
-
input.filters !== null && { filters: serializeAws_restJson1ListEntitiesFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
788
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1ListEntitiesFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
807
789
|
return [4, context.endpoint()];
|
|
808
790
|
case 2:
|
|
809
791
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -846,7 +828,7 @@ export var serializeAws_restJson1ListScenesCommand = function (input, context) {
|
|
|
846
828
|
else {
|
|
847
829
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
848
830
|
}
|
|
849
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults
|
|
831
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
850
832
|
return [4, context.endpoint()];
|
|
851
833
|
case 2:
|
|
852
834
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -879,7 +861,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
879
861
|
"content-type": "application/json",
|
|
880
862
|
};
|
|
881
863
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags-list";
|
|
882
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults
|
|
864
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceARN != null && { resourceARN: input.resourceARN })));
|
|
883
865
|
return [4, context.endpoint()];
|
|
884
866
|
case 2:
|
|
885
867
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -912,7 +894,7 @@ export var serializeAws_restJson1ListWorkspacesCommand = function (input, contex
|
|
|
912
894
|
"content-type": "application/json",
|
|
913
895
|
};
|
|
914
896
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces-list";
|
|
915
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults
|
|
897
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
916
898
|
return [4, context.endpoint()];
|
|
917
899
|
case 2:
|
|
918
900
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -945,7 +927,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
945
927
|
"content-type": "application/json",
|
|
946
928
|
};
|
|
947
929
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
948
|
-
body = JSON.stringify(__assign(__assign({}, (input.resourceARN
|
|
930
|
+
body = JSON.stringify(__assign(__assign({}, (input.resourceARN != null && { resourceARN: input.resourceARN })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
949
931
|
return [4, context.endpoint()];
|
|
950
932
|
case 2:
|
|
951
933
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1031,10 +1013,7 @@ export var serializeAws_restJson1UpdateComponentTypeCommand = function (input, c
|
|
|
1031
1013
|
else {
|
|
1032
1014
|
throw new Error("No value provided for input HTTP label: componentTypeId.");
|
|
1033
1015
|
}
|
|
1034
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
1035
|
-
input.extendsFrom !== null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) })), (input.functions !== undefined &&
|
|
1036
|
-
input.functions !== null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) })), (input.isSingleton !== undefined && input.isSingleton !== null && { isSingleton: input.isSingleton })), (input.propertyDefinitions !== undefined &&
|
|
1037
|
-
input.propertyDefinitions !== null && {
|
|
1016
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) })), (input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) })), (input.isSingleton != null && { isSingleton: input.isSingleton })), (input.propertyDefinitions != null && {
|
|
1038
1017
|
propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
1039
1018
|
})));
|
|
1040
1019
|
return [4, context.endpoint()];
|
|
@@ -1090,11 +1069,9 @@ export var serializeAws_restJson1UpdateEntityCommand = function (input, context)
|
|
|
1090
1069
|
else {
|
|
1091
1070
|
throw new Error("No value provided for input HTTP label: entityId.");
|
|
1092
1071
|
}
|
|
1093
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.componentUpdates
|
|
1094
|
-
input.componentUpdates !== null && {
|
|
1072
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.componentUpdates != null && {
|
|
1095
1073
|
componentUpdates: serializeAws_restJson1ComponentUpdatesMapRequest(input.componentUpdates, context),
|
|
1096
|
-
})), (input.description
|
|
1097
|
-
input.parentEntityUpdate !== null && {
|
|
1074
|
+
})), (input.description != null && { description: input.description })), (input.entityName != null && { entityName: input.entityName })), (input.parentEntityUpdate != null && {
|
|
1098
1075
|
parentEntityUpdate: serializeAws_restJson1ParentEntityUpdateRequest(input.parentEntityUpdate, context),
|
|
1099
1076
|
})));
|
|
1100
1077
|
return [4, context.endpoint()];
|
|
@@ -1150,11 +1127,9 @@ export var serializeAws_restJson1UpdateSceneCommand = function (input, context)
|
|
|
1150
1127
|
else {
|
|
1151
1128
|
throw new Error("No value provided for input HTTP label: sceneId.");
|
|
1152
1129
|
}
|
|
1153
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.capabilities
|
|
1154
|
-
input.capabilities !== null && {
|
|
1130
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.capabilities != null && {
|
|
1155
1131
|
capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
|
|
1156
|
-
})), (input.contentLocation
|
|
1157
|
-
input.contentLocation !== null && { contentLocation: input.contentLocation })), (input.description !== undefined && input.description !== null && { description: input.description })));
|
|
1132
|
+
})), (input.contentLocation != null && { contentLocation: input.contentLocation })), (input.description != null && { description: input.description })));
|
|
1158
1133
|
return [4, context.endpoint()];
|
|
1159
1134
|
case 2:
|
|
1160
1135
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1197,7 +1172,7 @@ export var serializeAws_restJson1UpdateWorkspaceCommand = function (input, conte
|
|
|
1197
1172
|
else {
|
|
1198
1173
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
1199
1174
|
}
|
|
1200
|
-
body = JSON.stringify(__assign(__assign({}, (input.description
|
|
1175
|
+
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.role != null && { role: input.role })));
|
|
1201
1176
|
return [4, context.endpoint()];
|
|
1202
1177
|
case 2:
|
|
1203
1178
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1244,7 +1219,7 @@ export var deserializeAws_restJson1BatchPutPropertyValuesCommand = function (out
|
|
|
1244
1219
|
});
|
|
1245
1220
|
}); };
|
|
1246
1221
|
var deserializeAws_restJson1BatchPutPropertyValuesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1247
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1222
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1248
1223
|
var _c;
|
|
1249
1224
|
return __generator(this, function (_d) {
|
|
1250
1225
|
switch (_d.label) {
|
|
@@ -1254,7 +1229,6 @@ var deserializeAws_restJson1BatchPutPropertyValuesCommandError = function (outpu
|
|
|
1254
1229
|
return [4, parseBody(output.body, context)];
|
|
1255
1230
|
case 1:
|
|
1256
1231
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1257
|
-
errorCode = "UnknownError";
|
|
1258
1232
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
1233
|
_b = errorCode;
|
|
1260
1234
|
switch (_b) {
|
|
@@ -1278,10 +1252,12 @@ var deserializeAws_restJson1BatchPutPropertyValuesCommandError = function (outpu
|
|
|
1278
1252
|
case 9: throw _d.sent();
|
|
1279
1253
|
case 10:
|
|
1280
1254
|
parsedBody = parsedOutput.body;
|
|
1255
|
+
$metadata = deserializeMetadata(output);
|
|
1256
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1281
1257
|
response = new __BaseException({
|
|
1282
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1258
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1283
1259
|
$fault: "client",
|
|
1284
|
-
$metadata:
|
|
1260
|
+
$metadata: $metadata,
|
|
1285
1261
|
});
|
|
1286
1262
|
throw __decorateServiceException(response, parsedBody);
|
|
1287
1263
|
}
|
|
@@ -1320,7 +1296,7 @@ export var deserializeAws_restJson1CreateComponentTypeCommand = function (output
|
|
|
1320
1296
|
});
|
|
1321
1297
|
}); };
|
|
1322
1298
|
var deserializeAws_restJson1CreateComponentTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1323
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1299
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1324
1300
|
var _c;
|
|
1325
1301
|
return __generator(this, function (_d) {
|
|
1326
1302
|
switch (_d.label) {
|
|
@@ -1330,7 +1306,6 @@ var deserializeAws_restJson1CreateComponentTypeCommandError = function (output,
|
|
|
1330
1306
|
return [4, parseBody(output.body, context)];
|
|
1331
1307
|
case 1:
|
|
1332
1308
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1333
|
-
errorCode = "UnknownError";
|
|
1334
1309
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
1310
|
_b = errorCode;
|
|
1336
1311
|
switch (_b) {
|
|
@@ -1362,10 +1337,12 @@ var deserializeAws_restJson1CreateComponentTypeCommandError = function (output,
|
|
|
1362
1337
|
case 13: throw _d.sent();
|
|
1363
1338
|
case 14:
|
|
1364
1339
|
parsedBody = parsedOutput.body;
|
|
1340
|
+
$metadata = deserializeMetadata(output);
|
|
1341
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1365
1342
|
response = new __BaseException({
|
|
1366
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1367
1344
|
$fault: "client",
|
|
1368
|
-
$metadata:
|
|
1345
|
+
$metadata: $metadata,
|
|
1369
1346
|
});
|
|
1370
1347
|
throw __decorateServiceException(response, parsedBody);
|
|
1371
1348
|
}
|
|
@@ -1408,7 +1385,7 @@ export var deserializeAws_restJson1CreateEntityCommand = function (output, conte
|
|
|
1408
1385
|
});
|
|
1409
1386
|
}); };
|
|
1410
1387
|
var deserializeAws_restJson1CreateEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1411
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1388
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1412
1389
|
var _c;
|
|
1413
1390
|
return __generator(this, function (_d) {
|
|
1414
1391
|
switch (_d.label) {
|
|
@@ -1418,7 +1395,6 @@ var deserializeAws_restJson1CreateEntityCommandError = function (output, context
|
|
|
1418
1395
|
return [4, parseBody(output.body, context)];
|
|
1419
1396
|
case 1:
|
|
1420
1397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1421
|
-
errorCode = "UnknownError";
|
|
1422
1398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1399
|
_b = errorCode;
|
|
1424
1400
|
switch (_b) {
|
|
@@ -1450,10 +1426,12 @@ var deserializeAws_restJson1CreateEntityCommandError = function (output, context
|
|
|
1450
1426
|
case 13: throw _d.sent();
|
|
1451
1427
|
case 14:
|
|
1452
1428
|
parsedBody = parsedOutput.body;
|
|
1429
|
+
$metadata = deserializeMetadata(output);
|
|
1430
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1453
1431
|
response = new __BaseException({
|
|
1454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1455
1433
|
$fault: "client",
|
|
1456
|
-
$metadata:
|
|
1434
|
+
$metadata: $metadata,
|
|
1457
1435
|
});
|
|
1458
1436
|
throw __decorateServiceException(response, parsedBody);
|
|
1459
1437
|
}
|
|
@@ -1488,7 +1466,7 @@ export var deserializeAws_restJson1CreateSceneCommand = function (output, contex
|
|
|
1488
1466
|
});
|
|
1489
1467
|
}); };
|
|
1490
1468
|
var deserializeAws_restJson1CreateSceneCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1491
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1469
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1492
1470
|
var _c;
|
|
1493
1471
|
return __generator(this, function (_d) {
|
|
1494
1472
|
switch (_d.label) {
|
|
@@ -1498,7 +1476,6 @@ var deserializeAws_restJson1CreateSceneCommandError = function (output, context)
|
|
|
1498
1476
|
return [4, parseBody(output.body, context)];
|
|
1499
1477
|
case 1:
|
|
1500
1478
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1501
|
-
errorCode = "UnknownError";
|
|
1502
1479
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
1480
|
_b = errorCode;
|
|
1504
1481
|
switch (_b) {
|
|
@@ -1530,10 +1507,12 @@ var deserializeAws_restJson1CreateSceneCommandError = function (output, context)
|
|
|
1530
1507
|
case 13: throw _d.sent();
|
|
1531
1508
|
case 14:
|
|
1532
1509
|
parsedBody = parsedOutput.body;
|
|
1510
|
+
$metadata = deserializeMetadata(output);
|
|
1511
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1533
1512
|
response = new __BaseException({
|
|
1534
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1513
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1535
1514
|
$fault: "client",
|
|
1536
|
-
$metadata:
|
|
1515
|
+
$metadata: $metadata,
|
|
1537
1516
|
});
|
|
1538
1517
|
throw __decorateServiceException(response, parsedBody);
|
|
1539
1518
|
}
|
|
@@ -1568,7 +1547,7 @@ export var deserializeAws_restJson1CreateWorkspaceCommand = function (output, co
|
|
|
1568
1547
|
});
|
|
1569
1548
|
}); };
|
|
1570
1549
|
var deserializeAws_restJson1CreateWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1571
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1550
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1572
1551
|
var _c;
|
|
1573
1552
|
return __generator(this, function (_d) {
|
|
1574
1553
|
switch (_d.label) {
|
|
@@ -1578,7 +1557,6 @@ var deserializeAws_restJson1CreateWorkspaceCommandError = function (output, cont
|
|
|
1578
1557
|
return [4, parseBody(output.body, context)];
|
|
1579
1558
|
case 1:
|
|
1580
1559
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1581
|
-
errorCode = "UnknownError";
|
|
1582
1560
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1583
1561
|
_b = errorCode;
|
|
1584
1562
|
switch (_b) {
|
|
@@ -1610,10 +1588,12 @@ var deserializeAws_restJson1CreateWorkspaceCommandError = function (output, cont
|
|
|
1610
1588
|
case 13: throw _d.sent();
|
|
1611
1589
|
case 14:
|
|
1612
1590
|
parsedBody = parsedOutput.body;
|
|
1591
|
+
$metadata = deserializeMetadata(output);
|
|
1592
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1613
1593
|
response = new __BaseException({
|
|
1614
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1594
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1615
1595
|
$fault: "client",
|
|
1616
|
-
$metadata:
|
|
1596
|
+
$metadata: $metadata,
|
|
1617
1597
|
});
|
|
1618
1598
|
throw __decorateServiceException(response, parsedBody);
|
|
1619
1599
|
}
|
|
@@ -1644,7 +1624,7 @@ export var deserializeAws_restJson1DeleteComponentTypeCommand = function (output
|
|
|
1644
1624
|
});
|
|
1645
1625
|
}); };
|
|
1646
1626
|
var deserializeAws_restJson1DeleteComponentTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1647
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1627
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1648
1628
|
var _c;
|
|
1649
1629
|
return __generator(this, function (_d) {
|
|
1650
1630
|
switch (_d.label) {
|
|
@@ -1654,7 +1634,6 @@ var deserializeAws_restJson1DeleteComponentTypeCommandError = function (output,
|
|
|
1654
1634
|
return [4, parseBody(output.body, context)];
|
|
1655
1635
|
case 1:
|
|
1656
1636
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1657
|
-
errorCode = "UnknownError";
|
|
1658
1637
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
1638
|
_b = errorCode;
|
|
1660
1639
|
switch (_b) {
|
|
@@ -1682,10 +1661,12 @@ var deserializeAws_restJson1DeleteComponentTypeCommandError = function (output,
|
|
|
1682
1661
|
case 11: throw _d.sent();
|
|
1683
1662
|
case 12:
|
|
1684
1663
|
parsedBody = parsedOutput.body;
|
|
1664
|
+
$metadata = deserializeMetadata(output);
|
|
1665
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1685
1666
|
response = new __BaseException({
|
|
1686
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1667
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1687
1668
|
$fault: "client",
|
|
1688
|
-
$metadata:
|
|
1669
|
+
$metadata: $metadata,
|
|
1689
1670
|
});
|
|
1690
1671
|
throw __decorateServiceException(response, parsedBody);
|
|
1691
1672
|
}
|
|
@@ -1716,7 +1697,7 @@ export var deserializeAws_restJson1DeleteEntityCommand = function (output, conte
|
|
|
1716
1697
|
});
|
|
1717
1698
|
}); };
|
|
1718
1699
|
var deserializeAws_restJson1DeleteEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1719
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1700
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1720
1701
|
var _c;
|
|
1721
1702
|
return __generator(this, function (_d) {
|
|
1722
1703
|
switch (_d.label) {
|
|
@@ -1726,7 +1707,6 @@ var deserializeAws_restJson1DeleteEntityCommandError = function (output, context
|
|
|
1726
1707
|
return [4, parseBody(output.body, context)];
|
|
1727
1708
|
case 1:
|
|
1728
1709
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1729
|
-
errorCode = "UnknownError";
|
|
1730
1710
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
1711
|
_b = errorCode;
|
|
1732
1712
|
switch (_b) {
|
|
@@ -1754,10 +1734,12 @@ var deserializeAws_restJson1DeleteEntityCommandError = function (output, context
|
|
|
1754
1734
|
case 11: throw _d.sent();
|
|
1755
1735
|
case 12:
|
|
1756
1736
|
parsedBody = parsedOutput.body;
|
|
1737
|
+
$metadata = deserializeMetadata(output);
|
|
1738
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1757
1739
|
response = new __BaseException({
|
|
1758
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1740
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1759
1741
|
$fault: "client",
|
|
1760
|
-
$metadata:
|
|
1742
|
+
$metadata: $metadata,
|
|
1761
1743
|
});
|
|
1762
1744
|
throw __decorateServiceException(response, parsedBody);
|
|
1763
1745
|
}
|
|
@@ -1782,7 +1764,7 @@ export var deserializeAws_restJson1DeleteSceneCommand = function (output, contex
|
|
|
1782
1764
|
});
|
|
1783
1765
|
}); };
|
|
1784
1766
|
var deserializeAws_restJson1DeleteSceneCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1785
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1767
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1786
1768
|
var _c;
|
|
1787
1769
|
return __generator(this, function (_d) {
|
|
1788
1770
|
switch (_d.label) {
|
|
@@ -1792,7 +1774,6 @@ var deserializeAws_restJson1DeleteSceneCommandError = function (output, context)
|
|
|
1792
1774
|
return [4, parseBody(output.body, context)];
|
|
1793
1775
|
case 1:
|
|
1794
1776
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1795
|
-
errorCode = "UnknownError";
|
|
1796
1777
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1797
1778
|
_b = errorCode;
|
|
1798
1779
|
switch (_b) {
|
|
@@ -1820,10 +1801,12 @@ var deserializeAws_restJson1DeleteSceneCommandError = function (output, context)
|
|
|
1820
1801
|
case 11: throw _d.sent();
|
|
1821
1802
|
case 12:
|
|
1822
1803
|
parsedBody = parsedOutput.body;
|
|
1804
|
+
$metadata = deserializeMetadata(output);
|
|
1805
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1823
1806
|
response = new __BaseException({
|
|
1824
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1807
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1825
1808
|
$fault: "client",
|
|
1826
|
-
$metadata:
|
|
1809
|
+
$metadata: $metadata,
|
|
1827
1810
|
});
|
|
1828
1811
|
throw __decorateServiceException(response, parsedBody);
|
|
1829
1812
|
}
|
|
@@ -1848,7 +1831,7 @@ export var deserializeAws_restJson1DeleteWorkspaceCommand = function (output, co
|
|
|
1848
1831
|
});
|
|
1849
1832
|
}); };
|
|
1850
1833
|
var deserializeAws_restJson1DeleteWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1851
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1834
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1852
1835
|
var _c;
|
|
1853
1836
|
return __generator(this, function (_d) {
|
|
1854
1837
|
switch (_d.label) {
|
|
@@ -1858,7 +1841,6 @@ var deserializeAws_restJson1DeleteWorkspaceCommandError = function (output, cont
|
|
|
1858
1841
|
return [4, parseBody(output.body, context)];
|
|
1859
1842
|
case 1:
|
|
1860
1843
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1861
|
-
errorCode = "UnknownError";
|
|
1862
1844
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1863
1845
|
_b = errorCode;
|
|
1864
1846
|
switch (_b) {
|
|
@@ -1886,10 +1868,12 @@ var deserializeAws_restJson1DeleteWorkspaceCommandError = function (output, cont
|
|
|
1886
1868
|
case 11: throw _d.sent();
|
|
1887
1869
|
case 12:
|
|
1888
1870
|
parsedBody = parsedOutput.body;
|
|
1871
|
+
$metadata = deserializeMetadata(output);
|
|
1872
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1889
1873
|
response = new __BaseException({
|
|
1890
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1891
1875
|
$fault: "client",
|
|
1892
|
-
$metadata:
|
|
1876
|
+
$metadata: $metadata,
|
|
1893
1877
|
});
|
|
1894
1878
|
throw __decorateServiceException(response, parsedBody);
|
|
1895
1879
|
}
|
|
@@ -1968,7 +1952,7 @@ export var deserializeAws_restJson1GetComponentTypeCommand = function (output, c
|
|
|
1968
1952
|
});
|
|
1969
1953
|
}); };
|
|
1970
1954
|
var deserializeAws_restJson1GetComponentTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1971
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1955
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1972
1956
|
var _c;
|
|
1973
1957
|
return __generator(this, function (_d) {
|
|
1974
1958
|
switch (_d.label) {
|
|
@@ -1978,7 +1962,6 @@ var deserializeAws_restJson1GetComponentTypeCommandError = function (output, con
|
|
|
1978
1962
|
return [4, parseBody(output.body, context)];
|
|
1979
1963
|
case 1:
|
|
1980
1964
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1981
|
-
errorCode = "UnknownError";
|
|
1982
1965
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1983
1966
|
_b = errorCode;
|
|
1984
1967
|
switch (_b) {
|
|
@@ -2002,10 +1985,12 @@ var deserializeAws_restJson1GetComponentTypeCommandError = function (output, con
|
|
|
2002
1985
|
case 9: throw _d.sent();
|
|
2003
1986
|
case 10:
|
|
2004
1987
|
parsedBody = parsedOutput.body;
|
|
1988
|
+
$metadata = deserializeMetadata(output);
|
|
1989
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2005
1990
|
response = new __BaseException({
|
|
2006
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1991
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2007
1992
|
$fault: "client",
|
|
2008
|
-
$metadata:
|
|
1993
|
+
$metadata: $metadata,
|
|
2009
1994
|
});
|
|
2010
1995
|
throw __decorateServiceException(response, parsedBody);
|
|
2011
1996
|
}
|
|
@@ -2076,7 +2061,7 @@ export var deserializeAws_restJson1GetEntityCommand = function (output, context)
|
|
|
2076
2061
|
});
|
|
2077
2062
|
}); };
|
|
2078
2063
|
var deserializeAws_restJson1GetEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2079
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2064
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2080
2065
|
var _c;
|
|
2081
2066
|
return __generator(this, function (_d) {
|
|
2082
2067
|
switch (_d.label) {
|
|
@@ -2086,7 +2071,6 @@ var deserializeAws_restJson1GetEntityCommandError = function (output, context) {
|
|
|
2086
2071
|
return [4, parseBody(output.body, context)];
|
|
2087
2072
|
case 1:
|
|
2088
2073
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2089
|
-
errorCode = "UnknownError";
|
|
2090
2074
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
2075
|
_b = errorCode;
|
|
2092
2076
|
switch (_b) {
|
|
@@ -2114,10 +2098,12 @@ var deserializeAws_restJson1GetEntityCommandError = function (output, context) {
|
|
|
2114
2098
|
case 11: throw _d.sent();
|
|
2115
2099
|
case 12:
|
|
2116
2100
|
parsedBody = parsedOutput.body;
|
|
2101
|
+
$metadata = deserializeMetadata(output);
|
|
2102
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2117
2103
|
response = new __BaseException({
|
|
2118
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2104
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2119
2105
|
$fault: "client",
|
|
2120
|
-
$metadata:
|
|
2106
|
+
$metadata: $metadata,
|
|
2121
2107
|
});
|
|
2122
2108
|
throw __decorateServiceException(response, parsedBody);
|
|
2123
2109
|
}
|
|
@@ -2148,7 +2134,7 @@ export var deserializeAws_restJson1GetPropertyValueCommand = function (output, c
|
|
|
2148
2134
|
});
|
|
2149
2135
|
}); };
|
|
2150
2136
|
var deserializeAws_restJson1GetPropertyValueCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2151
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2137
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2152
2138
|
var _c;
|
|
2153
2139
|
return __generator(this, function (_d) {
|
|
2154
2140
|
switch (_d.label) {
|
|
@@ -2158,7 +2144,6 @@ var deserializeAws_restJson1GetPropertyValueCommandError = function (output, con
|
|
|
2158
2144
|
return [4, parseBody(output.body, context)];
|
|
2159
2145
|
case 1:
|
|
2160
2146
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2161
|
-
errorCode = "UnknownError";
|
|
2162
2147
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2163
2148
|
_b = errorCode;
|
|
2164
2149
|
switch (_b) {
|
|
@@ -2194,10 +2179,12 @@ var deserializeAws_restJson1GetPropertyValueCommandError = function (output, con
|
|
|
2194
2179
|
case 15: throw _d.sent();
|
|
2195
2180
|
case 16:
|
|
2196
2181
|
parsedBody = parsedOutput.body;
|
|
2182
|
+
$metadata = deserializeMetadata(output);
|
|
2183
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2197
2184
|
response = new __BaseException({
|
|
2198
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2185
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2199
2186
|
$fault: "client",
|
|
2200
|
-
$metadata:
|
|
2187
|
+
$metadata: $metadata,
|
|
2201
2188
|
});
|
|
2202
2189
|
throw __decorateServiceException(response, parsedBody);
|
|
2203
2190
|
}
|
|
@@ -2232,7 +2219,7 @@ export var deserializeAws_restJson1GetPropertyValueHistoryCommand = function (ou
|
|
|
2232
2219
|
});
|
|
2233
2220
|
}); };
|
|
2234
2221
|
var deserializeAws_restJson1GetPropertyValueHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2235
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2222
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2236
2223
|
var _c;
|
|
2237
2224
|
return __generator(this, function (_d) {
|
|
2238
2225
|
switch (_d.label) {
|
|
@@ -2242,7 +2229,6 @@ var deserializeAws_restJson1GetPropertyValueHistoryCommandError = function (outp
|
|
|
2242
2229
|
return [4, parseBody(output.body, context)];
|
|
2243
2230
|
case 1:
|
|
2244
2231
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2245
|
-
errorCode = "UnknownError";
|
|
2246
2232
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
2233
|
_b = errorCode;
|
|
2248
2234
|
switch (_b) {
|
|
@@ -2278,10 +2264,12 @@ var deserializeAws_restJson1GetPropertyValueHistoryCommandError = function (outp
|
|
|
2278
2264
|
case 15: throw _d.sent();
|
|
2279
2265
|
case 16:
|
|
2280
2266
|
parsedBody = parsedOutput.body;
|
|
2267
|
+
$metadata = deserializeMetadata(output);
|
|
2268
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2281
2269
|
response = new __BaseException({
|
|
2282
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2283
2271
|
$fault: "client",
|
|
2284
|
-
$metadata:
|
|
2272
|
+
$metadata: $metadata,
|
|
2285
2273
|
});
|
|
2286
2274
|
throw __decorateServiceException(response, parsedBody);
|
|
2287
2275
|
}
|
|
@@ -2340,7 +2328,7 @@ export var deserializeAws_restJson1GetSceneCommand = function (output, context)
|
|
|
2340
2328
|
});
|
|
2341
2329
|
}); };
|
|
2342
2330
|
var deserializeAws_restJson1GetSceneCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2343
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2331
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2344
2332
|
var _c;
|
|
2345
2333
|
return __generator(this, function (_d) {
|
|
2346
2334
|
switch (_d.label) {
|
|
@@ -2350,7 +2338,6 @@ var deserializeAws_restJson1GetSceneCommandError = function (output, context) {
|
|
|
2350
2338
|
return [4, parseBody(output.body, context)];
|
|
2351
2339
|
case 1:
|
|
2352
2340
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2353
|
-
errorCode = "UnknownError";
|
|
2354
2341
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
2342
|
_b = errorCode;
|
|
2356
2343
|
switch (_b) {
|
|
@@ -2378,10 +2365,12 @@ var deserializeAws_restJson1GetSceneCommandError = function (output, context) {
|
|
|
2378
2365
|
case 11: throw _d.sent();
|
|
2379
2366
|
case 12:
|
|
2380
2367
|
parsedBody = parsedOutput.body;
|
|
2368
|
+
$metadata = deserializeMetadata(output);
|
|
2369
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2381
2370
|
response = new __BaseException({
|
|
2382
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2383
2372
|
$fault: "client",
|
|
2384
|
-
$metadata:
|
|
2373
|
+
$metadata: $metadata,
|
|
2385
2374
|
});
|
|
2386
2375
|
throw __decorateServiceException(response, parsedBody);
|
|
2387
2376
|
}
|
|
@@ -2436,7 +2425,7 @@ export var deserializeAws_restJson1GetWorkspaceCommand = function (output, conte
|
|
|
2436
2425
|
});
|
|
2437
2426
|
}); };
|
|
2438
2427
|
var deserializeAws_restJson1GetWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2439
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2428
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2440
2429
|
var _c;
|
|
2441
2430
|
return __generator(this, function (_d) {
|
|
2442
2431
|
switch (_d.label) {
|
|
@@ -2446,7 +2435,6 @@ var deserializeAws_restJson1GetWorkspaceCommandError = function (output, context
|
|
|
2446
2435
|
return [4, parseBody(output.body, context)];
|
|
2447
2436
|
case 1:
|
|
2448
2437
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2449
|
-
errorCode = "UnknownError";
|
|
2450
2438
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2451
2439
|
_b = errorCode;
|
|
2452
2440
|
switch (_b) {
|
|
@@ -2474,10 +2462,12 @@ var deserializeAws_restJson1GetWorkspaceCommandError = function (output, context
|
|
|
2474
2462
|
case 11: throw _d.sent();
|
|
2475
2463
|
case 12:
|
|
2476
2464
|
parsedBody = parsedOutput.body;
|
|
2465
|
+
$metadata = deserializeMetadata(output);
|
|
2466
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2477
2467
|
response = new __BaseException({
|
|
2478
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2479
2469
|
$fault: "client",
|
|
2480
|
-
$metadata:
|
|
2470
|
+
$metadata: $metadata,
|
|
2481
2471
|
});
|
|
2482
2472
|
throw __decorateServiceException(response, parsedBody);
|
|
2483
2473
|
}
|
|
@@ -2520,7 +2510,7 @@ export var deserializeAws_restJson1ListComponentTypesCommand = function (output,
|
|
|
2520
2510
|
});
|
|
2521
2511
|
}); };
|
|
2522
2512
|
var deserializeAws_restJson1ListComponentTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2523
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2513
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2524
2514
|
var _c;
|
|
2525
2515
|
return __generator(this, function (_d) {
|
|
2526
2516
|
switch (_d.label) {
|
|
@@ -2530,7 +2520,6 @@ var deserializeAws_restJson1ListComponentTypesCommandError = function (output, c
|
|
|
2530
2520
|
return [4, parseBody(output.body, context)];
|
|
2531
2521
|
case 1:
|
|
2532
2522
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2533
|
-
errorCode = "UnknownError";
|
|
2534
2523
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
2524
|
_b = errorCode;
|
|
2536
2525
|
switch (_b) {
|
|
@@ -2554,10 +2543,12 @@ var deserializeAws_restJson1ListComponentTypesCommandError = function (output, c
|
|
|
2554
2543
|
case 9: throw _d.sent();
|
|
2555
2544
|
case 10:
|
|
2556
2545
|
parsedBody = parsedOutput.body;
|
|
2546
|
+
$metadata = deserializeMetadata(output);
|
|
2547
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2557
2548
|
response = new __BaseException({
|
|
2558
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2549
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2559
2550
|
$fault: "client",
|
|
2560
|
-
$metadata:
|
|
2551
|
+
$metadata: $metadata,
|
|
2561
2552
|
});
|
|
2562
2553
|
throw __decorateServiceException(response, parsedBody);
|
|
2563
2554
|
}
|
|
@@ -2592,7 +2583,7 @@ export var deserializeAws_restJson1ListEntitiesCommand = function (output, conte
|
|
|
2592
2583
|
});
|
|
2593
2584
|
}); };
|
|
2594
2585
|
var deserializeAws_restJson1ListEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2595
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2586
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2596
2587
|
var _c;
|
|
2597
2588
|
return __generator(this, function (_d) {
|
|
2598
2589
|
switch (_d.label) {
|
|
@@ -2602,7 +2593,6 @@ var deserializeAws_restJson1ListEntitiesCommandError = function (output, context
|
|
|
2602
2593
|
return [4, parseBody(output.body, context)];
|
|
2603
2594
|
case 1:
|
|
2604
2595
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2605
|
-
errorCode = "UnknownError";
|
|
2606
2596
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2607
2597
|
_b = errorCode;
|
|
2608
2598
|
switch (_b) {
|
|
@@ -2626,10 +2616,12 @@ var deserializeAws_restJson1ListEntitiesCommandError = function (output, context
|
|
|
2626
2616
|
case 9: throw _d.sent();
|
|
2627
2617
|
case 10:
|
|
2628
2618
|
parsedBody = parsedOutput.body;
|
|
2619
|
+
$metadata = deserializeMetadata(output);
|
|
2620
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2629
2621
|
response = new __BaseException({
|
|
2630
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2631
2623
|
$fault: "client",
|
|
2632
|
-
$metadata:
|
|
2624
|
+
$metadata: $metadata,
|
|
2633
2625
|
});
|
|
2634
2626
|
throw __decorateServiceException(response, parsedBody);
|
|
2635
2627
|
}
|
|
@@ -2664,7 +2656,7 @@ export var deserializeAws_restJson1ListScenesCommand = function (output, context
|
|
|
2664
2656
|
});
|
|
2665
2657
|
}); };
|
|
2666
2658
|
var deserializeAws_restJson1ListScenesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2667
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2659
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2668
2660
|
var _c;
|
|
2669
2661
|
return __generator(this, function (_d) {
|
|
2670
2662
|
switch (_d.label) {
|
|
@@ -2674,7 +2666,6 @@ var deserializeAws_restJson1ListScenesCommandError = function (output, context)
|
|
|
2674
2666
|
return [4, parseBody(output.body, context)];
|
|
2675
2667
|
case 1:
|
|
2676
2668
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2677
|
-
errorCode = "UnknownError";
|
|
2678
2669
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
2670
|
_b = errorCode;
|
|
2680
2671
|
switch (_b) {
|
|
@@ -2698,10 +2689,12 @@ var deserializeAws_restJson1ListScenesCommandError = function (output, context)
|
|
|
2698
2689
|
case 9: throw _d.sent();
|
|
2699
2690
|
case 10:
|
|
2700
2691
|
parsedBody = parsedOutput.body;
|
|
2692
|
+
$metadata = deserializeMetadata(output);
|
|
2693
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2701
2694
|
response = new __BaseException({
|
|
2702
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2703
2696
|
$fault: "client",
|
|
2704
|
-
$metadata:
|
|
2697
|
+
$metadata: $metadata,
|
|
2705
2698
|
});
|
|
2706
2699
|
throw __decorateServiceException(response, parsedBody);
|
|
2707
2700
|
}
|
|
@@ -2736,7 +2729,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2736
2729
|
});
|
|
2737
2730
|
}); };
|
|
2738
2731
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2739
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2732
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2740
2733
|
var _c;
|
|
2741
2734
|
return __generator(this, function (_d) {
|
|
2742
2735
|
switch (_d.label) {
|
|
@@ -2746,7 +2739,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2746
2739
|
return [4, parseBody(output.body, context)];
|
|
2747
2740
|
case 1:
|
|
2748
2741
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2749
|
-
errorCode = "UnknownError";
|
|
2750
2742
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
2743
|
_b = errorCode;
|
|
2752
2744
|
switch (_b) {
|
|
@@ -2762,10 +2754,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2762
2754
|
case 5: throw _d.sent();
|
|
2763
2755
|
case 6:
|
|
2764
2756
|
parsedBody = parsedOutput.body;
|
|
2757
|
+
$metadata = deserializeMetadata(output);
|
|
2758
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2765
2759
|
response = new __BaseException({
|
|
2766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2760
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2767
2761
|
$fault: "client",
|
|
2768
|
-
$metadata:
|
|
2762
|
+
$metadata: $metadata,
|
|
2769
2763
|
});
|
|
2770
2764
|
throw __decorateServiceException(response, parsedBody);
|
|
2771
2765
|
}
|
|
@@ -2800,7 +2794,7 @@ export var deserializeAws_restJson1ListWorkspacesCommand = function (output, con
|
|
|
2800
2794
|
});
|
|
2801
2795
|
}); };
|
|
2802
2796
|
var deserializeAws_restJson1ListWorkspacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2803
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2797
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2804
2798
|
var _c;
|
|
2805
2799
|
return __generator(this, function (_d) {
|
|
2806
2800
|
switch (_d.label) {
|
|
@@ -2810,7 +2804,6 @@ var deserializeAws_restJson1ListWorkspacesCommandError = function (output, conte
|
|
|
2810
2804
|
return [4, parseBody(output.body, context)];
|
|
2811
2805
|
case 1:
|
|
2812
2806
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2813
|
-
errorCode = "UnknownError";
|
|
2814
2807
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2815
2808
|
_b = errorCode;
|
|
2816
2809
|
switch (_b) {
|
|
@@ -2834,10 +2827,12 @@ var deserializeAws_restJson1ListWorkspacesCommandError = function (output, conte
|
|
|
2834
2827
|
case 9: throw _d.sent();
|
|
2835
2828
|
case 10:
|
|
2836
2829
|
parsedBody = parsedOutput.body;
|
|
2830
|
+
$metadata = deserializeMetadata(output);
|
|
2831
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2837
2832
|
response = new __BaseException({
|
|
2838
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2833
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2839
2834
|
$fault: "client",
|
|
2840
|
-
$metadata:
|
|
2835
|
+
$metadata: $metadata,
|
|
2841
2836
|
});
|
|
2842
2837
|
throw __decorateServiceException(response, parsedBody);
|
|
2843
2838
|
}
|
|
@@ -2862,7 +2857,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2862
2857
|
});
|
|
2863
2858
|
}); };
|
|
2864
2859
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2865
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2860
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2866
2861
|
var _c;
|
|
2867
2862
|
return __generator(this, function (_d) {
|
|
2868
2863
|
switch (_d.label) {
|
|
@@ -2872,7 +2867,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2872
2867
|
return [4, parseBody(output.body, context)];
|
|
2873
2868
|
case 1:
|
|
2874
2869
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2875
|
-
errorCode = "UnknownError";
|
|
2876
2870
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
2871
|
_b = errorCode;
|
|
2878
2872
|
switch (_b) {
|
|
@@ -2892,10 +2886,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2892
2886
|
case 7: throw _d.sent();
|
|
2893
2887
|
case 8:
|
|
2894
2888
|
parsedBody = parsedOutput.body;
|
|
2889
|
+
$metadata = deserializeMetadata(output);
|
|
2890
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2895
2891
|
response = new __BaseException({
|
|
2896
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2897
2893
|
$fault: "client",
|
|
2898
|
-
$metadata:
|
|
2894
|
+
$metadata: $metadata,
|
|
2899
2895
|
});
|
|
2900
2896
|
throw __decorateServiceException(response, parsedBody);
|
|
2901
2897
|
}
|
|
@@ -2920,7 +2916,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2920
2916
|
});
|
|
2921
2917
|
}); };
|
|
2922
2918
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2923
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2919
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2924
2920
|
var _c;
|
|
2925
2921
|
return __generator(this, function (_d) {
|
|
2926
2922
|
switch (_d.label) {
|
|
@@ -2930,7 +2926,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2930
2926
|
return [4, parseBody(output.body, context)];
|
|
2931
2927
|
case 1:
|
|
2932
2928
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2933
|
-
errorCode = "UnknownError";
|
|
2934
2929
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
2930
|
_b = errorCode;
|
|
2936
2931
|
switch (_b) {
|
|
@@ -2946,10 +2941,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2946
2941
|
case 5: throw _d.sent();
|
|
2947
2942
|
case 6:
|
|
2948
2943
|
parsedBody = parsedOutput.body;
|
|
2944
|
+
$metadata = deserializeMetadata(output);
|
|
2945
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2949
2946
|
response = new __BaseException({
|
|
2950
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2947
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2951
2948
|
$fault: "client",
|
|
2952
|
-
$metadata:
|
|
2949
|
+
$metadata: $metadata,
|
|
2953
2950
|
});
|
|
2954
2951
|
throw __decorateServiceException(response, parsedBody);
|
|
2955
2952
|
}
|
|
@@ -2992,7 +2989,7 @@ export var deserializeAws_restJson1UpdateComponentTypeCommand = function (output
|
|
|
2992
2989
|
});
|
|
2993
2990
|
}); };
|
|
2994
2991
|
var deserializeAws_restJson1UpdateComponentTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2995
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2992
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2996
2993
|
var _c;
|
|
2997
2994
|
return __generator(this, function (_d) {
|
|
2998
2995
|
switch (_d.label) {
|
|
@@ -3002,7 +2999,6 @@ var deserializeAws_restJson1UpdateComponentTypeCommandError = function (output,
|
|
|
3002
2999
|
return [4, parseBody(output.body, context)];
|
|
3003
3000
|
case 1:
|
|
3004
3001
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3005
|
-
errorCode = "UnknownError";
|
|
3006
3002
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3007
3003
|
_b = errorCode;
|
|
3008
3004
|
switch (_b) {
|
|
@@ -3034,10 +3030,12 @@ var deserializeAws_restJson1UpdateComponentTypeCommandError = function (output,
|
|
|
3034
3030
|
case 13: throw _d.sent();
|
|
3035
3031
|
case 14:
|
|
3036
3032
|
parsedBody = parsedOutput.body;
|
|
3033
|
+
$metadata = deserializeMetadata(output);
|
|
3034
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3037
3035
|
response = new __BaseException({
|
|
3038
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3036
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3039
3037
|
$fault: "client",
|
|
3040
|
-
$metadata:
|
|
3038
|
+
$metadata: $metadata,
|
|
3041
3039
|
});
|
|
3042
3040
|
throw __decorateServiceException(response, parsedBody);
|
|
3043
3041
|
}
|
|
@@ -3072,7 +3070,7 @@ export var deserializeAws_restJson1UpdateEntityCommand = function (output, conte
|
|
|
3072
3070
|
});
|
|
3073
3071
|
}); };
|
|
3074
3072
|
var deserializeAws_restJson1UpdateEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3075
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3073
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3076
3074
|
var _c;
|
|
3077
3075
|
return __generator(this, function (_d) {
|
|
3078
3076
|
switch (_d.label) {
|
|
@@ -3082,7 +3080,6 @@ var deserializeAws_restJson1UpdateEntityCommandError = function (output, context
|
|
|
3082
3080
|
return [4, parseBody(output.body, context)];
|
|
3083
3081
|
case 1:
|
|
3084
3082
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3085
|
-
errorCode = "UnknownError";
|
|
3086
3083
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
3084
|
_b = errorCode;
|
|
3088
3085
|
switch (_b) {
|
|
@@ -3118,10 +3115,12 @@ var deserializeAws_restJson1UpdateEntityCommandError = function (output, context
|
|
|
3118
3115
|
case 15: throw _d.sent();
|
|
3119
3116
|
case 16:
|
|
3120
3117
|
parsedBody = parsedOutput.body;
|
|
3118
|
+
$metadata = deserializeMetadata(output);
|
|
3119
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3121
3120
|
response = new __BaseException({
|
|
3122
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3121
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3123
3122
|
$fault: "client",
|
|
3124
|
-
$metadata:
|
|
3123
|
+
$metadata: $metadata,
|
|
3125
3124
|
});
|
|
3126
3125
|
throw __decorateServiceException(response, parsedBody);
|
|
3127
3126
|
}
|
|
@@ -3152,7 +3151,7 @@ export var deserializeAws_restJson1UpdateSceneCommand = function (output, contex
|
|
|
3152
3151
|
});
|
|
3153
3152
|
}); };
|
|
3154
3153
|
var deserializeAws_restJson1UpdateSceneCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3155
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3154
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3156
3155
|
var _c;
|
|
3157
3156
|
return __generator(this, function (_d) {
|
|
3158
3157
|
switch (_d.label) {
|
|
@@ -3162,7 +3161,6 @@ var deserializeAws_restJson1UpdateSceneCommandError = function (output, context)
|
|
|
3162
3161
|
return [4, parseBody(output.body, context)];
|
|
3163
3162
|
case 1:
|
|
3164
3163
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3165
|
-
errorCode = "UnknownError";
|
|
3166
3164
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3167
3165
|
_b = errorCode;
|
|
3168
3166
|
switch (_b) {
|
|
@@ -3190,10 +3188,12 @@ var deserializeAws_restJson1UpdateSceneCommandError = function (output, context)
|
|
|
3190
3188
|
case 11: throw _d.sent();
|
|
3191
3189
|
case 12:
|
|
3192
3190
|
parsedBody = parsedOutput.body;
|
|
3191
|
+
$metadata = deserializeMetadata(output);
|
|
3192
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3193
3193
|
response = new __BaseException({
|
|
3194
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3194
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3195
3195
|
$fault: "client",
|
|
3196
|
-
$metadata:
|
|
3196
|
+
$metadata: $metadata,
|
|
3197
3197
|
});
|
|
3198
3198
|
throw __decorateServiceException(response, parsedBody);
|
|
3199
3199
|
}
|
|
@@ -3224,7 +3224,7 @@ export var deserializeAws_restJson1UpdateWorkspaceCommand = function (output, co
|
|
|
3224
3224
|
});
|
|
3225
3225
|
}); };
|
|
3226
3226
|
var deserializeAws_restJson1UpdateWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3227
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3227
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3228
3228
|
var _c;
|
|
3229
3229
|
return __generator(this, function (_d) {
|
|
3230
3230
|
switch (_d.label) {
|
|
@@ -3234,7 +3234,6 @@ var deserializeAws_restJson1UpdateWorkspaceCommandError = function (output, cont
|
|
|
3234
3234
|
return [4, parseBody(output.body, context)];
|
|
3235
3235
|
case 1:
|
|
3236
3236
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3237
|
-
errorCode = "UnknownError";
|
|
3238
3237
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
3238
|
_b = errorCode;
|
|
3240
3239
|
switch (_b) {
|
|
@@ -3266,10 +3265,12 @@ var deserializeAws_restJson1UpdateWorkspaceCommandError = function (output, cont
|
|
|
3266
3265
|
case 13: throw _d.sent();
|
|
3267
3266
|
case 14:
|
|
3268
3267
|
parsedBody = parsedOutput.body;
|
|
3268
|
+
$metadata = deserializeMetadata(output);
|
|
3269
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3269
3270
|
response = new __BaseException({
|
|
3270
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3271
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3271
3272
|
$fault: "client",
|
|
3272
|
-
$metadata:
|
|
3273
|
+
$metadata: $metadata,
|
|
3273
3274
|
});
|
|
3274
3275
|
throw __decorateServiceException(response, parsedBody);
|
|
3275
3276
|
}
|
|
@@ -3396,9 +3397,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3396
3397
|
});
|
|
3397
3398
|
}); };
|
|
3398
3399
|
var serializeAws_restJson1ComponentRequest = function (input, context) {
|
|
3399
|
-
return __assign(__assign(__assign({}, (input.componentTypeId
|
|
3400
|
-
input.componentTypeId !== null && { componentTypeId: input.componentTypeId })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.properties !== undefined &&
|
|
3401
|
-
input.properties !== null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }));
|
|
3400
|
+
return __assign(__assign(__assign({}, (input.componentTypeId != null && { componentTypeId: input.componentTypeId })), (input.description != null && { description: input.description })), (input.properties != null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }));
|
|
3402
3401
|
};
|
|
3403
3402
|
var serializeAws_restJson1ComponentsMapRequest = function (input, context) {
|
|
3404
3403
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3411,11 +3410,9 @@ var serializeAws_restJson1ComponentsMapRequest = function (input, context) {
|
|
|
3411
3410
|
}, {});
|
|
3412
3411
|
};
|
|
3413
3412
|
var serializeAws_restJson1ComponentUpdateRequest = function (input, context) {
|
|
3414
|
-
return __assign(__assign(__assign(__assign({}, (input.componentTypeId
|
|
3415
|
-
input.componentTypeId !== null && { componentTypeId: input.componentTypeId })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.propertyUpdates !== undefined &&
|
|
3416
|
-
input.propertyUpdates !== null && {
|
|
3413
|
+
return __assign(__assign(__assign(__assign({}, (input.componentTypeId != null && { componentTypeId: input.componentTypeId })), (input.description != null && { description: input.description })), (input.propertyUpdates != null && {
|
|
3417
3414
|
propertyUpdates: serializeAws_restJson1PropertyRequests(input.propertyUpdates, context),
|
|
3418
|
-
})), (input.updateType
|
|
3415
|
+
})), (input.updateType != null && { updateType: input.updateType }));
|
|
3419
3416
|
};
|
|
3420
3417
|
var serializeAws_restJson1ComponentUpdatesMapRequest = function (input, context) {
|
|
3421
3418
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3438,25 +3435,19 @@ var serializeAws_restJson1Configuration = function (input, context) {
|
|
|
3438
3435
|
}, {});
|
|
3439
3436
|
};
|
|
3440
3437
|
var serializeAws_restJson1DataConnector = function (input, context) {
|
|
3441
|
-
return __assign(__assign({}, (input.isNative
|
|
3442
|
-
input.lambda !== null && { lambda: serializeAws_restJson1LambdaFunction(input.lambda, context) }));
|
|
3438
|
+
return __assign(__assign({}, (input.isNative != null && { isNative: input.isNative })), (input.lambda != null && { lambda: serializeAws_restJson1LambdaFunction(input.lambda, context) }));
|
|
3443
3439
|
};
|
|
3444
3440
|
var serializeAws_restJson1DataType = function (input, context) {
|
|
3445
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.allowedValues
|
|
3446
|
-
input.allowedValues !== null && {
|
|
3441
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.allowedValues != null && {
|
|
3447
3442
|
allowedValues: serializeAws_restJson1DataValueList(input.allowedValues, context),
|
|
3448
|
-
})), (input.nestedType
|
|
3449
|
-
|
|
3450
|
-
|
|
3443
|
+
})), (input.nestedType != null && { nestedType: serializeAws_restJson1DataType(input.nestedType, context) })), (input.relationship != null && {
|
|
3444
|
+
relationship: serializeAws_restJson1Relationship(input.relationship, context),
|
|
3445
|
+
})), (input.type != null && { type: input.type })), (input.unitOfMeasure != null && { unitOfMeasure: input.unitOfMeasure }));
|
|
3451
3446
|
};
|
|
3452
3447
|
var serializeAws_restJson1DataValue = function (input, context) {
|
|
3453
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.booleanValue
|
|
3454
|
-
input.doubleValue !== null && { doubleValue: __serializeFloat(input.doubleValue) })), (input.expression !== undefined && input.expression !== null && { expression: input.expression })), (input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue })), (input.listValue !== undefined &&
|
|
3455
|
-
input.listValue !== null && { listValue: serializeAws_restJson1DataValueList(input.listValue, context) })), (input.longValue !== undefined && input.longValue !== null && { longValue: input.longValue })), (input.mapValue !== undefined &&
|
|
3456
|
-
input.mapValue !== null && { mapValue: serializeAws_restJson1DataValueMap(input.mapValue, context) })), (input.relationshipValue !== undefined &&
|
|
3457
|
-
input.relationshipValue !== null && {
|
|
3448
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.booleanValue != null && { booleanValue: input.booleanValue })), (input.doubleValue != null && { doubleValue: __serializeFloat(input.doubleValue) })), (input.expression != null && { expression: input.expression })), (input.integerValue != null && { integerValue: input.integerValue })), (input.listValue != null && { listValue: serializeAws_restJson1DataValueList(input.listValue, context) })), (input.longValue != null && { longValue: input.longValue })), (input.mapValue != null && { mapValue: serializeAws_restJson1DataValueMap(input.mapValue, context) })), (input.relationshipValue != null && {
|
|
3458
3449
|
relationshipValue: serializeAws_restJson1RelationshipValue(input.relationshipValue, context),
|
|
3459
|
-
})), (input.stringValue
|
|
3450
|
+
})), (input.stringValue != null && { stringValue: input.stringValue }));
|
|
3460
3451
|
};
|
|
3461
3452
|
var serializeAws_restJson1DataValueList = function (input, context) {
|
|
3462
3453
|
return input
|
|
@@ -3479,10 +3470,9 @@ var serializeAws_restJson1DataValueMap = function (input, context) {
|
|
|
3479
3470
|
}, {});
|
|
3480
3471
|
};
|
|
3481
3472
|
var serializeAws_restJson1EntityPropertyReference = function (input, context) {
|
|
3482
|
-
return __assign(__assign(__assign(__assign({}, (input.componentName
|
|
3483
|
-
input.externalIdProperty !== null && {
|
|
3473
|
+
return __assign(__assign(__assign(__assign({}, (input.componentName != null && { componentName: input.componentName })), (input.entityId != null && { entityId: input.entityId })), (input.externalIdProperty != null && {
|
|
3484
3474
|
externalIdProperty: serializeAws_restJson1ExternalIdProperty(input.externalIdProperty, context),
|
|
3485
|
-
})), (input.propertyName
|
|
3475
|
+
})), (input.propertyName != null && { propertyName: input.propertyName }));
|
|
3486
3476
|
};
|
|
3487
3477
|
var serializeAws_restJson1Entries = function (input, context) {
|
|
3488
3478
|
return input
|
|
@@ -3515,13 +3505,11 @@ var serializeAws_restJson1ExternalIdProperty = function (input, context) {
|
|
|
3515
3505
|
}, {});
|
|
3516
3506
|
};
|
|
3517
3507
|
var serializeAws_restJson1FunctionRequest = function (input, context) {
|
|
3518
|
-
return __assign(__assign(__assign({}, (input.implementedBy
|
|
3519
|
-
input.implementedBy !== null && {
|
|
3508
|
+
return __assign(__assign(__assign({}, (input.implementedBy != null && {
|
|
3520
3509
|
implementedBy: serializeAws_restJson1DataConnector(input.implementedBy, context),
|
|
3521
|
-
})), (input.requiredProperties
|
|
3522
|
-
input.requiredProperties !== null && {
|
|
3510
|
+
})), (input.requiredProperties != null && {
|
|
3523
3511
|
requiredProperties: serializeAws_restJson1RequiredProperties(input.requiredProperties, context),
|
|
3524
|
-
})), (input.scope
|
|
3512
|
+
})), (input.scope != null && { scope: input.scope }));
|
|
3525
3513
|
};
|
|
3526
3514
|
var serializeAws_restJson1FunctionsRequest = function (input, context) {
|
|
3527
3515
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3534,12 +3522,10 @@ var serializeAws_restJson1FunctionsRequest = function (input, context) {
|
|
|
3534
3522
|
}, {});
|
|
3535
3523
|
};
|
|
3536
3524
|
var serializeAws_restJson1InterpolationParameters = function (input, context) {
|
|
3537
|
-
return __assign(__assign({}, (input.interpolationType
|
|
3538
|
-
input.interpolationType !== null && { interpolationType: input.interpolationType })), (input.intervalInSeconds !== undefined &&
|
|
3539
|
-
input.intervalInSeconds !== null && { intervalInSeconds: input.intervalInSeconds }));
|
|
3525
|
+
return __assign(__assign({}, (input.interpolationType != null && { interpolationType: input.interpolationType })), (input.intervalInSeconds != null && { intervalInSeconds: input.intervalInSeconds }));
|
|
3540
3526
|
};
|
|
3541
3527
|
var serializeAws_restJson1LambdaFunction = function (input, context) {
|
|
3542
|
-
return __assign({}, (input.arn
|
|
3528
|
+
return __assign({}, (input.arn != null && { arn: input.arn }));
|
|
3543
3529
|
};
|
|
3544
3530
|
var serializeAws_restJson1ListComponentTypesFilter = function (input, context) {
|
|
3545
3531
|
return ListComponentTypesFilter.visit(input, {
|
|
@@ -3578,18 +3564,12 @@ var serializeAws_restJson1ListEntitiesFilters = function (input, context) {
|
|
|
3578
3564
|
});
|
|
3579
3565
|
};
|
|
3580
3566
|
var serializeAws_restJson1ParentEntityUpdateRequest = function (input, context) {
|
|
3581
|
-
return __assign(__assign({}, (input.parentEntityId
|
|
3582
|
-
input.parentEntityId !== null && { parentEntityId: input.parentEntityId })), (input.updateType !== undefined && input.updateType !== null && { updateType: input.updateType }));
|
|
3567
|
+
return __assign(__assign({}, (input.parentEntityId != null && { parentEntityId: input.parentEntityId })), (input.updateType != null && { updateType: input.updateType }));
|
|
3583
3568
|
};
|
|
3584
3569
|
var serializeAws_restJson1PropertyDefinitionRequest = function (input, context) {
|
|
3585
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.configuration
|
|
3586
|
-
input.configuration !== null && {
|
|
3570
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.configuration != null && {
|
|
3587
3571
|
configuration: serializeAws_restJson1Configuration(input.configuration, context),
|
|
3588
|
-
})), (input.dataType
|
|
3589
|
-
input.dataType !== null && { dataType: serializeAws_restJson1DataType(input.dataType, context) })), (input.defaultValue !== undefined &&
|
|
3590
|
-
input.defaultValue !== null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) })), (input.isExternalId !== undefined && input.isExternalId !== null && { isExternalId: input.isExternalId })), (input.isRequiredInEntity !== undefined &&
|
|
3591
|
-
input.isRequiredInEntity !== null && { isRequiredInEntity: input.isRequiredInEntity })), (input.isStoredExternally !== undefined &&
|
|
3592
|
-
input.isStoredExternally !== null && { isStoredExternally: input.isStoredExternally })), (input.isTimeSeries !== undefined && input.isTimeSeries !== null && { isTimeSeries: input.isTimeSeries }));
|
|
3572
|
+
})), (input.dataType != null && { dataType: serializeAws_restJson1DataType(input.dataType, context) })), (input.defaultValue != null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) })), (input.isExternalId != null && { isExternalId: input.isExternalId })), (input.isRequiredInEntity != null && { isRequiredInEntity: input.isRequiredInEntity })), (input.isStoredExternally != null && { isStoredExternally: input.isStoredExternally })), (input.isTimeSeries != null && { isTimeSeries: input.isTimeSeries }));
|
|
3593
3573
|
};
|
|
3594
3574
|
var serializeAws_restJson1PropertyDefinitionsRequest = function (input, context) {
|
|
3595
3575
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3602,8 +3582,7 @@ var serializeAws_restJson1PropertyDefinitionsRequest = function (input, context)
|
|
|
3602
3582
|
}, {});
|
|
3603
3583
|
};
|
|
3604
3584
|
var serializeAws_restJson1PropertyFilter = function (input, context) {
|
|
3605
|
-
return __assign(__assign(__assign({}, (input.operator
|
|
3606
|
-
input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }));
|
|
3585
|
+
return __assign(__assign(__assign({}, (input.operator != null && { operator: input.operator })), (input.propertyName != null && { propertyName: input.propertyName })), (input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }));
|
|
3607
3586
|
};
|
|
3608
3587
|
var serializeAws_restJson1PropertyFilters = function (input, context) {
|
|
3609
3588
|
return input
|
|
@@ -3616,11 +3595,9 @@ var serializeAws_restJson1PropertyFilters = function (input, context) {
|
|
|
3616
3595
|
});
|
|
3617
3596
|
};
|
|
3618
3597
|
var serializeAws_restJson1PropertyRequest = function (input, context) {
|
|
3619
|
-
return __assign(__assign(__assign({}, (input.definition
|
|
3620
|
-
input.definition !== null && {
|
|
3598
|
+
return __assign(__assign(__assign({}, (input.definition != null && {
|
|
3621
3599
|
definition: serializeAws_restJson1PropertyDefinitionRequest(input.definition, context),
|
|
3622
|
-
})), (input.updateType
|
|
3623
|
-
input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }));
|
|
3600
|
+
})), (input.updateType != null && { updateType: input.updateType })), (input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }));
|
|
3624
3601
|
};
|
|
3625
3602
|
var serializeAws_restJson1PropertyRequests = function (input, context) {
|
|
3626
3603
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3633,16 +3610,12 @@ var serializeAws_restJson1PropertyRequests = function (input, context) {
|
|
|
3633
3610
|
}, {});
|
|
3634
3611
|
};
|
|
3635
3612
|
var serializeAws_restJson1PropertyValue = function (input, context) {
|
|
3636
|
-
return __assign(__assign(__assign({}, (input.time
|
|
3637
|
-
input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.value !== undefined &&
|
|
3638
|
-
input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }));
|
|
3613
|
+
return __assign(__assign(__assign({}, (input.time != null && { time: input.time })), (input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }));
|
|
3639
3614
|
};
|
|
3640
3615
|
var serializeAws_restJson1PropertyValueEntry = function (input, context) {
|
|
3641
|
-
return __assign(__assign({}, (input.entityPropertyReference
|
|
3642
|
-
input.entityPropertyReference !== null && {
|
|
3616
|
+
return __assign(__assign({}, (input.entityPropertyReference != null && {
|
|
3643
3617
|
entityPropertyReference: serializeAws_restJson1EntityPropertyReference(input.entityPropertyReference, context),
|
|
3644
|
-
})), (input.propertyValues
|
|
3645
|
-
input.propertyValues !== null && {
|
|
3618
|
+
})), (input.propertyValues != null && {
|
|
3646
3619
|
propertyValues: serializeAws_restJson1PropertyValues(input.propertyValues, context),
|
|
3647
3620
|
}));
|
|
3648
3621
|
};
|
|
@@ -3657,14 +3630,10 @@ var serializeAws_restJson1PropertyValues = function (input, context) {
|
|
|
3657
3630
|
});
|
|
3658
3631
|
};
|
|
3659
3632
|
var serializeAws_restJson1Relationship = function (input, context) {
|
|
3660
|
-
return __assign(__assign({}, (input.relationshipType
|
|
3661
|
-
input.relationshipType !== null && { relationshipType: input.relationshipType })), (input.targetComponentTypeId !== undefined &&
|
|
3662
|
-
input.targetComponentTypeId !== null && { targetComponentTypeId: input.targetComponentTypeId }));
|
|
3633
|
+
return __assign(__assign({}, (input.relationshipType != null && { relationshipType: input.relationshipType })), (input.targetComponentTypeId != null && { targetComponentTypeId: input.targetComponentTypeId }));
|
|
3663
3634
|
};
|
|
3664
3635
|
var serializeAws_restJson1RelationshipValue = function (input, context) {
|
|
3665
|
-
return __assign(__assign({}, (input.targetComponentName
|
|
3666
|
-
input.targetComponentName !== null && { targetComponentName: input.targetComponentName })), (input.targetEntityId !== undefined &&
|
|
3667
|
-
input.targetEntityId !== null && { targetEntityId: input.targetEntityId }));
|
|
3636
|
+
return __assign(__assign({}, (input.targetComponentName != null && { targetComponentName: input.targetComponentName })), (input.targetEntityId != null && { targetEntityId: input.targetEntityId }));
|
|
3668
3637
|
};
|
|
3669
3638
|
var serializeAws_restJson1RequiredProperties = function (input, context) {
|
|
3670
3639
|
return input
|
|
@@ -3708,18 +3677,14 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
3708
3677
|
};
|
|
3709
3678
|
var deserializeAws_restJson1BatchPutPropertyError = function (output, context) {
|
|
3710
3679
|
return {
|
|
3711
|
-
entry: output.entry
|
|
3712
|
-
? deserializeAws_restJson1PropertyValueEntry(output.entry, context)
|
|
3713
|
-
: undefined,
|
|
3680
|
+
entry: output.entry != null ? deserializeAws_restJson1PropertyValueEntry(output.entry, context) : undefined,
|
|
3714
3681
|
errorCode: __expectString(output.errorCode),
|
|
3715
3682
|
errorMessage: __expectString(output.errorMessage),
|
|
3716
3683
|
};
|
|
3717
3684
|
};
|
|
3718
3685
|
var deserializeAws_restJson1BatchPutPropertyErrorEntry = function (output, context) {
|
|
3719
3686
|
return {
|
|
3720
|
-
errors: output.errors
|
|
3721
|
-
? deserializeAws_restJson1Errors(output.errors, context)
|
|
3722
|
-
: undefined,
|
|
3687
|
+
errors: output.errors != null ? deserializeAws_restJson1Errors(output.errors, context) : undefined,
|
|
3723
3688
|
};
|
|
3724
3689
|
};
|
|
3725
3690
|
var deserializeAws_restJson1ComponentResponse = function (output, context) {
|
|
@@ -3728,12 +3693,8 @@ var deserializeAws_restJson1ComponentResponse = function (output, context) {
|
|
|
3728
3693
|
componentTypeId: __expectString(output.componentTypeId),
|
|
3729
3694
|
definedIn: __expectString(output.definedIn),
|
|
3730
3695
|
description: __expectString(output.description),
|
|
3731
|
-
properties: output.properties
|
|
3732
|
-
|
|
3733
|
-
: undefined,
|
|
3734
|
-
status: output.status !== undefined && output.status !== null
|
|
3735
|
-
? deserializeAws_restJson1Status(output.status, context)
|
|
3736
|
-
: undefined,
|
|
3696
|
+
properties: output.properties != null ? deserializeAws_restJson1PropertyResponses(output.properties, context) : undefined,
|
|
3697
|
+
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
3737
3698
|
};
|
|
3738
3699
|
};
|
|
3739
3700
|
var deserializeAws_restJson1ComponentsMap = function (output, context) {
|
|
@@ -3761,14 +3722,12 @@ var deserializeAws_restJson1ComponentTypeSummary = function (output, context) {
|
|
|
3761
3722
|
return {
|
|
3762
3723
|
arn: __expectString(output.arn),
|
|
3763
3724
|
componentTypeId: __expectString(output.componentTypeId),
|
|
3764
|
-
creationDateTime: output.creationDateTime
|
|
3725
|
+
creationDateTime: output.creationDateTime != null
|
|
3765
3726
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
3766
3727
|
: undefined,
|
|
3767
3728
|
description: __expectString(output.description),
|
|
3768
|
-
status: output.status
|
|
3769
|
-
|
|
3770
|
-
: undefined,
|
|
3771
|
-
updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
|
|
3729
|
+
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
3730
|
+
updateDateTime: output.updateDateTime != null
|
|
3772
3731
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3773
3732
|
: undefined,
|
|
3774
3733
|
};
|
|
@@ -3786,22 +3745,14 @@ var deserializeAws_restJson1Configuration = function (output, context) {
|
|
|
3786
3745
|
var deserializeAws_restJson1DataConnector = function (output, context) {
|
|
3787
3746
|
return {
|
|
3788
3747
|
isNative: __expectBoolean(output.isNative),
|
|
3789
|
-
lambda: output.lambda
|
|
3790
|
-
? deserializeAws_restJson1LambdaFunction(output.lambda, context)
|
|
3791
|
-
: undefined,
|
|
3748
|
+
lambda: output.lambda != null ? deserializeAws_restJson1LambdaFunction(output.lambda, context) : undefined,
|
|
3792
3749
|
};
|
|
3793
3750
|
};
|
|
3794
3751
|
var deserializeAws_restJson1DataType = function (output, context) {
|
|
3795
3752
|
return {
|
|
3796
|
-
allowedValues: output.allowedValues
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
nestedType: output.nestedType !== undefined && output.nestedType !== null
|
|
3800
|
-
? deserializeAws_restJson1DataType(output.nestedType, context)
|
|
3801
|
-
: undefined,
|
|
3802
|
-
relationship: output.relationship !== undefined && output.relationship !== null
|
|
3803
|
-
? deserializeAws_restJson1Relationship(output.relationship, context)
|
|
3804
|
-
: undefined,
|
|
3753
|
+
allowedValues: output.allowedValues != null ? deserializeAws_restJson1DataValueList(output.allowedValues, context) : undefined,
|
|
3754
|
+
nestedType: output.nestedType != null ? deserializeAws_restJson1DataType(output.nestedType, context) : undefined,
|
|
3755
|
+
relationship: output.relationship != null ? deserializeAws_restJson1Relationship(output.relationship, context) : undefined,
|
|
3805
3756
|
type: __expectString(output.type),
|
|
3806
3757
|
unitOfMeasure: __expectString(output.unitOfMeasure),
|
|
3807
3758
|
};
|
|
@@ -3812,14 +3763,10 @@ var deserializeAws_restJson1DataValue = function (output, context) {
|
|
|
3812
3763
|
doubleValue: __limitedParseDouble(output.doubleValue),
|
|
3813
3764
|
expression: __expectString(output.expression),
|
|
3814
3765
|
integerValue: __expectInt32(output.integerValue),
|
|
3815
|
-
listValue: output.listValue
|
|
3816
|
-
? deserializeAws_restJson1DataValueList(output.listValue, context)
|
|
3817
|
-
: undefined,
|
|
3766
|
+
listValue: output.listValue != null ? deserializeAws_restJson1DataValueList(output.listValue, context) : undefined,
|
|
3818
3767
|
longValue: __expectLong(output.longValue),
|
|
3819
|
-
mapValue: output.mapValue
|
|
3820
|
-
|
|
3821
|
-
: undefined,
|
|
3822
|
-
relationshipValue: output.relationshipValue !== undefined && output.relationshipValue !== null
|
|
3768
|
+
mapValue: output.mapValue != null ? deserializeAws_restJson1DataValueMap(output.mapValue, context) : undefined,
|
|
3769
|
+
relationshipValue: output.relationshipValue != null
|
|
3823
3770
|
? deserializeAws_restJson1RelationshipValue(output.relationshipValue, context)
|
|
3824
3771
|
: undefined,
|
|
3825
3772
|
stringValue: __expectString(output.stringValue),
|
|
@@ -3850,7 +3797,7 @@ var deserializeAws_restJson1EntityPropertyReference = function (output, context)
|
|
|
3850
3797
|
return {
|
|
3851
3798
|
componentName: __expectString(output.componentName),
|
|
3852
3799
|
entityId: __expectString(output.entityId),
|
|
3853
|
-
externalIdProperty: output.externalIdProperty
|
|
3800
|
+
externalIdProperty: output.externalIdProperty != null
|
|
3854
3801
|
? deserializeAws_restJson1ExternalIdProperty(output.externalIdProperty, context)
|
|
3855
3802
|
: undefined,
|
|
3856
3803
|
propertyName: __expectString(output.propertyName),
|
|
@@ -3870,7 +3817,7 @@ var deserializeAws_restJson1EntitySummaries = function (output, context) {
|
|
|
3870
3817
|
var deserializeAws_restJson1EntitySummary = function (output, context) {
|
|
3871
3818
|
return {
|
|
3872
3819
|
arn: __expectString(output.arn),
|
|
3873
|
-
creationDateTime: output.creationDateTime
|
|
3820
|
+
creationDateTime: output.creationDateTime != null
|
|
3874
3821
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
3875
3822
|
: undefined,
|
|
3876
3823
|
description: __expectString(output.description),
|
|
@@ -3878,10 +3825,8 @@ var deserializeAws_restJson1EntitySummary = function (output, context) {
|
|
|
3878
3825
|
entityName: __expectString(output.entityName),
|
|
3879
3826
|
hasChildEntities: __expectBoolean(output.hasChildEntities),
|
|
3880
3827
|
parentEntityId: __expectString(output.parentEntityId),
|
|
3881
|
-
status: output.status
|
|
3882
|
-
|
|
3883
|
-
: undefined,
|
|
3884
|
-
updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
|
|
3828
|
+
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
3829
|
+
updateDateTime: output.updateDateTime != null
|
|
3885
3830
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3886
3831
|
: undefined,
|
|
3887
3832
|
};
|
|
@@ -3937,11 +3882,9 @@ var deserializeAws_restJson1ExternalIdProperty = function (output, context) {
|
|
|
3937
3882
|
};
|
|
3938
3883
|
var deserializeAws_restJson1FunctionResponse = function (output, context) {
|
|
3939
3884
|
return {
|
|
3940
|
-
implementedBy: output.implementedBy
|
|
3941
|
-
? deserializeAws_restJson1DataConnector(output.implementedBy, context)
|
|
3942
|
-
: undefined,
|
|
3885
|
+
implementedBy: output.implementedBy != null ? deserializeAws_restJson1DataConnector(output.implementedBy, context) : undefined,
|
|
3943
3886
|
isInherited: __expectBoolean(output.isInherited),
|
|
3944
|
-
requiredProperties: output.requiredProperties
|
|
3887
|
+
requiredProperties: output.requiredProperties != null
|
|
3945
3888
|
? deserializeAws_restJson1RequiredProperties(output.requiredProperties, context)
|
|
3946
3889
|
: undefined,
|
|
3947
3890
|
scope: __expectString(output.scope),
|
|
@@ -3964,15 +3907,9 @@ var deserializeAws_restJson1LambdaFunction = function (output, context) {
|
|
|
3964
3907
|
};
|
|
3965
3908
|
var deserializeAws_restJson1PropertyDefinitionResponse = function (output, context) {
|
|
3966
3909
|
return {
|
|
3967
|
-
configuration: output.configuration
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
dataType: output.dataType !== undefined && output.dataType !== null
|
|
3971
|
-
? deserializeAws_restJson1DataType(output.dataType, context)
|
|
3972
|
-
: undefined,
|
|
3973
|
-
defaultValue: output.defaultValue !== undefined && output.defaultValue !== null
|
|
3974
|
-
? deserializeAws_restJson1DataValue(output.defaultValue, context)
|
|
3975
|
-
: undefined,
|
|
3910
|
+
configuration: output.configuration != null ? deserializeAws_restJson1Configuration(output.configuration, context) : undefined,
|
|
3911
|
+
dataType: output.dataType != null ? deserializeAws_restJson1DataType(output.dataType, context) : undefined,
|
|
3912
|
+
defaultValue: output.defaultValue != null ? deserializeAws_restJson1DataValue(output.defaultValue, context) : undefined,
|
|
3976
3913
|
isExternalId: __expectBoolean(output.isExternalId),
|
|
3977
3914
|
isFinal: __expectBoolean(output.isFinal),
|
|
3978
3915
|
isImported: __expectBoolean(output.isImported),
|
|
@@ -3994,12 +3931,10 @@ var deserializeAws_restJson1PropertyDefinitionsResponse = function (output, cont
|
|
|
3994
3931
|
};
|
|
3995
3932
|
var deserializeAws_restJson1PropertyLatestValue = function (output, context) {
|
|
3996
3933
|
return {
|
|
3997
|
-
propertyReference: output.propertyReference
|
|
3934
|
+
propertyReference: output.propertyReference != null
|
|
3998
3935
|
? deserializeAws_restJson1EntityPropertyReference(output.propertyReference, context)
|
|
3999
3936
|
: undefined,
|
|
4000
|
-
propertyValue: output.propertyValue
|
|
4001
|
-
? deserializeAws_restJson1DataValue(output.propertyValue, context)
|
|
4002
|
-
: undefined,
|
|
3937
|
+
propertyValue: output.propertyValue != null ? deserializeAws_restJson1DataValue(output.propertyValue, context) : undefined,
|
|
4003
3938
|
};
|
|
4004
3939
|
};
|
|
4005
3940
|
var deserializeAws_restJson1PropertyLatestValueMap = function (output, context) {
|
|
@@ -4014,12 +3949,10 @@ var deserializeAws_restJson1PropertyLatestValueMap = function (output, context)
|
|
|
4014
3949
|
};
|
|
4015
3950
|
var deserializeAws_restJson1PropertyResponse = function (output, context) {
|
|
4016
3951
|
return {
|
|
4017
|
-
definition: output.definition
|
|
3952
|
+
definition: output.definition != null
|
|
4018
3953
|
? deserializeAws_restJson1PropertyDefinitionResponse(output.definition, context)
|
|
4019
3954
|
: undefined,
|
|
4020
|
-
value: output.value
|
|
4021
|
-
? deserializeAws_restJson1DataValue(output.value, context)
|
|
4022
|
-
: undefined,
|
|
3955
|
+
value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
|
|
4023
3956
|
};
|
|
4024
3957
|
};
|
|
4025
3958
|
var deserializeAws_restJson1PropertyResponses = function (output, context) {
|
|
@@ -4035,32 +3968,26 @@ var deserializeAws_restJson1PropertyResponses = function (output, context) {
|
|
|
4035
3968
|
var deserializeAws_restJson1PropertyValue = function (output, context) {
|
|
4036
3969
|
return {
|
|
4037
3970
|
time: __expectString(output.time),
|
|
4038
|
-
timestamp: output.timestamp
|
|
4039
|
-
|
|
4040
|
-
: undefined,
|
|
4041
|
-
value: output.value !== undefined && output.value !== null
|
|
4042
|
-
? deserializeAws_restJson1DataValue(output.value, context)
|
|
4043
|
-
: undefined,
|
|
3971
|
+
timestamp: output.timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp))) : undefined,
|
|
3972
|
+
value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
|
|
4044
3973
|
};
|
|
4045
3974
|
};
|
|
4046
3975
|
var deserializeAws_restJson1PropertyValueEntry = function (output, context) {
|
|
4047
3976
|
return {
|
|
4048
|
-
entityPropertyReference: output.entityPropertyReference
|
|
3977
|
+
entityPropertyReference: output.entityPropertyReference != null
|
|
4049
3978
|
? deserializeAws_restJson1EntityPropertyReference(output.entityPropertyReference, context)
|
|
4050
3979
|
: undefined,
|
|
4051
|
-
propertyValues: output.propertyValues
|
|
3980
|
+
propertyValues: output.propertyValues != null
|
|
4052
3981
|
? deserializeAws_restJson1PropertyValues(output.propertyValues, context)
|
|
4053
3982
|
: undefined,
|
|
4054
3983
|
};
|
|
4055
3984
|
};
|
|
4056
3985
|
var deserializeAws_restJson1PropertyValueHistory = function (output, context) {
|
|
4057
3986
|
return {
|
|
4058
|
-
entityPropertyReference: output.entityPropertyReference
|
|
3987
|
+
entityPropertyReference: output.entityPropertyReference != null
|
|
4059
3988
|
? deserializeAws_restJson1EntityPropertyReference(output.entityPropertyReference, context)
|
|
4060
3989
|
: undefined,
|
|
4061
|
-
values: output.values
|
|
4062
|
-
? deserializeAws_restJson1Values(output.values, context)
|
|
4063
|
-
: undefined,
|
|
3990
|
+
values: output.values != null ? deserializeAws_restJson1Values(output.values, context) : undefined,
|
|
4064
3991
|
};
|
|
4065
3992
|
};
|
|
4066
3993
|
var deserializeAws_restJson1PropertyValueList = function (output, context) {
|
|
@@ -4134,21 +4061,19 @@ var deserializeAws_restJson1SceneSummary = function (output, context) {
|
|
|
4134
4061
|
return {
|
|
4135
4062
|
arn: __expectString(output.arn),
|
|
4136
4063
|
contentLocation: __expectString(output.contentLocation),
|
|
4137
|
-
creationDateTime: output.creationDateTime
|
|
4064
|
+
creationDateTime: output.creationDateTime != null
|
|
4138
4065
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
4139
4066
|
: undefined,
|
|
4140
4067
|
description: __expectString(output.description),
|
|
4141
4068
|
sceneId: __expectString(output.sceneId),
|
|
4142
|
-
updateDateTime: output.updateDateTime
|
|
4069
|
+
updateDateTime: output.updateDateTime != null
|
|
4143
4070
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
4144
4071
|
: undefined,
|
|
4145
4072
|
};
|
|
4146
4073
|
};
|
|
4147
4074
|
var deserializeAws_restJson1Status = function (output, context) {
|
|
4148
4075
|
return {
|
|
4149
|
-
error: output.error
|
|
4150
|
-
? deserializeAws_restJson1ErrorDetails(output.error, context)
|
|
4151
|
-
: undefined,
|
|
4076
|
+
error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
|
|
4152
4077
|
state: __expectString(output.state),
|
|
4153
4078
|
};
|
|
4154
4079
|
};
|
|
@@ -4187,11 +4112,11 @@ var deserializeAws_restJson1WorkspaceSummaries = function (output, context) {
|
|
|
4187
4112
|
var deserializeAws_restJson1WorkspaceSummary = function (output, context) {
|
|
4188
4113
|
return {
|
|
4189
4114
|
arn: __expectString(output.arn),
|
|
4190
|
-
creationDateTime: output.creationDateTime
|
|
4115
|
+
creationDateTime: output.creationDateTime != null
|
|
4191
4116
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
4192
4117
|
: undefined,
|
|
4193
4118
|
description: __expectString(output.description),
|
|
4194
|
-
updateDateTime: output.updateDateTime
|
|
4119
|
+
updateDateTime: output.updateDateTime != null
|
|
4195
4120
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
4196
4121
|
: undefined,
|
|
4197
4122
|
workspaceId: __expectString(output.workspaceId),
|
|
@@ -4253,5 +4178,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4253
4178
|
if (data["__type"] !== undefined) {
|
|
4254
4179
|
return sanitizeErrorCode(data["__type"]);
|
|
4255
4180
|
}
|
|
4256
|
-
return "";
|
|
4257
4181
|
};
|