@aws-sdk/client-iotsitewise 3.200.0 → 3.202.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 +22 -0
- package/dist-cjs/IoTSiteWise.js +30 -0
- package/dist-cjs/commands/ListAssetModelPropertiesCommand.js +46 -0
- package/dist-cjs/commands/ListAssetPropertiesCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/models/models_0.js +40 -6
- package/dist-cjs/pagination/ListAssetModelPropertiesPaginator.js +36 -0
- package/dist-cjs/pagination/ListAssetPropertiesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +309 -125
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/dist-es/IoTSiteWise.js +30 -0
- package/dist-es/commands/ListAssetModelPropertiesCommand.js +42 -0
- package/dist-es/commands/ListAssetPropertiesCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/pagination/ListAssetModelPropertiesPaginator.js +32 -0
- package/dist-es/pagination/ListAssetPropertiesPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +204 -0
- package/dist-types/IoTSiteWise.d.ts +35 -21
- package/dist-types/IoTSiteWiseClient.d.ts +4 -2
- package/dist-types/commands/BatchGetAssetPropertyAggregatesCommand.d.ts +3 -3
- package/dist-types/commands/BatchGetAssetPropertyValueCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetAssetPropertyValueHistoryCommand.d.ts +2 -2
- package/dist-types/commands/CreateAccessPolicyCommand.d.ts +1 -1
- package/dist-types/commands/CreateBulkImportJobCommand.d.ts +4 -6
- package/dist-types/commands/CreatePortalCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +2 -3
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListAssetModelPropertiesCommand.d.ts +39 -0
- package/dist-types/commands/ListAssetPropertiesCommand.d.ts +39 -0
- package/dist-types/commands/ListBulkImportJobsCommand.d.ts +2 -3
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +285 -72
- package/dist-types/pagination/ListAssetModelPropertiesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListAssetPropertiesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +34 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ListAssetModelPropertiesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListAssetPropertiesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -0
- package/dist-types/ts3.4/pagination/ListAssetModelPropertiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssetPropertiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +34 -34
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdatePortalCommand = exports.deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1UpdateGatewayCommand = exports.deserializeAws_restJson1UpdateDashboardCommand = exports.deserializeAws_restJson1UpdateAssetPropertyCommand = exports.deserializeAws_restJson1UpdateAssetModelCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UpdateAccessPolicyCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutStorageConfigurationCommand = exports.deserializeAws_restJson1PutLoggingOptionsCommand = exports.deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1ListTimeSeriesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListProjectAssetsCommand = exports.deserializeAws_restJson1ListPortalsCommand = exports.deserializeAws_restJson1ListGatewaysCommand = exports.deserializeAws_restJson1ListDashboardsCommand = exports.deserializeAws_restJson1ListBulkImportJobsCommand = exports.deserializeAws_restJson1ListAssociatedAssetsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1ListAssetRelationshipsCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAccessPoliciesCommand = exports.deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetAssetPropertyValueCommand = exports.deserializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.deserializeAws_restJson1DisassociateAssetsCommand = exports.deserializeAws_restJson1DescribeTimeSeriesCommand = exports.deserializeAws_restJson1DescribeStorageConfigurationCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribePortalCommand = exports.deserializeAws_restJson1DescribeLoggingOptionsCommand = exports.deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1DescribeGatewayCommand = exports.deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1DescribeDashboardCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1ListAssetsCommand = exports.serializeAws_restJson1ListAssetRelationshipsCommand = exports.serializeAws_restJson1ListAssetPropertiesCommand = exports.serializeAws_restJson1ListAssetModelsCommand = exports.serializeAws_restJson1ListAssetModelPropertiesCommand = exports.serializeAws_restJson1ListAccessPoliciesCommand = exports.serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.serializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1GetAssetPropertyValueCommand = exports.serializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.serializeAws_restJson1DisassociateAssetsCommand = exports.serializeAws_restJson1DescribeTimeSeriesCommand = exports.serializeAws_restJson1DescribeStorageConfigurationCommand = exports.serializeAws_restJson1DescribeProjectCommand = exports.serializeAws_restJson1DescribePortalCommand = exports.serializeAws_restJson1DescribeLoggingOptionsCommand = exports.serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1DescribeGatewayCommand = exports.serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1DescribeDashboardCommand = exports.serializeAws_restJson1DescribeBulkImportJobCommand = exports.serializeAws_restJson1DescribeAssetPropertyCommand = exports.serializeAws_restJson1DescribeAssetModelCommand = exports.serializeAws_restJson1DescribeAssetCommand = exports.serializeAws_restJson1DescribeAccessPolicyCommand = exports.serializeAws_restJson1DeleteTimeSeriesCommand = exports.serializeAws_restJson1DeleteProjectCommand = exports.serializeAws_restJson1DeletePortalCommand = exports.serializeAws_restJson1DeleteGatewayCommand = exports.serializeAws_restJson1DeleteDashboardCommand = exports.serializeAws_restJson1DeleteAssetModelCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1DeleteAccessPolicyCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreatePortalCommand = exports.serializeAws_restJson1CreateGatewayCommand = exports.serializeAws_restJson1CreateDashboardCommand = exports.serializeAws_restJson1CreateBulkImportJobCommand = exports.serializeAws_restJson1CreateAssetModelCommand = exports.serializeAws_restJson1CreateAssetCommand = exports.serializeAws_restJson1CreateAccessPolicyCommand = exports.serializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.serializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.serializeAws_restJson1AssociateAssetsCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1DescribeAssetModelCommand = exports.deserializeAws_restJson1DescribeAssetCommand = exports.deserializeAws_restJson1DescribeAccessPolicyCommand = exports.deserializeAws_restJson1DeleteTimeSeriesCommand = exports.deserializeAws_restJson1DeleteProjectCommand = exports.deserializeAws_restJson1DeletePortalCommand = exports.deserializeAws_restJson1DeleteGatewayCommand = exports.deserializeAws_restJson1DeleteDashboardCommand = exports.deserializeAws_restJson1DeleteAssetModelCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1DeleteAccessPolicyCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreatePortalCommand = exports.deserializeAws_restJson1CreateGatewayCommand = exports.deserializeAws_restJson1CreateDashboardCommand = exports.deserializeAws_restJson1CreateBulkImportJobCommand = exports.deserializeAws_restJson1CreateAssetModelCommand = exports.deserializeAws_restJson1CreateAssetCommand = exports.deserializeAws_restJson1CreateAccessPolicyCommand = exports.deserializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.deserializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.deserializeAws_restJson1AssociateAssetsCommand = exports.serializeAws_restJson1UpdateProjectCommand = exports.serializeAws_restJson1UpdatePortalCommand = exports.serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1UpdateGatewayCommand = exports.serializeAws_restJson1UpdateDashboardCommand = exports.serializeAws_restJson1UpdateAssetPropertyCommand = exports.serializeAws_restJson1UpdateAssetModelCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UpdateAccessPolicyCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutStorageConfigurationCommand = exports.serializeAws_restJson1PutLoggingOptionsCommand = exports.serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1ListTimeSeriesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListProjectAssetsCommand = exports.serializeAws_restJson1ListPortalsCommand = exports.serializeAws_restJson1ListGatewaysCommand = exports.serializeAws_restJson1ListDashboardsCommand = exports.serializeAws_restJson1ListBulkImportJobsCommand = exports.serializeAws_restJson1ListAssociatedAssetsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdatePortalCommand = exports.deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1UpdateGatewayCommand = exports.deserializeAws_restJson1UpdateDashboardCommand = exports.deserializeAws_restJson1UpdateAssetPropertyCommand = exports.deserializeAws_restJson1UpdateAssetModelCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UpdateAccessPolicyCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutStorageConfigurationCommand = exports.deserializeAws_restJson1PutLoggingOptionsCommand = exports.deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1ListTimeSeriesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListProjectAssetsCommand = exports.deserializeAws_restJson1ListPortalsCommand = exports.deserializeAws_restJson1ListGatewaysCommand = exports.deserializeAws_restJson1ListDashboardsCommand = exports.deserializeAws_restJson1ListBulkImportJobsCommand = exports.deserializeAws_restJson1ListAssociatedAssetsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1ListAssetRelationshipsCommand = exports.deserializeAws_restJson1ListAssetPropertiesCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAssetModelPropertiesCommand = exports.deserializeAws_restJson1ListAccessPoliciesCommand = exports.deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetAssetPropertyValueCommand = exports.deserializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.deserializeAws_restJson1DisassociateAssetsCommand = exports.deserializeAws_restJson1DescribeTimeSeriesCommand = exports.deserializeAws_restJson1DescribeStorageConfigurationCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribePortalCommand = exports.deserializeAws_restJson1DescribeLoggingOptionsCommand = exports.deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1DescribeGatewayCommand = exports.deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1DescribeDashboardCommand = exports.deserializeAws_restJson1DescribeBulkImportJobCommand = exports.deserializeAws_restJson1DescribeAssetPropertyCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const IoTSiteWiseServiceException_1 = require("../models/IoTSiteWiseServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
|
|
12
|
-
var _a;
|
|
13
12
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
14
13
|
const headers = {
|
|
15
14
|
"content-type": "application/json",
|
|
16
15
|
};
|
|
17
|
-
let resolvedPath = `${
|
|
16
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/associate";
|
|
18
17
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
19
18
|
let body;
|
|
20
19
|
body = JSON.stringify({
|
|
21
20
|
...(input.childAssetId != null && { childAssetId: input.childAssetId }),
|
|
22
|
-
clientToken:
|
|
21
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
23
22
|
...(input.hierarchyId != null && { hierarchyId: input.hierarchyId }),
|
|
24
23
|
});
|
|
25
24
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -41,12 +40,11 @@ const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
|
|
|
41
40
|
};
|
|
42
41
|
exports.serializeAws_restJson1AssociateAssetsCommand = serializeAws_restJson1AssociateAssetsCommand;
|
|
43
42
|
const serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = async (input, context) => {
|
|
44
|
-
var _a;
|
|
45
43
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
46
44
|
const headers = {
|
|
47
45
|
"content-type": "application/json",
|
|
48
46
|
};
|
|
49
|
-
const resolvedPath = `${
|
|
47
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/associate";
|
|
50
48
|
const query = map({
|
|
51
49
|
alias: [, input.alias],
|
|
52
50
|
assetId: [, input.assetId],
|
|
@@ -54,7 +52,7 @@ const serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = async (i
|
|
|
54
52
|
});
|
|
55
53
|
let body;
|
|
56
54
|
body = JSON.stringify({
|
|
57
|
-
clientToken:
|
|
55
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
58
56
|
});
|
|
59
57
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
60
58
|
if (context.disableHostPrefix !== true) {
|
|
@@ -76,17 +74,16 @@ const serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = async (i
|
|
|
76
74
|
};
|
|
77
75
|
exports.serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand;
|
|
78
76
|
const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, context) => {
|
|
79
|
-
var _a;
|
|
80
77
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
81
78
|
const headers = {
|
|
82
79
|
"content-type": "application/json",
|
|
83
80
|
};
|
|
84
|
-
let resolvedPath = `${
|
|
81
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/associate";
|
|
85
82
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
|
|
86
83
|
let body;
|
|
87
84
|
body = JSON.stringify({
|
|
88
85
|
...(input.assetIds != null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
|
|
89
|
-
clientToken:
|
|
86
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
90
87
|
});
|
|
91
88
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
92
89
|
if (context.disableHostPrefix !== true) {
|
|
@@ -107,17 +104,16 @@ const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, c
|
|
|
107
104
|
};
|
|
108
105
|
exports.serializeAws_restJson1BatchAssociateProjectAssetsCommand = serializeAws_restJson1BatchAssociateProjectAssetsCommand;
|
|
109
106
|
const serializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (input, context) => {
|
|
110
|
-
var _a;
|
|
111
107
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
108
|
const headers = {
|
|
113
109
|
"content-type": "application/json",
|
|
114
110
|
};
|
|
115
|
-
let resolvedPath = `${
|
|
111
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/disassociate";
|
|
116
112
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
|
|
117
113
|
let body;
|
|
118
114
|
body = JSON.stringify({
|
|
119
115
|
...(input.assetIds != null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
|
|
120
|
-
clientToken:
|
|
116
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
121
117
|
});
|
|
122
118
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
123
119
|
if (context.disableHostPrefix !== true) {
|
|
@@ -142,7 +138,7 @@ const serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = async (inpu
|
|
|
142
138
|
const headers = {
|
|
143
139
|
"content-type": "application/json",
|
|
144
140
|
};
|
|
145
|
-
const resolvedPath = `${
|
|
141
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/aggregates";
|
|
146
142
|
let body;
|
|
147
143
|
body = JSON.stringify({
|
|
148
144
|
...(input.entries != null && {
|
|
@@ -174,7 +170,7 @@ const serializeAws_restJson1BatchGetAssetPropertyValueCommand = async (input, co
|
|
|
174
170
|
const headers = {
|
|
175
171
|
"content-type": "application/json",
|
|
176
172
|
};
|
|
177
|
-
const resolvedPath = `${
|
|
173
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/latest";
|
|
178
174
|
let body;
|
|
179
175
|
body = JSON.stringify({
|
|
180
176
|
...(input.entries != null && {
|
|
@@ -205,7 +201,7 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = async (in
|
|
|
205
201
|
const headers = {
|
|
206
202
|
"content-type": "application/json",
|
|
207
203
|
};
|
|
208
|
-
const resolvedPath = `${
|
|
204
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/history";
|
|
209
205
|
let body;
|
|
210
206
|
body = JSON.stringify({
|
|
211
207
|
...(input.entries != null && {
|
|
@@ -237,7 +233,7 @@ const serializeAws_restJson1BatchPutAssetPropertyValueCommand = async (input, co
|
|
|
237
233
|
const headers = {
|
|
238
234
|
"content-type": "application/json",
|
|
239
235
|
};
|
|
240
|
-
const resolvedPath = `${
|
|
236
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties";
|
|
241
237
|
let body;
|
|
242
238
|
body = JSON.stringify({
|
|
243
239
|
...(input.entries != null && {
|
|
@@ -263,12 +259,11 @@ const serializeAws_restJson1BatchPutAssetPropertyValueCommand = async (input, co
|
|
|
263
259
|
};
|
|
264
260
|
exports.serializeAws_restJson1BatchPutAssetPropertyValueCommand = serializeAws_restJson1BatchPutAssetPropertyValueCommand;
|
|
265
261
|
const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) => {
|
|
266
|
-
var _a;
|
|
267
262
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
263
|
const headers = {
|
|
269
264
|
"content-type": "application/json",
|
|
270
265
|
};
|
|
271
|
-
const resolvedPath = `${
|
|
266
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
|
|
272
267
|
let body;
|
|
273
268
|
body = JSON.stringify({
|
|
274
269
|
...(input.accessPolicyIdentity != null && {
|
|
@@ -278,7 +273,7 @@ const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) =
|
|
|
278
273
|
...(input.accessPolicyResource != null && {
|
|
279
274
|
accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
|
|
280
275
|
}),
|
|
281
|
-
clientToken:
|
|
276
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
282
277
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
283
278
|
});
|
|
284
279
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -300,18 +295,17 @@ const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) =
|
|
|
300
295
|
};
|
|
301
296
|
exports.serializeAws_restJson1CreateAccessPolicyCommand = serializeAws_restJson1CreateAccessPolicyCommand;
|
|
302
297
|
const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
|
|
303
|
-
var _a;
|
|
304
298
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
305
299
|
const headers = {
|
|
306
300
|
"content-type": "application/json",
|
|
307
301
|
};
|
|
308
|
-
const resolvedPath = `${
|
|
302
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
|
|
309
303
|
let body;
|
|
310
304
|
body = JSON.stringify({
|
|
311
305
|
...(input.assetDescription != null && { assetDescription: input.assetDescription }),
|
|
312
306
|
...(input.assetModelId != null && { assetModelId: input.assetModelId }),
|
|
313
307
|
...(input.assetName != null && { assetName: input.assetName }),
|
|
314
|
-
clientToken:
|
|
308
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
315
309
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
316
310
|
});
|
|
317
311
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -333,12 +327,11 @@ const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
|
|
|
333
327
|
};
|
|
334
328
|
exports.serializeAws_restJson1CreateAssetCommand = serializeAws_restJson1CreateAssetCommand;
|
|
335
329
|
const serializeAws_restJson1CreateAssetModelCommand = async (input, context) => {
|
|
336
|
-
var _a;
|
|
337
330
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
338
331
|
const headers = {
|
|
339
332
|
"content-type": "application/json",
|
|
340
333
|
};
|
|
341
|
-
const resolvedPath = `${
|
|
334
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
|
|
342
335
|
let body;
|
|
343
336
|
body = JSON.stringify({
|
|
344
337
|
...(input.assetModelCompositeModels != null && {
|
|
@@ -352,7 +345,7 @@ const serializeAws_restJson1CreateAssetModelCommand = async (input, context) =>
|
|
|
352
345
|
...(input.assetModelProperties != null && {
|
|
353
346
|
assetModelProperties: serializeAws_restJson1AssetModelPropertyDefinitions(input.assetModelProperties, context),
|
|
354
347
|
}),
|
|
355
|
-
clientToken:
|
|
348
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
356
349
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
357
350
|
});
|
|
358
351
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -378,7 +371,7 @@ const serializeAws_restJson1CreateBulkImportJobCommand = async (input, context)
|
|
|
378
371
|
const headers = {
|
|
379
372
|
"content-type": "application/json",
|
|
380
373
|
};
|
|
381
|
-
const resolvedPath = `${
|
|
374
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
382
375
|
let body;
|
|
383
376
|
body = JSON.stringify({
|
|
384
377
|
...(input.errorReportLocation != null && {
|
|
@@ -410,15 +403,14 @@ const serializeAws_restJson1CreateBulkImportJobCommand = async (input, context)
|
|
|
410
403
|
};
|
|
411
404
|
exports.serializeAws_restJson1CreateBulkImportJobCommand = serializeAws_restJson1CreateBulkImportJobCommand;
|
|
412
405
|
const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
|
|
413
|
-
var _a;
|
|
414
406
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
407
|
const headers = {
|
|
416
408
|
"content-type": "application/json",
|
|
417
409
|
};
|
|
418
|
-
const resolvedPath = `${
|
|
410
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
|
|
419
411
|
let body;
|
|
420
412
|
body = JSON.stringify({
|
|
421
|
-
clientToken:
|
|
413
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
422
414
|
...(input.dashboardDefinition != null && { dashboardDefinition: input.dashboardDefinition }),
|
|
423
415
|
...(input.dashboardDescription != null && { dashboardDescription: input.dashboardDescription }),
|
|
424
416
|
...(input.dashboardName != null && { dashboardName: input.dashboardName }),
|
|
@@ -448,7 +440,7 @@ const serializeAws_restJson1CreateGatewayCommand = async (input, context) => {
|
|
|
448
440
|
const headers = {
|
|
449
441
|
"content-type": "application/json",
|
|
450
442
|
};
|
|
451
|
-
const resolvedPath = `${
|
|
443
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
|
|
452
444
|
let body;
|
|
453
445
|
body = JSON.stringify({
|
|
454
446
|
...(input.gatewayName != null && { gatewayName: input.gatewayName }),
|
|
@@ -476,16 +468,15 @@ const serializeAws_restJson1CreateGatewayCommand = async (input, context) => {
|
|
|
476
468
|
};
|
|
477
469
|
exports.serializeAws_restJson1CreateGatewayCommand = serializeAws_restJson1CreateGatewayCommand;
|
|
478
470
|
const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
479
|
-
var _a;
|
|
480
471
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
481
472
|
const headers = {
|
|
482
473
|
"content-type": "application/json",
|
|
483
474
|
};
|
|
484
|
-
const resolvedPath = `${
|
|
475
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
|
|
485
476
|
let body;
|
|
486
477
|
body = JSON.stringify({
|
|
487
478
|
...(input.alarms != null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
|
|
488
|
-
clientToken:
|
|
479
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
489
480
|
...(input.notificationSenderEmail != null && { notificationSenderEmail: input.notificationSenderEmail }),
|
|
490
481
|
...(input.portalAuthMode != null && { portalAuthMode: input.portalAuthMode }),
|
|
491
482
|
...(input.portalContactEmail != null && { portalContactEmail: input.portalContactEmail }),
|
|
@@ -516,15 +507,14 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
|
516
507
|
};
|
|
517
508
|
exports.serializeAws_restJson1CreatePortalCommand = serializeAws_restJson1CreatePortalCommand;
|
|
518
509
|
const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
|
|
519
|
-
var _a;
|
|
520
510
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
521
511
|
const headers = {
|
|
522
512
|
"content-type": "application/json",
|
|
523
513
|
};
|
|
524
|
-
const resolvedPath = `${
|
|
514
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
|
|
525
515
|
let body;
|
|
526
516
|
body = JSON.stringify({
|
|
527
|
-
clientToken:
|
|
517
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
528
518
|
...(input.portalId != null && { portalId: input.portalId }),
|
|
529
519
|
...(input.projectDescription != null && { projectDescription: input.projectDescription }),
|
|
530
520
|
...(input.projectName != null && { projectName: input.projectName }),
|
|
@@ -551,7 +541,7 @@ exports.serializeAws_restJson1CreateProjectCommand = serializeAws_restJson1Creat
|
|
|
551
541
|
const serializeAws_restJson1DeleteAccessPolicyCommand = async (input, context) => {
|
|
552
542
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
553
543
|
const headers = {};
|
|
554
|
-
let resolvedPath = `${
|
|
544
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
|
|
555
545
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
|
|
556
546
|
const query = map({
|
|
557
547
|
clientToken: [, input.clientToken],
|
|
@@ -579,7 +569,7 @@ exports.serializeAws_restJson1DeleteAccessPolicyCommand = serializeAws_restJson1
|
|
|
579
569
|
const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
580
570
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
581
571
|
const headers = {};
|
|
582
|
-
let resolvedPath = `${
|
|
572
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
|
|
583
573
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
584
574
|
const query = map({
|
|
585
575
|
clientToken: [, input.clientToken],
|
|
@@ -607,7 +597,7 @@ exports.serializeAws_restJson1DeleteAssetCommand = serializeAws_restJson1DeleteA
|
|
|
607
597
|
const serializeAws_restJson1DeleteAssetModelCommand = async (input, context) => {
|
|
608
598
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
599
|
const headers = {};
|
|
610
|
-
let resolvedPath = `${
|
|
600
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
|
|
611
601
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
612
602
|
const query = map({
|
|
613
603
|
clientToken: [, input.clientToken],
|
|
@@ -635,7 +625,7 @@ exports.serializeAws_restJson1DeleteAssetModelCommand = serializeAws_restJson1De
|
|
|
635
625
|
const serializeAws_restJson1DeleteDashboardCommand = async (input, context) => {
|
|
636
626
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
637
627
|
const headers = {};
|
|
638
|
-
let resolvedPath = `${
|
|
628
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
|
|
639
629
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
|
|
640
630
|
const query = map({
|
|
641
631
|
clientToken: [, input.clientToken],
|
|
@@ -663,7 +653,7 @@ exports.serializeAws_restJson1DeleteDashboardCommand = serializeAws_restJson1Del
|
|
|
663
653
|
const serializeAws_restJson1DeleteGatewayCommand = async (input, context) => {
|
|
664
654
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
665
655
|
const headers = {};
|
|
666
|
-
let resolvedPath = `${
|
|
656
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
|
|
667
657
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
668
658
|
let body;
|
|
669
659
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -687,7 +677,7 @@ exports.serializeAws_restJson1DeleteGatewayCommand = serializeAws_restJson1Delet
|
|
|
687
677
|
const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
|
|
688
678
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
689
679
|
const headers = {};
|
|
690
|
-
let resolvedPath = `${
|
|
680
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
|
|
691
681
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
|
|
692
682
|
const query = map({
|
|
693
683
|
clientToken: [, input.clientToken],
|
|
@@ -715,7 +705,7 @@ exports.serializeAws_restJson1DeletePortalCommand = serializeAws_restJson1Delete
|
|
|
715
705
|
const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
|
|
716
706
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
717
707
|
const headers = {};
|
|
718
|
-
let resolvedPath = `${
|
|
708
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
|
|
719
709
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
|
|
720
710
|
const query = map({
|
|
721
711
|
clientToken: [, input.clientToken],
|
|
@@ -741,12 +731,11 @@ const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
|
|
|
741
731
|
};
|
|
742
732
|
exports.serializeAws_restJson1DeleteProjectCommand = serializeAws_restJson1DeleteProjectCommand;
|
|
743
733
|
const serializeAws_restJson1DeleteTimeSeriesCommand = async (input, context) => {
|
|
744
|
-
var _a;
|
|
745
734
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
746
735
|
const headers = {
|
|
747
736
|
"content-type": "application/json",
|
|
748
737
|
};
|
|
749
|
-
const resolvedPath = `${
|
|
738
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/delete";
|
|
750
739
|
const query = map({
|
|
751
740
|
alias: [, input.alias],
|
|
752
741
|
assetId: [, input.assetId],
|
|
@@ -754,7 +743,7 @@ const serializeAws_restJson1DeleteTimeSeriesCommand = async (input, context) =>
|
|
|
754
743
|
});
|
|
755
744
|
let body;
|
|
756
745
|
body = JSON.stringify({
|
|
757
|
-
clientToken:
|
|
746
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
758
747
|
});
|
|
759
748
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
760
749
|
if (context.disableHostPrefix !== true) {
|
|
@@ -778,7 +767,7 @@ exports.serializeAws_restJson1DeleteTimeSeriesCommand = serializeAws_restJson1De
|
|
|
778
767
|
const serializeAws_restJson1DescribeAccessPolicyCommand = async (input, context) => {
|
|
779
768
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
780
769
|
const headers = {};
|
|
781
|
-
let resolvedPath = `${
|
|
770
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
|
|
782
771
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
|
|
783
772
|
let body;
|
|
784
773
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -802,8 +791,11 @@ exports.serializeAws_restJson1DescribeAccessPolicyCommand = serializeAws_restJso
|
|
|
802
791
|
const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
803
792
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
804
793
|
const headers = {};
|
|
805
|
-
let resolvedPath = `${
|
|
794
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
|
|
806
795
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
796
|
+
const query = map({
|
|
797
|
+
excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties.toString()],
|
|
798
|
+
});
|
|
807
799
|
let body;
|
|
808
800
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
809
801
|
if (context.disableHostPrefix !== true) {
|
|
@@ -819,6 +811,7 @@ const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
|
819
811
|
method: "GET",
|
|
820
812
|
headers,
|
|
821
813
|
path: resolvedPath,
|
|
814
|
+
query,
|
|
822
815
|
body,
|
|
823
816
|
});
|
|
824
817
|
};
|
|
@@ -826,8 +819,11 @@ exports.serializeAws_restJson1DescribeAssetCommand = serializeAws_restJson1Descr
|
|
|
826
819
|
const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) => {
|
|
827
820
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
828
821
|
const headers = {};
|
|
829
|
-
let resolvedPath = `${
|
|
822
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
|
|
830
823
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
824
|
+
const query = map({
|
|
825
|
+
excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties.toString()],
|
|
826
|
+
});
|
|
831
827
|
let body;
|
|
832
828
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
833
829
|
if (context.disableHostPrefix !== true) {
|
|
@@ -843,6 +839,7 @@ const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) =
|
|
|
843
839
|
method: "GET",
|
|
844
840
|
headers,
|
|
845
841
|
path: resolvedPath,
|
|
842
|
+
query,
|
|
846
843
|
body,
|
|
847
844
|
});
|
|
848
845
|
};
|
|
@@ -850,7 +847,7 @@ exports.serializeAws_restJson1DescribeAssetModelCommand = serializeAws_restJson1
|
|
|
850
847
|
const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context) => {
|
|
851
848
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
852
849
|
const headers = {};
|
|
853
|
-
let resolvedPath = `${
|
|
850
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
|
|
854
851
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
855
852
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
|
|
856
853
|
let body;
|
|
@@ -875,7 +872,7 @@ exports.serializeAws_restJson1DescribeAssetPropertyCommand = serializeAws_restJs
|
|
|
875
872
|
const serializeAws_restJson1DescribeBulkImportJobCommand = async (input, context) => {
|
|
876
873
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
877
874
|
const headers = {};
|
|
878
|
-
let resolvedPath = `${
|
|
875
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
|
|
879
876
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
880
877
|
let body;
|
|
881
878
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -899,7 +896,7 @@ exports.serializeAws_restJson1DescribeBulkImportJobCommand = serializeAws_restJs
|
|
|
899
896
|
const serializeAws_restJson1DescribeDashboardCommand = async (input, context) => {
|
|
900
897
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
901
898
|
const headers = {};
|
|
902
|
-
let resolvedPath = `${
|
|
899
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
|
|
903
900
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
|
|
904
901
|
let body;
|
|
905
902
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -925,7 +922,7 @@ const serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = asyn
|
|
|
925
922
|
const headers = {
|
|
926
923
|
"content-type": "application/json",
|
|
927
924
|
};
|
|
928
|
-
const resolvedPath = `${
|
|
925
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
|
|
929
926
|
let body;
|
|
930
927
|
body = "";
|
|
931
928
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -949,7 +946,7 @@ exports.serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = se
|
|
|
949
946
|
const serializeAws_restJson1DescribeGatewayCommand = async (input, context) => {
|
|
950
947
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
951
948
|
const headers = {};
|
|
952
|
-
let resolvedPath = `${
|
|
949
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
|
|
953
950
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
954
951
|
let body;
|
|
955
952
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -973,7 +970,7 @@ exports.serializeAws_restJson1DescribeGatewayCommand = serializeAws_restJson1Des
|
|
|
973
970
|
const serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = async (input, context) => {
|
|
974
971
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
975
972
|
const headers = {};
|
|
976
|
-
let resolvedPath = `${
|
|
973
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
977
974
|
"/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}";
|
|
978
975
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
979
976
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "capabilityNamespace", () => input.capabilityNamespace, "{capabilityNamespace}", false);
|
|
@@ -1001,7 +998,7 @@ const serializeAws_restJson1DescribeLoggingOptionsCommand = async (input, contex
|
|
|
1001
998
|
const headers = {
|
|
1002
999
|
"content-type": "application/json",
|
|
1003
1000
|
};
|
|
1004
|
-
const resolvedPath = `${
|
|
1001
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
|
|
1005
1002
|
let body;
|
|
1006
1003
|
body = "";
|
|
1007
1004
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1025,7 +1022,7 @@ exports.serializeAws_restJson1DescribeLoggingOptionsCommand = serializeAws_restJ
|
|
|
1025
1022
|
const serializeAws_restJson1DescribePortalCommand = async (input, context) => {
|
|
1026
1023
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1027
1024
|
const headers = {};
|
|
1028
|
-
let resolvedPath = `${
|
|
1025
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
|
|
1029
1026
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
|
|
1030
1027
|
let body;
|
|
1031
1028
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1049,7 +1046,7 @@ exports.serializeAws_restJson1DescribePortalCommand = serializeAws_restJson1Desc
|
|
|
1049
1046
|
const serializeAws_restJson1DescribeProjectCommand = async (input, context) => {
|
|
1050
1047
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1051
1048
|
const headers = {};
|
|
1052
|
-
let resolvedPath = `${
|
|
1049
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
|
|
1053
1050
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
|
|
1054
1051
|
let body;
|
|
1055
1052
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1075,7 +1072,7 @@ const serializeAws_restJson1DescribeStorageConfigurationCommand = async (input,
|
|
|
1075
1072
|
const headers = {
|
|
1076
1073
|
"content-type": "application/json",
|
|
1077
1074
|
};
|
|
1078
|
-
const resolvedPath = `${
|
|
1075
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
|
|
1079
1076
|
let body;
|
|
1080
1077
|
body = "";
|
|
1081
1078
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1099,7 +1096,7 @@ exports.serializeAws_restJson1DescribeStorageConfigurationCommand = serializeAws
|
|
|
1099
1096
|
const serializeAws_restJson1DescribeTimeSeriesCommand = async (input, context) => {
|
|
1100
1097
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1101
1098
|
const headers = {};
|
|
1102
|
-
const resolvedPath = `${
|
|
1099
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/describe";
|
|
1103
1100
|
const query = map({
|
|
1104
1101
|
alias: [, input.alias],
|
|
1105
1102
|
assetId: [, input.assetId],
|
|
@@ -1126,17 +1123,16 @@ const serializeAws_restJson1DescribeTimeSeriesCommand = async (input, context) =
|
|
|
1126
1123
|
};
|
|
1127
1124
|
exports.serializeAws_restJson1DescribeTimeSeriesCommand = serializeAws_restJson1DescribeTimeSeriesCommand;
|
|
1128
1125
|
const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) => {
|
|
1129
|
-
var _a;
|
|
1130
1126
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1131
1127
|
const headers = {
|
|
1132
1128
|
"content-type": "application/json",
|
|
1133
1129
|
};
|
|
1134
|
-
let resolvedPath = `${
|
|
1130
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/disassociate";
|
|
1135
1131
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
1136
1132
|
let body;
|
|
1137
1133
|
body = JSON.stringify({
|
|
1138
1134
|
...(input.childAssetId != null && { childAssetId: input.childAssetId }),
|
|
1139
|
-
clientToken:
|
|
1135
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1140
1136
|
...(input.hierarchyId != null && { hierarchyId: input.hierarchyId }),
|
|
1141
1137
|
});
|
|
1142
1138
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1158,12 +1154,11 @@ const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) =
|
|
|
1158
1154
|
};
|
|
1159
1155
|
exports.serializeAws_restJson1DisassociateAssetsCommand = serializeAws_restJson1DisassociateAssetsCommand;
|
|
1160
1156
|
const serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = async (input, context) => {
|
|
1161
|
-
var _a;
|
|
1162
1157
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1163
1158
|
const headers = {
|
|
1164
1159
|
"content-type": "application/json",
|
|
1165
1160
|
};
|
|
1166
|
-
const resolvedPath = `${
|
|
1161
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/disassociate";
|
|
1167
1162
|
const query = map({
|
|
1168
1163
|
alias: [, input.alias],
|
|
1169
1164
|
assetId: [, input.assetId],
|
|
@@ -1171,7 +1166,7 @@ const serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = asy
|
|
|
1171
1166
|
});
|
|
1172
1167
|
let body;
|
|
1173
1168
|
body = JSON.stringify({
|
|
1174
|
-
clientToken:
|
|
1169
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1175
1170
|
});
|
|
1176
1171
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1177
1172
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1195,7 +1190,7 @@ exports.serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = s
|
|
|
1195
1190
|
const serializeAws_restJson1GetAssetPropertyAggregatesCommand = async (input, context) => {
|
|
1196
1191
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1197
1192
|
const headers = {};
|
|
1198
|
-
const resolvedPath = `${
|
|
1193
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/aggregates";
|
|
1199
1194
|
const query = map({
|
|
1200
1195
|
assetId: [, input.assetId],
|
|
1201
1196
|
propertyId: [, input.propertyId],
|
|
@@ -1238,7 +1233,7 @@ exports.serializeAws_restJson1GetAssetPropertyAggregatesCommand = serializeAws_r
|
|
|
1238
1233
|
const serializeAws_restJson1GetAssetPropertyValueCommand = async (input, context) => {
|
|
1239
1234
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1240
1235
|
const headers = {};
|
|
1241
|
-
const resolvedPath = `${
|
|
1236
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/latest";
|
|
1242
1237
|
const query = map({
|
|
1243
1238
|
assetId: [, input.assetId],
|
|
1244
1239
|
propertyId: [, input.propertyId],
|
|
@@ -1267,7 +1262,7 @@ exports.serializeAws_restJson1GetAssetPropertyValueCommand = serializeAws_restJs
|
|
|
1267
1262
|
const serializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (input, context) => {
|
|
1268
1263
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1269
1264
|
const headers = {};
|
|
1270
|
-
const resolvedPath = `${
|
|
1265
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/history";
|
|
1271
1266
|
const query = map({
|
|
1272
1267
|
assetId: [, input.assetId],
|
|
1273
1268
|
propertyId: [, input.propertyId],
|
|
@@ -1305,7 +1300,7 @@ exports.serializeAws_restJson1GetAssetPropertyValueHistoryCommand = serializeAws
|
|
|
1305
1300
|
const serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = async (input, context) => {
|
|
1306
1301
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1307
1302
|
const headers = {};
|
|
1308
|
-
const resolvedPath = `${
|
|
1303
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/interpolated";
|
|
1309
1304
|
const query = map({
|
|
1310
1305
|
assetId: [, input.assetId],
|
|
1311
1306
|
propertyId: [, input.propertyId],
|
|
@@ -1350,7 +1345,7 @@ exports.serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = serial
|
|
|
1350
1345
|
const serializeAws_restJson1ListAccessPoliciesCommand = async (input, context) => {
|
|
1351
1346
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1352
1347
|
const headers = {};
|
|
1353
|
-
const resolvedPath = `${
|
|
1348
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
|
|
1354
1349
|
const query = map({
|
|
1355
1350
|
identityType: [, input.identityType],
|
|
1356
1351
|
identityId: [, input.identityId],
|
|
@@ -1380,10 +1375,40 @@ const serializeAws_restJson1ListAccessPoliciesCommand = async (input, context) =
|
|
|
1380
1375
|
});
|
|
1381
1376
|
};
|
|
1382
1377
|
exports.serializeAws_restJson1ListAccessPoliciesCommand = serializeAws_restJson1ListAccessPoliciesCommand;
|
|
1378
|
+
const serializeAws_restJson1ListAssetModelPropertiesCommand = async (input, context) => {
|
|
1379
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1380
|
+
const headers = {};
|
|
1381
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}/properties";
|
|
1382
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1383
|
+
const query = map({
|
|
1384
|
+
nextToken: [, input.nextToken],
|
|
1385
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1386
|
+
filter: [, input.filter],
|
|
1387
|
+
});
|
|
1388
|
+
let body;
|
|
1389
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1390
|
+
if (context.disableHostPrefix !== true) {
|
|
1391
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1392
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1393
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
return new protocol_http_1.HttpRequest({
|
|
1397
|
+
protocol,
|
|
1398
|
+
hostname: resolvedHostname,
|
|
1399
|
+
port,
|
|
1400
|
+
method: "GET",
|
|
1401
|
+
headers,
|
|
1402
|
+
path: resolvedPath,
|
|
1403
|
+
query,
|
|
1404
|
+
body,
|
|
1405
|
+
});
|
|
1406
|
+
};
|
|
1407
|
+
exports.serializeAws_restJson1ListAssetModelPropertiesCommand = serializeAws_restJson1ListAssetModelPropertiesCommand;
|
|
1383
1408
|
const serializeAws_restJson1ListAssetModelsCommand = async (input, context) => {
|
|
1384
1409
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1385
1410
|
const headers = {};
|
|
1386
|
-
const resolvedPath = `${
|
|
1411
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
|
|
1387
1412
|
const query = map({
|
|
1388
1413
|
nextToken: [, input.nextToken],
|
|
1389
1414
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -1408,10 +1433,40 @@ const serializeAws_restJson1ListAssetModelsCommand = async (input, context) => {
|
|
|
1408
1433
|
});
|
|
1409
1434
|
};
|
|
1410
1435
|
exports.serializeAws_restJson1ListAssetModelsCommand = serializeAws_restJson1ListAssetModelsCommand;
|
|
1436
|
+
const serializeAws_restJson1ListAssetPropertiesCommand = async (input, context) => {
|
|
1437
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1438
|
+
const headers = {};
|
|
1439
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties";
|
|
1440
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
1441
|
+
const query = map({
|
|
1442
|
+
nextToken: [, input.nextToken],
|
|
1443
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1444
|
+
filter: [, input.filter],
|
|
1445
|
+
});
|
|
1446
|
+
let body;
|
|
1447
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1448
|
+
if (context.disableHostPrefix !== true) {
|
|
1449
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1450
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1451
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
return new protocol_http_1.HttpRequest({
|
|
1455
|
+
protocol,
|
|
1456
|
+
hostname: resolvedHostname,
|
|
1457
|
+
port,
|
|
1458
|
+
method: "GET",
|
|
1459
|
+
headers,
|
|
1460
|
+
path: resolvedPath,
|
|
1461
|
+
query,
|
|
1462
|
+
body,
|
|
1463
|
+
});
|
|
1464
|
+
};
|
|
1465
|
+
exports.serializeAws_restJson1ListAssetPropertiesCommand = serializeAws_restJson1ListAssetPropertiesCommand;
|
|
1411
1466
|
const serializeAws_restJson1ListAssetRelationshipsCommand = async (input, context) => {
|
|
1412
1467
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1413
1468
|
const headers = {};
|
|
1414
|
-
let resolvedPath = `${
|
|
1469
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/assetRelationships";
|
|
1415
1470
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
1416
1471
|
const query = map({
|
|
1417
1472
|
traversalType: [, input.traversalType],
|
|
@@ -1441,7 +1496,7 @@ exports.serializeAws_restJson1ListAssetRelationshipsCommand = serializeAws_restJ
|
|
|
1441
1496
|
const serializeAws_restJson1ListAssetsCommand = async (input, context) => {
|
|
1442
1497
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1443
1498
|
const headers = {};
|
|
1444
|
-
const resolvedPath = `${
|
|
1499
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
|
|
1445
1500
|
const query = map({
|
|
1446
1501
|
nextToken: [, input.nextToken],
|
|
1447
1502
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -1471,7 +1526,7 @@ exports.serializeAws_restJson1ListAssetsCommand = serializeAws_restJson1ListAsse
|
|
|
1471
1526
|
const serializeAws_restJson1ListAssociatedAssetsCommand = async (input, context) => {
|
|
1472
1527
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1473
1528
|
const headers = {};
|
|
1474
|
-
let resolvedPath = `${
|
|
1529
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/hierarchies";
|
|
1475
1530
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
1476
1531
|
const query = map({
|
|
1477
1532
|
hierarchyId: [, input.hierarchyId],
|
|
@@ -1502,7 +1557,7 @@ exports.serializeAws_restJson1ListAssociatedAssetsCommand = serializeAws_restJso
|
|
|
1502
1557
|
const serializeAws_restJson1ListBulkImportJobsCommand = async (input, context) => {
|
|
1503
1558
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1504
1559
|
const headers = {};
|
|
1505
|
-
const resolvedPath = `${
|
|
1560
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
1506
1561
|
const query = map({
|
|
1507
1562
|
nextToken: [, input.nextToken],
|
|
1508
1563
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -1531,7 +1586,7 @@ exports.serializeAws_restJson1ListBulkImportJobsCommand = serializeAws_restJson1
|
|
|
1531
1586
|
const serializeAws_restJson1ListDashboardsCommand = async (input, context) => {
|
|
1532
1587
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1533
1588
|
const headers = {};
|
|
1534
|
-
const resolvedPath = `${
|
|
1589
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
|
|
1535
1590
|
const query = map({
|
|
1536
1591
|
projectId: [, input.projectId],
|
|
1537
1592
|
nextToken: [, input.nextToken],
|
|
@@ -1560,7 +1615,7 @@ exports.serializeAws_restJson1ListDashboardsCommand = serializeAws_restJson1List
|
|
|
1560
1615
|
const serializeAws_restJson1ListGatewaysCommand = async (input, context) => {
|
|
1561
1616
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1562
1617
|
const headers = {};
|
|
1563
|
-
const resolvedPath = `${
|
|
1618
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
|
|
1564
1619
|
const query = map({
|
|
1565
1620
|
nextToken: [, input.nextToken],
|
|
1566
1621
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -1588,7 +1643,7 @@ exports.serializeAws_restJson1ListGatewaysCommand = serializeAws_restJson1ListGa
|
|
|
1588
1643
|
const serializeAws_restJson1ListPortalsCommand = async (input, context) => {
|
|
1589
1644
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1590
1645
|
const headers = {};
|
|
1591
|
-
const resolvedPath = `${
|
|
1646
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
|
|
1592
1647
|
const query = map({
|
|
1593
1648
|
nextToken: [, input.nextToken],
|
|
1594
1649
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -1616,7 +1671,7 @@ exports.serializeAws_restJson1ListPortalsCommand = serializeAws_restJson1ListPor
|
|
|
1616
1671
|
const serializeAws_restJson1ListProjectAssetsCommand = async (input, context) => {
|
|
1617
1672
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1618
1673
|
const headers = {};
|
|
1619
|
-
let resolvedPath = `${
|
|
1674
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets";
|
|
1620
1675
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
|
|
1621
1676
|
const query = map({
|
|
1622
1677
|
nextToken: [, input.nextToken],
|
|
@@ -1645,7 +1700,7 @@ exports.serializeAws_restJson1ListProjectAssetsCommand = serializeAws_restJson1L
|
|
|
1645
1700
|
const serializeAws_restJson1ListProjectsCommand = async (input, context) => {
|
|
1646
1701
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1647
1702
|
const headers = {};
|
|
1648
|
-
const resolvedPath = `${
|
|
1703
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
|
|
1649
1704
|
const query = map({
|
|
1650
1705
|
portalId: [, input.portalId],
|
|
1651
1706
|
nextToken: [, input.nextToken],
|
|
@@ -1674,7 +1729,7 @@ exports.serializeAws_restJson1ListProjectsCommand = serializeAws_restJson1ListPr
|
|
|
1674
1729
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1675
1730
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1676
1731
|
const headers = {};
|
|
1677
|
-
const resolvedPath = `${
|
|
1732
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1678
1733
|
const query = map({
|
|
1679
1734
|
resourceArn: [, input.resourceArn],
|
|
1680
1735
|
});
|
|
@@ -1701,7 +1756,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
|
|
|
1701
1756
|
const serializeAws_restJson1ListTimeSeriesCommand = async (input, context) => {
|
|
1702
1757
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1703
1758
|
const headers = {};
|
|
1704
|
-
const resolvedPath = `${
|
|
1759
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries";
|
|
1705
1760
|
const query = map({
|
|
1706
1761
|
nextToken: [, input.nextToken],
|
|
1707
1762
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -1734,7 +1789,7 @@ const serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = async (in
|
|
|
1734
1789
|
const headers = {
|
|
1735
1790
|
"content-type": "application/json",
|
|
1736
1791
|
};
|
|
1737
|
-
const resolvedPath = `${
|
|
1792
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
|
|
1738
1793
|
let body;
|
|
1739
1794
|
body = JSON.stringify({
|
|
1740
1795
|
...(input.encryptionType != null && { encryptionType: input.encryptionType }),
|
|
@@ -1763,7 +1818,7 @@ const serializeAws_restJson1PutLoggingOptionsCommand = async (input, context) =>
|
|
|
1763
1818
|
const headers = {
|
|
1764
1819
|
"content-type": "application/json",
|
|
1765
1820
|
};
|
|
1766
|
-
const resolvedPath = `${
|
|
1821
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
|
|
1767
1822
|
let body;
|
|
1768
1823
|
body = JSON.stringify({
|
|
1769
1824
|
...(input.loggingOptions != null && {
|
|
@@ -1793,7 +1848,7 @@ const serializeAws_restJson1PutStorageConfigurationCommand = async (input, conte
|
|
|
1793
1848
|
const headers = {
|
|
1794
1849
|
"content-type": "application/json",
|
|
1795
1850
|
};
|
|
1796
|
-
const resolvedPath = `${
|
|
1851
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
|
|
1797
1852
|
let body;
|
|
1798
1853
|
body = JSON.stringify({
|
|
1799
1854
|
...(input.disassociatedDataStorage != null && { disassociatedDataStorage: input.disassociatedDataStorage }),
|
|
@@ -1828,7 +1883,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1828
1883
|
const headers = {
|
|
1829
1884
|
"content-type": "application/json",
|
|
1830
1885
|
};
|
|
1831
|
-
const resolvedPath = `${
|
|
1886
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1832
1887
|
const query = map({
|
|
1833
1888
|
resourceArn: [, input.resourceArn],
|
|
1834
1889
|
});
|
|
@@ -1858,7 +1913,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
1858
1913
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
1859
1914
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1860
1915
|
const headers = {};
|
|
1861
|
-
const resolvedPath = `${
|
|
1916
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1862
1917
|
const query = map({
|
|
1863
1918
|
resourceArn: [, input.resourceArn],
|
|
1864
1919
|
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
@@ -1884,12 +1939,11 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1884
1939
|
};
|
|
1885
1940
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
1886
1941
|
const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) => {
|
|
1887
|
-
var _a;
|
|
1888
1942
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1889
1943
|
const headers = {
|
|
1890
1944
|
"content-type": "application/json",
|
|
1891
1945
|
};
|
|
1892
|
-
let resolvedPath = `${
|
|
1946
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
|
|
1893
1947
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
|
|
1894
1948
|
let body;
|
|
1895
1949
|
body = JSON.stringify({
|
|
@@ -1900,7 +1954,7 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
|
|
|
1900
1954
|
...(input.accessPolicyResource != null && {
|
|
1901
1955
|
accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
|
|
1902
1956
|
}),
|
|
1903
|
-
clientToken:
|
|
1957
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1904
1958
|
});
|
|
1905
1959
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1906
1960
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1921,18 +1975,17 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
|
|
|
1921
1975
|
};
|
|
1922
1976
|
exports.serializeAws_restJson1UpdateAccessPolicyCommand = serializeAws_restJson1UpdateAccessPolicyCommand;
|
|
1923
1977
|
const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
1924
|
-
var _a;
|
|
1925
1978
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1926
1979
|
const headers = {
|
|
1927
1980
|
"content-type": "application/json",
|
|
1928
1981
|
};
|
|
1929
|
-
let resolvedPath = `${
|
|
1982
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
|
|
1930
1983
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
1931
1984
|
let body;
|
|
1932
1985
|
body = JSON.stringify({
|
|
1933
1986
|
...(input.assetDescription != null && { assetDescription: input.assetDescription }),
|
|
1934
1987
|
...(input.assetName != null && { assetName: input.assetName }),
|
|
1935
|
-
clientToken:
|
|
1988
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1936
1989
|
});
|
|
1937
1990
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1938
1991
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1953,12 +2006,11 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
1953
2006
|
};
|
|
1954
2007
|
exports.serializeAws_restJson1UpdateAssetCommand = serializeAws_restJson1UpdateAssetCommand;
|
|
1955
2008
|
const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) => {
|
|
1956
|
-
var _a;
|
|
1957
2009
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1958
2010
|
const headers = {
|
|
1959
2011
|
"content-type": "application/json",
|
|
1960
2012
|
};
|
|
1961
|
-
let resolvedPath = `${
|
|
2013
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
|
|
1962
2014
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1963
2015
|
let body;
|
|
1964
2016
|
body = JSON.stringify({
|
|
@@ -1973,7 +2025,7 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
|
|
|
1973
2025
|
...(input.assetModelProperties != null && {
|
|
1974
2026
|
assetModelProperties: serializeAws_restJson1AssetModelProperties(input.assetModelProperties, context),
|
|
1975
2027
|
}),
|
|
1976
|
-
clientToken:
|
|
2028
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1977
2029
|
});
|
|
1978
2030
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1979
2031
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1994,17 +2046,16 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
|
|
|
1994
2046
|
};
|
|
1995
2047
|
exports.serializeAws_restJson1UpdateAssetModelCommand = serializeAws_restJson1UpdateAssetModelCommand;
|
|
1996
2048
|
const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context) => {
|
|
1997
|
-
var _a;
|
|
1998
2049
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1999
2050
|
const headers = {
|
|
2000
2051
|
"content-type": "application/json",
|
|
2001
2052
|
};
|
|
2002
|
-
let resolvedPath = `${
|
|
2053
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
|
|
2003
2054
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
2004
2055
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
|
|
2005
2056
|
let body;
|
|
2006
2057
|
body = JSON.stringify({
|
|
2007
|
-
clientToken:
|
|
2058
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
2008
2059
|
...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
|
|
2009
2060
|
...(input.propertyNotificationState != null && { propertyNotificationState: input.propertyNotificationState }),
|
|
2010
2061
|
...(input.propertyUnit != null && { propertyUnit: input.propertyUnit }),
|
|
@@ -2028,16 +2079,15 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
|
|
|
2028
2079
|
};
|
|
2029
2080
|
exports.serializeAws_restJson1UpdateAssetPropertyCommand = serializeAws_restJson1UpdateAssetPropertyCommand;
|
|
2030
2081
|
const serializeAws_restJson1UpdateDashboardCommand = async (input, context) => {
|
|
2031
|
-
var _a;
|
|
2032
2082
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2033
2083
|
const headers = {
|
|
2034
2084
|
"content-type": "application/json",
|
|
2035
2085
|
};
|
|
2036
|
-
let resolvedPath = `${
|
|
2086
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
|
|
2037
2087
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
|
|
2038
2088
|
let body;
|
|
2039
2089
|
body = JSON.stringify({
|
|
2040
|
-
clientToken:
|
|
2090
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
2041
2091
|
...(input.dashboardDefinition != null && { dashboardDefinition: input.dashboardDefinition }),
|
|
2042
2092
|
...(input.dashboardDescription != null && { dashboardDescription: input.dashboardDescription }),
|
|
2043
2093
|
...(input.dashboardName != null && { dashboardName: input.dashboardName }),
|
|
@@ -2065,7 +2115,7 @@ const serializeAws_restJson1UpdateGatewayCommand = async (input, context) => {
|
|
|
2065
2115
|
const headers = {
|
|
2066
2116
|
"content-type": "application/json",
|
|
2067
2117
|
};
|
|
2068
|
-
let resolvedPath = `${
|
|
2118
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
|
|
2069
2119
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
2070
2120
|
let body;
|
|
2071
2121
|
body = JSON.stringify({
|
|
@@ -2094,7 +2144,7 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
|
|
|
2094
2144
|
const headers = {
|
|
2095
2145
|
"content-type": "application/json",
|
|
2096
2146
|
};
|
|
2097
|
-
let resolvedPath = `${
|
|
2147
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}/capability";
|
|
2098
2148
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
2099
2149
|
let body;
|
|
2100
2150
|
body = JSON.stringify({
|
|
@@ -2120,17 +2170,16 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
|
|
|
2120
2170
|
};
|
|
2121
2171
|
exports.serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand;
|
|
2122
2172
|
const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
2123
|
-
var _a;
|
|
2124
2173
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2125
2174
|
const headers = {
|
|
2126
2175
|
"content-type": "application/json",
|
|
2127
2176
|
};
|
|
2128
|
-
let resolvedPath = `${
|
|
2177
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
|
|
2129
2178
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
|
|
2130
2179
|
let body;
|
|
2131
2180
|
body = JSON.stringify({
|
|
2132
2181
|
...(input.alarms != null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
|
|
2133
|
-
clientToken:
|
|
2182
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
2134
2183
|
...(input.notificationSenderEmail != null && { notificationSenderEmail: input.notificationSenderEmail }),
|
|
2135
2184
|
...(input.portalContactEmail != null && { portalContactEmail: input.portalContactEmail }),
|
|
2136
2185
|
...(input.portalDescription != null && { portalDescription: input.portalDescription }),
|
|
@@ -2159,16 +2208,15 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
2159
2208
|
};
|
|
2160
2209
|
exports.serializeAws_restJson1UpdatePortalCommand = serializeAws_restJson1UpdatePortalCommand;
|
|
2161
2210
|
const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
|
|
2162
|
-
var _a;
|
|
2163
2211
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2164
2212
|
const headers = {
|
|
2165
2213
|
"content-type": "application/json",
|
|
2166
2214
|
};
|
|
2167
|
-
let resolvedPath = `${
|
|
2215
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
|
|
2168
2216
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
|
|
2169
2217
|
let body;
|
|
2170
2218
|
body = JSON.stringify({
|
|
2171
|
-
clientToken:
|
|
2219
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
2172
2220
|
...(input.projectDescription != null && { projectDescription: input.projectDescription }),
|
|
2173
2221
|
...(input.projectName != null && { projectName: input.projectName }),
|
|
2174
2222
|
});
|
|
@@ -4536,6 +4584,52 @@ const deserializeAws_restJson1ListAccessPoliciesCommandError = async (output, co
|
|
|
4536
4584
|
});
|
|
4537
4585
|
}
|
|
4538
4586
|
};
|
|
4587
|
+
const deserializeAws_restJson1ListAssetModelPropertiesCommand = async (output, context) => {
|
|
4588
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4589
|
+
return deserializeAws_restJson1ListAssetModelPropertiesCommandError(output, context);
|
|
4590
|
+
}
|
|
4591
|
+
const contents = map({
|
|
4592
|
+
$metadata: deserializeMetadata(output),
|
|
4593
|
+
});
|
|
4594
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4595
|
+
if (data.assetModelPropertySummaries != null) {
|
|
4596
|
+
contents.assetModelPropertySummaries = deserializeAws_restJson1AssetModelPropertySummaries(data.assetModelPropertySummaries, context);
|
|
4597
|
+
}
|
|
4598
|
+
if (data.nextToken != null) {
|
|
4599
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4600
|
+
}
|
|
4601
|
+
return contents;
|
|
4602
|
+
};
|
|
4603
|
+
exports.deserializeAws_restJson1ListAssetModelPropertiesCommand = deserializeAws_restJson1ListAssetModelPropertiesCommand;
|
|
4604
|
+
const deserializeAws_restJson1ListAssetModelPropertiesCommandError = async (output, context) => {
|
|
4605
|
+
const parsedOutput = {
|
|
4606
|
+
...output,
|
|
4607
|
+
body: await parseErrorBody(output.body, context),
|
|
4608
|
+
};
|
|
4609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4610
|
+
switch (errorCode) {
|
|
4611
|
+
case "InternalFailureException":
|
|
4612
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4613
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
4614
|
+
case "InvalidRequestException":
|
|
4615
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4616
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4617
|
+
case "ResourceNotFoundException":
|
|
4618
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4619
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4620
|
+
case "ThrottlingException":
|
|
4621
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4622
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4623
|
+
default:
|
|
4624
|
+
const parsedBody = parsedOutput.body;
|
|
4625
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4626
|
+
output,
|
|
4627
|
+
parsedBody,
|
|
4628
|
+
exceptionCtor: IoTSiteWiseServiceException_1.IoTSiteWiseServiceException,
|
|
4629
|
+
errorCode,
|
|
4630
|
+
});
|
|
4631
|
+
}
|
|
4632
|
+
};
|
|
4539
4633
|
const deserializeAws_restJson1ListAssetModelsCommand = async (output, context) => {
|
|
4540
4634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4541
4635
|
return deserializeAws_restJson1ListAssetModelsCommandError(output, context);
|
|
@@ -4579,6 +4673,52 @@ const deserializeAws_restJson1ListAssetModelsCommandError = async (output, conte
|
|
|
4579
4673
|
});
|
|
4580
4674
|
}
|
|
4581
4675
|
};
|
|
4676
|
+
const deserializeAws_restJson1ListAssetPropertiesCommand = async (output, context) => {
|
|
4677
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4678
|
+
return deserializeAws_restJson1ListAssetPropertiesCommandError(output, context);
|
|
4679
|
+
}
|
|
4680
|
+
const contents = map({
|
|
4681
|
+
$metadata: deserializeMetadata(output),
|
|
4682
|
+
});
|
|
4683
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4684
|
+
if (data.assetPropertySummaries != null) {
|
|
4685
|
+
contents.assetPropertySummaries = deserializeAws_restJson1AssetPropertySummaries(data.assetPropertySummaries, context);
|
|
4686
|
+
}
|
|
4687
|
+
if (data.nextToken != null) {
|
|
4688
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4689
|
+
}
|
|
4690
|
+
return contents;
|
|
4691
|
+
};
|
|
4692
|
+
exports.deserializeAws_restJson1ListAssetPropertiesCommand = deserializeAws_restJson1ListAssetPropertiesCommand;
|
|
4693
|
+
const deserializeAws_restJson1ListAssetPropertiesCommandError = async (output, context) => {
|
|
4694
|
+
const parsedOutput = {
|
|
4695
|
+
...output,
|
|
4696
|
+
body: await parseErrorBody(output.body, context),
|
|
4697
|
+
};
|
|
4698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4699
|
+
switch (errorCode) {
|
|
4700
|
+
case "InternalFailureException":
|
|
4701
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4702
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
4703
|
+
case "InvalidRequestException":
|
|
4704
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4705
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4706
|
+
case "ResourceNotFoundException":
|
|
4707
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4708
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4709
|
+
case "ThrottlingException":
|
|
4710
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4711
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4712
|
+
default:
|
|
4713
|
+
const parsedBody = parsedOutput.body;
|
|
4714
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4715
|
+
output,
|
|
4716
|
+
parsedBody,
|
|
4717
|
+
exceptionCtor: IoTSiteWiseServiceException_1.IoTSiteWiseServiceException,
|
|
4718
|
+
errorCode,
|
|
4719
|
+
});
|
|
4720
|
+
}
|
|
4721
|
+
};
|
|
4582
4722
|
const deserializeAws_restJson1ListAssetRelationshipsCommand = async (output, context) => {
|
|
4583
4723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4584
4724
|
return deserializeAws_restJson1ListAssetRelationshipsCommandError(output, context);
|
|
@@ -5893,6 +6033,7 @@ const serializeAws_restJson1Alarms = (input, context) => {
|
|
|
5893
6033
|
const serializeAws_restJson1AssetModelCompositeModel = (input, context) => {
|
|
5894
6034
|
return {
|
|
5895
6035
|
...(input.description != null && { description: input.description }),
|
|
6036
|
+
...(input.id != null && { id: input.id }),
|
|
5896
6037
|
...(input.name != null && { name: input.name }),
|
|
5897
6038
|
...(input.properties != null && {
|
|
5898
6039
|
properties: serializeAws_restJson1AssetModelProperties(input.properties, context),
|
|
@@ -6408,6 +6549,7 @@ const deserializeAws_restJson1Alarms = (output, context) => {
|
|
|
6408
6549
|
const deserializeAws_restJson1AssetCompositeModel = (output, context) => {
|
|
6409
6550
|
return {
|
|
6410
6551
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
6552
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6411
6553
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6412
6554
|
properties: output.properties != null ? deserializeAws_restJson1AssetProperties(output.properties, context) : undefined,
|
|
6413
6555
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -6468,6 +6610,7 @@ const deserializeAws_restJson1AssetIDs = (output, context) => {
|
|
|
6468
6610
|
const deserializeAws_restJson1AssetModelCompositeModel = (output, context) => {
|
|
6469
6611
|
return {
|
|
6470
6612
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
6613
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6471
6614
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6472
6615
|
properties: output.properties != null ? deserializeAws_restJson1AssetModelProperties(output.properties, context) : undefined,
|
|
6473
6616
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -6523,6 +6666,28 @@ const deserializeAws_restJson1AssetModelProperty = (output, context) => {
|
|
|
6523
6666
|
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6524
6667
|
};
|
|
6525
6668
|
};
|
|
6669
|
+
const deserializeAws_restJson1AssetModelPropertySummaries = (output, context) => {
|
|
6670
|
+
const retVal = (output || [])
|
|
6671
|
+
.filter((e) => e != null)
|
|
6672
|
+
.map((entry) => {
|
|
6673
|
+
if (entry === null) {
|
|
6674
|
+
return null;
|
|
6675
|
+
}
|
|
6676
|
+
return deserializeAws_restJson1AssetModelPropertySummary(entry, context);
|
|
6677
|
+
});
|
|
6678
|
+
return retVal;
|
|
6679
|
+
};
|
|
6680
|
+
const deserializeAws_restJson1AssetModelPropertySummary = (output, context) => {
|
|
6681
|
+
return {
|
|
6682
|
+
assetModelCompositeModelId: (0, smithy_client_1.expectString)(output.assetModelCompositeModelId),
|
|
6683
|
+
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
6684
|
+
dataTypeSpec: (0, smithy_client_1.expectString)(output.dataTypeSpec),
|
|
6685
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6686
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6687
|
+
type: output.type != null ? deserializeAws_restJson1PropertyType(output.type, context) : undefined,
|
|
6688
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6689
|
+
};
|
|
6690
|
+
};
|
|
6526
6691
|
const deserializeAws_restJson1AssetModelStatus = (output, context) => {
|
|
6527
6692
|
return {
|
|
6528
6693
|
error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
|
|
@@ -6579,6 +6744,28 @@ const deserializeAws_restJson1AssetProperty = (output, context) => {
|
|
|
6579
6744
|
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6580
6745
|
};
|
|
6581
6746
|
};
|
|
6747
|
+
const deserializeAws_restJson1AssetPropertySummaries = (output, context) => {
|
|
6748
|
+
const retVal = (output || [])
|
|
6749
|
+
.filter((e) => e != null)
|
|
6750
|
+
.map((entry) => {
|
|
6751
|
+
if (entry === null) {
|
|
6752
|
+
return null;
|
|
6753
|
+
}
|
|
6754
|
+
return deserializeAws_restJson1AssetPropertySummary(entry, context);
|
|
6755
|
+
});
|
|
6756
|
+
return retVal;
|
|
6757
|
+
};
|
|
6758
|
+
const deserializeAws_restJson1AssetPropertySummary = (output, context) => {
|
|
6759
|
+
return {
|
|
6760
|
+
alias: (0, smithy_client_1.expectString)(output.alias),
|
|
6761
|
+
assetCompositeModelId: (0, smithy_client_1.expectString)(output.assetCompositeModelId),
|
|
6762
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6763
|
+
notification: output.notification != null
|
|
6764
|
+
? deserializeAws_restJson1PropertyNotification(output.notification, context)
|
|
6765
|
+
: undefined,
|
|
6766
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6767
|
+
};
|
|
6768
|
+
};
|
|
6582
6769
|
const deserializeAws_restJson1AssetPropertyValue = (output, context) => {
|
|
6583
6770
|
return {
|
|
6584
6771
|
quality: (0, smithy_client_1.expectString)(output.quality),
|
|
@@ -6949,6 +7136,7 @@ const deserializeAws_restJson1ColumnNames = (output, context) => {
|
|
|
6949
7136
|
const deserializeAws_restJson1CompositeModelProperty = (output, context) => {
|
|
6950
7137
|
return {
|
|
6951
7138
|
assetProperty: output.assetProperty != null ? deserializeAws_restJson1Property(output.assetProperty, context) : undefined,
|
|
7139
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6952
7140
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6953
7141
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
6954
7142
|
};
|
|
@@ -7461,15 +7649,12 @@ const deserializeAws_restJson1Variant = (output, context) => {
|
|
|
7461
7649
|
stringValue: (0, smithy_client_1.expectString)(output.stringValue),
|
|
7462
7650
|
};
|
|
7463
7651
|
};
|
|
7464
|
-
const deserializeMetadata = (output) => {
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
7471
|
-
});
|
|
7472
|
-
};
|
|
7652
|
+
const deserializeMetadata = (output) => ({
|
|
7653
|
+
httpStatusCode: output.statusCode,
|
|
7654
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
7655
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
7656
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
7657
|
+
});
|
|
7473
7658
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
7474
7659
|
if (streamBody instanceof Uint8Array) {
|
|
7475
7660
|
return Promise.resolve(streamBody);
|
|
@@ -7489,9 +7674,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
7489
7674
|
return {};
|
|
7490
7675
|
});
|
|
7491
7676
|
const parseErrorBody = async (errorBody, context) => {
|
|
7492
|
-
var _a;
|
|
7493
7677
|
const value = await parseBody(errorBody, context);
|
|
7494
|
-
value.message =
|
|
7678
|
+
value.message = value.message ?? value.Message;
|
|
7495
7679
|
return value;
|
|
7496
7680
|
};
|
|
7497
7681
|
const loadRestJsonErrorCode = (output, data) => {
|