@aws-sdk/client-iot-wireless 3.125.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +294 -443
- package/dist-es/protocols/Aws_restJson1.js +170 -319
- package/package.json +26 -26
|
@@ -16,9 +16,7 @@ export var serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand =
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/partner-accounts";
|
|
19
|
-
body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Sidewalk
|
|
20
|
-
input.Sidewalk !== null && { Sidewalk: serializeAws_restJson1SidewalkAccountInfo(input.Sidewalk, context) })), (input.Tags !== undefined &&
|
|
21
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
19
|
+
body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkAccountInfo(input.Sidewalk, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
22
20
|
return [2, new __HttpRequest({
|
|
23
21
|
protocol: protocol,
|
|
24
22
|
hostname: hostname,
|
|
@@ -52,8 +50,7 @@ export var serializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = f
|
|
|
52
50
|
else {
|
|
53
51
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
54
52
|
}
|
|
55
|
-
body = JSON.stringify(__assign({}, (input.MulticastGroupId
|
|
56
|
-
input.MulticastGroupId !== null && { MulticastGroupId: input.MulticastGroupId })));
|
|
53
|
+
body = JSON.stringify(__assign({}, (input.MulticastGroupId != null && { MulticastGroupId: input.MulticastGroupId })));
|
|
57
54
|
return [2, new __HttpRequest({
|
|
58
55
|
protocol: protocol,
|
|
59
56
|
hostname: hostname,
|
|
@@ -87,8 +84,7 @@ export var serializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = f
|
|
|
87
84
|
else {
|
|
88
85
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
89
86
|
}
|
|
90
|
-
body = JSON.stringify(__assign({}, (input.WirelessDeviceId
|
|
91
|
-
input.WirelessDeviceId !== null && { WirelessDeviceId: input.WirelessDeviceId })));
|
|
87
|
+
body = JSON.stringify(__assign({}, (input.WirelessDeviceId != null && { WirelessDeviceId: input.WirelessDeviceId })));
|
|
92
88
|
return [2, new __HttpRequest({
|
|
93
89
|
protocol: protocol,
|
|
94
90
|
hostname: hostname,
|
|
@@ -122,8 +118,7 @@ export var serializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupComman
|
|
|
122
118
|
else {
|
|
123
119
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
124
120
|
}
|
|
125
|
-
body = JSON.stringify(__assign({}, (input.WirelessDeviceId
|
|
126
|
-
input.WirelessDeviceId !== null && { WirelessDeviceId: input.WirelessDeviceId })));
|
|
121
|
+
body = JSON.stringify(__assign({}, (input.WirelessDeviceId != null && { WirelessDeviceId: input.WirelessDeviceId })));
|
|
127
122
|
return [2, new __HttpRequest({
|
|
128
123
|
protocol: protocol,
|
|
129
124
|
hostname: hostname,
|
|
@@ -157,7 +152,7 @@ export var serializeAws_restJson1AssociateWirelessDeviceWithThingCommand = funct
|
|
|
157
152
|
else {
|
|
158
153
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
159
154
|
}
|
|
160
|
-
body = JSON.stringify(__assign({}, (input.ThingArn
|
|
155
|
+
body = JSON.stringify(__assign({}, (input.ThingArn != null && { ThingArn: input.ThingArn })));
|
|
161
156
|
return [2, new __HttpRequest({
|
|
162
157
|
protocol: protocol,
|
|
163
158
|
hostname: hostname,
|
|
@@ -191,8 +186,7 @@ export var serializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand
|
|
|
191
186
|
else {
|
|
192
187
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
193
188
|
}
|
|
194
|
-
body = JSON.stringify(__assign({}, (input.IotCertificateId
|
|
195
|
-
input.IotCertificateId !== null && { IotCertificateId: input.IotCertificateId })));
|
|
189
|
+
body = JSON.stringify(__assign({}, (input.IotCertificateId != null && { IotCertificateId: input.IotCertificateId })));
|
|
196
190
|
return [2, new __HttpRequest({
|
|
197
191
|
protocol: protocol,
|
|
198
192
|
hostname: hostname,
|
|
@@ -226,7 +220,7 @@ export var serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = func
|
|
|
226
220
|
else {
|
|
227
221
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
228
222
|
}
|
|
229
|
-
body = JSON.stringify(__assign({}, (input.ThingArn
|
|
223
|
+
body = JSON.stringify(__assign({}, (input.ThingArn != null && { ThingArn: input.ThingArn })));
|
|
230
224
|
return [2, new __HttpRequest({
|
|
231
225
|
protocol: protocol,
|
|
232
226
|
hostname: hostname,
|
|
@@ -282,9 +276,7 @@ export var serializeAws_restJson1CreateDestinationCommand = function (input, con
|
|
|
282
276
|
"content-type": "application/json",
|
|
283
277
|
};
|
|
284
278
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations";
|
|
285
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
286
|
-
input.ExpressionType !== null && { ExpressionType: input.ExpressionType })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Tags !== undefined &&
|
|
287
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
279
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Expression != null && { Expression: input.Expression })), (input.ExpressionType != null && { ExpressionType: input.ExpressionType })), (input.Name != null && { Name: input.Name })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
288
280
|
return [2, new __HttpRequest({
|
|
289
281
|
protocol: protocol,
|
|
290
282
|
hostname: hostname,
|
|
@@ -309,9 +301,7 @@ export var serializeAws_restJson1CreateDeviceProfileCommand = function (input, c
|
|
|
309
301
|
"content-type": "application/json",
|
|
310
302
|
};
|
|
311
303
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/device-profiles";
|
|
312
|
-
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.LoRaWAN
|
|
313
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
314
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
304
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
315
305
|
return [2, new __HttpRequest({
|
|
316
306
|
protocol: protocol,
|
|
317
307
|
hostname: hostname,
|
|
@@ -336,11 +326,7 @@ export var serializeAws_restJson1CreateFuotaTaskCommand = function (input, conte
|
|
|
336
326
|
"content-type": "application/json",
|
|
337
327
|
};
|
|
338
328
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/fuota-tasks";
|
|
339
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
340
|
-
input.FirmwareUpdateImage !== null && { FirmwareUpdateImage: input.FirmwareUpdateImage })), (input.FirmwareUpdateRole !== undefined &&
|
|
341
|
-
input.FirmwareUpdateRole !== null && { FirmwareUpdateRole: input.FirmwareUpdateRole })), (input.LoRaWAN !== undefined &&
|
|
342
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
343
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
329
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage })), (input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
344
330
|
return [2, new __HttpRequest({
|
|
345
331
|
protocol: protocol,
|
|
346
332
|
hostname: hostname,
|
|
@@ -365,9 +351,7 @@ export var serializeAws_restJson1CreateMulticastGroupCommand = function (input,
|
|
|
365
351
|
"content-type": "application/json",
|
|
366
352
|
};
|
|
367
353
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/multicast-groups";
|
|
368
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
369
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
370
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
354
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
371
355
|
return [2, new __HttpRequest({
|
|
372
356
|
protocol: protocol,
|
|
373
357
|
hostname: hostname,
|
|
@@ -392,13 +376,11 @@ export var serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = fun
|
|
|
392
376
|
"content-type": "application/json",
|
|
393
377
|
};
|
|
394
378
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/network-analyzer-configurations";
|
|
395
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
input.WirelessDevices !== null && {
|
|
379
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TraceContent != null && {
|
|
380
|
+
TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context),
|
|
381
|
+
})), (input.WirelessDevices != null && {
|
|
399
382
|
WirelessDevices: serializeAws_restJson1WirelessDeviceList(input.WirelessDevices, context),
|
|
400
|
-
})), (input.WirelessGateways
|
|
401
|
-
input.WirelessGateways !== null && {
|
|
383
|
+
})), (input.WirelessGateways != null && {
|
|
402
384
|
WirelessGateways: serializeAws_restJson1WirelessGatewayList(input.WirelessGateways, context),
|
|
403
385
|
})));
|
|
404
386
|
return [2, new __HttpRequest({
|
|
@@ -425,9 +407,7 @@ export var serializeAws_restJson1CreateServiceProfileCommand = function (input,
|
|
|
425
407
|
"content-type": "application/json",
|
|
426
408
|
};
|
|
427
409
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/service-profiles";
|
|
428
|
-
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.LoRaWAN
|
|
429
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANServiceProfile(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
430
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
410
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANServiceProfile(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
431
411
|
return [2, new __HttpRequest({
|
|
432
412
|
protocol: protocol,
|
|
433
413
|
hostname: hostname,
|
|
@@ -452,10 +432,7 @@ export var serializeAws_restJson1CreateWirelessDeviceCommand = function (input,
|
|
|
452
432
|
"content-type": "application/json",
|
|
453
433
|
};
|
|
454
434
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-devices";
|
|
455
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
456
|
-
input.DestinationName !== null && { DestinationName: input.DestinationName })), (input.LoRaWAN !== undefined &&
|
|
457
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
458
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
435
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.DestinationName != null && { DestinationName: input.DestinationName })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Type != null && { Type: input.Type })));
|
|
459
436
|
return [2, new __HttpRequest({
|
|
460
437
|
protocol: protocol,
|
|
461
438
|
hostname: hostname,
|
|
@@ -480,9 +457,7 @@ export var serializeAws_restJson1CreateWirelessGatewayCommand = function (input,
|
|
|
480
457
|
"content-type": "application/json",
|
|
481
458
|
};
|
|
482
459
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-gateways";
|
|
483
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
484
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANGateway(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
485
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
460
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANGateway(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
486
461
|
return [2, new __HttpRequest({
|
|
487
462
|
protocol: protocol,
|
|
488
463
|
hostname: hostname,
|
|
@@ -516,8 +491,7 @@ export var serializeAws_restJson1CreateWirelessGatewayTaskCommand = function (in
|
|
|
516
491
|
else {
|
|
517
492
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
518
493
|
}
|
|
519
|
-
body = JSON.stringify(__assign({}, (input.WirelessGatewayTaskDefinitionId
|
|
520
|
-
input.WirelessGatewayTaskDefinitionId !== null && {
|
|
494
|
+
body = JSON.stringify(__assign({}, (input.WirelessGatewayTaskDefinitionId != null && {
|
|
521
495
|
WirelessGatewayTaskDefinitionId: input.WirelessGatewayTaskDefinitionId,
|
|
522
496
|
})));
|
|
523
497
|
return [2, new __HttpRequest({
|
|
@@ -544,10 +518,7 @@ export var serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = fu
|
|
|
544
518
|
"content-type": "application/json",
|
|
545
519
|
};
|
|
546
520
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-gateway-task-definitions";
|
|
547
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AutoCreateTasks !==
|
|
548
|
-
input.AutoCreateTasks !== null && { AutoCreateTasks: input.AutoCreateTasks })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
549
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Update !== undefined &&
|
|
550
|
-
input.Update !== null && {
|
|
521
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AutoCreateTasks != null && { AutoCreateTasks: input.AutoCreateTasks })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Update != null && {
|
|
551
522
|
Update: serializeAws_restJson1UpdateWirelessGatewayTaskCreate(input.Update, context),
|
|
552
523
|
})));
|
|
553
524
|
return [2, new __HttpRequest({
|
|
@@ -2256,8 +2227,7 @@ export var serializeAws_restJson1PutPositionConfigurationCommand = function (inp
|
|
|
2256
2227
|
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2257
2228
|
}
|
|
2258
2229
|
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
2259
|
-
body = JSON.stringify(__assign(__assign({}, (input.Destination
|
|
2260
|
-
input.Solvers !== null && {
|
|
2230
|
+
body = JSON.stringify(__assign(__assign({}, (input.Destination != null && { Destination: input.Destination })), (input.Solvers != null && {
|
|
2261
2231
|
Solvers: serializeAws_restJson1PositionSolverConfigurations(input.Solvers, context),
|
|
2262
2232
|
})));
|
|
2263
2233
|
return [2, new __HttpRequest({
|
|
@@ -2295,7 +2265,7 @@ export var serializeAws_restJson1PutResourceLogLevelCommand = function (input, c
|
|
|
2295
2265
|
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2296
2266
|
}
|
|
2297
2267
|
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
2298
|
-
body = JSON.stringify(__assign({}, (input.LogLevel
|
|
2268
|
+
body = JSON.stringify(__assign({}, (input.LogLevel != null && { LogLevel: input.LogLevel })));
|
|
2299
2269
|
return [2, new __HttpRequest({
|
|
2300
2270
|
protocol: protocol,
|
|
2301
2271
|
hostname: hostname,
|
|
@@ -2387,8 +2357,7 @@ export var serializeAws_restJson1SendDataToMulticastGroupCommand = function (inp
|
|
|
2387
2357
|
else {
|
|
2388
2358
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2389
2359
|
}
|
|
2390
|
-
body = JSON.stringify(__assign(__assign({}, (input.PayloadData
|
|
2391
|
-
input.WirelessMetadata !== null && {
|
|
2360
|
+
body = JSON.stringify(__assign(__assign({}, (input.PayloadData != null && { PayloadData: input.PayloadData })), (input.WirelessMetadata != null && {
|
|
2392
2361
|
WirelessMetadata: serializeAws_restJson1MulticastWirelessMetadata(input.WirelessMetadata, context),
|
|
2393
2362
|
})));
|
|
2394
2363
|
return [2, new __HttpRequest({
|
|
@@ -2424,8 +2393,7 @@ export var serializeAws_restJson1SendDataToWirelessDeviceCommand = function (inp
|
|
|
2424
2393
|
else {
|
|
2425
2394
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2426
2395
|
}
|
|
2427
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.PayloadData
|
|
2428
|
-
input.WirelessMetadata !== null && {
|
|
2396
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.PayloadData != null && { PayloadData: input.PayloadData })), (input.TransmitMode != null && { TransmitMode: input.TransmitMode })), (input.WirelessMetadata != null && {
|
|
2429
2397
|
WirelessMetadata: serializeAws_restJson1WirelessMetadata(input.WirelessMetadata, context),
|
|
2430
2398
|
})));
|
|
2431
2399
|
return [2, new __HttpRequest({
|
|
@@ -2461,8 +2429,7 @@ export var serializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGr
|
|
|
2461
2429
|
else {
|
|
2462
2430
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2463
2431
|
}
|
|
2464
|
-
body = JSON.stringify(__assign(__assign({}, (input.QueryString
|
|
2465
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2432
|
+
body = JSON.stringify(__assign(__assign({}, (input.QueryString != null && { QueryString: input.QueryString })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2466
2433
|
return [2, new __HttpRequest({
|
|
2467
2434
|
protocol: protocol,
|
|
2468
2435
|
hostname: hostname,
|
|
@@ -2496,8 +2463,7 @@ export var serializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticas
|
|
|
2496
2463
|
else {
|
|
2497
2464
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2498
2465
|
}
|
|
2499
|
-
body = JSON.stringify(__assign(__assign({}, (input.QueryString
|
|
2500
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2466
|
+
body = JSON.stringify(__assign(__assign({}, (input.QueryString != null && { QueryString: input.QueryString })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2501
2467
|
return [2, new __HttpRequest({
|
|
2502
2468
|
protocol: protocol,
|
|
2503
2469
|
hostname: hostname,
|
|
@@ -2531,8 +2497,7 @@ export var serializeAws_restJson1StartFuotaTaskCommand = function (input, contex
|
|
|
2531
2497
|
else {
|
|
2532
2498
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2533
2499
|
}
|
|
2534
|
-
body = JSON.stringify(__assign({}, (input.LoRaWAN
|
|
2535
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANStartFuotaTask(input.LoRaWAN, context) })));
|
|
2500
|
+
body = JSON.stringify(__assign({}, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANStartFuotaTask(input.LoRaWAN, context) })));
|
|
2536
2501
|
return [2, new __HttpRequest({
|
|
2537
2502
|
protocol: protocol,
|
|
2538
2503
|
hostname: hostname,
|
|
@@ -2566,8 +2531,7 @@ export var serializeAws_restJson1StartMulticastGroupSessionCommand = function (i
|
|
|
2566
2531
|
else {
|
|
2567
2532
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2568
2533
|
}
|
|
2569
|
-
body = JSON.stringify(__assign({}, (input.LoRaWAN
|
|
2570
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastSession(input.LoRaWAN, context) })));
|
|
2534
|
+
body = JSON.stringify(__assign({}, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastSession(input.LoRaWAN, context) })));
|
|
2571
2535
|
return [2, new __HttpRequest({
|
|
2572
2536
|
protocol: protocol,
|
|
2573
2537
|
hostname: hostname,
|
|
@@ -2592,8 +2556,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
2592
2556
|
};
|
|
2593
2557
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
2594
2558
|
query = __assign({}, (input.ResourceArn !== undefined && { resourceArn: input.ResourceArn }));
|
|
2595
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
2596
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2559
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2597
2560
|
return [2, new __HttpRequest({
|
|
2598
2561
|
protocol: protocol,
|
|
2599
2562
|
hostname: hostname,
|
|
@@ -2682,8 +2645,7 @@ export var serializeAws_restJson1UpdateDestinationCommand = function (input, con
|
|
|
2682
2645
|
else {
|
|
2683
2646
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
2684
2647
|
}
|
|
2685
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2686
|
-
input.ExpressionType !== null && { ExpressionType: input.ExpressionType })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })));
|
|
2648
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Expression != null && { Expression: input.Expression })), (input.ExpressionType != null && { ExpressionType: input.ExpressionType })), (input.RoleArn != null && { RoleArn: input.RoleArn })));
|
|
2687
2649
|
return [2, new __HttpRequest({
|
|
2688
2650
|
protocol: protocol,
|
|
2689
2651
|
hostname: hostname,
|
|
@@ -2707,15 +2669,11 @@ export var serializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand
|
|
|
2707
2669
|
"content-type": "application/json",
|
|
2708
2670
|
};
|
|
2709
2671
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations-resource-types";
|
|
2710
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus
|
|
2711
|
-
input.ConnectionStatus !== null && {
|
|
2672
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus != null && {
|
|
2712
2673
|
ConnectionStatus: serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration(input.ConnectionStatus, context),
|
|
2713
|
-
})), (input.DeviceRegistrationState
|
|
2714
|
-
input.DeviceRegistrationState !== null && {
|
|
2674
|
+
})), (input.DeviceRegistrationState != null && {
|
|
2715
2675
|
DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration(input.DeviceRegistrationState, context),
|
|
2716
|
-
})), (input.Join
|
|
2717
|
-
input.Join !== null && { Join: serializeAws_restJson1JoinResourceTypeEventConfiguration(input.Join, context) })), (input.Proximity !== undefined &&
|
|
2718
|
-
input.Proximity !== null && {
|
|
2676
|
+
})), (input.Join != null && { Join: serializeAws_restJson1JoinResourceTypeEventConfiguration(input.Join, context) })), (input.Proximity != null && {
|
|
2719
2677
|
Proximity: serializeAws_restJson1ProximityResourceTypeEventConfiguration(input.Proximity, context),
|
|
2720
2678
|
})));
|
|
2721
2679
|
return [2, new __HttpRequest({
|
|
@@ -2751,10 +2709,7 @@ export var serializeAws_restJson1UpdateFuotaTaskCommand = function (input, conte
|
|
|
2751
2709
|
else {
|
|
2752
2710
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2753
2711
|
}
|
|
2754
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2755
|
-
input.FirmwareUpdateImage !== null && { FirmwareUpdateImage: input.FirmwareUpdateImage })), (input.FirmwareUpdateRole !== undefined &&
|
|
2756
|
-
input.FirmwareUpdateRole !== null && { FirmwareUpdateRole: input.FirmwareUpdateRole })), (input.LoRaWAN !== undefined &&
|
|
2757
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
2712
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage })), (input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })));
|
|
2758
2713
|
return [2, new __HttpRequest({
|
|
2759
2714
|
protocol: protocol,
|
|
2760
2715
|
hostname: hostname,
|
|
@@ -2778,12 +2733,9 @@ export var serializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = functio
|
|
|
2778
2733
|
"content-type": "application/json",
|
|
2779
2734
|
};
|
|
2780
2735
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/log-levels";
|
|
2781
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.DefaultLogLevel
|
|
2782
|
-
input.DefaultLogLevel !== null && { DefaultLogLevel: input.DefaultLogLevel })), (input.WirelessDeviceLogOptions !== undefined &&
|
|
2783
|
-
input.WirelessDeviceLogOptions !== null && {
|
|
2736
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.DefaultLogLevel != null && { DefaultLogLevel: input.DefaultLogLevel })), (input.WirelessDeviceLogOptions != null && {
|
|
2784
2737
|
WirelessDeviceLogOptions: serializeAws_restJson1WirelessDeviceLogOptionList(input.WirelessDeviceLogOptions, context),
|
|
2785
|
-
})), (input.WirelessGatewayLogOptions
|
|
2786
|
-
input.WirelessGatewayLogOptions !== null && {
|
|
2738
|
+
})), (input.WirelessGatewayLogOptions != null && {
|
|
2787
2739
|
WirelessGatewayLogOptions: serializeAws_restJson1WirelessGatewayLogOptionList(input.WirelessGatewayLogOptions, context),
|
|
2788
2740
|
})));
|
|
2789
2741
|
return [2, new __HttpRequest({
|
|
@@ -2819,8 +2771,7 @@ export var serializeAws_restJson1UpdateMulticastGroupCommand = function (input,
|
|
|
2819
2771
|
else {
|
|
2820
2772
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2821
2773
|
}
|
|
2822
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
2823
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
2774
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })));
|
|
2824
2775
|
return [2, new __HttpRequest({
|
|
2825
2776
|
protocol: protocol,
|
|
2826
2777
|
hostname: hostname,
|
|
@@ -2855,18 +2806,15 @@ export var serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = fun
|
|
|
2855
2806
|
else {
|
|
2856
2807
|
throw new Error("No value provided for input HTTP label: ConfigurationName.");
|
|
2857
2808
|
}
|
|
2858
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2859
|
-
|
|
2860
|
-
|
|
2809
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.TraceContent != null && {
|
|
2810
|
+
TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context),
|
|
2811
|
+
})), (input.WirelessDevicesToAdd != null && {
|
|
2861
2812
|
WirelessDevicesToAdd: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToAdd, context),
|
|
2862
|
-
})), (input.WirelessDevicesToRemove
|
|
2863
|
-
input.WirelessDevicesToRemove !== null && {
|
|
2813
|
+
})), (input.WirelessDevicesToRemove != null && {
|
|
2864
2814
|
WirelessDevicesToRemove: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToRemove, context),
|
|
2865
|
-
})), (input.WirelessGatewaysToAdd
|
|
2866
|
-
input.WirelessGatewaysToAdd !== null && {
|
|
2815
|
+
})), (input.WirelessGatewaysToAdd != null && {
|
|
2867
2816
|
WirelessGatewaysToAdd: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToAdd, context),
|
|
2868
|
-
})), (input.WirelessGatewaysToRemove
|
|
2869
|
-
input.WirelessGatewaysToRemove !== null && {
|
|
2817
|
+
})), (input.WirelessGatewaysToRemove != null && {
|
|
2870
2818
|
WirelessGatewaysToRemove: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToRemove, context),
|
|
2871
2819
|
})));
|
|
2872
2820
|
return [2, new __HttpRequest({
|
|
@@ -2903,8 +2851,7 @@ export var serializeAws_restJson1UpdatePartnerAccountCommand = function (input,
|
|
|
2903
2851
|
throw new Error("No value provided for input HTTP label: PartnerAccountId.");
|
|
2904
2852
|
}
|
|
2905
2853
|
query = __assign({}, (input.PartnerType !== undefined && { partnerType: input.PartnerType }));
|
|
2906
|
-
body = JSON.stringify(__assign({}, (input.Sidewalk
|
|
2907
|
-
input.Sidewalk !== null && { Sidewalk: serializeAws_restJson1SidewalkUpdateAccount(input.Sidewalk, context) })));
|
|
2854
|
+
body = JSON.stringify(__assign({}, (input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkUpdateAccount(input.Sidewalk, context) })));
|
|
2908
2855
|
return [2, new __HttpRequest({
|
|
2909
2856
|
protocol: protocol,
|
|
2910
2857
|
hostname: hostname,
|
|
@@ -2940,8 +2887,7 @@ export var serializeAws_restJson1UpdatePositionCommand = function (input, contex
|
|
|
2940
2887
|
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2941
2888
|
}
|
|
2942
2889
|
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
2943
|
-
body = JSON.stringify(__assign({}, (input.Position
|
|
2944
|
-
input.Position !== null && { Position: serializeAws_restJson1PositionCoordinate(input.Position, context) })));
|
|
2890
|
+
body = JSON.stringify(__assign({}, (input.Position != null && { Position: serializeAws_restJson1PositionCoordinate(input.Position, context) })));
|
|
2945
2891
|
return [2, new __HttpRequest({
|
|
2946
2892
|
protocol: protocol,
|
|
2947
2893
|
hostname: hostname,
|
|
@@ -2977,15 +2923,11 @@ export var serializeAws_restJson1UpdateResourceEventConfigurationCommand = funct
|
|
|
2977
2923
|
throw new Error("No value provided for input HTTP label: Identifier.");
|
|
2978
2924
|
}
|
|
2979
2925
|
query = __assign(__assign({}, (input.IdentifierType !== undefined && { identifierType: input.IdentifierType })), (input.PartnerType !== undefined && { partnerType: input.PartnerType }));
|
|
2980
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus
|
|
2981
|
-
input.ConnectionStatus !== null && {
|
|
2926
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus != null && {
|
|
2982
2927
|
ConnectionStatus: serializeAws_restJson1ConnectionStatusEventConfiguration(input.ConnectionStatus, context),
|
|
2983
|
-
})), (input.DeviceRegistrationState
|
|
2984
|
-
input.DeviceRegistrationState !== null && {
|
|
2928
|
+
})), (input.DeviceRegistrationState != null && {
|
|
2985
2929
|
DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateEventConfiguration(input.DeviceRegistrationState, context),
|
|
2986
|
-
})), (input.Join
|
|
2987
|
-
input.Join !== null && { Join: serializeAws_restJson1JoinEventConfiguration(input.Join, context) })), (input.Proximity !== undefined &&
|
|
2988
|
-
input.Proximity !== null && {
|
|
2930
|
+
})), (input.Join != null && { Join: serializeAws_restJson1JoinEventConfiguration(input.Join, context) })), (input.Proximity != null && {
|
|
2989
2931
|
Proximity: serializeAws_restJson1ProximityEventConfiguration(input.Proximity, context),
|
|
2990
2932
|
})));
|
|
2991
2933
|
return [2, new __HttpRequest({
|
|
@@ -3022,9 +2964,7 @@ export var serializeAws_restJson1UpdateWirelessDeviceCommand = function (input,
|
|
|
3022
2964
|
else {
|
|
3023
2965
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
3024
2966
|
}
|
|
3025
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
3026
|
-
input.DestinationName !== null && { DestinationName: input.DestinationName })), (input.LoRaWAN !== undefined &&
|
|
3027
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
2967
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DestinationName != null && { DestinationName: input.DestinationName })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })));
|
|
3028
2968
|
return [2, new __HttpRequest({
|
|
3029
2969
|
protocol: protocol,
|
|
3030
2970
|
hostname: hostname,
|
|
@@ -3058,11 +2998,11 @@ export var serializeAws_restJson1UpdateWirelessGatewayCommand = function (input,
|
|
|
3058
2998
|
else {
|
|
3059
2999
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
3060
3000
|
}
|
|
3061
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
3062
|
-
input.JoinEuiFilters !== null && {
|
|
3001
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.JoinEuiFilters != null && {
|
|
3063
3002
|
JoinEuiFilters: serializeAws_restJson1JoinEuiFilters(input.JoinEuiFilters, context),
|
|
3064
|
-
})), (input.Name
|
|
3065
|
-
|
|
3003
|
+
})), (input.Name != null && { Name: input.Name })), (input.NetIdFilters != null && {
|
|
3004
|
+
NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context),
|
|
3005
|
+
})));
|
|
3066
3006
|
return [2, new __HttpRequest({
|
|
3067
3007
|
protocol: protocol,
|
|
3068
3008
|
hostname: hostname,
|
|
@@ -10499,40 +10439,34 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
10499
10439
|
});
|
|
10500
10440
|
}); };
|
|
10501
10441
|
var serializeAws_restJson1AbpV1_0_x = function (input, context) {
|
|
10502
|
-
return __assign(__assign(__assign({}, (input.DevAddr
|
|
10503
|
-
input.SessionKeys !== null && {
|
|
10442
|
+
return __assign(__assign(__assign({}, (input.DevAddr != null && { DevAddr: input.DevAddr })), (input.FCntStart != null && { FCntStart: input.FCntStart })), (input.SessionKeys != null && {
|
|
10504
10443
|
SessionKeys: serializeAws_restJson1SessionKeysAbpV1_0_x(input.SessionKeys, context),
|
|
10505
10444
|
}));
|
|
10506
10445
|
};
|
|
10507
10446
|
var serializeAws_restJson1AbpV1_1 = function (input, context) {
|
|
10508
|
-
return __assign(__assign(__assign({}, (input.DevAddr
|
|
10509
|
-
input.SessionKeys !== null && {
|
|
10447
|
+
return __assign(__assign(__assign({}, (input.DevAddr != null && { DevAddr: input.DevAddr })), (input.FCntStart != null && { FCntStart: input.FCntStart })), (input.SessionKeys != null && {
|
|
10510
10448
|
SessionKeys: serializeAws_restJson1SessionKeysAbpV1_1(input.SessionKeys, context),
|
|
10511
10449
|
}));
|
|
10512
10450
|
};
|
|
10513
10451
|
var serializeAws_restJson1ConnectionStatusEventConfiguration = function (input, context) {
|
|
10514
|
-
return __assign(__assign({}, (input.LoRaWAN
|
|
10515
|
-
input.LoRaWAN !== null && {
|
|
10452
|
+
return __assign(__assign({}, (input.LoRaWAN != null && {
|
|
10516
10453
|
LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(input.LoRaWAN, context),
|
|
10517
|
-
})), (input.WirelessGatewayIdEventTopic
|
|
10518
|
-
|
|
10454
|
+
})), (input.WirelessGatewayIdEventTopic != null && {
|
|
10455
|
+
WirelessGatewayIdEventTopic: input.WirelessGatewayIdEventTopic,
|
|
10456
|
+
}));
|
|
10519
10457
|
};
|
|
10520
10458
|
var serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = function (input, context) {
|
|
10521
|
-
return __assign({}, (input.LoRaWAN
|
|
10522
|
-
input.LoRaWAN !== null && {
|
|
10459
|
+
return __assign({}, (input.LoRaWAN != null && {
|
|
10523
10460
|
LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(input.LoRaWAN, context),
|
|
10524
10461
|
}));
|
|
10525
10462
|
};
|
|
10526
10463
|
var serializeAws_restJson1DeviceRegistrationStateEventConfiguration = function (input, context) {
|
|
10527
|
-
return __assign(__assign({}, (input.Sidewalk
|
|
10528
|
-
input.Sidewalk !== null && {
|
|
10464
|
+
return __assign(__assign({}, (input.Sidewalk != null && {
|
|
10529
10465
|
Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
|
|
10530
|
-
})), (input.WirelessDeviceIdEventTopic
|
|
10531
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10466
|
+
})), (input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10532
10467
|
};
|
|
10533
10468
|
var serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = function (input, context) {
|
|
10534
|
-
return __assign({}, (input.Sidewalk
|
|
10535
|
-
input.Sidewalk !== null && {
|
|
10469
|
+
return __assign({}, (input.Sidewalk != null && {
|
|
10536
10470
|
Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
|
|
10537
10471
|
}));
|
|
10538
10472
|
};
|
|
@@ -10547,8 +10481,7 @@ var serializeAws_restJson1FactoryPresetFreqsList = function (input, context) {
|
|
|
10547
10481
|
});
|
|
10548
10482
|
};
|
|
10549
10483
|
var serializeAws_restJson1FPorts = function (input, context) {
|
|
10550
|
-
return __assign(__assign(__assign(__assign({}, (input.ClockSync
|
|
10551
|
-
input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }));
|
|
10484
|
+
return __assign(__assign(__assign(__assign({}, (input.ClockSync != null && { ClockSync: input.ClockSync })), (input.Fuota != null && { Fuota: input.Fuota })), (input.Multicast != null && { Multicast: input.Multicast })), (input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }));
|
|
10552
10485
|
};
|
|
10553
10486
|
var serializeAws_restJson1JoinEuiFilters = function (input, context) {
|
|
10554
10487
|
return input
|
|
@@ -10571,114 +10504,80 @@ var serializeAws_restJson1JoinEuiRange = function (input, context) {
|
|
|
10571
10504
|
});
|
|
10572
10505
|
};
|
|
10573
10506
|
var serializeAws_restJson1JoinEventConfiguration = function (input, context) {
|
|
10574
|
-
return __assign(__assign({}, (input.LoRaWAN
|
|
10575
|
-
input.LoRaWAN !== null && {
|
|
10507
|
+
return __assign(__assign({}, (input.LoRaWAN != null && {
|
|
10576
10508
|
LoRaWAN: serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(input.LoRaWAN, context),
|
|
10577
|
-
})), (input.WirelessDeviceIdEventTopic
|
|
10578
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10509
|
+
})), (input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10579
10510
|
};
|
|
10580
10511
|
var serializeAws_restJson1JoinResourceTypeEventConfiguration = function (input, context) {
|
|
10581
|
-
return __assign({}, (input.LoRaWAN
|
|
10582
|
-
input.LoRaWAN !== null && {
|
|
10512
|
+
return __assign({}, (input.LoRaWAN != null && {
|
|
10583
10513
|
LoRaWAN: serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(input.LoRaWAN, context),
|
|
10584
10514
|
}));
|
|
10585
10515
|
};
|
|
10586
10516
|
var serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations = function (input, context) {
|
|
10587
|
-
return __assign({}, (input.GatewayEuiEventTopic
|
|
10588
|
-
input.GatewayEuiEventTopic !== null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }));
|
|
10517
|
+
return __assign({}, (input.GatewayEuiEventTopic != null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }));
|
|
10589
10518
|
};
|
|
10590
10519
|
var serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration = function (input, context) {
|
|
10591
|
-
return __assign({}, (input.WirelessGatewayEventTopic
|
|
10592
|
-
input.WirelessGatewayEventTopic !== null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }));
|
|
10520
|
+
return __assign({}, (input.WirelessGatewayEventTopic != null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }));
|
|
10593
10521
|
};
|
|
10594
10522
|
var serializeAws_restJson1LoRaWANDevice = function (input, context) {
|
|
10595
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x
|
|
10596
|
-
input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1AbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 !== undefined &&
|
|
10597
|
-
input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1AbpV1_1(input.AbpV1_1, context) })), (input.DevEui !== undefined && input.DevEui !== null && { DevEui: input.DevEui })), (input.DeviceProfileId !== undefined &&
|
|
10598
|
-
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId })), (input.FPorts !== undefined &&
|
|
10599
|
-
input.FPorts !== null && { FPorts: serializeAws_restJson1FPorts(input.FPorts, context) })), (input.OtaaV1_0_x !== undefined &&
|
|
10600
|
-
input.OtaaV1_0_x !== null && { OtaaV1_0_x: serializeAws_restJson1OtaaV1_0_x(input.OtaaV1_0_x, context) })), (input.OtaaV1_1 !== undefined &&
|
|
10601
|
-
input.OtaaV1_1 !== null && { OtaaV1_1: serializeAws_restJson1OtaaV1_1(input.OtaaV1_1, context) })), (input.ServiceProfileId !== undefined &&
|
|
10602
|
-
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10523
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x != null && { AbpV1_0_x: serializeAws_restJson1AbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 != null && { AbpV1_1: serializeAws_restJson1AbpV1_1(input.AbpV1_1, context) })), (input.DevEui != null && { DevEui: input.DevEui })), (input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId })), (input.FPorts != null && { FPorts: serializeAws_restJson1FPorts(input.FPorts, context) })), (input.OtaaV1_0_x != null && { OtaaV1_0_x: serializeAws_restJson1OtaaV1_0_x(input.OtaaV1_0_x, context) })), (input.OtaaV1_1 != null && { OtaaV1_1: serializeAws_restJson1OtaaV1_1(input.OtaaV1_1, context) })), (input.ServiceProfileId != null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10603
10524
|
};
|
|
10604
10525
|
var serializeAws_restJson1LoRaWANDeviceProfile = function (input, context) {
|
|
10605
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClassBTimeout
|
|
10606
|
-
input.FactoryPresetFreqsList !== null && {
|
|
10526
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClassBTimeout != null && { ClassBTimeout: input.ClassBTimeout })), (input.ClassCTimeout != null && { ClassCTimeout: input.ClassCTimeout })), (input.FactoryPresetFreqsList != null && {
|
|
10607
10527
|
FactoryPresetFreqsList: serializeAws_restJson1FactoryPresetFreqsList(input.FactoryPresetFreqsList, context),
|
|
10608
|
-
})), (input.MacVersion
|
|
10609
|
-
input.PingSlotPeriod !== null && { PingSlotPeriod: input.PingSlotPeriod })), (input.RegParamsRevision !== undefined &&
|
|
10610
|
-
input.RegParamsRevision !== null && { RegParamsRevision: input.RegParamsRevision })), (input.RfRegion !== undefined && input.RfRegion !== null && { RfRegion: input.RfRegion })), (input.RxDataRate2 !== undefined && input.RxDataRate2 !== null && { RxDataRate2: input.RxDataRate2 })), (input.RxDelay1 !== undefined && input.RxDelay1 !== null && { RxDelay1: input.RxDelay1 })), (input.RxDrOffset1 !== undefined && input.RxDrOffset1 !== null && { RxDrOffset1: input.RxDrOffset1 })), (input.RxFreq2 !== undefined && input.RxFreq2 !== null && { RxFreq2: input.RxFreq2 })), (input.Supports32BitFCnt !== undefined &&
|
|
10611
|
-
input.Supports32BitFCnt !== null && { Supports32BitFCnt: input.Supports32BitFCnt })), (input.SupportsClassB !== undefined &&
|
|
10612
|
-
input.SupportsClassB !== null && { SupportsClassB: input.SupportsClassB })), (input.SupportsClassC !== undefined &&
|
|
10613
|
-
input.SupportsClassC !== null && { SupportsClassC: input.SupportsClassC })), (input.SupportsJoin !== undefined && input.SupportsJoin !== null && { SupportsJoin: input.SupportsJoin }));
|
|
10528
|
+
})), (input.MacVersion != null && { MacVersion: input.MacVersion })), (input.MaxDutyCycle != null && { MaxDutyCycle: input.MaxDutyCycle })), (input.MaxEirp != null && { MaxEirp: input.MaxEirp })), (input.PingSlotDr != null && { PingSlotDr: input.PingSlotDr })), (input.PingSlotFreq != null && { PingSlotFreq: input.PingSlotFreq })), (input.PingSlotPeriod != null && { PingSlotPeriod: input.PingSlotPeriod })), (input.RegParamsRevision != null && { RegParamsRevision: input.RegParamsRevision })), (input.RfRegion != null && { RfRegion: input.RfRegion })), (input.RxDataRate2 != null && { RxDataRate2: input.RxDataRate2 })), (input.RxDelay1 != null && { RxDelay1: input.RxDelay1 })), (input.RxDrOffset1 != null && { RxDrOffset1: input.RxDrOffset1 })), (input.RxFreq2 != null && { RxFreq2: input.RxFreq2 })), (input.Supports32BitFCnt != null && { Supports32BitFCnt: input.Supports32BitFCnt })), (input.SupportsClassB != null && { SupportsClassB: input.SupportsClassB })), (input.SupportsClassC != null && { SupportsClassC: input.SupportsClassC })), (input.SupportsJoin != null && { SupportsJoin: input.SupportsJoin }));
|
|
10614
10529
|
};
|
|
10615
10530
|
var serializeAws_restJson1LoRaWANFuotaTask = function (input, context) {
|
|
10616
|
-
return __assign({}, (input.RfRegion
|
|
10531
|
+
return __assign({}, (input.RfRegion != null && { RfRegion: input.RfRegion }));
|
|
10617
10532
|
};
|
|
10618
10533
|
var serializeAws_restJson1LoRaWANGateway = function (input, context) {
|
|
10619
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.GatewayEui
|
|
10620
|
-
input.JoinEuiFilters !== null && {
|
|
10534
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.GatewayEui != null && { GatewayEui: input.GatewayEui })), (input.JoinEuiFilters != null && {
|
|
10621
10535
|
JoinEuiFilters: serializeAws_restJson1JoinEuiFilters(input.JoinEuiFilters, context),
|
|
10622
|
-
})), (input.NetIdFilters
|
|
10623
|
-
|
|
10624
|
-
|
|
10536
|
+
})), (input.NetIdFilters != null && {
|
|
10537
|
+
NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context),
|
|
10538
|
+
})), (input.RfRegion != null && { RfRegion: input.RfRegion })), (input.SubBands != null && { SubBands: serializeAws_restJson1SubBands(input.SubBands, context) }));
|
|
10625
10539
|
};
|
|
10626
10540
|
var serializeAws_restJson1LoRaWANGatewayVersion = function (input, context) {
|
|
10627
|
-
return __assign(__assign(__assign({}, (input.Model
|
|
10628
|
-
input.PackageVersion !== null && { PackageVersion: input.PackageVersion })), (input.Station !== undefined && input.Station !== null && { Station: input.Station }));
|
|
10541
|
+
return __assign(__assign(__assign({}, (input.Model != null && { Model: input.Model })), (input.PackageVersion != null && { PackageVersion: input.PackageVersion })), (input.Station != null && { Station: input.Station }));
|
|
10629
10542
|
};
|
|
10630
10543
|
var serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations = function (input, context) {
|
|
10631
|
-
return __assign({}, (input.DevEuiEventTopic
|
|
10632
|
-
input.DevEuiEventTopic !== null && { DevEuiEventTopic: input.DevEuiEventTopic }));
|
|
10544
|
+
return __assign({}, (input.DevEuiEventTopic != null && { DevEuiEventTopic: input.DevEuiEventTopic }));
|
|
10633
10545
|
};
|
|
10634
10546
|
var serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration = function (input, context) {
|
|
10635
|
-
return __assign({}, (input.WirelessDeviceEventTopic
|
|
10636
|
-
input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
|
|
10547
|
+
return __assign({}, (input.WirelessDeviceEventTopic != null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
|
|
10637
10548
|
};
|
|
10638
10549
|
var serializeAws_restJson1LoRaWANMulticast = function (input, context) {
|
|
10639
|
-
return __assign(__assign({}, (input.DlClass
|
|
10550
|
+
return __assign(__assign({}, (input.DlClass != null && { DlClass: input.DlClass })), (input.RfRegion != null && { RfRegion: input.RfRegion }));
|
|
10640
10551
|
};
|
|
10641
10552
|
var serializeAws_restJson1LoRaWANMulticastMetadata = function (input, context) {
|
|
10642
|
-
return __assign({}, (input.FPort
|
|
10553
|
+
return __assign({}, (input.FPort != null && { FPort: input.FPort }));
|
|
10643
10554
|
};
|
|
10644
10555
|
var serializeAws_restJson1LoRaWANMulticastSession = function (input, context) {
|
|
10645
|
-
return __assign(__assign(__assign(__assign({}, (input.DlDr
|
|
10646
|
-
input.SessionStartTime !== null && {
|
|
10556
|
+
return __assign(__assign(__assign(__assign({}, (input.DlDr != null && { DlDr: input.DlDr })), (input.DlFreq != null && { DlFreq: input.DlFreq })), (input.SessionStartTime != null && {
|
|
10647
10557
|
SessionStartTime: input.SessionStartTime.toISOString().split(".")[0] + "Z",
|
|
10648
|
-
})), (input.SessionTimeout
|
|
10649
|
-
input.SessionTimeout !== null && { SessionTimeout: input.SessionTimeout }));
|
|
10558
|
+
})), (input.SessionTimeout != null && { SessionTimeout: input.SessionTimeout }));
|
|
10650
10559
|
};
|
|
10651
10560
|
var serializeAws_restJson1LoRaWANSendDataToDevice = function (input, context) {
|
|
10652
|
-
return __assign({}, (input.FPort
|
|
10561
|
+
return __assign({}, (input.FPort != null && { FPort: input.FPort }));
|
|
10653
10562
|
};
|
|
10654
10563
|
var serializeAws_restJson1LoRaWANServiceProfile = function (input, context) {
|
|
10655
|
-
return __assign({}, (input.AddGwMetadata
|
|
10564
|
+
return __assign({}, (input.AddGwMetadata != null && { AddGwMetadata: input.AddGwMetadata }));
|
|
10656
10565
|
};
|
|
10657
10566
|
var serializeAws_restJson1LoRaWANStartFuotaTask = function (input, context) {
|
|
10658
|
-
return __assign({}, (input.StartTime
|
|
10659
|
-
input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }));
|
|
10567
|
+
return __assign({}, (input.StartTime != null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }));
|
|
10660
10568
|
};
|
|
10661
10569
|
var serializeAws_restJson1LoRaWANUpdateDevice = function (input, context) {
|
|
10662
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x
|
|
10663
|
-
input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 !== undefined &&
|
|
10664
|
-
input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) })), (input.DeviceProfileId !== undefined &&
|
|
10665
|
-
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId })), (input.FPorts !== undefined &&
|
|
10666
|
-
input.FPorts !== null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) })), (input.ServiceProfileId !== undefined &&
|
|
10667
|
-
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10570
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x != null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 != null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) })), (input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId })), (input.FPorts != null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) })), (input.ServiceProfileId != null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10668
10571
|
};
|
|
10669
10572
|
var serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = function (input, context) {
|
|
10670
|
-
return __assign(__assign(__assign(__assign({}, (input.CurrentVersion
|
|
10671
|
-
input.CurrentVersion !== null && {
|
|
10573
|
+
return __assign(__assign(__assign(__assign({}, (input.CurrentVersion != null && {
|
|
10672
10574
|
CurrentVersion: serializeAws_restJson1LoRaWANGatewayVersion(input.CurrentVersion, context),
|
|
10673
|
-
})), (input.SigKeyCrc
|
|
10674
|
-
input.UpdateSignature !== null && { UpdateSignature: input.UpdateSignature })), (input.UpdateVersion !== undefined &&
|
|
10675
|
-
input.UpdateVersion !== null && {
|
|
10575
|
+
})), (input.SigKeyCrc != null && { SigKeyCrc: input.SigKeyCrc })), (input.UpdateSignature != null && { UpdateSignature: input.UpdateSignature })), (input.UpdateVersion != null && {
|
|
10676
10576
|
UpdateVersion: serializeAws_restJson1LoRaWANGatewayVersion(input.UpdateVersion, context),
|
|
10677
10577
|
}));
|
|
10678
10578
|
};
|
|
10679
10579
|
var serializeAws_restJson1MulticastWirelessMetadata = function (input, context) {
|
|
10680
|
-
return __assign({}, (input.LoRaWAN
|
|
10681
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastMetadata(input.LoRaWAN, context) }));
|
|
10580
|
+
return __assign({}, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastMetadata(input.LoRaWAN, context) }));
|
|
10682
10581
|
};
|
|
10683
10582
|
var serializeAws_restJson1NetIdFilters = function (input, context) {
|
|
10684
10583
|
return input
|
|
@@ -10691,10 +10590,10 @@ var serializeAws_restJson1NetIdFilters = function (input, context) {
|
|
|
10691
10590
|
});
|
|
10692
10591
|
};
|
|
10693
10592
|
var serializeAws_restJson1OtaaV1_0_x = function (input, context) {
|
|
10694
|
-
return __assign(__assign(__assign({}, (input.AppEui
|
|
10593
|
+
return __assign(__assign(__assign({}, (input.AppEui != null && { AppEui: input.AppEui })), (input.AppKey != null && { AppKey: input.AppKey })), (input.GenAppKey != null && { GenAppKey: input.GenAppKey }));
|
|
10695
10594
|
};
|
|
10696
10595
|
var serializeAws_restJson1OtaaV1_1 = function (input, context) {
|
|
10697
|
-
return __assign(__assign(__assign({}, (input.AppKey
|
|
10596
|
+
return __assign(__assign(__assign({}, (input.AppKey != null && { AppKey: input.AppKey })), (input.JoinEui != null && { JoinEui: input.JoinEui })), (input.NwkKey != null && { NwkKey: input.NwkKey }));
|
|
10698
10597
|
};
|
|
10699
10598
|
var serializeAws_restJson1PositionCoordinate = function (input, context) {
|
|
10700
10599
|
return input
|
|
@@ -10707,54 +10606,46 @@ var serializeAws_restJson1PositionCoordinate = function (input, context) {
|
|
|
10707
10606
|
});
|
|
10708
10607
|
};
|
|
10709
10608
|
var serializeAws_restJson1Positioning = function (input, context) {
|
|
10710
|
-
return __assign(__assign(__assign({}, (input.ClockSync
|
|
10609
|
+
return __assign(__assign(__assign({}, (input.ClockSync != null && { ClockSync: input.ClockSync })), (input.Gnss != null && { Gnss: input.Gnss })), (input.Stream != null && { Stream: input.Stream }));
|
|
10711
10610
|
};
|
|
10712
10611
|
var serializeAws_restJson1PositionSolverConfigurations = function (input, context) {
|
|
10713
|
-
return __assign({}, (input.SemtechGnss
|
|
10714
|
-
input.SemtechGnss !== null && {
|
|
10612
|
+
return __assign({}, (input.SemtechGnss != null && {
|
|
10715
10613
|
SemtechGnss: serializeAws_restJson1SemtechGnssConfiguration(input.SemtechGnss, context),
|
|
10716
10614
|
}));
|
|
10717
10615
|
};
|
|
10718
10616
|
var serializeAws_restJson1ProximityEventConfiguration = function (input, context) {
|
|
10719
|
-
return __assign(__assign({}, (input.Sidewalk
|
|
10720
|
-
input.Sidewalk !== null && {
|
|
10617
|
+
return __assign(__assign({}, (input.Sidewalk != null && {
|
|
10721
10618
|
Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
|
|
10722
|
-
})), (input.WirelessDeviceIdEventTopic
|
|
10723
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10619
|
+
})), (input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10724
10620
|
};
|
|
10725
10621
|
var serializeAws_restJson1ProximityResourceTypeEventConfiguration = function (input, context) {
|
|
10726
|
-
return __assign({}, (input.Sidewalk
|
|
10727
|
-
input.Sidewalk !== null && {
|
|
10622
|
+
return __assign({}, (input.Sidewalk != null && {
|
|
10728
10623
|
Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
|
|
10729
10624
|
}));
|
|
10730
10625
|
};
|
|
10731
10626
|
var serializeAws_restJson1SemtechGnssConfiguration = function (input, context) {
|
|
10732
|
-
return __assign(__assign({}, (input.Fec
|
|
10627
|
+
return __assign(__assign({}, (input.Fec != null && { Fec: input.Fec })), (input.Status != null && { Status: input.Status }));
|
|
10733
10628
|
};
|
|
10734
10629
|
var serializeAws_restJson1SessionKeysAbpV1_0_x = function (input, context) {
|
|
10735
|
-
return __assign(__assign({}, (input.AppSKey
|
|
10630
|
+
return __assign(__assign({}, (input.AppSKey != null && { AppSKey: input.AppSKey })), (input.NwkSKey != null && { NwkSKey: input.NwkSKey }));
|
|
10736
10631
|
};
|
|
10737
10632
|
var serializeAws_restJson1SessionKeysAbpV1_1 = function (input, context) {
|
|
10738
|
-
return __assign(__assign(__assign(__assign({}, (input.AppSKey
|
|
10633
|
+
return __assign(__assign(__assign(__assign({}, (input.AppSKey != null && { AppSKey: input.AppSKey })), (input.FNwkSIntKey != null && { FNwkSIntKey: input.FNwkSIntKey })), (input.NwkSEncKey != null && { NwkSEncKey: input.NwkSEncKey })), (input.SNwkSIntKey != null && { SNwkSIntKey: input.SNwkSIntKey }));
|
|
10739
10634
|
};
|
|
10740
10635
|
var serializeAws_restJson1SidewalkAccountInfo = function (input, context) {
|
|
10741
|
-
return __assign(__assign({}, (input.AmazonId
|
|
10742
|
-
input.AppServerPrivateKey !== null && { AppServerPrivateKey: input.AppServerPrivateKey }));
|
|
10636
|
+
return __assign(__assign({}, (input.AmazonId != null && { AmazonId: input.AmazonId })), (input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }));
|
|
10743
10637
|
};
|
|
10744
10638
|
var serializeAws_restJson1SidewalkEventNotificationConfigurations = function (input, context) {
|
|
10745
|
-
return __assign({}, (input.AmazonIdEventTopic
|
|
10746
|
-
input.AmazonIdEventTopic !== null && { AmazonIdEventTopic: input.AmazonIdEventTopic }));
|
|
10639
|
+
return __assign({}, (input.AmazonIdEventTopic != null && { AmazonIdEventTopic: input.AmazonIdEventTopic }));
|
|
10747
10640
|
};
|
|
10748
10641
|
var serializeAws_restJson1SidewalkResourceTypeEventConfiguration = function (input, context) {
|
|
10749
|
-
return __assign({}, (input.WirelessDeviceEventTopic
|
|
10750
|
-
input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
|
|
10642
|
+
return __assign({}, (input.WirelessDeviceEventTopic != null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
|
|
10751
10643
|
};
|
|
10752
10644
|
var serializeAws_restJson1SidewalkSendDataToDevice = function (input, context) {
|
|
10753
|
-
return __assign(__assign({}, (input.MessageType
|
|
10645
|
+
return __assign(__assign({}, (input.MessageType != null && { MessageType: input.MessageType })), (input.Seq != null && { Seq: input.Seq }));
|
|
10754
10646
|
};
|
|
10755
10647
|
var serializeAws_restJson1SidewalkUpdateAccount = function (input, context) {
|
|
10756
|
-
return __assign({}, (input.AppServerPrivateKey
|
|
10757
|
-
input.AppServerPrivateKey !== null && { AppServerPrivateKey: input.AppServerPrivateKey }));
|
|
10648
|
+
return __assign({}, (input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }));
|
|
10758
10649
|
};
|
|
10759
10650
|
var serializeAws_restJson1SubBands = function (input, context) {
|
|
10760
10651
|
return input
|
|
@@ -10767,7 +10658,7 @@ var serializeAws_restJson1SubBands = function (input, context) {
|
|
|
10767
10658
|
});
|
|
10768
10659
|
};
|
|
10769
10660
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
10770
|
-
return __assign(__assign({}, (input.Key
|
|
10661
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
10771
10662
|
};
|
|
10772
10663
|
var serializeAws_restJson1TagList = function (input, context) {
|
|
10773
10664
|
return input
|
|
@@ -10780,29 +10671,24 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
10780
10671
|
});
|
|
10781
10672
|
};
|
|
10782
10673
|
var serializeAws_restJson1TraceContent = function (input, context) {
|
|
10783
|
-
return __assign(__assign({}, (input.LogLevel
|
|
10784
|
-
input.WirelessDeviceFrameInfo !== null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }));
|
|
10674
|
+
return __assign(__assign({}, (input.LogLevel != null && { LogLevel: input.LogLevel })), (input.WirelessDeviceFrameInfo != null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }));
|
|
10785
10675
|
};
|
|
10786
10676
|
var serializeAws_restJson1UpdateAbpV1_0_x = function (input, context) {
|
|
10787
|
-
return __assign({}, (input.FCntStart
|
|
10677
|
+
return __assign({}, (input.FCntStart != null && { FCntStart: input.FCntStart }));
|
|
10788
10678
|
};
|
|
10789
10679
|
var serializeAws_restJson1UpdateAbpV1_1 = function (input, context) {
|
|
10790
|
-
return __assign({}, (input.FCntStart
|
|
10680
|
+
return __assign({}, (input.FCntStart != null && { FCntStart: input.FCntStart }));
|
|
10791
10681
|
};
|
|
10792
10682
|
var serializeAws_restJson1UpdateFPorts = function (input, context) {
|
|
10793
|
-
return __assign({}, (input.Positioning
|
|
10794
|
-
input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }));
|
|
10683
|
+
return __assign({}, (input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }));
|
|
10795
10684
|
};
|
|
10796
10685
|
var serializeAws_restJson1UpdateWirelessGatewayTaskCreate = function (input, context) {
|
|
10797
|
-
return __assign(__assign(__assign({}, (input.LoRaWAN
|
|
10798
|
-
input.LoRaWAN !== null && {
|
|
10686
|
+
return __assign(__assign(__assign({}, (input.LoRaWAN != null && {
|
|
10799
10687
|
LoRaWAN: serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate(input.LoRaWAN, context),
|
|
10800
|
-
})), (input.UpdateDataRole
|
|
10801
|
-
input.UpdateDataRole !== null && { UpdateDataRole: input.UpdateDataRole })), (input.UpdateDataSource !== undefined &&
|
|
10802
|
-
input.UpdateDataSource !== null && { UpdateDataSource: input.UpdateDataSource }));
|
|
10688
|
+
})), (input.UpdateDataRole != null && { UpdateDataRole: input.UpdateDataRole })), (input.UpdateDataSource != null && { UpdateDataSource: input.UpdateDataSource }));
|
|
10803
10689
|
};
|
|
10804
10690
|
var serializeAws_restJson1WirelessDeviceEventLogOption = function (input, context) {
|
|
10805
|
-
return __assign(__assign({}, (input.Event
|
|
10691
|
+
return __assign(__assign({}, (input.Event != null && { Event: input.Event })), (input.LogLevel != null && { LogLevel: input.LogLevel }));
|
|
10806
10692
|
};
|
|
10807
10693
|
var serializeAws_restJson1WirelessDeviceEventLogOptionList = function (input, context) {
|
|
10808
10694
|
return input
|
|
@@ -10825,10 +10711,9 @@ var serializeAws_restJson1WirelessDeviceList = function (input, context) {
|
|
|
10825
10711
|
});
|
|
10826
10712
|
};
|
|
10827
10713
|
var serializeAws_restJson1WirelessDeviceLogOption = function (input, context) {
|
|
10828
|
-
return __assign(__assign(__assign({}, (input.Events
|
|
10829
|
-
input.Events !== null && {
|
|
10714
|
+
return __assign(__assign(__assign({}, (input.Events != null && {
|
|
10830
10715
|
Events: serializeAws_restJson1WirelessDeviceEventLogOptionList(input.Events, context),
|
|
10831
|
-
})), (input.LogLevel
|
|
10716
|
+
})), (input.LogLevel != null && { LogLevel: input.LogLevel })), (input.Type != null && { Type: input.Type }));
|
|
10832
10717
|
};
|
|
10833
10718
|
var serializeAws_restJson1WirelessDeviceLogOptionList = function (input, context) {
|
|
10834
10719
|
return input
|
|
@@ -10841,7 +10726,7 @@ var serializeAws_restJson1WirelessDeviceLogOptionList = function (input, context
|
|
|
10841
10726
|
});
|
|
10842
10727
|
};
|
|
10843
10728
|
var serializeAws_restJson1WirelessGatewayEventLogOption = function (input, context) {
|
|
10844
|
-
return __assign(__assign({}, (input.Event
|
|
10729
|
+
return __assign(__assign({}, (input.Event != null && { Event: input.Event })), (input.LogLevel != null && { LogLevel: input.LogLevel }));
|
|
10845
10730
|
};
|
|
10846
10731
|
var serializeAws_restJson1WirelessGatewayEventLogOptionList = function (input, context) {
|
|
10847
10732
|
return input
|
|
@@ -10864,10 +10749,9 @@ var serializeAws_restJson1WirelessGatewayList = function (input, context) {
|
|
|
10864
10749
|
});
|
|
10865
10750
|
};
|
|
10866
10751
|
var serializeAws_restJson1WirelessGatewayLogOption = function (input, context) {
|
|
10867
|
-
return __assign(__assign(__assign({}, (input.Events
|
|
10868
|
-
input.Events !== null && {
|
|
10752
|
+
return __assign(__assign(__assign({}, (input.Events != null && {
|
|
10869
10753
|
Events: serializeAws_restJson1WirelessGatewayEventLogOptionList(input.Events, context),
|
|
10870
|
-
})), (input.LogLevel
|
|
10754
|
+
})), (input.LogLevel != null && { LogLevel: input.LogLevel })), (input.Type != null && { Type: input.Type }));
|
|
10871
10755
|
};
|
|
10872
10756
|
var serializeAws_restJson1WirelessGatewayLogOptionList = function (input, context) {
|
|
10873
10757
|
return input
|
|
@@ -10880,15 +10764,15 @@ var serializeAws_restJson1WirelessGatewayLogOptionList = function (input, contex
|
|
|
10880
10764
|
});
|
|
10881
10765
|
};
|
|
10882
10766
|
var serializeAws_restJson1WirelessMetadata = function (input, context) {
|
|
10883
|
-
return __assign(__assign({}, (input.LoRaWAN
|
|
10884
|
-
|
|
10885
|
-
|
|
10767
|
+
return __assign(__assign({}, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANSendDataToDevice(input.LoRaWAN, context) })), (input.Sidewalk != null && {
|
|
10768
|
+
Sidewalk: serializeAws_restJson1SidewalkSendDataToDevice(input.Sidewalk, context),
|
|
10769
|
+
}));
|
|
10886
10770
|
};
|
|
10887
10771
|
var deserializeAws_restJson1AbpV1_0_x = function (output, context) {
|
|
10888
10772
|
return {
|
|
10889
10773
|
DevAddr: __expectString(output.DevAddr),
|
|
10890
10774
|
FCntStart: __expectInt32(output.FCntStart),
|
|
10891
|
-
SessionKeys: output.SessionKeys
|
|
10775
|
+
SessionKeys: output.SessionKeys != null
|
|
10892
10776
|
? deserializeAws_restJson1SessionKeysAbpV1_0_x(output.SessionKeys, context)
|
|
10893
10777
|
: undefined,
|
|
10894
10778
|
};
|
|
@@ -10897,9 +10781,7 @@ var deserializeAws_restJson1AbpV1_1 = function (output, context) {
|
|
|
10897
10781
|
return {
|
|
10898
10782
|
DevAddr: __expectString(output.DevAddr),
|
|
10899
10783
|
FCntStart: __expectInt32(output.FCntStart),
|
|
10900
|
-
SessionKeys: output.SessionKeys
|
|
10901
|
-
? deserializeAws_restJson1SessionKeysAbpV1_1(output.SessionKeys, context)
|
|
10902
|
-
: undefined,
|
|
10784
|
+
SessionKeys: output.SessionKeys != null ? deserializeAws_restJson1SessionKeysAbpV1_1(output.SessionKeys, context) : undefined,
|
|
10903
10785
|
};
|
|
10904
10786
|
};
|
|
10905
10787
|
var deserializeAws_restJson1Accuracy = function (output, context) {
|
|
@@ -10916,7 +10798,7 @@ var deserializeAws_restJson1CertificateList = function (output, context) {
|
|
|
10916
10798
|
};
|
|
10917
10799
|
var deserializeAws_restJson1ConnectionStatusEventConfiguration = function (output, context) {
|
|
10918
10800
|
return {
|
|
10919
|
-
LoRaWAN: output.LoRaWAN
|
|
10801
|
+
LoRaWAN: output.LoRaWAN != null
|
|
10920
10802
|
? deserializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(output.LoRaWAN, context)
|
|
10921
10803
|
: undefined,
|
|
10922
10804
|
WirelessGatewayIdEventTopic: __expectString(output.WirelessGatewayIdEventTopic),
|
|
@@ -10924,7 +10806,7 @@ var deserializeAws_restJson1ConnectionStatusEventConfiguration = function (outpu
|
|
|
10924
10806
|
};
|
|
10925
10807
|
var deserializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = function (output, context) {
|
|
10926
10808
|
return {
|
|
10927
|
-
LoRaWAN: output.LoRaWAN
|
|
10809
|
+
LoRaWAN: output.LoRaWAN != null
|
|
10928
10810
|
? deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(output.LoRaWAN, context)
|
|
10929
10811
|
: undefined,
|
|
10930
10812
|
};
|
|
@@ -10981,7 +10863,7 @@ var deserializeAws_restJson1DeviceProfileList = function (output, context) {
|
|
|
10981
10863
|
};
|
|
10982
10864
|
var deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = function (output, context) {
|
|
10983
10865
|
return {
|
|
10984
|
-
Sidewalk: output.Sidewalk
|
|
10866
|
+
Sidewalk: output.Sidewalk != null
|
|
10985
10867
|
? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
|
|
10986
10868
|
: undefined,
|
|
10987
10869
|
WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
|
|
@@ -10989,16 +10871,14 @@ var deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = function
|
|
|
10989
10871
|
};
|
|
10990
10872
|
var deserializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = function (output, context) {
|
|
10991
10873
|
return {
|
|
10992
|
-
Sidewalk: output.Sidewalk
|
|
10874
|
+
Sidewalk: output.Sidewalk != null
|
|
10993
10875
|
? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
|
|
10994
10876
|
: undefined,
|
|
10995
10877
|
};
|
|
10996
10878
|
};
|
|
10997
10879
|
var deserializeAws_restJson1DownlinkQueueMessage = function (output, context) {
|
|
10998
10880
|
return {
|
|
10999
|
-
LoRaWAN: output.LoRaWAN
|
|
11000
|
-
? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context)
|
|
11001
|
-
: undefined,
|
|
10881
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context) : undefined,
|
|
11002
10882
|
MessageId: __expectString(output.MessageId),
|
|
11003
10883
|
ReceivedAt: __expectString(output.ReceivedAt),
|
|
11004
10884
|
TransmitMode: __expectInt32(output.TransmitMode),
|
|
@@ -11017,7 +10897,7 @@ var deserializeAws_restJson1DownlinkQueueMessagesList = function (output, contex
|
|
|
11017
10897
|
};
|
|
11018
10898
|
var deserializeAws_restJson1EventConfigurationItem = function (output, context) {
|
|
11019
10899
|
return {
|
|
11020
|
-
Events: output.Events
|
|
10900
|
+
Events: output.Events != null
|
|
11021
10901
|
? deserializeAws_restJson1EventNotificationItemConfigurations(output.Events, context)
|
|
11022
10902
|
: undefined,
|
|
11023
10903
|
Identifier: __expectString(output.Identifier),
|
|
@@ -11038,16 +10918,14 @@ var deserializeAws_restJson1EventConfigurationsList = function (output, context)
|
|
|
11038
10918
|
};
|
|
11039
10919
|
var deserializeAws_restJson1EventNotificationItemConfigurations = function (output, context) {
|
|
11040
10920
|
return {
|
|
11041
|
-
ConnectionStatus: output.ConnectionStatus
|
|
10921
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
11042
10922
|
? deserializeAws_restJson1ConnectionStatusEventConfiguration(output.ConnectionStatus, context)
|
|
11043
10923
|
: undefined,
|
|
11044
|
-
DeviceRegistrationState: output.DeviceRegistrationState
|
|
10924
|
+
DeviceRegistrationState: output.DeviceRegistrationState != null
|
|
11045
10925
|
? deserializeAws_restJson1DeviceRegistrationStateEventConfiguration(output.DeviceRegistrationState, context)
|
|
11046
10926
|
: undefined,
|
|
11047
|
-
Join: output.Join
|
|
11048
|
-
|
|
11049
|
-
: undefined,
|
|
11050
|
-
Proximity: output.Proximity !== undefined && output.Proximity !== null
|
|
10927
|
+
Join: output.Join != null ? deserializeAws_restJson1JoinEventConfiguration(output.Join, context) : undefined,
|
|
10928
|
+
Proximity: output.Proximity != null
|
|
11051
10929
|
? deserializeAws_restJson1ProximityEventConfiguration(output.Proximity, context)
|
|
11052
10930
|
: undefined,
|
|
11053
10931
|
};
|
|
@@ -11068,9 +10946,7 @@ var deserializeAws_restJson1FPorts = function (output, context) {
|
|
|
11068
10946
|
ClockSync: __expectInt32(output.ClockSync),
|
|
11069
10947
|
Fuota: __expectInt32(output.Fuota),
|
|
11070
10948
|
Multicast: __expectInt32(output.Multicast),
|
|
11071
|
-
Positioning: output.Positioning
|
|
11072
|
-
? deserializeAws_restJson1Positioning(output.Positioning, context)
|
|
11073
|
-
: undefined,
|
|
10949
|
+
Positioning: output.Positioning != null ? deserializeAws_restJson1Positioning(output.Positioning, context) : undefined,
|
|
11074
10950
|
};
|
|
11075
10951
|
};
|
|
11076
10952
|
var deserializeAws_restJson1FuotaTask = function (output, context) {
|
|
@@ -11115,7 +10991,7 @@ var deserializeAws_restJson1JoinEuiRange = function (output, context) {
|
|
|
11115
10991
|
};
|
|
11116
10992
|
var deserializeAws_restJson1JoinEventConfiguration = function (output, context) {
|
|
11117
10993
|
return {
|
|
11118
|
-
LoRaWAN: output.LoRaWAN
|
|
10994
|
+
LoRaWAN: output.LoRaWAN != null
|
|
11119
10995
|
? deserializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(output.LoRaWAN, context)
|
|
11120
10996
|
: undefined,
|
|
11121
10997
|
WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
|
|
@@ -11123,7 +10999,7 @@ var deserializeAws_restJson1JoinEventConfiguration = function (output, context)
|
|
|
11123
10999
|
};
|
|
11124
11000
|
var deserializeAws_restJson1JoinResourceTypeEventConfiguration = function (output, context) {
|
|
11125
11001
|
return {
|
|
11126
|
-
LoRaWAN: output.LoRaWAN
|
|
11002
|
+
LoRaWAN: output.LoRaWAN != null
|
|
11127
11003
|
? deserializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(output.LoRaWAN, context)
|
|
11128
11004
|
: undefined,
|
|
11129
11005
|
};
|
|
@@ -11140,23 +11016,13 @@ var deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguratio
|
|
|
11140
11016
|
};
|
|
11141
11017
|
var deserializeAws_restJson1LoRaWANDevice = function (output, context) {
|
|
11142
11018
|
return {
|
|
11143
|
-
AbpV1_0_x: output.AbpV1_0_x
|
|
11144
|
-
|
|
11145
|
-
: undefined,
|
|
11146
|
-
AbpV1_1: output.AbpV1_1 !== undefined && output.AbpV1_1 !== null
|
|
11147
|
-
? deserializeAws_restJson1AbpV1_1(output.AbpV1_1, context)
|
|
11148
|
-
: undefined,
|
|
11019
|
+
AbpV1_0_x: output.AbpV1_0_x != null ? deserializeAws_restJson1AbpV1_0_x(output.AbpV1_0_x, context) : undefined,
|
|
11020
|
+
AbpV1_1: output.AbpV1_1 != null ? deserializeAws_restJson1AbpV1_1(output.AbpV1_1, context) : undefined,
|
|
11149
11021
|
DevEui: __expectString(output.DevEui),
|
|
11150
11022
|
DeviceProfileId: __expectString(output.DeviceProfileId),
|
|
11151
|
-
FPorts: output.FPorts
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
OtaaV1_0_x: output.OtaaV1_0_x !== undefined && output.OtaaV1_0_x !== null
|
|
11155
|
-
? deserializeAws_restJson1OtaaV1_0_x(output.OtaaV1_0_x, context)
|
|
11156
|
-
: undefined,
|
|
11157
|
-
OtaaV1_1: output.OtaaV1_1 !== undefined && output.OtaaV1_1 !== null
|
|
11158
|
-
? deserializeAws_restJson1OtaaV1_1(output.OtaaV1_1, context)
|
|
11159
|
-
: undefined,
|
|
11023
|
+
FPorts: output.FPorts != null ? deserializeAws_restJson1FPorts(output.FPorts, context) : undefined,
|
|
11024
|
+
OtaaV1_0_x: output.OtaaV1_0_x != null ? deserializeAws_restJson1OtaaV1_0_x(output.OtaaV1_0_x, context) : undefined,
|
|
11025
|
+
OtaaV1_1: output.OtaaV1_1 != null ? deserializeAws_restJson1OtaaV1_1(output.OtaaV1_1, context) : undefined,
|
|
11160
11026
|
ServiceProfileId: __expectString(output.ServiceProfileId),
|
|
11161
11027
|
};
|
|
11162
11028
|
};
|
|
@@ -11166,7 +11032,7 @@ var deserializeAws_restJson1LoRaWANDeviceMetadata = function (output, context) {
|
|
|
11166
11032
|
DevEui: __expectString(output.DevEui),
|
|
11167
11033
|
FPort: __expectInt32(output.FPort),
|
|
11168
11034
|
Frequency: __expectInt32(output.Frequency),
|
|
11169
|
-
Gateways: output.Gateways
|
|
11035
|
+
Gateways: output.Gateways != null
|
|
11170
11036
|
? deserializeAws_restJson1LoRaWANGatewayMetadataList(output.Gateways, context)
|
|
11171
11037
|
: undefined,
|
|
11172
11038
|
Timestamp: __expectString(output.Timestamp),
|
|
@@ -11176,7 +11042,7 @@ var deserializeAws_restJson1LoRaWANDeviceProfile = function (output, context) {
|
|
|
11176
11042
|
return {
|
|
11177
11043
|
ClassBTimeout: __expectInt32(output.ClassBTimeout),
|
|
11178
11044
|
ClassCTimeout: __expectInt32(output.ClassCTimeout),
|
|
11179
|
-
FactoryPresetFreqsList: output.FactoryPresetFreqsList
|
|
11045
|
+
FactoryPresetFreqsList: output.FactoryPresetFreqsList != null
|
|
11180
11046
|
? deserializeAws_restJson1FactoryPresetFreqsList(output.FactoryPresetFreqsList, context)
|
|
11181
11047
|
: undefined,
|
|
11182
11048
|
MacVersion: __expectString(output.MacVersion),
|
|
@@ -11200,29 +11066,23 @@ var deserializeAws_restJson1LoRaWANDeviceProfile = function (output, context) {
|
|
|
11200
11066
|
var deserializeAws_restJson1LoRaWANFuotaTaskGetInfo = function (output, context) {
|
|
11201
11067
|
return {
|
|
11202
11068
|
RfRegion: __expectString(output.RfRegion),
|
|
11203
|
-
StartTime: output.StartTime
|
|
11204
|
-
? __expectNonNull(__parseRfc3339DateTime(output.StartTime))
|
|
11205
|
-
: undefined,
|
|
11069
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseRfc3339DateTime(output.StartTime)) : undefined,
|
|
11206
11070
|
};
|
|
11207
11071
|
};
|
|
11208
11072
|
var deserializeAws_restJson1LoRaWANGateway = function (output, context) {
|
|
11209
11073
|
return {
|
|
11210
11074
|
GatewayEui: __expectString(output.GatewayEui),
|
|
11211
|
-
JoinEuiFilters: output.JoinEuiFilters
|
|
11075
|
+
JoinEuiFilters: output.JoinEuiFilters != null
|
|
11212
11076
|
? deserializeAws_restJson1JoinEuiFilters(output.JoinEuiFilters, context)
|
|
11213
11077
|
: undefined,
|
|
11214
|
-
NetIdFilters: output.NetIdFilters
|
|
11215
|
-
? deserializeAws_restJson1NetIdFilters(output.NetIdFilters, context)
|
|
11216
|
-
: undefined,
|
|
11078
|
+
NetIdFilters: output.NetIdFilters != null ? deserializeAws_restJson1NetIdFilters(output.NetIdFilters, context) : undefined,
|
|
11217
11079
|
RfRegion: __expectString(output.RfRegion),
|
|
11218
|
-
SubBands: output.SubBands
|
|
11219
|
-
? deserializeAws_restJson1SubBands(output.SubBands, context)
|
|
11220
|
-
: undefined,
|
|
11080
|
+
SubBands: output.SubBands != null ? deserializeAws_restJson1SubBands(output.SubBands, context) : undefined,
|
|
11221
11081
|
};
|
|
11222
11082
|
};
|
|
11223
11083
|
var deserializeAws_restJson1LoRaWANGatewayCurrentVersion = function (output, context) {
|
|
11224
11084
|
return {
|
|
11225
|
-
CurrentVersion: output.CurrentVersion
|
|
11085
|
+
CurrentVersion: output.CurrentVersion != null
|
|
11226
11086
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
11227
11087
|
: undefined,
|
|
11228
11088
|
};
|
|
@@ -11302,9 +11162,7 @@ var deserializeAws_restJson1LoRaWANMulticastSession = function (output, context)
|
|
|
11302
11162
|
return {
|
|
11303
11163
|
DlDr: __expectInt32(output.DlDr),
|
|
11304
11164
|
DlFreq: __expectInt32(output.DlFreq),
|
|
11305
|
-
SessionStartTime: output.SessionStartTime
|
|
11306
|
-
? __expectNonNull(__parseRfc3339DateTime(output.SessionStartTime))
|
|
11307
|
-
: undefined,
|
|
11165
|
+
SessionStartTime: output.SessionStartTime != null ? __expectNonNull(__parseRfc3339DateTime(output.SessionStartTime)) : undefined,
|
|
11308
11166
|
SessionTimeout: __expectInt32(output.SessionTimeout),
|
|
11309
11167
|
};
|
|
11310
11168
|
};
|
|
@@ -11315,22 +11173,22 @@ var deserializeAws_restJson1LoRaWANSendDataToDevice = function (output, context)
|
|
|
11315
11173
|
};
|
|
11316
11174
|
var deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = function (output, context) {
|
|
11317
11175
|
return {
|
|
11318
|
-
CurrentVersion: output.CurrentVersion
|
|
11176
|
+
CurrentVersion: output.CurrentVersion != null
|
|
11319
11177
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
11320
11178
|
: undefined,
|
|
11321
11179
|
SigKeyCrc: __expectLong(output.SigKeyCrc),
|
|
11322
11180
|
UpdateSignature: __expectString(output.UpdateSignature),
|
|
11323
|
-
UpdateVersion: output.UpdateVersion
|
|
11181
|
+
UpdateVersion: output.UpdateVersion != null
|
|
11324
11182
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.UpdateVersion, context)
|
|
11325
11183
|
: undefined,
|
|
11326
11184
|
};
|
|
11327
11185
|
};
|
|
11328
11186
|
var deserializeAws_restJson1LoRaWANUpdateGatewayTaskEntry = function (output, context) {
|
|
11329
11187
|
return {
|
|
11330
|
-
CurrentVersion: output.CurrentVersion
|
|
11188
|
+
CurrentVersion: output.CurrentVersion != null
|
|
11331
11189
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
11332
11190
|
: undefined,
|
|
11333
|
-
UpdateVersion: output.UpdateVersion
|
|
11191
|
+
UpdateVersion: output.UpdateVersion != null
|
|
11334
11192
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.UpdateVersion, context)
|
|
11335
11193
|
: undefined,
|
|
11336
11194
|
};
|
|
@@ -11416,9 +11274,7 @@ var deserializeAws_restJson1PositionConfigurationItem = function (output, contex
|
|
|
11416
11274
|
Destination: __expectString(output.Destination),
|
|
11417
11275
|
ResourceIdentifier: __expectString(output.ResourceIdentifier),
|
|
11418
11276
|
ResourceType: __expectString(output.ResourceType),
|
|
11419
|
-
Solvers: output.Solvers
|
|
11420
|
-
? deserializeAws_restJson1PositionSolverDetails(output.Solvers, context)
|
|
11421
|
-
: undefined,
|
|
11277
|
+
Solvers: output.Solvers != null ? deserializeAws_restJson1PositionSolverDetails(output.Solvers, context) : undefined,
|
|
11422
11278
|
};
|
|
11423
11279
|
};
|
|
11424
11280
|
var deserializeAws_restJson1PositionConfigurationList = function (output, context) {
|
|
@@ -11452,14 +11308,12 @@ var deserializeAws_restJson1Positioning = function (output, context) {
|
|
|
11452
11308
|
};
|
|
11453
11309
|
var deserializeAws_restJson1PositionSolverDetails = function (output, context) {
|
|
11454
11310
|
return {
|
|
11455
|
-
SemtechGnss: output.SemtechGnss
|
|
11456
|
-
? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context)
|
|
11457
|
-
: undefined,
|
|
11311
|
+
SemtechGnss: output.SemtechGnss != null ? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context) : undefined,
|
|
11458
11312
|
};
|
|
11459
11313
|
};
|
|
11460
11314
|
var deserializeAws_restJson1ProximityEventConfiguration = function (output, context) {
|
|
11461
11315
|
return {
|
|
11462
|
-
Sidewalk: output.Sidewalk
|
|
11316
|
+
Sidewalk: output.Sidewalk != null
|
|
11463
11317
|
? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
|
|
11464
11318
|
: undefined,
|
|
11465
11319
|
WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
|
|
@@ -11467,7 +11321,7 @@ var deserializeAws_restJson1ProximityEventConfiguration = function (output, cont
|
|
|
11467
11321
|
};
|
|
11468
11322
|
var deserializeAws_restJson1ProximityResourceTypeEventConfiguration = function (output, context) {
|
|
11469
11323
|
return {
|
|
11470
|
-
Sidewalk: output.Sidewalk
|
|
11324
|
+
Sidewalk: output.Sidewalk != null
|
|
11471
11325
|
? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
|
|
11472
11326
|
: undefined,
|
|
11473
11327
|
};
|
|
@@ -11539,7 +11393,7 @@ var deserializeAws_restJson1SidewalkAccountList = function (output, context) {
|
|
|
11539
11393
|
var deserializeAws_restJson1SidewalkDevice = function (output, context) {
|
|
11540
11394
|
return {
|
|
11541
11395
|
AmazonId: __expectString(output.AmazonId),
|
|
11542
|
-
DeviceCertificates: output.DeviceCertificates
|
|
11396
|
+
DeviceCertificates: output.DeviceCertificates != null
|
|
11543
11397
|
? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
|
|
11544
11398
|
: undefined,
|
|
11545
11399
|
SidewalkId: __expectString(output.SidewalkId),
|
|
@@ -11562,7 +11416,7 @@ var deserializeAws_restJson1SidewalkEventNotificationConfigurations = function (
|
|
|
11562
11416
|
var deserializeAws_restJson1SidewalkListDevice = function (output, context) {
|
|
11563
11417
|
return {
|
|
11564
11418
|
AmazonId: __expectString(output.AmazonId),
|
|
11565
|
-
DeviceCertificates: output.DeviceCertificates
|
|
11419
|
+
DeviceCertificates: output.DeviceCertificates != null
|
|
11566
11420
|
? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
|
|
11567
11421
|
: undefined,
|
|
11568
11422
|
SidewalkId: __expectString(output.SidewalkId),
|
|
@@ -11610,7 +11464,7 @@ var deserializeAws_restJson1TraceContent = function (output, context) {
|
|
|
11610
11464
|
};
|
|
11611
11465
|
var deserializeAws_restJson1UpdateWirelessGatewayTaskCreate = function (output, context) {
|
|
11612
11466
|
return {
|
|
11613
|
-
LoRaWAN: output.LoRaWAN
|
|
11467
|
+
LoRaWAN: output.LoRaWAN != null
|
|
11614
11468
|
? deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate(output.LoRaWAN, context)
|
|
11615
11469
|
: undefined,
|
|
11616
11470
|
UpdateDataRole: __expectString(output.UpdateDataRole),
|
|
@@ -11621,7 +11475,7 @@ var deserializeAws_restJson1UpdateWirelessGatewayTaskEntry = function (output, c
|
|
|
11621
11475
|
return {
|
|
11622
11476
|
Arn: __expectString(output.Arn),
|
|
11623
11477
|
Id: __expectString(output.Id),
|
|
11624
|
-
LoRaWAN: output.LoRaWAN
|
|
11478
|
+
LoRaWAN: output.LoRaWAN != null
|
|
11625
11479
|
? deserializeAws_restJson1LoRaWANUpdateGatewayTaskEntry(output.LoRaWAN, context)
|
|
11626
11480
|
: undefined,
|
|
11627
11481
|
};
|
|
@@ -11656,7 +11510,7 @@ var deserializeAws_restJson1WirelessDeviceList = function (output, context) {
|
|
|
11656
11510
|
};
|
|
11657
11511
|
var deserializeAws_restJson1WirelessDeviceLogOption = function (output, context) {
|
|
11658
11512
|
return {
|
|
11659
|
-
Events: output.Events
|
|
11513
|
+
Events: output.Events != null
|
|
11660
11514
|
? deserializeAws_restJson1WirelessDeviceEventLogOptionList(output.Events, context)
|
|
11661
11515
|
: undefined,
|
|
11662
11516
|
LogLevel: __expectString(output.LogLevel),
|
|
@@ -11681,15 +11535,11 @@ var deserializeAws_restJson1WirelessDeviceStatistics = function (output, context
|
|
|
11681
11535
|
FuotaDeviceStatus: __expectString(output.FuotaDeviceStatus),
|
|
11682
11536
|
Id: __expectString(output.Id),
|
|
11683
11537
|
LastUplinkReceivedAt: __expectString(output.LastUplinkReceivedAt),
|
|
11684
|
-
LoRaWAN: output.LoRaWAN
|
|
11685
|
-
? deserializeAws_restJson1LoRaWANListDevice(output.LoRaWAN, context)
|
|
11686
|
-
: undefined,
|
|
11538
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANListDevice(output.LoRaWAN, context) : undefined,
|
|
11687
11539
|
McGroupId: __expectInt32(output.McGroupId),
|
|
11688
11540
|
MulticastDeviceStatus: __expectString(output.MulticastDeviceStatus),
|
|
11689
11541
|
Name: __expectString(output.Name),
|
|
11690
|
-
Sidewalk: output.Sidewalk
|
|
11691
|
-
? deserializeAws_restJson1SidewalkListDevice(output.Sidewalk, context)
|
|
11692
|
-
: undefined,
|
|
11542
|
+
Sidewalk: output.Sidewalk != null ? deserializeAws_restJson1SidewalkListDevice(output.Sidewalk, context) : undefined,
|
|
11693
11543
|
Type: __expectString(output.Type),
|
|
11694
11544
|
};
|
|
11695
11545
|
};
|
|
@@ -11734,7 +11584,7 @@ var deserializeAws_restJson1WirelessGatewayList = function (output, context) {
|
|
|
11734
11584
|
};
|
|
11735
11585
|
var deserializeAws_restJson1WirelessGatewayLogOption = function (output, context) {
|
|
11736
11586
|
return {
|
|
11737
|
-
Events: output.Events
|
|
11587
|
+
Events: output.Events != null
|
|
11738
11588
|
? deserializeAws_restJson1WirelessGatewayEventLogOptionList(output.Events, context)
|
|
11739
11589
|
: undefined,
|
|
11740
11590
|
LogLevel: __expectString(output.LogLevel),
|
|
@@ -11758,9 +11608,7 @@ var deserializeAws_restJson1WirelessGatewayStatistics = function (output, contex
|
|
|
11758
11608
|
Description: __expectString(output.Description),
|
|
11759
11609
|
Id: __expectString(output.Id),
|
|
11760
11610
|
LastUplinkReceivedAt: __expectString(output.LastUplinkReceivedAt),
|
|
11761
|
-
LoRaWAN: output.LoRaWAN
|
|
11762
|
-
? deserializeAws_restJson1LoRaWANGateway(output.LoRaWAN, context)
|
|
11763
|
-
: undefined,
|
|
11611
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANGateway(output.LoRaWAN, context) : undefined,
|
|
11764
11612
|
Name: __expectString(output.Name),
|
|
11765
11613
|
};
|
|
11766
11614
|
};
|
|
@@ -11824,6 +11672,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
11824
11672
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
11825
11673
|
var sanitizeErrorCode = function (rawValue) {
|
|
11826
11674
|
var cleanValue = rawValue;
|
|
11675
|
+
if (typeof cleanValue === "number") {
|
|
11676
|
+
cleanValue = cleanValue.toString();
|
|
11677
|
+
}
|
|
11827
11678
|
if (cleanValue.indexOf(":") >= 0) {
|
|
11828
11679
|
cleanValue = cleanValue.split(":")[0];
|
|
11829
11680
|
}
|