@aws-sdk/client-iotsitewise 3.121.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +281 -460
- package/dist-es/protocols/Aws_restJson1.js +176 -355
- package/package.json +27 -27
|
@@ -26,7 +26,7 @@ export var serializeAws_restJson1AssociateAssetsCommand = function (input, conte
|
|
|
26
26
|
else {
|
|
27
27
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
28
28
|
}
|
|
29
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.childAssetId
|
|
29
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.childAssetId != null && { childAssetId: input.childAssetId })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.hierarchyId != null && { hierarchyId: input.hierarchyId })));
|
|
30
30
|
return [4, context.endpoint()];
|
|
31
31
|
case 2:
|
|
32
32
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -108,8 +108,7 @@ export var serializeAws_restJson1BatchAssociateProjectAssetsCommand = function (
|
|
|
108
108
|
else {
|
|
109
109
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
110
110
|
}
|
|
111
|
-
body = JSON.stringify(__assign(__assign({}, (input.assetIds !==
|
|
112
|
-
input.assetIds !== null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
111
|
+
body = JSON.stringify(__assign(__assign({}, (input.assetIds != null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
113
112
|
return [4, context.endpoint()];
|
|
114
113
|
case 2:
|
|
115
114
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -153,8 +152,7 @@ export var serializeAws_restJson1BatchDisassociateProjectAssetsCommand = functio
|
|
|
153
152
|
else {
|
|
154
153
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
155
154
|
}
|
|
156
|
-
body = JSON.stringify(__assign(__assign({}, (input.assetIds !==
|
|
157
|
-
input.assetIds !== null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
155
|
+
body = JSON.stringify(__assign(__assign({}, (input.assetIds != null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
158
156
|
return [4, context.endpoint()];
|
|
159
157
|
case 2:
|
|
160
158
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -187,10 +185,9 @@ export var serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = functi
|
|
|
187
185
|
"content-type": "application/json",
|
|
188
186
|
};
|
|
189
187
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/batch/aggregates";
|
|
190
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.entries
|
|
191
|
-
input.entries !== null && {
|
|
188
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.entries != null && {
|
|
192
189
|
entries: serializeAws_restJson1BatchGetAssetPropertyAggregatesEntries(input.entries, context),
|
|
193
|
-
})), (input.maxResults
|
|
190
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
194
191
|
return [4, context.endpoint()];
|
|
195
192
|
case 2:
|
|
196
193
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -223,10 +220,9 @@ export var serializeAws_restJson1BatchGetAssetPropertyValueCommand = function (i
|
|
|
223
220
|
"content-type": "application/json",
|
|
224
221
|
};
|
|
225
222
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/batch/latest";
|
|
226
|
-
body = JSON.stringify(__assign(__assign({}, (input.entries
|
|
227
|
-
input.entries !== null && {
|
|
223
|
+
body = JSON.stringify(__assign(__assign({}, (input.entries != null && {
|
|
228
224
|
entries: serializeAws_restJson1BatchGetAssetPropertyValueEntries(input.entries, context),
|
|
229
|
-
})), (input.nextToken
|
|
225
|
+
})), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
230
226
|
return [4, context.endpoint()];
|
|
231
227
|
case 2:
|
|
232
228
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -259,10 +255,9 @@ export var serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = func
|
|
|
259
255
|
"content-type": "application/json",
|
|
260
256
|
};
|
|
261
257
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/batch/history";
|
|
262
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.entries
|
|
263
|
-
input.entries !== null && {
|
|
258
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.entries != null && {
|
|
264
259
|
entries: serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries(input.entries, context),
|
|
265
|
-
})), (input.maxResults
|
|
260
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
266
261
|
return [4, context.endpoint()];
|
|
267
262
|
case 2:
|
|
268
263
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -295,8 +290,7 @@ export var serializeAws_restJson1BatchPutAssetPropertyValueCommand = function (i
|
|
|
295
290
|
"content-type": "application/json",
|
|
296
291
|
};
|
|
297
292
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties";
|
|
298
|
-
body = JSON.stringify(__assign({}, (input.entries
|
|
299
|
-
input.entries !== null && {
|
|
293
|
+
body = JSON.stringify(__assign({}, (input.entries != null && {
|
|
300
294
|
entries: serializeAws_restJson1PutAssetPropertyValueEntries(input.entries, context),
|
|
301
295
|
})));
|
|
302
296
|
return [4, context.endpoint()];
|
|
@@ -332,14 +326,11 @@ export var serializeAws_restJson1CreateAccessPolicyCommand = function (input, co
|
|
|
332
326
|
"content-type": "application/json",
|
|
333
327
|
};
|
|
334
328
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies";
|
|
335
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.accessPolicyIdentity
|
|
336
|
-
input.accessPolicyIdentity !== null && {
|
|
329
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.accessPolicyIdentity != null && {
|
|
337
330
|
accessPolicyIdentity: serializeAws_restJson1Identity(input.accessPolicyIdentity, context),
|
|
338
|
-
})), (input.accessPolicyPermission
|
|
339
|
-
input.accessPolicyPermission !== null && { accessPolicyPermission: input.accessPolicyPermission })), (input.accessPolicyResource !== undefined &&
|
|
340
|
-
input.accessPolicyResource !== null && {
|
|
331
|
+
})), (input.accessPolicyPermission != null && { accessPolicyPermission: input.accessPolicyPermission })), (input.accessPolicyResource != null && {
|
|
341
332
|
accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
|
|
342
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags
|
|
333
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
343
334
|
return [4, context.endpoint()];
|
|
344
335
|
case 2:
|
|
345
336
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -373,8 +364,7 @@ export var serializeAws_restJson1CreateAssetCommand = function (input, context)
|
|
|
373
364
|
"content-type": "application/json",
|
|
374
365
|
};
|
|
375
366
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
|
|
376
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.assetDescription !==
|
|
377
|
-
input.assetDescription !== null && { assetDescription: input.assetDescription })), (input.assetModelId !== undefined && input.assetModelId !== null && { assetModelId: input.assetModelId })), (input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
367
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.assetDescription != null && { assetDescription: input.assetDescription })), (input.assetModelId != null && { assetModelId: input.assetModelId })), (input.assetName != null && { assetName: input.assetName })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
378
368
|
return [4, context.endpoint()];
|
|
379
369
|
case 2:
|
|
380
370
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -408,18 +398,13 @@ export var serializeAws_restJson1CreateAssetModelCommand = function (input, cont
|
|
|
408
398
|
"content-type": "application/json",
|
|
409
399
|
};
|
|
410
400
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models";
|
|
411
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetModelCompositeModels
|
|
412
|
-
input.assetModelCompositeModels !== null && {
|
|
401
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetModelCompositeModels != null && {
|
|
413
402
|
assetModelCompositeModels: serializeAws_restJson1AssetModelCompositeModelDefinitions(input.assetModelCompositeModels, context),
|
|
414
|
-
})), (input.assetModelDescription
|
|
415
|
-
input.assetModelDescription !== null && { assetModelDescription: input.assetModelDescription })), (input.assetModelHierarchies !== undefined &&
|
|
416
|
-
input.assetModelHierarchies !== null && {
|
|
403
|
+
})), (input.assetModelDescription != null && { assetModelDescription: input.assetModelDescription })), (input.assetModelHierarchies != null && {
|
|
417
404
|
assetModelHierarchies: serializeAws_restJson1AssetModelHierarchyDefinitions(input.assetModelHierarchies, context),
|
|
418
|
-
})), (input.assetModelName
|
|
419
|
-
input.assetModelName !== null && { assetModelName: input.assetModelName })), (input.assetModelProperties !== undefined &&
|
|
420
|
-
input.assetModelProperties !== null && {
|
|
405
|
+
})), (input.assetModelName != null && { assetModelName: input.assetModelName })), (input.assetModelProperties != null && {
|
|
421
406
|
assetModelProperties: serializeAws_restJson1AssetModelPropertyDefinitions(input.assetModelProperties, context),
|
|
422
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags
|
|
407
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
423
408
|
return [4, context.endpoint()];
|
|
424
409
|
case 2:
|
|
425
410
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -453,9 +438,7 @@ export var serializeAws_restJson1CreateDashboardCommand = function (input, conte
|
|
|
453
438
|
"content-type": "application/json",
|
|
454
439
|
};
|
|
455
440
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards";
|
|
456
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.dashboardDefinition
|
|
457
|
-
input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition })), (input.dashboardDescription !== undefined &&
|
|
458
|
-
input.dashboardDescription !== null && { dashboardDescription: input.dashboardDescription })), (input.dashboardName !== undefined && input.dashboardName !== null && { dashboardName: input.dashboardName })), (input.projectId !== undefined && input.projectId !== null && { projectId: input.projectId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
441
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.dashboardDefinition != null && { dashboardDefinition: input.dashboardDefinition })), (input.dashboardDescription != null && { dashboardDescription: input.dashboardDescription })), (input.dashboardName != null && { dashboardName: input.dashboardName })), (input.projectId != null && { projectId: input.projectId })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
459
442
|
return [4, context.endpoint()];
|
|
460
443
|
case 2:
|
|
461
444
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -488,10 +471,9 @@ export var serializeAws_restJson1CreateGatewayCommand = function (input, context
|
|
|
488
471
|
"content-type": "application/json",
|
|
489
472
|
};
|
|
490
473
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways";
|
|
491
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.gatewayName
|
|
492
|
-
input.gatewayPlatform !== null && {
|
|
474
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.gatewayName != null && { gatewayName: input.gatewayName })), (input.gatewayPlatform != null && {
|
|
493
475
|
gatewayPlatform: serializeAws_restJson1GatewayPlatform(input.gatewayPlatform, context),
|
|
494
|
-
})), (input.tags
|
|
476
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
495
477
|
return [4, context.endpoint()];
|
|
496
478
|
case 2:
|
|
497
479
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -525,15 +507,9 @@ export var serializeAws_restJson1CreatePortalCommand = function (input, context)
|
|
|
525
507
|
"content-type": "application/json",
|
|
526
508
|
};
|
|
527
509
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals";
|
|
528
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarms !==
|
|
529
|
-
input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.notificationSenderEmail !== undefined &&
|
|
530
|
-
input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail })), (input.portalAuthMode !== undefined &&
|
|
531
|
-
input.portalAuthMode !== null && { portalAuthMode: input.portalAuthMode })), (input.portalContactEmail !== undefined &&
|
|
532
|
-
input.portalContactEmail !== null && { portalContactEmail: input.portalContactEmail })), (input.portalDescription !== undefined &&
|
|
533
|
-
input.portalDescription !== null && { portalDescription: input.portalDescription })), (input.portalLogoImageFile !== undefined &&
|
|
534
|
-
input.portalLogoImageFile !== null && {
|
|
510
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarms != null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.notificationSenderEmail != null && { notificationSenderEmail: input.notificationSenderEmail })), (input.portalAuthMode != null && { portalAuthMode: input.portalAuthMode })), (input.portalContactEmail != null && { portalContactEmail: input.portalContactEmail })), (input.portalDescription != null && { portalDescription: input.portalDescription })), (input.portalLogoImageFile != null && {
|
|
535
511
|
portalLogoImageFile: serializeAws_restJson1ImageFile(input.portalLogoImageFile, context),
|
|
536
|
-
})), (input.portalName
|
|
512
|
+
})), (input.portalName != null && { portalName: input.portalName })), (input.roleArn != null && { roleArn: input.roleArn })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
537
513
|
return [4, context.endpoint()];
|
|
538
514
|
case 2:
|
|
539
515
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -567,8 +543,7 @@ export var serializeAws_restJson1CreateProjectCommand = function (input, context
|
|
|
567
543
|
"content-type": "application/json",
|
|
568
544
|
};
|
|
569
545
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects";
|
|
570
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.portalId
|
|
571
|
-
input.projectDescription !== null && { projectDescription: input.projectDescription })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
546
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.portalId != null && { portalId: input.portalId })), (input.projectDescription != null && { projectDescription: input.projectDescription })), (input.projectName != null && { projectName: input.projectName })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
572
547
|
return [4, context.endpoint()];
|
|
573
548
|
case 2:
|
|
574
549
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -1454,7 +1429,7 @@ export var serializeAws_restJson1DisassociateAssetsCommand = function (input, co
|
|
|
1454
1429
|
else {
|
|
1455
1430
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
1456
1431
|
}
|
|
1457
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.childAssetId
|
|
1432
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.childAssetId != null && { childAssetId: input.childAssetId })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.hierarchyId != null && { hierarchyId: input.hierarchyId })));
|
|
1458
1433
|
return [4, context.endpoint()];
|
|
1459
1434
|
case 2:
|
|
1460
1435
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -2073,8 +2048,7 @@ export var serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = func
|
|
|
2073
2048
|
"content-type": "application/json",
|
|
2074
2049
|
};
|
|
2075
2050
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/encryption";
|
|
2076
|
-
body = JSON.stringify(__assign(__assign({}, (input.encryptionType
|
|
2077
|
-
input.encryptionType !== null && { encryptionType: input.encryptionType })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })));
|
|
2051
|
+
body = JSON.stringify(__assign(__assign({}, (input.encryptionType != null && { encryptionType: input.encryptionType })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })));
|
|
2078
2052
|
return [4, context.endpoint()];
|
|
2079
2053
|
case 2:
|
|
2080
2054
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2107,8 +2081,7 @@ export var serializeAws_restJson1PutLoggingOptionsCommand = function (input, con
|
|
|
2107
2081
|
"content-type": "application/json",
|
|
2108
2082
|
};
|
|
2109
2083
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logging";
|
|
2110
|
-
body = JSON.stringify(__assign({}, (input.loggingOptions
|
|
2111
|
-
input.loggingOptions !== null && {
|
|
2084
|
+
body = JSON.stringify(__assign({}, (input.loggingOptions != null && {
|
|
2112
2085
|
loggingOptions: serializeAws_restJson1LoggingOptions(input.loggingOptions, context),
|
|
2113
2086
|
})));
|
|
2114
2087
|
return [4, context.endpoint()];
|
|
@@ -2143,14 +2116,11 @@ export var serializeAws_restJson1PutStorageConfigurationCommand = function (inpu
|
|
|
2143
2116
|
"content-type": "application/json",
|
|
2144
2117
|
};
|
|
2145
2118
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/storage";
|
|
2146
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.disassociatedDataStorage
|
|
2147
|
-
input.disassociatedDataStorage !== null && { disassociatedDataStorage: input.disassociatedDataStorage })), (input.multiLayerStorage !== undefined &&
|
|
2148
|
-
input.multiLayerStorage !== null && {
|
|
2119
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.disassociatedDataStorage != null && { disassociatedDataStorage: input.disassociatedDataStorage })), (input.multiLayerStorage != null && {
|
|
2149
2120
|
multiLayerStorage: serializeAws_restJson1MultiLayerStorage(input.multiLayerStorage, context),
|
|
2150
|
-
})), (input.retentionPeriod
|
|
2151
|
-
input.retentionPeriod !== null && {
|
|
2121
|
+
})), (input.retentionPeriod != null && {
|
|
2152
2122
|
retentionPeriod: serializeAws_restJson1RetentionPeriod(input.retentionPeriod, context),
|
|
2153
|
-
})), (input.storageType
|
|
2123
|
+
})), (input.storageType != null && { storageType: input.storageType })));
|
|
2154
2124
|
return [4, context.endpoint()];
|
|
2155
2125
|
case 2:
|
|
2156
2126
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2184,7 +2154,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
2184
2154
|
};
|
|
2185
2155
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
2186
2156
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
2187
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
2157
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
2188
2158
|
return [4, context.endpoint()];
|
|
2189
2159
|
case 2:
|
|
2190
2160
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2261,12 +2231,9 @@ export var serializeAws_restJson1UpdateAccessPolicyCommand = function (input, co
|
|
|
2261
2231
|
else {
|
|
2262
2232
|
throw new Error("No value provided for input HTTP label: accessPolicyId.");
|
|
2263
2233
|
}
|
|
2264
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.accessPolicyIdentity
|
|
2265
|
-
input.accessPolicyIdentity !== null && {
|
|
2234
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.accessPolicyIdentity != null && {
|
|
2266
2235
|
accessPolicyIdentity: serializeAws_restJson1Identity(input.accessPolicyIdentity, context),
|
|
2267
|
-
})), (input.accessPolicyPermission
|
|
2268
|
-
input.accessPolicyPermission !== null && { accessPolicyPermission: input.accessPolicyPermission })), (input.accessPolicyResource !== undefined &&
|
|
2269
|
-
input.accessPolicyResource !== null && {
|
|
2236
|
+
})), (input.accessPolicyPermission != null && { accessPolicyPermission: input.accessPolicyPermission })), (input.accessPolicyResource != null && {
|
|
2270
2237
|
accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
|
|
2271
2238
|
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
2272
2239
|
return [4, context.endpoint()];
|
|
@@ -2312,8 +2279,7 @@ export var serializeAws_restJson1UpdateAssetCommand = function (input, context)
|
|
|
2312
2279
|
else {
|
|
2313
2280
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
2314
2281
|
}
|
|
2315
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.assetDescription !==
|
|
2316
|
-
input.assetDescription !== null && { assetDescription: input.assetDescription })), (input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
2282
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.assetDescription != null && { assetDescription: input.assetDescription })), (input.assetName != null && { assetName: input.assetName })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
2317
2283
|
return [4, context.endpoint()];
|
|
2318
2284
|
case 2:
|
|
2319
2285
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -2357,16 +2323,11 @@ export var serializeAws_restJson1UpdateAssetModelCommand = function (input, cont
|
|
|
2357
2323
|
else {
|
|
2358
2324
|
throw new Error("No value provided for input HTTP label: assetModelId.");
|
|
2359
2325
|
}
|
|
2360
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetModelCompositeModels
|
|
2361
|
-
input.assetModelCompositeModels !== null && {
|
|
2326
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetModelCompositeModels != null && {
|
|
2362
2327
|
assetModelCompositeModels: serializeAws_restJson1AssetModelCompositeModels(input.assetModelCompositeModels, context),
|
|
2363
|
-
})), (input.assetModelDescription
|
|
2364
|
-
input.assetModelDescription !== null && { assetModelDescription: input.assetModelDescription })), (input.assetModelHierarchies !== undefined &&
|
|
2365
|
-
input.assetModelHierarchies !== null && {
|
|
2328
|
+
})), (input.assetModelDescription != null && { assetModelDescription: input.assetModelDescription })), (input.assetModelHierarchies != null && {
|
|
2366
2329
|
assetModelHierarchies: serializeAws_restJson1AssetModelHierarchies(input.assetModelHierarchies, context),
|
|
2367
|
-
})), (input.assetModelName
|
|
2368
|
-
input.assetModelName !== null && { assetModelName: input.assetModelName })), (input.assetModelProperties !== undefined &&
|
|
2369
|
-
input.assetModelProperties !== null && {
|
|
2330
|
+
})), (input.assetModelName != null && { assetModelName: input.assetModelName })), (input.assetModelProperties != null && {
|
|
2370
2331
|
assetModelProperties: serializeAws_restJson1AssetModelProperties(input.assetModelProperties, context),
|
|
2371
2332
|
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
2372
2333
|
return [4, context.endpoint()];
|
|
@@ -2422,8 +2383,7 @@ export var serializeAws_restJson1UpdateAssetPropertyCommand = function (input, c
|
|
|
2422
2383
|
else {
|
|
2423
2384
|
throw new Error("No value provided for input HTTP label: propertyId.");
|
|
2424
2385
|
}
|
|
2425
|
-
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.propertyAlias
|
|
2426
|
-
input.propertyNotificationState !== null && { propertyNotificationState: input.propertyNotificationState })));
|
|
2386
|
+
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyNotificationState != null && { propertyNotificationState: input.propertyNotificationState })));
|
|
2427
2387
|
return [4, context.endpoint()];
|
|
2428
2388
|
case 2:
|
|
2429
2389
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -2467,9 +2427,7 @@ export var serializeAws_restJson1UpdateDashboardCommand = function (input, conte
|
|
|
2467
2427
|
else {
|
|
2468
2428
|
throw new Error("No value provided for input HTTP label: dashboardId.");
|
|
2469
2429
|
}
|
|
2470
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.dashboardDefinition
|
|
2471
|
-
input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition })), (input.dashboardDescription !== undefined &&
|
|
2472
|
-
input.dashboardDescription !== null && { dashboardDescription: input.dashboardDescription })), (input.dashboardName !== undefined && input.dashboardName !== null && { dashboardName: input.dashboardName })));
|
|
2430
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.dashboardDefinition != null && { dashboardDefinition: input.dashboardDefinition })), (input.dashboardDescription != null && { dashboardDescription: input.dashboardDescription })), (input.dashboardName != null && { dashboardName: input.dashboardName })));
|
|
2473
2431
|
return [4, context.endpoint()];
|
|
2474
2432
|
case 2:
|
|
2475
2433
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -2512,7 +2470,7 @@ export var serializeAws_restJson1UpdateGatewayCommand = function (input, context
|
|
|
2512
2470
|
else {
|
|
2513
2471
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
2514
2472
|
}
|
|
2515
|
-
body = JSON.stringify(__assign({}, (input.gatewayName
|
|
2473
|
+
body = JSON.stringify(__assign({}, (input.gatewayName != null && { gatewayName: input.gatewayName })));
|
|
2516
2474
|
return [4, context.endpoint()];
|
|
2517
2475
|
case 2:
|
|
2518
2476
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2555,9 +2513,7 @@ export var serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = f
|
|
|
2555
2513
|
else {
|
|
2556
2514
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
2557
2515
|
}
|
|
2558
|
-
body = JSON.stringify(__assign(__assign({}, (input.capabilityConfiguration
|
|
2559
|
-
input.capabilityConfiguration !== null && { capabilityConfiguration: input.capabilityConfiguration })), (input.capabilityNamespace !== undefined &&
|
|
2560
|
-
input.capabilityNamespace !== null && { capabilityNamespace: input.capabilityNamespace })));
|
|
2516
|
+
body = JSON.stringify(__assign(__assign({}, (input.capabilityConfiguration != null && { capabilityConfiguration: input.capabilityConfiguration })), (input.capabilityNamespace != null && { capabilityNamespace: input.capabilityNamespace })));
|
|
2561
2517
|
return [4, context.endpoint()];
|
|
2562
2518
|
case 2:
|
|
2563
2519
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2601,14 +2557,9 @@ export var serializeAws_restJson1UpdatePortalCommand = function (input, context)
|
|
|
2601
2557
|
else {
|
|
2602
2558
|
throw new Error("No value provided for input HTTP label: portalId.");
|
|
2603
2559
|
}
|
|
2604
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarms !==
|
|
2605
|
-
input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.notificationSenderEmail !== undefined &&
|
|
2606
|
-
input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail })), (input.portalContactEmail !== undefined &&
|
|
2607
|
-
input.portalContactEmail !== null && { portalContactEmail: input.portalContactEmail })), (input.portalDescription !== undefined &&
|
|
2608
|
-
input.portalDescription !== null && { portalDescription: input.portalDescription })), (input.portalLogoImage !== undefined &&
|
|
2609
|
-
input.portalLogoImage !== null && {
|
|
2560
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarms != null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.notificationSenderEmail != null && { notificationSenderEmail: input.notificationSenderEmail })), (input.portalContactEmail != null && { portalContactEmail: input.portalContactEmail })), (input.portalDescription != null && { portalDescription: input.portalDescription })), (input.portalLogoImage != null && {
|
|
2610
2561
|
portalLogoImage: serializeAws_restJson1Image(input.portalLogoImage, context),
|
|
2611
|
-
})), (input.portalName
|
|
2562
|
+
})), (input.portalName != null && { portalName: input.portalName })), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
2612
2563
|
return [4, context.endpoint()];
|
|
2613
2564
|
case 2:
|
|
2614
2565
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -2652,8 +2603,7 @@ export var serializeAws_restJson1UpdateProjectCommand = function (input, context
|
|
|
2652
2603
|
else {
|
|
2653
2604
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
2654
2605
|
}
|
|
2655
|
-
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.projectDescription
|
|
2656
|
-
input.projectDescription !== null && { projectDescription: input.projectDescription })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName })));
|
|
2606
|
+
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.projectDescription != null && { projectDescription: input.projectDescription })), (input.projectName != null && { projectName: input.projectName })));
|
|
2657
2607
|
return [4, context.endpoint()];
|
|
2658
2608
|
case 2:
|
|
2659
2609
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -8083,20 +8033,17 @@ var serializeAws_restJson1AggregateTypes = function (input, context) {
|
|
|
8083
8033
|
});
|
|
8084
8034
|
};
|
|
8085
8035
|
var serializeAws_restJson1Alarms = function (input, context) {
|
|
8086
|
-
return __assign(__assign({}, (input.alarmRoleArn
|
|
8087
|
-
input.notificationLambdaArn !== null && { notificationLambdaArn: input.notificationLambdaArn }));
|
|
8036
|
+
return __assign(__assign({}, (input.alarmRoleArn != null && { alarmRoleArn: input.alarmRoleArn })), (input.notificationLambdaArn != null && { notificationLambdaArn: input.notificationLambdaArn }));
|
|
8088
8037
|
};
|
|
8089
8038
|
var serializeAws_restJson1AssetModelCompositeModel = function (input, context) {
|
|
8090
|
-
return __assign(__assign(__assign(__assign({}, (input.description
|
|
8091
|
-
input.properties !== null && {
|
|
8039
|
+
return __assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.properties != null && {
|
|
8092
8040
|
properties: serializeAws_restJson1AssetModelProperties(input.properties, context),
|
|
8093
|
-
})), (input.type
|
|
8041
|
+
})), (input.type != null && { type: input.type }));
|
|
8094
8042
|
};
|
|
8095
8043
|
var serializeAws_restJson1AssetModelCompositeModelDefinition = function (input, context) {
|
|
8096
|
-
return __assign(__assign(__assign(__assign({}, (input.description
|
|
8097
|
-
input.properties !== null && {
|
|
8044
|
+
return __assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.properties != null && {
|
|
8098
8045
|
properties: serializeAws_restJson1AssetModelPropertyDefinitions(input.properties, context),
|
|
8099
|
-
})), (input.type
|
|
8046
|
+
})), (input.type != null && { type: input.type }));
|
|
8100
8047
|
};
|
|
8101
8048
|
var serializeAws_restJson1AssetModelCompositeModelDefinitions = function (input, context) {
|
|
8102
8049
|
return input
|
|
@@ -8129,12 +8076,10 @@ var serializeAws_restJson1AssetModelHierarchies = function (input, context) {
|
|
|
8129
8076
|
});
|
|
8130
8077
|
};
|
|
8131
8078
|
var serializeAws_restJson1AssetModelHierarchy = function (input, context) {
|
|
8132
|
-
return __assign(__assign(__assign({}, (input.childAssetModelId
|
|
8133
|
-
input.childAssetModelId !== null && { childAssetModelId: input.childAssetModelId })), (input.id !== undefined && input.id !== null && { id: input.id })), (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
8079
|
+
return __assign(__assign(__assign({}, (input.childAssetModelId != null && { childAssetModelId: input.childAssetModelId })), (input.id != null && { id: input.id })), (input.name != null && { name: input.name }));
|
|
8134
8080
|
};
|
|
8135
8081
|
var serializeAws_restJson1AssetModelHierarchyDefinition = function (input, context) {
|
|
8136
|
-
return __assign(__assign({}, (input.childAssetModelId
|
|
8137
|
-
input.childAssetModelId !== null && { childAssetModelId: input.childAssetModelId })), (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
8082
|
+
return __assign(__assign({}, (input.childAssetModelId != null && { childAssetModelId: input.childAssetModelId })), (input.name != null && { name: input.name }));
|
|
8138
8083
|
};
|
|
8139
8084
|
var serializeAws_restJson1AssetModelHierarchyDefinitions = function (input, context) {
|
|
8140
8085
|
return input
|
|
@@ -8157,12 +8102,10 @@ var serializeAws_restJson1AssetModelProperties = function (input, context) {
|
|
|
8157
8102
|
});
|
|
8158
8103
|
};
|
|
8159
8104
|
var serializeAws_restJson1AssetModelProperty = function (input, context) {
|
|
8160
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataType
|
|
8161
|
-
input.type !== null && { type: serializeAws_restJson1PropertyType(input.type, context) })), (input.unit !== undefined && input.unit !== null && { unit: input.unit }));
|
|
8105
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataType != null && { dataType: input.dataType })), (input.dataTypeSpec != null && { dataTypeSpec: input.dataTypeSpec })), (input.id != null && { id: input.id })), (input.name != null && { name: input.name })), (input.type != null && { type: serializeAws_restJson1PropertyType(input.type, context) })), (input.unit != null && { unit: input.unit }));
|
|
8162
8106
|
};
|
|
8163
8107
|
var serializeAws_restJson1AssetModelPropertyDefinition = function (input, context) {
|
|
8164
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.dataType
|
|
8165
|
-
input.type !== null && { type: serializeAws_restJson1PropertyType(input.type, context) })), (input.unit !== undefined && input.unit !== null && { unit: input.unit }));
|
|
8108
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.dataType != null && { dataType: input.dataType })), (input.dataTypeSpec != null && { dataTypeSpec: input.dataTypeSpec })), (input.name != null && { name: input.name })), (input.type != null && { type: serializeAws_restJson1PropertyType(input.type, context) })), (input.unit != null && { unit: input.unit }));
|
|
8166
8109
|
};
|
|
8167
8110
|
var serializeAws_restJson1AssetModelPropertyDefinitions = function (input, context) {
|
|
8168
8111
|
return input
|
|
@@ -8175,9 +8118,7 @@ var serializeAws_restJson1AssetModelPropertyDefinitions = function (input, conte
|
|
|
8175
8118
|
});
|
|
8176
8119
|
};
|
|
8177
8120
|
var serializeAws_restJson1AssetPropertyValue = function (input, context) {
|
|
8178
|
-
return __assign(__assign(__assign({}, (input.quality
|
|
8179
|
-
input.timestamp !== null && { timestamp: serializeAws_restJson1TimeInNanos(input.timestamp, context) })), (input.value !== undefined &&
|
|
8180
|
-
input.value !== null && { value: serializeAws_restJson1Variant(input.value, context) }));
|
|
8121
|
+
return __assign(__assign(__assign({}, (input.quality != null && { quality: input.quality })), (input.timestamp != null && { timestamp: serializeAws_restJson1TimeInNanos(input.timestamp, context) })), (input.value != null && { value: serializeAws_restJson1Variant(input.value, context) }));
|
|
8181
8122
|
};
|
|
8182
8123
|
var serializeAws_restJson1AssetPropertyValues = function (input, context) {
|
|
8183
8124
|
return input
|
|
@@ -8190,7 +8131,7 @@ var serializeAws_restJson1AssetPropertyValues = function (input, context) {
|
|
|
8190
8131
|
});
|
|
8191
8132
|
};
|
|
8192
8133
|
var serializeAws_restJson1Attribute = function (input, context) {
|
|
8193
|
-
return __assign({}, (input.defaultValue
|
|
8134
|
+
return __assign({}, (input.defaultValue != null && { defaultValue: input.defaultValue }));
|
|
8194
8135
|
};
|
|
8195
8136
|
var serializeAws_restJson1BatchGetAssetPropertyAggregatesEntries = function (input, context) {
|
|
8196
8137
|
return input
|
|
@@ -8203,13 +8144,9 @@ var serializeAws_restJson1BatchGetAssetPropertyAggregatesEntries = function (inp
|
|
|
8203
8144
|
});
|
|
8204
8145
|
};
|
|
8205
8146
|
var serializeAws_restJson1BatchGetAssetPropertyAggregatesEntry = function (input, context) {
|
|
8206
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregateTypes
|
|
8207
|
-
input.aggregateTypes !== null && {
|
|
8147
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregateTypes != null && {
|
|
8208
8148
|
aggregateTypes: serializeAws_restJson1AggregateTypes(input.aggregateTypes, context),
|
|
8209
|
-
})), (input.assetId
|
|
8210
|
-
input.endDate !== null && { endDate: Math.round(input.endDate.getTime() / 1000) })), (input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId })), (input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias })), (input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId })), (input.qualities !== undefined &&
|
|
8211
|
-
input.qualities !== null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) })), (input.resolution !== undefined && input.resolution !== null && { resolution: input.resolution })), (input.startDate !== undefined &&
|
|
8212
|
-
input.startDate !== null && { startDate: Math.round(input.startDate.getTime() / 1000) })), (input.timeOrdering !== undefined && input.timeOrdering !== null && { timeOrdering: input.timeOrdering }));
|
|
8149
|
+
})), (input.assetId != null && { assetId: input.assetId })), (input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) })), (input.entryId != null && { entryId: input.entryId })), (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyId != null && { propertyId: input.propertyId })), (input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) })), (input.resolution != null && { resolution: input.resolution })), (input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) })), (input.timeOrdering != null && { timeOrdering: input.timeOrdering }));
|
|
8213
8150
|
};
|
|
8214
8151
|
var serializeAws_restJson1BatchGetAssetPropertyValueEntries = function (input, context) {
|
|
8215
8152
|
return input
|
|
@@ -8222,7 +8159,7 @@ var serializeAws_restJson1BatchGetAssetPropertyValueEntries = function (input, c
|
|
|
8222
8159
|
});
|
|
8223
8160
|
};
|
|
8224
8161
|
var serializeAws_restJson1BatchGetAssetPropertyValueEntry = function (input, context) {
|
|
8225
|
-
return __assign(__assign(__assign(__assign({}, (input.assetId
|
|
8162
|
+
return __assign(__assign(__assign(__assign({}, (input.assetId != null && { assetId: input.assetId })), (input.entryId != null && { entryId: input.entryId })), (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyId != null && { propertyId: input.propertyId }));
|
|
8226
8163
|
};
|
|
8227
8164
|
var serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = function (input, context) {
|
|
8228
8165
|
return input
|
|
@@ -8235,17 +8172,13 @@ var serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = function (i
|
|
|
8235
8172
|
});
|
|
8236
8173
|
};
|
|
8237
8174
|
var serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = function (input, context) {
|
|
8238
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetId
|
|
8239
|
-
input.endDate !== null && { endDate: Math.round(input.endDate.getTime() / 1000) })), (input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId })), (input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias })), (input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId })), (input.qualities !== undefined &&
|
|
8240
|
-
input.qualities !== null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) })), (input.startDate !== undefined &&
|
|
8241
|
-
input.startDate !== null && { startDate: Math.round(input.startDate.getTime() / 1000) })), (input.timeOrdering !== undefined && input.timeOrdering !== null && { timeOrdering: input.timeOrdering }));
|
|
8175
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetId != null && { assetId: input.assetId })), (input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) })), (input.entryId != null && { entryId: input.entryId })), (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyId != null && { propertyId: input.propertyId })), (input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) })), (input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) })), (input.timeOrdering != null && { timeOrdering: input.timeOrdering }));
|
|
8242
8176
|
};
|
|
8243
8177
|
var serializeAws_restJson1CustomerManagedS3Storage = function (input, context) {
|
|
8244
|
-
return __assign(__assign({}, (input.roleArn
|
|
8178
|
+
return __assign(__assign({}, (input.roleArn != null && { roleArn: input.roleArn })), (input.s3ResourceArn != null && { s3ResourceArn: input.s3ResourceArn }));
|
|
8245
8179
|
};
|
|
8246
8180
|
var serializeAws_restJson1ExpressionVariable = function (input, context) {
|
|
8247
|
-
return __assign(__assign({}, (input.name
|
|
8248
|
-
input.value !== null && { value: serializeAws_restJson1VariableValue(input.value, context) }));
|
|
8181
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: serializeAws_restJson1VariableValue(input.value, context) }));
|
|
8249
8182
|
};
|
|
8250
8183
|
var serializeAws_restJson1ExpressionVariables = function (input, context) {
|
|
8251
8184
|
return input
|
|
@@ -8258,35 +8191,30 @@ var serializeAws_restJson1ExpressionVariables = function (input, context) {
|
|
|
8258
8191
|
});
|
|
8259
8192
|
};
|
|
8260
8193
|
var serializeAws_restJson1ForwardingConfig = function (input, context) {
|
|
8261
|
-
return __assign({}, (input.state
|
|
8194
|
+
return __assign({}, (input.state != null && { state: input.state }));
|
|
8262
8195
|
};
|
|
8263
8196
|
var serializeAws_restJson1GatewayPlatform = function (input, context) {
|
|
8264
|
-
return __assign(__assign({}, (input.greengrass
|
|
8265
|
-
|
|
8266
|
-
|
|
8197
|
+
return __assign(__assign({}, (input.greengrass != null && { greengrass: serializeAws_restJson1Greengrass(input.greengrass, context) })), (input.greengrassV2 != null && {
|
|
8198
|
+
greengrassV2: serializeAws_restJson1GreengrassV2(input.greengrassV2, context),
|
|
8199
|
+
}));
|
|
8267
8200
|
};
|
|
8268
8201
|
var serializeAws_restJson1Greengrass = function (input, context) {
|
|
8269
|
-
return __assign({}, (input.groupArn
|
|
8202
|
+
return __assign({}, (input.groupArn != null && { groupArn: input.groupArn }));
|
|
8270
8203
|
};
|
|
8271
8204
|
var serializeAws_restJson1GreengrassV2 = function (input, context) {
|
|
8272
|
-
return __assign({}, (input.coreDeviceThingName
|
|
8273
|
-
input.coreDeviceThingName !== null && { coreDeviceThingName: input.coreDeviceThingName }));
|
|
8205
|
+
return __assign({}, (input.coreDeviceThingName != null && { coreDeviceThingName: input.coreDeviceThingName }));
|
|
8274
8206
|
};
|
|
8275
8207
|
var serializeAws_restJson1GroupIdentity = function (input, context) {
|
|
8276
|
-
return __assign({}, (input.id
|
|
8208
|
+
return __assign({}, (input.id != null && { id: input.id }));
|
|
8277
8209
|
};
|
|
8278
8210
|
var serializeAws_restJson1IAMRoleIdentity = function (input, context) {
|
|
8279
|
-
return __assign({}, (input.arn
|
|
8211
|
+
return __assign({}, (input.arn != null && { arn: input.arn }));
|
|
8280
8212
|
};
|
|
8281
8213
|
var serializeAws_restJson1IAMUserIdentity = function (input, context) {
|
|
8282
|
-
return __assign({}, (input.arn
|
|
8214
|
+
return __assign({}, (input.arn != null && { arn: input.arn }));
|
|
8283
8215
|
};
|
|
8284
8216
|
var serializeAws_restJson1Identity = function (input, context) {
|
|
8285
|
-
return __assign(__assign(__assign(__assign({}, (input.group
|
|
8286
|
-
input.group !== null && { group: serializeAws_restJson1GroupIdentity(input.group, context) })), (input.iamRole !== undefined &&
|
|
8287
|
-
input.iamRole !== null && { iamRole: serializeAws_restJson1IAMRoleIdentity(input.iamRole, context) })), (input.iamUser !== undefined &&
|
|
8288
|
-
input.iamUser !== null && { iamUser: serializeAws_restJson1IAMUserIdentity(input.iamUser, context) })), (input.user !== undefined &&
|
|
8289
|
-
input.user !== null && { user: serializeAws_restJson1UserIdentity(input.user, context) }));
|
|
8217
|
+
return __assign(__assign(__assign(__assign({}, (input.group != null && { group: serializeAws_restJson1GroupIdentity(input.group, context) })), (input.iamRole != null && { iamRole: serializeAws_restJson1IAMRoleIdentity(input.iamRole, context) })), (input.iamUser != null && { iamUser: serializeAws_restJson1IAMUserIdentity(input.iamUser, context) })), (input.user != null && { user: serializeAws_restJson1UserIdentity(input.user, context) }));
|
|
8290
8218
|
};
|
|
8291
8219
|
var serializeAws_restJson1IDs = function (input, context) {
|
|
8292
8220
|
return input
|
|
@@ -8299,61 +8227,48 @@ var serializeAws_restJson1IDs = function (input, context) {
|
|
|
8299
8227
|
});
|
|
8300
8228
|
};
|
|
8301
8229
|
var serializeAws_restJson1Image = function (input, context) {
|
|
8302
|
-
return __assign(__assign({}, (input.file
|
|
8303
|
-
input.file !== null && { file: serializeAws_restJson1ImageFile(input.file, context) })), (input.id !== undefined && input.id !== null && { id: input.id }));
|
|
8230
|
+
return __assign(__assign({}, (input.file != null && { file: serializeAws_restJson1ImageFile(input.file, context) })), (input.id != null && { id: input.id }));
|
|
8304
8231
|
};
|
|
8305
8232
|
var serializeAws_restJson1ImageFile = function (input, context) {
|
|
8306
|
-
return __assign(__assign({}, (input.data
|
|
8233
|
+
return __assign(__assign({}, (input.data != null && { data: context.base64Encoder(input.data) })), (input.type != null && { type: input.type }));
|
|
8307
8234
|
};
|
|
8308
8235
|
var serializeAws_restJson1LoggingOptions = function (input, context) {
|
|
8309
|
-
return __assign({}, (input.level
|
|
8236
|
+
return __assign({}, (input.level != null && { level: input.level }));
|
|
8310
8237
|
};
|
|
8311
8238
|
var serializeAws_restJson1Measurement = function (input, context) {
|
|
8312
|
-
return __assign({}, (input.processingConfig
|
|
8313
|
-
input.processingConfig !== null && {
|
|
8239
|
+
return __assign({}, (input.processingConfig != null && {
|
|
8314
8240
|
processingConfig: serializeAws_restJson1MeasurementProcessingConfig(input.processingConfig, context),
|
|
8315
8241
|
}));
|
|
8316
8242
|
};
|
|
8317
8243
|
var serializeAws_restJson1MeasurementProcessingConfig = function (input, context) {
|
|
8318
|
-
return __assign({}, (input.forwardingConfig
|
|
8319
|
-
input.forwardingConfig !== null && {
|
|
8244
|
+
return __assign({}, (input.forwardingConfig != null && {
|
|
8320
8245
|
forwardingConfig: serializeAws_restJson1ForwardingConfig(input.forwardingConfig, context),
|
|
8321
8246
|
}));
|
|
8322
8247
|
};
|
|
8323
8248
|
var serializeAws_restJson1Metric = function (input, context) {
|
|
8324
|
-
return __assign(__assign(__assign(__assign({}, (input.expression
|
|
8325
|
-
input.processingConfig !== null && {
|
|
8249
|
+
return __assign(__assign(__assign(__assign({}, (input.expression != null && { expression: input.expression })), (input.processingConfig != null && {
|
|
8326
8250
|
processingConfig: serializeAws_restJson1MetricProcessingConfig(input.processingConfig, context),
|
|
8327
|
-
})), (input.variables
|
|
8328
|
-
input.variables !== null && { variables: serializeAws_restJson1ExpressionVariables(input.variables, context) })), (input.window !== undefined &&
|
|
8329
|
-
input.window !== null && { window: serializeAws_restJson1MetricWindow(input.window, context) }));
|
|
8251
|
+
})), (input.variables != null && { variables: serializeAws_restJson1ExpressionVariables(input.variables, context) })), (input.window != null && { window: serializeAws_restJson1MetricWindow(input.window, context) }));
|
|
8330
8252
|
};
|
|
8331
8253
|
var serializeAws_restJson1MetricProcessingConfig = function (input, context) {
|
|
8332
|
-
return __assign({}, (input.computeLocation
|
|
8333
|
-
input.computeLocation !== null && { computeLocation: input.computeLocation }));
|
|
8254
|
+
return __assign({}, (input.computeLocation != null && { computeLocation: input.computeLocation }));
|
|
8334
8255
|
};
|
|
8335
8256
|
var serializeAws_restJson1MetricWindow = function (input, context) {
|
|
8336
|
-
return __assign({}, (input.tumbling
|
|
8337
|
-
input.tumbling !== null && { tumbling: serializeAws_restJson1TumblingWindow(input.tumbling, context) }));
|
|
8257
|
+
return __assign({}, (input.tumbling != null && { tumbling: serializeAws_restJson1TumblingWindow(input.tumbling, context) }));
|
|
8338
8258
|
};
|
|
8339
8259
|
var serializeAws_restJson1MultiLayerStorage = function (input, context) {
|
|
8340
|
-
return __assign({}, (input.customerManagedS3Storage
|
|
8341
|
-
input.customerManagedS3Storage !== null && {
|
|
8260
|
+
return __assign({}, (input.customerManagedS3Storage != null && {
|
|
8342
8261
|
customerManagedS3Storage: serializeAws_restJson1CustomerManagedS3Storage(input.customerManagedS3Storage, context),
|
|
8343
8262
|
}));
|
|
8344
8263
|
};
|
|
8345
8264
|
var serializeAws_restJson1PortalResource = function (input, context) {
|
|
8346
|
-
return __assign({}, (input.id
|
|
8265
|
+
return __assign({}, (input.id != null && { id: input.id }));
|
|
8347
8266
|
};
|
|
8348
8267
|
var serializeAws_restJson1ProjectResource = function (input, context) {
|
|
8349
|
-
return __assign({}, (input.id
|
|
8268
|
+
return __assign({}, (input.id != null && { id: input.id }));
|
|
8350
8269
|
};
|
|
8351
8270
|
var serializeAws_restJson1PropertyType = function (input, context) {
|
|
8352
|
-
return __assign(__assign(__assign(__assign({}, (input.attribute
|
|
8353
|
-
input.attribute !== null && { attribute: serializeAws_restJson1Attribute(input.attribute, context) })), (input.measurement !== undefined &&
|
|
8354
|
-
input.measurement !== null && { measurement: serializeAws_restJson1Measurement(input.measurement, context) })), (input.metric !== undefined &&
|
|
8355
|
-
input.metric !== null && { metric: serializeAws_restJson1Metric(input.metric, context) })), (input.transform !== undefined &&
|
|
8356
|
-
input.transform !== null && { transform: serializeAws_restJson1Transform(input.transform, context) }));
|
|
8271
|
+
return __assign(__assign(__assign(__assign({}, (input.attribute != null && { attribute: serializeAws_restJson1Attribute(input.attribute, context) })), (input.measurement != null && { measurement: serializeAws_restJson1Measurement(input.measurement, context) })), (input.metric != null && { metric: serializeAws_restJson1Metric(input.metric, context) })), (input.transform != null && { transform: serializeAws_restJson1Transform(input.transform, context) }));
|
|
8357
8272
|
};
|
|
8358
8273
|
var serializeAws_restJson1PutAssetPropertyValueEntries = function (input, context) {
|
|
8359
8274
|
return input
|
|
@@ -8366,8 +8281,7 @@ var serializeAws_restJson1PutAssetPropertyValueEntries = function (input, contex
|
|
|
8366
8281
|
});
|
|
8367
8282
|
};
|
|
8368
8283
|
var serializeAws_restJson1PutAssetPropertyValueEntry = function (input, context) {
|
|
8369
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.assetId
|
|
8370
|
-
input.propertyValues !== null && {
|
|
8284
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.assetId != null && { assetId: input.assetId })), (input.entryId != null && { entryId: input.entryId })), (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyId != null && { propertyId: input.propertyId })), (input.propertyValues != null && {
|
|
8371
8285
|
propertyValues: serializeAws_restJson1AssetPropertyValues(input.propertyValues, context),
|
|
8372
8286
|
}));
|
|
8373
8287
|
};
|
|
@@ -8382,12 +8296,10 @@ var serializeAws_restJson1Qualities = function (input, context) {
|
|
|
8382
8296
|
});
|
|
8383
8297
|
};
|
|
8384
8298
|
var serializeAws_restJson1Resource = function (input, context) {
|
|
8385
|
-
return __assign(__assign({}, (input.portal
|
|
8386
|
-
input.portal !== null && { portal: serializeAws_restJson1PortalResource(input.portal, context) })), (input.project !== undefined &&
|
|
8387
|
-
input.project !== null && { project: serializeAws_restJson1ProjectResource(input.project, context) }));
|
|
8299
|
+
return __assign(__assign({}, (input.portal != null && { portal: serializeAws_restJson1PortalResource(input.portal, context) })), (input.project != null && { project: serializeAws_restJson1ProjectResource(input.project, context) }));
|
|
8388
8300
|
};
|
|
8389
8301
|
var serializeAws_restJson1RetentionPeriod = function (input, context) {
|
|
8390
|
-
return __assign(__assign({}, (input.numberOfDays
|
|
8302
|
+
return __assign(__assign({}, (input.numberOfDays != null && { numberOfDays: input.numberOfDays })), (input.unlimited != null && { unlimited: input.unlimited }));
|
|
8391
8303
|
};
|
|
8392
8304
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
8393
8305
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -8400,34 +8312,29 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
8400
8312
|
}, {});
|
|
8401
8313
|
};
|
|
8402
8314
|
var serializeAws_restJson1TimeInNanos = function (input, context) {
|
|
8403
|
-
return __assign(__assign({}, (input.offsetInNanos
|
|
8315
|
+
return __assign(__assign({}, (input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos })), (input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }));
|
|
8404
8316
|
};
|
|
8405
8317
|
var serializeAws_restJson1Transform = function (input, context) {
|
|
8406
|
-
return __assign(__assign(__assign({}, (input.expression
|
|
8407
|
-
input.processingConfig !== null && {
|
|
8318
|
+
return __assign(__assign(__assign({}, (input.expression != null && { expression: input.expression })), (input.processingConfig != null && {
|
|
8408
8319
|
processingConfig: serializeAws_restJson1TransformProcessingConfig(input.processingConfig, context),
|
|
8409
|
-
})), (input.variables
|
|
8410
|
-
input.variables !== null && { variables: serializeAws_restJson1ExpressionVariables(input.variables, context) }));
|
|
8320
|
+
})), (input.variables != null && { variables: serializeAws_restJson1ExpressionVariables(input.variables, context) }));
|
|
8411
8321
|
};
|
|
8412
8322
|
var serializeAws_restJson1TransformProcessingConfig = function (input, context) {
|
|
8413
|
-
return __assign(__assign({}, (input.computeLocation
|
|
8414
|
-
input.computeLocation !== null && { computeLocation: input.computeLocation })), (input.forwardingConfig !== undefined &&
|
|
8415
|
-
input.forwardingConfig !== null && {
|
|
8323
|
+
return __assign(__assign({}, (input.computeLocation != null && { computeLocation: input.computeLocation })), (input.forwardingConfig != null && {
|
|
8416
8324
|
forwardingConfig: serializeAws_restJson1ForwardingConfig(input.forwardingConfig, context),
|
|
8417
8325
|
}));
|
|
8418
8326
|
};
|
|
8419
8327
|
var serializeAws_restJson1TumblingWindow = function (input, context) {
|
|
8420
|
-
return __assign(__assign({}, (input.interval
|
|
8328
|
+
return __assign(__assign({}, (input.interval != null && { interval: input.interval })), (input.offset != null && { offset: input.offset }));
|
|
8421
8329
|
};
|
|
8422
8330
|
var serializeAws_restJson1UserIdentity = function (input, context) {
|
|
8423
|
-
return __assign({}, (input.id
|
|
8331
|
+
return __assign({}, (input.id != null && { id: input.id }));
|
|
8424
8332
|
};
|
|
8425
8333
|
var serializeAws_restJson1VariableValue = function (input, context) {
|
|
8426
|
-
return __assign(__assign({}, (input.hierarchyId
|
|
8334
|
+
return __assign(__assign({}, (input.hierarchyId != null && { hierarchyId: input.hierarchyId })), (input.propertyId != null && { propertyId: input.propertyId }));
|
|
8427
8335
|
};
|
|
8428
8336
|
var serializeAws_restJson1Variant = function (input, context) {
|
|
8429
|
-
return __assign(__assign(__assign(__assign({}, (input.booleanValue
|
|
8430
|
-
input.doubleValue !== null && { doubleValue: __serializeFloat(input.doubleValue) })), (input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue })), (input.stringValue !== undefined && input.stringValue !== null && { stringValue: input.stringValue }));
|
|
8337
|
+
return __assign(__assign(__assign(__assign({}, (input.booleanValue != null && { booleanValue: input.booleanValue })), (input.doubleValue != null && { doubleValue: __serializeFloat(input.doubleValue) })), (input.integerValue != null && { integerValue: input.integerValue })), (input.stringValue != null && { stringValue: input.stringValue }));
|
|
8431
8338
|
};
|
|
8432
8339
|
var deserializeAws_restJson1AccessPolicySummaries = function (output, context) {
|
|
8433
8340
|
var retVal = (output || [])
|
|
@@ -8442,31 +8349,23 @@ var deserializeAws_restJson1AccessPolicySummaries = function (output, context) {
|
|
|
8442
8349
|
};
|
|
8443
8350
|
var deserializeAws_restJson1AccessPolicySummary = function (output, context) {
|
|
8444
8351
|
return {
|
|
8445
|
-
creationDate: output.creationDate
|
|
8352
|
+
creationDate: output.creationDate != null
|
|
8446
8353
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
8447
8354
|
: undefined,
|
|
8448
8355
|
id: __expectString(output.id),
|
|
8449
|
-
identity: output.identity
|
|
8450
|
-
|
|
8451
|
-
: undefined,
|
|
8452
|
-
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
8356
|
+
identity: output.identity != null ? deserializeAws_restJson1Identity(output.identity, context) : undefined,
|
|
8357
|
+
lastUpdateDate: output.lastUpdateDate != null
|
|
8453
8358
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
|
|
8454
8359
|
: undefined,
|
|
8455
8360
|
permission: __expectString(output.permission),
|
|
8456
|
-
resource: output.resource
|
|
8457
|
-
? deserializeAws_restJson1Resource(output.resource, context)
|
|
8458
|
-
: undefined,
|
|
8361
|
+
resource: output.resource != null ? deserializeAws_restJson1Resource(output.resource, context) : undefined,
|
|
8459
8362
|
};
|
|
8460
8363
|
};
|
|
8461
8364
|
var deserializeAws_restJson1AggregatedValue = function (output, context) {
|
|
8462
8365
|
return {
|
|
8463
8366
|
quality: __expectString(output.quality),
|
|
8464
|
-
timestamp: output.timestamp
|
|
8465
|
-
|
|
8466
|
-
: undefined,
|
|
8467
|
-
value: output.value !== undefined && output.value !== null
|
|
8468
|
-
? deserializeAws_restJson1Aggregates(output.value, context)
|
|
8469
|
-
: undefined,
|
|
8367
|
+
timestamp: output.timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp))) : undefined,
|
|
8368
|
+
value: output.value != null ? deserializeAws_restJson1Aggregates(output.value, context) : undefined,
|
|
8470
8369
|
};
|
|
8471
8370
|
};
|
|
8472
8371
|
var deserializeAws_restJson1AggregatedValues = function (output, context) {
|
|
@@ -8500,9 +8399,7 @@ var deserializeAws_restJson1AssetCompositeModel = function (output, context) {
|
|
|
8500
8399
|
return {
|
|
8501
8400
|
description: __expectString(output.description),
|
|
8502
8401
|
name: __expectString(output.name),
|
|
8503
|
-
properties: output.properties
|
|
8504
|
-
? deserializeAws_restJson1AssetProperties(output.properties, context)
|
|
8505
|
-
: undefined,
|
|
8402
|
+
properties: output.properties != null ? deserializeAws_restJson1AssetProperties(output.properties, context) : undefined,
|
|
8506
8403
|
type: __expectString(output.type),
|
|
8507
8404
|
};
|
|
8508
8405
|
};
|
|
@@ -8562,9 +8459,7 @@ var deserializeAws_restJson1AssetModelCompositeModel = function (output, context
|
|
|
8562
8459
|
return {
|
|
8563
8460
|
description: __expectString(output.description),
|
|
8564
8461
|
name: __expectString(output.name),
|
|
8565
|
-
properties: output.properties
|
|
8566
|
-
? deserializeAws_restJson1AssetModelProperties(output.properties, context)
|
|
8567
|
-
: undefined,
|
|
8462
|
+
properties: output.properties != null ? deserializeAws_restJson1AssetModelProperties(output.properties, context) : undefined,
|
|
8568
8463
|
type: __expectString(output.type),
|
|
8569
8464
|
};
|
|
8570
8465
|
};
|
|
@@ -8614,17 +8509,13 @@ var deserializeAws_restJson1AssetModelProperty = function (output, context) {
|
|
|
8614
8509
|
dataTypeSpec: __expectString(output.dataTypeSpec),
|
|
8615
8510
|
id: __expectString(output.id),
|
|
8616
8511
|
name: __expectString(output.name),
|
|
8617
|
-
type: output.type
|
|
8618
|
-
? deserializeAws_restJson1PropertyType(output.type, context)
|
|
8619
|
-
: undefined,
|
|
8512
|
+
type: output.type != null ? deserializeAws_restJson1PropertyType(output.type, context) : undefined,
|
|
8620
8513
|
unit: __expectString(output.unit),
|
|
8621
8514
|
};
|
|
8622
8515
|
};
|
|
8623
8516
|
var deserializeAws_restJson1AssetModelStatus = function (output, context) {
|
|
8624
8517
|
return {
|
|
8625
|
-
error: output.error
|
|
8626
|
-
? deserializeAws_restJson1ErrorDetails(output.error, context)
|
|
8627
|
-
: undefined,
|
|
8518
|
+
error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
|
|
8628
8519
|
state: __expectString(output.state),
|
|
8629
8520
|
};
|
|
8630
8521
|
};
|
|
@@ -8642,18 +8533,16 @@ var deserializeAws_restJson1AssetModelSummaries = function (output, context) {
|
|
|
8642
8533
|
var deserializeAws_restJson1AssetModelSummary = function (output, context) {
|
|
8643
8534
|
return {
|
|
8644
8535
|
arn: __expectString(output.arn),
|
|
8645
|
-
creationDate: output.creationDate
|
|
8536
|
+
creationDate: output.creationDate != null
|
|
8646
8537
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
8647
8538
|
: undefined,
|
|
8648
8539
|
description: __expectString(output.description),
|
|
8649
8540
|
id: __expectString(output.id),
|
|
8650
|
-
lastUpdateDate: output.lastUpdateDate
|
|
8541
|
+
lastUpdateDate: output.lastUpdateDate != null
|
|
8651
8542
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
|
|
8652
8543
|
: undefined,
|
|
8653
8544
|
name: __expectString(output.name),
|
|
8654
|
-
status: output.status
|
|
8655
|
-
? deserializeAws_restJson1AssetModelStatus(output.status, context)
|
|
8656
|
-
: undefined,
|
|
8545
|
+
status: output.status != null ? deserializeAws_restJson1AssetModelStatus(output.status, context) : undefined,
|
|
8657
8546
|
};
|
|
8658
8547
|
};
|
|
8659
8548
|
var deserializeAws_restJson1AssetProperties = function (output, context) {
|
|
@@ -8674,7 +8563,7 @@ var deserializeAws_restJson1AssetProperty = function (output, context) {
|
|
|
8674
8563
|
dataTypeSpec: __expectString(output.dataTypeSpec),
|
|
8675
8564
|
id: __expectString(output.id),
|
|
8676
8565
|
name: __expectString(output.name),
|
|
8677
|
-
notification: output.notification
|
|
8566
|
+
notification: output.notification != null
|
|
8678
8567
|
? deserializeAws_restJson1PropertyNotification(output.notification, context)
|
|
8679
8568
|
: undefined,
|
|
8680
8569
|
unit: __expectString(output.unit),
|
|
@@ -8683,12 +8572,8 @@ var deserializeAws_restJson1AssetProperty = function (output, context) {
|
|
|
8683
8572
|
var deserializeAws_restJson1AssetPropertyValue = function (output, context) {
|
|
8684
8573
|
return {
|
|
8685
8574
|
quality: __expectString(output.quality),
|
|
8686
|
-
timestamp: output.timestamp
|
|
8687
|
-
|
|
8688
|
-
: undefined,
|
|
8689
|
-
value: output.value !== undefined && output.value !== null
|
|
8690
|
-
? deserializeAws_restJson1Variant(output.value, context)
|
|
8691
|
-
: undefined,
|
|
8575
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1TimeInNanos(output.timestamp, context) : undefined,
|
|
8576
|
+
value: output.value != null ? deserializeAws_restJson1Variant(output.value, context) : undefined,
|
|
8692
8577
|
};
|
|
8693
8578
|
};
|
|
8694
8579
|
var deserializeAws_restJson1AssetPropertyValueHistory = function (output, context) {
|
|
@@ -8715,7 +8600,7 @@ var deserializeAws_restJson1AssetRelationshipSummaries = function (output, conte
|
|
|
8715
8600
|
};
|
|
8716
8601
|
var deserializeAws_restJson1AssetRelationshipSummary = function (output, context) {
|
|
8717
8602
|
return {
|
|
8718
|
-
hierarchyInfo: output.hierarchyInfo
|
|
8603
|
+
hierarchyInfo: output.hierarchyInfo != null
|
|
8719
8604
|
? deserializeAws_restJson1AssetHierarchyInfo(output.hierarchyInfo, context)
|
|
8720
8605
|
: undefined,
|
|
8721
8606
|
relationshipType: __expectString(output.relationshipType),
|
|
@@ -8723,9 +8608,7 @@ var deserializeAws_restJson1AssetRelationshipSummary = function (output, context
|
|
|
8723
8608
|
};
|
|
8724
8609
|
var deserializeAws_restJson1AssetStatus = function (output, context) {
|
|
8725
8610
|
return {
|
|
8726
|
-
error: output.error
|
|
8727
|
-
? deserializeAws_restJson1ErrorDetails(output.error, context)
|
|
8728
|
-
: undefined,
|
|
8611
|
+
error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
|
|
8729
8612
|
state: __expectString(output.state),
|
|
8730
8613
|
};
|
|
8731
8614
|
};
|
|
@@ -8744,21 +8627,17 @@ var deserializeAws_restJson1AssetSummary = function (output, context) {
|
|
|
8744
8627
|
return {
|
|
8745
8628
|
arn: __expectString(output.arn),
|
|
8746
8629
|
assetModelId: __expectString(output.assetModelId),
|
|
8747
|
-
creationDate: output.creationDate
|
|
8630
|
+
creationDate: output.creationDate != null
|
|
8748
8631
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
8749
8632
|
: undefined,
|
|
8750
8633
|
description: __expectString(output.description),
|
|
8751
|
-
hierarchies: output.hierarchies
|
|
8752
|
-
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
8753
|
-
: undefined,
|
|
8634
|
+
hierarchies: output.hierarchies != null ? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context) : undefined,
|
|
8754
8635
|
id: __expectString(output.id),
|
|
8755
|
-
lastUpdateDate: output.lastUpdateDate
|
|
8636
|
+
lastUpdateDate: output.lastUpdateDate != null
|
|
8756
8637
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
|
|
8757
8638
|
: undefined,
|
|
8758
8639
|
name: __expectString(output.name),
|
|
8759
|
-
status: output.status
|
|
8760
|
-
? deserializeAws_restJson1AssetStatus(output.status, context)
|
|
8761
|
-
: undefined,
|
|
8640
|
+
status: output.status != null ? deserializeAws_restJson1AssetStatus(output.status, context) : undefined,
|
|
8762
8641
|
};
|
|
8763
8642
|
};
|
|
8764
8643
|
var deserializeAws_restJson1AssociatedAssetsSummaries = function (output, context) {
|
|
@@ -8776,21 +8655,17 @@ var deserializeAws_restJson1AssociatedAssetsSummary = function (output, context)
|
|
|
8776
8655
|
return {
|
|
8777
8656
|
arn: __expectString(output.arn),
|
|
8778
8657
|
assetModelId: __expectString(output.assetModelId),
|
|
8779
|
-
creationDate: output.creationDate
|
|
8658
|
+
creationDate: output.creationDate != null
|
|
8780
8659
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
8781
8660
|
: undefined,
|
|
8782
8661
|
description: __expectString(output.description),
|
|
8783
|
-
hierarchies: output.hierarchies
|
|
8784
|
-
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
8785
|
-
: undefined,
|
|
8662
|
+
hierarchies: output.hierarchies != null ? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context) : undefined,
|
|
8786
8663
|
id: __expectString(output.id),
|
|
8787
|
-
lastUpdateDate: output.lastUpdateDate
|
|
8664
|
+
lastUpdateDate: output.lastUpdateDate != null
|
|
8788
8665
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
|
|
8789
8666
|
: undefined,
|
|
8790
8667
|
name: __expectString(output.name),
|
|
8791
|
-
status: output.status
|
|
8792
|
-
? deserializeAws_restJson1AssetStatus(output.status, context)
|
|
8793
|
-
: undefined,
|
|
8668
|
+
status: output.status != null ? deserializeAws_restJson1AssetStatus(output.status, context) : undefined,
|
|
8794
8669
|
};
|
|
8795
8670
|
};
|
|
8796
8671
|
var deserializeAws_restJson1Attribute = function (output, context) {
|
|
@@ -8841,7 +8716,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorEntry = function
|
|
|
8841
8716
|
var deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorInfo = function (output, context) {
|
|
8842
8717
|
return {
|
|
8843
8718
|
errorCode: __expectString(output.errorCode),
|
|
8844
|
-
errorTimestamp: output.errorTimestamp
|
|
8719
|
+
errorTimestamp: output.errorTimestamp != null
|
|
8845
8720
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.errorTimestamp)))
|
|
8846
8721
|
: undefined,
|
|
8847
8722
|
};
|
|
@@ -8861,7 +8736,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyAggregatesSkippedEntry = functi
|
|
|
8861
8736
|
return {
|
|
8862
8737
|
completionStatus: __expectString(output.completionStatus),
|
|
8863
8738
|
entryId: __expectString(output.entryId),
|
|
8864
|
-
errorInfo: output.errorInfo
|
|
8739
|
+
errorInfo: output.errorInfo != null
|
|
8865
8740
|
? deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorInfo(output.errorInfo, context)
|
|
8866
8741
|
: undefined,
|
|
8867
8742
|
};
|
|
@@ -8879,7 +8754,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyAggregatesSuccessEntries = func
|
|
|
8879
8754
|
};
|
|
8880
8755
|
var deserializeAws_restJson1BatchGetAssetPropertyAggregatesSuccessEntry = function (output, context) {
|
|
8881
8756
|
return {
|
|
8882
|
-
aggregatedValues: output.aggregatedValues
|
|
8757
|
+
aggregatedValues: output.aggregatedValues != null
|
|
8883
8758
|
? deserializeAws_restJson1AggregatedValues(output.aggregatedValues, context)
|
|
8884
8759
|
: undefined,
|
|
8885
8760
|
entryId: __expectString(output.entryId),
|
|
@@ -8906,7 +8781,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyValueErrorEntry = function (out
|
|
|
8906
8781
|
var deserializeAws_restJson1BatchGetAssetPropertyValueErrorInfo = function (output, context) {
|
|
8907
8782
|
return {
|
|
8908
8783
|
errorCode: __expectString(output.errorCode),
|
|
8909
|
-
errorTimestamp: output.errorTimestamp
|
|
8784
|
+
errorTimestamp: output.errorTimestamp != null
|
|
8910
8785
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.errorTimestamp)))
|
|
8911
8786
|
: undefined,
|
|
8912
8787
|
};
|
|
@@ -8932,7 +8807,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorEntry = functi
|
|
|
8932
8807
|
var deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorInfo = function (output, context) {
|
|
8933
8808
|
return {
|
|
8934
8809
|
errorCode: __expectString(output.errorCode),
|
|
8935
|
-
errorTimestamp: output.errorTimestamp
|
|
8810
|
+
errorTimestamp: output.errorTimestamp != null
|
|
8936
8811
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.errorTimestamp)))
|
|
8937
8812
|
: undefined,
|
|
8938
8813
|
};
|
|
@@ -8952,7 +8827,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyValueHistorySkippedEntry = func
|
|
|
8952
8827
|
return {
|
|
8953
8828
|
completionStatus: __expectString(output.completionStatus),
|
|
8954
8829
|
entryId: __expectString(output.entryId),
|
|
8955
|
-
errorInfo: output.errorInfo
|
|
8830
|
+
errorInfo: output.errorInfo != null
|
|
8956
8831
|
? deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorInfo(output.errorInfo, context)
|
|
8957
8832
|
: undefined,
|
|
8958
8833
|
};
|
|
@@ -8970,7 +8845,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyValueHistorySuccessEntries = fu
|
|
|
8970
8845
|
};
|
|
8971
8846
|
var deserializeAws_restJson1BatchGetAssetPropertyValueHistorySuccessEntry = function (output, context) {
|
|
8972
8847
|
return {
|
|
8973
|
-
assetPropertyValueHistory: output.assetPropertyValueHistory
|
|
8848
|
+
assetPropertyValueHistory: output.assetPropertyValueHistory != null
|
|
8974
8849
|
? deserializeAws_restJson1AssetPropertyValueHistory(output.assetPropertyValueHistory, context)
|
|
8975
8850
|
: undefined,
|
|
8976
8851
|
entryId: __expectString(output.entryId),
|
|
@@ -8991,7 +8866,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyValueSkippedEntry = function (o
|
|
|
8991
8866
|
return {
|
|
8992
8867
|
completionStatus: __expectString(output.completionStatus),
|
|
8993
8868
|
entryId: __expectString(output.entryId),
|
|
8994
|
-
errorInfo: output.errorInfo
|
|
8869
|
+
errorInfo: output.errorInfo != null
|
|
8995
8870
|
? deserializeAws_restJson1BatchGetAssetPropertyValueErrorInfo(output.errorInfo, context)
|
|
8996
8871
|
: undefined,
|
|
8997
8872
|
};
|
|
@@ -9009,7 +8884,7 @@ var deserializeAws_restJson1BatchGetAssetPropertyValueSuccessEntries = function
|
|
|
9009
8884
|
};
|
|
9010
8885
|
var deserializeAws_restJson1BatchGetAssetPropertyValueSuccessEntry = function (output, context) {
|
|
9011
8886
|
return {
|
|
9012
|
-
assetPropertyValue: output.assetPropertyValue
|
|
8887
|
+
assetPropertyValue: output.assetPropertyValue != null
|
|
9013
8888
|
? deserializeAws_restJson1AssetPropertyValue(output.assetPropertyValue, context)
|
|
9014
8889
|
: undefined,
|
|
9015
8890
|
entryId: __expectString(output.entryId),
|
|
@@ -9019,9 +8894,7 @@ var deserializeAws_restJson1BatchPutAssetPropertyError = function (output, conte
|
|
|
9019
8894
|
return {
|
|
9020
8895
|
errorCode: __expectString(output.errorCode),
|
|
9021
8896
|
errorMessage: __expectString(output.errorMessage),
|
|
9022
|
-
timestamps: output.timestamps
|
|
9023
|
-
? deserializeAws_restJson1Timestamps(output.timestamps, context)
|
|
9024
|
-
: undefined,
|
|
8897
|
+
timestamps: output.timestamps != null ? deserializeAws_restJson1Timestamps(output.timestamps, context) : undefined,
|
|
9025
8898
|
};
|
|
9026
8899
|
};
|
|
9027
8900
|
var deserializeAws_restJson1BatchPutAssetPropertyErrorEntries = function (output, context) {
|
|
@@ -9038,9 +8911,7 @@ var deserializeAws_restJson1BatchPutAssetPropertyErrorEntries = function (output
|
|
|
9038
8911
|
var deserializeAws_restJson1BatchPutAssetPropertyErrorEntry = function (output, context) {
|
|
9039
8912
|
return {
|
|
9040
8913
|
entryId: __expectString(output.entryId),
|
|
9041
|
-
errors: output.errors
|
|
9042
|
-
? deserializeAws_restJson1BatchPutAssetPropertyErrors(output.errors, context)
|
|
9043
|
-
: undefined,
|
|
8914
|
+
errors: output.errors != null ? deserializeAws_restJson1BatchPutAssetPropertyErrors(output.errors, context) : undefined,
|
|
9044
8915
|
};
|
|
9045
8916
|
};
|
|
9046
8917
|
var deserializeAws_restJson1BatchPutAssetPropertyErrors = function (output, context) {
|
|
@@ -9056,9 +8927,7 @@ var deserializeAws_restJson1BatchPutAssetPropertyErrors = function (output, cont
|
|
|
9056
8927
|
};
|
|
9057
8928
|
var deserializeAws_restJson1CompositeModelProperty = function (output, context) {
|
|
9058
8929
|
return {
|
|
9059
|
-
assetProperty: output.assetProperty
|
|
9060
|
-
? deserializeAws_restJson1Property(output.assetProperty, context)
|
|
9061
|
-
: undefined,
|
|
8930
|
+
assetProperty: output.assetProperty != null ? deserializeAws_restJson1Property(output.assetProperty, context) : undefined,
|
|
9062
8931
|
name: __expectString(output.name),
|
|
9063
8932
|
type: __expectString(output.type),
|
|
9064
8933
|
};
|
|
@@ -9071,9 +8940,7 @@ var deserializeAws_restJson1ConfigurationErrorDetails = function (output, contex
|
|
|
9071
8940
|
};
|
|
9072
8941
|
var deserializeAws_restJson1ConfigurationStatus = function (output, context) {
|
|
9073
8942
|
return {
|
|
9074
|
-
error: output.error
|
|
9075
|
-
? deserializeAws_restJson1ConfigurationErrorDetails(output.error, context)
|
|
9076
|
-
: undefined,
|
|
8943
|
+
error: output.error != null ? deserializeAws_restJson1ConfigurationErrorDetails(output.error, context) : undefined,
|
|
9077
8944
|
state: __expectString(output.state),
|
|
9078
8945
|
};
|
|
9079
8946
|
};
|
|
@@ -9096,12 +8963,12 @@ var deserializeAws_restJson1DashboardSummaries = function (output, context) {
|
|
|
9096
8963
|
};
|
|
9097
8964
|
var deserializeAws_restJson1DashboardSummary = function (output, context) {
|
|
9098
8965
|
return {
|
|
9099
|
-
creationDate: output.creationDate
|
|
8966
|
+
creationDate: output.creationDate != null
|
|
9100
8967
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
9101
8968
|
: undefined,
|
|
9102
8969
|
description: __expectString(output.description),
|
|
9103
8970
|
id: __expectString(output.id),
|
|
9104
|
-
lastUpdateDate: output.lastUpdateDate
|
|
8971
|
+
lastUpdateDate: output.lastUpdateDate != null
|
|
9105
8972
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
|
|
9106
8973
|
: undefined,
|
|
9107
8974
|
name: __expectString(output.name),
|
|
@@ -9127,18 +8994,14 @@ var deserializeAws_restJson1DetailedErrors = function (output, context) {
|
|
|
9127
8994
|
var deserializeAws_restJson1ErrorDetails = function (output, context) {
|
|
9128
8995
|
return {
|
|
9129
8996
|
code: __expectString(output.code),
|
|
9130
|
-
details: output.details
|
|
9131
|
-
? deserializeAws_restJson1DetailedErrors(output.details, context)
|
|
9132
|
-
: undefined,
|
|
8997
|
+
details: output.details != null ? deserializeAws_restJson1DetailedErrors(output.details, context) : undefined,
|
|
9133
8998
|
message: __expectString(output.message),
|
|
9134
8999
|
};
|
|
9135
9000
|
};
|
|
9136
9001
|
var deserializeAws_restJson1ExpressionVariable = function (output, context) {
|
|
9137
9002
|
return {
|
|
9138
9003
|
name: __expectString(output.name),
|
|
9139
|
-
value: output.value
|
|
9140
|
-
? deserializeAws_restJson1VariableValue(output.value, context)
|
|
9141
|
-
: undefined,
|
|
9004
|
+
value: output.value != null ? deserializeAws_restJson1VariableValue(output.value, context) : undefined,
|
|
9142
9005
|
};
|
|
9143
9006
|
};
|
|
9144
9007
|
var deserializeAws_restJson1ExpressionVariables = function (output, context) {
|
|
@@ -9176,12 +9039,8 @@ var deserializeAws_restJson1GatewayCapabilitySummary = function (output, context
|
|
|
9176
9039
|
};
|
|
9177
9040
|
var deserializeAws_restJson1GatewayPlatform = function (output, context) {
|
|
9178
9041
|
return {
|
|
9179
|
-
greengrass: output.greengrass
|
|
9180
|
-
|
|
9181
|
-
: undefined,
|
|
9182
|
-
greengrassV2: output.greengrassV2 !== undefined && output.greengrassV2 !== null
|
|
9183
|
-
? deserializeAws_restJson1GreengrassV2(output.greengrassV2, context)
|
|
9184
|
-
: undefined,
|
|
9042
|
+
greengrass: output.greengrass != null ? deserializeAws_restJson1Greengrass(output.greengrass, context) : undefined,
|
|
9043
|
+
greengrassV2: output.greengrassV2 != null ? deserializeAws_restJson1GreengrassV2(output.greengrassV2, context) : undefined,
|
|
9185
9044
|
};
|
|
9186
9045
|
};
|
|
9187
9046
|
var deserializeAws_restJson1GatewaySummaries = function (output, context) {
|
|
@@ -9197,18 +9056,18 @@ var deserializeAws_restJson1GatewaySummaries = function (output, context) {
|
|
|
9197
9056
|
};
|
|
9198
9057
|
var deserializeAws_restJson1GatewaySummary = function (output, context) {
|
|
9199
9058
|
return {
|
|
9200
|
-
creationDate: output.creationDate
|
|
9059
|
+
creationDate: output.creationDate != null
|
|
9201
9060
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
9202
9061
|
: undefined,
|
|
9203
|
-
gatewayCapabilitySummaries: output.gatewayCapabilitySummaries
|
|
9062
|
+
gatewayCapabilitySummaries: output.gatewayCapabilitySummaries != null
|
|
9204
9063
|
? deserializeAws_restJson1GatewayCapabilitySummaries(output.gatewayCapabilitySummaries, context)
|
|
9205
9064
|
: undefined,
|
|
9206
9065
|
gatewayId: __expectString(output.gatewayId),
|
|
9207
9066
|
gatewayName: __expectString(output.gatewayName),
|
|
9208
|
-
gatewayPlatform: output.gatewayPlatform
|
|
9067
|
+
gatewayPlatform: output.gatewayPlatform != null
|
|
9209
9068
|
? deserializeAws_restJson1GatewayPlatform(output.gatewayPlatform, context)
|
|
9210
9069
|
: undefined,
|
|
9211
|
-
lastUpdateDate: output.lastUpdateDate
|
|
9070
|
+
lastUpdateDate: output.lastUpdateDate != null
|
|
9212
9071
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
|
|
9213
9072
|
: undefined,
|
|
9214
9073
|
};
|
|
@@ -9240,18 +9099,10 @@ var deserializeAws_restJson1IAMUserIdentity = function (output, context) {
|
|
|
9240
9099
|
};
|
|
9241
9100
|
var deserializeAws_restJson1Identity = function (output, context) {
|
|
9242
9101
|
return {
|
|
9243
|
-
group: output.group
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
? deserializeAws_restJson1IAMRoleIdentity(output.iamRole, context)
|
|
9248
|
-
: undefined,
|
|
9249
|
-
iamUser: output.iamUser !== undefined && output.iamUser !== null
|
|
9250
|
-
? deserializeAws_restJson1IAMUserIdentity(output.iamUser, context)
|
|
9251
|
-
: undefined,
|
|
9252
|
-
user: output.user !== undefined && output.user !== null
|
|
9253
|
-
? deserializeAws_restJson1UserIdentity(output.user, context)
|
|
9254
|
-
: undefined,
|
|
9102
|
+
group: output.group != null ? deserializeAws_restJson1GroupIdentity(output.group, context) : undefined,
|
|
9103
|
+
iamRole: output.iamRole != null ? deserializeAws_restJson1IAMRoleIdentity(output.iamRole, context) : undefined,
|
|
9104
|
+
iamUser: output.iamUser != null ? deserializeAws_restJson1IAMUserIdentity(output.iamUser, context) : undefined,
|
|
9105
|
+
user: output.user != null ? deserializeAws_restJson1UserIdentity(output.user, context) : undefined,
|
|
9255
9106
|
};
|
|
9256
9107
|
};
|
|
9257
9108
|
var deserializeAws_restJson1ImageLocation = function (output, context) {
|
|
@@ -9262,12 +9113,8 @@ var deserializeAws_restJson1ImageLocation = function (output, context) {
|
|
|
9262
9113
|
};
|
|
9263
9114
|
var deserializeAws_restJson1InterpolatedAssetPropertyValue = function (output, context) {
|
|
9264
9115
|
return {
|
|
9265
|
-
timestamp: output.timestamp
|
|
9266
|
-
|
|
9267
|
-
: undefined,
|
|
9268
|
-
value: output.value !== undefined && output.value !== null
|
|
9269
|
-
? deserializeAws_restJson1Variant(output.value, context)
|
|
9270
|
-
: undefined,
|
|
9116
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1TimeInNanos(output.timestamp, context) : undefined,
|
|
9117
|
+
value: output.value != null ? deserializeAws_restJson1Variant(output.value, context) : undefined,
|
|
9271
9118
|
};
|
|
9272
9119
|
};
|
|
9273
9120
|
var deserializeAws_restJson1InterpolatedAssetPropertyValues = function (output, context) {
|
|
@@ -9288,14 +9135,14 @@ var deserializeAws_restJson1LoggingOptions = function (output, context) {
|
|
|
9288
9135
|
};
|
|
9289
9136
|
var deserializeAws_restJson1Measurement = function (output, context) {
|
|
9290
9137
|
return {
|
|
9291
|
-
processingConfig: output.processingConfig
|
|
9138
|
+
processingConfig: output.processingConfig != null
|
|
9292
9139
|
? deserializeAws_restJson1MeasurementProcessingConfig(output.processingConfig, context)
|
|
9293
9140
|
: undefined,
|
|
9294
9141
|
};
|
|
9295
9142
|
};
|
|
9296
9143
|
var deserializeAws_restJson1MeasurementProcessingConfig = function (output, context) {
|
|
9297
9144
|
return {
|
|
9298
|
-
forwardingConfig: output.forwardingConfig
|
|
9145
|
+
forwardingConfig: output.forwardingConfig != null
|
|
9299
9146
|
? deserializeAws_restJson1ForwardingConfig(output.forwardingConfig, context)
|
|
9300
9147
|
: undefined,
|
|
9301
9148
|
};
|
|
@@ -9303,15 +9150,11 @@ var deserializeAws_restJson1MeasurementProcessingConfig = function (output, cont
|
|
|
9303
9150
|
var deserializeAws_restJson1Metric = function (output, context) {
|
|
9304
9151
|
return {
|
|
9305
9152
|
expression: __expectString(output.expression),
|
|
9306
|
-
processingConfig: output.processingConfig
|
|
9153
|
+
processingConfig: output.processingConfig != null
|
|
9307
9154
|
? deserializeAws_restJson1MetricProcessingConfig(output.processingConfig, context)
|
|
9308
9155
|
: undefined,
|
|
9309
|
-
variables: output.variables
|
|
9310
|
-
|
|
9311
|
-
: undefined,
|
|
9312
|
-
window: output.window !== undefined && output.window !== null
|
|
9313
|
-
? deserializeAws_restJson1MetricWindow(output.window, context)
|
|
9314
|
-
: undefined,
|
|
9156
|
+
variables: output.variables != null ? deserializeAws_restJson1ExpressionVariables(output.variables, context) : undefined,
|
|
9157
|
+
window: output.window != null ? deserializeAws_restJson1MetricWindow(output.window, context) : undefined,
|
|
9315
9158
|
};
|
|
9316
9159
|
};
|
|
9317
9160
|
var deserializeAws_restJson1MetricProcessingConfig = function (output, context) {
|
|
@@ -9321,9 +9164,7 @@ var deserializeAws_restJson1MetricProcessingConfig = function (output, context)
|
|
|
9321
9164
|
};
|
|
9322
9165
|
var deserializeAws_restJson1MetricWindow = function (output, context) {
|
|
9323
9166
|
return {
|
|
9324
|
-
tumbling: output.tumbling
|
|
9325
|
-
? deserializeAws_restJson1TumblingWindow(output.tumbling, context)
|
|
9326
|
-
: undefined,
|
|
9167
|
+
tumbling: output.tumbling != null ? deserializeAws_restJson1TumblingWindow(output.tumbling, context) : undefined,
|
|
9327
9168
|
};
|
|
9328
9169
|
};
|
|
9329
9170
|
var deserializeAws_restJson1MonitorErrorDetails = function (output, context) {
|
|
@@ -9334,7 +9175,7 @@ var deserializeAws_restJson1MonitorErrorDetails = function (output, context) {
|
|
|
9334
9175
|
};
|
|
9335
9176
|
var deserializeAws_restJson1MultiLayerStorage = function (output, context) {
|
|
9336
9177
|
return {
|
|
9337
|
-
customerManagedS3Storage: output.customerManagedS3Storage
|
|
9178
|
+
customerManagedS3Storage: output.customerManagedS3Storage != null
|
|
9338
9179
|
? deserializeAws_restJson1CustomerManagedS3Storage(output.customerManagedS3Storage, context)
|
|
9339
9180
|
: undefined,
|
|
9340
9181
|
};
|
|
@@ -9346,9 +9187,7 @@ var deserializeAws_restJson1PortalResource = function (output, context) {
|
|
|
9346
9187
|
};
|
|
9347
9188
|
var deserializeAws_restJson1PortalStatus = function (output, context) {
|
|
9348
9189
|
return {
|
|
9349
|
-
error: output.error
|
|
9350
|
-
? deserializeAws_restJson1MonitorErrorDetails(output.error, context)
|
|
9351
|
-
: undefined,
|
|
9190
|
+
error: output.error != null ? deserializeAws_restJson1MonitorErrorDetails(output.error, context) : undefined,
|
|
9352
9191
|
state: __expectString(output.state),
|
|
9353
9192
|
};
|
|
9354
9193
|
};
|
|
@@ -9365,20 +9204,18 @@ var deserializeAws_restJson1PortalSummaries = function (output, context) {
|
|
|
9365
9204
|
};
|
|
9366
9205
|
var deserializeAws_restJson1PortalSummary = function (output, context) {
|
|
9367
9206
|
return {
|
|
9368
|
-
creationDate: output.creationDate
|
|
9207
|
+
creationDate: output.creationDate != null
|
|
9369
9208
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
9370
9209
|
: undefined,
|
|
9371
9210
|
description: __expectString(output.description),
|
|
9372
9211
|
id: __expectString(output.id),
|
|
9373
|
-
lastUpdateDate: output.lastUpdateDate
|
|
9212
|
+
lastUpdateDate: output.lastUpdateDate != null
|
|
9374
9213
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
|
|
9375
9214
|
: undefined,
|
|
9376
9215
|
name: __expectString(output.name),
|
|
9377
9216
|
roleArn: __expectString(output.roleArn),
|
|
9378
9217
|
startUrl: __expectString(output.startUrl),
|
|
9379
|
-
status: output.status
|
|
9380
|
-
? deserializeAws_restJson1PortalStatus(output.status, context)
|
|
9381
|
-
: undefined,
|
|
9218
|
+
status: output.status != null ? deserializeAws_restJson1PortalStatus(output.status, context) : undefined,
|
|
9382
9219
|
};
|
|
9383
9220
|
};
|
|
9384
9221
|
var deserializeAws_restJson1ProjectResource = function (output, context) {
|
|
@@ -9399,12 +9236,12 @@ var deserializeAws_restJson1ProjectSummaries = function (output, context) {
|
|
|
9399
9236
|
};
|
|
9400
9237
|
var deserializeAws_restJson1ProjectSummary = function (output, context) {
|
|
9401
9238
|
return {
|
|
9402
|
-
creationDate: output.creationDate
|
|
9239
|
+
creationDate: output.creationDate != null
|
|
9403
9240
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
9404
9241
|
: undefined,
|
|
9405
9242
|
description: __expectString(output.description),
|
|
9406
9243
|
id: __expectString(output.id),
|
|
9407
|
-
lastUpdateDate: output.lastUpdateDate
|
|
9244
|
+
lastUpdateDate: output.lastUpdateDate != null
|
|
9408
9245
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
|
|
9409
9246
|
: undefined,
|
|
9410
9247
|
name: __expectString(output.name),
|
|
@@ -9416,12 +9253,10 @@ var deserializeAws_restJson1Property = function (output, context) {
|
|
|
9416
9253
|
dataType: __expectString(output.dataType),
|
|
9417
9254
|
id: __expectString(output.id),
|
|
9418
9255
|
name: __expectString(output.name),
|
|
9419
|
-
notification: output.notification
|
|
9256
|
+
notification: output.notification != null
|
|
9420
9257
|
? deserializeAws_restJson1PropertyNotification(output.notification, context)
|
|
9421
9258
|
: undefined,
|
|
9422
|
-
type: output.type
|
|
9423
|
-
? deserializeAws_restJson1PropertyType(output.type, context)
|
|
9424
|
-
: undefined,
|
|
9259
|
+
type: output.type != null ? deserializeAws_restJson1PropertyType(output.type, context) : undefined,
|
|
9425
9260
|
unit: __expectString(output.unit),
|
|
9426
9261
|
};
|
|
9427
9262
|
};
|
|
@@ -9433,28 +9268,16 @@ var deserializeAws_restJson1PropertyNotification = function (output, context) {
|
|
|
9433
9268
|
};
|
|
9434
9269
|
var deserializeAws_restJson1PropertyType = function (output, context) {
|
|
9435
9270
|
return {
|
|
9436
|
-
attribute: output.attribute
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
? deserializeAws_restJson1Measurement(output.measurement, context)
|
|
9441
|
-
: undefined,
|
|
9442
|
-
metric: output.metric !== undefined && output.metric !== null
|
|
9443
|
-
? deserializeAws_restJson1Metric(output.metric, context)
|
|
9444
|
-
: undefined,
|
|
9445
|
-
transform: output.transform !== undefined && output.transform !== null
|
|
9446
|
-
? deserializeAws_restJson1Transform(output.transform, context)
|
|
9447
|
-
: undefined,
|
|
9271
|
+
attribute: output.attribute != null ? deserializeAws_restJson1Attribute(output.attribute, context) : undefined,
|
|
9272
|
+
measurement: output.measurement != null ? deserializeAws_restJson1Measurement(output.measurement, context) : undefined,
|
|
9273
|
+
metric: output.metric != null ? deserializeAws_restJson1Metric(output.metric, context) : undefined,
|
|
9274
|
+
transform: output.transform != null ? deserializeAws_restJson1Transform(output.transform, context) : undefined,
|
|
9448
9275
|
};
|
|
9449
9276
|
};
|
|
9450
9277
|
var deserializeAws_restJson1Resource = function (output, context) {
|
|
9451
9278
|
return {
|
|
9452
|
-
portal: output.portal
|
|
9453
|
-
|
|
9454
|
-
: undefined,
|
|
9455
|
-
project: output.project !== undefined && output.project !== null
|
|
9456
|
-
? deserializeAws_restJson1ProjectResource(output.project, context)
|
|
9457
|
-
: undefined,
|
|
9279
|
+
portal: output.portal != null ? deserializeAws_restJson1PortalResource(output.portal, context) : undefined,
|
|
9280
|
+
project: output.project != null ? deserializeAws_restJson1ProjectResource(output.project, context) : undefined,
|
|
9458
9281
|
};
|
|
9459
9282
|
};
|
|
9460
9283
|
var deserializeAws_restJson1RetentionPeriod = function (output, context) {
|
|
@@ -9497,11 +9320,11 @@ var deserializeAws_restJson1TimeSeriesSummary = function (output, context) {
|
|
|
9497
9320
|
dataType: __expectString(output.dataType),
|
|
9498
9321
|
dataTypeSpec: __expectString(output.dataTypeSpec),
|
|
9499
9322
|
propertyId: __expectString(output.propertyId),
|
|
9500
|
-
timeSeriesCreationDate: output.timeSeriesCreationDate
|
|
9323
|
+
timeSeriesCreationDate: output.timeSeriesCreationDate != null
|
|
9501
9324
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timeSeriesCreationDate)))
|
|
9502
9325
|
: undefined,
|
|
9503
9326
|
timeSeriesId: __expectString(output.timeSeriesId),
|
|
9504
|
-
timeSeriesLastUpdateDate: output.timeSeriesLastUpdateDate
|
|
9327
|
+
timeSeriesLastUpdateDate: output.timeSeriesLastUpdateDate != null
|
|
9505
9328
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timeSeriesLastUpdateDate)))
|
|
9506
9329
|
: undefined,
|
|
9507
9330
|
};
|
|
@@ -9520,18 +9343,16 @@ var deserializeAws_restJson1Timestamps = function (output, context) {
|
|
|
9520
9343
|
var deserializeAws_restJson1Transform = function (output, context) {
|
|
9521
9344
|
return {
|
|
9522
9345
|
expression: __expectString(output.expression),
|
|
9523
|
-
processingConfig: output.processingConfig
|
|
9346
|
+
processingConfig: output.processingConfig != null
|
|
9524
9347
|
? deserializeAws_restJson1TransformProcessingConfig(output.processingConfig, context)
|
|
9525
9348
|
: undefined,
|
|
9526
|
-
variables: output.variables
|
|
9527
|
-
? deserializeAws_restJson1ExpressionVariables(output.variables, context)
|
|
9528
|
-
: undefined,
|
|
9349
|
+
variables: output.variables != null ? deserializeAws_restJson1ExpressionVariables(output.variables, context) : undefined,
|
|
9529
9350
|
};
|
|
9530
9351
|
};
|
|
9531
9352
|
var deserializeAws_restJson1TransformProcessingConfig = function (output, context) {
|
|
9532
9353
|
return {
|
|
9533
9354
|
computeLocation: __expectString(output.computeLocation),
|
|
9534
|
-
forwardingConfig: output.forwardingConfig
|
|
9355
|
+
forwardingConfig: output.forwardingConfig != null
|
|
9535
9356
|
? deserializeAws_restJson1ForwardingConfig(output.forwardingConfig, context)
|
|
9536
9357
|
: undefined,
|
|
9537
9358
|
};
|