@aws-sdk/client-iotsitewise 3.28.0 → 3.32.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.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat as __limitedParseFloat, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  export var serializeAws_restJson1AssociateAssetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
6
6
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
@@ -2478,9 +2478,9 @@ var deserializeAws_restJson1AssociateAssetsCommandError = function (output, cont
2478
2478
  });
2479
2479
  }); };
2480
2480
  export var deserializeAws_restJson1BatchAssociateProjectAssetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2481
- var contents, data;
2482
- return __generator(this, function (_a) {
2483
- switch (_a.label) {
2481
+ var contents, data, _a, _b;
2482
+ return __generator(this, function (_c) {
2483
+ switch (_c.label) {
2484
2484
  case 0:
2485
2485
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2486
2486
  return [2 /*return*/, deserializeAws_restJson1BatchAssociateProjectAssetsCommandError(output, context)];
@@ -2489,9 +2489,11 @@ export var deserializeAws_restJson1BatchAssociateProjectAssetsCommand = function
2489
2489
  $metadata: deserializeMetadata(output),
2490
2490
  errors: undefined,
2491
2491
  };
2492
+ _a = __expectNonNull;
2493
+ _b = __expectObject;
2492
2494
  return [4 /*yield*/, parseBody(output.body, context)];
2493
2495
  case 1:
2494
- data = _a.sent();
2496
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2495
2497
  if (data.errors !== undefined && data.errors !== null) {
2496
2498
  contents.errors = deserializeAws_restJson1BatchAssociateProjectAssetsErrors(data.errors, context);
2497
2499
  }
@@ -2570,9 +2572,9 @@ var deserializeAws_restJson1BatchAssociateProjectAssetsCommandError = function (
2570
2572
  });
2571
2573
  }); };
2572
2574
  export var deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2573
- var contents, data;
2574
- return __generator(this, function (_a) {
2575
- switch (_a.label) {
2575
+ var contents, data, _a, _b;
2576
+ return __generator(this, function (_c) {
2577
+ switch (_c.label) {
2576
2578
  case 0:
2577
2579
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2578
2580
  return [2 /*return*/, deserializeAws_restJson1BatchDisassociateProjectAssetsCommandError(output, context)];
@@ -2581,9 +2583,11 @@ export var deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = funct
2581
2583
  $metadata: deserializeMetadata(output),
2582
2584
  errors: undefined,
2583
2585
  };
2586
+ _a = __expectNonNull;
2587
+ _b = __expectObject;
2584
2588
  return [4 /*yield*/, parseBody(output.body, context)];
2585
2589
  case 1:
2586
- data = _a.sent();
2590
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2587
2591
  if (data.errors !== undefined && data.errors !== null) {
2588
2592
  contents.errors = deserializeAws_restJson1BatchDisassociateProjectAssetsErrors(data.errors, context);
2589
2593
  }
@@ -2654,9 +2658,9 @@ var deserializeAws_restJson1BatchDisassociateProjectAssetsCommandError = functio
2654
2658
  });
2655
2659
  }); };
2656
2660
  export var deserializeAws_restJson1BatchPutAssetPropertyValueCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2657
- var contents, data;
2658
- return __generator(this, function (_a) {
2659
- switch (_a.label) {
2661
+ var contents, data, _a, _b;
2662
+ return __generator(this, function (_c) {
2663
+ switch (_c.label) {
2660
2664
  case 0:
2661
2665
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2662
2666
  return [2 /*return*/, deserializeAws_restJson1BatchPutAssetPropertyValueCommandError(output, context)];
@@ -2665,9 +2669,11 @@ export var deserializeAws_restJson1BatchPutAssetPropertyValueCommand = function
2665
2669
  $metadata: deserializeMetadata(output),
2666
2670
  errorEntries: undefined,
2667
2671
  };
2672
+ _a = __expectNonNull;
2673
+ _b = __expectObject;
2668
2674
  return [4 /*yield*/, parseBody(output.body, context)];
2669
2675
  case 1:
2670
- data = _a.sent();
2676
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2671
2677
  if (data.errorEntries !== undefined && data.errorEntries !== null) {
2672
2678
  contents.errorEntries = deserializeAws_restJson1BatchPutAssetPropertyErrorEntries(data.errorEntries, context);
2673
2679
  }
@@ -2762,9 +2768,9 @@ var deserializeAws_restJson1BatchPutAssetPropertyValueCommandError = function (o
2762
2768
  });
2763
2769
  }); };
2764
2770
  export var deserializeAws_restJson1CreateAccessPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2765
- var contents, data;
2766
- return __generator(this, function (_a) {
2767
- switch (_a.label) {
2771
+ var contents, data, _a, _b;
2772
+ return __generator(this, function (_c) {
2773
+ switch (_c.label) {
2768
2774
  case 0:
2769
2775
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2770
2776
  return [2 /*return*/, deserializeAws_restJson1CreateAccessPolicyCommandError(output, context)];
@@ -2774,9 +2780,11 @@ export var deserializeAws_restJson1CreateAccessPolicyCommand = function (output,
2774
2780
  accessPolicyArn: undefined,
2775
2781
  accessPolicyId: undefined,
2776
2782
  };
2783
+ _a = __expectNonNull;
2784
+ _b = __expectObject;
2777
2785
  return [4 /*yield*/, parseBody(output.body, context)];
2778
2786
  case 1:
2779
- data = _a.sent();
2787
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2780
2788
  if (data.accessPolicyArn !== undefined && data.accessPolicyArn !== null) {
2781
2789
  contents.accessPolicyArn = __expectString(data.accessPolicyArn);
2782
2790
  }
@@ -2858,9 +2866,9 @@ var deserializeAws_restJson1CreateAccessPolicyCommandError = function (output, c
2858
2866
  });
2859
2867
  }); };
2860
2868
  export var deserializeAws_restJson1CreateAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2861
- var contents, data;
2862
- return __generator(this, function (_a) {
2863
- switch (_a.label) {
2869
+ var contents, data, _a, _b;
2870
+ return __generator(this, function (_c) {
2871
+ switch (_c.label) {
2864
2872
  case 0:
2865
2873
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2866
2874
  return [2 /*return*/, deserializeAws_restJson1CreateAssetCommandError(output, context)];
@@ -2871,9 +2879,11 @@ export var deserializeAws_restJson1CreateAssetCommand = function (output, contex
2871
2879
  assetId: undefined,
2872
2880
  assetStatus: undefined,
2873
2881
  };
2882
+ _a = __expectNonNull;
2883
+ _b = __expectObject;
2874
2884
  return [4 /*yield*/, parseBody(output.body, context)];
2875
2885
  case 1:
2876
- data = _a.sent();
2886
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2877
2887
  if (data.assetArn !== undefined && data.assetArn !== null) {
2878
2888
  contents.assetArn = __expectString(data.assetArn);
2879
2889
  }
@@ -2974,9 +2984,9 @@ var deserializeAws_restJson1CreateAssetCommandError = function (output, context)
2974
2984
  });
2975
2985
  }); };
2976
2986
  export var deserializeAws_restJson1CreateAssetModelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2977
- var contents, data;
2978
- return __generator(this, function (_a) {
2979
- switch (_a.label) {
2987
+ var contents, data, _a, _b;
2988
+ return __generator(this, function (_c) {
2989
+ switch (_c.label) {
2980
2990
  case 0:
2981
2991
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2982
2992
  return [2 /*return*/, deserializeAws_restJson1CreateAssetModelCommandError(output, context)];
@@ -2987,9 +2997,11 @@ export var deserializeAws_restJson1CreateAssetModelCommand = function (output, c
2987
2997
  assetModelId: undefined,
2988
2998
  assetModelStatus: undefined,
2989
2999
  };
3000
+ _a = __expectNonNull;
3001
+ _b = __expectObject;
2990
3002
  return [4 /*yield*/, parseBody(output.body, context)];
2991
3003
  case 1:
2992
- data = _a.sent();
3004
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2993
3005
  if (data.assetModelArn !== undefined && data.assetModelArn !== null) {
2994
3006
  contents.assetModelArn = __expectString(data.assetModelArn);
2995
3007
  }
@@ -3090,9 +3102,9 @@ var deserializeAws_restJson1CreateAssetModelCommandError = function (output, con
3090
3102
  });
3091
3103
  }); };
3092
3104
  export var deserializeAws_restJson1CreateDashboardCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3093
- var contents, data;
3094
- return __generator(this, function (_a) {
3095
- switch (_a.label) {
3105
+ var contents, data, _a, _b;
3106
+ return __generator(this, function (_c) {
3107
+ switch (_c.label) {
3096
3108
  case 0:
3097
3109
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3098
3110
  return [2 /*return*/, deserializeAws_restJson1CreateDashboardCommandError(output, context)];
@@ -3102,9 +3114,11 @@ export var deserializeAws_restJson1CreateDashboardCommand = function (output, co
3102
3114
  dashboardArn: undefined,
3103
3115
  dashboardId: undefined,
3104
3116
  };
3117
+ _a = __expectNonNull;
3118
+ _b = __expectObject;
3105
3119
  return [4 /*yield*/, parseBody(output.body, context)];
3106
3120
  case 1:
3107
- data = _a.sent();
3121
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3108
3122
  if (data.dashboardArn !== undefined && data.dashboardArn !== null) {
3109
3123
  contents.dashboardArn = __expectString(data.dashboardArn);
3110
3124
  }
@@ -3186,9 +3200,9 @@ var deserializeAws_restJson1CreateDashboardCommandError = function (output, cont
3186
3200
  });
3187
3201
  }); };
3188
3202
  export var deserializeAws_restJson1CreateGatewayCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3189
- var contents, data;
3190
- return __generator(this, function (_a) {
3191
- switch (_a.label) {
3203
+ var contents, data, _a, _b;
3204
+ return __generator(this, function (_c) {
3205
+ switch (_c.label) {
3192
3206
  case 0:
3193
3207
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3194
3208
  return [2 /*return*/, deserializeAws_restJson1CreateGatewayCommandError(output, context)];
@@ -3198,9 +3212,11 @@ export var deserializeAws_restJson1CreateGatewayCommand = function (output, cont
3198
3212
  gatewayArn: undefined,
3199
3213
  gatewayId: undefined,
3200
3214
  };
3215
+ _a = __expectNonNull;
3216
+ _b = __expectObject;
3201
3217
  return [4 /*yield*/, parseBody(output.body, context)];
3202
3218
  case 1:
3203
- data = _a.sent();
3219
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3204
3220
  if (data.gatewayArn !== undefined && data.gatewayArn !== null) {
3205
3221
  contents.gatewayArn = __expectString(data.gatewayArn);
3206
3222
  }
@@ -3282,9 +3298,9 @@ var deserializeAws_restJson1CreateGatewayCommandError = function (output, contex
3282
3298
  });
3283
3299
  }); };
3284
3300
  export var deserializeAws_restJson1CreatePortalCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3285
- var contents, data;
3286
- return __generator(this, function (_a) {
3287
- switch (_a.label) {
3301
+ var contents, data, _a, _b;
3302
+ return __generator(this, function (_c) {
3303
+ switch (_c.label) {
3288
3304
  case 0:
3289
3305
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3290
3306
  return [2 /*return*/, deserializeAws_restJson1CreatePortalCommandError(output, context)];
@@ -3297,9 +3313,11 @@ export var deserializeAws_restJson1CreatePortalCommand = function (output, conte
3297
3313
  portalStatus: undefined,
3298
3314
  ssoApplicationId: undefined,
3299
3315
  };
3316
+ _a = __expectNonNull;
3317
+ _b = __expectObject;
3300
3318
  return [4 /*yield*/, parseBody(output.body, context)];
3301
3319
  case 1:
3302
- data = _a.sent();
3320
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3303
3321
  if (data.portalArn !== undefined && data.portalArn !== null) {
3304
3322
  contents.portalArn = __expectString(data.portalArn);
3305
3323
  }
@@ -3390,9 +3408,9 @@ var deserializeAws_restJson1CreatePortalCommandError = function (output, context
3390
3408
  });
3391
3409
  }); };
3392
3410
  export var deserializeAws_restJson1CreateProjectCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3393
- var contents, data;
3394
- return __generator(this, function (_a) {
3395
- switch (_a.label) {
3411
+ var contents, data, _a, _b;
3412
+ return __generator(this, function (_c) {
3413
+ switch (_c.label) {
3396
3414
  case 0:
3397
3415
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3398
3416
  return [2 /*return*/, deserializeAws_restJson1CreateProjectCommandError(output, context)];
@@ -3402,9 +3420,11 @@ export var deserializeAws_restJson1CreateProjectCommand = function (output, cont
3402
3420
  projectArn: undefined,
3403
3421
  projectId: undefined,
3404
3422
  };
3423
+ _a = __expectNonNull;
3424
+ _b = __expectObject;
3405
3425
  return [4 /*yield*/, parseBody(output.body, context)];
3406
3426
  case 1:
3407
- data = _a.sent();
3427
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3408
3428
  if (data.projectArn !== undefined && data.projectArn !== null) {
3409
3429
  contents.projectArn = __expectString(data.projectArn);
3410
3430
  }
@@ -3566,9 +3586,9 @@ var deserializeAws_restJson1DeleteAccessPolicyCommandError = function (output, c
3566
3586
  });
3567
3587
  }); };
3568
3588
  export var deserializeAws_restJson1DeleteAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3569
- var contents, data;
3570
- return __generator(this, function (_a) {
3571
- switch (_a.label) {
3589
+ var contents, data, _a, _b;
3590
+ return __generator(this, function (_c) {
3591
+ switch (_c.label) {
3572
3592
  case 0:
3573
3593
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3574
3594
  return [2 /*return*/, deserializeAws_restJson1DeleteAssetCommandError(output, context)];
@@ -3577,9 +3597,11 @@ export var deserializeAws_restJson1DeleteAssetCommand = function (output, contex
3577
3597
  $metadata: deserializeMetadata(output),
3578
3598
  assetStatus: undefined,
3579
3599
  };
3600
+ _a = __expectNonNull;
3601
+ _b = __expectObject;
3580
3602
  return [4 /*yield*/, parseBody(output.body, context)];
3581
3603
  case 1:
3582
- data = _a.sent();
3604
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3583
3605
  if (data.assetStatus !== undefined && data.assetStatus !== null) {
3584
3606
  contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
3585
3607
  }
@@ -3658,9 +3680,9 @@ var deserializeAws_restJson1DeleteAssetCommandError = function (output, context)
3658
3680
  });
3659
3681
  }); };
3660
3682
  export var deserializeAws_restJson1DeleteAssetModelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3661
- var contents, data;
3662
- return __generator(this, function (_a) {
3663
- switch (_a.label) {
3683
+ var contents, data, _a, _b;
3684
+ return __generator(this, function (_c) {
3685
+ switch (_c.label) {
3664
3686
  case 0:
3665
3687
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3666
3688
  return [2 /*return*/, deserializeAws_restJson1DeleteAssetModelCommandError(output, context)];
@@ -3669,9 +3691,11 @@ export var deserializeAws_restJson1DeleteAssetModelCommand = function (output, c
3669
3691
  $metadata: deserializeMetadata(output),
3670
3692
  assetModelStatus: undefined,
3671
3693
  };
3694
+ _a = __expectNonNull;
3695
+ _b = __expectObject;
3672
3696
  return [4 /*yield*/, parseBody(output.body, context)];
3673
3697
  case 1:
3674
- data = _a.sent();
3698
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3675
3699
  if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
3676
3700
  contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
3677
3701
  }
@@ -3910,9 +3934,9 @@ var deserializeAws_restJson1DeleteGatewayCommandError = function (output, contex
3910
3934
  });
3911
3935
  }); };
3912
3936
  export var deserializeAws_restJson1DeletePortalCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3913
- var contents, data;
3914
- return __generator(this, function (_a) {
3915
- switch (_a.label) {
3937
+ var contents, data, _a, _b;
3938
+ return __generator(this, function (_c) {
3939
+ switch (_c.label) {
3916
3940
  case 0:
3917
3941
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3918
3942
  return [2 /*return*/, deserializeAws_restJson1DeletePortalCommandError(output, context)];
@@ -3921,9 +3945,11 @@ export var deserializeAws_restJson1DeletePortalCommand = function (output, conte
3921
3945
  $metadata: deserializeMetadata(output),
3922
3946
  portalStatus: undefined,
3923
3947
  };
3948
+ _a = __expectNonNull;
3949
+ _b = __expectObject;
3924
3950
  return [4 /*yield*/, parseBody(output.body, context)];
3925
3951
  case 1:
3926
- data = _a.sent();
3952
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3927
3953
  if (data.portalStatus !== undefined && data.portalStatus !== null) {
3928
3954
  contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
3929
3955
  }
@@ -4082,9 +4108,9 @@ var deserializeAws_restJson1DeleteProjectCommandError = function (output, contex
4082
4108
  });
4083
4109
  }); };
4084
4110
  export var deserializeAws_restJson1DescribeAccessPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4085
- var contents, data;
4086
- return __generator(this, function (_a) {
4087
- switch (_a.label) {
4111
+ var contents, data, _a, _b;
4112
+ return __generator(this, function (_c) {
4113
+ switch (_c.label) {
4088
4114
  case 0:
4089
4115
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4090
4116
  return [2 /*return*/, deserializeAws_restJson1DescribeAccessPolicyCommandError(output, context)];
@@ -4099,14 +4125,16 @@ export var deserializeAws_restJson1DescribeAccessPolicyCommand = function (outpu
4099
4125
  accessPolicyPermission: undefined,
4100
4126
  accessPolicyResource: undefined,
4101
4127
  };
4128
+ _a = __expectNonNull;
4129
+ _b = __expectObject;
4102
4130
  return [4 /*yield*/, parseBody(output.body, context)];
4103
4131
  case 1:
4104
- data = _a.sent();
4132
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4105
4133
  if (data.accessPolicyArn !== undefined && data.accessPolicyArn !== null) {
4106
4134
  contents.accessPolicyArn = __expectString(data.accessPolicyArn);
4107
4135
  }
4108
4136
  if (data.accessPolicyCreationDate !== undefined && data.accessPolicyCreationDate !== null) {
4109
- contents.accessPolicyCreationDate = new Date(Math.round(data.accessPolicyCreationDate * 1000));
4137
+ contents.accessPolicyCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.accessPolicyCreationDate)));
4110
4138
  }
4111
4139
  if (data.accessPolicyId !== undefined && data.accessPolicyId !== null) {
4112
4140
  contents.accessPolicyId = __expectString(data.accessPolicyId);
@@ -4115,7 +4143,7 @@ export var deserializeAws_restJson1DescribeAccessPolicyCommand = function (outpu
4115
4143
  contents.accessPolicyIdentity = deserializeAws_restJson1Identity(data.accessPolicyIdentity, context);
4116
4144
  }
4117
4145
  if (data.accessPolicyLastUpdateDate !== undefined && data.accessPolicyLastUpdateDate !== null) {
4118
- contents.accessPolicyLastUpdateDate = new Date(Math.round(data.accessPolicyLastUpdateDate * 1000));
4146
+ contents.accessPolicyLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.accessPolicyLastUpdateDate)));
4119
4147
  }
4120
4148
  if (data.accessPolicyPermission !== undefined && data.accessPolicyPermission !== null) {
4121
4149
  contents.accessPolicyPermission = __expectString(data.accessPolicyPermission);
@@ -4190,9 +4218,9 @@ var deserializeAws_restJson1DescribeAccessPolicyCommandError = function (output,
4190
4218
  });
4191
4219
  }); };
4192
4220
  export var deserializeAws_restJson1DescribeAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4193
- var contents, data;
4194
- return __generator(this, function (_a) {
4195
- switch (_a.label) {
4221
+ var contents, data, _a, _b;
4222
+ return __generator(this, function (_c) {
4223
+ switch (_c.label) {
4196
4224
  case 0:
4197
4225
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4198
4226
  return [2 /*return*/, deserializeAws_restJson1DescribeAssetCommandError(output, context)];
@@ -4210,9 +4238,11 @@ export var deserializeAws_restJson1DescribeAssetCommand = function (output, cont
4210
4238
  assetProperties: undefined,
4211
4239
  assetStatus: undefined,
4212
4240
  };
4241
+ _a = __expectNonNull;
4242
+ _b = __expectObject;
4213
4243
  return [4 /*yield*/, parseBody(output.body, context)];
4214
4244
  case 1:
4215
- data = _a.sent();
4245
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4216
4246
  if (data.assetArn !== undefined && data.assetArn !== null) {
4217
4247
  contents.assetArn = __expectString(data.assetArn);
4218
4248
  }
@@ -4220,7 +4250,7 @@ export var deserializeAws_restJson1DescribeAssetCommand = function (output, cont
4220
4250
  contents.assetCompositeModels = deserializeAws_restJson1AssetCompositeModels(data.assetCompositeModels, context);
4221
4251
  }
4222
4252
  if (data.assetCreationDate !== undefined && data.assetCreationDate !== null) {
4223
- contents.assetCreationDate = new Date(Math.round(data.assetCreationDate * 1000));
4253
+ contents.assetCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.assetCreationDate)));
4224
4254
  }
4225
4255
  if (data.assetHierarchies !== undefined && data.assetHierarchies !== null) {
4226
4256
  contents.assetHierarchies = deserializeAws_restJson1AssetHierarchies(data.assetHierarchies, context);
@@ -4229,7 +4259,7 @@ export var deserializeAws_restJson1DescribeAssetCommand = function (output, cont
4229
4259
  contents.assetId = __expectString(data.assetId);
4230
4260
  }
4231
4261
  if (data.assetLastUpdateDate !== undefined && data.assetLastUpdateDate !== null) {
4232
- contents.assetLastUpdateDate = new Date(Math.round(data.assetLastUpdateDate * 1000));
4262
+ contents.assetLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.assetLastUpdateDate)));
4233
4263
  }
4234
4264
  if (data.assetModelId !== undefined && data.assetModelId !== null) {
4235
4265
  contents.assetModelId = __expectString(data.assetModelId);
@@ -4310,9 +4340,9 @@ var deserializeAws_restJson1DescribeAssetCommandError = function (output, contex
4310
4340
  });
4311
4341
  }); };
4312
4342
  export var deserializeAws_restJson1DescribeAssetModelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4313
- var contents, data;
4314
- return __generator(this, function (_a) {
4315
- switch (_a.label) {
4343
+ var contents, data, _a, _b;
4344
+ return __generator(this, function (_c) {
4345
+ switch (_c.label) {
4316
4346
  case 0:
4317
4347
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4318
4348
  return [2 /*return*/, deserializeAws_restJson1DescribeAssetModelCommandError(output, context)];
@@ -4330,9 +4360,11 @@ export var deserializeAws_restJson1DescribeAssetModelCommand = function (output,
4330
4360
  assetModelProperties: undefined,
4331
4361
  assetModelStatus: undefined,
4332
4362
  };
4363
+ _a = __expectNonNull;
4364
+ _b = __expectObject;
4333
4365
  return [4 /*yield*/, parseBody(output.body, context)];
4334
4366
  case 1:
4335
- data = _a.sent();
4367
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4336
4368
  if (data.assetModelArn !== undefined && data.assetModelArn !== null) {
4337
4369
  contents.assetModelArn = __expectString(data.assetModelArn);
4338
4370
  }
@@ -4340,7 +4372,7 @@ export var deserializeAws_restJson1DescribeAssetModelCommand = function (output,
4340
4372
  contents.assetModelCompositeModels = deserializeAws_restJson1AssetModelCompositeModels(data.assetModelCompositeModels, context);
4341
4373
  }
4342
4374
  if (data.assetModelCreationDate !== undefined && data.assetModelCreationDate !== null) {
4343
- contents.assetModelCreationDate = new Date(Math.round(data.assetModelCreationDate * 1000));
4375
+ contents.assetModelCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.assetModelCreationDate)));
4344
4376
  }
4345
4377
  if (data.assetModelDescription !== undefined && data.assetModelDescription !== null) {
4346
4378
  contents.assetModelDescription = __expectString(data.assetModelDescription);
@@ -4352,7 +4384,7 @@ export var deserializeAws_restJson1DescribeAssetModelCommand = function (output,
4352
4384
  contents.assetModelId = __expectString(data.assetModelId);
4353
4385
  }
4354
4386
  if (data.assetModelLastUpdateDate !== undefined && data.assetModelLastUpdateDate !== null) {
4355
- contents.assetModelLastUpdateDate = new Date(Math.round(data.assetModelLastUpdateDate * 1000));
4387
+ contents.assetModelLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.assetModelLastUpdateDate)));
4356
4388
  }
4357
4389
  if (data.assetModelName !== undefined && data.assetModelName !== null) {
4358
4390
  contents.assetModelName = __expectString(data.assetModelName);
@@ -4430,9 +4462,9 @@ var deserializeAws_restJson1DescribeAssetModelCommandError = function (output, c
4430
4462
  });
4431
4463
  }); };
4432
4464
  export var deserializeAws_restJson1DescribeAssetPropertyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4433
- var contents, data;
4434
- return __generator(this, function (_a) {
4435
- switch (_a.label) {
4465
+ var contents, data, _a, _b;
4466
+ return __generator(this, function (_c) {
4467
+ switch (_c.label) {
4436
4468
  case 0:
4437
4469
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4438
4470
  return [2 /*return*/, deserializeAws_restJson1DescribeAssetPropertyCommandError(output, context)];
@@ -4445,9 +4477,11 @@ export var deserializeAws_restJson1DescribeAssetPropertyCommand = function (outp
4445
4477
  assetProperty: undefined,
4446
4478
  compositeModel: undefined,
4447
4479
  };
4480
+ _a = __expectNonNull;
4481
+ _b = __expectObject;
4448
4482
  return [4 /*yield*/, parseBody(output.body, context)];
4449
4483
  case 1:
4450
- data = _a.sent();
4484
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4451
4485
  if (data.assetId !== undefined && data.assetId !== null) {
4452
4486
  contents.assetId = __expectString(data.assetId);
4453
4487
  }
@@ -4530,9 +4564,9 @@ var deserializeAws_restJson1DescribeAssetPropertyCommandError = function (output
4530
4564
  });
4531
4565
  }); };
4532
4566
  export var deserializeAws_restJson1DescribeDashboardCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4533
- var contents, data;
4534
- return __generator(this, function (_a) {
4535
- switch (_a.label) {
4567
+ var contents, data, _a, _b;
4568
+ return __generator(this, function (_c) {
4569
+ switch (_c.label) {
4536
4570
  case 0:
4537
4571
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4538
4572
  return [2 /*return*/, deserializeAws_restJson1DescribeDashboardCommandError(output, context)];
@@ -4548,14 +4582,16 @@ export var deserializeAws_restJson1DescribeDashboardCommand = function (output,
4548
4582
  dashboardName: undefined,
4549
4583
  projectId: undefined,
4550
4584
  };
4585
+ _a = __expectNonNull;
4586
+ _b = __expectObject;
4551
4587
  return [4 /*yield*/, parseBody(output.body, context)];
4552
4588
  case 1:
4553
- data = _a.sent();
4589
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4554
4590
  if (data.dashboardArn !== undefined && data.dashboardArn !== null) {
4555
4591
  contents.dashboardArn = __expectString(data.dashboardArn);
4556
4592
  }
4557
4593
  if (data.dashboardCreationDate !== undefined && data.dashboardCreationDate !== null) {
4558
- contents.dashboardCreationDate = new Date(Math.round(data.dashboardCreationDate * 1000));
4594
+ contents.dashboardCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.dashboardCreationDate)));
4559
4595
  }
4560
4596
  if (data.dashboardDefinition !== undefined && data.dashboardDefinition !== null) {
4561
4597
  contents.dashboardDefinition = __expectString(data.dashboardDefinition);
@@ -4567,7 +4603,7 @@ export var deserializeAws_restJson1DescribeDashboardCommand = function (output,
4567
4603
  contents.dashboardId = __expectString(data.dashboardId);
4568
4604
  }
4569
4605
  if (data.dashboardLastUpdateDate !== undefined && data.dashboardLastUpdateDate !== null) {
4570
- contents.dashboardLastUpdateDate = new Date(Math.round(data.dashboardLastUpdateDate * 1000));
4606
+ contents.dashboardLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.dashboardLastUpdateDate)));
4571
4607
  }
4572
4608
  if (data.dashboardName !== undefined && data.dashboardName !== null) {
4573
4609
  contents.dashboardName = __expectString(data.dashboardName);
@@ -4642,9 +4678,9 @@ var deserializeAws_restJson1DescribeDashboardCommandError = function (output, co
4642
4678
  });
4643
4679
  }); };
4644
4680
  export var deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4645
- var contents, data;
4646
- return __generator(this, function (_a) {
4647
- switch (_a.label) {
4681
+ var contents, data, _a, _b;
4682
+ return __generator(this, function (_c) {
4683
+ switch (_c.label) {
4648
4684
  case 0:
4649
4685
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4650
4686
  return [2 /*return*/, deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommandError(output, context)];
@@ -4655,9 +4691,11 @@ export var deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand
4655
4691
  encryptionType: undefined,
4656
4692
  kmsKeyArn: undefined,
4657
4693
  };
4694
+ _a = __expectNonNull;
4695
+ _b = __expectObject;
4658
4696
  return [4 /*yield*/, parseBody(output.body, context)];
4659
4697
  case 1:
4660
- data = _a.sent();
4698
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4661
4699
  if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
4662
4700
  contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
4663
4701
  }
@@ -4726,9 +4764,9 @@ var deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommandError =
4726
4764
  });
4727
4765
  }); };
4728
4766
  export var deserializeAws_restJson1DescribeGatewayCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4729
- var contents, data;
4730
- return __generator(this, function (_a) {
4731
- switch (_a.label) {
4767
+ var contents, data, _a, _b;
4768
+ return __generator(this, function (_c) {
4769
+ switch (_c.label) {
4732
4770
  case 0:
4733
4771
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4734
4772
  return [2 /*return*/, deserializeAws_restJson1DescribeGatewayCommandError(output, context)];
@@ -4743,11 +4781,13 @@ export var deserializeAws_restJson1DescribeGatewayCommand = function (output, co
4743
4781
  gatewayPlatform: undefined,
4744
4782
  lastUpdateDate: undefined,
4745
4783
  };
4784
+ _a = __expectNonNull;
4785
+ _b = __expectObject;
4746
4786
  return [4 /*yield*/, parseBody(output.body, context)];
4747
4787
  case 1:
4748
- data = _a.sent();
4788
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4749
4789
  if (data.creationDate !== undefined && data.creationDate !== null) {
4750
- contents.creationDate = new Date(Math.round(data.creationDate * 1000));
4790
+ contents.creationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationDate)));
4751
4791
  }
4752
4792
  if (data.gatewayArn !== undefined && data.gatewayArn !== null) {
4753
4793
  contents.gatewayArn = __expectString(data.gatewayArn);
@@ -4765,7 +4805,7 @@ export var deserializeAws_restJson1DescribeGatewayCommand = function (output, co
4765
4805
  contents.gatewayPlatform = deserializeAws_restJson1GatewayPlatform(data.gatewayPlatform, context);
4766
4806
  }
4767
4807
  if (data.lastUpdateDate !== undefined && data.lastUpdateDate !== null) {
4768
- contents.lastUpdateDate = new Date(Math.round(data.lastUpdateDate * 1000));
4808
+ contents.lastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdateDate)));
4769
4809
  }
4770
4810
  return [2 /*return*/, Promise.resolve(contents)];
4771
4811
  }
@@ -4834,9 +4874,9 @@ var deserializeAws_restJson1DescribeGatewayCommandError = function (output, cont
4834
4874
  });
4835
4875
  }); };
4836
4876
  export var deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4837
- var contents, data;
4838
- return __generator(this, function (_a) {
4839
- switch (_a.label) {
4877
+ var contents, data, _a, _b;
4878
+ return __generator(this, function (_c) {
4879
+ switch (_c.label) {
4840
4880
  case 0:
4841
4881
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4842
4882
  return [2 /*return*/, deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommandError(output, context)];
@@ -4848,9 +4888,11 @@ export var deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand
4848
4888
  capabilitySyncStatus: undefined,
4849
4889
  gatewayId: undefined,
4850
4890
  };
4891
+ _a = __expectNonNull;
4892
+ _b = __expectObject;
4851
4893
  return [4 /*yield*/, parseBody(output.body, context)];
4852
4894
  case 1:
4853
- data = _a.sent();
4895
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4854
4896
  if (data.capabilityConfiguration !== undefined && data.capabilityConfiguration !== null) {
4855
4897
  contents.capabilityConfiguration = __expectString(data.capabilityConfiguration);
4856
4898
  }
@@ -4930,9 +4972,9 @@ var deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommandError =
4930
4972
  });
4931
4973
  }); };
4932
4974
  export var deserializeAws_restJson1DescribeLoggingOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4933
- var contents, data;
4934
- return __generator(this, function (_a) {
4935
- switch (_a.label) {
4975
+ var contents, data, _a, _b;
4976
+ return __generator(this, function (_c) {
4977
+ switch (_c.label) {
4936
4978
  case 0:
4937
4979
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4938
4980
  return [2 /*return*/, deserializeAws_restJson1DescribeLoggingOptionsCommandError(output, context)];
@@ -4941,9 +4983,11 @@ export var deserializeAws_restJson1DescribeLoggingOptionsCommand = function (out
4941
4983
  $metadata: deserializeMetadata(output),
4942
4984
  loggingOptions: undefined,
4943
4985
  };
4986
+ _a = __expectNonNull;
4987
+ _b = __expectObject;
4944
4988
  return [4 /*yield*/, parseBody(output.body, context)];
4945
4989
  case 1:
4946
- data = _a.sent();
4990
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4947
4991
  if (data.loggingOptions !== undefined && data.loggingOptions !== null) {
4948
4992
  contents.loggingOptions = deserializeAws_restJson1LoggingOptions(data.loggingOptions, context);
4949
4993
  }
@@ -5014,9 +5058,9 @@ var deserializeAws_restJson1DescribeLoggingOptionsCommandError = function (outpu
5014
5058
  });
5015
5059
  }); };
5016
5060
  export var deserializeAws_restJson1DescribePortalCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5017
- var contents, data;
5018
- return __generator(this, function (_a) {
5019
- switch (_a.label) {
5061
+ var contents, data, _a, _b;
5062
+ return __generator(this, function (_c) {
5063
+ switch (_c.label) {
5020
5064
  case 0:
5021
5065
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5022
5066
  return [2 /*return*/, deserializeAws_restJson1DescribePortalCommandError(output, context)];
@@ -5039,9 +5083,11 @@ export var deserializeAws_restJson1DescribePortalCommand = function (output, con
5039
5083
  portalStatus: undefined,
5040
5084
  roleArn: undefined,
5041
5085
  };
5086
+ _a = __expectNonNull;
5087
+ _b = __expectObject;
5042
5088
  return [4 /*yield*/, parseBody(output.body, context)];
5043
5089
  case 1:
5044
- data = _a.sent();
5090
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5045
5091
  if (data.alarms !== undefined && data.alarms !== null) {
5046
5092
  contents.alarms = deserializeAws_restJson1Alarms(data.alarms, context);
5047
5093
  }
@@ -5061,7 +5107,7 @@ export var deserializeAws_restJson1DescribePortalCommand = function (output, con
5061
5107
  contents.portalContactEmail = __expectString(data.portalContactEmail);
5062
5108
  }
5063
5109
  if (data.portalCreationDate !== undefined && data.portalCreationDate !== null) {
5064
- contents.portalCreationDate = new Date(Math.round(data.portalCreationDate * 1000));
5110
+ contents.portalCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.portalCreationDate)));
5065
5111
  }
5066
5112
  if (data.portalDescription !== undefined && data.portalDescription !== null) {
5067
5113
  contents.portalDescription = __expectString(data.portalDescription);
@@ -5070,7 +5116,7 @@ export var deserializeAws_restJson1DescribePortalCommand = function (output, con
5070
5116
  contents.portalId = __expectString(data.portalId);
5071
5117
  }
5072
5118
  if (data.portalLastUpdateDate !== undefined && data.portalLastUpdateDate !== null) {
5073
- contents.portalLastUpdateDate = new Date(Math.round(data.portalLastUpdateDate * 1000));
5119
+ contents.portalLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.portalLastUpdateDate)));
5074
5120
  }
5075
5121
  if (data.portalLogoImageLocation !== undefined && data.portalLogoImageLocation !== null) {
5076
5122
  contents.portalLogoImageLocation = deserializeAws_restJson1ImageLocation(data.portalLogoImageLocation, context);
@@ -5154,9 +5200,9 @@ var deserializeAws_restJson1DescribePortalCommandError = function (output, conte
5154
5200
  });
5155
5201
  }); };
5156
5202
  export var deserializeAws_restJson1DescribeProjectCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5157
- var contents, data;
5158
- return __generator(this, function (_a) {
5159
- switch (_a.label) {
5203
+ var contents, data, _a, _b;
5204
+ return __generator(this, function (_c) {
5205
+ switch (_c.label) {
5160
5206
  case 0:
5161
5207
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5162
5208
  return [2 /*return*/, deserializeAws_restJson1DescribeProjectCommandError(output, context)];
@@ -5171,9 +5217,11 @@ export var deserializeAws_restJson1DescribeProjectCommand = function (output, co
5171
5217
  projectLastUpdateDate: undefined,
5172
5218
  projectName: undefined,
5173
5219
  };
5220
+ _a = __expectNonNull;
5221
+ _b = __expectObject;
5174
5222
  return [4 /*yield*/, parseBody(output.body, context)];
5175
5223
  case 1:
5176
- data = _a.sent();
5224
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5177
5225
  if (data.portalId !== undefined && data.portalId !== null) {
5178
5226
  contents.portalId = __expectString(data.portalId);
5179
5227
  }
@@ -5181,7 +5229,7 @@ export var deserializeAws_restJson1DescribeProjectCommand = function (output, co
5181
5229
  contents.projectArn = __expectString(data.projectArn);
5182
5230
  }
5183
5231
  if (data.projectCreationDate !== undefined && data.projectCreationDate !== null) {
5184
- contents.projectCreationDate = new Date(Math.round(data.projectCreationDate * 1000));
5232
+ contents.projectCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.projectCreationDate)));
5185
5233
  }
5186
5234
  if (data.projectDescription !== undefined && data.projectDescription !== null) {
5187
5235
  contents.projectDescription = __expectString(data.projectDescription);
@@ -5190,7 +5238,7 @@ export var deserializeAws_restJson1DescribeProjectCommand = function (output, co
5190
5238
  contents.projectId = __expectString(data.projectId);
5191
5239
  }
5192
5240
  if (data.projectLastUpdateDate !== undefined && data.projectLastUpdateDate !== null) {
5193
- contents.projectLastUpdateDate = new Date(Math.round(data.projectLastUpdateDate * 1000));
5241
+ contents.projectLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.projectLastUpdateDate)));
5194
5242
  }
5195
5243
  if (data.projectName !== undefined && data.projectName !== null) {
5196
5244
  contents.projectName = __expectString(data.projectName);
@@ -5262,9 +5310,9 @@ var deserializeAws_restJson1DescribeProjectCommandError = function (output, cont
5262
5310
  });
5263
5311
  }); };
5264
5312
  export var deserializeAws_restJson1DescribeStorageConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5265
- var contents, data;
5266
- return __generator(this, function (_a) {
5267
- switch (_a.label) {
5313
+ var contents, data, _a, _b;
5314
+ return __generator(this, function (_c) {
5315
+ switch (_c.label) {
5268
5316
  case 0:
5269
5317
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5270
5318
  return [2 /*return*/, deserializeAws_restJson1DescribeStorageConfigurationCommandError(output, context)];
@@ -5276,14 +5324,16 @@ export var deserializeAws_restJson1DescribeStorageConfigurationCommand = functio
5276
5324
  multiLayerStorage: undefined,
5277
5325
  storageType: undefined,
5278
5326
  };
5327
+ _a = __expectNonNull;
5328
+ _b = __expectObject;
5279
5329
  return [4 /*yield*/, parseBody(output.body, context)];
5280
5330
  case 1:
5281
- data = _a.sent();
5331
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5282
5332
  if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
5283
5333
  contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
5284
5334
  }
5285
5335
  if (data.lastUpdateDate !== undefined && data.lastUpdateDate !== null) {
5286
- contents.lastUpdateDate = new Date(Math.round(data.lastUpdateDate * 1000));
5336
+ contents.lastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdateDate)));
5287
5337
  }
5288
5338
  if (data.multiLayerStorage !== undefined && data.multiLayerStorage !== null) {
5289
5339
  contents.multiLayerStorage = deserializeAws_restJson1MultiLayerStorage(data.multiLayerStorage, context);
@@ -5462,9 +5512,9 @@ var deserializeAws_restJson1DisassociateAssetsCommandError = function (output, c
5462
5512
  });
5463
5513
  }); };
5464
5514
  export var deserializeAws_restJson1GetAssetPropertyAggregatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5465
- var contents, data;
5466
- return __generator(this, function (_a) {
5467
- switch (_a.label) {
5515
+ var contents, data, _a, _b;
5516
+ return __generator(this, function (_c) {
5517
+ switch (_c.label) {
5468
5518
  case 0:
5469
5519
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5470
5520
  return [2 /*return*/, deserializeAws_restJson1GetAssetPropertyAggregatesCommandError(output, context)];
@@ -5474,9 +5524,11 @@ export var deserializeAws_restJson1GetAssetPropertyAggregatesCommand = function
5474
5524
  aggregatedValues: undefined,
5475
5525
  nextToken: undefined,
5476
5526
  };
5527
+ _a = __expectNonNull;
5528
+ _b = __expectObject;
5477
5529
  return [4 /*yield*/, parseBody(output.body, context)];
5478
5530
  case 1:
5479
- data = _a.sent();
5531
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5480
5532
  if (data.aggregatedValues !== undefined && data.aggregatedValues !== null) {
5481
5533
  contents.aggregatedValues = deserializeAws_restJson1AggregatedValues(data.aggregatedValues, context);
5482
5534
  }
@@ -5558,9 +5610,9 @@ var deserializeAws_restJson1GetAssetPropertyAggregatesCommandError = function (o
5558
5610
  });
5559
5611
  }); };
5560
5612
  export var deserializeAws_restJson1GetAssetPropertyValueCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5561
- var contents, data;
5562
- return __generator(this, function (_a) {
5563
- switch (_a.label) {
5613
+ var contents, data, _a, _b;
5614
+ return __generator(this, function (_c) {
5615
+ switch (_c.label) {
5564
5616
  case 0:
5565
5617
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5566
5618
  return [2 /*return*/, deserializeAws_restJson1GetAssetPropertyValueCommandError(output, context)];
@@ -5569,9 +5621,11 @@ export var deserializeAws_restJson1GetAssetPropertyValueCommand = function (outp
5569
5621
  $metadata: deserializeMetadata(output),
5570
5622
  propertyValue: undefined,
5571
5623
  };
5624
+ _a = __expectNonNull;
5625
+ _b = __expectObject;
5572
5626
  return [4 /*yield*/, parseBody(output.body, context)];
5573
5627
  case 1:
5574
- data = _a.sent();
5628
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5575
5629
  if (data.propertyValue !== undefined && data.propertyValue !== null) {
5576
5630
  contents.propertyValue = deserializeAws_restJson1AssetPropertyValue(data.propertyValue, context);
5577
5631
  }
@@ -5650,9 +5704,9 @@ var deserializeAws_restJson1GetAssetPropertyValueCommandError = function (output
5650
5704
  });
5651
5705
  }); };
5652
5706
  export var deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5653
- var contents, data;
5654
- return __generator(this, function (_a) {
5655
- switch (_a.label) {
5707
+ var contents, data, _a, _b;
5708
+ return __generator(this, function (_c) {
5709
+ switch (_c.label) {
5656
5710
  case 0:
5657
5711
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5658
5712
  return [2 /*return*/, deserializeAws_restJson1GetAssetPropertyValueHistoryCommandError(output, context)];
@@ -5662,9 +5716,11 @@ export var deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = functio
5662
5716
  assetPropertyValueHistory: undefined,
5663
5717
  nextToken: undefined,
5664
5718
  };
5719
+ _a = __expectNonNull;
5720
+ _b = __expectObject;
5665
5721
  return [4 /*yield*/, parseBody(output.body, context)];
5666
5722
  case 1:
5667
- data = _a.sent();
5723
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5668
5724
  if (data.assetPropertyValueHistory !== undefined && data.assetPropertyValueHistory !== null) {
5669
5725
  contents.assetPropertyValueHistory = deserializeAws_restJson1AssetPropertyValueHistory(data.assetPropertyValueHistory, context);
5670
5726
  }
@@ -5746,9 +5802,9 @@ var deserializeAws_restJson1GetAssetPropertyValueHistoryCommandError = function
5746
5802
  });
5747
5803
  }); };
5748
5804
  export var deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5749
- var contents, data;
5750
- return __generator(this, function (_a) {
5751
- switch (_a.label) {
5805
+ var contents, data, _a, _b;
5806
+ return __generator(this, function (_c) {
5807
+ switch (_c.label) {
5752
5808
  case 0:
5753
5809
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5754
5810
  return [2 /*return*/, deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommandError(output, context)];
@@ -5758,9 +5814,11 @@ export var deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = f
5758
5814
  interpolatedAssetPropertyValues: undefined,
5759
5815
  nextToken: undefined,
5760
5816
  };
5817
+ _a = __expectNonNull;
5818
+ _b = __expectObject;
5761
5819
  return [4 /*yield*/, parseBody(output.body, context)];
5762
5820
  case 1:
5763
- data = _a.sent();
5821
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5764
5822
  if (data.interpolatedAssetPropertyValues !== undefined && data.interpolatedAssetPropertyValues !== null) {
5765
5823
  contents.interpolatedAssetPropertyValues = deserializeAws_restJson1InterpolatedAssetPropertyValues(data.interpolatedAssetPropertyValues, context);
5766
5824
  }
@@ -5842,9 +5900,9 @@ var deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommandError = fun
5842
5900
  });
5843
5901
  }); };
5844
5902
  export var deserializeAws_restJson1ListAccessPoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5845
- var contents, data;
5846
- return __generator(this, function (_a) {
5847
- switch (_a.label) {
5903
+ var contents, data, _a, _b;
5904
+ return __generator(this, function (_c) {
5905
+ switch (_c.label) {
5848
5906
  case 0:
5849
5907
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5850
5908
  return [2 /*return*/, deserializeAws_restJson1ListAccessPoliciesCommandError(output, context)];
@@ -5854,9 +5912,11 @@ export var deserializeAws_restJson1ListAccessPoliciesCommand = function (output,
5854
5912
  accessPolicySummaries: undefined,
5855
5913
  nextToken: undefined,
5856
5914
  };
5915
+ _a = __expectNonNull;
5916
+ _b = __expectObject;
5857
5917
  return [4 /*yield*/, parseBody(output.body, context)];
5858
5918
  case 1:
5859
- data = _a.sent();
5919
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5860
5920
  if (data.accessPolicySummaries !== undefined && data.accessPolicySummaries !== null) {
5861
5921
  contents.accessPolicySummaries = deserializeAws_restJson1AccessPolicySummaries(data.accessPolicySummaries, context);
5862
5922
  }
@@ -5922,9 +5982,9 @@ var deserializeAws_restJson1ListAccessPoliciesCommandError = function (output, c
5922
5982
  });
5923
5983
  }); };
5924
5984
  export var deserializeAws_restJson1ListAssetModelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5925
- var contents, data;
5926
- return __generator(this, function (_a) {
5927
- switch (_a.label) {
5985
+ var contents, data, _a, _b;
5986
+ return __generator(this, function (_c) {
5987
+ switch (_c.label) {
5928
5988
  case 0:
5929
5989
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5930
5990
  return [2 /*return*/, deserializeAws_restJson1ListAssetModelsCommandError(output, context)];
@@ -5934,9 +5994,11 @@ export var deserializeAws_restJson1ListAssetModelsCommand = function (output, co
5934
5994
  assetModelSummaries: undefined,
5935
5995
  nextToken: undefined,
5936
5996
  };
5997
+ _a = __expectNonNull;
5998
+ _b = __expectObject;
5937
5999
  return [4 /*yield*/, parseBody(output.body, context)];
5938
6000
  case 1:
5939
- data = _a.sent();
6001
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5940
6002
  if (data.assetModelSummaries !== undefined && data.assetModelSummaries !== null) {
5941
6003
  contents.assetModelSummaries = deserializeAws_restJson1AssetModelSummaries(data.assetModelSummaries, context);
5942
6004
  }
@@ -6002,9 +6064,9 @@ var deserializeAws_restJson1ListAssetModelsCommandError = function (output, cont
6002
6064
  });
6003
6065
  }); };
6004
6066
  export var deserializeAws_restJson1ListAssetRelationshipsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6005
- var contents, data;
6006
- return __generator(this, function (_a) {
6007
- switch (_a.label) {
6067
+ var contents, data, _a, _b;
6068
+ return __generator(this, function (_c) {
6069
+ switch (_c.label) {
6008
6070
  case 0:
6009
6071
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6010
6072
  return [2 /*return*/, deserializeAws_restJson1ListAssetRelationshipsCommandError(output, context)];
@@ -6014,9 +6076,11 @@ export var deserializeAws_restJson1ListAssetRelationshipsCommand = function (out
6014
6076
  assetRelationshipSummaries: undefined,
6015
6077
  nextToken: undefined,
6016
6078
  };
6079
+ _a = __expectNonNull;
6080
+ _b = __expectObject;
6017
6081
  return [4 /*yield*/, parseBody(output.body, context)];
6018
6082
  case 1:
6019
- data = _a.sent();
6083
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6020
6084
  if (data.assetRelationshipSummaries !== undefined && data.assetRelationshipSummaries !== null) {
6021
6085
  contents.assetRelationshipSummaries = deserializeAws_restJson1AssetRelationshipSummaries(data.assetRelationshipSummaries, context);
6022
6086
  }
@@ -6090,9 +6154,9 @@ var deserializeAws_restJson1ListAssetRelationshipsCommandError = function (outpu
6090
6154
  });
6091
6155
  }); };
6092
6156
  export var deserializeAws_restJson1ListAssetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6093
- var contents, data;
6094
- return __generator(this, function (_a) {
6095
- switch (_a.label) {
6157
+ var contents, data, _a, _b;
6158
+ return __generator(this, function (_c) {
6159
+ switch (_c.label) {
6096
6160
  case 0:
6097
6161
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6098
6162
  return [2 /*return*/, deserializeAws_restJson1ListAssetsCommandError(output, context)];
@@ -6102,9 +6166,11 @@ export var deserializeAws_restJson1ListAssetsCommand = function (output, context
6102
6166
  assetSummaries: undefined,
6103
6167
  nextToken: undefined,
6104
6168
  };
6169
+ _a = __expectNonNull;
6170
+ _b = __expectObject;
6105
6171
  return [4 /*yield*/, parseBody(output.body, context)];
6106
6172
  case 1:
6107
- data = _a.sent();
6173
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6108
6174
  if (data.assetSummaries !== undefined && data.assetSummaries !== null) {
6109
6175
  contents.assetSummaries = deserializeAws_restJson1AssetSummaries(data.assetSummaries, context);
6110
6176
  }
@@ -6178,9 +6244,9 @@ var deserializeAws_restJson1ListAssetsCommandError = function (output, context)
6178
6244
  });
6179
6245
  }); };
6180
6246
  export var deserializeAws_restJson1ListAssociatedAssetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6181
- var contents, data;
6182
- return __generator(this, function (_a) {
6183
- switch (_a.label) {
6247
+ var contents, data, _a, _b;
6248
+ return __generator(this, function (_c) {
6249
+ switch (_c.label) {
6184
6250
  case 0:
6185
6251
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6186
6252
  return [2 /*return*/, deserializeAws_restJson1ListAssociatedAssetsCommandError(output, context)];
@@ -6190,9 +6256,11 @@ export var deserializeAws_restJson1ListAssociatedAssetsCommand = function (outpu
6190
6256
  assetSummaries: undefined,
6191
6257
  nextToken: undefined,
6192
6258
  };
6259
+ _a = __expectNonNull;
6260
+ _b = __expectObject;
6193
6261
  return [4 /*yield*/, parseBody(output.body, context)];
6194
6262
  case 1:
6195
- data = _a.sent();
6263
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6196
6264
  if (data.assetSummaries !== undefined && data.assetSummaries !== null) {
6197
6265
  contents.assetSummaries = deserializeAws_restJson1AssociatedAssetsSummaries(data.assetSummaries, context);
6198
6266
  }
@@ -6266,9 +6334,9 @@ var deserializeAws_restJson1ListAssociatedAssetsCommandError = function (output,
6266
6334
  });
6267
6335
  }); };
6268
6336
  export var deserializeAws_restJson1ListDashboardsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6269
- var contents, data;
6270
- return __generator(this, function (_a) {
6271
- switch (_a.label) {
6337
+ var contents, data, _a, _b;
6338
+ return __generator(this, function (_c) {
6339
+ switch (_c.label) {
6272
6340
  case 0:
6273
6341
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6274
6342
  return [2 /*return*/, deserializeAws_restJson1ListDashboardsCommandError(output, context)];
@@ -6278,9 +6346,11 @@ export var deserializeAws_restJson1ListDashboardsCommand = function (output, con
6278
6346
  dashboardSummaries: undefined,
6279
6347
  nextToken: undefined,
6280
6348
  };
6349
+ _a = __expectNonNull;
6350
+ _b = __expectObject;
6281
6351
  return [4 /*yield*/, parseBody(output.body, context)];
6282
6352
  case 1:
6283
- data = _a.sent();
6353
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6284
6354
  if (data.dashboardSummaries !== undefined && data.dashboardSummaries !== null) {
6285
6355
  contents.dashboardSummaries = deserializeAws_restJson1DashboardSummaries(data.dashboardSummaries, context);
6286
6356
  }
@@ -6346,9 +6416,9 @@ var deserializeAws_restJson1ListDashboardsCommandError = function (output, conte
6346
6416
  });
6347
6417
  }); };
6348
6418
  export var deserializeAws_restJson1ListGatewaysCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6349
- var contents, data;
6350
- return __generator(this, function (_a) {
6351
- switch (_a.label) {
6419
+ var contents, data, _a, _b;
6420
+ return __generator(this, function (_c) {
6421
+ switch (_c.label) {
6352
6422
  case 0:
6353
6423
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6354
6424
  return [2 /*return*/, deserializeAws_restJson1ListGatewaysCommandError(output, context)];
@@ -6358,9 +6428,11 @@ export var deserializeAws_restJson1ListGatewaysCommand = function (output, conte
6358
6428
  gatewaySummaries: undefined,
6359
6429
  nextToken: undefined,
6360
6430
  };
6431
+ _a = __expectNonNull;
6432
+ _b = __expectObject;
6361
6433
  return [4 /*yield*/, parseBody(output.body, context)];
6362
6434
  case 1:
6363
- data = _a.sent();
6435
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6364
6436
  if (data.gatewaySummaries !== undefined && data.gatewaySummaries !== null) {
6365
6437
  contents.gatewaySummaries = deserializeAws_restJson1GatewaySummaries(data.gatewaySummaries, context);
6366
6438
  }
@@ -6426,9 +6498,9 @@ var deserializeAws_restJson1ListGatewaysCommandError = function (output, context
6426
6498
  });
6427
6499
  }); };
6428
6500
  export var deserializeAws_restJson1ListPortalsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6429
- var contents, data;
6430
- return __generator(this, function (_a) {
6431
- switch (_a.label) {
6501
+ var contents, data, _a, _b;
6502
+ return __generator(this, function (_c) {
6503
+ switch (_c.label) {
6432
6504
  case 0:
6433
6505
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6434
6506
  return [2 /*return*/, deserializeAws_restJson1ListPortalsCommandError(output, context)];
@@ -6438,9 +6510,11 @@ export var deserializeAws_restJson1ListPortalsCommand = function (output, contex
6438
6510
  nextToken: undefined,
6439
6511
  portalSummaries: undefined,
6440
6512
  };
6513
+ _a = __expectNonNull;
6514
+ _b = __expectObject;
6441
6515
  return [4 /*yield*/, parseBody(output.body, context)];
6442
6516
  case 1:
6443
- data = _a.sent();
6517
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6444
6518
  if (data.nextToken !== undefined && data.nextToken !== null) {
6445
6519
  contents.nextToken = __expectString(data.nextToken);
6446
6520
  }
@@ -6506,9 +6580,9 @@ var deserializeAws_restJson1ListPortalsCommandError = function (output, context)
6506
6580
  });
6507
6581
  }); };
6508
6582
  export var deserializeAws_restJson1ListProjectAssetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6509
- var contents, data;
6510
- return __generator(this, function (_a) {
6511
- switch (_a.label) {
6583
+ var contents, data, _a, _b;
6584
+ return __generator(this, function (_c) {
6585
+ switch (_c.label) {
6512
6586
  case 0:
6513
6587
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6514
6588
  return [2 /*return*/, deserializeAws_restJson1ListProjectAssetsCommandError(output, context)];
@@ -6518,9 +6592,11 @@ export var deserializeAws_restJson1ListProjectAssetsCommand = function (output,
6518
6592
  assetIds: undefined,
6519
6593
  nextToken: undefined,
6520
6594
  };
6595
+ _a = __expectNonNull;
6596
+ _b = __expectObject;
6521
6597
  return [4 /*yield*/, parseBody(output.body, context)];
6522
6598
  case 1:
6523
- data = _a.sent();
6599
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6524
6600
  if (data.assetIds !== undefined && data.assetIds !== null) {
6525
6601
  contents.assetIds = deserializeAws_restJson1AssetIDs(data.assetIds, context);
6526
6602
  }
@@ -6586,9 +6662,9 @@ var deserializeAws_restJson1ListProjectAssetsCommandError = function (output, co
6586
6662
  });
6587
6663
  }); };
6588
6664
  export var deserializeAws_restJson1ListProjectsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6589
- var contents, data;
6590
- return __generator(this, function (_a) {
6591
- switch (_a.label) {
6665
+ var contents, data, _a, _b;
6666
+ return __generator(this, function (_c) {
6667
+ switch (_c.label) {
6592
6668
  case 0:
6593
6669
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6594
6670
  return [2 /*return*/, deserializeAws_restJson1ListProjectsCommandError(output, context)];
@@ -6598,9 +6674,11 @@ export var deserializeAws_restJson1ListProjectsCommand = function (output, conte
6598
6674
  nextToken: undefined,
6599
6675
  projectSummaries: undefined,
6600
6676
  };
6677
+ _a = __expectNonNull;
6678
+ _b = __expectObject;
6601
6679
  return [4 /*yield*/, parseBody(output.body, context)];
6602
6680
  case 1:
6603
- data = _a.sent();
6681
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6604
6682
  if (data.nextToken !== undefined && data.nextToken !== null) {
6605
6683
  contents.nextToken = __expectString(data.nextToken);
6606
6684
  }
@@ -6666,9 +6744,9 @@ var deserializeAws_restJson1ListProjectsCommandError = function (output, context
6666
6744
  });
6667
6745
  }); };
6668
6746
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6669
- var contents, data;
6670
- return __generator(this, function (_a) {
6671
- switch (_a.label) {
6747
+ var contents, data, _a, _b;
6748
+ return __generator(this, function (_c) {
6749
+ switch (_c.label) {
6672
6750
  case 0:
6673
6751
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6674
6752
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -6677,9 +6755,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
6677
6755
  $metadata: deserializeMetadata(output),
6678
6756
  tags: undefined,
6679
6757
  };
6758
+ _a = __expectNonNull;
6759
+ _b = __expectObject;
6680
6760
  return [4 /*yield*/, parseBody(output.body, context)];
6681
6761
  case 1:
6682
- data = _a.sent();
6762
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6683
6763
  if (data.tags !== undefined && data.tags !== null) {
6684
6764
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
6685
6765
  }
@@ -6774,9 +6854,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
6774
6854
  });
6775
6855
  }); };
6776
6856
  export var deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6777
- var contents, data;
6778
- return __generator(this, function (_a) {
6779
- switch (_a.label) {
6857
+ var contents, data, _a, _b;
6858
+ return __generator(this, function (_c) {
6859
+ switch (_c.label) {
6780
6860
  case 0:
6781
6861
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6782
6862
  return [2 /*return*/, deserializeAws_restJson1PutDefaultEncryptionConfigurationCommandError(output, context)];
@@ -6787,9 +6867,11 @@ export var deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = fu
6787
6867
  encryptionType: undefined,
6788
6868
  kmsKeyArn: undefined,
6789
6869
  };
6870
+ _a = __expectNonNull;
6871
+ _b = __expectObject;
6790
6872
  return [4 /*yield*/, parseBody(output.body, context)];
6791
6873
  case 1:
6792
- data = _a.sent();
6874
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6793
6875
  if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
6794
6876
  contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
6795
6877
  }
@@ -6962,9 +7044,9 @@ var deserializeAws_restJson1PutLoggingOptionsCommandError = function (output, co
6962
7044
  });
6963
7045
  }); };
6964
7046
  export var deserializeAws_restJson1PutStorageConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6965
- var contents, data;
6966
- return __generator(this, function (_a) {
6967
- switch (_a.label) {
7047
+ var contents, data, _a, _b;
7048
+ return __generator(this, function (_c) {
7049
+ switch (_c.label) {
6968
7050
  case 0:
6969
7051
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6970
7052
  return [2 /*return*/, deserializeAws_restJson1PutStorageConfigurationCommandError(output, context)];
@@ -6975,9 +7057,11 @@ export var deserializeAws_restJson1PutStorageConfigurationCommand = function (ou
6975
7057
  multiLayerStorage: undefined,
6976
7058
  storageType: undefined,
6977
7059
  };
7060
+ _a = __expectNonNull;
7061
+ _b = __expectObject;
6978
7062
  return [4 /*yield*/, parseBody(output.body, context)];
6979
7063
  case 1:
6980
- data = _a.sent();
7064
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6981
7065
  if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
6982
7066
  contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
6983
7067
  }
@@ -7374,9 +7458,9 @@ var deserializeAws_restJson1UpdateAccessPolicyCommandError = function (output, c
7374
7458
  });
7375
7459
  }); };
7376
7460
  export var deserializeAws_restJson1UpdateAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7377
- var contents, data;
7378
- return __generator(this, function (_a) {
7379
- switch (_a.label) {
7461
+ var contents, data, _a, _b;
7462
+ return __generator(this, function (_c) {
7463
+ switch (_c.label) {
7380
7464
  case 0:
7381
7465
  if (output.statusCode !== 202 && output.statusCode >= 300) {
7382
7466
  return [2 /*return*/, deserializeAws_restJson1UpdateAssetCommandError(output, context)];
@@ -7385,9 +7469,11 @@ export var deserializeAws_restJson1UpdateAssetCommand = function (output, contex
7385
7469
  $metadata: deserializeMetadata(output),
7386
7470
  assetStatus: undefined,
7387
7471
  };
7472
+ _a = __expectNonNull;
7473
+ _b = __expectObject;
7388
7474
  return [4 /*yield*/, parseBody(output.body, context)];
7389
7475
  case 1:
7390
- data = _a.sent();
7476
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7391
7477
  if (data.assetStatus !== undefined && data.assetStatus !== null) {
7392
7478
  contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
7393
7479
  }
@@ -7474,9 +7560,9 @@ var deserializeAws_restJson1UpdateAssetCommandError = function (output, context)
7474
7560
  });
7475
7561
  }); };
7476
7562
  export var deserializeAws_restJson1UpdateAssetModelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7477
- var contents, data;
7478
- return __generator(this, function (_a) {
7479
- switch (_a.label) {
7563
+ var contents, data, _a, _b;
7564
+ return __generator(this, function (_c) {
7565
+ switch (_c.label) {
7480
7566
  case 0:
7481
7567
  if (output.statusCode !== 202 && output.statusCode >= 300) {
7482
7568
  return [2 /*return*/, deserializeAws_restJson1UpdateAssetModelCommandError(output, context)];
@@ -7485,9 +7571,11 @@ export var deserializeAws_restJson1UpdateAssetModelCommand = function (output, c
7485
7571
  $metadata: deserializeMetadata(output),
7486
7572
  assetModelStatus: undefined,
7487
7573
  };
7574
+ _a = __expectNonNull;
7575
+ _b = __expectObject;
7488
7576
  return [4 /*yield*/, parseBody(output.body, context)];
7489
7577
  case 1:
7490
- data = _a.sent();
7578
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7491
7579
  if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
7492
7580
  contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
7493
7581
  }
@@ -7838,9 +7926,9 @@ var deserializeAws_restJson1UpdateGatewayCommandError = function (output, contex
7838
7926
  });
7839
7927
  }); };
7840
7928
  export var deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7841
- var contents, data;
7842
- return __generator(this, function (_a) {
7843
- switch (_a.label) {
7929
+ var contents, data, _a, _b;
7930
+ return __generator(this, function (_c) {
7931
+ switch (_c.label) {
7844
7932
  case 0:
7845
7933
  if (output.statusCode !== 201 && output.statusCode >= 300) {
7846
7934
  return [2 /*return*/, deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommandError(output, context)];
@@ -7850,9 +7938,11 @@ export var deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand =
7850
7938
  capabilityNamespace: undefined,
7851
7939
  capabilitySyncStatus: undefined,
7852
7940
  };
7941
+ _a = __expectNonNull;
7942
+ _b = __expectObject;
7853
7943
  return [4 /*yield*/, parseBody(output.body, context)];
7854
7944
  case 1:
7855
- data = _a.sent();
7945
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7856
7946
  if (data.capabilityNamespace !== undefined && data.capabilityNamespace !== null) {
7857
7947
  contents.capabilityNamespace = __expectString(data.capabilityNamespace);
7858
7948
  }
@@ -7942,9 +8032,9 @@ var deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommandError = f
7942
8032
  });
7943
8033
  }); };
7944
8034
  export var deserializeAws_restJson1UpdatePortalCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7945
- var contents, data;
7946
- return __generator(this, function (_a) {
7947
- switch (_a.label) {
8035
+ var contents, data, _a, _b;
8036
+ return __generator(this, function (_c) {
8037
+ switch (_c.label) {
7948
8038
  case 0:
7949
8039
  if (output.statusCode !== 202 && output.statusCode >= 300) {
7950
8040
  return [2 /*return*/, deserializeAws_restJson1UpdatePortalCommandError(output, context)];
@@ -7953,9 +8043,11 @@ export var deserializeAws_restJson1UpdatePortalCommand = function (output, conte
7953
8043
  $metadata: deserializeMetadata(output),
7954
8044
  portalStatus: undefined,
7955
8045
  };
8046
+ _a = __expectNonNull;
8047
+ _b = __expectObject;
7956
8048
  return [4 /*yield*/, parseBody(output.body, context)];
7957
8049
  case 1:
7958
- data = _a.sent();
8050
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7959
8051
  if (data.portalStatus !== undefined && data.portalStatus !== null) {
7960
8052
  contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
7961
8053
  }
@@ -8592,14 +8684,14 @@ var deserializeAws_restJson1AccessPolicySummaries = function (output, context) {
8592
8684
  var deserializeAws_restJson1AccessPolicySummary = function (output, context) {
8593
8685
  return {
8594
8686
  creationDate: output.creationDate !== undefined && output.creationDate !== null
8595
- ? new Date(Math.round(output.creationDate * 1000))
8687
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
8596
8688
  : undefined,
8597
8689
  id: __expectString(output.id),
8598
8690
  identity: output.identity !== undefined && output.identity !== null
8599
8691
  ? deserializeAws_restJson1Identity(output.identity, context)
8600
8692
  : undefined,
8601
8693
  lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
8602
- ? new Date(Math.round(output.lastUpdateDate * 1000))
8694
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
8603
8695
  : undefined,
8604
8696
  permission: __expectString(output.permission),
8605
8697
  resource: output.resource !== undefined && output.resource !== null
@@ -8611,7 +8703,7 @@ var deserializeAws_restJson1AggregatedValue = function (output, context) {
8611
8703
  return {
8612
8704
  quality: __expectString(output.quality),
8613
8705
  timestamp: output.timestamp !== undefined && output.timestamp !== null
8614
- ? new Date(Math.round(output.timestamp * 1000))
8706
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
8615
8707
  : undefined,
8616
8708
  value: output.value !== undefined && output.value !== null
8617
8709
  ? deserializeAws_restJson1Aggregates(output.value, context)
@@ -8630,12 +8722,12 @@ var deserializeAws_restJson1AggregatedValues = function (output, context) {
8630
8722
  };
8631
8723
  var deserializeAws_restJson1Aggregates = function (output, context) {
8632
8724
  return {
8633
- average: __limitedParseFloat(output.average),
8634
- count: __limitedParseFloat(output.count),
8635
- maximum: __limitedParseFloat(output.maximum),
8636
- minimum: __limitedParseFloat(output.minimum),
8637
- standardDeviation: __limitedParseFloat(output.standardDeviation),
8638
- sum: __limitedParseFloat(output.sum),
8725
+ average: __limitedParseDouble(output.average),
8726
+ count: __limitedParseDouble(output.count),
8727
+ maximum: __limitedParseDouble(output.maximum),
8728
+ minimum: __limitedParseDouble(output.minimum),
8729
+ standardDeviation: __limitedParseDouble(output.standardDeviation),
8730
+ sum: __limitedParseDouble(output.sum),
8639
8731
  };
8640
8732
  };
8641
8733
  var deserializeAws_restJson1Alarms = function (output, context) {
@@ -8784,12 +8876,12 @@ var deserializeAws_restJson1AssetModelSummary = function (output, context) {
8784
8876
  return {
8785
8877
  arn: __expectString(output.arn),
8786
8878
  creationDate: output.creationDate !== undefined && output.creationDate !== null
8787
- ? new Date(Math.round(output.creationDate * 1000))
8879
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
8788
8880
  : undefined,
8789
8881
  description: __expectString(output.description),
8790
8882
  id: __expectString(output.id),
8791
8883
  lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
8792
- ? new Date(Math.round(output.lastUpdateDate * 1000))
8884
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
8793
8885
  : undefined,
8794
8886
  name: __expectString(output.name),
8795
8887
  status: output.status !== undefined && output.status !== null
@@ -8882,14 +8974,14 @@ var deserializeAws_restJson1AssetSummary = function (output, context) {
8882
8974
  arn: __expectString(output.arn),
8883
8975
  assetModelId: __expectString(output.assetModelId),
8884
8976
  creationDate: output.creationDate !== undefined && output.creationDate !== null
8885
- ? new Date(Math.round(output.creationDate * 1000))
8977
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
8886
8978
  : undefined,
8887
8979
  hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
8888
8980
  ? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
8889
8981
  : undefined,
8890
8982
  id: __expectString(output.id),
8891
8983
  lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
8892
- ? new Date(Math.round(output.lastUpdateDate * 1000))
8984
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
8893
8985
  : undefined,
8894
8986
  name: __expectString(output.name),
8895
8987
  status: output.status !== undefined && output.status !== null
@@ -8912,14 +9004,14 @@ var deserializeAws_restJson1AssociatedAssetsSummary = function (output, context)
8912
9004
  arn: __expectString(output.arn),
8913
9005
  assetModelId: __expectString(output.assetModelId),
8914
9006
  creationDate: output.creationDate !== undefined && output.creationDate !== null
8915
- ? new Date(Math.round(output.creationDate * 1000))
9007
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
8916
9008
  : undefined,
8917
9009
  hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
8918
9010
  ? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
8919
9011
  : undefined,
8920
9012
  id: __expectString(output.id),
8921
9013
  lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
8922
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9014
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
8923
9015
  : undefined,
8924
9016
  name: __expectString(output.name),
8925
9017
  status: output.status !== undefined && output.status !== null
@@ -9031,12 +9123,12 @@ var deserializeAws_restJson1DashboardSummaries = function (output, context) {
9031
9123
  var deserializeAws_restJson1DashboardSummary = function (output, context) {
9032
9124
  return {
9033
9125
  creationDate: output.creationDate !== undefined && output.creationDate !== null
9034
- ? new Date(Math.round(output.creationDate * 1000))
9126
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9035
9127
  : undefined,
9036
9128
  description: __expectString(output.description),
9037
9129
  id: __expectString(output.id),
9038
9130
  lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9039
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9131
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9040
9132
  : undefined,
9041
9133
  name: __expectString(output.name),
9042
9134
  };
@@ -9128,7 +9220,7 @@ var deserializeAws_restJson1GatewaySummaries = function (output, context) {
9128
9220
  var deserializeAws_restJson1GatewaySummary = function (output, context) {
9129
9221
  return {
9130
9222
  creationDate: output.creationDate !== undefined && output.creationDate !== null
9131
- ? new Date(Math.round(output.creationDate * 1000))
9223
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9132
9224
  : undefined,
9133
9225
  gatewayCapabilitySummaries: output.gatewayCapabilitySummaries !== undefined && output.gatewayCapabilitySummaries !== null
9134
9226
  ? deserializeAws_restJson1GatewayCapabilitySummaries(output.gatewayCapabilitySummaries, context)
@@ -9139,7 +9231,7 @@ var deserializeAws_restJson1GatewaySummary = function (output, context) {
9139
9231
  ? deserializeAws_restJson1GatewayPlatform(output.gatewayPlatform, context)
9140
9232
  : undefined,
9141
9233
  lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9142
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9234
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9143
9235
  : undefined,
9144
9236
  };
9145
9237
  };
@@ -9294,12 +9386,12 @@ var deserializeAws_restJson1PortalSummaries = function (output, context) {
9294
9386
  var deserializeAws_restJson1PortalSummary = function (output, context) {
9295
9387
  return {
9296
9388
  creationDate: output.creationDate !== undefined && output.creationDate !== null
9297
- ? new Date(Math.round(output.creationDate * 1000))
9389
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9298
9390
  : undefined,
9299
9391
  description: __expectString(output.description),
9300
9392
  id: __expectString(output.id),
9301
9393
  lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9302
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9394
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9303
9395
  : undefined,
9304
9396
  name: __expectString(output.name),
9305
9397
  roleArn: __expectString(output.roleArn),
@@ -9327,12 +9419,12 @@ var deserializeAws_restJson1ProjectSummaries = function (output, context) {
9327
9419
  var deserializeAws_restJson1ProjectSummary = function (output, context) {
9328
9420
  return {
9329
9421
  creationDate: output.creationDate !== undefined && output.creationDate !== null
9330
- ? new Date(Math.round(output.creationDate * 1000))
9422
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9331
9423
  : undefined,
9332
9424
  description: __expectString(output.description),
9333
9425
  id: __expectString(output.id),
9334
9426
  lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9335
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9427
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9336
9428
  : undefined,
9337
9429
  name: __expectString(output.name),
9338
9430
  };
@@ -9396,8 +9488,8 @@ var deserializeAws_restJson1TagMap = function (output, context) {
9396
9488
  };
9397
9489
  var deserializeAws_restJson1TimeInNanos = function (output, context) {
9398
9490
  return {
9399
- offsetInNanos: __expectInt(output.offsetInNanos),
9400
- timeInSeconds: __expectInt(output.timeInSeconds),
9491
+ offsetInNanos: __expectInt32(output.offsetInNanos),
9492
+ timeInSeconds: __expectLong(output.timeInSeconds),
9401
9493
  };
9402
9494
  };
9403
9495
  var deserializeAws_restJson1Timestamps = function (output, context) {
@@ -9449,8 +9541,8 @@ var deserializeAws_restJson1VariableValue = function (output, context) {
9449
9541
  var deserializeAws_restJson1Variant = function (output, context) {
9450
9542
  return {
9451
9543
  booleanValue: __expectBoolean(output.booleanValue),
9452
- doubleValue: __limitedParseFloat(output.doubleValue),
9453
- integerValue: __expectInt(output.integerValue),
9544
+ doubleValue: __limitedParseDouble(output.doubleValue),
9545
+ integerValue: __expectInt32(output.integerValue),
9454
9546
  stringValue: __expectString(output.stringValue),
9455
9547
  };
9456
9548
  };