@aws-sdk/client-iotsitewise 3.54.1 → 3.55.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/IoTSiteWiseClient.js +13 -13
- package/dist-cjs/commands/AssociateAssetsCommand.js +3 -3
- package/dist-cjs/commands/AssociateTimeSeriesToAssetPropertyCommand.js +3 -3
- package/dist-cjs/commands/BatchAssociateProjectAssetsCommand.js +3 -3
- package/dist-cjs/commands/BatchDisassociateProjectAssetsCommand.js +3 -3
- package/dist-cjs/commands/BatchPutAssetPropertyValueCommand.js +3 -3
- package/dist-cjs/commands/CreateAccessPolicyCommand.js +3 -3
- package/dist-cjs/commands/CreateAssetCommand.js +3 -3
- package/dist-cjs/commands/CreateAssetModelCommand.js +3 -3
- package/dist-cjs/commands/CreateDashboardCommand.js +3 -3
- package/dist-cjs/commands/CreateGatewayCommand.js +3 -3
- package/dist-cjs/commands/CreatePortalCommand.js +3 -3
- package/dist-cjs/commands/CreateProjectCommand.js +3 -3
- package/dist-cjs/commands/DeleteAccessPolicyCommand.js +3 -3
- package/dist-cjs/commands/DeleteAssetCommand.js +3 -3
- package/dist-cjs/commands/DeleteAssetModelCommand.js +3 -3
- package/dist-cjs/commands/DeleteDashboardCommand.js +3 -3
- package/dist-cjs/commands/DeleteGatewayCommand.js +3 -3
- package/dist-cjs/commands/DeletePortalCommand.js +3 -3
- package/dist-cjs/commands/DeleteProjectCommand.js +3 -3
- package/dist-cjs/commands/DeleteTimeSeriesCommand.js +3 -3
- package/dist-cjs/commands/DescribeAccessPolicyCommand.js +3 -3
- package/dist-cjs/commands/DescribeAssetCommand.js +3 -3
- package/dist-cjs/commands/DescribeAssetModelCommand.js +3 -3
- package/dist-cjs/commands/DescribeAssetPropertyCommand.js +3 -3
- package/dist-cjs/commands/DescribeDashboardCommand.js +3 -3
- package/dist-cjs/commands/DescribeDefaultEncryptionConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DescribeGatewayCapabilityConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DescribeGatewayCommand.js +3 -3
- package/dist-cjs/commands/DescribeLoggingOptionsCommand.js +3 -3
- package/dist-cjs/commands/DescribePortalCommand.js +3 -3
- package/dist-cjs/commands/DescribeProjectCommand.js +3 -3
- package/dist-cjs/commands/DescribeStorageConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DescribeTimeSeriesCommand.js +3 -3
- package/dist-cjs/commands/DisassociateAssetsCommand.js +3 -3
- package/dist-cjs/commands/DisassociateTimeSeriesFromAssetPropertyCommand.js +3 -3
- package/dist-cjs/commands/GetAssetPropertyAggregatesCommand.js +3 -3
- package/dist-cjs/commands/GetAssetPropertyValueCommand.js +3 -3
- package/dist-cjs/commands/GetAssetPropertyValueHistoryCommand.js +3 -3
- package/dist-cjs/commands/GetInterpolatedAssetPropertyValuesCommand.js +3 -3
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +3 -3
- package/dist-cjs/commands/ListAssetModelsCommand.js +3 -3
- package/dist-cjs/commands/ListAssetRelationshipsCommand.js +3 -3
- package/dist-cjs/commands/ListAssetsCommand.js +3 -3
- package/dist-cjs/commands/ListAssociatedAssetsCommand.js +3 -3
- package/dist-cjs/commands/ListDashboardsCommand.js +3 -3
- package/dist-cjs/commands/ListGatewaysCommand.js +3 -3
- package/dist-cjs/commands/ListPortalsCommand.js +3 -3
- package/dist-cjs/commands/ListProjectAssetsCommand.js +3 -3
- package/dist-cjs/commands/ListProjectsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListTimeSeriesCommand.js +3 -3
- package/dist-cjs/commands/PutDefaultEncryptionConfigurationCommand.js +3 -3
- package/dist-cjs/commands/PutLoggingOptionsCommand.js +3 -3
- package/dist-cjs/commands/PutStorageConfigurationCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateAccessPolicyCommand.js +3 -3
- package/dist-cjs/commands/UpdateAssetCommand.js +3 -3
- package/dist-cjs/commands/UpdateAssetModelCommand.js +3 -3
- package/dist-cjs/commands/UpdateAssetPropertyCommand.js +3 -3
- package/dist-cjs/commands/UpdateDashboardCommand.js +3 -3
- package/dist-cjs/commands/UpdateGatewayCapabilityConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateGatewayCommand.js +3 -3
- package/dist-cjs/commands/UpdatePortalCommand.js +3 -3
- package/dist-cjs/commands/UpdateProjectCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +514 -514
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-cjs/waiters/waitForAssetActive.js +3 -3
- package/dist-cjs/waiters/waitForAssetModelActive.js +3 -3
- package/dist-cjs/waiters/waitForAssetModelNotExists.js +3 -3
- package/dist-cjs/waiters/waitForAssetNotExists.js +3 -3
- package/dist-cjs/waiters/waitForPortalActive.js +3 -3
- package/dist-cjs/waiters/waitForPortalNotExists.js +3 -3
- package/dist-es/IoTSiteWise.js +65 -65
- package/dist-es/pagination/GetAssetPropertyAggregatesPaginator.js +4 -4
- package/dist-es/pagination/GetAssetPropertyValueHistoryPaginator.js +4 -4
- package/dist-es/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +4 -4
- package/dist-es/pagination/ListAccessPoliciesPaginator.js +4 -4
- package/dist-es/pagination/ListAssetModelsPaginator.js +4 -4
- package/dist-es/pagination/ListAssetRelationshipsPaginator.js +4 -4
- package/dist-es/pagination/ListAssetsPaginator.js +4 -4
- package/dist-es/pagination/ListAssociatedAssetsPaginator.js +4 -4
- package/dist-es/pagination/ListDashboardsPaginator.js +4 -4
- package/dist-es/pagination/ListGatewaysPaginator.js +4 -4
- package/dist-es/pagination/ListPortalsPaginator.js +4 -4
- package/dist-es/pagination/ListProjectAssetsPaginator.js +4 -4
- package/dist-es/pagination/ListProjectsPaginator.js +4 -4
- package/dist-es/pagination/ListTimeSeriesPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +65 -65
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +35 -35
|
@@ -20,7 +20,7 @@ const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
|
|
|
20
20
|
if (labelValue.length <= 0) {
|
|
21
21
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
22
22
|
}
|
|
23
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
23
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -28,13 +28,13 @@ const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
|
|
|
28
28
|
let body;
|
|
29
29
|
body = JSON.stringify({
|
|
30
30
|
...(input.childAssetId !== undefined && input.childAssetId !== null && { childAssetId: input.childAssetId }),
|
|
31
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
31
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
32
32
|
...(input.hierarchyId !== undefined && input.hierarchyId !== null && { hierarchyId: input.hierarchyId }),
|
|
33
33
|
});
|
|
34
34
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
35
35
|
if (context.disableHostPrefix !== true) {
|
|
36
36
|
resolvedHostname = "api." + resolvedHostname;
|
|
37
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
37
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
38
38
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -63,12 +63,12 @@ const serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = async (i
|
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
65
|
body = JSON.stringify({
|
|
66
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
66
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
67
67
|
});
|
|
68
68
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
69
69
|
if (context.disableHostPrefix !== true) {
|
|
70
70
|
resolvedHostname = "api." + resolvedHostname;
|
|
71
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
71
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
72
72
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -96,7 +96,7 @@ const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, c
|
|
|
96
96
|
if (labelValue.length <= 0) {
|
|
97
97
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
98
98
|
}
|
|
99
|
-
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
99
|
+
resolvedPath = resolvedPath.replace("{projectId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -105,12 +105,12 @@ const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, c
|
|
|
105
105
|
body = JSON.stringify({
|
|
106
106
|
...(input.assetIds !== undefined &&
|
|
107
107
|
input.assetIds !== null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
|
|
108
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
108
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
109
109
|
});
|
|
110
110
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
111
111
|
if (context.disableHostPrefix !== true) {
|
|
112
112
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
113
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
113
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
114
114
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ const serializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (input
|
|
|
137
137
|
if (labelValue.length <= 0) {
|
|
138
138
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
139
139
|
}
|
|
140
|
-
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
140
|
+
resolvedPath = resolvedPath.replace("{projectId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
143
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -146,12 +146,12 @@ const serializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (input
|
|
|
146
146
|
body = JSON.stringify({
|
|
147
147
|
...(input.assetIds !== undefined &&
|
|
148
148
|
input.assetIds !== null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
|
|
149
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
149
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
150
150
|
});
|
|
151
151
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
152
152
|
if (context.disableHostPrefix !== true) {
|
|
153
153
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
154
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
154
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
155
155
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -182,7 +182,7 @@ const serializeAws_restJson1BatchPutAssetPropertyValueCommand = async (input, co
|
|
|
182
182
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
183
183
|
if (context.disableHostPrefix !== true) {
|
|
184
184
|
resolvedHostname = "data." + resolvedHostname;
|
|
185
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
185
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
186
186
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
187
187
|
}
|
|
188
188
|
}
|
|
@@ -216,13 +216,13 @@ const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) =
|
|
|
216
216
|
input.accessPolicyResource !== null && {
|
|
217
217
|
accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
|
|
218
218
|
}),
|
|
219
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
219
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
220
220
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
221
221
|
});
|
|
222
222
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
223
223
|
if (context.disableHostPrefix !== true) {
|
|
224
224
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
225
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
225
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
226
226
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
227
227
|
}
|
|
228
228
|
}
|
|
@@ -248,13 +248,13 @@ const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
|
|
|
248
248
|
body = JSON.stringify({
|
|
249
249
|
...(input.assetModelId !== undefined && input.assetModelId !== null && { assetModelId: input.assetModelId }),
|
|
250
250
|
...(input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName }),
|
|
251
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
251
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
252
252
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
253
253
|
});
|
|
254
254
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
255
255
|
if (context.disableHostPrefix !== true) {
|
|
256
256
|
resolvedHostname = "api." + resolvedHostname;
|
|
257
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
257
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
258
258
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
259
259
|
}
|
|
260
260
|
}
|
|
@@ -294,13 +294,13 @@ const serializeAws_restJson1CreateAssetModelCommand = async (input, context) =>
|
|
|
294
294
|
input.assetModelProperties !== null && {
|
|
295
295
|
assetModelProperties: serializeAws_restJson1AssetModelPropertyDefinitions(input.assetModelProperties, context),
|
|
296
296
|
}),
|
|
297
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
297
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
298
298
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
299
299
|
});
|
|
300
300
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
301
301
|
if (context.disableHostPrefix !== true) {
|
|
302
302
|
resolvedHostname = "api." + resolvedHostname;
|
|
303
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
303
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
304
304
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
305
305
|
}
|
|
306
306
|
}
|
|
@@ -324,7 +324,7 @@ const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
|
|
|
324
324
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
|
|
325
325
|
let body;
|
|
326
326
|
body = JSON.stringify({
|
|
327
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
327
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
328
328
|
...(input.dashboardDefinition !== undefined &&
|
|
329
329
|
input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition }),
|
|
330
330
|
...(input.dashboardDescription !== undefined &&
|
|
@@ -336,7 +336,7 @@ const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
|
|
|
336
336
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
337
337
|
if (context.disableHostPrefix !== true) {
|
|
338
338
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
339
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
339
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
340
340
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -369,7 +369,7 @@ const serializeAws_restJson1CreateGatewayCommand = async (input, context) => {
|
|
|
369
369
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
370
370
|
if (context.disableHostPrefix !== true) {
|
|
371
371
|
resolvedHostname = "api." + resolvedHostname;
|
|
372
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
372
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
373
373
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -395,7 +395,7 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
|
395
395
|
body = JSON.stringify({
|
|
396
396
|
...(input.alarms !== undefined &&
|
|
397
397
|
input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
|
|
398
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
398
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
399
399
|
...(input.notificationSenderEmail !== undefined &&
|
|
400
400
|
input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail }),
|
|
401
401
|
...(input.portalAuthMode !== undefined &&
|
|
@@ -415,7 +415,7 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
|
415
415
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
416
416
|
if (context.disableHostPrefix !== true) {
|
|
417
417
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
418
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
418
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
419
419
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
420
420
|
}
|
|
421
421
|
}
|
|
@@ -439,7 +439,7 @@ const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
|
|
|
439
439
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
|
|
440
440
|
let body;
|
|
441
441
|
body = JSON.stringify({
|
|
442
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
442
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
443
443
|
...(input.portalId !== undefined && input.portalId !== null && { portalId: input.portalId }),
|
|
444
444
|
...(input.projectDescription !== undefined &&
|
|
445
445
|
input.projectDescription !== null && { projectDescription: input.projectDescription }),
|
|
@@ -449,7 +449,7 @@ const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
|
|
|
449
449
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
450
450
|
if (context.disableHostPrefix !== true) {
|
|
451
451
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
452
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
452
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
453
453
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
454
454
|
}
|
|
455
455
|
}
|
|
@@ -473,7 +473,7 @@ const serializeAws_restJson1DeleteAccessPolicyCommand = async (input, context) =
|
|
|
473
473
|
if (labelValue.length <= 0) {
|
|
474
474
|
throw new Error("Empty value provided for input HTTP label: accessPolicyId.");
|
|
475
475
|
}
|
|
476
|
-
resolvedPath = resolvedPath.replace("{accessPolicyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
476
|
+
resolvedPath = resolvedPath.replace("{accessPolicyId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
477
477
|
}
|
|
478
478
|
else {
|
|
479
479
|
throw new Error("No value provided for input HTTP label: accessPolicyId.");
|
|
@@ -485,7 +485,7 @@ const serializeAws_restJson1DeleteAccessPolicyCommand = async (input, context) =
|
|
|
485
485
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
486
486
|
if (context.disableHostPrefix !== true) {
|
|
487
487
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
488
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
488
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
489
489
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
490
490
|
}
|
|
491
491
|
}
|
|
@@ -510,7 +510,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
510
510
|
if (labelValue.length <= 0) {
|
|
511
511
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
512
512
|
}
|
|
513
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
513
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
514
514
|
}
|
|
515
515
|
else {
|
|
516
516
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -522,7 +522,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
522
522
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
523
523
|
if (context.disableHostPrefix !== true) {
|
|
524
524
|
resolvedHostname = "api." + resolvedHostname;
|
|
525
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
525
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
526
526
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
527
527
|
}
|
|
528
528
|
}
|
|
@@ -547,7 +547,7 @@ const serializeAws_restJson1DeleteAssetModelCommand = async (input, context) =>
|
|
|
547
547
|
if (labelValue.length <= 0) {
|
|
548
548
|
throw new Error("Empty value provided for input HTTP label: assetModelId.");
|
|
549
549
|
}
|
|
550
|
-
resolvedPath = resolvedPath.replace("{assetModelId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
550
|
+
resolvedPath = resolvedPath.replace("{assetModelId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
551
551
|
}
|
|
552
552
|
else {
|
|
553
553
|
throw new Error("No value provided for input HTTP label: assetModelId.");
|
|
@@ -559,7 +559,7 @@ const serializeAws_restJson1DeleteAssetModelCommand = async (input, context) =>
|
|
|
559
559
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
560
560
|
if (context.disableHostPrefix !== true) {
|
|
561
561
|
resolvedHostname = "api." + resolvedHostname;
|
|
562
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
562
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
563
563
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
564
564
|
}
|
|
565
565
|
}
|
|
@@ -584,7 +584,7 @@ const serializeAws_restJson1DeleteDashboardCommand = async (input, context) => {
|
|
|
584
584
|
if (labelValue.length <= 0) {
|
|
585
585
|
throw new Error("Empty value provided for input HTTP label: dashboardId.");
|
|
586
586
|
}
|
|
587
|
-
resolvedPath = resolvedPath.replace("{dashboardId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
587
|
+
resolvedPath = resolvedPath.replace("{dashboardId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
588
588
|
}
|
|
589
589
|
else {
|
|
590
590
|
throw new Error("No value provided for input HTTP label: dashboardId.");
|
|
@@ -596,7 +596,7 @@ const serializeAws_restJson1DeleteDashboardCommand = async (input, context) => {
|
|
|
596
596
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
597
597
|
if (context.disableHostPrefix !== true) {
|
|
598
598
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
599
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
599
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
600
600
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
601
601
|
}
|
|
602
602
|
}
|
|
@@ -621,7 +621,7 @@ const serializeAws_restJson1DeleteGatewayCommand = async (input, context) => {
|
|
|
621
621
|
if (labelValue.length <= 0) {
|
|
622
622
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
623
623
|
}
|
|
624
|
-
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
624
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
625
625
|
}
|
|
626
626
|
else {
|
|
627
627
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -630,7 +630,7 @@ const serializeAws_restJson1DeleteGatewayCommand = async (input, context) => {
|
|
|
630
630
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
631
631
|
if (context.disableHostPrefix !== true) {
|
|
632
632
|
resolvedHostname = "api." + resolvedHostname;
|
|
633
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
633
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
634
634
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
635
635
|
}
|
|
636
636
|
}
|
|
@@ -654,7 +654,7 @@ const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
|
|
|
654
654
|
if (labelValue.length <= 0) {
|
|
655
655
|
throw new Error("Empty value provided for input HTTP label: portalId.");
|
|
656
656
|
}
|
|
657
|
-
resolvedPath = resolvedPath.replace("{portalId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
657
|
+
resolvedPath = resolvedPath.replace("{portalId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
658
658
|
}
|
|
659
659
|
else {
|
|
660
660
|
throw new Error("No value provided for input HTTP label: portalId.");
|
|
@@ -666,7 +666,7 @@ const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
|
|
|
666
666
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
667
667
|
if (context.disableHostPrefix !== true) {
|
|
668
668
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
669
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
669
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
670
670
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
671
671
|
}
|
|
672
672
|
}
|
|
@@ -691,7 +691,7 @@ const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
|
|
|
691
691
|
if (labelValue.length <= 0) {
|
|
692
692
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
693
693
|
}
|
|
694
|
-
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
694
|
+
resolvedPath = resolvedPath.replace("{projectId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
695
695
|
}
|
|
696
696
|
else {
|
|
697
697
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -703,7 +703,7 @@ const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
|
|
|
703
703
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
704
704
|
if (context.disableHostPrefix !== true) {
|
|
705
705
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
706
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
706
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
707
707
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
708
708
|
}
|
|
709
709
|
}
|
|
@@ -733,12 +733,12 @@ const serializeAws_restJson1DeleteTimeSeriesCommand = async (input, context) =>
|
|
|
733
733
|
};
|
|
734
734
|
let body;
|
|
735
735
|
body = JSON.stringify({
|
|
736
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
736
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
737
737
|
});
|
|
738
738
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
739
739
|
if (context.disableHostPrefix !== true) {
|
|
740
740
|
resolvedHostname = "api." + resolvedHostname;
|
|
741
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
741
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
742
742
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
743
743
|
}
|
|
744
744
|
}
|
|
@@ -763,7 +763,7 @@ const serializeAws_restJson1DescribeAccessPolicyCommand = async (input, context)
|
|
|
763
763
|
if (labelValue.length <= 0) {
|
|
764
764
|
throw new Error("Empty value provided for input HTTP label: accessPolicyId.");
|
|
765
765
|
}
|
|
766
|
-
resolvedPath = resolvedPath.replace("{accessPolicyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
766
|
+
resolvedPath = resolvedPath.replace("{accessPolicyId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
767
767
|
}
|
|
768
768
|
else {
|
|
769
769
|
throw new Error("No value provided for input HTTP label: accessPolicyId.");
|
|
@@ -772,7 +772,7 @@ const serializeAws_restJson1DescribeAccessPolicyCommand = async (input, context)
|
|
|
772
772
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
773
773
|
if (context.disableHostPrefix !== true) {
|
|
774
774
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
775
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
775
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
776
776
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
777
777
|
}
|
|
778
778
|
}
|
|
@@ -796,7 +796,7 @@ const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
|
796
796
|
if (labelValue.length <= 0) {
|
|
797
797
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
798
798
|
}
|
|
799
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
799
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
800
800
|
}
|
|
801
801
|
else {
|
|
802
802
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -805,7 +805,7 @@ const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
|
805
805
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
806
806
|
if (context.disableHostPrefix !== true) {
|
|
807
807
|
resolvedHostname = "api." + resolvedHostname;
|
|
808
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
808
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
809
809
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
810
810
|
}
|
|
811
811
|
}
|
|
@@ -829,7 +829,7 @@ const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) =
|
|
|
829
829
|
if (labelValue.length <= 0) {
|
|
830
830
|
throw new Error("Empty value provided for input HTTP label: assetModelId.");
|
|
831
831
|
}
|
|
832
|
-
resolvedPath = resolvedPath.replace("{assetModelId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
832
|
+
resolvedPath = resolvedPath.replace("{assetModelId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
833
833
|
}
|
|
834
834
|
else {
|
|
835
835
|
throw new Error("No value provided for input HTTP label: assetModelId.");
|
|
@@ -838,7 +838,7 @@ const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) =
|
|
|
838
838
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
839
839
|
if (context.disableHostPrefix !== true) {
|
|
840
840
|
resolvedHostname = "api." + resolvedHostname;
|
|
841
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
841
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
842
842
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
843
843
|
}
|
|
844
844
|
}
|
|
@@ -862,7 +862,7 @@ const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context
|
|
|
862
862
|
if (labelValue.length <= 0) {
|
|
863
863
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
864
864
|
}
|
|
865
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
865
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
866
866
|
}
|
|
867
867
|
else {
|
|
868
868
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -872,7 +872,7 @@ const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context
|
|
|
872
872
|
if (labelValue.length <= 0) {
|
|
873
873
|
throw new Error("Empty value provided for input HTTP label: propertyId.");
|
|
874
874
|
}
|
|
875
|
-
resolvedPath = resolvedPath.replace("{propertyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
875
|
+
resolvedPath = resolvedPath.replace("{propertyId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
876
876
|
}
|
|
877
877
|
else {
|
|
878
878
|
throw new Error("No value provided for input HTTP label: propertyId.");
|
|
@@ -881,7 +881,7 @@ const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context
|
|
|
881
881
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
882
882
|
if (context.disableHostPrefix !== true) {
|
|
883
883
|
resolvedHostname = "api." + resolvedHostname;
|
|
884
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
884
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
885
885
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
886
886
|
}
|
|
887
887
|
}
|
|
@@ -905,7 +905,7 @@ const serializeAws_restJson1DescribeDashboardCommand = async (input, context) =>
|
|
|
905
905
|
if (labelValue.length <= 0) {
|
|
906
906
|
throw new Error("Empty value provided for input HTTP label: dashboardId.");
|
|
907
907
|
}
|
|
908
|
-
resolvedPath = resolvedPath.replace("{dashboardId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
908
|
+
resolvedPath = resolvedPath.replace("{dashboardId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
909
909
|
}
|
|
910
910
|
else {
|
|
911
911
|
throw new Error("No value provided for input HTTP label: dashboardId.");
|
|
@@ -914,7 +914,7 @@ const serializeAws_restJson1DescribeDashboardCommand = async (input, context) =>
|
|
|
914
914
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
915
915
|
if (context.disableHostPrefix !== true) {
|
|
916
916
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
917
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
917
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
918
918
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
919
919
|
}
|
|
920
920
|
}
|
|
@@ -940,7 +940,7 @@ const serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = asyn
|
|
|
940
940
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
941
941
|
if (context.disableHostPrefix !== true) {
|
|
942
942
|
resolvedHostname = "api." + resolvedHostname;
|
|
943
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
943
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
944
944
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
945
945
|
}
|
|
946
946
|
}
|
|
@@ -964,7 +964,7 @@ const serializeAws_restJson1DescribeGatewayCommand = async (input, context) => {
|
|
|
964
964
|
if (labelValue.length <= 0) {
|
|
965
965
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
966
966
|
}
|
|
967
|
-
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
967
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
968
968
|
}
|
|
969
969
|
else {
|
|
970
970
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -973,7 +973,7 @@ const serializeAws_restJson1DescribeGatewayCommand = async (input, context) => {
|
|
|
973
973
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
974
974
|
if (context.disableHostPrefix !== true) {
|
|
975
975
|
resolvedHostname = "api." + resolvedHostname;
|
|
976
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
976
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
977
977
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
978
978
|
}
|
|
979
979
|
}
|
|
@@ -998,7 +998,7 @@ const serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = asyn
|
|
|
998
998
|
if (labelValue.length <= 0) {
|
|
999
999
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
1000
1000
|
}
|
|
1001
|
-
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1001
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1002
1002
|
}
|
|
1003
1003
|
else {
|
|
1004
1004
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -1008,7 +1008,7 @@ const serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = asyn
|
|
|
1008
1008
|
if (labelValue.length <= 0) {
|
|
1009
1009
|
throw new Error("Empty value provided for input HTTP label: capabilityNamespace.");
|
|
1010
1010
|
}
|
|
1011
|
-
resolvedPath = resolvedPath.replace("{capabilityNamespace}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1011
|
+
resolvedPath = resolvedPath.replace("{capabilityNamespace}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1012
1012
|
}
|
|
1013
1013
|
else {
|
|
1014
1014
|
throw new Error("No value provided for input HTTP label: capabilityNamespace.");
|
|
@@ -1017,7 +1017,7 @@ const serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = asyn
|
|
|
1017
1017
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1018
1018
|
if (context.disableHostPrefix !== true) {
|
|
1019
1019
|
resolvedHostname = "api." + resolvedHostname;
|
|
1020
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1020
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1021
1021
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
@@ -1043,7 +1043,7 @@ const serializeAws_restJson1DescribeLoggingOptionsCommand = async (input, contex
|
|
|
1043
1043
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1044
1044
|
if (context.disableHostPrefix !== true) {
|
|
1045
1045
|
resolvedHostname = "api." + resolvedHostname;
|
|
1046
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1046
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1047
1047
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
@@ -1067,7 +1067,7 @@ const serializeAws_restJson1DescribePortalCommand = async (input, context) => {
|
|
|
1067
1067
|
if (labelValue.length <= 0) {
|
|
1068
1068
|
throw new Error("Empty value provided for input HTTP label: portalId.");
|
|
1069
1069
|
}
|
|
1070
|
-
resolvedPath = resolvedPath.replace("{portalId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1070
|
+
resolvedPath = resolvedPath.replace("{portalId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1071
1071
|
}
|
|
1072
1072
|
else {
|
|
1073
1073
|
throw new Error("No value provided for input HTTP label: portalId.");
|
|
@@ -1076,7 +1076,7 @@ const serializeAws_restJson1DescribePortalCommand = async (input, context) => {
|
|
|
1076
1076
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1077
1077
|
if (context.disableHostPrefix !== true) {
|
|
1078
1078
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1079
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1079
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1080
1080
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
@@ -1100,7 +1100,7 @@ const serializeAws_restJson1DescribeProjectCommand = async (input, context) => {
|
|
|
1100
1100
|
if (labelValue.length <= 0) {
|
|
1101
1101
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
1102
1102
|
}
|
|
1103
|
-
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1103
|
+
resolvedPath = resolvedPath.replace("{projectId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1104
1104
|
}
|
|
1105
1105
|
else {
|
|
1106
1106
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -1109,7 +1109,7 @@ const serializeAws_restJson1DescribeProjectCommand = async (input, context) => {
|
|
|
1109
1109
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1110
1110
|
if (context.disableHostPrefix !== true) {
|
|
1111
1111
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1112
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1112
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1113
1113
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
@@ -1135,7 +1135,7 @@ const serializeAws_restJson1DescribeStorageConfigurationCommand = async (input,
|
|
|
1135
1135
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1136
1136
|
if (context.disableHostPrefix !== true) {
|
|
1137
1137
|
resolvedHostname = "api." + resolvedHostname;
|
|
1138
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1138
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1139
1139
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
@@ -1163,7 +1163,7 @@ const serializeAws_restJson1DescribeTimeSeriesCommand = async (input, context) =
|
|
|
1163
1163
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1164
1164
|
if (context.disableHostPrefix !== true) {
|
|
1165
1165
|
resolvedHostname = "api." + resolvedHostname;
|
|
1166
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1166
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1167
1167
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
@@ -1191,7 +1191,7 @@ const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) =
|
|
|
1191
1191
|
if (labelValue.length <= 0) {
|
|
1192
1192
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
1193
1193
|
}
|
|
1194
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1194
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1195
1195
|
}
|
|
1196
1196
|
else {
|
|
1197
1197
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -1199,13 +1199,13 @@ const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) =
|
|
|
1199
1199
|
let body;
|
|
1200
1200
|
body = JSON.stringify({
|
|
1201
1201
|
...(input.childAssetId !== undefined && input.childAssetId !== null && { childAssetId: input.childAssetId }),
|
|
1202
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1202
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1203
1203
|
...(input.hierarchyId !== undefined && input.hierarchyId !== null && { hierarchyId: input.hierarchyId }),
|
|
1204
1204
|
});
|
|
1205
1205
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1206
1206
|
if (context.disableHostPrefix !== true) {
|
|
1207
1207
|
resolvedHostname = "api." + resolvedHostname;
|
|
1208
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1208
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1209
1209
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
@@ -1234,12 +1234,12 @@ const serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = asy
|
|
|
1234
1234
|
};
|
|
1235
1235
|
let body;
|
|
1236
1236
|
body = JSON.stringify({
|
|
1237
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1237
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1238
1238
|
});
|
|
1239
1239
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1240
1240
|
if (context.disableHostPrefix !== true) {
|
|
1241
1241
|
resolvedHostname = "api." + resolvedHostname;
|
|
1242
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1242
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1243
1243
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
@@ -1278,7 +1278,7 @@ const serializeAws_restJson1GetAssetPropertyAggregatesCommand = async (input, co
|
|
|
1278
1278
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1279
1279
|
if (context.disableHostPrefix !== true) {
|
|
1280
1280
|
resolvedHostname = "data." + resolvedHostname;
|
|
1281
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1281
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1282
1282
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
@@ -1307,7 +1307,7 @@ const serializeAws_restJson1GetAssetPropertyValueCommand = async (input, context
|
|
|
1307
1307
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1308
1308
|
if (context.disableHostPrefix !== true) {
|
|
1309
1309
|
resolvedHostname = "data." + resolvedHostname;
|
|
1310
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1310
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1311
1311
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
@@ -1342,7 +1342,7 @@ const serializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (input,
|
|
|
1342
1342
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1343
1343
|
if (context.disableHostPrefix !== true) {
|
|
1344
1344
|
resolvedHostname = "data." + resolvedHostname;
|
|
1345
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1345
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1346
1346
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
@@ -1385,7 +1385,7 @@ const serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = async (i
|
|
|
1385
1385
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1386
1386
|
if (context.disableHostPrefix !== true) {
|
|
1387
1387
|
resolvedHostname = "data." + resolvedHostname;
|
|
1388
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1388
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1389
1389
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
@@ -1418,7 +1418,7 @@ const serializeAws_restJson1ListAccessPoliciesCommand = async (input, context) =
|
|
|
1418
1418
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1419
1419
|
if (context.disableHostPrefix !== true) {
|
|
1420
1420
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1421
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1421
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1422
1422
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
@@ -1446,7 +1446,7 @@ const serializeAws_restJson1ListAssetModelsCommand = async (input, context) => {
|
|
|
1446
1446
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1447
1447
|
if (context.disableHostPrefix !== true) {
|
|
1448
1448
|
resolvedHostname = "api." + resolvedHostname;
|
|
1449
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1449
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1450
1450
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
@@ -1471,7 +1471,7 @@ const serializeAws_restJson1ListAssetRelationshipsCommand = async (input, contex
|
|
|
1471
1471
|
if (labelValue.length <= 0) {
|
|
1472
1472
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
1473
1473
|
}
|
|
1474
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1474
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1475
1475
|
}
|
|
1476
1476
|
else {
|
|
1477
1477
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -1485,7 +1485,7 @@ const serializeAws_restJson1ListAssetRelationshipsCommand = async (input, contex
|
|
|
1485
1485
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1486
1486
|
if (context.disableHostPrefix !== true) {
|
|
1487
1487
|
resolvedHostname = "api." + resolvedHostname;
|
|
1488
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1488
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1489
1489
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
@@ -1515,7 +1515,7 @@ const serializeAws_restJson1ListAssetsCommand = async (input, context) => {
|
|
|
1515
1515
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1516
1516
|
if (context.disableHostPrefix !== true) {
|
|
1517
1517
|
resolvedHostname = "api." + resolvedHostname;
|
|
1518
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1518
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1519
1519
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
@@ -1540,7 +1540,7 @@ const serializeAws_restJson1ListAssociatedAssetsCommand = async (input, context)
|
|
|
1540
1540
|
if (labelValue.length <= 0) {
|
|
1541
1541
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
1542
1542
|
}
|
|
1543
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1543
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1544
1544
|
}
|
|
1545
1545
|
else {
|
|
1546
1546
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -1555,7 +1555,7 @@ const serializeAws_restJson1ListAssociatedAssetsCommand = async (input, context)
|
|
|
1555
1555
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1556
1556
|
if (context.disableHostPrefix !== true) {
|
|
1557
1557
|
resolvedHostname = "api." + resolvedHostname;
|
|
1558
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1558
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1559
1559
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
@@ -1584,7 +1584,7 @@ const serializeAws_restJson1ListDashboardsCommand = async (input, context) => {
|
|
|
1584
1584
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1585
1585
|
if (context.disableHostPrefix !== true) {
|
|
1586
1586
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1587
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1587
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1588
1588
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
@@ -1612,7 +1612,7 @@ const serializeAws_restJson1ListGatewaysCommand = async (input, context) => {
|
|
|
1612
1612
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1613
1613
|
if (context.disableHostPrefix !== true) {
|
|
1614
1614
|
resolvedHostname = "api." + resolvedHostname;
|
|
1615
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1615
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1616
1616
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
@@ -1640,7 +1640,7 @@ const serializeAws_restJson1ListPortalsCommand = async (input, context) => {
|
|
|
1640
1640
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1641
1641
|
if (context.disableHostPrefix !== true) {
|
|
1642
1642
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1643
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1643
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1644
1644
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
@@ -1665,7 +1665,7 @@ const serializeAws_restJson1ListProjectAssetsCommand = async (input, context) =>
|
|
|
1665
1665
|
if (labelValue.length <= 0) {
|
|
1666
1666
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
1667
1667
|
}
|
|
1668
|
-
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1668
|
+
resolvedPath = resolvedPath.replace("{projectId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1669
1669
|
}
|
|
1670
1670
|
else {
|
|
1671
1671
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -1678,7 +1678,7 @@ const serializeAws_restJson1ListProjectAssetsCommand = async (input, context) =>
|
|
|
1678
1678
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1679
1679
|
if (context.disableHostPrefix !== true) {
|
|
1680
1680
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1681
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1681
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1682
1682
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
@@ -1707,7 +1707,7 @@ const serializeAws_restJson1ListProjectsCommand = async (input, context) => {
|
|
|
1707
1707
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1708
1708
|
if (context.disableHostPrefix !== true) {
|
|
1709
1709
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1710
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1710
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1711
1711
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
@@ -1734,7 +1734,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1734
1734
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1735
1735
|
if (context.disableHostPrefix !== true) {
|
|
1736
1736
|
resolvedHostname = "api." + resolvedHostname;
|
|
1737
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1737
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1738
1738
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
@@ -1765,7 +1765,7 @@ const serializeAws_restJson1ListTimeSeriesCommand = async (input, context) => {
|
|
|
1765
1765
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1766
1766
|
if (context.disableHostPrefix !== true) {
|
|
1767
1767
|
resolvedHostname = "api." + resolvedHostname;
|
|
1768
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1768
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1769
1769
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
@@ -1796,7 +1796,7 @@ const serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = async (in
|
|
|
1796
1796
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1797
1797
|
if (context.disableHostPrefix !== true) {
|
|
1798
1798
|
resolvedHostname = "api." + resolvedHostname;
|
|
1799
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1799
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1800
1800
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1801
1801
|
}
|
|
1802
1802
|
}
|
|
@@ -1827,7 +1827,7 @@ const serializeAws_restJson1PutLoggingOptionsCommand = async (input, context) =>
|
|
|
1827
1827
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1828
1828
|
if (context.disableHostPrefix !== true) {
|
|
1829
1829
|
resolvedHostname = "api." + resolvedHostname;
|
|
1830
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1830
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1831
1831
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
@@ -1865,7 +1865,7 @@ const serializeAws_restJson1PutStorageConfigurationCommand = async (input, conte
|
|
|
1865
1865
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1866
1866
|
if (context.disableHostPrefix !== true) {
|
|
1867
1867
|
resolvedHostname = "api." + resolvedHostname;
|
|
1868
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1868
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1869
1869
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
@@ -1896,7 +1896,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1896
1896
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1897
1897
|
if (context.disableHostPrefix !== true) {
|
|
1898
1898
|
resolvedHostname = "api." + resolvedHostname;
|
|
1899
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1899
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1900
1900
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1901
1901
|
}
|
|
1902
1902
|
}
|
|
@@ -1924,7 +1924,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1924
1924
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1925
1925
|
if (context.disableHostPrefix !== true) {
|
|
1926
1926
|
resolvedHostname = "api." + resolvedHostname;
|
|
1927
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1927
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1928
1928
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1929
1929
|
}
|
|
1930
1930
|
}
|
|
@@ -1952,7 +1952,7 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
|
|
|
1952
1952
|
if (labelValue.length <= 0) {
|
|
1953
1953
|
throw new Error("Empty value provided for input HTTP label: accessPolicyId.");
|
|
1954
1954
|
}
|
|
1955
|
-
resolvedPath = resolvedPath.replace("{accessPolicyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1955
|
+
resolvedPath = resolvedPath.replace("{accessPolicyId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1956
1956
|
}
|
|
1957
1957
|
else {
|
|
1958
1958
|
throw new Error("No value provided for input HTTP label: accessPolicyId.");
|
|
@@ -1969,12 +1969,12 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
|
|
|
1969
1969
|
input.accessPolicyResource !== null && {
|
|
1970
1970
|
accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
|
|
1971
1971
|
}),
|
|
1972
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1972
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1973
1973
|
});
|
|
1974
1974
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1975
1975
|
if (context.disableHostPrefix !== true) {
|
|
1976
1976
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1977
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1977
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1978
1978
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
@@ -2001,7 +2001,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
2001
2001
|
if (labelValue.length <= 0) {
|
|
2002
2002
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
2003
2003
|
}
|
|
2004
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2004
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2005
2005
|
}
|
|
2006
2006
|
else {
|
|
2007
2007
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -2009,12 +2009,12 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
2009
2009
|
let body;
|
|
2010
2010
|
body = JSON.stringify({
|
|
2011
2011
|
...(input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName }),
|
|
2012
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2012
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2013
2013
|
});
|
|
2014
2014
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2015
2015
|
if (context.disableHostPrefix !== true) {
|
|
2016
2016
|
resolvedHostname = "api." + resolvedHostname;
|
|
2017
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2017
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2018
2018
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
@@ -2041,7 +2041,7 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
|
|
|
2041
2041
|
if (labelValue.length <= 0) {
|
|
2042
2042
|
throw new Error("Empty value provided for input HTTP label: assetModelId.");
|
|
2043
2043
|
}
|
|
2044
|
-
resolvedPath = resolvedPath.replace("{assetModelId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2044
|
+
resolvedPath = resolvedPath.replace("{assetModelId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2045
2045
|
}
|
|
2046
2046
|
else {
|
|
2047
2047
|
throw new Error("No value provided for input HTTP label: assetModelId.");
|
|
@@ -2064,12 +2064,12 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
|
|
|
2064
2064
|
input.assetModelProperties !== null && {
|
|
2065
2065
|
assetModelProperties: serializeAws_restJson1AssetModelProperties(input.assetModelProperties, context),
|
|
2066
2066
|
}),
|
|
2067
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2067
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2068
2068
|
});
|
|
2069
2069
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2070
2070
|
if (context.disableHostPrefix !== true) {
|
|
2071
2071
|
resolvedHostname = "api." + resolvedHostname;
|
|
2072
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2072
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2073
2073
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
@@ -2096,7 +2096,7 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
|
|
|
2096
2096
|
if (labelValue.length <= 0) {
|
|
2097
2097
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
2098
2098
|
}
|
|
2099
|
-
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2099
|
+
resolvedPath = resolvedPath.replace("{assetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2100
2100
|
}
|
|
2101
2101
|
else {
|
|
2102
2102
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -2106,14 +2106,14 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
|
|
|
2106
2106
|
if (labelValue.length <= 0) {
|
|
2107
2107
|
throw new Error("Empty value provided for input HTTP label: propertyId.");
|
|
2108
2108
|
}
|
|
2109
|
-
resolvedPath = resolvedPath.replace("{propertyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2109
|
+
resolvedPath = resolvedPath.replace("{propertyId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2110
2110
|
}
|
|
2111
2111
|
else {
|
|
2112
2112
|
throw new Error("No value provided for input HTTP label: propertyId.");
|
|
2113
2113
|
}
|
|
2114
2114
|
let body;
|
|
2115
2115
|
body = JSON.stringify({
|
|
2116
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2116
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2117
2117
|
...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
|
|
2118
2118
|
...(input.propertyNotificationState !== undefined &&
|
|
2119
2119
|
input.propertyNotificationState !== null && { propertyNotificationState: input.propertyNotificationState }),
|
|
@@ -2121,7 +2121,7 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
|
|
|
2121
2121
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2122
2122
|
if (context.disableHostPrefix !== true) {
|
|
2123
2123
|
resolvedHostname = "api." + resolvedHostname;
|
|
2124
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2124
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2125
2125
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
@@ -2148,14 +2148,14 @@ const serializeAws_restJson1UpdateDashboardCommand = async (input, context) => {
|
|
|
2148
2148
|
if (labelValue.length <= 0) {
|
|
2149
2149
|
throw new Error("Empty value provided for input HTTP label: dashboardId.");
|
|
2150
2150
|
}
|
|
2151
|
-
resolvedPath = resolvedPath.replace("{dashboardId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2151
|
+
resolvedPath = resolvedPath.replace("{dashboardId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2152
2152
|
}
|
|
2153
2153
|
else {
|
|
2154
2154
|
throw new Error("No value provided for input HTTP label: dashboardId.");
|
|
2155
2155
|
}
|
|
2156
2156
|
let body;
|
|
2157
2157
|
body = JSON.stringify({
|
|
2158
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2158
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2159
2159
|
...(input.dashboardDefinition !== undefined &&
|
|
2160
2160
|
input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition }),
|
|
2161
2161
|
...(input.dashboardDescription !== undefined &&
|
|
@@ -2165,7 +2165,7 @@ const serializeAws_restJson1UpdateDashboardCommand = async (input, context) => {
|
|
|
2165
2165
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2166
2166
|
if (context.disableHostPrefix !== true) {
|
|
2167
2167
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
2168
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2168
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2169
2169
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
@@ -2191,7 +2191,7 @@ const serializeAws_restJson1UpdateGatewayCommand = async (input, context) => {
|
|
|
2191
2191
|
if (labelValue.length <= 0) {
|
|
2192
2192
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
2193
2193
|
}
|
|
2194
|
-
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2194
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2195
2195
|
}
|
|
2196
2196
|
else {
|
|
2197
2197
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -2203,7 +2203,7 @@ const serializeAws_restJson1UpdateGatewayCommand = async (input, context) => {
|
|
|
2203
2203
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2204
2204
|
if (context.disableHostPrefix !== true) {
|
|
2205
2205
|
resolvedHostname = "api." + resolvedHostname;
|
|
2206
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2206
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2207
2207
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2208
2208
|
}
|
|
2209
2209
|
}
|
|
@@ -2229,7 +2229,7 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
|
|
|
2229
2229
|
if (labelValue.length <= 0) {
|
|
2230
2230
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
2231
2231
|
}
|
|
2232
|
-
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2232
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2233
2233
|
}
|
|
2234
2234
|
else {
|
|
2235
2235
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -2244,7 +2244,7 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
|
|
|
2244
2244
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2245
2245
|
if (context.disableHostPrefix !== true) {
|
|
2246
2246
|
resolvedHostname = "api." + resolvedHostname;
|
|
2247
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2247
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2248
2248
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2249
2249
|
}
|
|
2250
2250
|
}
|
|
@@ -2271,7 +2271,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
2271
2271
|
if (labelValue.length <= 0) {
|
|
2272
2272
|
throw new Error("Empty value provided for input HTTP label: portalId.");
|
|
2273
2273
|
}
|
|
2274
|
-
resolvedPath = resolvedPath.replace("{portalId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2274
|
+
resolvedPath = resolvedPath.replace("{portalId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2275
2275
|
}
|
|
2276
2276
|
else {
|
|
2277
2277
|
throw new Error("No value provided for input HTTP label: portalId.");
|
|
@@ -2280,7 +2280,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
2280
2280
|
body = JSON.stringify({
|
|
2281
2281
|
...(input.alarms !== undefined &&
|
|
2282
2282
|
input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
|
|
2283
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2283
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2284
2284
|
...(input.notificationSenderEmail !== undefined &&
|
|
2285
2285
|
input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail }),
|
|
2286
2286
|
...(input.portalContactEmail !== undefined &&
|
|
@@ -2297,7 +2297,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
2297
2297
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2298
2298
|
if (context.disableHostPrefix !== true) {
|
|
2299
2299
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
2300
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2300
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2301
2301
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2302
2302
|
}
|
|
2303
2303
|
}
|
|
@@ -2324,14 +2324,14 @@ const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
|
|
|
2324
2324
|
if (labelValue.length <= 0) {
|
|
2325
2325
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
2326
2326
|
}
|
|
2327
|
-
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2327
|
+
resolvedPath = resolvedPath.replace("{projectId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2328
2328
|
}
|
|
2329
2329
|
else {
|
|
2330
2330
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
2331
2331
|
}
|
|
2332
2332
|
let body;
|
|
2333
2333
|
body = JSON.stringify({
|
|
2334
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2334
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2335
2335
|
...(input.projectDescription !== undefined &&
|
|
2336
2336
|
input.projectDescription !== null && { projectDescription: input.projectDescription }),
|
|
2337
2337
|
...(input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName }),
|
|
@@ -2339,7 +2339,7 @@ const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
|
|
|
2339
2339
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2340
2340
|
if (context.disableHostPrefix !== true) {
|
|
2341
2341
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
2342
|
-
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2342
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2343
2343
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
@@ -2399,7 +2399,7 @@ const deserializeAws_restJson1AssociateAssetsCommandError = async (output, conte
|
|
|
2399
2399
|
$fault: "client",
|
|
2400
2400
|
$metadata: deserializeMetadata(output),
|
|
2401
2401
|
});
|
|
2402
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2402
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2403
2403
|
}
|
|
2404
2404
|
};
|
|
2405
2405
|
const deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = async (output, context) => {
|
|
@@ -2444,7 +2444,7 @@ const deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommandError = a
|
|
|
2444
2444
|
$fault: "client",
|
|
2445
2445
|
$metadata: deserializeMetadata(output),
|
|
2446
2446
|
});
|
|
2447
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2447
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2448
2448
|
}
|
|
2449
2449
|
};
|
|
2450
2450
|
const deserializeAws_restJson1BatchAssociateProjectAssetsCommand = async (output, context) => {
|
|
@@ -2455,7 +2455,7 @@ const deserializeAws_restJson1BatchAssociateProjectAssetsCommand = async (output
|
|
|
2455
2455
|
$metadata: deserializeMetadata(output),
|
|
2456
2456
|
errors: undefined,
|
|
2457
2457
|
};
|
|
2458
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2458
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2459
2459
|
if (data.errors !== undefined && data.errors !== null) {
|
|
2460
2460
|
contents.errors = deserializeAws_restJson1BatchAssociateProjectAssetsErrors(data.errors, context);
|
|
2461
2461
|
}
|
|
@@ -2493,7 +2493,7 @@ const deserializeAws_restJson1BatchAssociateProjectAssetsCommandError = async (o
|
|
|
2493
2493
|
$fault: "client",
|
|
2494
2494
|
$metadata: deserializeMetadata(output),
|
|
2495
2495
|
});
|
|
2496
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2496
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2497
2497
|
}
|
|
2498
2498
|
};
|
|
2499
2499
|
const deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (output, context) => {
|
|
@@ -2504,7 +2504,7 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (out
|
|
|
2504
2504
|
$metadata: deserializeMetadata(output),
|
|
2505
2505
|
errors: undefined,
|
|
2506
2506
|
};
|
|
2507
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2507
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2508
2508
|
if (data.errors !== undefined && data.errors !== null) {
|
|
2509
2509
|
contents.errors = deserializeAws_restJson1BatchDisassociateProjectAssetsErrors(data.errors, context);
|
|
2510
2510
|
}
|
|
@@ -2539,7 +2539,7 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsCommandError = async
|
|
|
2539
2539
|
$fault: "client",
|
|
2540
2540
|
$metadata: deserializeMetadata(output),
|
|
2541
2541
|
});
|
|
2542
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2542
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2543
2543
|
}
|
|
2544
2544
|
};
|
|
2545
2545
|
const deserializeAws_restJson1BatchPutAssetPropertyValueCommand = async (output, context) => {
|
|
@@ -2550,7 +2550,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyValueCommand = async (output,
|
|
|
2550
2550
|
$metadata: deserializeMetadata(output),
|
|
2551
2551
|
errorEntries: undefined,
|
|
2552
2552
|
};
|
|
2553
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2553
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2554
2554
|
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
2555
2555
|
contents.errorEntries = deserializeAws_restJson1BatchPutAssetPropertyErrorEntries(data.errorEntries, context);
|
|
2556
2556
|
}
|
|
@@ -2594,7 +2594,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyValueCommandError = async (ou
|
|
|
2594
2594
|
$fault: "client",
|
|
2595
2595
|
$metadata: deserializeMetadata(output),
|
|
2596
2596
|
});
|
|
2597
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2597
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2598
2598
|
}
|
|
2599
2599
|
};
|
|
2600
2600
|
const deserializeAws_restJson1CreateAccessPolicyCommand = async (output, context) => {
|
|
@@ -2606,12 +2606,12 @@ const deserializeAws_restJson1CreateAccessPolicyCommand = async (output, context
|
|
|
2606
2606
|
accessPolicyArn: undefined,
|
|
2607
2607
|
accessPolicyId: undefined,
|
|
2608
2608
|
};
|
|
2609
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2609
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2610
2610
|
if (data.accessPolicyArn !== undefined && data.accessPolicyArn !== null) {
|
|
2611
|
-
contents.accessPolicyArn = smithy_client_1.expectString(data.accessPolicyArn);
|
|
2611
|
+
contents.accessPolicyArn = (0, smithy_client_1.expectString)(data.accessPolicyArn);
|
|
2612
2612
|
}
|
|
2613
2613
|
if (data.accessPolicyId !== undefined && data.accessPolicyId !== null) {
|
|
2614
|
-
contents.accessPolicyId = smithy_client_1.expectString(data.accessPolicyId);
|
|
2614
|
+
contents.accessPolicyId = (0, smithy_client_1.expectString)(data.accessPolicyId);
|
|
2615
2615
|
}
|
|
2616
2616
|
return Promise.resolve(contents);
|
|
2617
2617
|
};
|
|
@@ -2647,7 +2647,7 @@ const deserializeAws_restJson1CreateAccessPolicyCommandError = async (output, co
|
|
|
2647
2647
|
$fault: "client",
|
|
2648
2648
|
$metadata: deserializeMetadata(output),
|
|
2649
2649
|
});
|
|
2650
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2650
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2651
2651
|
}
|
|
2652
2652
|
};
|
|
2653
2653
|
const deserializeAws_restJson1CreateAssetCommand = async (output, context) => {
|
|
@@ -2660,12 +2660,12 @@ const deserializeAws_restJson1CreateAssetCommand = async (output, context) => {
|
|
|
2660
2660
|
assetId: undefined,
|
|
2661
2661
|
assetStatus: undefined,
|
|
2662
2662
|
};
|
|
2663
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2663
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2664
2664
|
if (data.assetArn !== undefined && data.assetArn !== null) {
|
|
2665
|
-
contents.assetArn = smithy_client_1.expectString(data.assetArn);
|
|
2665
|
+
contents.assetArn = (0, smithy_client_1.expectString)(data.assetArn);
|
|
2666
2666
|
}
|
|
2667
2667
|
if (data.assetId !== undefined && data.assetId !== null) {
|
|
2668
|
-
contents.assetId = smithy_client_1.expectString(data.assetId);
|
|
2668
|
+
contents.assetId = (0, smithy_client_1.expectString)(data.assetId);
|
|
2669
2669
|
}
|
|
2670
2670
|
if (data.assetStatus !== undefined && data.assetStatus !== null) {
|
|
2671
2671
|
contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
|
|
@@ -2710,7 +2710,7 @@ const deserializeAws_restJson1CreateAssetCommandError = async (output, context)
|
|
|
2710
2710
|
$fault: "client",
|
|
2711
2711
|
$metadata: deserializeMetadata(output),
|
|
2712
2712
|
});
|
|
2713
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2713
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2714
2714
|
}
|
|
2715
2715
|
};
|
|
2716
2716
|
const deserializeAws_restJson1CreateAssetModelCommand = async (output, context) => {
|
|
@@ -2723,12 +2723,12 @@ const deserializeAws_restJson1CreateAssetModelCommand = async (output, context)
|
|
|
2723
2723
|
assetModelId: undefined,
|
|
2724
2724
|
assetModelStatus: undefined,
|
|
2725
2725
|
};
|
|
2726
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2726
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2727
2727
|
if (data.assetModelArn !== undefined && data.assetModelArn !== null) {
|
|
2728
|
-
contents.assetModelArn = smithy_client_1.expectString(data.assetModelArn);
|
|
2728
|
+
contents.assetModelArn = (0, smithy_client_1.expectString)(data.assetModelArn);
|
|
2729
2729
|
}
|
|
2730
2730
|
if (data.assetModelId !== undefined && data.assetModelId !== null) {
|
|
2731
|
-
contents.assetModelId = smithy_client_1.expectString(data.assetModelId);
|
|
2731
|
+
contents.assetModelId = (0, smithy_client_1.expectString)(data.assetModelId);
|
|
2732
2732
|
}
|
|
2733
2733
|
if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
|
|
2734
2734
|
contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
|
|
@@ -2773,7 +2773,7 @@ const deserializeAws_restJson1CreateAssetModelCommandError = async (output, cont
|
|
|
2773
2773
|
$fault: "client",
|
|
2774
2774
|
$metadata: deserializeMetadata(output),
|
|
2775
2775
|
});
|
|
2776
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2776
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2777
2777
|
}
|
|
2778
2778
|
};
|
|
2779
2779
|
const deserializeAws_restJson1CreateDashboardCommand = async (output, context) => {
|
|
@@ -2785,12 +2785,12 @@ const deserializeAws_restJson1CreateDashboardCommand = async (output, context) =
|
|
|
2785
2785
|
dashboardArn: undefined,
|
|
2786
2786
|
dashboardId: undefined,
|
|
2787
2787
|
};
|
|
2788
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2788
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2789
2789
|
if (data.dashboardArn !== undefined && data.dashboardArn !== null) {
|
|
2790
|
-
contents.dashboardArn = smithy_client_1.expectString(data.dashboardArn);
|
|
2790
|
+
contents.dashboardArn = (0, smithy_client_1.expectString)(data.dashboardArn);
|
|
2791
2791
|
}
|
|
2792
2792
|
if (data.dashboardId !== undefined && data.dashboardId !== null) {
|
|
2793
|
-
contents.dashboardId = smithy_client_1.expectString(data.dashboardId);
|
|
2793
|
+
contents.dashboardId = (0, smithy_client_1.expectString)(data.dashboardId);
|
|
2794
2794
|
}
|
|
2795
2795
|
return Promise.resolve(contents);
|
|
2796
2796
|
};
|
|
@@ -2826,7 +2826,7 @@ const deserializeAws_restJson1CreateDashboardCommandError = async (output, conte
|
|
|
2826
2826
|
$fault: "client",
|
|
2827
2827
|
$metadata: deserializeMetadata(output),
|
|
2828
2828
|
});
|
|
2829
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2829
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2830
2830
|
}
|
|
2831
2831
|
};
|
|
2832
2832
|
const deserializeAws_restJson1CreateGatewayCommand = async (output, context) => {
|
|
@@ -2838,12 +2838,12 @@ const deserializeAws_restJson1CreateGatewayCommand = async (output, context) =>
|
|
|
2838
2838
|
gatewayArn: undefined,
|
|
2839
2839
|
gatewayId: undefined,
|
|
2840
2840
|
};
|
|
2841
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2841
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2842
2842
|
if (data.gatewayArn !== undefined && data.gatewayArn !== null) {
|
|
2843
|
-
contents.gatewayArn = smithy_client_1.expectString(data.gatewayArn);
|
|
2843
|
+
contents.gatewayArn = (0, smithy_client_1.expectString)(data.gatewayArn);
|
|
2844
2844
|
}
|
|
2845
2845
|
if (data.gatewayId !== undefined && data.gatewayId !== null) {
|
|
2846
|
-
contents.gatewayId = smithy_client_1.expectString(data.gatewayId);
|
|
2846
|
+
contents.gatewayId = (0, smithy_client_1.expectString)(data.gatewayId);
|
|
2847
2847
|
}
|
|
2848
2848
|
return Promise.resolve(contents);
|
|
2849
2849
|
};
|
|
@@ -2879,7 +2879,7 @@ const deserializeAws_restJson1CreateGatewayCommandError = async (output, context
|
|
|
2879
2879
|
$fault: "client",
|
|
2880
2880
|
$metadata: deserializeMetadata(output),
|
|
2881
2881
|
});
|
|
2882
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2882
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2883
2883
|
}
|
|
2884
2884
|
};
|
|
2885
2885
|
const deserializeAws_restJson1CreatePortalCommand = async (output, context) => {
|
|
@@ -2894,21 +2894,21 @@ const deserializeAws_restJson1CreatePortalCommand = async (output, context) => {
|
|
|
2894
2894
|
portalStatus: undefined,
|
|
2895
2895
|
ssoApplicationId: undefined,
|
|
2896
2896
|
};
|
|
2897
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2897
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2898
2898
|
if (data.portalArn !== undefined && data.portalArn !== null) {
|
|
2899
|
-
contents.portalArn = smithy_client_1.expectString(data.portalArn);
|
|
2899
|
+
contents.portalArn = (0, smithy_client_1.expectString)(data.portalArn);
|
|
2900
2900
|
}
|
|
2901
2901
|
if (data.portalId !== undefined && data.portalId !== null) {
|
|
2902
|
-
contents.portalId = smithy_client_1.expectString(data.portalId);
|
|
2902
|
+
contents.portalId = (0, smithy_client_1.expectString)(data.portalId);
|
|
2903
2903
|
}
|
|
2904
2904
|
if (data.portalStartUrl !== undefined && data.portalStartUrl !== null) {
|
|
2905
|
-
contents.portalStartUrl = smithy_client_1.expectString(data.portalStartUrl);
|
|
2905
|
+
contents.portalStartUrl = (0, smithy_client_1.expectString)(data.portalStartUrl);
|
|
2906
2906
|
}
|
|
2907
2907
|
if (data.portalStatus !== undefined && data.portalStatus !== null) {
|
|
2908
2908
|
contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
|
|
2909
2909
|
}
|
|
2910
2910
|
if (data.ssoApplicationId !== undefined && data.ssoApplicationId !== null) {
|
|
2911
|
-
contents.ssoApplicationId = smithy_client_1.expectString(data.ssoApplicationId);
|
|
2911
|
+
contents.ssoApplicationId = (0, smithy_client_1.expectString)(data.ssoApplicationId);
|
|
2912
2912
|
}
|
|
2913
2913
|
return Promise.resolve(contents);
|
|
2914
2914
|
};
|
|
@@ -2944,7 +2944,7 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
2944
2944
|
$fault: "client",
|
|
2945
2945
|
$metadata: deserializeMetadata(output),
|
|
2946
2946
|
});
|
|
2947
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2947
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2948
2948
|
}
|
|
2949
2949
|
};
|
|
2950
2950
|
const deserializeAws_restJson1CreateProjectCommand = async (output, context) => {
|
|
@@ -2956,12 +2956,12 @@ const deserializeAws_restJson1CreateProjectCommand = async (output, context) =>
|
|
|
2956
2956
|
projectArn: undefined,
|
|
2957
2957
|
projectId: undefined,
|
|
2958
2958
|
};
|
|
2959
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2959
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2960
2960
|
if (data.projectArn !== undefined && data.projectArn !== null) {
|
|
2961
|
-
contents.projectArn = smithy_client_1.expectString(data.projectArn);
|
|
2961
|
+
contents.projectArn = (0, smithy_client_1.expectString)(data.projectArn);
|
|
2962
2962
|
}
|
|
2963
2963
|
if (data.projectId !== undefined && data.projectId !== null) {
|
|
2964
|
-
contents.projectId = smithy_client_1.expectString(data.projectId);
|
|
2964
|
+
contents.projectId = (0, smithy_client_1.expectString)(data.projectId);
|
|
2965
2965
|
}
|
|
2966
2966
|
return Promise.resolve(contents);
|
|
2967
2967
|
};
|
|
@@ -2997,7 +2997,7 @@ const deserializeAws_restJson1CreateProjectCommandError = async (output, context
|
|
|
2997
2997
|
$fault: "client",
|
|
2998
2998
|
$metadata: deserializeMetadata(output),
|
|
2999
2999
|
});
|
|
3000
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3000
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3001
3001
|
}
|
|
3002
3002
|
};
|
|
3003
3003
|
const deserializeAws_restJson1DeleteAccessPolicyCommand = async (output, context) => {
|
|
@@ -3039,7 +3039,7 @@ const deserializeAws_restJson1DeleteAccessPolicyCommandError = async (output, co
|
|
|
3039
3039
|
$fault: "client",
|
|
3040
3040
|
$metadata: deserializeMetadata(output),
|
|
3041
3041
|
});
|
|
3042
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3042
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3043
3043
|
}
|
|
3044
3044
|
};
|
|
3045
3045
|
const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
|
|
@@ -3050,7 +3050,7 @@ const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
|
|
|
3050
3050
|
$metadata: deserializeMetadata(output),
|
|
3051
3051
|
assetStatus: undefined,
|
|
3052
3052
|
};
|
|
3053
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3053
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3054
3054
|
if (data.assetStatus !== undefined && data.assetStatus !== null) {
|
|
3055
3055
|
contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
|
|
3056
3056
|
}
|
|
@@ -3088,7 +3088,7 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
3088
3088
|
$fault: "client",
|
|
3089
3089
|
$metadata: deserializeMetadata(output),
|
|
3090
3090
|
});
|
|
3091
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3091
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3092
3092
|
}
|
|
3093
3093
|
};
|
|
3094
3094
|
const deserializeAws_restJson1DeleteAssetModelCommand = async (output, context) => {
|
|
@@ -3099,7 +3099,7 @@ const deserializeAws_restJson1DeleteAssetModelCommand = async (output, context)
|
|
|
3099
3099
|
$metadata: deserializeMetadata(output),
|
|
3100
3100
|
assetModelStatus: undefined,
|
|
3101
3101
|
};
|
|
3102
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3102
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3103
3103
|
if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
|
|
3104
3104
|
contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
|
|
3105
3105
|
}
|
|
@@ -3137,7 +3137,7 @@ const deserializeAws_restJson1DeleteAssetModelCommandError = async (output, cont
|
|
|
3137
3137
|
$fault: "client",
|
|
3138
3138
|
$metadata: deserializeMetadata(output),
|
|
3139
3139
|
});
|
|
3140
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3140
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3141
3141
|
}
|
|
3142
3142
|
};
|
|
3143
3143
|
const deserializeAws_restJson1DeleteDashboardCommand = async (output, context) => {
|
|
@@ -3179,7 +3179,7 @@ const deserializeAws_restJson1DeleteDashboardCommandError = async (output, conte
|
|
|
3179
3179
|
$fault: "client",
|
|
3180
3180
|
$metadata: deserializeMetadata(output),
|
|
3181
3181
|
});
|
|
3182
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3182
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3183
3183
|
}
|
|
3184
3184
|
};
|
|
3185
3185
|
const deserializeAws_restJson1DeleteGatewayCommand = async (output, context) => {
|
|
@@ -3221,7 +3221,7 @@ const deserializeAws_restJson1DeleteGatewayCommandError = async (output, context
|
|
|
3221
3221
|
$fault: "client",
|
|
3222
3222
|
$metadata: deserializeMetadata(output),
|
|
3223
3223
|
});
|
|
3224
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3224
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3225
3225
|
}
|
|
3226
3226
|
};
|
|
3227
3227
|
const deserializeAws_restJson1DeletePortalCommand = async (output, context) => {
|
|
@@ -3232,7 +3232,7 @@ const deserializeAws_restJson1DeletePortalCommand = async (output, context) => {
|
|
|
3232
3232
|
$metadata: deserializeMetadata(output),
|
|
3233
3233
|
portalStatus: undefined,
|
|
3234
3234
|
};
|
|
3235
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3235
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3236
3236
|
if (data.portalStatus !== undefined && data.portalStatus !== null) {
|
|
3237
3237
|
contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
|
|
3238
3238
|
}
|
|
@@ -3270,7 +3270,7 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
3270
3270
|
$fault: "client",
|
|
3271
3271
|
$metadata: deserializeMetadata(output),
|
|
3272
3272
|
});
|
|
3273
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3273
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3274
3274
|
}
|
|
3275
3275
|
};
|
|
3276
3276
|
const deserializeAws_restJson1DeleteProjectCommand = async (output, context) => {
|
|
@@ -3312,7 +3312,7 @@ const deserializeAws_restJson1DeleteProjectCommandError = async (output, context
|
|
|
3312
3312
|
$fault: "client",
|
|
3313
3313
|
$metadata: deserializeMetadata(output),
|
|
3314
3314
|
});
|
|
3315
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3315
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3316
3316
|
}
|
|
3317
3317
|
};
|
|
3318
3318
|
const deserializeAws_restJson1DeleteTimeSeriesCommand = async (output, context) => {
|
|
@@ -3357,7 +3357,7 @@ const deserializeAws_restJson1DeleteTimeSeriesCommandError = async (output, cont
|
|
|
3357
3357
|
$fault: "client",
|
|
3358
3358
|
$metadata: deserializeMetadata(output),
|
|
3359
3359
|
});
|
|
3360
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3360
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3361
3361
|
}
|
|
3362
3362
|
};
|
|
3363
3363
|
const deserializeAws_restJson1DescribeAccessPolicyCommand = async (output, context) => {
|
|
@@ -3374,24 +3374,24 @@ const deserializeAws_restJson1DescribeAccessPolicyCommand = async (output, conte
|
|
|
3374
3374
|
accessPolicyPermission: undefined,
|
|
3375
3375
|
accessPolicyResource: undefined,
|
|
3376
3376
|
};
|
|
3377
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3377
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3378
3378
|
if (data.accessPolicyArn !== undefined && data.accessPolicyArn !== null) {
|
|
3379
|
-
contents.accessPolicyArn = smithy_client_1.expectString(data.accessPolicyArn);
|
|
3379
|
+
contents.accessPolicyArn = (0, smithy_client_1.expectString)(data.accessPolicyArn);
|
|
3380
3380
|
}
|
|
3381
3381
|
if (data.accessPolicyCreationDate !== undefined && data.accessPolicyCreationDate !== null) {
|
|
3382
|
-
contents.accessPolicyCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.accessPolicyCreationDate)));
|
|
3382
|
+
contents.accessPolicyCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.accessPolicyCreationDate)));
|
|
3383
3383
|
}
|
|
3384
3384
|
if (data.accessPolicyId !== undefined && data.accessPolicyId !== null) {
|
|
3385
|
-
contents.accessPolicyId = smithy_client_1.expectString(data.accessPolicyId);
|
|
3385
|
+
contents.accessPolicyId = (0, smithy_client_1.expectString)(data.accessPolicyId);
|
|
3386
3386
|
}
|
|
3387
3387
|
if (data.accessPolicyIdentity !== undefined && data.accessPolicyIdentity !== null) {
|
|
3388
3388
|
contents.accessPolicyIdentity = deserializeAws_restJson1Identity(data.accessPolicyIdentity, context);
|
|
3389
3389
|
}
|
|
3390
3390
|
if (data.accessPolicyLastUpdateDate !== undefined && data.accessPolicyLastUpdateDate !== null) {
|
|
3391
|
-
contents.accessPolicyLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.accessPolicyLastUpdateDate)));
|
|
3391
|
+
contents.accessPolicyLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.accessPolicyLastUpdateDate)));
|
|
3392
3392
|
}
|
|
3393
3393
|
if (data.accessPolicyPermission !== undefined && data.accessPolicyPermission !== null) {
|
|
3394
|
-
contents.accessPolicyPermission = smithy_client_1.expectString(data.accessPolicyPermission);
|
|
3394
|
+
contents.accessPolicyPermission = (0, smithy_client_1.expectString)(data.accessPolicyPermission);
|
|
3395
3395
|
}
|
|
3396
3396
|
if (data.accessPolicyResource !== undefined && data.accessPolicyResource !== null) {
|
|
3397
3397
|
contents.accessPolicyResource = deserializeAws_restJson1Resource(data.accessPolicyResource, context);
|
|
@@ -3427,7 +3427,7 @@ const deserializeAws_restJson1DescribeAccessPolicyCommandError = async (output,
|
|
|
3427
3427
|
$fault: "client",
|
|
3428
3428
|
$metadata: deserializeMetadata(output),
|
|
3429
3429
|
});
|
|
3430
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3430
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3431
3431
|
}
|
|
3432
3432
|
};
|
|
3433
3433
|
const deserializeAws_restJson1DescribeAssetCommand = async (output, context) => {
|
|
@@ -3447,30 +3447,30 @@ const deserializeAws_restJson1DescribeAssetCommand = async (output, context) =>
|
|
|
3447
3447
|
assetProperties: undefined,
|
|
3448
3448
|
assetStatus: undefined,
|
|
3449
3449
|
};
|
|
3450
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3450
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3451
3451
|
if (data.assetArn !== undefined && data.assetArn !== null) {
|
|
3452
|
-
contents.assetArn = smithy_client_1.expectString(data.assetArn);
|
|
3452
|
+
contents.assetArn = (0, smithy_client_1.expectString)(data.assetArn);
|
|
3453
3453
|
}
|
|
3454
3454
|
if (data.assetCompositeModels !== undefined && data.assetCompositeModels !== null) {
|
|
3455
3455
|
contents.assetCompositeModels = deserializeAws_restJson1AssetCompositeModels(data.assetCompositeModels, context);
|
|
3456
3456
|
}
|
|
3457
3457
|
if (data.assetCreationDate !== undefined && data.assetCreationDate !== null) {
|
|
3458
|
-
contents.assetCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.assetCreationDate)));
|
|
3458
|
+
contents.assetCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.assetCreationDate)));
|
|
3459
3459
|
}
|
|
3460
3460
|
if (data.assetHierarchies !== undefined && data.assetHierarchies !== null) {
|
|
3461
3461
|
contents.assetHierarchies = deserializeAws_restJson1AssetHierarchies(data.assetHierarchies, context);
|
|
3462
3462
|
}
|
|
3463
3463
|
if (data.assetId !== undefined && data.assetId !== null) {
|
|
3464
|
-
contents.assetId = smithy_client_1.expectString(data.assetId);
|
|
3464
|
+
contents.assetId = (0, smithy_client_1.expectString)(data.assetId);
|
|
3465
3465
|
}
|
|
3466
3466
|
if (data.assetLastUpdateDate !== undefined && data.assetLastUpdateDate !== null) {
|
|
3467
|
-
contents.assetLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.assetLastUpdateDate)));
|
|
3467
|
+
contents.assetLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.assetLastUpdateDate)));
|
|
3468
3468
|
}
|
|
3469
3469
|
if (data.assetModelId !== undefined && data.assetModelId !== null) {
|
|
3470
|
-
contents.assetModelId = smithy_client_1.expectString(data.assetModelId);
|
|
3470
|
+
contents.assetModelId = (0, smithy_client_1.expectString)(data.assetModelId);
|
|
3471
3471
|
}
|
|
3472
3472
|
if (data.assetName !== undefined && data.assetName !== null) {
|
|
3473
|
-
contents.assetName = smithy_client_1.expectString(data.assetName);
|
|
3473
|
+
contents.assetName = (0, smithy_client_1.expectString)(data.assetName);
|
|
3474
3474
|
}
|
|
3475
3475
|
if (data.assetProperties !== undefined && data.assetProperties !== null) {
|
|
3476
3476
|
contents.assetProperties = deserializeAws_restJson1AssetProperties(data.assetProperties, context);
|
|
@@ -3509,7 +3509,7 @@ const deserializeAws_restJson1DescribeAssetCommandError = async (output, context
|
|
|
3509
3509
|
$fault: "client",
|
|
3510
3510
|
$metadata: deserializeMetadata(output),
|
|
3511
3511
|
});
|
|
3512
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3512
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3513
3513
|
}
|
|
3514
3514
|
};
|
|
3515
3515
|
const deserializeAws_restJson1DescribeAssetModelCommand = async (output, context) => {
|
|
@@ -3529,30 +3529,30 @@ const deserializeAws_restJson1DescribeAssetModelCommand = async (output, context
|
|
|
3529
3529
|
assetModelProperties: undefined,
|
|
3530
3530
|
assetModelStatus: undefined,
|
|
3531
3531
|
};
|
|
3532
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3532
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3533
3533
|
if (data.assetModelArn !== undefined && data.assetModelArn !== null) {
|
|
3534
|
-
contents.assetModelArn = smithy_client_1.expectString(data.assetModelArn);
|
|
3534
|
+
contents.assetModelArn = (0, smithy_client_1.expectString)(data.assetModelArn);
|
|
3535
3535
|
}
|
|
3536
3536
|
if (data.assetModelCompositeModels !== undefined && data.assetModelCompositeModels !== null) {
|
|
3537
3537
|
contents.assetModelCompositeModels = deserializeAws_restJson1AssetModelCompositeModels(data.assetModelCompositeModels, context);
|
|
3538
3538
|
}
|
|
3539
3539
|
if (data.assetModelCreationDate !== undefined && data.assetModelCreationDate !== null) {
|
|
3540
|
-
contents.assetModelCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.assetModelCreationDate)));
|
|
3540
|
+
contents.assetModelCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.assetModelCreationDate)));
|
|
3541
3541
|
}
|
|
3542
3542
|
if (data.assetModelDescription !== undefined && data.assetModelDescription !== null) {
|
|
3543
|
-
contents.assetModelDescription = smithy_client_1.expectString(data.assetModelDescription);
|
|
3543
|
+
contents.assetModelDescription = (0, smithy_client_1.expectString)(data.assetModelDescription);
|
|
3544
3544
|
}
|
|
3545
3545
|
if (data.assetModelHierarchies !== undefined && data.assetModelHierarchies !== null) {
|
|
3546
3546
|
contents.assetModelHierarchies = deserializeAws_restJson1AssetModelHierarchies(data.assetModelHierarchies, context);
|
|
3547
3547
|
}
|
|
3548
3548
|
if (data.assetModelId !== undefined && data.assetModelId !== null) {
|
|
3549
|
-
contents.assetModelId = smithy_client_1.expectString(data.assetModelId);
|
|
3549
|
+
contents.assetModelId = (0, smithy_client_1.expectString)(data.assetModelId);
|
|
3550
3550
|
}
|
|
3551
3551
|
if (data.assetModelLastUpdateDate !== undefined && data.assetModelLastUpdateDate !== null) {
|
|
3552
|
-
contents.assetModelLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.assetModelLastUpdateDate)));
|
|
3552
|
+
contents.assetModelLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.assetModelLastUpdateDate)));
|
|
3553
3553
|
}
|
|
3554
3554
|
if (data.assetModelName !== undefined && data.assetModelName !== null) {
|
|
3555
|
-
contents.assetModelName = smithy_client_1.expectString(data.assetModelName);
|
|
3555
|
+
contents.assetModelName = (0, smithy_client_1.expectString)(data.assetModelName);
|
|
3556
3556
|
}
|
|
3557
3557
|
if (data.assetModelProperties !== undefined && data.assetModelProperties !== null) {
|
|
3558
3558
|
contents.assetModelProperties = deserializeAws_restJson1AssetModelProperties(data.assetModelProperties, context);
|
|
@@ -3591,7 +3591,7 @@ const deserializeAws_restJson1DescribeAssetModelCommandError = async (output, co
|
|
|
3591
3591
|
$fault: "client",
|
|
3592
3592
|
$metadata: deserializeMetadata(output),
|
|
3593
3593
|
});
|
|
3594
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3594
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3595
3595
|
}
|
|
3596
3596
|
};
|
|
3597
3597
|
const deserializeAws_restJson1DescribeAssetPropertyCommand = async (output, context) => {
|
|
@@ -3606,15 +3606,15 @@ const deserializeAws_restJson1DescribeAssetPropertyCommand = async (output, cont
|
|
|
3606
3606
|
assetProperty: undefined,
|
|
3607
3607
|
compositeModel: undefined,
|
|
3608
3608
|
};
|
|
3609
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3609
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3610
3610
|
if (data.assetId !== undefined && data.assetId !== null) {
|
|
3611
|
-
contents.assetId = smithy_client_1.expectString(data.assetId);
|
|
3611
|
+
contents.assetId = (0, smithy_client_1.expectString)(data.assetId);
|
|
3612
3612
|
}
|
|
3613
3613
|
if (data.assetModelId !== undefined && data.assetModelId !== null) {
|
|
3614
|
-
contents.assetModelId = smithy_client_1.expectString(data.assetModelId);
|
|
3614
|
+
contents.assetModelId = (0, smithy_client_1.expectString)(data.assetModelId);
|
|
3615
3615
|
}
|
|
3616
3616
|
if (data.assetName !== undefined && data.assetName !== null) {
|
|
3617
|
-
contents.assetName = smithy_client_1.expectString(data.assetName);
|
|
3617
|
+
contents.assetName = (0, smithy_client_1.expectString)(data.assetName);
|
|
3618
3618
|
}
|
|
3619
3619
|
if (data.assetProperty !== undefined && data.assetProperty !== null) {
|
|
3620
3620
|
contents.assetProperty = deserializeAws_restJson1Property(data.assetProperty, context);
|
|
@@ -3653,7 +3653,7 @@ const deserializeAws_restJson1DescribeAssetPropertyCommandError = async (output,
|
|
|
3653
3653
|
$fault: "client",
|
|
3654
3654
|
$metadata: deserializeMetadata(output),
|
|
3655
3655
|
});
|
|
3656
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3656
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3657
3657
|
}
|
|
3658
3658
|
};
|
|
3659
3659
|
const deserializeAws_restJson1DescribeDashboardCommand = async (output, context) => {
|
|
@@ -3671,30 +3671,30 @@ const deserializeAws_restJson1DescribeDashboardCommand = async (output, context)
|
|
|
3671
3671
|
dashboardName: undefined,
|
|
3672
3672
|
projectId: undefined,
|
|
3673
3673
|
};
|
|
3674
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3674
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3675
3675
|
if (data.dashboardArn !== undefined && data.dashboardArn !== null) {
|
|
3676
|
-
contents.dashboardArn = smithy_client_1.expectString(data.dashboardArn);
|
|
3676
|
+
contents.dashboardArn = (0, smithy_client_1.expectString)(data.dashboardArn);
|
|
3677
3677
|
}
|
|
3678
3678
|
if (data.dashboardCreationDate !== undefined && data.dashboardCreationDate !== null) {
|
|
3679
|
-
contents.dashboardCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.dashboardCreationDate)));
|
|
3679
|
+
contents.dashboardCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.dashboardCreationDate)));
|
|
3680
3680
|
}
|
|
3681
3681
|
if (data.dashboardDefinition !== undefined && data.dashboardDefinition !== null) {
|
|
3682
|
-
contents.dashboardDefinition = smithy_client_1.expectString(data.dashboardDefinition);
|
|
3682
|
+
contents.dashboardDefinition = (0, smithy_client_1.expectString)(data.dashboardDefinition);
|
|
3683
3683
|
}
|
|
3684
3684
|
if (data.dashboardDescription !== undefined && data.dashboardDescription !== null) {
|
|
3685
|
-
contents.dashboardDescription = smithy_client_1.expectString(data.dashboardDescription);
|
|
3685
|
+
contents.dashboardDescription = (0, smithy_client_1.expectString)(data.dashboardDescription);
|
|
3686
3686
|
}
|
|
3687
3687
|
if (data.dashboardId !== undefined && data.dashboardId !== null) {
|
|
3688
|
-
contents.dashboardId = smithy_client_1.expectString(data.dashboardId);
|
|
3688
|
+
contents.dashboardId = (0, smithy_client_1.expectString)(data.dashboardId);
|
|
3689
3689
|
}
|
|
3690
3690
|
if (data.dashboardLastUpdateDate !== undefined && data.dashboardLastUpdateDate !== null) {
|
|
3691
|
-
contents.dashboardLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.dashboardLastUpdateDate)));
|
|
3691
|
+
contents.dashboardLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.dashboardLastUpdateDate)));
|
|
3692
3692
|
}
|
|
3693
3693
|
if (data.dashboardName !== undefined && data.dashboardName !== null) {
|
|
3694
|
-
contents.dashboardName = smithy_client_1.expectString(data.dashboardName);
|
|
3694
|
+
contents.dashboardName = (0, smithy_client_1.expectString)(data.dashboardName);
|
|
3695
3695
|
}
|
|
3696
3696
|
if (data.projectId !== undefined && data.projectId !== null) {
|
|
3697
|
-
contents.projectId = smithy_client_1.expectString(data.projectId);
|
|
3697
|
+
contents.projectId = (0, smithy_client_1.expectString)(data.projectId);
|
|
3698
3698
|
}
|
|
3699
3699
|
return Promise.resolve(contents);
|
|
3700
3700
|
};
|
|
@@ -3727,7 +3727,7 @@ const deserializeAws_restJson1DescribeDashboardCommandError = async (output, con
|
|
|
3727
3727
|
$fault: "client",
|
|
3728
3728
|
$metadata: deserializeMetadata(output),
|
|
3729
3729
|
});
|
|
3730
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3730
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3731
3731
|
}
|
|
3732
3732
|
};
|
|
3733
3733
|
const deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = async (output, context) => {
|
|
@@ -3740,15 +3740,15 @@ const deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = as
|
|
|
3740
3740
|
encryptionType: undefined,
|
|
3741
3741
|
kmsKeyArn: undefined,
|
|
3742
3742
|
};
|
|
3743
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3743
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3744
3744
|
if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
|
|
3745
3745
|
contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
|
|
3746
3746
|
}
|
|
3747
3747
|
if (data.encryptionType !== undefined && data.encryptionType !== null) {
|
|
3748
|
-
contents.encryptionType = smithy_client_1.expectString(data.encryptionType);
|
|
3748
|
+
contents.encryptionType = (0, smithy_client_1.expectString)(data.encryptionType);
|
|
3749
3749
|
}
|
|
3750
3750
|
if (data.kmsKeyArn !== undefined && data.kmsKeyArn !== null) {
|
|
3751
|
-
contents.kmsKeyArn = smithy_client_1.expectString(data.kmsKeyArn);
|
|
3751
|
+
contents.kmsKeyArn = (0, smithy_client_1.expectString)(data.kmsKeyArn);
|
|
3752
3752
|
}
|
|
3753
3753
|
return Promise.resolve(contents);
|
|
3754
3754
|
};
|
|
@@ -3778,7 +3778,7 @@ const deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommandError
|
|
|
3778
3778
|
$fault: "client",
|
|
3779
3779
|
$metadata: deserializeMetadata(output),
|
|
3780
3780
|
});
|
|
3781
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3781
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3782
3782
|
}
|
|
3783
3783
|
};
|
|
3784
3784
|
const deserializeAws_restJson1DescribeGatewayCommand = async (output, context) => {
|
|
@@ -3795,27 +3795,27 @@ const deserializeAws_restJson1DescribeGatewayCommand = async (output, context) =
|
|
|
3795
3795
|
gatewayPlatform: undefined,
|
|
3796
3796
|
lastUpdateDate: undefined,
|
|
3797
3797
|
};
|
|
3798
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3798
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3799
3799
|
if (data.creationDate !== undefined && data.creationDate !== null) {
|
|
3800
|
-
contents.creationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDate)));
|
|
3800
|
+
contents.creationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationDate)));
|
|
3801
3801
|
}
|
|
3802
3802
|
if (data.gatewayArn !== undefined && data.gatewayArn !== null) {
|
|
3803
|
-
contents.gatewayArn = smithy_client_1.expectString(data.gatewayArn);
|
|
3803
|
+
contents.gatewayArn = (0, smithy_client_1.expectString)(data.gatewayArn);
|
|
3804
3804
|
}
|
|
3805
3805
|
if (data.gatewayCapabilitySummaries !== undefined && data.gatewayCapabilitySummaries !== null) {
|
|
3806
3806
|
contents.gatewayCapabilitySummaries = deserializeAws_restJson1GatewayCapabilitySummaries(data.gatewayCapabilitySummaries, context);
|
|
3807
3807
|
}
|
|
3808
3808
|
if (data.gatewayId !== undefined && data.gatewayId !== null) {
|
|
3809
|
-
contents.gatewayId = smithy_client_1.expectString(data.gatewayId);
|
|
3809
|
+
contents.gatewayId = (0, smithy_client_1.expectString)(data.gatewayId);
|
|
3810
3810
|
}
|
|
3811
3811
|
if (data.gatewayName !== undefined && data.gatewayName !== null) {
|
|
3812
|
-
contents.gatewayName = smithy_client_1.expectString(data.gatewayName);
|
|
3812
|
+
contents.gatewayName = (0, smithy_client_1.expectString)(data.gatewayName);
|
|
3813
3813
|
}
|
|
3814
3814
|
if (data.gatewayPlatform !== undefined && data.gatewayPlatform !== null) {
|
|
3815
3815
|
contents.gatewayPlatform = deserializeAws_restJson1GatewayPlatform(data.gatewayPlatform, context);
|
|
3816
3816
|
}
|
|
3817
3817
|
if (data.lastUpdateDate !== undefined && data.lastUpdateDate !== null) {
|
|
3818
|
-
contents.lastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdateDate)));
|
|
3818
|
+
contents.lastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastUpdateDate)));
|
|
3819
3819
|
}
|
|
3820
3820
|
return Promise.resolve(contents);
|
|
3821
3821
|
};
|
|
@@ -3848,7 +3848,7 @@ const deserializeAws_restJson1DescribeGatewayCommandError = async (output, conte
|
|
|
3848
3848
|
$fault: "client",
|
|
3849
3849
|
$metadata: deserializeMetadata(output),
|
|
3850
3850
|
});
|
|
3851
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3851
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3852
3852
|
}
|
|
3853
3853
|
};
|
|
3854
3854
|
const deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = async (output, context) => {
|
|
@@ -3862,18 +3862,18 @@ const deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = as
|
|
|
3862
3862
|
capabilitySyncStatus: undefined,
|
|
3863
3863
|
gatewayId: undefined,
|
|
3864
3864
|
};
|
|
3865
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3865
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3866
3866
|
if (data.capabilityConfiguration !== undefined && data.capabilityConfiguration !== null) {
|
|
3867
|
-
contents.capabilityConfiguration = smithy_client_1.expectString(data.capabilityConfiguration);
|
|
3867
|
+
contents.capabilityConfiguration = (0, smithy_client_1.expectString)(data.capabilityConfiguration);
|
|
3868
3868
|
}
|
|
3869
3869
|
if (data.capabilityNamespace !== undefined && data.capabilityNamespace !== null) {
|
|
3870
|
-
contents.capabilityNamespace = smithy_client_1.expectString(data.capabilityNamespace);
|
|
3870
|
+
contents.capabilityNamespace = (0, smithy_client_1.expectString)(data.capabilityNamespace);
|
|
3871
3871
|
}
|
|
3872
3872
|
if (data.capabilitySyncStatus !== undefined && data.capabilitySyncStatus !== null) {
|
|
3873
|
-
contents.capabilitySyncStatus = smithy_client_1.expectString(data.capabilitySyncStatus);
|
|
3873
|
+
contents.capabilitySyncStatus = (0, smithy_client_1.expectString)(data.capabilitySyncStatus);
|
|
3874
3874
|
}
|
|
3875
3875
|
if (data.gatewayId !== undefined && data.gatewayId !== null) {
|
|
3876
|
-
contents.gatewayId = smithy_client_1.expectString(data.gatewayId);
|
|
3876
|
+
contents.gatewayId = (0, smithy_client_1.expectString)(data.gatewayId);
|
|
3877
3877
|
}
|
|
3878
3878
|
return Promise.resolve(contents);
|
|
3879
3879
|
};
|
|
@@ -3906,7 +3906,7 @@ const deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommandError
|
|
|
3906
3906
|
$fault: "client",
|
|
3907
3907
|
$metadata: deserializeMetadata(output),
|
|
3908
3908
|
});
|
|
3909
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3909
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3910
3910
|
}
|
|
3911
3911
|
};
|
|
3912
3912
|
const deserializeAws_restJson1DescribeLoggingOptionsCommand = async (output, context) => {
|
|
@@ -3917,7 +3917,7 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommand = async (output, con
|
|
|
3917
3917
|
$metadata: deserializeMetadata(output),
|
|
3918
3918
|
loggingOptions: undefined,
|
|
3919
3919
|
};
|
|
3920
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3920
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3921
3921
|
if (data.loggingOptions !== undefined && data.loggingOptions !== null) {
|
|
3922
3922
|
contents.loggingOptions = deserializeAws_restJson1LoggingOptions(data.loggingOptions, context);
|
|
3923
3923
|
}
|
|
@@ -3952,7 +3952,7 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommandError = async (output
|
|
|
3952
3952
|
$fault: "client",
|
|
3953
3953
|
$metadata: deserializeMetadata(output),
|
|
3954
3954
|
});
|
|
3955
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3955
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3956
3956
|
}
|
|
3957
3957
|
};
|
|
3958
3958
|
const deserializeAws_restJson1DescribePortalCommand = async (output, context) => {
|
|
@@ -3977,51 +3977,51 @@ const deserializeAws_restJson1DescribePortalCommand = async (output, context) =>
|
|
|
3977
3977
|
portalStatus: undefined,
|
|
3978
3978
|
roleArn: undefined,
|
|
3979
3979
|
};
|
|
3980
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3980
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3981
3981
|
if (data.alarms !== undefined && data.alarms !== null) {
|
|
3982
3982
|
contents.alarms = deserializeAws_restJson1Alarms(data.alarms, context);
|
|
3983
3983
|
}
|
|
3984
3984
|
if (data.notificationSenderEmail !== undefined && data.notificationSenderEmail !== null) {
|
|
3985
|
-
contents.notificationSenderEmail = smithy_client_1.expectString(data.notificationSenderEmail);
|
|
3985
|
+
contents.notificationSenderEmail = (0, smithy_client_1.expectString)(data.notificationSenderEmail);
|
|
3986
3986
|
}
|
|
3987
3987
|
if (data.portalArn !== undefined && data.portalArn !== null) {
|
|
3988
|
-
contents.portalArn = smithy_client_1.expectString(data.portalArn);
|
|
3988
|
+
contents.portalArn = (0, smithy_client_1.expectString)(data.portalArn);
|
|
3989
3989
|
}
|
|
3990
3990
|
if (data.portalAuthMode !== undefined && data.portalAuthMode !== null) {
|
|
3991
|
-
contents.portalAuthMode = smithy_client_1.expectString(data.portalAuthMode);
|
|
3991
|
+
contents.portalAuthMode = (0, smithy_client_1.expectString)(data.portalAuthMode);
|
|
3992
3992
|
}
|
|
3993
3993
|
if (data.portalClientId !== undefined && data.portalClientId !== null) {
|
|
3994
|
-
contents.portalClientId = smithy_client_1.expectString(data.portalClientId);
|
|
3994
|
+
contents.portalClientId = (0, smithy_client_1.expectString)(data.portalClientId);
|
|
3995
3995
|
}
|
|
3996
3996
|
if (data.portalContactEmail !== undefined && data.portalContactEmail !== null) {
|
|
3997
|
-
contents.portalContactEmail = smithy_client_1.expectString(data.portalContactEmail);
|
|
3997
|
+
contents.portalContactEmail = (0, smithy_client_1.expectString)(data.portalContactEmail);
|
|
3998
3998
|
}
|
|
3999
3999
|
if (data.portalCreationDate !== undefined && data.portalCreationDate !== null) {
|
|
4000
|
-
contents.portalCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.portalCreationDate)));
|
|
4000
|
+
contents.portalCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.portalCreationDate)));
|
|
4001
4001
|
}
|
|
4002
4002
|
if (data.portalDescription !== undefined && data.portalDescription !== null) {
|
|
4003
|
-
contents.portalDescription = smithy_client_1.expectString(data.portalDescription);
|
|
4003
|
+
contents.portalDescription = (0, smithy_client_1.expectString)(data.portalDescription);
|
|
4004
4004
|
}
|
|
4005
4005
|
if (data.portalId !== undefined && data.portalId !== null) {
|
|
4006
|
-
contents.portalId = smithy_client_1.expectString(data.portalId);
|
|
4006
|
+
contents.portalId = (0, smithy_client_1.expectString)(data.portalId);
|
|
4007
4007
|
}
|
|
4008
4008
|
if (data.portalLastUpdateDate !== undefined && data.portalLastUpdateDate !== null) {
|
|
4009
|
-
contents.portalLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.portalLastUpdateDate)));
|
|
4009
|
+
contents.portalLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.portalLastUpdateDate)));
|
|
4010
4010
|
}
|
|
4011
4011
|
if (data.portalLogoImageLocation !== undefined && data.portalLogoImageLocation !== null) {
|
|
4012
4012
|
contents.portalLogoImageLocation = deserializeAws_restJson1ImageLocation(data.portalLogoImageLocation, context);
|
|
4013
4013
|
}
|
|
4014
4014
|
if (data.portalName !== undefined && data.portalName !== null) {
|
|
4015
|
-
contents.portalName = smithy_client_1.expectString(data.portalName);
|
|
4015
|
+
contents.portalName = (0, smithy_client_1.expectString)(data.portalName);
|
|
4016
4016
|
}
|
|
4017
4017
|
if (data.portalStartUrl !== undefined && data.portalStartUrl !== null) {
|
|
4018
|
-
contents.portalStartUrl = smithy_client_1.expectString(data.portalStartUrl);
|
|
4018
|
+
contents.portalStartUrl = (0, smithy_client_1.expectString)(data.portalStartUrl);
|
|
4019
4019
|
}
|
|
4020
4020
|
if (data.portalStatus !== undefined && data.portalStatus !== null) {
|
|
4021
4021
|
contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
|
|
4022
4022
|
}
|
|
4023
4023
|
if (data.roleArn !== undefined && data.roleArn !== null) {
|
|
4024
|
-
contents.roleArn = smithy_client_1.expectString(data.roleArn);
|
|
4024
|
+
contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
|
|
4025
4025
|
}
|
|
4026
4026
|
return Promise.resolve(contents);
|
|
4027
4027
|
};
|
|
@@ -4054,7 +4054,7 @@ const deserializeAws_restJson1DescribePortalCommandError = async (output, contex
|
|
|
4054
4054
|
$fault: "client",
|
|
4055
4055
|
$metadata: deserializeMetadata(output),
|
|
4056
4056
|
});
|
|
4057
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4057
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4058
4058
|
}
|
|
4059
4059
|
};
|
|
4060
4060
|
const deserializeAws_restJson1DescribeProjectCommand = async (output, context) => {
|
|
@@ -4071,27 +4071,27 @@ const deserializeAws_restJson1DescribeProjectCommand = async (output, context) =
|
|
|
4071
4071
|
projectLastUpdateDate: undefined,
|
|
4072
4072
|
projectName: undefined,
|
|
4073
4073
|
};
|
|
4074
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4074
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4075
4075
|
if (data.portalId !== undefined && data.portalId !== null) {
|
|
4076
|
-
contents.portalId = smithy_client_1.expectString(data.portalId);
|
|
4076
|
+
contents.portalId = (0, smithy_client_1.expectString)(data.portalId);
|
|
4077
4077
|
}
|
|
4078
4078
|
if (data.projectArn !== undefined && data.projectArn !== null) {
|
|
4079
|
-
contents.projectArn = smithy_client_1.expectString(data.projectArn);
|
|
4079
|
+
contents.projectArn = (0, smithy_client_1.expectString)(data.projectArn);
|
|
4080
4080
|
}
|
|
4081
4081
|
if (data.projectCreationDate !== undefined && data.projectCreationDate !== null) {
|
|
4082
|
-
contents.projectCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.projectCreationDate)));
|
|
4082
|
+
contents.projectCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.projectCreationDate)));
|
|
4083
4083
|
}
|
|
4084
4084
|
if (data.projectDescription !== undefined && data.projectDescription !== null) {
|
|
4085
|
-
contents.projectDescription = smithy_client_1.expectString(data.projectDescription);
|
|
4085
|
+
contents.projectDescription = (0, smithy_client_1.expectString)(data.projectDescription);
|
|
4086
4086
|
}
|
|
4087
4087
|
if (data.projectId !== undefined && data.projectId !== null) {
|
|
4088
|
-
contents.projectId = smithy_client_1.expectString(data.projectId);
|
|
4088
|
+
contents.projectId = (0, smithy_client_1.expectString)(data.projectId);
|
|
4089
4089
|
}
|
|
4090
4090
|
if (data.projectLastUpdateDate !== undefined && data.projectLastUpdateDate !== null) {
|
|
4091
|
-
contents.projectLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.projectLastUpdateDate)));
|
|
4091
|
+
contents.projectLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.projectLastUpdateDate)));
|
|
4092
4092
|
}
|
|
4093
4093
|
if (data.projectName !== undefined && data.projectName !== null) {
|
|
4094
|
-
contents.projectName = smithy_client_1.expectString(data.projectName);
|
|
4094
|
+
contents.projectName = (0, smithy_client_1.expectString)(data.projectName);
|
|
4095
4095
|
}
|
|
4096
4096
|
return Promise.resolve(contents);
|
|
4097
4097
|
};
|
|
@@ -4124,7 +4124,7 @@ const deserializeAws_restJson1DescribeProjectCommandError = async (output, conte
|
|
|
4124
4124
|
$fault: "client",
|
|
4125
4125
|
$metadata: deserializeMetadata(output),
|
|
4126
4126
|
});
|
|
4127
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4127
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4128
4128
|
}
|
|
4129
4129
|
};
|
|
4130
4130
|
const deserializeAws_restJson1DescribeStorageConfigurationCommand = async (output, context) => {
|
|
@@ -4140,15 +4140,15 @@ const deserializeAws_restJson1DescribeStorageConfigurationCommand = async (outpu
|
|
|
4140
4140
|
retentionPeriod: undefined,
|
|
4141
4141
|
storageType: undefined,
|
|
4142
4142
|
};
|
|
4143
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4143
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4144
4144
|
if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
|
|
4145
4145
|
contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
|
|
4146
4146
|
}
|
|
4147
4147
|
if (data.disassociatedDataStorage !== undefined && data.disassociatedDataStorage !== null) {
|
|
4148
|
-
contents.disassociatedDataStorage = smithy_client_1.expectString(data.disassociatedDataStorage);
|
|
4148
|
+
contents.disassociatedDataStorage = (0, smithy_client_1.expectString)(data.disassociatedDataStorage);
|
|
4149
4149
|
}
|
|
4150
4150
|
if (data.lastUpdateDate !== undefined && data.lastUpdateDate !== null) {
|
|
4151
|
-
contents.lastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdateDate)));
|
|
4151
|
+
contents.lastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastUpdateDate)));
|
|
4152
4152
|
}
|
|
4153
4153
|
if (data.multiLayerStorage !== undefined && data.multiLayerStorage !== null) {
|
|
4154
4154
|
contents.multiLayerStorage = deserializeAws_restJson1MultiLayerStorage(data.multiLayerStorage, context);
|
|
@@ -4157,7 +4157,7 @@ const deserializeAws_restJson1DescribeStorageConfigurationCommand = async (outpu
|
|
|
4157
4157
|
contents.retentionPeriod = deserializeAws_restJson1RetentionPeriod(data.retentionPeriod, context);
|
|
4158
4158
|
}
|
|
4159
4159
|
if (data.storageType !== undefined && data.storageType !== null) {
|
|
4160
|
-
contents.storageType = smithy_client_1.expectString(data.storageType);
|
|
4160
|
+
contents.storageType = (0, smithy_client_1.expectString)(data.storageType);
|
|
4161
4161
|
}
|
|
4162
4162
|
return Promise.resolve(contents);
|
|
4163
4163
|
};
|
|
@@ -4196,7 +4196,7 @@ const deserializeAws_restJson1DescribeStorageConfigurationCommandError = async (
|
|
|
4196
4196
|
$fault: "client",
|
|
4197
4197
|
$metadata: deserializeMetadata(output),
|
|
4198
4198
|
});
|
|
4199
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4199
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4200
4200
|
}
|
|
4201
4201
|
};
|
|
4202
4202
|
const deserializeAws_restJson1DescribeTimeSeriesCommand = async (output, context) => {
|
|
@@ -4214,30 +4214,30 @@ const deserializeAws_restJson1DescribeTimeSeriesCommand = async (output, context
|
|
|
4214
4214
|
timeSeriesId: undefined,
|
|
4215
4215
|
timeSeriesLastUpdateDate: undefined,
|
|
4216
4216
|
};
|
|
4217
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4217
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4218
4218
|
if (data.alias !== undefined && data.alias !== null) {
|
|
4219
|
-
contents.alias = smithy_client_1.expectString(data.alias);
|
|
4219
|
+
contents.alias = (0, smithy_client_1.expectString)(data.alias);
|
|
4220
4220
|
}
|
|
4221
4221
|
if (data.assetId !== undefined && data.assetId !== null) {
|
|
4222
|
-
contents.assetId = smithy_client_1.expectString(data.assetId);
|
|
4222
|
+
contents.assetId = (0, smithy_client_1.expectString)(data.assetId);
|
|
4223
4223
|
}
|
|
4224
4224
|
if (data.dataType !== undefined && data.dataType !== null) {
|
|
4225
|
-
contents.dataType = smithy_client_1.expectString(data.dataType);
|
|
4225
|
+
contents.dataType = (0, smithy_client_1.expectString)(data.dataType);
|
|
4226
4226
|
}
|
|
4227
4227
|
if (data.dataTypeSpec !== undefined && data.dataTypeSpec !== null) {
|
|
4228
|
-
contents.dataTypeSpec = smithy_client_1.expectString(data.dataTypeSpec);
|
|
4228
|
+
contents.dataTypeSpec = (0, smithy_client_1.expectString)(data.dataTypeSpec);
|
|
4229
4229
|
}
|
|
4230
4230
|
if (data.propertyId !== undefined && data.propertyId !== null) {
|
|
4231
|
-
contents.propertyId = smithy_client_1.expectString(data.propertyId);
|
|
4231
|
+
contents.propertyId = (0, smithy_client_1.expectString)(data.propertyId);
|
|
4232
4232
|
}
|
|
4233
4233
|
if (data.timeSeriesCreationDate !== undefined && data.timeSeriesCreationDate !== null) {
|
|
4234
|
-
contents.timeSeriesCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.timeSeriesCreationDate)));
|
|
4234
|
+
contents.timeSeriesCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.timeSeriesCreationDate)));
|
|
4235
4235
|
}
|
|
4236
4236
|
if (data.timeSeriesId !== undefined && data.timeSeriesId !== null) {
|
|
4237
|
-
contents.timeSeriesId = smithy_client_1.expectString(data.timeSeriesId);
|
|
4237
|
+
contents.timeSeriesId = (0, smithy_client_1.expectString)(data.timeSeriesId);
|
|
4238
4238
|
}
|
|
4239
4239
|
if (data.timeSeriesLastUpdateDate !== undefined && data.timeSeriesLastUpdateDate !== null) {
|
|
4240
|
-
contents.timeSeriesLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.timeSeriesLastUpdateDate)));
|
|
4240
|
+
contents.timeSeriesLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.timeSeriesLastUpdateDate)));
|
|
4241
4241
|
}
|
|
4242
4242
|
return Promise.resolve(contents);
|
|
4243
4243
|
};
|
|
@@ -4270,7 +4270,7 @@ const deserializeAws_restJson1DescribeTimeSeriesCommandError = async (output, co
|
|
|
4270
4270
|
$fault: "client",
|
|
4271
4271
|
$metadata: deserializeMetadata(output),
|
|
4272
4272
|
});
|
|
4273
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4273
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4274
4274
|
}
|
|
4275
4275
|
};
|
|
4276
4276
|
const deserializeAws_restJson1DisassociateAssetsCommand = async (output, context) => {
|
|
@@ -4315,7 +4315,7 @@ const deserializeAws_restJson1DisassociateAssetsCommandError = async (output, co
|
|
|
4315
4315
|
$fault: "client",
|
|
4316
4316
|
$metadata: deserializeMetadata(output),
|
|
4317
4317
|
});
|
|
4318
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4318
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4319
4319
|
}
|
|
4320
4320
|
};
|
|
4321
4321
|
const deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = async (output, context) => {
|
|
@@ -4360,7 +4360,7 @@ const deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommandErro
|
|
|
4360
4360
|
$fault: "client",
|
|
4361
4361
|
$metadata: deserializeMetadata(output),
|
|
4362
4362
|
});
|
|
4363
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4363
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4364
4364
|
}
|
|
4365
4365
|
};
|
|
4366
4366
|
const deserializeAws_restJson1GetAssetPropertyAggregatesCommand = async (output, context) => {
|
|
@@ -4372,12 +4372,12 @@ const deserializeAws_restJson1GetAssetPropertyAggregatesCommand = async (output,
|
|
|
4372
4372
|
aggregatedValues: undefined,
|
|
4373
4373
|
nextToken: undefined,
|
|
4374
4374
|
};
|
|
4375
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4375
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4376
4376
|
if (data.aggregatedValues !== undefined && data.aggregatedValues !== null) {
|
|
4377
4377
|
contents.aggregatedValues = deserializeAws_restJson1AggregatedValues(data.aggregatedValues, context);
|
|
4378
4378
|
}
|
|
4379
4379
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4380
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4380
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4381
4381
|
}
|
|
4382
4382
|
return Promise.resolve(contents);
|
|
4383
4383
|
};
|
|
@@ -4413,7 +4413,7 @@ const deserializeAws_restJson1GetAssetPropertyAggregatesCommandError = async (ou
|
|
|
4413
4413
|
$fault: "client",
|
|
4414
4414
|
$metadata: deserializeMetadata(output),
|
|
4415
4415
|
});
|
|
4416
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4416
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4417
4417
|
}
|
|
4418
4418
|
};
|
|
4419
4419
|
const deserializeAws_restJson1GetAssetPropertyValueCommand = async (output, context) => {
|
|
@@ -4424,7 +4424,7 @@ const deserializeAws_restJson1GetAssetPropertyValueCommand = async (output, cont
|
|
|
4424
4424
|
$metadata: deserializeMetadata(output),
|
|
4425
4425
|
propertyValue: undefined,
|
|
4426
4426
|
};
|
|
4427
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4427
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4428
4428
|
if (data.propertyValue !== undefined && data.propertyValue !== null) {
|
|
4429
4429
|
contents.propertyValue = deserializeAws_restJson1AssetPropertyValue(data.propertyValue, context);
|
|
4430
4430
|
}
|
|
@@ -4462,7 +4462,7 @@ const deserializeAws_restJson1GetAssetPropertyValueCommandError = async (output,
|
|
|
4462
4462
|
$fault: "client",
|
|
4463
4463
|
$metadata: deserializeMetadata(output),
|
|
4464
4464
|
});
|
|
4465
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4465
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4466
4466
|
}
|
|
4467
4467
|
};
|
|
4468
4468
|
const deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (output, context) => {
|
|
@@ -4474,12 +4474,12 @@ const deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (outpu
|
|
|
4474
4474
|
assetPropertyValueHistory: undefined,
|
|
4475
4475
|
nextToken: undefined,
|
|
4476
4476
|
};
|
|
4477
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4477
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4478
4478
|
if (data.assetPropertyValueHistory !== undefined && data.assetPropertyValueHistory !== null) {
|
|
4479
4479
|
contents.assetPropertyValueHistory = deserializeAws_restJson1AssetPropertyValueHistory(data.assetPropertyValueHistory, context);
|
|
4480
4480
|
}
|
|
4481
4481
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4482
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4482
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4483
4483
|
}
|
|
4484
4484
|
return Promise.resolve(contents);
|
|
4485
4485
|
};
|
|
@@ -4515,7 +4515,7 @@ const deserializeAws_restJson1GetAssetPropertyValueHistoryCommandError = async (
|
|
|
4515
4515
|
$fault: "client",
|
|
4516
4516
|
$metadata: deserializeMetadata(output),
|
|
4517
4517
|
});
|
|
4518
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4518
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4519
4519
|
}
|
|
4520
4520
|
};
|
|
4521
4521
|
const deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = async (output, context) => {
|
|
@@ -4527,12 +4527,12 @@ const deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = async
|
|
|
4527
4527
|
interpolatedAssetPropertyValues: undefined,
|
|
4528
4528
|
nextToken: undefined,
|
|
4529
4529
|
};
|
|
4530
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4530
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4531
4531
|
if (data.interpolatedAssetPropertyValues !== undefined && data.interpolatedAssetPropertyValues !== null) {
|
|
4532
4532
|
contents.interpolatedAssetPropertyValues = deserializeAws_restJson1InterpolatedAssetPropertyValues(data.interpolatedAssetPropertyValues, context);
|
|
4533
4533
|
}
|
|
4534
4534
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4535
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4535
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4536
4536
|
}
|
|
4537
4537
|
return Promise.resolve(contents);
|
|
4538
4538
|
};
|
|
@@ -4568,7 +4568,7 @@ const deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommandError = a
|
|
|
4568
4568
|
$fault: "client",
|
|
4569
4569
|
$metadata: deserializeMetadata(output),
|
|
4570
4570
|
});
|
|
4571
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4571
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4572
4572
|
}
|
|
4573
4573
|
};
|
|
4574
4574
|
const deserializeAws_restJson1ListAccessPoliciesCommand = async (output, context) => {
|
|
@@ -4580,12 +4580,12 @@ const deserializeAws_restJson1ListAccessPoliciesCommand = async (output, context
|
|
|
4580
4580
|
accessPolicySummaries: undefined,
|
|
4581
4581
|
nextToken: undefined,
|
|
4582
4582
|
};
|
|
4583
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4583
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4584
4584
|
if (data.accessPolicySummaries !== undefined && data.accessPolicySummaries !== null) {
|
|
4585
4585
|
contents.accessPolicySummaries = deserializeAws_restJson1AccessPolicySummaries(data.accessPolicySummaries, context);
|
|
4586
4586
|
}
|
|
4587
4587
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4588
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4588
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4589
4589
|
}
|
|
4590
4590
|
return Promise.resolve(contents);
|
|
4591
4591
|
};
|
|
@@ -4615,7 +4615,7 @@ const deserializeAws_restJson1ListAccessPoliciesCommandError = async (output, co
|
|
|
4615
4615
|
$fault: "client",
|
|
4616
4616
|
$metadata: deserializeMetadata(output),
|
|
4617
4617
|
});
|
|
4618
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4618
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4619
4619
|
}
|
|
4620
4620
|
};
|
|
4621
4621
|
const deserializeAws_restJson1ListAssetModelsCommand = async (output, context) => {
|
|
@@ -4627,12 +4627,12 @@ const deserializeAws_restJson1ListAssetModelsCommand = async (output, context) =
|
|
|
4627
4627
|
assetModelSummaries: undefined,
|
|
4628
4628
|
nextToken: undefined,
|
|
4629
4629
|
};
|
|
4630
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4630
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4631
4631
|
if (data.assetModelSummaries !== undefined && data.assetModelSummaries !== null) {
|
|
4632
4632
|
contents.assetModelSummaries = deserializeAws_restJson1AssetModelSummaries(data.assetModelSummaries, context);
|
|
4633
4633
|
}
|
|
4634
4634
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4635
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4635
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4636
4636
|
}
|
|
4637
4637
|
return Promise.resolve(contents);
|
|
4638
4638
|
};
|
|
@@ -4662,7 +4662,7 @@ const deserializeAws_restJson1ListAssetModelsCommandError = async (output, conte
|
|
|
4662
4662
|
$fault: "client",
|
|
4663
4663
|
$metadata: deserializeMetadata(output),
|
|
4664
4664
|
});
|
|
4665
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4665
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4666
4666
|
}
|
|
4667
4667
|
};
|
|
4668
4668
|
const deserializeAws_restJson1ListAssetRelationshipsCommand = async (output, context) => {
|
|
@@ -4674,12 +4674,12 @@ const deserializeAws_restJson1ListAssetRelationshipsCommand = async (output, con
|
|
|
4674
4674
|
assetRelationshipSummaries: undefined,
|
|
4675
4675
|
nextToken: undefined,
|
|
4676
4676
|
};
|
|
4677
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4677
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4678
4678
|
if (data.assetRelationshipSummaries !== undefined && data.assetRelationshipSummaries !== null) {
|
|
4679
4679
|
contents.assetRelationshipSummaries = deserializeAws_restJson1AssetRelationshipSummaries(data.assetRelationshipSummaries, context);
|
|
4680
4680
|
}
|
|
4681
4681
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4682
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4682
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4683
4683
|
}
|
|
4684
4684
|
return Promise.resolve(contents);
|
|
4685
4685
|
};
|
|
@@ -4712,7 +4712,7 @@ const deserializeAws_restJson1ListAssetRelationshipsCommandError = async (output
|
|
|
4712
4712
|
$fault: "client",
|
|
4713
4713
|
$metadata: deserializeMetadata(output),
|
|
4714
4714
|
});
|
|
4715
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4715
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4716
4716
|
}
|
|
4717
4717
|
};
|
|
4718
4718
|
const deserializeAws_restJson1ListAssetsCommand = async (output, context) => {
|
|
@@ -4724,12 +4724,12 @@ const deserializeAws_restJson1ListAssetsCommand = async (output, context) => {
|
|
|
4724
4724
|
assetSummaries: undefined,
|
|
4725
4725
|
nextToken: undefined,
|
|
4726
4726
|
};
|
|
4727
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4727
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4728
4728
|
if (data.assetSummaries !== undefined && data.assetSummaries !== null) {
|
|
4729
4729
|
contents.assetSummaries = deserializeAws_restJson1AssetSummaries(data.assetSummaries, context);
|
|
4730
4730
|
}
|
|
4731
4731
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4732
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4732
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4733
4733
|
}
|
|
4734
4734
|
return Promise.resolve(contents);
|
|
4735
4735
|
};
|
|
@@ -4762,7 +4762,7 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
|
|
|
4762
4762
|
$fault: "client",
|
|
4763
4763
|
$metadata: deserializeMetadata(output),
|
|
4764
4764
|
});
|
|
4765
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4765
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4766
4766
|
}
|
|
4767
4767
|
};
|
|
4768
4768
|
const deserializeAws_restJson1ListAssociatedAssetsCommand = async (output, context) => {
|
|
@@ -4774,12 +4774,12 @@ const deserializeAws_restJson1ListAssociatedAssetsCommand = async (output, conte
|
|
|
4774
4774
|
assetSummaries: undefined,
|
|
4775
4775
|
nextToken: undefined,
|
|
4776
4776
|
};
|
|
4777
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4777
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4778
4778
|
if (data.assetSummaries !== undefined && data.assetSummaries !== null) {
|
|
4779
4779
|
contents.assetSummaries = deserializeAws_restJson1AssociatedAssetsSummaries(data.assetSummaries, context);
|
|
4780
4780
|
}
|
|
4781
4781
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4782
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4782
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4783
4783
|
}
|
|
4784
4784
|
return Promise.resolve(contents);
|
|
4785
4785
|
};
|
|
@@ -4812,7 +4812,7 @@ const deserializeAws_restJson1ListAssociatedAssetsCommandError = async (output,
|
|
|
4812
4812
|
$fault: "client",
|
|
4813
4813
|
$metadata: deserializeMetadata(output),
|
|
4814
4814
|
});
|
|
4815
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4815
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4816
4816
|
}
|
|
4817
4817
|
};
|
|
4818
4818
|
const deserializeAws_restJson1ListDashboardsCommand = async (output, context) => {
|
|
@@ -4824,12 +4824,12 @@ const deserializeAws_restJson1ListDashboardsCommand = async (output, context) =>
|
|
|
4824
4824
|
dashboardSummaries: undefined,
|
|
4825
4825
|
nextToken: undefined,
|
|
4826
4826
|
};
|
|
4827
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4827
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4828
4828
|
if (data.dashboardSummaries !== undefined && data.dashboardSummaries !== null) {
|
|
4829
4829
|
contents.dashboardSummaries = deserializeAws_restJson1DashboardSummaries(data.dashboardSummaries, context);
|
|
4830
4830
|
}
|
|
4831
4831
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4832
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4832
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4833
4833
|
}
|
|
4834
4834
|
return Promise.resolve(contents);
|
|
4835
4835
|
};
|
|
@@ -4859,7 +4859,7 @@ const deserializeAws_restJson1ListDashboardsCommandError = async (output, contex
|
|
|
4859
4859
|
$fault: "client",
|
|
4860
4860
|
$metadata: deserializeMetadata(output),
|
|
4861
4861
|
});
|
|
4862
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4862
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4863
4863
|
}
|
|
4864
4864
|
};
|
|
4865
4865
|
const deserializeAws_restJson1ListGatewaysCommand = async (output, context) => {
|
|
@@ -4871,12 +4871,12 @@ const deserializeAws_restJson1ListGatewaysCommand = async (output, context) => {
|
|
|
4871
4871
|
gatewaySummaries: undefined,
|
|
4872
4872
|
nextToken: undefined,
|
|
4873
4873
|
};
|
|
4874
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4874
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4875
4875
|
if (data.gatewaySummaries !== undefined && data.gatewaySummaries !== null) {
|
|
4876
4876
|
contents.gatewaySummaries = deserializeAws_restJson1GatewaySummaries(data.gatewaySummaries, context);
|
|
4877
4877
|
}
|
|
4878
4878
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4879
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4879
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4880
4880
|
}
|
|
4881
4881
|
return Promise.resolve(contents);
|
|
4882
4882
|
};
|
|
@@ -4906,7 +4906,7 @@ const deserializeAws_restJson1ListGatewaysCommandError = async (output, context)
|
|
|
4906
4906
|
$fault: "client",
|
|
4907
4907
|
$metadata: deserializeMetadata(output),
|
|
4908
4908
|
});
|
|
4909
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4909
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4910
4910
|
}
|
|
4911
4911
|
};
|
|
4912
4912
|
const deserializeAws_restJson1ListPortalsCommand = async (output, context) => {
|
|
@@ -4918,9 +4918,9 @@ const deserializeAws_restJson1ListPortalsCommand = async (output, context) => {
|
|
|
4918
4918
|
nextToken: undefined,
|
|
4919
4919
|
portalSummaries: undefined,
|
|
4920
4920
|
};
|
|
4921
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4921
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4922
4922
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4923
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4923
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4924
4924
|
}
|
|
4925
4925
|
if (data.portalSummaries !== undefined && data.portalSummaries !== null) {
|
|
4926
4926
|
contents.portalSummaries = deserializeAws_restJson1PortalSummaries(data.portalSummaries, context);
|
|
@@ -4953,7 +4953,7 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
4953
4953
|
$fault: "client",
|
|
4954
4954
|
$metadata: deserializeMetadata(output),
|
|
4955
4955
|
});
|
|
4956
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4956
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4957
4957
|
}
|
|
4958
4958
|
};
|
|
4959
4959
|
const deserializeAws_restJson1ListProjectAssetsCommand = async (output, context) => {
|
|
@@ -4965,12 +4965,12 @@ const deserializeAws_restJson1ListProjectAssetsCommand = async (output, context)
|
|
|
4965
4965
|
assetIds: undefined,
|
|
4966
4966
|
nextToken: undefined,
|
|
4967
4967
|
};
|
|
4968
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4968
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4969
4969
|
if (data.assetIds !== undefined && data.assetIds !== null) {
|
|
4970
4970
|
contents.assetIds = deserializeAws_restJson1AssetIDs(data.assetIds, context);
|
|
4971
4971
|
}
|
|
4972
4972
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4973
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4973
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4974
4974
|
}
|
|
4975
4975
|
return Promise.resolve(contents);
|
|
4976
4976
|
};
|
|
@@ -5000,7 +5000,7 @@ const deserializeAws_restJson1ListProjectAssetsCommandError = async (output, con
|
|
|
5000
5000
|
$fault: "client",
|
|
5001
5001
|
$metadata: deserializeMetadata(output),
|
|
5002
5002
|
});
|
|
5003
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5003
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5004
5004
|
}
|
|
5005
5005
|
};
|
|
5006
5006
|
const deserializeAws_restJson1ListProjectsCommand = async (output, context) => {
|
|
@@ -5012,9 +5012,9 @@ const deserializeAws_restJson1ListProjectsCommand = async (output, context) => {
|
|
|
5012
5012
|
nextToken: undefined,
|
|
5013
5013
|
projectSummaries: undefined,
|
|
5014
5014
|
};
|
|
5015
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5015
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5016
5016
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5017
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5017
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
5018
5018
|
}
|
|
5019
5019
|
if (data.projectSummaries !== undefined && data.projectSummaries !== null) {
|
|
5020
5020
|
contents.projectSummaries = deserializeAws_restJson1ProjectSummaries(data.projectSummaries, context);
|
|
@@ -5047,7 +5047,7 @@ const deserializeAws_restJson1ListProjectsCommandError = async (output, context)
|
|
|
5047
5047
|
$fault: "client",
|
|
5048
5048
|
$metadata: deserializeMetadata(output),
|
|
5049
5049
|
});
|
|
5050
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5050
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5051
5051
|
}
|
|
5052
5052
|
};
|
|
5053
5053
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -5058,7 +5058,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
5058
5058
|
$metadata: deserializeMetadata(output),
|
|
5059
5059
|
tags: undefined,
|
|
5060
5060
|
};
|
|
5061
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5061
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5062
5062
|
if (data.tags !== undefined && data.tags !== null) {
|
|
5063
5063
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
5064
5064
|
}
|
|
@@ -5102,7 +5102,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
5102
5102
|
$fault: "client",
|
|
5103
5103
|
$metadata: deserializeMetadata(output),
|
|
5104
5104
|
});
|
|
5105
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5105
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5106
5106
|
}
|
|
5107
5107
|
};
|
|
5108
5108
|
const deserializeAws_restJson1ListTimeSeriesCommand = async (output, context) => {
|
|
@@ -5114,12 +5114,12 @@ const deserializeAws_restJson1ListTimeSeriesCommand = async (output, context) =>
|
|
|
5114
5114
|
TimeSeriesSummaries: undefined,
|
|
5115
5115
|
nextToken: undefined,
|
|
5116
5116
|
};
|
|
5117
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5117
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5118
5118
|
if (data.TimeSeriesSummaries !== undefined && data.TimeSeriesSummaries !== null) {
|
|
5119
5119
|
contents.TimeSeriesSummaries = deserializeAws_restJson1TimeSeriesSummaries(data.TimeSeriesSummaries, context);
|
|
5120
5120
|
}
|
|
5121
5121
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5122
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5122
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
5123
5123
|
}
|
|
5124
5124
|
return Promise.resolve(contents);
|
|
5125
5125
|
};
|
|
@@ -5152,7 +5152,7 @@ const deserializeAws_restJson1ListTimeSeriesCommandError = async (output, contex
|
|
|
5152
5152
|
$fault: "client",
|
|
5153
5153
|
$metadata: deserializeMetadata(output),
|
|
5154
5154
|
});
|
|
5155
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5155
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5156
5156
|
}
|
|
5157
5157
|
};
|
|
5158
5158
|
const deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = async (output, context) => {
|
|
@@ -5165,15 +5165,15 @@ const deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = async (
|
|
|
5165
5165
|
encryptionType: undefined,
|
|
5166
5166
|
kmsKeyArn: undefined,
|
|
5167
5167
|
};
|
|
5168
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5168
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5169
5169
|
if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
|
|
5170
5170
|
contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
|
|
5171
5171
|
}
|
|
5172
5172
|
if (data.encryptionType !== undefined && data.encryptionType !== null) {
|
|
5173
|
-
contents.encryptionType = smithy_client_1.expectString(data.encryptionType);
|
|
5173
|
+
contents.encryptionType = (0, smithy_client_1.expectString)(data.encryptionType);
|
|
5174
5174
|
}
|
|
5175
5175
|
if (data.kmsKeyArn !== undefined && data.kmsKeyArn !== null) {
|
|
5176
|
-
contents.kmsKeyArn = smithy_client_1.expectString(data.kmsKeyArn);
|
|
5176
|
+
contents.kmsKeyArn = (0, smithy_client_1.expectString)(data.kmsKeyArn);
|
|
5177
5177
|
}
|
|
5178
5178
|
return Promise.resolve(contents);
|
|
5179
5179
|
};
|
|
@@ -5209,7 +5209,7 @@ const deserializeAws_restJson1PutDefaultEncryptionConfigurationCommandError = as
|
|
|
5209
5209
|
$fault: "client",
|
|
5210
5210
|
$metadata: deserializeMetadata(output),
|
|
5211
5211
|
});
|
|
5212
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5212
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5213
5213
|
}
|
|
5214
5214
|
};
|
|
5215
5215
|
const deserializeAws_restJson1PutLoggingOptionsCommand = async (output, context) => {
|
|
@@ -5254,7 +5254,7 @@ const deserializeAws_restJson1PutLoggingOptionsCommandError = async (output, con
|
|
|
5254
5254
|
$fault: "client",
|
|
5255
5255
|
$metadata: deserializeMetadata(output),
|
|
5256
5256
|
});
|
|
5257
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5257
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5258
5258
|
}
|
|
5259
5259
|
};
|
|
5260
5260
|
const deserializeAws_restJson1PutStorageConfigurationCommand = async (output, context) => {
|
|
@@ -5269,12 +5269,12 @@ const deserializeAws_restJson1PutStorageConfigurationCommand = async (output, co
|
|
|
5269
5269
|
retentionPeriod: undefined,
|
|
5270
5270
|
storageType: undefined,
|
|
5271
5271
|
};
|
|
5272
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5272
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5273
5273
|
if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
|
|
5274
5274
|
contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
|
|
5275
5275
|
}
|
|
5276
5276
|
if (data.disassociatedDataStorage !== undefined && data.disassociatedDataStorage !== null) {
|
|
5277
|
-
contents.disassociatedDataStorage = smithy_client_1.expectString(data.disassociatedDataStorage);
|
|
5277
|
+
contents.disassociatedDataStorage = (0, smithy_client_1.expectString)(data.disassociatedDataStorage);
|
|
5278
5278
|
}
|
|
5279
5279
|
if (data.multiLayerStorage !== undefined && data.multiLayerStorage !== null) {
|
|
5280
5280
|
contents.multiLayerStorage = deserializeAws_restJson1MultiLayerStorage(data.multiLayerStorage, context);
|
|
@@ -5283,7 +5283,7 @@ const deserializeAws_restJson1PutStorageConfigurationCommand = async (output, co
|
|
|
5283
5283
|
contents.retentionPeriod = deserializeAws_restJson1RetentionPeriod(data.retentionPeriod, context);
|
|
5284
5284
|
}
|
|
5285
5285
|
if (data.storageType !== undefined && data.storageType !== null) {
|
|
5286
|
-
contents.storageType = smithy_client_1.expectString(data.storageType);
|
|
5286
|
+
contents.storageType = (0, smithy_client_1.expectString)(data.storageType);
|
|
5287
5287
|
}
|
|
5288
5288
|
return Promise.resolve(contents);
|
|
5289
5289
|
};
|
|
@@ -5325,7 +5325,7 @@ const deserializeAws_restJson1PutStorageConfigurationCommandError = async (outpu
|
|
|
5325
5325
|
$fault: "client",
|
|
5326
5326
|
$metadata: deserializeMetadata(output),
|
|
5327
5327
|
});
|
|
5328
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5328
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5329
5329
|
}
|
|
5330
5330
|
};
|
|
5331
5331
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -5379,7 +5379,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5379
5379
|
$fault: "client",
|
|
5380
5380
|
$metadata: deserializeMetadata(output),
|
|
5381
5381
|
});
|
|
5382
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5382
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5383
5383
|
}
|
|
5384
5384
|
};
|
|
5385
5385
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -5430,7 +5430,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5430
5430
|
$fault: "client",
|
|
5431
5431
|
$metadata: deserializeMetadata(output),
|
|
5432
5432
|
});
|
|
5433
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5433
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5434
5434
|
}
|
|
5435
5435
|
};
|
|
5436
5436
|
const deserializeAws_restJson1UpdateAccessPolicyCommand = async (output, context) => {
|
|
@@ -5472,7 +5472,7 @@ const deserializeAws_restJson1UpdateAccessPolicyCommandError = async (output, co
|
|
|
5472
5472
|
$fault: "client",
|
|
5473
5473
|
$metadata: deserializeMetadata(output),
|
|
5474
5474
|
});
|
|
5475
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5475
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5476
5476
|
}
|
|
5477
5477
|
};
|
|
5478
5478
|
const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
|
|
@@ -5483,7 +5483,7 @@ const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
|
|
|
5483
5483
|
$metadata: deserializeMetadata(output),
|
|
5484
5484
|
assetStatus: undefined,
|
|
5485
5485
|
};
|
|
5486
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5486
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5487
5487
|
if (data.assetStatus !== undefined && data.assetStatus !== null) {
|
|
5488
5488
|
contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
|
|
5489
5489
|
}
|
|
@@ -5524,7 +5524,7 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
|
|
|
5524
5524
|
$fault: "client",
|
|
5525
5525
|
$metadata: deserializeMetadata(output),
|
|
5526
5526
|
});
|
|
5527
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5527
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5528
5528
|
}
|
|
5529
5529
|
};
|
|
5530
5530
|
const deserializeAws_restJson1UpdateAssetModelCommand = async (output, context) => {
|
|
@@ -5535,7 +5535,7 @@ const deserializeAws_restJson1UpdateAssetModelCommand = async (output, context)
|
|
|
5535
5535
|
$metadata: deserializeMetadata(output),
|
|
5536
5536
|
assetModelStatus: undefined,
|
|
5537
5537
|
};
|
|
5538
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5538
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5539
5539
|
if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
|
|
5540
5540
|
contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
|
|
5541
5541
|
}
|
|
@@ -5579,7 +5579,7 @@ const deserializeAws_restJson1UpdateAssetModelCommandError = async (output, cont
|
|
|
5579
5579
|
$fault: "client",
|
|
5580
5580
|
$metadata: deserializeMetadata(output),
|
|
5581
5581
|
});
|
|
5582
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5582
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5583
5583
|
}
|
|
5584
5584
|
};
|
|
5585
5585
|
const deserializeAws_restJson1UpdateAssetPropertyCommand = async (output, context) => {
|
|
@@ -5624,7 +5624,7 @@ const deserializeAws_restJson1UpdateAssetPropertyCommandError = async (output, c
|
|
|
5624
5624
|
$fault: "client",
|
|
5625
5625
|
$metadata: deserializeMetadata(output),
|
|
5626
5626
|
});
|
|
5627
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5627
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5628
5628
|
}
|
|
5629
5629
|
};
|
|
5630
5630
|
const deserializeAws_restJson1UpdateDashboardCommand = async (output, context) => {
|
|
@@ -5666,7 +5666,7 @@ const deserializeAws_restJson1UpdateDashboardCommandError = async (output, conte
|
|
|
5666
5666
|
$fault: "client",
|
|
5667
5667
|
$metadata: deserializeMetadata(output),
|
|
5668
5668
|
});
|
|
5669
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5669
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5670
5670
|
}
|
|
5671
5671
|
};
|
|
5672
5672
|
const deserializeAws_restJson1UpdateGatewayCommand = async (output, context) => {
|
|
@@ -5711,7 +5711,7 @@ const deserializeAws_restJson1UpdateGatewayCommandError = async (output, context
|
|
|
5711
5711
|
$fault: "client",
|
|
5712
5712
|
$metadata: deserializeMetadata(output),
|
|
5713
5713
|
});
|
|
5714
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5714
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5715
5715
|
}
|
|
5716
5716
|
};
|
|
5717
5717
|
const deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async (output, context) => {
|
|
@@ -5723,12 +5723,12 @@ const deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = asyn
|
|
|
5723
5723
|
capabilityNamespace: undefined,
|
|
5724
5724
|
capabilitySyncStatus: undefined,
|
|
5725
5725
|
};
|
|
5726
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5726
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5727
5727
|
if (data.capabilityNamespace !== undefined && data.capabilityNamespace !== null) {
|
|
5728
|
-
contents.capabilityNamespace = smithy_client_1.expectString(data.capabilityNamespace);
|
|
5728
|
+
contents.capabilityNamespace = (0, smithy_client_1.expectString)(data.capabilityNamespace);
|
|
5729
5729
|
}
|
|
5730
5730
|
if (data.capabilitySyncStatus !== undefined && data.capabilitySyncStatus !== null) {
|
|
5731
|
-
contents.capabilitySyncStatus = smithy_client_1.expectString(data.capabilitySyncStatus);
|
|
5731
|
+
contents.capabilitySyncStatus = (0, smithy_client_1.expectString)(data.capabilitySyncStatus);
|
|
5732
5732
|
}
|
|
5733
5733
|
return Promise.resolve(contents);
|
|
5734
5734
|
};
|
|
@@ -5767,7 +5767,7 @@ const deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommandError =
|
|
|
5767
5767
|
$fault: "client",
|
|
5768
5768
|
$metadata: deserializeMetadata(output),
|
|
5769
5769
|
});
|
|
5770
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5770
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5771
5771
|
}
|
|
5772
5772
|
};
|
|
5773
5773
|
const deserializeAws_restJson1UpdatePortalCommand = async (output, context) => {
|
|
@@ -5778,7 +5778,7 @@ const deserializeAws_restJson1UpdatePortalCommand = async (output, context) => {
|
|
|
5778
5778
|
$metadata: deserializeMetadata(output),
|
|
5779
5779
|
portalStatus: undefined,
|
|
5780
5780
|
};
|
|
5781
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5781
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5782
5782
|
if (data.portalStatus !== undefined && data.portalStatus !== null) {
|
|
5783
5783
|
contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
|
|
5784
5784
|
}
|
|
@@ -5816,7 +5816,7 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
5816
5816
|
$fault: "client",
|
|
5817
5817
|
$metadata: deserializeMetadata(output),
|
|
5818
5818
|
});
|
|
5819
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5819
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5820
5820
|
}
|
|
5821
5821
|
};
|
|
5822
5822
|
const deserializeAws_restJson1UpdateProjectCommand = async (output, context) => {
|
|
@@ -5858,143 +5858,143 @@ const deserializeAws_restJson1UpdateProjectCommandError = async (output, context
|
|
|
5858
5858
|
$fault: "client",
|
|
5859
5859
|
$metadata: deserializeMetadata(output),
|
|
5860
5860
|
});
|
|
5861
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5861
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5862
5862
|
}
|
|
5863
5863
|
};
|
|
5864
5864
|
const deserializeAws_restJson1ConflictingOperationExceptionResponse = async (parsedOutput, context) => {
|
|
5865
5865
|
const contents = {};
|
|
5866
5866
|
const data = parsedOutput.body;
|
|
5867
5867
|
if (data.message !== undefined && data.message !== null) {
|
|
5868
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5868
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5869
5869
|
}
|
|
5870
5870
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
5871
|
-
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
5871
|
+
contents.resourceArn = (0, smithy_client_1.expectString)(data.resourceArn);
|
|
5872
5872
|
}
|
|
5873
5873
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
5874
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
5874
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
5875
5875
|
}
|
|
5876
5876
|
const exception = new models_0_1.ConflictingOperationException({
|
|
5877
5877
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5878
5878
|
...contents,
|
|
5879
5879
|
});
|
|
5880
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5880
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5881
5881
|
};
|
|
5882
5882
|
const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOutput, context) => {
|
|
5883
5883
|
const contents = {};
|
|
5884
5884
|
const data = parsedOutput.body;
|
|
5885
5885
|
if (data.message !== undefined && data.message !== null) {
|
|
5886
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5886
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5887
5887
|
}
|
|
5888
5888
|
const exception = new models_0_1.InternalFailureException({
|
|
5889
5889
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5890
5890
|
...contents,
|
|
5891
5891
|
});
|
|
5892
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5892
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5893
5893
|
};
|
|
5894
5894
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
5895
5895
|
const contents = {};
|
|
5896
5896
|
const data = parsedOutput.body;
|
|
5897
5897
|
if (data.message !== undefined && data.message !== null) {
|
|
5898
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5898
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5899
5899
|
}
|
|
5900
5900
|
const exception = new models_0_1.InvalidRequestException({
|
|
5901
5901
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5902
5902
|
...contents,
|
|
5903
5903
|
});
|
|
5904
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5904
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5905
5905
|
};
|
|
5906
5906
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
5907
5907
|
const contents = {};
|
|
5908
5908
|
const data = parsedOutput.body;
|
|
5909
5909
|
if (data.message !== undefined && data.message !== null) {
|
|
5910
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5910
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5911
5911
|
}
|
|
5912
5912
|
const exception = new models_0_1.LimitExceededException({
|
|
5913
5913
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5914
5914
|
...contents,
|
|
5915
5915
|
});
|
|
5916
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5916
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5917
5917
|
};
|
|
5918
5918
|
const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
5919
5919
|
const contents = {};
|
|
5920
5920
|
const data = parsedOutput.body;
|
|
5921
5921
|
if (data.message !== undefined && data.message !== null) {
|
|
5922
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5922
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5923
5923
|
}
|
|
5924
5924
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
5925
|
-
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
5925
|
+
contents.resourceArn = (0, smithy_client_1.expectString)(data.resourceArn);
|
|
5926
5926
|
}
|
|
5927
5927
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
5928
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
5928
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
5929
5929
|
}
|
|
5930
5930
|
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
5931
5931
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5932
5932
|
...contents,
|
|
5933
5933
|
});
|
|
5934
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5934
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5935
5935
|
};
|
|
5936
5936
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
5937
5937
|
const contents = {};
|
|
5938
5938
|
const data = parsedOutput.body;
|
|
5939
5939
|
if (data.message !== undefined && data.message !== null) {
|
|
5940
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5940
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5941
5941
|
}
|
|
5942
5942
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
5943
5943
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5944
5944
|
...contents,
|
|
5945
5945
|
});
|
|
5946
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5946
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5947
5947
|
};
|
|
5948
5948
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
5949
5949
|
const contents = {};
|
|
5950
5950
|
const data = parsedOutput.body;
|
|
5951
5951
|
if (data.message !== undefined && data.message !== null) {
|
|
5952
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5952
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5953
5953
|
}
|
|
5954
5954
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
5955
5955
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5956
5956
|
...contents,
|
|
5957
5957
|
});
|
|
5958
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5958
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5959
5959
|
};
|
|
5960
5960
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
5961
5961
|
const contents = {};
|
|
5962
5962
|
const data = parsedOutput.body;
|
|
5963
5963
|
if (data.message !== undefined && data.message !== null) {
|
|
5964
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5964
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5965
5965
|
}
|
|
5966
5966
|
const exception = new models_0_1.ThrottlingException({
|
|
5967
5967
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5968
5968
|
...contents,
|
|
5969
5969
|
});
|
|
5970
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5970
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5971
5971
|
};
|
|
5972
5972
|
const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
5973
5973
|
const contents = {};
|
|
5974
5974
|
const data = parsedOutput.body;
|
|
5975
5975
|
if (data.message !== undefined && data.message !== null) {
|
|
5976
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5976
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5977
5977
|
}
|
|
5978
5978
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
5979
|
-
contents.resourceName = smithy_client_1.expectString(data.resourceName);
|
|
5979
|
+
contents.resourceName = (0, smithy_client_1.expectString)(data.resourceName);
|
|
5980
5980
|
}
|
|
5981
5981
|
const exception = new models_0_1.TooManyTagsException({
|
|
5982
5982
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5983
5983
|
...contents,
|
|
5984
5984
|
});
|
|
5985
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5985
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5986
5986
|
};
|
|
5987
5987
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
5988
5988
|
const contents = {};
|
|
5989
5989
|
const data = parsedOutput.body;
|
|
5990
5990
|
if (data.message !== undefined && data.message !== null) {
|
|
5991
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
5991
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5992
5992
|
}
|
|
5993
5993
|
const exception = new models_0_1.UnauthorizedException({
|
|
5994
5994
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5995
5995
|
...contents,
|
|
5996
5996
|
});
|
|
5997
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5997
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5998
5998
|
};
|
|
5999
5999
|
const serializeAws_restJson1Alarms = (input, context) => {
|
|
6000
6000
|
return {
|
|
@@ -6413,7 +6413,7 @@ const serializeAws_restJson1Variant = (input, context) => {
|
|
|
6413
6413
|
return {
|
|
6414
6414
|
...(input.booleanValue !== undefined && input.booleanValue !== null && { booleanValue: input.booleanValue }),
|
|
6415
6415
|
...(input.doubleValue !== undefined &&
|
|
6416
|
-
input.doubleValue !== null && { doubleValue: smithy_client_1.serializeFloat(input.doubleValue) }),
|
|
6416
|
+
input.doubleValue !== null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
|
|
6417
6417
|
...(input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue }),
|
|
6418
6418
|
...(input.stringValue !== undefined && input.stringValue !== null && { stringValue: input.stringValue }),
|
|
6419
6419
|
};
|
|
@@ -6432,16 +6432,16 @@ const deserializeAws_restJson1AccessPolicySummaries = (output, context) => {
|
|
|
6432
6432
|
const deserializeAws_restJson1AccessPolicySummary = (output, context) => {
|
|
6433
6433
|
return {
|
|
6434
6434
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
6435
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
6435
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
6436
6436
|
: undefined,
|
|
6437
|
-
id: smithy_client_1.expectString(output.id),
|
|
6437
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6438
6438
|
identity: output.identity !== undefined && output.identity !== null
|
|
6439
6439
|
? deserializeAws_restJson1Identity(output.identity, context)
|
|
6440
6440
|
: undefined,
|
|
6441
6441
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
6442
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
6442
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
|
|
6443
6443
|
: undefined,
|
|
6444
|
-
permission: smithy_client_1.expectString(output.permission),
|
|
6444
|
+
permission: (0, smithy_client_1.expectString)(output.permission),
|
|
6445
6445
|
resource: output.resource !== undefined && output.resource !== null
|
|
6446
6446
|
? deserializeAws_restJson1Resource(output.resource, context)
|
|
6447
6447
|
: undefined,
|
|
@@ -6449,9 +6449,9 @@ const deserializeAws_restJson1AccessPolicySummary = (output, context) => {
|
|
|
6449
6449
|
};
|
|
6450
6450
|
const deserializeAws_restJson1AggregatedValue = (output, context) => {
|
|
6451
6451
|
return {
|
|
6452
|
-
quality: smithy_client_1.expectString(output.quality),
|
|
6452
|
+
quality: (0, smithy_client_1.expectString)(output.quality),
|
|
6453
6453
|
timestamp: output.timestamp !== undefined && output.timestamp !== null
|
|
6454
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.timestamp)))
|
|
6454
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
|
|
6455
6455
|
: undefined,
|
|
6456
6456
|
value: output.value !== undefined && output.value !== null
|
|
6457
6457
|
? deserializeAws_restJson1Aggregates(output.value, context)
|
|
@@ -6471,28 +6471,28 @@ const deserializeAws_restJson1AggregatedValues = (output, context) => {
|
|
|
6471
6471
|
};
|
|
6472
6472
|
const deserializeAws_restJson1Aggregates = (output, context) => {
|
|
6473
6473
|
return {
|
|
6474
|
-
average: smithy_client_1.limitedParseDouble(output.average),
|
|
6475
|
-
count: smithy_client_1.limitedParseDouble(output.count),
|
|
6476
|
-
maximum: smithy_client_1.limitedParseDouble(output.maximum),
|
|
6477
|
-
minimum: smithy_client_1.limitedParseDouble(output.minimum),
|
|
6478
|
-
standardDeviation: smithy_client_1.limitedParseDouble(output.standardDeviation),
|
|
6479
|
-
sum: smithy_client_1.limitedParseDouble(output.sum),
|
|
6474
|
+
average: (0, smithy_client_1.limitedParseDouble)(output.average),
|
|
6475
|
+
count: (0, smithy_client_1.limitedParseDouble)(output.count),
|
|
6476
|
+
maximum: (0, smithy_client_1.limitedParseDouble)(output.maximum),
|
|
6477
|
+
minimum: (0, smithy_client_1.limitedParseDouble)(output.minimum),
|
|
6478
|
+
standardDeviation: (0, smithy_client_1.limitedParseDouble)(output.standardDeviation),
|
|
6479
|
+
sum: (0, smithy_client_1.limitedParseDouble)(output.sum),
|
|
6480
6480
|
};
|
|
6481
6481
|
};
|
|
6482
6482
|
const deserializeAws_restJson1Alarms = (output, context) => {
|
|
6483
6483
|
return {
|
|
6484
|
-
alarmRoleArn: smithy_client_1.expectString(output.alarmRoleArn),
|
|
6485
|
-
notificationLambdaArn: smithy_client_1.expectString(output.notificationLambdaArn),
|
|
6484
|
+
alarmRoleArn: (0, smithy_client_1.expectString)(output.alarmRoleArn),
|
|
6485
|
+
notificationLambdaArn: (0, smithy_client_1.expectString)(output.notificationLambdaArn),
|
|
6486
6486
|
};
|
|
6487
6487
|
};
|
|
6488
6488
|
const deserializeAws_restJson1AssetCompositeModel = (output, context) => {
|
|
6489
6489
|
return {
|
|
6490
|
-
description: smithy_client_1.expectString(output.description),
|
|
6491
|
-
name: smithy_client_1.expectString(output.name),
|
|
6490
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
6491
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6492
6492
|
properties: output.properties !== undefined && output.properties !== null
|
|
6493
6493
|
? deserializeAws_restJson1AssetProperties(output.properties, context)
|
|
6494
6494
|
: undefined,
|
|
6495
|
-
type: smithy_client_1.expectString(output.type),
|
|
6495
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
6496
6496
|
};
|
|
6497
6497
|
};
|
|
6498
6498
|
const deserializeAws_restJson1AssetCompositeModels = (output, context) => {
|
|
@@ -6508,9 +6508,9 @@ const deserializeAws_restJson1AssetCompositeModels = (output, context) => {
|
|
|
6508
6508
|
};
|
|
6509
6509
|
const deserializeAws_restJson1AssetErrorDetails = (output, context) => {
|
|
6510
6510
|
return {
|
|
6511
|
-
assetId: smithy_client_1.expectString(output.assetId),
|
|
6512
|
-
code: smithy_client_1.expectString(output.code),
|
|
6513
|
-
message: smithy_client_1.expectString(output.message),
|
|
6511
|
+
assetId: (0, smithy_client_1.expectString)(output.assetId),
|
|
6512
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
6513
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
6514
6514
|
};
|
|
6515
6515
|
};
|
|
6516
6516
|
const deserializeAws_restJson1AssetHierarchies = (output, context) => {
|
|
@@ -6526,14 +6526,14 @@ const deserializeAws_restJson1AssetHierarchies = (output, context) => {
|
|
|
6526
6526
|
};
|
|
6527
6527
|
const deserializeAws_restJson1AssetHierarchy = (output, context) => {
|
|
6528
6528
|
return {
|
|
6529
|
-
id: smithy_client_1.expectString(output.id),
|
|
6530
|
-
name: smithy_client_1.expectString(output.name),
|
|
6529
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6530
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6531
6531
|
};
|
|
6532
6532
|
};
|
|
6533
6533
|
const deserializeAws_restJson1AssetHierarchyInfo = (output, context) => {
|
|
6534
6534
|
return {
|
|
6535
|
-
childAssetId: smithy_client_1.expectString(output.childAssetId),
|
|
6536
|
-
parentAssetId: smithy_client_1.expectString(output.parentAssetId),
|
|
6535
|
+
childAssetId: (0, smithy_client_1.expectString)(output.childAssetId),
|
|
6536
|
+
parentAssetId: (0, smithy_client_1.expectString)(output.parentAssetId),
|
|
6537
6537
|
};
|
|
6538
6538
|
};
|
|
6539
6539
|
const deserializeAws_restJson1AssetIDs = (output, context) => {
|
|
@@ -6543,18 +6543,18 @@ const deserializeAws_restJson1AssetIDs = (output, context) => {
|
|
|
6543
6543
|
if (entry === null) {
|
|
6544
6544
|
return null;
|
|
6545
6545
|
}
|
|
6546
|
-
return smithy_client_1.expectString(entry);
|
|
6546
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
6547
6547
|
});
|
|
6548
6548
|
return retVal;
|
|
6549
6549
|
};
|
|
6550
6550
|
const deserializeAws_restJson1AssetModelCompositeModel = (output, context) => {
|
|
6551
6551
|
return {
|
|
6552
|
-
description: smithy_client_1.expectString(output.description),
|
|
6553
|
-
name: smithy_client_1.expectString(output.name),
|
|
6552
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
6553
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6554
6554
|
properties: output.properties !== undefined && output.properties !== null
|
|
6555
6555
|
? deserializeAws_restJson1AssetModelProperties(output.properties, context)
|
|
6556
6556
|
: undefined,
|
|
6557
|
-
type: smithy_client_1.expectString(output.type),
|
|
6557
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
6558
6558
|
};
|
|
6559
6559
|
};
|
|
6560
6560
|
const deserializeAws_restJson1AssetModelCompositeModels = (output, context) => {
|
|
@@ -6581,9 +6581,9 @@ const deserializeAws_restJson1AssetModelHierarchies = (output, context) => {
|
|
|
6581
6581
|
};
|
|
6582
6582
|
const deserializeAws_restJson1AssetModelHierarchy = (output, context) => {
|
|
6583
6583
|
return {
|
|
6584
|
-
childAssetModelId: smithy_client_1.expectString(output.childAssetModelId),
|
|
6585
|
-
id: smithy_client_1.expectString(output.id),
|
|
6586
|
-
name: smithy_client_1.expectString(output.name),
|
|
6584
|
+
childAssetModelId: (0, smithy_client_1.expectString)(output.childAssetModelId),
|
|
6585
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6586
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6587
6587
|
};
|
|
6588
6588
|
};
|
|
6589
6589
|
const deserializeAws_restJson1AssetModelProperties = (output, context) => {
|
|
@@ -6599,14 +6599,14 @@ const deserializeAws_restJson1AssetModelProperties = (output, context) => {
|
|
|
6599
6599
|
};
|
|
6600
6600
|
const deserializeAws_restJson1AssetModelProperty = (output, context) => {
|
|
6601
6601
|
return {
|
|
6602
|
-
dataType: smithy_client_1.expectString(output.dataType),
|
|
6603
|
-
dataTypeSpec: smithy_client_1.expectString(output.dataTypeSpec),
|
|
6604
|
-
id: smithy_client_1.expectString(output.id),
|
|
6605
|
-
name: smithy_client_1.expectString(output.name),
|
|
6602
|
+
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
6603
|
+
dataTypeSpec: (0, smithy_client_1.expectString)(output.dataTypeSpec),
|
|
6604
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6605
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6606
6606
|
type: output.type !== undefined && output.type !== null
|
|
6607
6607
|
? deserializeAws_restJson1PropertyType(output.type, context)
|
|
6608
6608
|
: undefined,
|
|
6609
|
-
unit: smithy_client_1.expectString(output.unit),
|
|
6609
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6610
6610
|
};
|
|
6611
6611
|
};
|
|
6612
6612
|
const deserializeAws_restJson1AssetModelStatus = (output, context) => {
|
|
@@ -6614,7 +6614,7 @@ const deserializeAws_restJson1AssetModelStatus = (output, context) => {
|
|
|
6614
6614
|
error: output.error !== undefined && output.error !== null
|
|
6615
6615
|
? deserializeAws_restJson1ErrorDetails(output.error, context)
|
|
6616
6616
|
: undefined,
|
|
6617
|
-
state: smithy_client_1.expectString(output.state),
|
|
6617
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
6618
6618
|
};
|
|
6619
6619
|
};
|
|
6620
6620
|
const deserializeAws_restJson1AssetModelSummaries = (output, context) => {
|
|
@@ -6630,16 +6630,16 @@ const deserializeAws_restJson1AssetModelSummaries = (output, context) => {
|
|
|
6630
6630
|
};
|
|
6631
6631
|
const deserializeAws_restJson1AssetModelSummary = (output, context) => {
|
|
6632
6632
|
return {
|
|
6633
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
6633
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6634
6634
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
6635
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
6635
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
6636
6636
|
: undefined,
|
|
6637
|
-
description: smithy_client_1.expectString(output.description),
|
|
6638
|
-
id: smithy_client_1.expectString(output.id),
|
|
6637
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
6638
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6639
6639
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
6640
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
6640
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
|
|
6641
6641
|
: undefined,
|
|
6642
|
-
name: smithy_client_1.expectString(output.name),
|
|
6642
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6643
6643
|
status: output.status !== undefined && output.status !== null
|
|
6644
6644
|
? deserializeAws_restJson1AssetModelStatus(output.status, context)
|
|
6645
6645
|
: undefined,
|
|
@@ -6658,20 +6658,20 @@ const deserializeAws_restJson1AssetProperties = (output, context) => {
|
|
|
6658
6658
|
};
|
|
6659
6659
|
const deserializeAws_restJson1AssetProperty = (output, context) => {
|
|
6660
6660
|
return {
|
|
6661
|
-
alias: smithy_client_1.expectString(output.alias),
|
|
6662
|
-
dataType: smithy_client_1.expectString(output.dataType),
|
|
6663
|
-
dataTypeSpec: smithy_client_1.expectString(output.dataTypeSpec),
|
|
6664
|
-
id: smithy_client_1.expectString(output.id),
|
|
6665
|
-
name: smithy_client_1.expectString(output.name),
|
|
6661
|
+
alias: (0, smithy_client_1.expectString)(output.alias),
|
|
6662
|
+
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
6663
|
+
dataTypeSpec: (0, smithy_client_1.expectString)(output.dataTypeSpec),
|
|
6664
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6665
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6666
6666
|
notification: output.notification !== undefined && output.notification !== null
|
|
6667
6667
|
? deserializeAws_restJson1PropertyNotification(output.notification, context)
|
|
6668
6668
|
: undefined,
|
|
6669
|
-
unit: smithy_client_1.expectString(output.unit),
|
|
6669
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6670
6670
|
};
|
|
6671
6671
|
};
|
|
6672
6672
|
const deserializeAws_restJson1AssetPropertyValue = (output, context) => {
|
|
6673
6673
|
return {
|
|
6674
|
-
quality: smithy_client_1.expectString(output.quality),
|
|
6674
|
+
quality: (0, smithy_client_1.expectString)(output.quality),
|
|
6675
6675
|
timestamp: output.timestamp !== undefined && output.timestamp !== null
|
|
6676
6676
|
? deserializeAws_restJson1TimeInNanos(output.timestamp, context)
|
|
6677
6677
|
: undefined,
|
|
@@ -6707,7 +6707,7 @@ const deserializeAws_restJson1AssetRelationshipSummary = (output, context) => {
|
|
|
6707
6707
|
hierarchyInfo: output.hierarchyInfo !== undefined && output.hierarchyInfo !== null
|
|
6708
6708
|
? deserializeAws_restJson1AssetHierarchyInfo(output.hierarchyInfo, context)
|
|
6709
6709
|
: undefined,
|
|
6710
|
-
relationshipType: smithy_client_1.expectString(output.relationshipType),
|
|
6710
|
+
relationshipType: (0, smithy_client_1.expectString)(output.relationshipType),
|
|
6711
6711
|
};
|
|
6712
6712
|
};
|
|
6713
6713
|
const deserializeAws_restJson1AssetStatus = (output, context) => {
|
|
@@ -6715,7 +6715,7 @@ const deserializeAws_restJson1AssetStatus = (output, context) => {
|
|
|
6715
6715
|
error: output.error !== undefined && output.error !== null
|
|
6716
6716
|
? deserializeAws_restJson1ErrorDetails(output.error, context)
|
|
6717
6717
|
: undefined,
|
|
6718
|
-
state: smithy_client_1.expectString(output.state),
|
|
6718
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
6719
6719
|
};
|
|
6720
6720
|
};
|
|
6721
6721
|
const deserializeAws_restJson1AssetSummaries = (output, context) => {
|
|
@@ -6731,19 +6731,19 @@ const deserializeAws_restJson1AssetSummaries = (output, context) => {
|
|
|
6731
6731
|
};
|
|
6732
6732
|
const deserializeAws_restJson1AssetSummary = (output, context) => {
|
|
6733
6733
|
return {
|
|
6734
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
6735
|
-
assetModelId: smithy_client_1.expectString(output.assetModelId),
|
|
6734
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6735
|
+
assetModelId: (0, smithy_client_1.expectString)(output.assetModelId),
|
|
6736
6736
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
6737
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
6737
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
6738
6738
|
: undefined,
|
|
6739
6739
|
hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
|
|
6740
6740
|
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
6741
6741
|
: undefined,
|
|
6742
|
-
id: smithy_client_1.expectString(output.id),
|
|
6742
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6743
6743
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
6744
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
6744
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
|
|
6745
6745
|
: undefined,
|
|
6746
|
-
name: smithy_client_1.expectString(output.name),
|
|
6746
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6747
6747
|
status: output.status !== undefined && output.status !== null
|
|
6748
6748
|
? deserializeAws_restJson1AssetStatus(output.status, context)
|
|
6749
6749
|
: undefined,
|
|
@@ -6762,19 +6762,19 @@ const deserializeAws_restJson1AssociatedAssetsSummaries = (output, context) => {
|
|
|
6762
6762
|
};
|
|
6763
6763
|
const deserializeAws_restJson1AssociatedAssetsSummary = (output, context) => {
|
|
6764
6764
|
return {
|
|
6765
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
6766
|
-
assetModelId: smithy_client_1.expectString(output.assetModelId),
|
|
6765
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6766
|
+
assetModelId: (0, smithy_client_1.expectString)(output.assetModelId),
|
|
6767
6767
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
6768
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
6768
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
6769
6769
|
: undefined,
|
|
6770
6770
|
hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
|
|
6771
6771
|
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
6772
6772
|
: undefined,
|
|
6773
|
-
id: smithy_client_1.expectString(output.id),
|
|
6773
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6774
6774
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
6775
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
6775
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
|
|
6776
6776
|
: undefined,
|
|
6777
|
-
name: smithy_client_1.expectString(output.name),
|
|
6777
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6778
6778
|
status: output.status !== undefined && output.status !== null
|
|
6779
6779
|
? deserializeAws_restJson1AssetStatus(output.status, context)
|
|
6780
6780
|
: undefined,
|
|
@@ -6782,7 +6782,7 @@ const deserializeAws_restJson1AssociatedAssetsSummary = (output, context) => {
|
|
|
6782
6782
|
};
|
|
6783
6783
|
const deserializeAws_restJson1Attribute = (output, context) => {
|
|
6784
6784
|
return {
|
|
6785
|
-
defaultValue: smithy_client_1.expectString(output.defaultValue),
|
|
6785
|
+
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
6786
6786
|
};
|
|
6787
6787
|
};
|
|
6788
6788
|
const deserializeAws_restJson1BatchAssociateProjectAssetsErrors = (output, context) => {
|
|
@@ -6809,8 +6809,8 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsErrors = (output, co
|
|
|
6809
6809
|
};
|
|
6810
6810
|
const deserializeAws_restJson1BatchPutAssetPropertyError = (output, context) => {
|
|
6811
6811
|
return {
|
|
6812
|
-
errorCode: smithy_client_1.expectString(output.errorCode),
|
|
6813
|
-
errorMessage: smithy_client_1.expectString(output.errorMessage),
|
|
6812
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
6813
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
6814
6814
|
timestamps: output.timestamps !== undefined && output.timestamps !== null
|
|
6815
6815
|
? deserializeAws_restJson1Timestamps(output.timestamps, context)
|
|
6816
6816
|
: undefined,
|
|
@@ -6829,7 +6829,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrorEntries = (output, conte
|
|
|
6829
6829
|
};
|
|
6830
6830
|
const deserializeAws_restJson1BatchPutAssetPropertyErrorEntry = (output, context) => {
|
|
6831
6831
|
return {
|
|
6832
|
-
entryId: smithy_client_1.expectString(output.entryId),
|
|
6832
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
6833
6833
|
errors: output.errors !== undefined && output.errors !== null
|
|
6834
6834
|
? deserializeAws_restJson1BatchPutAssetPropertyErrors(output.errors, context)
|
|
6835
6835
|
: undefined,
|
|
@@ -6851,14 +6851,14 @@ const deserializeAws_restJson1CompositeModelProperty = (output, context) => {
|
|
|
6851
6851
|
assetProperty: output.assetProperty !== undefined && output.assetProperty !== null
|
|
6852
6852
|
? deserializeAws_restJson1Property(output.assetProperty, context)
|
|
6853
6853
|
: undefined,
|
|
6854
|
-
name: smithy_client_1.expectString(output.name),
|
|
6855
|
-
type: smithy_client_1.expectString(output.type),
|
|
6854
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6855
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
6856
6856
|
};
|
|
6857
6857
|
};
|
|
6858
6858
|
const deserializeAws_restJson1ConfigurationErrorDetails = (output, context) => {
|
|
6859
6859
|
return {
|
|
6860
|
-
code: smithy_client_1.expectString(output.code),
|
|
6861
|
-
message: smithy_client_1.expectString(output.message),
|
|
6860
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
6861
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
6862
6862
|
};
|
|
6863
6863
|
};
|
|
6864
6864
|
const deserializeAws_restJson1ConfigurationStatus = (output, context) => {
|
|
@@ -6866,13 +6866,13 @@ const deserializeAws_restJson1ConfigurationStatus = (output, context) => {
|
|
|
6866
6866
|
error: output.error !== undefined && output.error !== null
|
|
6867
6867
|
? deserializeAws_restJson1ConfigurationErrorDetails(output.error, context)
|
|
6868
6868
|
: undefined,
|
|
6869
|
-
state: smithy_client_1.expectString(output.state),
|
|
6869
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
6870
6870
|
};
|
|
6871
6871
|
};
|
|
6872
6872
|
const deserializeAws_restJson1CustomerManagedS3Storage = (output, context) => {
|
|
6873
6873
|
return {
|
|
6874
|
-
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
6875
|
-
s3ResourceArn: smithy_client_1.expectString(output.s3ResourceArn),
|
|
6874
|
+
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
6875
|
+
s3ResourceArn: (0, smithy_client_1.expectString)(output.s3ResourceArn),
|
|
6876
6876
|
};
|
|
6877
6877
|
};
|
|
6878
6878
|
const deserializeAws_restJson1DashboardSummaries = (output, context) => {
|
|
@@ -6889,20 +6889,20 @@ const deserializeAws_restJson1DashboardSummaries = (output, context) => {
|
|
|
6889
6889
|
const deserializeAws_restJson1DashboardSummary = (output, context) => {
|
|
6890
6890
|
return {
|
|
6891
6891
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
6892
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
6892
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
6893
6893
|
: undefined,
|
|
6894
|
-
description: smithy_client_1.expectString(output.description),
|
|
6895
|
-
id: smithy_client_1.expectString(output.id),
|
|
6894
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
6895
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6896
6896
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
6897
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
6897
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
|
|
6898
6898
|
: undefined,
|
|
6899
|
-
name: smithy_client_1.expectString(output.name),
|
|
6899
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6900
6900
|
};
|
|
6901
6901
|
};
|
|
6902
6902
|
const deserializeAws_restJson1DetailedError = (output, context) => {
|
|
6903
6903
|
return {
|
|
6904
|
-
code: smithy_client_1.expectString(output.code),
|
|
6905
|
-
message: smithy_client_1.expectString(output.message),
|
|
6904
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
6905
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
6906
6906
|
};
|
|
6907
6907
|
};
|
|
6908
6908
|
const deserializeAws_restJson1DetailedErrors = (output, context) => {
|
|
@@ -6918,16 +6918,16 @@ const deserializeAws_restJson1DetailedErrors = (output, context) => {
|
|
|
6918
6918
|
};
|
|
6919
6919
|
const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
6920
6920
|
return {
|
|
6921
|
-
code: smithy_client_1.expectString(output.code),
|
|
6921
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
6922
6922
|
details: output.details !== undefined && output.details !== null
|
|
6923
6923
|
? deserializeAws_restJson1DetailedErrors(output.details, context)
|
|
6924
6924
|
: undefined,
|
|
6925
|
-
message: smithy_client_1.expectString(output.message),
|
|
6925
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
6926
6926
|
};
|
|
6927
6927
|
};
|
|
6928
6928
|
const deserializeAws_restJson1ExpressionVariable = (output, context) => {
|
|
6929
6929
|
return {
|
|
6930
|
-
name: smithy_client_1.expectString(output.name),
|
|
6930
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6931
6931
|
value: output.value !== undefined && output.value !== null
|
|
6932
6932
|
? deserializeAws_restJson1VariableValue(output.value, context)
|
|
6933
6933
|
: undefined,
|
|
@@ -6946,7 +6946,7 @@ const deserializeAws_restJson1ExpressionVariables = (output, context) => {
|
|
|
6946
6946
|
};
|
|
6947
6947
|
const deserializeAws_restJson1ForwardingConfig = (output, context) => {
|
|
6948
6948
|
return {
|
|
6949
|
-
state: smithy_client_1.expectString(output.state),
|
|
6949
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
6950
6950
|
};
|
|
6951
6951
|
};
|
|
6952
6952
|
const deserializeAws_restJson1GatewayCapabilitySummaries = (output, context) => {
|
|
@@ -6962,8 +6962,8 @@ const deserializeAws_restJson1GatewayCapabilitySummaries = (output, context) =>
|
|
|
6962
6962
|
};
|
|
6963
6963
|
const deserializeAws_restJson1GatewayCapabilitySummary = (output, context) => {
|
|
6964
6964
|
return {
|
|
6965
|
-
capabilityNamespace: smithy_client_1.expectString(output.capabilityNamespace),
|
|
6966
|
-
capabilitySyncStatus: smithy_client_1.expectString(output.capabilitySyncStatus),
|
|
6965
|
+
capabilityNamespace: (0, smithy_client_1.expectString)(output.capabilityNamespace),
|
|
6966
|
+
capabilitySyncStatus: (0, smithy_client_1.expectString)(output.capabilitySyncStatus),
|
|
6967
6967
|
};
|
|
6968
6968
|
};
|
|
6969
6969
|
const deserializeAws_restJson1GatewayPlatform = (output, context) => {
|
|
@@ -6990,44 +6990,44 @@ const deserializeAws_restJson1GatewaySummaries = (output, context) => {
|
|
|
6990
6990
|
const deserializeAws_restJson1GatewaySummary = (output, context) => {
|
|
6991
6991
|
return {
|
|
6992
6992
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
6993
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
6993
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
6994
6994
|
: undefined,
|
|
6995
6995
|
gatewayCapabilitySummaries: output.gatewayCapabilitySummaries !== undefined && output.gatewayCapabilitySummaries !== null
|
|
6996
6996
|
? deserializeAws_restJson1GatewayCapabilitySummaries(output.gatewayCapabilitySummaries, context)
|
|
6997
6997
|
: undefined,
|
|
6998
|
-
gatewayId: smithy_client_1.expectString(output.gatewayId),
|
|
6999
|
-
gatewayName: smithy_client_1.expectString(output.gatewayName),
|
|
6998
|
+
gatewayId: (0, smithy_client_1.expectString)(output.gatewayId),
|
|
6999
|
+
gatewayName: (0, smithy_client_1.expectString)(output.gatewayName),
|
|
7000
7000
|
gatewayPlatform: output.gatewayPlatform !== undefined && output.gatewayPlatform !== null
|
|
7001
7001
|
? deserializeAws_restJson1GatewayPlatform(output.gatewayPlatform, context)
|
|
7002
7002
|
: undefined,
|
|
7003
7003
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
7004
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
7004
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
|
|
7005
7005
|
: undefined,
|
|
7006
7006
|
};
|
|
7007
7007
|
};
|
|
7008
7008
|
const deserializeAws_restJson1Greengrass = (output, context) => {
|
|
7009
7009
|
return {
|
|
7010
|
-
groupArn: smithy_client_1.expectString(output.groupArn),
|
|
7010
|
+
groupArn: (0, smithy_client_1.expectString)(output.groupArn),
|
|
7011
7011
|
};
|
|
7012
7012
|
};
|
|
7013
7013
|
const deserializeAws_restJson1GreengrassV2 = (output, context) => {
|
|
7014
7014
|
return {
|
|
7015
|
-
coreDeviceThingName: smithy_client_1.expectString(output.coreDeviceThingName),
|
|
7015
|
+
coreDeviceThingName: (0, smithy_client_1.expectString)(output.coreDeviceThingName),
|
|
7016
7016
|
};
|
|
7017
7017
|
};
|
|
7018
7018
|
const deserializeAws_restJson1GroupIdentity = (output, context) => {
|
|
7019
7019
|
return {
|
|
7020
|
-
id: smithy_client_1.expectString(output.id),
|
|
7020
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7021
7021
|
};
|
|
7022
7022
|
};
|
|
7023
7023
|
const deserializeAws_restJson1IAMRoleIdentity = (output, context) => {
|
|
7024
7024
|
return {
|
|
7025
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
7025
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
7026
7026
|
};
|
|
7027
7027
|
};
|
|
7028
7028
|
const deserializeAws_restJson1IAMUserIdentity = (output, context) => {
|
|
7029
7029
|
return {
|
|
7030
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
7030
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
7031
7031
|
};
|
|
7032
7032
|
};
|
|
7033
7033
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
@@ -7048,8 +7048,8 @@ const deserializeAws_restJson1Identity = (output, context) => {
|
|
|
7048
7048
|
};
|
|
7049
7049
|
const deserializeAws_restJson1ImageLocation = (output, context) => {
|
|
7050
7050
|
return {
|
|
7051
|
-
id: smithy_client_1.expectString(output.id),
|
|
7052
|
-
url: smithy_client_1.expectString(output.url),
|
|
7051
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7052
|
+
url: (0, smithy_client_1.expectString)(output.url),
|
|
7053
7053
|
};
|
|
7054
7054
|
};
|
|
7055
7055
|
const deserializeAws_restJson1InterpolatedAssetPropertyValue = (output, context) => {
|
|
@@ -7075,7 +7075,7 @@ const deserializeAws_restJson1InterpolatedAssetPropertyValues = (output, context
|
|
|
7075
7075
|
};
|
|
7076
7076
|
const deserializeAws_restJson1LoggingOptions = (output, context) => {
|
|
7077
7077
|
return {
|
|
7078
|
-
level: smithy_client_1.expectString(output.level),
|
|
7078
|
+
level: (0, smithy_client_1.expectString)(output.level),
|
|
7079
7079
|
};
|
|
7080
7080
|
};
|
|
7081
7081
|
const deserializeAws_restJson1Measurement = (output, context) => {
|
|
@@ -7094,7 +7094,7 @@ const deserializeAws_restJson1MeasurementProcessingConfig = (output, context) =>
|
|
|
7094
7094
|
};
|
|
7095
7095
|
const deserializeAws_restJson1Metric = (output, context) => {
|
|
7096
7096
|
return {
|
|
7097
|
-
expression: smithy_client_1.expectString(output.expression),
|
|
7097
|
+
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
7098
7098
|
processingConfig: output.processingConfig !== undefined && output.processingConfig !== null
|
|
7099
7099
|
? deserializeAws_restJson1MetricProcessingConfig(output.processingConfig, context)
|
|
7100
7100
|
: undefined,
|
|
@@ -7108,7 +7108,7 @@ const deserializeAws_restJson1Metric = (output, context) => {
|
|
|
7108
7108
|
};
|
|
7109
7109
|
const deserializeAws_restJson1MetricProcessingConfig = (output, context) => {
|
|
7110
7110
|
return {
|
|
7111
|
-
computeLocation: smithy_client_1.expectString(output.computeLocation),
|
|
7111
|
+
computeLocation: (0, smithy_client_1.expectString)(output.computeLocation),
|
|
7112
7112
|
};
|
|
7113
7113
|
};
|
|
7114
7114
|
const deserializeAws_restJson1MetricWindow = (output, context) => {
|
|
@@ -7120,8 +7120,8 @@ const deserializeAws_restJson1MetricWindow = (output, context) => {
|
|
|
7120
7120
|
};
|
|
7121
7121
|
const deserializeAws_restJson1MonitorErrorDetails = (output, context) => {
|
|
7122
7122
|
return {
|
|
7123
|
-
code: smithy_client_1.expectString(output.code),
|
|
7124
|
-
message: smithy_client_1.expectString(output.message),
|
|
7123
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
7124
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
7125
7125
|
};
|
|
7126
7126
|
};
|
|
7127
7127
|
const deserializeAws_restJson1MultiLayerStorage = (output, context) => {
|
|
@@ -7133,7 +7133,7 @@ const deserializeAws_restJson1MultiLayerStorage = (output, context) => {
|
|
|
7133
7133
|
};
|
|
7134
7134
|
const deserializeAws_restJson1PortalResource = (output, context) => {
|
|
7135
7135
|
return {
|
|
7136
|
-
id: smithy_client_1.expectString(output.id),
|
|
7136
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7137
7137
|
};
|
|
7138
7138
|
};
|
|
7139
7139
|
const deserializeAws_restJson1PortalStatus = (output, context) => {
|
|
@@ -7141,7 +7141,7 @@ const deserializeAws_restJson1PortalStatus = (output, context) => {
|
|
|
7141
7141
|
error: output.error !== undefined && output.error !== null
|
|
7142
7142
|
? deserializeAws_restJson1MonitorErrorDetails(output.error, context)
|
|
7143
7143
|
: undefined,
|
|
7144
|
-
state: smithy_client_1.expectString(output.state),
|
|
7144
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
7145
7145
|
};
|
|
7146
7146
|
};
|
|
7147
7147
|
const deserializeAws_restJson1PortalSummaries = (output, context) => {
|
|
@@ -7158,16 +7158,16 @@ const deserializeAws_restJson1PortalSummaries = (output, context) => {
|
|
|
7158
7158
|
const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
7159
7159
|
return {
|
|
7160
7160
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
7161
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
7161
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
7162
7162
|
: undefined,
|
|
7163
|
-
description: smithy_client_1.expectString(output.description),
|
|
7164
|
-
id: smithy_client_1.expectString(output.id),
|
|
7163
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
7164
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7165
7165
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
7166
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
7166
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
|
|
7167
7167
|
: undefined,
|
|
7168
|
-
name: smithy_client_1.expectString(output.name),
|
|
7169
|
-
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
7170
|
-
startUrl: smithy_client_1.expectString(output.startUrl),
|
|
7168
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7169
|
+
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
7170
|
+
startUrl: (0, smithy_client_1.expectString)(output.startUrl),
|
|
7171
7171
|
status: output.status !== undefined && output.status !== null
|
|
7172
7172
|
? deserializeAws_restJson1PortalStatus(output.status, context)
|
|
7173
7173
|
: undefined,
|
|
@@ -7175,7 +7175,7 @@ const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
|
7175
7175
|
};
|
|
7176
7176
|
const deserializeAws_restJson1ProjectResource = (output, context) => {
|
|
7177
7177
|
return {
|
|
7178
|
-
id: smithy_client_1.expectString(output.id),
|
|
7178
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7179
7179
|
};
|
|
7180
7180
|
};
|
|
7181
7181
|
const deserializeAws_restJson1ProjectSummaries = (output, context) => {
|
|
@@ -7192,35 +7192,35 @@ const deserializeAws_restJson1ProjectSummaries = (output, context) => {
|
|
|
7192
7192
|
const deserializeAws_restJson1ProjectSummary = (output, context) => {
|
|
7193
7193
|
return {
|
|
7194
7194
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
7195
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
7195
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
7196
7196
|
: undefined,
|
|
7197
|
-
description: smithy_client_1.expectString(output.description),
|
|
7198
|
-
id: smithy_client_1.expectString(output.id),
|
|
7197
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
7198
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7199
7199
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
7200
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
7200
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
|
|
7201
7201
|
: undefined,
|
|
7202
|
-
name: smithy_client_1.expectString(output.name),
|
|
7202
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7203
7203
|
};
|
|
7204
7204
|
};
|
|
7205
7205
|
const deserializeAws_restJson1Property = (output, context) => {
|
|
7206
7206
|
return {
|
|
7207
|
-
alias: smithy_client_1.expectString(output.alias),
|
|
7208
|
-
dataType: smithy_client_1.expectString(output.dataType),
|
|
7209
|
-
id: smithy_client_1.expectString(output.id),
|
|
7210
|
-
name: smithy_client_1.expectString(output.name),
|
|
7207
|
+
alias: (0, smithy_client_1.expectString)(output.alias),
|
|
7208
|
+
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
7209
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7210
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7211
7211
|
notification: output.notification !== undefined && output.notification !== null
|
|
7212
7212
|
? deserializeAws_restJson1PropertyNotification(output.notification, context)
|
|
7213
7213
|
: undefined,
|
|
7214
7214
|
type: output.type !== undefined && output.type !== null
|
|
7215
7215
|
? deserializeAws_restJson1PropertyType(output.type, context)
|
|
7216
7216
|
: undefined,
|
|
7217
|
-
unit: smithy_client_1.expectString(output.unit),
|
|
7217
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
7218
7218
|
};
|
|
7219
7219
|
};
|
|
7220
7220
|
const deserializeAws_restJson1PropertyNotification = (output, context) => {
|
|
7221
7221
|
return {
|
|
7222
|
-
state: smithy_client_1.expectString(output.state),
|
|
7223
|
-
topic: smithy_client_1.expectString(output.topic),
|
|
7222
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
7223
|
+
topic: (0, smithy_client_1.expectString)(output.topic),
|
|
7224
7224
|
};
|
|
7225
7225
|
};
|
|
7226
7226
|
const deserializeAws_restJson1PropertyType = (output, context) => {
|
|
@@ -7251,8 +7251,8 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
7251
7251
|
};
|
|
7252
7252
|
const deserializeAws_restJson1RetentionPeriod = (output, context) => {
|
|
7253
7253
|
return {
|
|
7254
|
-
numberOfDays: smithy_client_1.expectInt32(output.numberOfDays),
|
|
7255
|
-
unlimited: smithy_client_1.expectBoolean(output.unlimited),
|
|
7254
|
+
numberOfDays: (0, smithy_client_1.expectInt32)(output.numberOfDays),
|
|
7255
|
+
unlimited: (0, smithy_client_1.expectBoolean)(output.unlimited),
|
|
7256
7256
|
};
|
|
7257
7257
|
};
|
|
7258
7258
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -7262,14 +7262,14 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
7262
7262
|
}
|
|
7263
7263
|
return {
|
|
7264
7264
|
...acc,
|
|
7265
|
-
[key]: smithy_client_1.expectString(value),
|
|
7265
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
7266
7266
|
};
|
|
7267
7267
|
}, {});
|
|
7268
7268
|
};
|
|
7269
7269
|
const deserializeAws_restJson1TimeInNanos = (output, context) => {
|
|
7270
7270
|
return {
|
|
7271
|
-
offsetInNanos: smithy_client_1.expectInt32(output.offsetInNanos),
|
|
7272
|
-
timeInSeconds: smithy_client_1.expectLong(output.timeInSeconds),
|
|
7271
|
+
offsetInNanos: (0, smithy_client_1.expectInt32)(output.offsetInNanos),
|
|
7272
|
+
timeInSeconds: (0, smithy_client_1.expectLong)(output.timeInSeconds),
|
|
7273
7273
|
};
|
|
7274
7274
|
};
|
|
7275
7275
|
const deserializeAws_restJson1TimeSeriesSummaries = (output, context) => {
|
|
@@ -7285,17 +7285,17 @@ const deserializeAws_restJson1TimeSeriesSummaries = (output, context) => {
|
|
|
7285
7285
|
};
|
|
7286
7286
|
const deserializeAws_restJson1TimeSeriesSummary = (output, context) => {
|
|
7287
7287
|
return {
|
|
7288
|
-
alias: smithy_client_1.expectString(output.alias),
|
|
7289
|
-
assetId: smithy_client_1.expectString(output.assetId),
|
|
7290
|
-
dataType: smithy_client_1.expectString(output.dataType),
|
|
7291
|
-
dataTypeSpec: smithy_client_1.expectString(output.dataTypeSpec),
|
|
7292
|
-
propertyId: smithy_client_1.expectString(output.propertyId),
|
|
7288
|
+
alias: (0, smithy_client_1.expectString)(output.alias),
|
|
7289
|
+
assetId: (0, smithy_client_1.expectString)(output.assetId),
|
|
7290
|
+
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
7291
|
+
dataTypeSpec: (0, smithy_client_1.expectString)(output.dataTypeSpec),
|
|
7292
|
+
propertyId: (0, smithy_client_1.expectString)(output.propertyId),
|
|
7293
7293
|
timeSeriesCreationDate: output.timeSeriesCreationDate !== undefined && output.timeSeriesCreationDate !== null
|
|
7294
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.timeSeriesCreationDate)))
|
|
7294
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timeSeriesCreationDate)))
|
|
7295
7295
|
: undefined,
|
|
7296
|
-
timeSeriesId: smithy_client_1.expectString(output.timeSeriesId),
|
|
7296
|
+
timeSeriesId: (0, smithy_client_1.expectString)(output.timeSeriesId),
|
|
7297
7297
|
timeSeriesLastUpdateDate: output.timeSeriesLastUpdateDate !== undefined && output.timeSeriesLastUpdateDate !== null
|
|
7298
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.timeSeriesLastUpdateDate)))
|
|
7298
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timeSeriesLastUpdateDate)))
|
|
7299
7299
|
: undefined,
|
|
7300
7300
|
};
|
|
7301
7301
|
};
|
|
@@ -7312,7 +7312,7 @@ const deserializeAws_restJson1Timestamps = (output, context) => {
|
|
|
7312
7312
|
};
|
|
7313
7313
|
const deserializeAws_restJson1Transform = (output, context) => {
|
|
7314
7314
|
return {
|
|
7315
|
-
expression: smithy_client_1.expectString(output.expression),
|
|
7315
|
+
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
7316
7316
|
processingConfig: output.processingConfig !== undefined && output.processingConfig !== null
|
|
7317
7317
|
? deserializeAws_restJson1TransformProcessingConfig(output.processingConfig, context)
|
|
7318
7318
|
: undefined,
|
|
@@ -7323,7 +7323,7 @@ const deserializeAws_restJson1Transform = (output, context) => {
|
|
|
7323
7323
|
};
|
|
7324
7324
|
const deserializeAws_restJson1TransformProcessingConfig = (output, context) => {
|
|
7325
7325
|
return {
|
|
7326
|
-
computeLocation: smithy_client_1.expectString(output.computeLocation),
|
|
7326
|
+
computeLocation: (0, smithy_client_1.expectString)(output.computeLocation),
|
|
7327
7327
|
forwardingConfig: output.forwardingConfig !== undefined && output.forwardingConfig !== null
|
|
7328
7328
|
? deserializeAws_restJson1ForwardingConfig(output.forwardingConfig, context)
|
|
7329
7329
|
: undefined,
|
|
@@ -7331,27 +7331,27 @@ const deserializeAws_restJson1TransformProcessingConfig = (output, context) => {
|
|
|
7331
7331
|
};
|
|
7332
7332
|
const deserializeAws_restJson1TumblingWindow = (output, context) => {
|
|
7333
7333
|
return {
|
|
7334
|
-
interval: smithy_client_1.expectString(output.interval),
|
|
7335
|
-
offset: smithy_client_1.expectString(output.offset),
|
|
7334
|
+
interval: (0, smithy_client_1.expectString)(output.interval),
|
|
7335
|
+
offset: (0, smithy_client_1.expectString)(output.offset),
|
|
7336
7336
|
};
|
|
7337
7337
|
};
|
|
7338
7338
|
const deserializeAws_restJson1UserIdentity = (output, context) => {
|
|
7339
7339
|
return {
|
|
7340
|
-
id: smithy_client_1.expectString(output.id),
|
|
7340
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7341
7341
|
};
|
|
7342
7342
|
};
|
|
7343
7343
|
const deserializeAws_restJson1VariableValue = (output, context) => {
|
|
7344
7344
|
return {
|
|
7345
|
-
hierarchyId: smithy_client_1.expectString(output.hierarchyId),
|
|
7346
|
-
propertyId: smithy_client_1.expectString(output.propertyId),
|
|
7345
|
+
hierarchyId: (0, smithy_client_1.expectString)(output.hierarchyId),
|
|
7346
|
+
propertyId: (0, smithy_client_1.expectString)(output.propertyId),
|
|
7347
7347
|
};
|
|
7348
7348
|
};
|
|
7349
7349
|
const deserializeAws_restJson1Variant = (output, context) => {
|
|
7350
7350
|
return {
|
|
7351
|
-
booleanValue: smithy_client_1.expectBoolean(output.booleanValue),
|
|
7352
|
-
doubleValue: smithy_client_1.limitedParseDouble(output.doubleValue),
|
|
7353
|
-
integerValue: smithy_client_1.expectInt32(output.integerValue),
|
|
7354
|
-
stringValue: smithy_client_1.expectString(output.stringValue),
|
|
7351
|
+
booleanValue: (0, smithy_client_1.expectBoolean)(output.booleanValue),
|
|
7352
|
+
doubleValue: (0, smithy_client_1.limitedParseDouble)(output.doubleValue),
|
|
7353
|
+
integerValue: (0, smithy_client_1.expectInt32)(output.integerValue),
|
|
7354
|
+
stringValue: (0, smithy_client_1.expectString)(output.stringValue),
|
|
7355
7355
|
};
|
|
7356
7356
|
};
|
|
7357
7357
|
const deserializeMetadata = (output) => {
|