losant_rest 1.14.0 → 1.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/docs/_schemas.md +10590 -3153
- data/docs/devices.md +40 -0
- data/docs/embeddedDeployment.md +49 -0
- data/docs/embeddedDeployments.md +215 -0
- data/docs/flow.md +2 -2
- data/docs/flows.md +2 -2
- data/docs/instance.md +4 -2
- data/lib/losant_rest/application.rb +1 -1
- data/lib/losant_rest/application_api_token.rb +1 -1
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/application_certificate.rb +1 -1
- data/lib/losant_rest/application_certificate_authorities.rb +1 -1
- data/lib/losant_rest/application_certificate_authority.rb +1 -1
- data/lib/losant_rest/application_certificates.rb +1 -1
- data/lib/losant_rest/application_dashboard.rb +1 -1
- data/lib/losant_rest/application_dashboards.rb +1 -1
- data/lib/losant_rest/application_key.rb +1 -1
- data/lib/losant_rest/application_keys.rb +1 -1
- data/lib/losant_rest/application_template.rb +1 -1
- data/lib/losant_rest/application_templates.rb +1 -1
- data/lib/losant_rest/applications.rb +1 -1
- data/lib/losant_rest/audit_log.rb +1 -1
- data/lib/losant_rest/audit_logs.rb +1 -1
- data/lib/losant_rest/auth.rb +1 -1
- data/lib/losant_rest/client.rb +11 -3
- data/lib/losant_rest/dashboard.rb +1 -1
- data/lib/losant_rest/dashboards.rb +1 -1
- data/lib/losant_rest/data.rb +1 -1
- data/lib/losant_rest/data_table.rb +1 -1
- data/lib/losant_rest/data_table_row.rb +1 -1
- data/lib/losant_rest/data_table_rows.rb +1 -1
- data/lib/losant_rest/data_tables.rb +1 -1
- data/lib/losant_rest/device.rb +1 -1
- data/lib/losant_rest/device_recipe.rb +1 -1
- data/lib/losant_rest/device_recipes.rb +1 -1
- data/lib/losant_rest/devices.rb +50 -1
- data/lib/losant_rest/edge_deployment.rb +1 -1
- data/lib/losant_rest/edge_deployments.rb +1 -1
- data/lib/losant_rest/embedded_deployment.rb +81 -0
- data/lib/losant_rest/embedded_deployments.rb +280 -0
- data/lib/losant_rest/error.rb +1 -1
- data/lib/losant_rest/event.rb +1 -1
- data/lib/losant_rest/events.rb +1 -1
- data/lib/losant_rest/experience.rb +1 -1
- data/lib/losant_rest/experience_domain.rb +1 -1
- data/lib/losant_rest/experience_domains.rb +1 -1
- data/lib/losant_rest/experience_endpoint.rb +1 -1
- data/lib/losant_rest/experience_endpoints.rb +1 -1
- data/lib/losant_rest/experience_group.rb +1 -1
- data/lib/losant_rest/experience_groups.rb +1 -1
- data/lib/losant_rest/experience_slug.rb +1 -1
- data/lib/losant_rest/experience_slugs.rb +1 -1
- data/lib/losant_rest/experience_user.rb +1 -1
- data/lib/losant_rest/experience_users.rb +1 -1
- data/lib/losant_rest/experience_version.rb +1 -1
- data/lib/losant_rest/experience_versions.rb +1 -1
- data/lib/losant_rest/experience_view.rb +1 -1
- data/lib/losant_rest/experience_views.rb +1 -1
- data/lib/losant_rest/file.rb +1 -1
- data/lib/losant_rest/files.rb +1 -1
- data/lib/losant_rest/flow.rb +3 -3
- data/lib/losant_rest/flow_version.rb +1 -1
- data/lib/losant_rest/flow_versions.rb +1 -1
- data/lib/losant_rest/flows.rb +3 -3
- data/lib/losant_rest/instance.rb +2 -1
- data/lib/losant_rest/instance_api_token.rb +1 -1
- data/lib/losant_rest/instance_api_tokens.rb +1 -1
- data/lib/losant_rest/instance_member.rb +1 -1
- data/lib/losant_rest/instance_members.rb +1 -1
- data/lib/losant_rest/instance_org.rb +1 -1
- data/lib/losant_rest/instance_org_invite.rb +1 -1
- data/lib/losant_rest/instance_org_invites.rb +1 -1
- data/lib/losant_rest/instance_org_member.rb +1 -1
- data/lib/losant_rest/instance_org_members.rb +1 -1
- data/lib/losant_rest/instance_orgs.rb +1 -1
- data/lib/losant_rest/instances.rb +1 -1
- data/lib/losant_rest/integration.rb +1 -1
- data/lib/losant_rest/integrations.rb +1 -1
- data/lib/losant_rest/me.rb +1 -1
- data/lib/losant_rest/notebook.rb +1 -1
- data/lib/losant_rest/notebooks.rb +1 -1
- data/lib/losant_rest/org.rb +1 -1
- data/lib/losant_rest/org_invites.rb +1 -1
- data/lib/losant_rest/orgs.rb +1 -1
- data/lib/losant_rest/user_api_token.rb +1 -1
- data/lib/losant_rest/user_api_tokens.rb +1 -1
- data/lib/losant_rest/utils.rb +1 -1
- data/lib/losant_rest/version.rb +2 -2
- data/lib/losant_rest/webhook.rb +1 -1
- data/lib/losant_rest/webhooks.rb +1 -1
- data/lib/losant_rest.rb +3 -1
- data/schemas/apiTokenPost.json +9 -0
- data/schemas/application.json +32 -32
- data/schemas/applicationCreationByTemplateResult.json +32 -32
- data/schemas/applicationDashboardPost.json +8 -5
- data/schemas/applicationPatch.json +13 -13
- data/schemas/applicationPost.json +13 -13
- data/schemas/applicationTemplate.json +16 -16
- data/schemas/applicationTemplates.json +16 -16
- data/schemas/applications.json +32 -32
- data/schemas/authedDevice.json +2 -1
- data/schemas/dashboard.json +8 -5
- data/schemas/dashboardPatch.json +8 -5
- data/schemas/dashboardPost.json +8 -5
- data/schemas/dashboardSendReport.json +6 -6
- data/schemas/dashboards.json +8 -5
- data/schemas/dataTableRowsDelete.json +1 -1
- data/schemas/device.json +2 -1
- data/schemas/deviceClassFilter.json +4 -2
- data/schemas/deviceNamesResponse.json +36 -0
- data/schemas/devicePatch.json +2 -1
- data/schemas/devicePost.json +2 -1
- data/schemas/deviceRecipe.json +2 -1
- data/schemas/deviceRecipePatch.json +2 -1
- data/schemas/deviceRecipePost.json +2 -1
- data/schemas/deviceRecipes.json +2 -1
- data/schemas/devices.json +4 -2
- data/schemas/devicesPatch.json +4 -2
- data/schemas/edgeDeployment.json +4 -0
- data/schemas/edgeDeployments.json +4 -0
- data/schemas/embeddedDeployment.json +179 -0
- data/schemas/embeddedDeploymentExport.json +44 -0
- data/schemas/embeddedDeploymentRelease.json +58 -0
- data/schemas/embeddedDeploymentRemove.json +25 -0
- data/schemas/embeddedDeploymentReplace.json +29 -0
- data/schemas/embeddedDeployments.json +212 -0
- data/schemas/eventsDeleted.json +1 -1
- data/schemas/eventsExport.json +4 -0
- data/schemas/experienceEndpoint.json +6 -8
- data/schemas/experienceEndpointPatch.json +6 -8
- data/schemas/experienceEndpointPost.json +6 -8
- data/schemas/experienceEndpoints.json +6 -8
- data/schemas/experienceLinkedResources.json +1292 -167
- data/schemas/flow.json +391 -15
- data/schemas/flowPatch.json +390 -15
- data/schemas/flowPost.json +391 -15
- data/schemas/flowVersion.json +821 -71
- data/schemas/flowVersionPost.json +390 -15
- data/schemas/flowVersions.json +821 -71
- data/schemas/flows.json +392 -15
- data/schemas/flowsImportPost.json +821 -70
- data/schemas/flowsImportResult.json +1392 -266
- data/schemas/githubLogin.json +9 -0
- data/schemas/historicalSummary.json +87 -74
- data/schemas/instance.json +92 -79
- data/schemas/instanceMember.json +6 -1
- data/schemas/instanceMembers.json +6 -1
- data/schemas/instanceOrg.json +87 -74
- data/schemas/instanceOrgMember.json +6 -1
- data/schemas/instanceOrgPatch.json +64 -26
- data/schemas/instanceOrgPost.json +65 -27
- data/schemas/instanceOrgs.json +87 -74
- data/schemas/instancePatch.json +2 -2
- data/schemas/integration.json +1 -1
- data/schemas/integrationPatch.json +1 -1
- data/schemas/integrationPost.json +1 -1
- data/schemas/integrations.json +1 -1
- data/schemas/me.json +104 -92
- data/schemas/mePatch.json +0 -1
- data/schemas/notebook.json +2 -1
- data/schemas/notebookExecutionLogs.json +2 -1
- data/schemas/notebookPatch.json +2 -1
- data/schemas/notebookPost.json +2 -1
- data/schemas/notebooks.json +2 -1
- data/schemas/org.json +115 -97
- data/schemas/orgs.json +115 -97
- data/schemas/userCredentials.json +9 -0
- data/schemas/userPost.json +9 -1
- metadata +17 -6
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/flows.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -47,7 +47,7 @@ module LosantRest
|
|
47
47
|
# * {string} perPage - How many items to return per page
|
48
48
|
# * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name
|
49
49
|
# * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
|
50
|
-
# * {string} flowClass - Filter the workflows by the given flow class. Accepted values are: edge, cloud, customNode, experience
|
50
|
+
# * {string} flowClass - Filter the workflows by the given flow class. Accepted values are: edge, embedded, cloud, customNode, experience
|
51
51
|
# * {hash} triggerFilter - Array of triggers to filter by - always filters against default flow version. (https://api.losant.com/#/definitions/flowTriggerFilter)
|
52
52
|
# * {string} includeCustomNodes - If the result of the request should also include the details of any custom nodes referenced by the returned workflows
|
53
53
|
# * {hash} query - Workflow filter JSON object which overrides the filterField, filter, triggerFilter, and flowClass parameters. (https://api.losant.com/#/definitions/advancedFlowQuery)
|
@@ -114,7 +114,7 @@ module LosantRest
|
|
114
114
|
# * {string} perPage - How many items to return per page
|
115
115
|
# * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name
|
116
116
|
# * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
|
117
|
-
# * {string} flowClass - Filter the workflows by the given flow class. Accepted values are: edge, cloud, customNode, experience
|
117
|
+
# * {string} flowClass - Filter the workflows by the given flow class. Accepted values are: edge, embedded, cloud, customNode, experience
|
118
118
|
# * {string} version - Return the workflow versions for the given version.
|
119
119
|
# * {hash} triggerFilter - Array of triggers to filter by - always filters against default flow version. (https://api.losant.com/#/definitions/flowTriggerFilter)
|
120
120
|
# * {string} includeCustomNodes - If the result of the request should also include the details of any custom nodes referenced by the returned workflows
|
data/lib/losant_rest/instance.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -205,6 +205,7 @@ module LosantRest
|
|
205
205
|
body = nil
|
206
206
|
|
207
207
|
raise ArgumentError.new("instanceId is required") unless params.has_key?(:instanceId)
|
208
|
+
raise ArgumentError.new("instance is required") unless params.has_key?(:instance)
|
208
209
|
|
209
210
|
body = params[:instance] if params.has_key?(:instance)
|
210
211
|
headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/me.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/notebook.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/org.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/orgs.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/utils.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -21,5 +21,5 @@
|
|
21
21
|
# SOFTWARE.
|
22
22
|
|
23
23
|
module LosantRest
|
24
|
-
VERSION = "1.
|
24
|
+
VERSION = "1.15.2"
|
25
25
|
end
|
data/lib/losant_rest/webhook.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/webhooks.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2022 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -53,6 +53,8 @@ require_relative "losant_rest/device_recipes"
|
|
53
53
|
require_relative "losant_rest/devices"
|
54
54
|
require_relative "losant_rest/edge_deployment"
|
55
55
|
require_relative "losant_rest/edge_deployments"
|
56
|
+
require_relative "losant_rest/embedded_deployment"
|
57
|
+
require_relative "losant_rest/embedded_deployments"
|
56
58
|
require_relative "losant_rest/event"
|
57
59
|
require_relative "losant_rest/events"
|
58
60
|
require_relative "losant_rest/experience"
|
data/schemas/apiTokenPost.json
CHANGED
@@ -52,6 +52,8 @@
|
|
52
52
|
"devices.*",
|
53
53
|
"edgeDeployment.*",
|
54
54
|
"edgeDeployments.*",
|
55
|
+
"embeddedDeployment.*",
|
56
|
+
"embeddedDeployments.*",
|
55
57
|
"event.*",
|
56
58
|
"events.*",
|
57
59
|
"experience.*",
|
@@ -168,6 +170,7 @@
|
|
168
170
|
"devices.delete",
|
169
171
|
"devices.removeData",
|
170
172
|
"devices.detailedSummary",
|
173
|
+
"devices.deviceNames",
|
171
174
|
"devices.export",
|
172
175
|
"devices.get",
|
173
176
|
"devices.payloadCounts",
|
@@ -180,6 +183,12 @@
|
|
180
183
|
"edgeDeployments.release",
|
181
184
|
"edgeDeployments.remove",
|
182
185
|
"edgeDeployments.replace",
|
186
|
+
"embeddedDeployment.get",
|
187
|
+
"embeddedDeployments.get",
|
188
|
+
"embeddedDeployments.release",
|
189
|
+
"embeddedDeployments.remove",
|
190
|
+
"embeddedDeployments.replace",
|
191
|
+
"embeddedDeployments.export",
|
183
192
|
"event.delete",
|
184
193
|
"event.get",
|
185
194
|
"event.patch",
|
data/schemas/application.json
CHANGED
@@ -108,66 +108,66 @@
|
|
108
108
|
"type": "object",
|
109
109
|
"properties": {
|
110
110
|
"apiTokenCount": {
|
111
|
-
"type": "
|
111
|
+
"type": "integer"
|
112
112
|
},
|
113
113
|
"dataTableCount": {
|
114
|
-
"type": "
|
114
|
+
"type": "integer"
|
115
115
|
},
|
116
116
|
"deviceCount": {
|
117
|
-
"type": "
|
117
|
+
"type": "integer"
|
118
118
|
},
|
119
119
|
"deviceRecipeCount": {
|
120
|
-
"type": "
|
120
|
+
"type": "integer"
|
121
121
|
},
|
122
122
|
"eventCount": {
|
123
|
-
"type": "
|
123
|
+
"type": "integer"
|
124
124
|
},
|
125
125
|
"experienceDomainCount": {
|
126
|
-
"type": "
|
126
|
+
"type": "integer"
|
127
127
|
},
|
128
128
|
"experienceEndpointCount": {
|
129
|
-
"type": "
|
129
|
+
"type": "integer"
|
130
130
|
},
|
131
131
|
"experienceGroupCount": {
|
132
|
-
"type": "
|
132
|
+
"type": "integer"
|
133
133
|
},
|
134
134
|
"experienceSlugCount": {
|
135
|
-
"type": "
|
135
|
+
"type": "integer"
|
136
136
|
},
|
137
137
|
"experienceUserCount": {
|
138
|
-
"type": "
|
138
|
+
"type": "integer"
|
139
139
|
},
|
140
140
|
"experienceVersionCount": {
|
141
|
-
"type": "
|
141
|
+
"type": "integer"
|
142
142
|
},
|
143
143
|
"experienceViewCount": {
|
144
|
-
"type": "
|
144
|
+
"type": "integer"
|
145
145
|
},
|
146
146
|
"fileCount": {
|
147
|
-
"type": "
|
147
|
+
"type": "integer"
|
148
148
|
},
|
149
149
|
"flowCount": {
|
150
|
-
"type": "
|
150
|
+
"type": "integer"
|
151
151
|
},
|
152
152
|
"integrationCount": {
|
153
|
-
"type": "
|
153
|
+
"type": "integer"
|
154
154
|
},
|
155
155
|
"keyCount": {
|
156
|
-
"type": "
|
156
|
+
"type": "integer"
|
157
157
|
},
|
158
158
|
"storageStats": {
|
159
159
|
"type": "object",
|
160
160
|
"properties": {
|
161
161
|
"count": {
|
162
|
-
"type": "
|
162
|
+
"type": "integer"
|
163
163
|
},
|
164
164
|
"size": {
|
165
|
-
"type": "
|
165
|
+
"type": "integer"
|
166
166
|
}
|
167
167
|
}
|
168
168
|
},
|
169
169
|
"webhookCount": {
|
170
|
-
"type": "
|
170
|
+
"type": "integer"
|
171
171
|
}
|
172
172
|
}
|
173
173
|
},
|
@@ -205,7 +205,7 @@
|
|
205
205
|
"properties": {
|
206
206
|
"directory": {
|
207
207
|
"type": "string",
|
208
|
-
"
|
208
|
+
"maxLength": 255
|
209
209
|
},
|
210
210
|
"mode": {
|
211
211
|
"type": "string",
|
@@ -275,21 +275,21 @@
|
|
275
275
|
"properties": {
|
276
276
|
"bucket": {
|
277
277
|
"type": "string",
|
278
|
-
"
|
278
|
+
"maxLength": 255
|
279
279
|
},
|
280
280
|
"accessKeyId": {
|
281
281
|
"type": "string",
|
282
|
-
"
|
283
|
-
"
|
282
|
+
"minLength": 4,
|
283
|
+
"maxLength": 128
|
284
284
|
},
|
285
285
|
"secretAccessKey": {
|
286
286
|
"type": "string",
|
287
|
-
"
|
288
|
-
"
|
287
|
+
"minLength": 4,
|
288
|
+
"maxLength": 128
|
289
289
|
},
|
290
290
|
"region": {
|
291
291
|
"type": "string",
|
292
|
-
"
|
292
|
+
"maxLength": 128
|
293
293
|
}
|
294
294
|
},
|
295
295
|
"required": [
|
@@ -315,7 +315,7 @@
|
|
315
315
|
},
|
316
316
|
"bucket": {
|
317
317
|
"type": "string",
|
318
|
-
"
|
318
|
+
"maxLength": 255
|
319
319
|
}
|
320
320
|
},
|
321
321
|
"required": [
|
@@ -330,17 +330,17 @@
|
|
330
330
|
"properties": {
|
331
331
|
"account": {
|
332
332
|
"type": "string",
|
333
|
-
"
|
334
|
-
"
|
333
|
+
"minLength": 3,
|
334
|
+
"maxLength": 24
|
335
335
|
},
|
336
336
|
"accountKey": {
|
337
337
|
"type": "string",
|
338
|
-
"
|
338
|
+
"maxLength": 255
|
339
339
|
},
|
340
340
|
"bucket": {
|
341
341
|
"type": "string",
|
342
|
-
"
|
343
|
-
"
|
342
|
+
"minLength": 3,
|
343
|
+
"maxLength": 63
|
344
344
|
}
|
345
345
|
},
|
346
346
|
"required": [
|
@@ -113,66 +113,66 @@
|
|
113
113
|
"type": "object",
|
114
114
|
"properties": {
|
115
115
|
"apiTokenCount": {
|
116
|
-
"type": "
|
116
|
+
"type": "integer"
|
117
117
|
},
|
118
118
|
"dataTableCount": {
|
119
|
-
"type": "
|
119
|
+
"type": "integer"
|
120
120
|
},
|
121
121
|
"deviceCount": {
|
122
|
-
"type": "
|
122
|
+
"type": "integer"
|
123
123
|
},
|
124
124
|
"deviceRecipeCount": {
|
125
|
-
"type": "
|
125
|
+
"type": "integer"
|
126
126
|
},
|
127
127
|
"eventCount": {
|
128
|
-
"type": "
|
128
|
+
"type": "integer"
|
129
129
|
},
|
130
130
|
"experienceDomainCount": {
|
131
|
-
"type": "
|
131
|
+
"type": "integer"
|
132
132
|
},
|
133
133
|
"experienceEndpointCount": {
|
134
|
-
"type": "
|
134
|
+
"type": "integer"
|
135
135
|
},
|
136
136
|
"experienceGroupCount": {
|
137
|
-
"type": "
|
137
|
+
"type": "integer"
|
138
138
|
},
|
139
139
|
"experienceSlugCount": {
|
140
|
-
"type": "
|
140
|
+
"type": "integer"
|
141
141
|
},
|
142
142
|
"experienceUserCount": {
|
143
|
-
"type": "
|
143
|
+
"type": "integer"
|
144
144
|
},
|
145
145
|
"experienceVersionCount": {
|
146
|
-
"type": "
|
146
|
+
"type": "integer"
|
147
147
|
},
|
148
148
|
"experienceViewCount": {
|
149
|
-
"type": "
|
149
|
+
"type": "integer"
|
150
150
|
},
|
151
151
|
"fileCount": {
|
152
|
-
"type": "
|
152
|
+
"type": "integer"
|
153
153
|
},
|
154
154
|
"flowCount": {
|
155
|
-
"type": "
|
155
|
+
"type": "integer"
|
156
156
|
},
|
157
157
|
"integrationCount": {
|
158
|
-
"type": "
|
158
|
+
"type": "integer"
|
159
159
|
},
|
160
160
|
"keyCount": {
|
161
|
-
"type": "
|
161
|
+
"type": "integer"
|
162
162
|
},
|
163
163
|
"storageStats": {
|
164
164
|
"type": "object",
|
165
165
|
"properties": {
|
166
166
|
"count": {
|
167
|
-
"type": "
|
167
|
+
"type": "integer"
|
168
168
|
},
|
169
169
|
"size": {
|
170
|
-
"type": "
|
170
|
+
"type": "integer"
|
171
171
|
}
|
172
172
|
}
|
173
173
|
},
|
174
174
|
"webhookCount": {
|
175
|
-
"type": "
|
175
|
+
"type": "integer"
|
176
176
|
}
|
177
177
|
}
|
178
178
|
},
|
@@ -210,7 +210,7 @@
|
|
210
210
|
"properties": {
|
211
211
|
"directory": {
|
212
212
|
"type": "string",
|
213
|
-
"
|
213
|
+
"maxLength": 255
|
214
214
|
},
|
215
215
|
"mode": {
|
216
216
|
"type": "string",
|
@@ -280,21 +280,21 @@
|
|
280
280
|
"properties": {
|
281
281
|
"bucket": {
|
282
282
|
"type": "string",
|
283
|
-
"
|
283
|
+
"maxLength": 255
|
284
284
|
},
|
285
285
|
"accessKeyId": {
|
286
286
|
"type": "string",
|
287
|
-
"
|
288
|
-
"
|
287
|
+
"minLength": 4,
|
288
|
+
"maxLength": 128
|
289
289
|
},
|
290
290
|
"secretAccessKey": {
|
291
291
|
"type": "string",
|
292
|
-
"
|
293
|
-
"
|
292
|
+
"minLength": 4,
|
293
|
+
"maxLength": 128
|
294
294
|
},
|
295
295
|
"region": {
|
296
296
|
"type": "string",
|
297
|
-
"
|
297
|
+
"maxLength": 128
|
298
298
|
}
|
299
299
|
},
|
300
300
|
"required": [
|
@@ -320,7 +320,7 @@
|
|
320
320
|
},
|
321
321
|
"bucket": {
|
322
322
|
"type": "string",
|
323
|
-
"
|
323
|
+
"maxLength": 255
|
324
324
|
}
|
325
325
|
},
|
326
326
|
"required": [
|
@@ -335,17 +335,17 @@
|
|
335
335
|
"properties": {
|
336
336
|
"account": {
|
337
337
|
"type": "string",
|
338
|
-
"
|
339
|
-
"
|
338
|
+
"minLength": 3,
|
339
|
+
"maxLength": 24
|
340
340
|
},
|
341
341
|
"accountKey": {
|
342
342
|
"type": "string",
|
343
|
-
"
|
343
|
+
"maxLength": 255
|
344
344
|
},
|
345
345
|
"bucket": {
|
346
346
|
"type": "string",
|
347
|
-
"
|
348
|
-
"
|
347
|
+
"minLength": 3,
|
348
|
+
"maxLength": 63
|
349
349
|
}
|
350
350
|
},
|
351
351
|
"required": [
|