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