losant_rest 1.23.2 → 2.0.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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +2 -2
- data/.ruby-version +1 -1
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/docs/_schemas.md +1809 -381
- data/docs/applicationKeys.md +2 -2
- data/docs/events.md +3 -1
- data/lib/platform_rest/application.rb +1 -1
- data/lib/platform_rest/application_api_token.rb +1 -1
- data/lib/platform_rest/application_api_tokens.rb +1 -1
- data/lib/platform_rest/application_certificate.rb +1 -1
- data/lib/platform_rest/application_certificate_authorities.rb +1 -1
- data/lib/platform_rest/application_certificate_authority.rb +1 -1
- data/lib/platform_rest/application_certificates.rb +1 -1
- data/lib/platform_rest/application_dashboard.rb +1 -1
- data/lib/platform_rest/application_dashboards.rb +1 -1
- data/lib/platform_rest/application_job_log.rb +1 -1
- data/lib/platform_rest/application_job_logs.rb +1 -1
- data/lib/platform_rest/application_key.rb +1 -1
- data/lib/platform_rest/application_keys.rb +3 -3
- data/lib/platform_rest/application_template.rb +1 -1
- data/lib/platform_rest/application_templates.rb +1 -1
- data/lib/platform_rest/applications.rb +1 -1
- data/lib/platform_rest/audit_log.rb +1 -1
- data/lib/platform_rest/audit_logs.rb +1 -1
- data/lib/platform_rest/auth.rb +1 -1
- data/lib/platform_rest/client.rb +3 -3
- data/lib/platform_rest/credential.rb +1 -1
- data/lib/platform_rest/credentials.rb +1 -1
- data/lib/platform_rest/dashboard.rb +1 -1
- data/lib/platform_rest/dashboards.rb +1 -1
- data/lib/platform_rest/data.rb +1 -1
- data/lib/platform_rest/data_table.rb +1 -1
- data/lib/platform_rest/data_table_row.rb +1 -1
- data/lib/platform_rest/data_table_rows.rb +1 -1
- data/lib/platform_rest/data_tables.rb +1 -1
- data/lib/platform_rest/device.rb +1 -1
- data/lib/platform_rest/device_attribute.rb +1 -1
- data/lib/platform_rest/device_attributes.rb +1 -1
- data/lib/platform_rest/device_recipe.rb +1 -1
- data/lib/platform_rest/device_recipes.rb +1 -1
- data/lib/platform_rest/devices.rb +1 -1
- data/lib/platform_rest/edge_deployment.rb +1 -1
- data/lib/platform_rest/edge_deployments.rb +1 -1
- data/lib/platform_rest/embedded_deployment.rb +1 -1
- data/lib/platform_rest/embedded_deployments.rb +1 -1
- data/lib/platform_rest/error.rb +1 -1
- data/lib/platform_rest/event.rb +1 -1
- data/lib/platform_rest/events.rb +6 -2
- data/lib/platform_rest/experience.rb +1 -1
- data/lib/platform_rest/experience_domain.rb +1 -1
- data/lib/platform_rest/experience_domains.rb +1 -1
- data/lib/platform_rest/experience_endpoint.rb +1 -1
- data/lib/platform_rest/experience_endpoints.rb +1 -1
- data/lib/platform_rest/experience_group.rb +1 -1
- data/lib/platform_rest/experience_groups.rb +1 -1
- data/lib/platform_rest/experience_slug.rb +1 -1
- data/lib/platform_rest/experience_slugs.rb +1 -1
- data/lib/platform_rest/experience_user.rb +1 -1
- data/lib/platform_rest/experience_users.rb +1 -1
- data/lib/platform_rest/experience_version.rb +1 -1
- data/lib/platform_rest/experience_versions.rb +1 -1
- data/lib/platform_rest/experience_view.rb +1 -1
- data/lib/platform_rest/experience_views.rb +1 -1
- data/lib/platform_rest/file.rb +1 -1
- data/lib/platform_rest/files.rb +1 -1
- data/lib/platform_rest/flow.rb +1 -1
- data/lib/platform_rest/flow_version.rb +1 -1
- data/lib/platform_rest/flow_versions.rb +1 -1
- data/lib/platform_rest/flows.rb +1 -1
- data/lib/platform_rest/instance.rb +1 -1
- data/lib/platform_rest/instance_api_token.rb +1 -1
- data/lib/platform_rest/instance_api_tokens.rb +1 -1
- data/lib/platform_rest/instance_audit_log.rb +1 -1
- data/lib/platform_rest/instance_audit_logs.rb +1 -1
- data/lib/platform_rest/instance_custom_node.rb +1 -1
- data/lib/platform_rest/instance_custom_nodes.rb +1 -1
- data/lib/platform_rest/instance_member.rb +1 -1
- data/lib/platform_rest/instance_members.rb +1 -1
- data/lib/platform_rest/instance_notification_rule.rb +1 -1
- data/lib/platform_rest/instance_notification_rules.rb +1 -1
- data/lib/platform_rest/instance_org.rb +1 -1
- data/lib/platform_rest/instance_org_invite.rb +1 -1
- data/lib/platform_rest/instance_org_invites.rb +1 -1
- data/lib/platform_rest/instance_org_member.rb +1 -1
- data/lib/platform_rest/instance_org_members.rb +1 -1
- data/lib/platform_rest/instance_orgs.rb +1 -1
- data/lib/platform_rest/instance_sandbox.rb +1 -1
- data/lib/platform_rest/instance_sandboxes.rb +1 -1
- data/lib/platform_rest/instances.rb +1 -1
- data/lib/platform_rest/integration.rb +1 -1
- data/lib/platform_rest/integrations.rb +1 -1
- data/lib/platform_rest/me.rb +1 -1
- data/lib/platform_rest/notebook.rb +1 -1
- data/lib/platform_rest/notebooks.rb +1 -1
- data/lib/platform_rest/org.rb +1 -1
- data/lib/platform_rest/org_invites.rb +1 -1
- data/lib/platform_rest/orgs.rb +1 -1
- data/lib/platform_rest/private_file.rb +1 -1
- data/lib/platform_rest/private_files.rb +1 -1
- data/lib/platform_rest/resource_job.rb +1 -1
- data/lib/platform_rest/resource_jobs.rb +1 -1
- data/lib/platform_rest/user_api_token.rb +1 -1
- data/lib/platform_rest/user_api_tokens.rb +1 -1
- data/lib/platform_rest/utils.rb +1 -1
- data/lib/platform_rest/version.rb +2 -2
- data/lib/platform_rest/webhook.rb +1 -1
- data/lib/platform_rest/webhooks.rb +1 -1
- data/lib/platform_rest.rb +1 -1
- data/losant_rest.gemspec +6 -5
- data/schemas/advancedApplicationKeyQuery.json +345 -0
- data/schemas/advancedDeviceQuery.json +36 -0
- data/schemas/advancedEventQuery.json +36 -0
- data/schemas/advancedExperienceGroupQuery.json +36 -0
- data/schemas/advancedExperienceUserQuery.json +36 -0
- data/schemas/advancedInstanceOrgQuery.json +36 -0
- data/schemas/apiTokenPost.json +0 -1
- data/schemas/applicationCertificate.json +5 -0
- data/schemas/applicationCertificates.json +5 -0
- data/schemas/applicationKey.json +45 -0
- data/schemas/applicationKeyPatch.json +28 -0
- data/schemas/applicationKeyPost.json +21 -0
- data/schemas/applicationKeyPostResponse.json +45 -0
- data/schemas/applicationKeys.json +45 -0
- data/schemas/credential.json +57 -2
- data/schemas/credentialPatch.json +29 -0
- data/schemas/credentialPost.json +39 -1
- data/schemas/credentials.json +57 -2
- data/schemas/devicesDataExport.json +36 -0
- data/schemas/devicesDeleteOrRestorePost.json +36 -0
- data/schemas/devicesExportPayloadCountPost.json +36 -0
- data/schemas/devicesExportPost.json +36 -0
- data/schemas/devicesPatch.json +36 -0
- data/schemas/devicesRemoveDataPost.json +36 -0
- data/schemas/event.json +4 -0
- data/schemas/eventPlusNewCount.json +4 -0
- data/schemas/eventPost.json +4 -0
- data/schemas/events.json +4 -0
- data/schemas/eventsExport.json +40 -0
- data/schemas/githubLogin.json +0 -1
- data/schemas/lastValueQuery.json +36 -0
- data/schemas/multiDeviceCommand.json +36 -0
- data/schemas/notebook.json +39 -0
- data/schemas/notebookPatch.json +39 -0
- data/schemas/notebookPost.json +39 -0
- data/schemas/notebooks.json +39 -0
- data/schemas/samlResponse.json +0 -1
- data/schemas/timeSeriesQuery.json +36 -0
- data/schemas/userCredentials.json +0 -1
- data/schemas/userPost.json +0 -1
- data/test/basic_test.rb +1 -1
- data/test/test_helper.rb +2 -1
- metadata +26 -15
|
@@ -1335,6 +1335,9 @@
|
|
|
1335
1335
|
"oneOf": [
|
|
1336
1336
|
{
|
|
1337
1337
|
"oneOf": [
|
|
1338
|
+
{
|
|
1339
|
+
"type": "null"
|
|
1340
|
+
},
|
|
1338
1341
|
{
|
|
1339
1342
|
"type": "object",
|
|
1340
1343
|
"properties": {
|
|
@@ -1344,6 +1347,9 @@
|
|
|
1344
1347
|
"type": "string",
|
|
1345
1348
|
"maxLength": 255
|
|
1346
1349
|
},
|
|
1350
|
+
{
|
|
1351
|
+
"type": "null"
|
|
1352
|
+
},
|
|
1347
1353
|
{
|
|
1348
1354
|
"type": "object",
|
|
1349
1355
|
"properties": {
|
|
@@ -1386,6 +1392,9 @@
|
|
|
1386
1392
|
"type": "string",
|
|
1387
1393
|
"maxLength": 255
|
|
1388
1394
|
},
|
|
1395
|
+
{
|
|
1396
|
+
"type": "null"
|
|
1397
|
+
},
|
|
1389
1398
|
{
|
|
1390
1399
|
"type": "object",
|
|
1391
1400
|
"properties": {
|
|
@@ -1435,6 +1444,9 @@
|
|
|
1435
1444
|
"type": "string",
|
|
1436
1445
|
"maxLength": 255
|
|
1437
1446
|
},
|
|
1447
|
+
{
|
|
1448
|
+
"type": "null"
|
|
1449
|
+
},
|
|
1438
1450
|
{
|
|
1439
1451
|
"type": "object",
|
|
1440
1452
|
"properties": {
|
|
@@ -1481,6 +1493,9 @@
|
|
|
1481
1493
|
"properties": {
|
|
1482
1494
|
"$eq": {
|
|
1483
1495
|
"oneOf": [
|
|
1496
|
+
{
|
|
1497
|
+
"type": "null"
|
|
1498
|
+
},
|
|
1484
1499
|
{
|
|
1485
1500
|
"type": "object",
|
|
1486
1501
|
"properties": {
|
|
@@ -1490,6 +1505,9 @@
|
|
|
1490
1505
|
"type": "string",
|
|
1491
1506
|
"maxLength": 255
|
|
1492
1507
|
},
|
|
1508
|
+
{
|
|
1509
|
+
"type": "null"
|
|
1510
|
+
},
|
|
1493
1511
|
{
|
|
1494
1512
|
"type": "object",
|
|
1495
1513
|
"properties": {
|
|
@@ -1532,6 +1550,9 @@
|
|
|
1532
1550
|
"type": "string",
|
|
1533
1551
|
"maxLength": 255
|
|
1534
1552
|
},
|
|
1553
|
+
{
|
|
1554
|
+
"type": "null"
|
|
1555
|
+
},
|
|
1535
1556
|
{
|
|
1536
1557
|
"type": "object",
|
|
1537
1558
|
"properties": {
|
|
@@ -1581,6 +1602,9 @@
|
|
|
1581
1602
|
"type": "string",
|
|
1582
1603
|
"maxLength": 255
|
|
1583
1604
|
},
|
|
1605
|
+
{
|
|
1606
|
+
"type": "null"
|
|
1607
|
+
},
|
|
1584
1608
|
{
|
|
1585
1609
|
"type": "object",
|
|
1586
1610
|
"properties": {
|
|
@@ -1633,6 +1657,9 @@
|
|
|
1633
1657
|
"properties": {
|
|
1634
1658
|
"$ne": {
|
|
1635
1659
|
"oneOf": [
|
|
1660
|
+
{
|
|
1661
|
+
"type": "null"
|
|
1662
|
+
},
|
|
1636
1663
|
{
|
|
1637
1664
|
"type": "object",
|
|
1638
1665
|
"properties": {
|
|
@@ -1642,6 +1669,9 @@
|
|
|
1642
1669
|
"type": "string",
|
|
1643
1670
|
"maxLength": 255
|
|
1644
1671
|
},
|
|
1672
|
+
{
|
|
1673
|
+
"type": "null"
|
|
1674
|
+
},
|
|
1645
1675
|
{
|
|
1646
1676
|
"type": "object",
|
|
1647
1677
|
"properties": {
|
|
@@ -1684,6 +1714,9 @@
|
|
|
1684
1714
|
"type": "string",
|
|
1685
1715
|
"maxLength": 255
|
|
1686
1716
|
},
|
|
1717
|
+
{
|
|
1718
|
+
"type": "null"
|
|
1719
|
+
},
|
|
1687
1720
|
{
|
|
1688
1721
|
"type": "object",
|
|
1689
1722
|
"properties": {
|
|
@@ -1733,6 +1766,9 @@
|
|
|
1733
1766
|
"type": "string",
|
|
1734
1767
|
"maxLength": 255
|
|
1735
1768
|
},
|
|
1769
|
+
{
|
|
1770
|
+
"type": "null"
|
|
1771
|
+
},
|
|
1736
1772
|
{
|
|
1737
1773
|
"type": "object",
|
|
1738
1774
|
"properties": {
|
data/schemas/notebook.json
CHANGED
|
@@ -454,6 +454,45 @@
|
|
|
454
454
|
"sourceUrl"
|
|
455
455
|
],
|
|
456
456
|
"additionalProperties": false
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"type": "object",
|
|
460
|
+
"properties": {
|
|
461
|
+
"inputType": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"enum": [
|
|
464
|
+
"applicationFile"
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
"fileName": {
|
|
468
|
+
"oneOf": [
|
|
469
|
+
{
|
|
470
|
+
"type": "string",
|
|
471
|
+
"pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"type": "string",
|
|
475
|
+
"minLength": 4,
|
|
476
|
+
"maxLength": 255,
|
|
477
|
+
"pattern": ".*{{.+}}.*"
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"filePath": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"minLength": 1,
|
|
484
|
+
"maxLength": 2048
|
|
485
|
+
},
|
|
486
|
+
"private": {
|
|
487
|
+
"type": "boolean"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"required": [
|
|
491
|
+
"inputType",
|
|
492
|
+
"fileName",
|
|
493
|
+
"filePath"
|
|
494
|
+
],
|
|
495
|
+
"additionalProperties": false
|
|
457
496
|
}
|
|
458
497
|
]
|
|
459
498
|
}
|
data/schemas/notebookPatch.json
CHANGED
|
@@ -417,6 +417,45 @@
|
|
|
417
417
|
"sourceUrl"
|
|
418
418
|
],
|
|
419
419
|
"additionalProperties": false
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"type": "object",
|
|
423
|
+
"properties": {
|
|
424
|
+
"inputType": {
|
|
425
|
+
"type": "string",
|
|
426
|
+
"enum": [
|
|
427
|
+
"applicationFile"
|
|
428
|
+
]
|
|
429
|
+
},
|
|
430
|
+
"fileName": {
|
|
431
|
+
"oneOf": [
|
|
432
|
+
{
|
|
433
|
+
"type": "string",
|
|
434
|
+
"pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"type": "string",
|
|
438
|
+
"minLength": 4,
|
|
439
|
+
"maxLength": 255,
|
|
440
|
+
"pattern": ".*{{.+}}.*"
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
"filePath": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"minLength": 1,
|
|
447
|
+
"maxLength": 2048
|
|
448
|
+
},
|
|
449
|
+
"private": {
|
|
450
|
+
"type": "boolean"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"required": [
|
|
454
|
+
"inputType",
|
|
455
|
+
"fileName",
|
|
456
|
+
"filePath"
|
|
457
|
+
],
|
|
458
|
+
"additionalProperties": false
|
|
420
459
|
}
|
|
421
460
|
]
|
|
422
461
|
}
|
data/schemas/notebookPost.json
CHANGED
|
@@ -426,6 +426,45 @@
|
|
|
426
426
|
"sourceUrl"
|
|
427
427
|
],
|
|
428
428
|
"additionalProperties": false
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"type": "object",
|
|
432
|
+
"properties": {
|
|
433
|
+
"inputType": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"enum": [
|
|
436
|
+
"applicationFile"
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
"fileName": {
|
|
440
|
+
"oneOf": [
|
|
441
|
+
{
|
|
442
|
+
"type": "string",
|
|
443
|
+
"pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"type": "string",
|
|
447
|
+
"minLength": 4,
|
|
448
|
+
"maxLength": 255,
|
|
449
|
+
"pattern": ".*{{.+}}.*"
|
|
450
|
+
}
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
"filePath": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"minLength": 1,
|
|
456
|
+
"maxLength": 2048
|
|
457
|
+
},
|
|
458
|
+
"private": {
|
|
459
|
+
"type": "boolean"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"required": [
|
|
463
|
+
"inputType",
|
|
464
|
+
"fileName",
|
|
465
|
+
"filePath"
|
|
466
|
+
],
|
|
467
|
+
"additionalProperties": false
|
|
429
468
|
}
|
|
430
469
|
]
|
|
431
470
|
}
|
data/schemas/notebooks.json
CHANGED
|
@@ -461,6 +461,45 @@
|
|
|
461
461
|
"sourceUrl"
|
|
462
462
|
],
|
|
463
463
|
"additionalProperties": false
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"type": "object",
|
|
467
|
+
"properties": {
|
|
468
|
+
"inputType": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"enum": [
|
|
471
|
+
"applicationFile"
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
"fileName": {
|
|
475
|
+
"oneOf": [
|
|
476
|
+
{
|
|
477
|
+
"type": "string",
|
|
478
|
+
"pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"type": "string",
|
|
482
|
+
"minLength": 4,
|
|
483
|
+
"maxLength": 255,
|
|
484
|
+
"pattern": ".*{{.+}}.*"
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
"filePath": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"minLength": 1,
|
|
491
|
+
"maxLength": 2048
|
|
492
|
+
},
|
|
493
|
+
"private": {
|
|
494
|
+
"type": "boolean"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"required": [
|
|
498
|
+
"inputType",
|
|
499
|
+
"fileName",
|
|
500
|
+
"filePath"
|
|
501
|
+
],
|
|
502
|
+
"additionalProperties": false
|
|
464
503
|
}
|
|
465
504
|
]
|
|
466
505
|
}
|
data/schemas/samlResponse.json
CHANGED
|
@@ -1430,6 +1430,9 @@
|
|
|
1430
1430
|
"oneOf": [
|
|
1431
1431
|
{
|
|
1432
1432
|
"oneOf": [
|
|
1433
|
+
{
|
|
1434
|
+
"type": "null"
|
|
1435
|
+
},
|
|
1433
1436
|
{
|
|
1434
1437
|
"type": "object",
|
|
1435
1438
|
"properties": {
|
|
@@ -1439,6 +1442,9 @@
|
|
|
1439
1442
|
"type": "string",
|
|
1440
1443
|
"maxLength": 255
|
|
1441
1444
|
},
|
|
1445
|
+
{
|
|
1446
|
+
"type": "null"
|
|
1447
|
+
},
|
|
1442
1448
|
{
|
|
1443
1449
|
"type": "object",
|
|
1444
1450
|
"properties": {
|
|
@@ -1481,6 +1487,9 @@
|
|
|
1481
1487
|
"type": "string",
|
|
1482
1488
|
"maxLength": 255
|
|
1483
1489
|
},
|
|
1490
|
+
{
|
|
1491
|
+
"type": "null"
|
|
1492
|
+
},
|
|
1484
1493
|
{
|
|
1485
1494
|
"type": "object",
|
|
1486
1495
|
"properties": {
|
|
@@ -1530,6 +1539,9 @@
|
|
|
1530
1539
|
"type": "string",
|
|
1531
1540
|
"maxLength": 255
|
|
1532
1541
|
},
|
|
1542
|
+
{
|
|
1543
|
+
"type": "null"
|
|
1544
|
+
},
|
|
1533
1545
|
{
|
|
1534
1546
|
"type": "object",
|
|
1535
1547
|
"properties": {
|
|
@@ -1576,6 +1588,9 @@
|
|
|
1576
1588
|
"properties": {
|
|
1577
1589
|
"$eq": {
|
|
1578
1590
|
"oneOf": [
|
|
1591
|
+
{
|
|
1592
|
+
"type": "null"
|
|
1593
|
+
},
|
|
1579
1594
|
{
|
|
1580
1595
|
"type": "object",
|
|
1581
1596
|
"properties": {
|
|
@@ -1585,6 +1600,9 @@
|
|
|
1585
1600
|
"type": "string",
|
|
1586
1601
|
"maxLength": 255
|
|
1587
1602
|
},
|
|
1603
|
+
{
|
|
1604
|
+
"type": "null"
|
|
1605
|
+
},
|
|
1588
1606
|
{
|
|
1589
1607
|
"type": "object",
|
|
1590
1608
|
"properties": {
|
|
@@ -1627,6 +1645,9 @@
|
|
|
1627
1645
|
"type": "string",
|
|
1628
1646
|
"maxLength": 255
|
|
1629
1647
|
},
|
|
1648
|
+
{
|
|
1649
|
+
"type": "null"
|
|
1650
|
+
},
|
|
1630
1651
|
{
|
|
1631
1652
|
"type": "object",
|
|
1632
1653
|
"properties": {
|
|
@@ -1676,6 +1697,9 @@
|
|
|
1676
1697
|
"type": "string",
|
|
1677
1698
|
"maxLength": 255
|
|
1678
1699
|
},
|
|
1700
|
+
{
|
|
1701
|
+
"type": "null"
|
|
1702
|
+
},
|
|
1679
1703
|
{
|
|
1680
1704
|
"type": "object",
|
|
1681
1705
|
"properties": {
|
|
@@ -1728,6 +1752,9 @@
|
|
|
1728
1752
|
"properties": {
|
|
1729
1753
|
"$ne": {
|
|
1730
1754
|
"oneOf": [
|
|
1755
|
+
{
|
|
1756
|
+
"type": "null"
|
|
1757
|
+
},
|
|
1731
1758
|
{
|
|
1732
1759
|
"type": "object",
|
|
1733
1760
|
"properties": {
|
|
@@ -1737,6 +1764,9 @@
|
|
|
1737
1764
|
"type": "string",
|
|
1738
1765
|
"maxLength": 255
|
|
1739
1766
|
},
|
|
1767
|
+
{
|
|
1768
|
+
"type": "null"
|
|
1769
|
+
},
|
|
1740
1770
|
{
|
|
1741
1771
|
"type": "object",
|
|
1742
1772
|
"properties": {
|
|
@@ -1779,6 +1809,9 @@
|
|
|
1779
1809
|
"type": "string",
|
|
1780
1810
|
"maxLength": 255
|
|
1781
1811
|
},
|
|
1812
|
+
{
|
|
1813
|
+
"type": "null"
|
|
1814
|
+
},
|
|
1782
1815
|
{
|
|
1783
1816
|
"type": "object",
|
|
1784
1817
|
"properties": {
|
|
@@ -1828,6 +1861,9 @@
|
|
|
1828
1861
|
"type": "string",
|
|
1829
1862
|
"maxLength": 255
|
|
1830
1863
|
},
|
|
1864
|
+
{
|
|
1865
|
+
"type": "null"
|
|
1866
|
+
},
|
|
1831
1867
|
{
|
|
1832
1868
|
"type": "object",
|
|
1833
1869
|
"properties": {
|
data/schemas/userPost.json
CHANGED
data/test/basic_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
require "rubygems"
|
|
2
2
|
|
|
3
3
|
gem "minitest"
|
|
4
|
+
|
|
4
5
|
require "minitest/autorun"
|
|
5
6
|
require "minitest/spec"
|
|
6
7
|
require "minitest/mock"
|
|
7
8
|
require "webmock/minitest"
|
|
8
9
|
require "platform_rest"
|
|
9
10
|
|
|
10
|
-
class
|
|
11
|
+
class Minitest::Test
|
|
11
12
|
def setup
|
|
12
13
|
WebMock.disable_net_connect!
|
|
13
14
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: losant_rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Kuehl
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: httparty
|
|
@@ -16,56 +15,70 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
18
|
+
version: 0.24.2
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
25
|
+
version: 0.24.2
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: minitest
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
32
|
+
version: 6.0.1
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
39
|
+
version: 6.0.1
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: minitest-mock
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '5.27'
|
|
47
|
+
type: :development
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '5.27'
|
|
41
54
|
- !ruby/object:Gem::Dependency
|
|
42
55
|
name: rake
|
|
43
56
|
requirement: !ruby/object:Gem::Requirement
|
|
44
57
|
requirements:
|
|
45
58
|
- - "~>"
|
|
46
59
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
60
|
+
version: '13'
|
|
48
61
|
type: :development
|
|
49
62
|
prerelease: false
|
|
50
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
64
|
requirements:
|
|
52
65
|
- - "~>"
|
|
53
66
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
67
|
+
version: '13'
|
|
55
68
|
- !ruby/object:Gem::Dependency
|
|
56
69
|
name: webmock
|
|
57
70
|
requirement: !ruby/object:Gem::Requirement
|
|
58
71
|
requirements:
|
|
59
72
|
- - "~>"
|
|
60
73
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
74
|
+
version: 3.26.1
|
|
62
75
|
type: :development
|
|
63
76
|
prerelease: false
|
|
64
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
78
|
requirements:
|
|
66
79
|
- - "~>"
|
|
67
80
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
81
|
+
version: 3.26.1
|
|
69
82
|
description: Easily use the Losant IoT Platform through its REST API with Ruby
|
|
70
83
|
email:
|
|
71
84
|
- hello@losant.com
|
|
@@ -617,7 +630,6 @@ homepage: https://github.com/Losant/losant-rest-ruby
|
|
|
617
630
|
licenses:
|
|
618
631
|
- MIT
|
|
619
632
|
metadata: {}
|
|
620
|
-
post_install_message:
|
|
621
633
|
rdoc_options: []
|
|
622
634
|
require_paths:
|
|
623
635
|
- lib
|
|
@@ -625,15 +637,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
625
637
|
requirements:
|
|
626
638
|
- - ">="
|
|
627
639
|
- !ruby/object:Gem::Version
|
|
628
|
-
version: '2
|
|
640
|
+
version: '3.2'
|
|
629
641
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
630
642
|
requirements:
|
|
631
643
|
- - ">="
|
|
632
644
|
- !ruby/object:Gem::Version
|
|
633
645
|
version: '0'
|
|
634
646
|
requirements: []
|
|
635
|
-
rubygems_version:
|
|
636
|
-
signing_key:
|
|
647
|
+
rubygems_version: 4.0.3
|
|
637
648
|
specification_version: 4
|
|
638
649
|
summary: Provides a simple ruby wrapper around the Losant REST API
|
|
639
650
|
test_files:
|