@aws-sdk/client-iotsitewise 3.181.0 → 3.183.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/IoTSiteWise.js +286 -293
  3. package/dist-es/IoTSiteWiseClient.js +22 -28
  4. package/dist-es/commands/AssociateAssetsCommand.js +22 -29
  5. package/dist-es/commands/AssociateTimeSeriesToAssetPropertyCommand.js +22 -29
  6. package/dist-es/commands/BatchAssociateProjectAssetsCommand.js +21 -28
  7. package/dist-es/commands/BatchDisassociateProjectAssetsCommand.js +21 -28
  8. package/dist-es/commands/BatchGetAssetPropertyAggregatesCommand.js +21 -28
  9. package/dist-es/commands/BatchGetAssetPropertyValueCommand.js +21 -28
  10. package/dist-es/commands/BatchGetAssetPropertyValueHistoryCommand.js +21 -28
  11. package/dist-es/commands/BatchPutAssetPropertyValueCommand.js +21 -28
  12. package/dist-es/commands/CreateAccessPolicyCommand.js +21 -28
  13. package/dist-es/commands/CreateAssetCommand.js +21 -28
  14. package/dist-es/commands/CreateAssetModelCommand.js +21 -28
  15. package/dist-es/commands/CreateBulkImportJobCommand.js +21 -28
  16. package/dist-es/commands/CreateDashboardCommand.js +21 -28
  17. package/dist-es/commands/CreateGatewayCommand.js +21 -28
  18. package/dist-es/commands/CreatePortalCommand.js +21 -28
  19. package/dist-es/commands/CreateProjectCommand.js +21 -28
  20. package/dist-es/commands/DeleteAccessPolicyCommand.js +21 -28
  21. package/dist-es/commands/DeleteAssetCommand.js +21 -28
  22. package/dist-es/commands/DeleteAssetModelCommand.js +21 -28
  23. package/dist-es/commands/DeleteDashboardCommand.js +21 -28
  24. package/dist-es/commands/DeleteGatewayCommand.js +22 -29
  25. package/dist-es/commands/DeletePortalCommand.js +21 -28
  26. package/dist-es/commands/DeleteProjectCommand.js +21 -28
  27. package/dist-es/commands/DeleteTimeSeriesCommand.js +22 -29
  28. package/dist-es/commands/DescribeAccessPolicyCommand.js +21 -28
  29. package/dist-es/commands/DescribeAssetCommand.js +21 -28
  30. package/dist-es/commands/DescribeAssetModelCommand.js +21 -28
  31. package/dist-es/commands/DescribeAssetPropertyCommand.js +21 -28
  32. package/dist-es/commands/DescribeBulkImportJobCommand.js +21 -28
  33. package/dist-es/commands/DescribeDashboardCommand.js +21 -28
  34. package/dist-es/commands/DescribeDefaultEncryptionConfigurationCommand.js +21 -28
  35. package/dist-es/commands/DescribeGatewayCapabilityConfigurationCommand.js +21 -28
  36. package/dist-es/commands/DescribeGatewayCommand.js +21 -28
  37. package/dist-es/commands/DescribeLoggingOptionsCommand.js +21 -28
  38. package/dist-es/commands/DescribePortalCommand.js +21 -28
  39. package/dist-es/commands/DescribeProjectCommand.js +21 -28
  40. package/dist-es/commands/DescribeStorageConfigurationCommand.js +21 -28
  41. package/dist-es/commands/DescribeTimeSeriesCommand.js +21 -28
  42. package/dist-es/commands/DisassociateAssetsCommand.js +22 -29
  43. package/dist-es/commands/DisassociateTimeSeriesFromAssetPropertyCommand.js +22 -29
  44. package/dist-es/commands/GetAssetPropertyAggregatesCommand.js +21 -28
  45. package/dist-es/commands/GetAssetPropertyValueCommand.js +21 -28
  46. package/dist-es/commands/GetAssetPropertyValueHistoryCommand.js +21 -28
  47. package/dist-es/commands/GetInterpolatedAssetPropertyValuesCommand.js +21 -28
  48. package/dist-es/commands/ListAccessPoliciesCommand.js +21 -28
  49. package/dist-es/commands/ListAssetModelsCommand.js +21 -28
  50. package/dist-es/commands/ListAssetRelationshipsCommand.js +21 -28
  51. package/dist-es/commands/ListAssetsCommand.js +21 -28
  52. package/dist-es/commands/ListAssociatedAssetsCommand.js +21 -28
  53. package/dist-es/commands/ListBulkImportJobsCommand.js +21 -28
  54. package/dist-es/commands/ListDashboardsCommand.js +21 -28
  55. package/dist-es/commands/ListGatewaysCommand.js +21 -28
  56. package/dist-es/commands/ListPortalsCommand.js +21 -28
  57. package/dist-es/commands/ListProjectAssetsCommand.js +21 -28
  58. package/dist-es/commands/ListProjectsCommand.js +21 -28
  59. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  60. package/dist-es/commands/ListTimeSeriesCommand.js +21 -28
  61. package/dist-es/commands/PutDefaultEncryptionConfigurationCommand.js +21 -28
  62. package/dist-es/commands/PutLoggingOptionsCommand.js +21 -28
  63. package/dist-es/commands/PutStorageConfigurationCommand.js +21 -28
  64. package/dist-es/commands/TagResourceCommand.js +21 -28
  65. package/dist-es/commands/UntagResourceCommand.js +21 -28
  66. package/dist-es/commands/UpdateAccessPolicyCommand.js +21 -28
  67. package/dist-es/commands/UpdateAssetCommand.js +21 -28
  68. package/dist-es/commands/UpdateAssetModelCommand.js +21 -28
  69. package/dist-es/commands/UpdateAssetPropertyCommand.js +22 -29
  70. package/dist-es/commands/UpdateDashboardCommand.js +21 -28
  71. package/dist-es/commands/UpdateGatewayCapabilityConfigurationCommand.js +21 -28
  72. package/dist-es/commands/UpdateGatewayCommand.js +22 -29
  73. package/dist-es/commands/UpdatePortalCommand.js +21 -28
  74. package/dist-es/commands/UpdateProjectCommand.js +21 -28
  75. package/dist-es/endpoints.js +8 -8
  76. package/dist-es/models/IoTSiteWiseServiceException.js +5 -10
  77. package/dist-es/models/models_0.js +802 -345
  78. package/dist-es/pagination/BatchGetAssetPropertyAggregatesPaginator.js +25 -68
  79. package/dist-es/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +25 -68
  80. package/dist-es/pagination/BatchGetAssetPropertyValuePaginator.js +24 -67
  81. package/dist-es/pagination/GetAssetPropertyAggregatesPaginator.js +25 -68
  82. package/dist-es/pagination/GetAssetPropertyValueHistoryPaginator.js +25 -68
  83. package/dist-es/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +25 -68
  84. package/dist-es/pagination/ListAccessPoliciesPaginator.js +25 -68
  85. package/dist-es/pagination/ListAssetModelsPaginator.js +25 -68
  86. package/dist-es/pagination/ListAssetRelationshipsPaginator.js +25 -68
  87. package/dist-es/pagination/ListAssetsPaginator.js +25 -68
  88. package/dist-es/pagination/ListAssociatedAssetsPaginator.js +25 -68
  89. package/dist-es/pagination/ListBulkImportJobsPaginator.js +25 -68
  90. package/dist-es/pagination/ListDashboardsPaginator.js +25 -68
  91. package/dist-es/pagination/ListGatewaysPaginator.js +25 -68
  92. package/dist-es/pagination/ListPortalsPaginator.js +25 -68
  93. package/dist-es/pagination/ListProjectAssetsPaginator.js +25 -68
  94. package/dist-es/pagination/ListProjectsPaginator.js +25 -68
  95. package/dist-es/pagination/ListTimeSeriesPaginator.js +25 -68
  96. package/dist-es/protocols/Aws_restJson1.js +6181 -8342
  97. package/dist-es/runtimeConfig.browser.js +26 -12
  98. package/dist-es/runtimeConfig.js +30 -12
  99. package/dist-es/runtimeConfig.native.js +8 -5
  100. package/dist-es/runtimeConfig.shared.js +8 -11
  101. package/dist-es/waiters/waitForAssetActive.js +36 -56
  102. package/dist-es/waiters/waitForAssetModelActive.js +36 -56
  103. package/dist-es/waiters/waitForAssetModelNotExists.js +22 -42
  104. package/dist-es/waiters/waitForAssetNotExists.js +22 -42
  105. package/dist-es/waiters/waitForPortalActive.js +28 -48
  106. package/dist-es/waiters/waitForPortalNotExists.js +22 -42
  107. package/package.json +34 -34
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateAssetsCommand, } from "./commands/AssociateAssetsCommand";
3
2
  import { AssociateTimeSeriesToAssetPropertyCommand, } from "./commands/AssociateTimeSeriesToAssetPropertyCommand";
4
3
  import { BatchAssociateProjectAssetsCommand, } from "./commands/BatchAssociateProjectAssetsCommand";
@@ -71,1005 +70,999 @@ import { UpdateGatewayCommand, } from "./commands/UpdateGatewayCommand";
71
70
  import { UpdatePortalCommand, } from "./commands/UpdatePortalCommand";
72
71
  import { UpdateProjectCommand, } from "./commands/UpdateProjectCommand";
73
72
  import { IoTSiteWiseClient } from "./IoTSiteWiseClient";
74
- var IoTSiteWise = (function (_super) {
75
- __extends(IoTSiteWise, _super);
76
- function IoTSiteWise() {
77
- return _super !== null && _super.apply(this, arguments) || this;
78
- }
79
- IoTSiteWise.prototype.associateAssets = function (args, optionsOrCb, cb) {
80
- var command = new AssociateAssetsCommand(args);
73
+ export class IoTSiteWise extends IoTSiteWiseClient {
74
+ associateAssets(args, optionsOrCb, cb) {
75
+ const command = new AssociateAssetsCommand(args);
81
76
  if (typeof optionsOrCb === "function") {
82
77
  this.send(command, optionsOrCb);
83
78
  }
84
79
  else if (typeof cb === "function") {
85
80
  if (typeof optionsOrCb !== "object")
86
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
81
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
82
  this.send(command, optionsOrCb || {}, cb);
88
83
  }
89
84
  else {
90
85
  return this.send(command, optionsOrCb);
91
86
  }
92
- };
93
- IoTSiteWise.prototype.associateTimeSeriesToAssetProperty = function (args, optionsOrCb, cb) {
94
- var command = new AssociateTimeSeriesToAssetPropertyCommand(args);
87
+ }
88
+ associateTimeSeriesToAssetProperty(args, optionsOrCb, cb) {
89
+ const command = new AssociateTimeSeriesToAssetPropertyCommand(args);
95
90
  if (typeof optionsOrCb === "function") {
96
91
  this.send(command, optionsOrCb);
97
92
  }
98
93
  else if (typeof cb === "function") {
99
94
  if (typeof optionsOrCb !== "object")
100
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
95
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
96
  this.send(command, optionsOrCb || {}, cb);
102
97
  }
103
98
  else {
104
99
  return this.send(command, optionsOrCb);
105
100
  }
106
- };
107
- IoTSiteWise.prototype.batchAssociateProjectAssets = function (args, optionsOrCb, cb) {
108
- var command = new BatchAssociateProjectAssetsCommand(args);
101
+ }
102
+ batchAssociateProjectAssets(args, optionsOrCb, cb) {
103
+ const command = new BatchAssociateProjectAssetsCommand(args);
109
104
  if (typeof optionsOrCb === "function") {
110
105
  this.send(command, optionsOrCb);
111
106
  }
112
107
  else if (typeof cb === "function") {
113
108
  if (typeof optionsOrCb !== "object")
114
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
109
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
110
  this.send(command, optionsOrCb || {}, cb);
116
111
  }
117
112
  else {
118
113
  return this.send(command, optionsOrCb);
119
114
  }
120
- };
121
- IoTSiteWise.prototype.batchDisassociateProjectAssets = function (args, optionsOrCb, cb) {
122
- var command = new BatchDisassociateProjectAssetsCommand(args);
115
+ }
116
+ batchDisassociateProjectAssets(args, optionsOrCb, cb) {
117
+ const command = new BatchDisassociateProjectAssetsCommand(args);
123
118
  if (typeof optionsOrCb === "function") {
124
119
  this.send(command, optionsOrCb);
125
120
  }
126
121
  else if (typeof cb === "function") {
127
122
  if (typeof optionsOrCb !== "object")
128
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
123
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
124
  this.send(command, optionsOrCb || {}, cb);
130
125
  }
131
126
  else {
132
127
  return this.send(command, optionsOrCb);
133
128
  }
134
- };
135
- IoTSiteWise.prototype.batchGetAssetPropertyAggregates = function (args, optionsOrCb, cb) {
136
- var command = new BatchGetAssetPropertyAggregatesCommand(args);
129
+ }
130
+ batchGetAssetPropertyAggregates(args, optionsOrCb, cb) {
131
+ const command = new BatchGetAssetPropertyAggregatesCommand(args);
137
132
  if (typeof optionsOrCb === "function") {
138
133
  this.send(command, optionsOrCb);
139
134
  }
140
135
  else if (typeof cb === "function") {
141
136
  if (typeof optionsOrCb !== "object")
142
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
137
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
138
  this.send(command, optionsOrCb || {}, cb);
144
139
  }
145
140
  else {
146
141
  return this.send(command, optionsOrCb);
147
142
  }
148
- };
149
- IoTSiteWise.prototype.batchGetAssetPropertyValue = function (args, optionsOrCb, cb) {
150
- var command = new BatchGetAssetPropertyValueCommand(args);
143
+ }
144
+ batchGetAssetPropertyValue(args, optionsOrCb, cb) {
145
+ const command = new BatchGetAssetPropertyValueCommand(args);
151
146
  if (typeof optionsOrCb === "function") {
152
147
  this.send(command, optionsOrCb);
153
148
  }
154
149
  else if (typeof cb === "function") {
155
150
  if (typeof optionsOrCb !== "object")
156
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
151
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
152
  this.send(command, optionsOrCb || {}, cb);
158
153
  }
159
154
  else {
160
155
  return this.send(command, optionsOrCb);
161
156
  }
162
- };
163
- IoTSiteWise.prototype.batchGetAssetPropertyValueHistory = function (args, optionsOrCb, cb) {
164
- var command = new BatchGetAssetPropertyValueHistoryCommand(args);
157
+ }
158
+ batchGetAssetPropertyValueHistory(args, optionsOrCb, cb) {
159
+ const command = new BatchGetAssetPropertyValueHistoryCommand(args);
165
160
  if (typeof optionsOrCb === "function") {
166
161
  this.send(command, optionsOrCb);
167
162
  }
168
163
  else if (typeof cb === "function") {
169
164
  if (typeof optionsOrCb !== "object")
170
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
165
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
166
  this.send(command, optionsOrCb || {}, cb);
172
167
  }
173
168
  else {
174
169
  return this.send(command, optionsOrCb);
175
170
  }
176
- };
177
- IoTSiteWise.prototype.batchPutAssetPropertyValue = function (args, optionsOrCb, cb) {
178
- var command = new BatchPutAssetPropertyValueCommand(args);
171
+ }
172
+ batchPutAssetPropertyValue(args, optionsOrCb, cb) {
173
+ const command = new BatchPutAssetPropertyValueCommand(args);
179
174
  if (typeof optionsOrCb === "function") {
180
175
  this.send(command, optionsOrCb);
181
176
  }
182
177
  else if (typeof cb === "function") {
183
178
  if (typeof optionsOrCb !== "object")
184
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
179
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
180
  this.send(command, optionsOrCb || {}, cb);
186
181
  }
187
182
  else {
188
183
  return this.send(command, optionsOrCb);
189
184
  }
190
- };
191
- IoTSiteWise.prototype.createAccessPolicy = function (args, optionsOrCb, cb) {
192
- var command = new CreateAccessPolicyCommand(args);
185
+ }
186
+ createAccessPolicy(args, optionsOrCb, cb) {
187
+ const command = new CreateAccessPolicyCommand(args);
193
188
  if (typeof optionsOrCb === "function") {
194
189
  this.send(command, optionsOrCb);
195
190
  }
196
191
  else if (typeof cb === "function") {
197
192
  if (typeof optionsOrCb !== "object")
198
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
193
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
194
  this.send(command, optionsOrCb || {}, cb);
200
195
  }
201
196
  else {
202
197
  return this.send(command, optionsOrCb);
203
198
  }
204
- };
205
- IoTSiteWise.prototype.createAsset = function (args, optionsOrCb, cb) {
206
- var command = new CreateAssetCommand(args);
199
+ }
200
+ createAsset(args, optionsOrCb, cb) {
201
+ const command = new CreateAssetCommand(args);
207
202
  if (typeof optionsOrCb === "function") {
208
203
  this.send(command, optionsOrCb);
209
204
  }
210
205
  else if (typeof cb === "function") {
211
206
  if (typeof optionsOrCb !== "object")
212
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
207
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
208
  this.send(command, optionsOrCb || {}, cb);
214
209
  }
215
210
  else {
216
211
  return this.send(command, optionsOrCb);
217
212
  }
218
- };
219
- IoTSiteWise.prototype.createAssetModel = function (args, optionsOrCb, cb) {
220
- var command = new CreateAssetModelCommand(args);
213
+ }
214
+ createAssetModel(args, optionsOrCb, cb) {
215
+ const command = new CreateAssetModelCommand(args);
221
216
  if (typeof optionsOrCb === "function") {
222
217
  this.send(command, optionsOrCb);
223
218
  }
224
219
  else if (typeof cb === "function") {
225
220
  if (typeof optionsOrCb !== "object")
226
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
221
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
222
  this.send(command, optionsOrCb || {}, cb);
228
223
  }
229
224
  else {
230
225
  return this.send(command, optionsOrCb);
231
226
  }
232
- };
233
- IoTSiteWise.prototype.createBulkImportJob = function (args, optionsOrCb, cb) {
234
- var command = new CreateBulkImportJobCommand(args);
227
+ }
228
+ createBulkImportJob(args, optionsOrCb, cb) {
229
+ const command = new CreateBulkImportJobCommand(args);
235
230
  if (typeof optionsOrCb === "function") {
236
231
  this.send(command, optionsOrCb);
237
232
  }
238
233
  else if (typeof cb === "function") {
239
234
  if (typeof optionsOrCb !== "object")
240
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
235
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
241
236
  this.send(command, optionsOrCb || {}, cb);
242
237
  }
243
238
  else {
244
239
  return this.send(command, optionsOrCb);
245
240
  }
246
- };
247
- IoTSiteWise.prototype.createDashboard = function (args, optionsOrCb, cb) {
248
- var command = new CreateDashboardCommand(args);
241
+ }
242
+ createDashboard(args, optionsOrCb, cb) {
243
+ const command = new CreateDashboardCommand(args);
249
244
  if (typeof optionsOrCb === "function") {
250
245
  this.send(command, optionsOrCb);
251
246
  }
252
247
  else if (typeof cb === "function") {
253
248
  if (typeof optionsOrCb !== "object")
254
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
249
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
255
250
  this.send(command, optionsOrCb || {}, cb);
256
251
  }
257
252
  else {
258
253
  return this.send(command, optionsOrCb);
259
254
  }
260
- };
261
- IoTSiteWise.prototype.createGateway = function (args, optionsOrCb, cb) {
262
- var command = new CreateGatewayCommand(args);
255
+ }
256
+ createGateway(args, optionsOrCb, cb) {
257
+ const command = new CreateGatewayCommand(args);
263
258
  if (typeof optionsOrCb === "function") {
264
259
  this.send(command, optionsOrCb);
265
260
  }
266
261
  else if (typeof cb === "function") {
267
262
  if (typeof optionsOrCb !== "object")
268
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
263
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
269
264
  this.send(command, optionsOrCb || {}, cb);
270
265
  }
271
266
  else {
272
267
  return this.send(command, optionsOrCb);
273
268
  }
274
- };
275
- IoTSiteWise.prototype.createPortal = function (args, optionsOrCb, cb) {
276
- var command = new CreatePortalCommand(args);
269
+ }
270
+ createPortal(args, optionsOrCb, cb) {
271
+ const command = new CreatePortalCommand(args);
277
272
  if (typeof optionsOrCb === "function") {
278
273
  this.send(command, optionsOrCb);
279
274
  }
280
275
  else if (typeof cb === "function") {
281
276
  if (typeof optionsOrCb !== "object")
282
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
277
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
283
278
  this.send(command, optionsOrCb || {}, cb);
284
279
  }
285
280
  else {
286
281
  return this.send(command, optionsOrCb);
287
282
  }
288
- };
289
- IoTSiteWise.prototype.createProject = function (args, optionsOrCb, cb) {
290
- var command = new CreateProjectCommand(args);
283
+ }
284
+ createProject(args, optionsOrCb, cb) {
285
+ const command = new CreateProjectCommand(args);
291
286
  if (typeof optionsOrCb === "function") {
292
287
  this.send(command, optionsOrCb);
293
288
  }
294
289
  else if (typeof cb === "function") {
295
290
  if (typeof optionsOrCb !== "object")
296
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
291
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
297
292
  this.send(command, optionsOrCb || {}, cb);
298
293
  }
299
294
  else {
300
295
  return this.send(command, optionsOrCb);
301
296
  }
302
- };
303
- IoTSiteWise.prototype.deleteAccessPolicy = function (args, optionsOrCb, cb) {
304
- var command = new DeleteAccessPolicyCommand(args);
297
+ }
298
+ deleteAccessPolicy(args, optionsOrCb, cb) {
299
+ const command = new DeleteAccessPolicyCommand(args);
305
300
  if (typeof optionsOrCb === "function") {
306
301
  this.send(command, optionsOrCb);
307
302
  }
308
303
  else if (typeof cb === "function") {
309
304
  if (typeof optionsOrCb !== "object")
310
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
305
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
311
306
  this.send(command, optionsOrCb || {}, cb);
312
307
  }
313
308
  else {
314
309
  return this.send(command, optionsOrCb);
315
310
  }
316
- };
317
- IoTSiteWise.prototype.deleteAsset = function (args, optionsOrCb, cb) {
318
- var command = new DeleteAssetCommand(args);
311
+ }
312
+ deleteAsset(args, optionsOrCb, cb) {
313
+ const command = new DeleteAssetCommand(args);
319
314
  if (typeof optionsOrCb === "function") {
320
315
  this.send(command, optionsOrCb);
321
316
  }
322
317
  else if (typeof cb === "function") {
323
318
  if (typeof optionsOrCb !== "object")
324
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
319
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
325
320
  this.send(command, optionsOrCb || {}, cb);
326
321
  }
327
322
  else {
328
323
  return this.send(command, optionsOrCb);
329
324
  }
330
- };
331
- IoTSiteWise.prototype.deleteAssetModel = function (args, optionsOrCb, cb) {
332
- var command = new DeleteAssetModelCommand(args);
325
+ }
326
+ deleteAssetModel(args, optionsOrCb, cb) {
327
+ const command = new DeleteAssetModelCommand(args);
333
328
  if (typeof optionsOrCb === "function") {
334
329
  this.send(command, optionsOrCb);
335
330
  }
336
331
  else if (typeof cb === "function") {
337
332
  if (typeof optionsOrCb !== "object")
338
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
333
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
339
334
  this.send(command, optionsOrCb || {}, cb);
340
335
  }
341
336
  else {
342
337
  return this.send(command, optionsOrCb);
343
338
  }
344
- };
345
- IoTSiteWise.prototype.deleteDashboard = function (args, optionsOrCb, cb) {
346
- var command = new DeleteDashboardCommand(args);
339
+ }
340
+ deleteDashboard(args, optionsOrCb, cb) {
341
+ const command = new DeleteDashboardCommand(args);
347
342
  if (typeof optionsOrCb === "function") {
348
343
  this.send(command, optionsOrCb);
349
344
  }
350
345
  else if (typeof cb === "function") {
351
346
  if (typeof optionsOrCb !== "object")
352
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
347
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
353
348
  this.send(command, optionsOrCb || {}, cb);
354
349
  }
355
350
  else {
356
351
  return this.send(command, optionsOrCb);
357
352
  }
358
- };
359
- IoTSiteWise.prototype.deleteGateway = function (args, optionsOrCb, cb) {
360
- var command = new DeleteGatewayCommand(args);
353
+ }
354
+ deleteGateway(args, optionsOrCb, cb) {
355
+ const command = new DeleteGatewayCommand(args);
361
356
  if (typeof optionsOrCb === "function") {
362
357
  this.send(command, optionsOrCb);
363
358
  }
364
359
  else if (typeof cb === "function") {
365
360
  if (typeof optionsOrCb !== "object")
366
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
361
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
367
362
  this.send(command, optionsOrCb || {}, cb);
368
363
  }
369
364
  else {
370
365
  return this.send(command, optionsOrCb);
371
366
  }
372
- };
373
- IoTSiteWise.prototype.deletePortal = function (args, optionsOrCb, cb) {
374
- var command = new DeletePortalCommand(args);
367
+ }
368
+ deletePortal(args, optionsOrCb, cb) {
369
+ const command = new DeletePortalCommand(args);
375
370
  if (typeof optionsOrCb === "function") {
376
371
  this.send(command, optionsOrCb);
377
372
  }
378
373
  else if (typeof cb === "function") {
379
374
  if (typeof optionsOrCb !== "object")
380
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
375
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
381
376
  this.send(command, optionsOrCb || {}, cb);
382
377
  }
383
378
  else {
384
379
  return this.send(command, optionsOrCb);
385
380
  }
386
- };
387
- IoTSiteWise.prototype.deleteProject = function (args, optionsOrCb, cb) {
388
- var command = new DeleteProjectCommand(args);
381
+ }
382
+ deleteProject(args, optionsOrCb, cb) {
383
+ const command = new DeleteProjectCommand(args);
389
384
  if (typeof optionsOrCb === "function") {
390
385
  this.send(command, optionsOrCb);
391
386
  }
392
387
  else if (typeof cb === "function") {
393
388
  if (typeof optionsOrCb !== "object")
394
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
389
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
395
390
  this.send(command, optionsOrCb || {}, cb);
396
391
  }
397
392
  else {
398
393
  return this.send(command, optionsOrCb);
399
394
  }
400
- };
401
- IoTSiteWise.prototype.deleteTimeSeries = function (args, optionsOrCb, cb) {
402
- var command = new DeleteTimeSeriesCommand(args);
395
+ }
396
+ deleteTimeSeries(args, optionsOrCb, cb) {
397
+ const command = new DeleteTimeSeriesCommand(args);
403
398
  if (typeof optionsOrCb === "function") {
404
399
  this.send(command, optionsOrCb);
405
400
  }
406
401
  else if (typeof cb === "function") {
407
402
  if (typeof optionsOrCb !== "object")
408
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
403
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
409
404
  this.send(command, optionsOrCb || {}, cb);
410
405
  }
411
406
  else {
412
407
  return this.send(command, optionsOrCb);
413
408
  }
414
- };
415
- IoTSiteWise.prototype.describeAccessPolicy = function (args, optionsOrCb, cb) {
416
- var command = new DescribeAccessPolicyCommand(args);
409
+ }
410
+ describeAccessPolicy(args, optionsOrCb, cb) {
411
+ const command = new DescribeAccessPolicyCommand(args);
417
412
  if (typeof optionsOrCb === "function") {
418
413
  this.send(command, optionsOrCb);
419
414
  }
420
415
  else if (typeof cb === "function") {
421
416
  if (typeof optionsOrCb !== "object")
422
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
417
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
423
418
  this.send(command, optionsOrCb || {}, cb);
424
419
  }
425
420
  else {
426
421
  return this.send(command, optionsOrCb);
427
422
  }
428
- };
429
- IoTSiteWise.prototype.describeAsset = function (args, optionsOrCb, cb) {
430
- var command = new DescribeAssetCommand(args);
423
+ }
424
+ describeAsset(args, optionsOrCb, cb) {
425
+ const command = new DescribeAssetCommand(args);
431
426
  if (typeof optionsOrCb === "function") {
432
427
  this.send(command, optionsOrCb);
433
428
  }
434
429
  else if (typeof cb === "function") {
435
430
  if (typeof optionsOrCb !== "object")
436
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
431
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
437
432
  this.send(command, optionsOrCb || {}, cb);
438
433
  }
439
434
  else {
440
435
  return this.send(command, optionsOrCb);
441
436
  }
442
- };
443
- IoTSiteWise.prototype.describeAssetModel = function (args, optionsOrCb, cb) {
444
- var command = new DescribeAssetModelCommand(args);
437
+ }
438
+ describeAssetModel(args, optionsOrCb, cb) {
439
+ const command = new DescribeAssetModelCommand(args);
445
440
  if (typeof optionsOrCb === "function") {
446
441
  this.send(command, optionsOrCb);
447
442
  }
448
443
  else if (typeof cb === "function") {
449
444
  if (typeof optionsOrCb !== "object")
450
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
445
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
451
446
  this.send(command, optionsOrCb || {}, cb);
452
447
  }
453
448
  else {
454
449
  return this.send(command, optionsOrCb);
455
450
  }
456
- };
457
- IoTSiteWise.prototype.describeAssetProperty = function (args, optionsOrCb, cb) {
458
- var command = new DescribeAssetPropertyCommand(args);
451
+ }
452
+ describeAssetProperty(args, optionsOrCb, cb) {
453
+ const command = new DescribeAssetPropertyCommand(args);
459
454
  if (typeof optionsOrCb === "function") {
460
455
  this.send(command, optionsOrCb);
461
456
  }
462
457
  else if (typeof cb === "function") {
463
458
  if (typeof optionsOrCb !== "object")
464
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
459
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
465
460
  this.send(command, optionsOrCb || {}, cb);
466
461
  }
467
462
  else {
468
463
  return this.send(command, optionsOrCb);
469
464
  }
470
- };
471
- IoTSiteWise.prototype.describeBulkImportJob = function (args, optionsOrCb, cb) {
472
- var command = new DescribeBulkImportJobCommand(args);
465
+ }
466
+ describeBulkImportJob(args, optionsOrCb, cb) {
467
+ const command = new DescribeBulkImportJobCommand(args);
473
468
  if (typeof optionsOrCb === "function") {
474
469
  this.send(command, optionsOrCb);
475
470
  }
476
471
  else if (typeof cb === "function") {
477
472
  if (typeof optionsOrCb !== "object")
478
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
473
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
479
474
  this.send(command, optionsOrCb || {}, cb);
480
475
  }
481
476
  else {
482
477
  return this.send(command, optionsOrCb);
483
478
  }
484
- };
485
- IoTSiteWise.prototype.describeDashboard = function (args, optionsOrCb, cb) {
486
- var command = new DescribeDashboardCommand(args);
479
+ }
480
+ describeDashboard(args, optionsOrCb, cb) {
481
+ const command = new DescribeDashboardCommand(args);
487
482
  if (typeof optionsOrCb === "function") {
488
483
  this.send(command, optionsOrCb);
489
484
  }
490
485
  else if (typeof cb === "function") {
491
486
  if (typeof optionsOrCb !== "object")
492
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
487
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
493
488
  this.send(command, optionsOrCb || {}, cb);
494
489
  }
495
490
  else {
496
491
  return this.send(command, optionsOrCb);
497
492
  }
498
- };
499
- IoTSiteWise.prototype.describeDefaultEncryptionConfiguration = function (args, optionsOrCb, cb) {
500
- var command = new DescribeDefaultEncryptionConfigurationCommand(args);
493
+ }
494
+ describeDefaultEncryptionConfiguration(args, optionsOrCb, cb) {
495
+ const command = new DescribeDefaultEncryptionConfigurationCommand(args);
501
496
  if (typeof optionsOrCb === "function") {
502
497
  this.send(command, optionsOrCb);
503
498
  }
504
499
  else if (typeof cb === "function") {
505
500
  if (typeof optionsOrCb !== "object")
506
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
501
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
507
502
  this.send(command, optionsOrCb || {}, cb);
508
503
  }
509
504
  else {
510
505
  return this.send(command, optionsOrCb);
511
506
  }
512
- };
513
- IoTSiteWise.prototype.describeGateway = function (args, optionsOrCb, cb) {
514
- var command = new DescribeGatewayCommand(args);
507
+ }
508
+ describeGateway(args, optionsOrCb, cb) {
509
+ const command = new DescribeGatewayCommand(args);
515
510
  if (typeof optionsOrCb === "function") {
516
511
  this.send(command, optionsOrCb);
517
512
  }
518
513
  else if (typeof cb === "function") {
519
514
  if (typeof optionsOrCb !== "object")
520
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
515
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
521
516
  this.send(command, optionsOrCb || {}, cb);
522
517
  }
523
518
  else {
524
519
  return this.send(command, optionsOrCb);
525
520
  }
526
- };
527
- IoTSiteWise.prototype.describeGatewayCapabilityConfiguration = function (args, optionsOrCb, cb) {
528
- var command = new DescribeGatewayCapabilityConfigurationCommand(args);
521
+ }
522
+ describeGatewayCapabilityConfiguration(args, optionsOrCb, cb) {
523
+ const command = new DescribeGatewayCapabilityConfigurationCommand(args);
529
524
  if (typeof optionsOrCb === "function") {
530
525
  this.send(command, optionsOrCb);
531
526
  }
532
527
  else if (typeof cb === "function") {
533
528
  if (typeof optionsOrCb !== "object")
534
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
529
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
535
530
  this.send(command, optionsOrCb || {}, cb);
536
531
  }
537
532
  else {
538
533
  return this.send(command, optionsOrCb);
539
534
  }
540
- };
541
- IoTSiteWise.prototype.describeLoggingOptions = function (args, optionsOrCb, cb) {
542
- var command = new DescribeLoggingOptionsCommand(args);
535
+ }
536
+ describeLoggingOptions(args, optionsOrCb, cb) {
537
+ const command = new DescribeLoggingOptionsCommand(args);
543
538
  if (typeof optionsOrCb === "function") {
544
539
  this.send(command, optionsOrCb);
545
540
  }
546
541
  else if (typeof cb === "function") {
547
542
  if (typeof optionsOrCb !== "object")
548
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
543
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
549
544
  this.send(command, optionsOrCb || {}, cb);
550
545
  }
551
546
  else {
552
547
  return this.send(command, optionsOrCb);
553
548
  }
554
- };
555
- IoTSiteWise.prototype.describePortal = function (args, optionsOrCb, cb) {
556
- var command = new DescribePortalCommand(args);
549
+ }
550
+ describePortal(args, optionsOrCb, cb) {
551
+ const command = new DescribePortalCommand(args);
557
552
  if (typeof optionsOrCb === "function") {
558
553
  this.send(command, optionsOrCb);
559
554
  }
560
555
  else if (typeof cb === "function") {
561
556
  if (typeof optionsOrCb !== "object")
562
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
557
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
563
558
  this.send(command, optionsOrCb || {}, cb);
564
559
  }
565
560
  else {
566
561
  return this.send(command, optionsOrCb);
567
562
  }
568
- };
569
- IoTSiteWise.prototype.describeProject = function (args, optionsOrCb, cb) {
570
- var command = new DescribeProjectCommand(args);
563
+ }
564
+ describeProject(args, optionsOrCb, cb) {
565
+ const command = new DescribeProjectCommand(args);
571
566
  if (typeof optionsOrCb === "function") {
572
567
  this.send(command, optionsOrCb);
573
568
  }
574
569
  else if (typeof cb === "function") {
575
570
  if (typeof optionsOrCb !== "object")
576
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
571
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
577
572
  this.send(command, optionsOrCb || {}, cb);
578
573
  }
579
574
  else {
580
575
  return this.send(command, optionsOrCb);
581
576
  }
582
- };
583
- IoTSiteWise.prototype.describeStorageConfiguration = function (args, optionsOrCb, cb) {
584
- var command = new DescribeStorageConfigurationCommand(args);
577
+ }
578
+ describeStorageConfiguration(args, optionsOrCb, cb) {
579
+ const command = new DescribeStorageConfigurationCommand(args);
585
580
  if (typeof optionsOrCb === "function") {
586
581
  this.send(command, optionsOrCb);
587
582
  }
588
583
  else if (typeof cb === "function") {
589
584
  if (typeof optionsOrCb !== "object")
590
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
585
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
591
586
  this.send(command, optionsOrCb || {}, cb);
592
587
  }
593
588
  else {
594
589
  return this.send(command, optionsOrCb);
595
590
  }
596
- };
597
- IoTSiteWise.prototype.describeTimeSeries = function (args, optionsOrCb, cb) {
598
- var command = new DescribeTimeSeriesCommand(args);
591
+ }
592
+ describeTimeSeries(args, optionsOrCb, cb) {
593
+ const command = new DescribeTimeSeriesCommand(args);
599
594
  if (typeof optionsOrCb === "function") {
600
595
  this.send(command, optionsOrCb);
601
596
  }
602
597
  else if (typeof cb === "function") {
603
598
  if (typeof optionsOrCb !== "object")
604
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
599
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
605
600
  this.send(command, optionsOrCb || {}, cb);
606
601
  }
607
602
  else {
608
603
  return this.send(command, optionsOrCb);
609
604
  }
610
- };
611
- IoTSiteWise.prototype.disassociateAssets = function (args, optionsOrCb, cb) {
612
- var command = new DisassociateAssetsCommand(args);
605
+ }
606
+ disassociateAssets(args, optionsOrCb, cb) {
607
+ const command = new DisassociateAssetsCommand(args);
613
608
  if (typeof optionsOrCb === "function") {
614
609
  this.send(command, optionsOrCb);
615
610
  }
616
611
  else if (typeof cb === "function") {
617
612
  if (typeof optionsOrCb !== "object")
618
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
613
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
619
614
  this.send(command, optionsOrCb || {}, cb);
620
615
  }
621
616
  else {
622
617
  return this.send(command, optionsOrCb);
623
618
  }
624
- };
625
- IoTSiteWise.prototype.disassociateTimeSeriesFromAssetProperty = function (args, optionsOrCb, cb) {
626
- var command = new DisassociateTimeSeriesFromAssetPropertyCommand(args);
619
+ }
620
+ disassociateTimeSeriesFromAssetProperty(args, optionsOrCb, cb) {
621
+ const command = new DisassociateTimeSeriesFromAssetPropertyCommand(args);
627
622
  if (typeof optionsOrCb === "function") {
628
623
  this.send(command, optionsOrCb);
629
624
  }
630
625
  else if (typeof cb === "function") {
631
626
  if (typeof optionsOrCb !== "object")
632
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
627
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
633
628
  this.send(command, optionsOrCb || {}, cb);
634
629
  }
635
630
  else {
636
631
  return this.send(command, optionsOrCb);
637
632
  }
638
- };
639
- IoTSiteWise.prototype.getAssetPropertyAggregates = function (args, optionsOrCb, cb) {
640
- var command = new GetAssetPropertyAggregatesCommand(args);
633
+ }
634
+ getAssetPropertyAggregates(args, optionsOrCb, cb) {
635
+ const command = new GetAssetPropertyAggregatesCommand(args);
641
636
  if (typeof optionsOrCb === "function") {
642
637
  this.send(command, optionsOrCb);
643
638
  }
644
639
  else if (typeof cb === "function") {
645
640
  if (typeof optionsOrCb !== "object")
646
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
641
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
647
642
  this.send(command, optionsOrCb || {}, cb);
648
643
  }
649
644
  else {
650
645
  return this.send(command, optionsOrCb);
651
646
  }
652
- };
653
- IoTSiteWise.prototype.getAssetPropertyValue = function (args, optionsOrCb, cb) {
654
- var command = new GetAssetPropertyValueCommand(args);
647
+ }
648
+ getAssetPropertyValue(args, optionsOrCb, cb) {
649
+ const command = new GetAssetPropertyValueCommand(args);
655
650
  if (typeof optionsOrCb === "function") {
656
651
  this.send(command, optionsOrCb);
657
652
  }
658
653
  else if (typeof cb === "function") {
659
654
  if (typeof optionsOrCb !== "object")
660
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
655
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
661
656
  this.send(command, optionsOrCb || {}, cb);
662
657
  }
663
658
  else {
664
659
  return this.send(command, optionsOrCb);
665
660
  }
666
- };
667
- IoTSiteWise.prototype.getAssetPropertyValueHistory = function (args, optionsOrCb, cb) {
668
- var command = new GetAssetPropertyValueHistoryCommand(args);
661
+ }
662
+ getAssetPropertyValueHistory(args, optionsOrCb, cb) {
663
+ const command = new GetAssetPropertyValueHistoryCommand(args);
669
664
  if (typeof optionsOrCb === "function") {
670
665
  this.send(command, optionsOrCb);
671
666
  }
672
667
  else if (typeof cb === "function") {
673
668
  if (typeof optionsOrCb !== "object")
674
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
669
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
675
670
  this.send(command, optionsOrCb || {}, cb);
676
671
  }
677
672
  else {
678
673
  return this.send(command, optionsOrCb);
679
674
  }
680
- };
681
- IoTSiteWise.prototype.getInterpolatedAssetPropertyValues = function (args, optionsOrCb, cb) {
682
- var command = new GetInterpolatedAssetPropertyValuesCommand(args);
675
+ }
676
+ getInterpolatedAssetPropertyValues(args, optionsOrCb, cb) {
677
+ const command = new GetInterpolatedAssetPropertyValuesCommand(args);
683
678
  if (typeof optionsOrCb === "function") {
684
679
  this.send(command, optionsOrCb);
685
680
  }
686
681
  else if (typeof cb === "function") {
687
682
  if (typeof optionsOrCb !== "object")
688
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
683
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
689
684
  this.send(command, optionsOrCb || {}, cb);
690
685
  }
691
686
  else {
692
687
  return this.send(command, optionsOrCb);
693
688
  }
694
- };
695
- IoTSiteWise.prototype.listAccessPolicies = function (args, optionsOrCb, cb) {
696
- var command = new ListAccessPoliciesCommand(args);
689
+ }
690
+ listAccessPolicies(args, optionsOrCb, cb) {
691
+ const command = new ListAccessPoliciesCommand(args);
697
692
  if (typeof optionsOrCb === "function") {
698
693
  this.send(command, optionsOrCb);
699
694
  }
700
695
  else if (typeof cb === "function") {
701
696
  if (typeof optionsOrCb !== "object")
702
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
697
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
703
698
  this.send(command, optionsOrCb || {}, cb);
704
699
  }
705
700
  else {
706
701
  return this.send(command, optionsOrCb);
707
702
  }
708
- };
709
- IoTSiteWise.prototype.listAssetModels = function (args, optionsOrCb, cb) {
710
- var command = new ListAssetModelsCommand(args);
703
+ }
704
+ listAssetModels(args, optionsOrCb, cb) {
705
+ const command = new ListAssetModelsCommand(args);
711
706
  if (typeof optionsOrCb === "function") {
712
707
  this.send(command, optionsOrCb);
713
708
  }
714
709
  else if (typeof cb === "function") {
715
710
  if (typeof optionsOrCb !== "object")
716
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
711
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
717
712
  this.send(command, optionsOrCb || {}, cb);
718
713
  }
719
714
  else {
720
715
  return this.send(command, optionsOrCb);
721
716
  }
722
- };
723
- IoTSiteWise.prototype.listAssetRelationships = function (args, optionsOrCb, cb) {
724
- var command = new ListAssetRelationshipsCommand(args);
717
+ }
718
+ listAssetRelationships(args, optionsOrCb, cb) {
719
+ const command = new ListAssetRelationshipsCommand(args);
725
720
  if (typeof optionsOrCb === "function") {
726
721
  this.send(command, optionsOrCb);
727
722
  }
728
723
  else if (typeof cb === "function") {
729
724
  if (typeof optionsOrCb !== "object")
730
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
725
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
731
726
  this.send(command, optionsOrCb || {}, cb);
732
727
  }
733
728
  else {
734
729
  return this.send(command, optionsOrCb);
735
730
  }
736
- };
737
- IoTSiteWise.prototype.listAssets = function (args, optionsOrCb, cb) {
738
- var command = new ListAssetsCommand(args);
731
+ }
732
+ listAssets(args, optionsOrCb, cb) {
733
+ const command = new ListAssetsCommand(args);
739
734
  if (typeof optionsOrCb === "function") {
740
735
  this.send(command, optionsOrCb);
741
736
  }
742
737
  else if (typeof cb === "function") {
743
738
  if (typeof optionsOrCb !== "object")
744
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
739
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
745
740
  this.send(command, optionsOrCb || {}, cb);
746
741
  }
747
742
  else {
748
743
  return this.send(command, optionsOrCb);
749
744
  }
750
- };
751
- IoTSiteWise.prototype.listAssociatedAssets = function (args, optionsOrCb, cb) {
752
- var command = new ListAssociatedAssetsCommand(args);
745
+ }
746
+ listAssociatedAssets(args, optionsOrCb, cb) {
747
+ const command = new ListAssociatedAssetsCommand(args);
753
748
  if (typeof optionsOrCb === "function") {
754
749
  this.send(command, optionsOrCb);
755
750
  }
756
751
  else if (typeof cb === "function") {
757
752
  if (typeof optionsOrCb !== "object")
758
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
753
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
759
754
  this.send(command, optionsOrCb || {}, cb);
760
755
  }
761
756
  else {
762
757
  return this.send(command, optionsOrCb);
763
758
  }
764
- };
765
- IoTSiteWise.prototype.listBulkImportJobs = function (args, optionsOrCb, cb) {
766
- var command = new ListBulkImportJobsCommand(args);
759
+ }
760
+ listBulkImportJobs(args, optionsOrCb, cb) {
761
+ const command = new ListBulkImportJobsCommand(args);
767
762
  if (typeof optionsOrCb === "function") {
768
763
  this.send(command, optionsOrCb);
769
764
  }
770
765
  else if (typeof cb === "function") {
771
766
  if (typeof optionsOrCb !== "object")
772
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
767
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
773
768
  this.send(command, optionsOrCb || {}, cb);
774
769
  }
775
770
  else {
776
771
  return this.send(command, optionsOrCb);
777
772
  }
778
- };
779
- IoTSiteWise.prototype.listDashboards = function (args, optionsOrCb, cb) {
780
- var command = new ListDashboardsCommand(args);
773
+ }
774
+ listDashboards(args, optionsOrCb, cb) {
775
+ const command = new ListDashboardsCommand(args);
781
776
  if (typeof optionsOrCb === "function") {
782
777
  this.send(command, optionsOrCb);
783
778
  }
784
779
  else if (typeof cb === "function") {
785
780
  if (typeof optionsOrCb !== "object")
786
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
781
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
787
782
  this.send(command, optionsOrCb || {}, cb);
788
783
  }
789
784
  else {
790
785
  return this.send(command, optionsOrCb);
791
786
  }
792
- };
793
- IoTSiteWise.prototype.listGateways = function (args, optionsOrCb, cb) {
794
- var command = new ListGatewaysCommand(args);
787
+ }
788
+ listGateways(args, optionsOrCb, cb) {
789
+ const command = new ListGatewaysCommand(args);
795
790
  if (typeof optionsOrCb === "function") {
796
791
  this.send(command, optionsOrCb);
797
792
  }
798
793
  else if (typeof cb === "function") {
799
794
  if (typeof optionsOrCb !== "object")
800
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
795
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
801
796
  this.send(command, optionsOrCb || {}, cb);
802
797
  }
803
798
  else {
804
799
  return this.send(command, optionsOrCb);
805
800
  }
806
- };
807
- IoTSiteWise.prototype.listPortals = function (args, optionsOrCb, cb) {
808
- var command = new ListPortalsCommand(args);
801
+ }
802
+ listPortals(args, optionsOrCb, cb) {
803
+ const command = new ListPortalsCommand(args);
809
804
  if (typeof optionsOrCb === "function") {
810
805
  this.send(command, optionsOrCb);
811
806
  }
812
807
  else if (typeof cb === "function") {
813
808
  if (typeof optionsOrCb !== "object")
814
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
809
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
815
810
  this.send(command, optionsOrCb || {}, cb);
816
811
  }
817
812
  else {
818
813
  return this.send(command, optionsOrCb);
819
814
  }
820
- };
821
- IoTSiteWise.prototype.listProjectAssets = function (args, optionsOrCb, cb) {
822
- var command = new ListProjectAssetsCommand(args);
815
+ }
816
+ listProjectAssets(args, optionsOrCb, cb) {
817
+ const command = new ListProjectAssetsCommand(args);
823
818
  if (typeof optionsOrCb === "function") {
824
819
  this.send(command, optionsOrCb);
825
820
  }
826
821
  else if (typeof cb === "function") {
827
822
  if (typeof optionsOrCb !== "object")
828
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
823
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
829
824
  this.send(command, optionsOrCb || {}, cb);
830
825
  }
831
826
  else {
832
827
  return this.send(command, optionsOrCb);
833
828
  }
834
- };
835
- IoTSiteWise.prototype.listProjects = function (args, optionsOrCb, cb) {
836
- var command = new ListProjectsCommand(args);
829
+ }
830
+ listProjects(args, optionsOrCb, cb) {
831
+ const command = new ListProjectsCommand(args);
837
832
  if (typeof optionsOrCb === "function") {
838
833
  this.send(command, optionsOrCb);
839
834
  }
840
835
  else if (typeof cb === "function") {
841
836
  if (typeof optionsOrCb !== "object")
842
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
837
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
843
838
  this.send(command, optionsOrCb || {}, cb);
844
839
  }
845
840
  else {
846
841
  return this.send(command, optionsOrCb);
847
842
  }
848
- };
849
- IoTSiteWise.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
850
- var command = new ListTagsForResourceCommand(args);
843
+ }
844
+ listTagsForResource(args, optionsOrCb, cb) {
845
+ const command = new ListTagsForResourceCommand(args);
851
846
  if (typeof optionsOrCb === "function") {
852
847
  this.send(command, optionsOrCb);
853
848
  }
854
849
  else if (typeof cb === "function") {
855
850
  if (typeof optionsOrCb !== "object")
856
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
851
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
857
852
  this.send(command, optionsOrCb || {}, cb);
858
853
  }
859
854
  else {
860
855
  return this.send(command, optionsOrCb);
861
856
  }
862
- };
863
- IoTSiteWise.prototype.listTimeSeries = function (args, optionsOrCb, cb) {
864
- var command = new ListTimeSeriesCommand(args);
857
+ }
858
+ listTimeSeries(args, optionsOrCb, cb) {
859
+ const command = new ListTimeSeriesCommand(args);
865
860
  if (typeof optionsOrCb === "function") {
866
861
  this.send(command, optionsOrCb);
867
862
  }
868
863
  else if (typeof cb === "function") {
869
864
  if (typeof optionsOrCb !== "object")
870
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
865
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
871
866
  this.send(command, optionsOrCb || {}, cb);
872
867
  }
873
868
  else {
874
869
  return this.send(command, optionsOrCb);
875
870
  }
876
- };
877
- IoTSiteWise.prototype.putDefaultEncryptionConfiguration = function (args, optionsOrCb, cb) {
878
- var command = new PutDefaultEncryptionConfigurationCommand(args);
871
+ }
872
+ putDefaultEncryptionConfiguration(args, optionsOrCb, cb) {
873
+ const command = new PutDefaultEncryptionConfigurationCommand(args);
879
874
  if (typeof optionsOrCb === "function") {
880
875
  this.send(command, optionsOrCb);
881
876
  }
882
877
  else if (typeof cb === "function") {
883
878
  if (typeof optionsOrCb !== "object")
884
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
879
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
885
880
  this.send(command, optionsOrCb || {}, cb);
886
881
  }
887
882
  else {
888
883
  return this.send(command, optionsOrCb);
889
884
  }
890
- };
891
- IoTSiteWise.prototype.putLoggingOptions = function (args, optionsOrCb, cb) {
892
- var command = new PutLoggingOptionsCommand(args);
885
+ }
886
+ putLoggingOptions(args, optionsOrCb, cb) {
887
+ const command = new PutLoggingOptionsCommand(args);
893
888
  if (typeof optionsOrCb === "function") {
894
889
  this.send(command, optionsOrCb);
895
890
  }
896
891
  else if (typeof cb === "function") {
897
892
  if (typeof optionsOrCb !== "object")
898
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
893
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
899
894
  this.send(command, optionsOrCb || {}, cb);
900
895
  }
901
896
  else {
902
897
  return this.send(command, optionsOrCb);
903
898
  }
904
- };
905
- IoTSiteWise.prototype.putStorageConfiguration = function (args, optionsOrCb, cb) {
906
- var command = new PutStorageConfigurationCommand(args);
899
+ }
900
+ putStorageConfiguration(args, optionsOrCb, cb) {
901
+ const command = new PutStorageConfigurationCommand(args);
907
902
  if (typeof optionsOrCb === "function") {
908
903
  this.send(command, optionsOrCb);
909
904
  }
910
905
  else if (typeof cb === "function") {
911
906
  if (typeof optionsOrCb !== "object")
912
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
907
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
913
908
  this.send(command, optionsOrCb || {}, cb);
914
909
  }
915
910
  else {
916
911
  return this.send(command, optionsOrCb);
917
912
  }
918
- };
919
- IoTSiteWise.prototype.tagResource = function (args, optionsOrCb, cb) {
920
- var command = new TagResourceCommand(args);
913
+ }
914
+ tagResource(args, optionsOrCb, cb) {
915
+ const command = new TagResourceCommand(args);
921
916
  if (typeof optionsOrCb === "function") {
922
917
  this.send(command, optionsOrCb);
923
918
  }
924
919
  else if (typeof cb === "function") {
925
920
  if (typeof optionsOrCb !== "object")
926
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
921
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
927
922
  this.send(command, optionsOrCb || {}, cb);
928
923
  }
929
924
  else {
930
925
  return this.send(command, optionsOrCb);
931
926
  }
932
- };
933
- IoTSiteWise.prototype.untagResource = function (args, optionsOrCb, cb) {
934
- var command = new UntagResourceCommand(args);
927
+ }
928
+ untagResource(args, optionsOrCb, cb) {
929
+ const command = new UntagResourceCommand(args);
935
930
  if (typeof optionsOrCb === "function") {
936
931
  this.send(command, optionsOrCb);
937
932
  }
938
933
  else if (typeof cb === "function") {
939
934
  if (typeof optionsOrCb !== "object")
940
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
935
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
941
936
  this.send(command, optionsOrCb || {}, cb);
942
937
  }
943
938
  else {
944
939
  return this.send(command, optionsOrCb);
945
940
  }
946
- };
947
- IoTSiteWise.prototype.updateAccessPolicy = function (args, optionsOrCb, cb) {
948
- var command = new UpdateAccessPolicyCommand(args);
941
+ }
942
+ updateAccessPolicy(args, optionsOrCb, cb) {
943
+ const command = new UpdateAccessPolicyCommand(args);
949
944
  if (typeof optionsOrCb === "function") {
950
945
  this.send(command, optionsOrCb);
951
946
  }
952
947
  else if (typeof cb === "function") {
953
948
  if (typeof optionsOrCb !== "object")
954
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
949
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
955
950
  this.send(command, optionsOrCb || {}, cb);
956
951
  }
957
952
  else {
958
953
  return this.send(command, optionsOrCb);
959
954
  }
960
- };
961
- IoTSiteWise.prototype.updateAsset = function (args, optionsOrCb, cb) {
962
- var command = new UpdateAssetCommand(args);
955
+ }
956
+ updateAsset(args, optionsOrCb, cb) {
957
+ const command = new UpdateAssetCommand(args);
963
958
  if (typeof optionsOrCb === "function") {
964
959
  this.send(command, optionsOrCb);
965
960
  }
966
961
  else if (typeof cb === "function") {
967
962
  if (typeof optionsOrCb !== "object")
968
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
963
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
969
964
  this.send(command, optionsOrCb || {}, cb);
970
965
  }
971
966
  else {
972
967
  return this.send(command, optionsOrCb);
973
968
  }
974
- };
975
- IoTSiteWise.prototype.updateAssetModel = function (args, optionsOrCb, cb) {
976
- var command = new UpdateAssetModelCommand(args);
969
+ }
970
+ updateAssetModel(args, optionsOrCb, cb) {
971
+ const command = new UpdateAssetModelCommand(args);
977
972
  if (typeof optionsOrCb === "function") {
978
973
  this.send(command, optionsOrCb);
979
974
  }
980
975
  else if (typeof cb === "function") {
981
976
  if (typeof optionsOrCb !== "object")
982
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
977
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
983
978
  this.send(command, optionsOrCb || {}, cb);
984
979
  }
985
980
  else {
986
981
  return this.send(command, optionsOrCb);
987
982
  }
988
- };
989
- IoTSiteWise.prototype.updateAssetProperty = function (args, optionsOrCb, cb) {
990
- var command = new UpdateAssetPropertyCommand(args);
983
+ }
984
+ updateAssetProperty(args, optionsOrCb, cb) {
985
+ const command = new UpdateAssetPropertyCommand(args);
991
986
  if (typeof optionsOrCb === "function") {
992
987
  this.send(command, optionsOrCb);
993
988
  }
994
989
  else if (typeof cb === "function") {
995
990
  if (typeof optionsOrCb !== "object")
996
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
991
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
997
992
  this.send(command, optionsOrCb || {}, cb);
998
993
  }
999
994
  else {
1000
995
  return this.send(command, optionsOrCb);
1001
996
  }
1002
- };
1003
- IoTSiteWise.prototype.updateDashboard = function (args, optionsOrCb, cb) {
1004
- var command = new UpdateDashboardCommand(args);
997
+ }
998
+ updateDashboard(args, optionsOrCb, cb) {
999
+ const command = new UpdateDashboardCommand(args);
1005
1000
  if (typeof optionsOrCb === "function") {
1006
1001
  this.send(command, optionsOrCb);
1007
1002
  }
1008
1003
  else if (typeof cb === "function") {
1009
1004
  if (typeof optionsOrCb !== "object")
1010
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1005
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1011
1006
  this.send(command, optionsOrCb || {}, cb);
1012
1007
  }
1013
1008
  else {
1014
1009
  return this.send(command, optionsOrCb);
1015
1010
  }
1016
- };
1017
- IoTSiteWise.prototype.updateGateway = function (args, optionsOrCb, cb) {
1018
- var command = new UpdateGatewayCommand(args);
1011
+ }
1012
+ updateGateway(args, optionsOrCb, cb) {
1013
+ const command = new UpdateGatewayCommand(args);
1019
1014
  if (typeof optionsOrCb === "function") {
1020
1015
  this.send(command, optionsOrCb);
1021
1016
  }
1022
1017
  else if (typeof cb === "function") {
1023
1018
  if (typeof optionsOrCb !== "object")
1024
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1019
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1025
1020
  this.send(command, optionsOrCb || {}, cb);
1026
1021
  }
1027
1022
  else {
1028
1023
  return this.send(command, optionsOrCb);
1029
1024
  }
1030
- };
1031
- IoTSiteWise.prototype.updateGatewayCapabilityConfiguration = function (args, optionsOrCb, cb) {
1032
- var command = new UpdateGatewayCapabilityConfigurationCommand(args);
1025
+ }
1026
+ updateGatewayCapabilityConfiguration(args, optionsOrCb, cb) {
1027
+ const command = new UpdateGatewayCapabilityConfigurationCommand(args);
1033
1028
  if (typeof optionsOrCb === "function") {
1034
1029
  this.send(command, optionsOrCb);
1035
1030
  }
1036
1031
  else if (typeof cb === "function") {
1037
1032
  if (typeof optionsOrCb !== "object")
1038
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1033
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1039
1034
  this.send(command, optionsOrCb || {}, cb);
1040
1035
  }
1041
1036
  else {
1042
1037
  return this.send(command, optionsOrCb);
1043
1038
  }
1044
- };
1045
- IoTSiteWise.prototype.updatePortal = function (args, optionsOrCb, cb) {
1046
- var command = new UpdatePortalCommand(args);
1039
+ }
1040
+ updatePortal(args, optionsOrCb, cb) {
1041
+ const command = new UpdatePortalCommand(args);
1047
1042
  if (typeof optionsOrCb === "function") {
1048
1043
  this.send(command, optionsOrCb);
1049
1044
  }
1050
1045
  else if (typeof cb === "function") {
1051
1046
  if (typeof optionsOrCb !== "object")
1052
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1047
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1053
1048
  this.send(command, optionsOrCb || {}, cb);
1054
1049
  }
1055
1050
  else {
1056
1051
  return this.send(command, optionsOrCb);
1057
1052
  }
1058
- };
1059
- IoTSiteWise.prototype.updateProject = function (args, optionsOrCb, cb) {
1060
- var command = new UpdateProjectCommand(args);
1053
+ }
1054
+ updateProject(args, optionsOrCb, cb) {
1055
+ const command = new UpdateProjectCommand(args);
1061
1056
  if (typeof optionsOrCb === "function") {
1062
1057
  this.send(command, optionsOrCb);
1063
1058
  }
1064
1059
  else if (typeof cb === "function") {
1065
1060
  if (typeof optionsOrCb !== "object")
1066
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1061
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1067
1062
  this.send(command, optionsOrCb || {}, cb);
1068
1063
  }
1069
1064
  else {
1070
1065
  return this.send(command, optionsOrCb);
1071
1066
  }
1072
- };
1073
- return IoTSiteWise;
1074
- }(IoTSiteWiseClient));
1075
- export { IoTSiteWise };
1067
+ }
1068
+ }