losant_rest 1.10.4 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +2 -2
  4. data/docs/_schemas.md +35272 -19039
  5. data/docs/application.md +45 -4
  6. data/docs/applicationApiTokens.md +2 -2
  7. data/docs/applicationCertificateAuthorities.md +1 -1
  8. data/docs/applicationCertificates.md +1 -1
  9. data/docs/applicationDashboard.md +133 -0
  10. data/docs/applicationDashboards.md +93 -0
  11. data/docs/applicationKeys.md +4 -3
  12. data/docs/applicationTemplates.md +1 -1
  13. data/docs/applications.md +2 -2
  14. data/docs/auditLogs.md +1 -1
  15. data/docs/dashboards.md +1 -1
  16. data/docs/dataTable.md +1 -1
  17. data/docs/dataTableRows.md +1 -1
  18. data/docs/dataTables.md +2 -2
  19. data/docs/deviceRecipes.md +1 -1
  20. data/docs/devices.md +127 -3
  21. data/docs/edgeDeployments.md +1 -1
  22. data/docs/events.md +4 -4
  23. data/docs/experience.md +1 -1
  24. data/docs/experienceDomains.md +1 -1
  25. data/docs/experienceEndpoint.md +1 -0
  26. data/docs/experienceGroup.md +2 -0
  27. data/docs/experienceGroups.md +1 -1
  28. data/docs/experienceSlugs.md +1 -1
  29. data/docs/experienceUsers.md +1 -1
  30. data/docs/experienceVersion.md +3 -3
  31. data/docs/experienceVersions.md +3 -3
  32. data/docs/experienceView.md +4 -4
  33. data/docs/experienceViews.md +3 -3
  34. data/docs/file.md +5 -5
  35. data/docs/files.md +3 -3
  36. data/docs/flow.md +41 -0
  37. data/docs/flowVersions.md +46 -1
  38. data/docs/flows.md +5 -2
  39. data/docs/instance.md +166 -0
  40. data/docs/instanceApiToken.md +133 -0
  41. data/docs/instanceApiTokens.md +91 -0
  42. data/docs/instanceMember.md +133 -0
  43. data/docs/instanceMembers.md +91 -0
  44. data/docs/instanceOrg.md +133 -0
  45. data/docs/instanceOrgMember.md +139 -0
  46. data/docs/instanceOrgMembers.md +96 -0
  47. data/docs/instanceOrgs.md +91 -0
  48. data/docs/instances.md +50 -0
  49. data/docs/integration.md +1 -0
  50. data/docs/integrations.md +1 -1
  51. data/docs/notebooks.md +1 -1
  52. data/docs/orgs.md +1 -1
  53. data/docs/userApiToken.md +125 -0
  54. data/docs/userApiTokens.md +87 -0
  55. data/docs/webhook.md +1 -0
  56. data/docs/webhooks.md +1 -1
  57. data/lib/losant_rest.rb +15 -1
  58. data/lib/losant_rest/application.rb +53 -6
  59. data/lib/losant_rest/application_api_token.rb +1 -1
  60. data/lib/losant_rest/application_api_tokens.rb +2 -2
  61. data/lib/losant_rest/application_certificate.rb +1 -1
  62. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  63. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  64. data/lib/losant_rest/application_certificates.rb +1 -1
  65. data/lib/losant_rest/application_dashboard.rb +176 -0
  66. data/lib/losant_rest/application_dashboards.rb +138 -0
  67. data/lib/losant_rest/application_key.rb +1 -1
  68. data/lib/losant_rest/application_keys.rb +4 -1
  69. data/lib/losant_rest/application_template.rb +1 -1
  70. data/lib/losant_rest/application_templates.rb +1 -1
  71. data/lib/losant_rest/applications.rb +2 -2
  72. data/lib/losant_rest/audit_log.rb +1 -1
  73. data/lib/losant_rest/audit_logs.rb +1 -1
  74. data/lib/losant_rest/auth.rb +1 -1
  75. data/lib/losant_rest/client.rb +59 -3
  76. data/lib/losant_rest/dashboard.rb +1 -1
  77. data/lib/losant_rest/dashboards.rb +1 -1
  78. data/lib/losant_rest/data.rb +1 -1
  79. data/lib/losant_rest/data_table.rb +2 -2
  80. data/lib/losant_rest/data_table_row.rb +1 -1
  81. data/lib/losant_rest/data_table_rows.rb +2 -2
  82. data/lib/losant_rest/data_tables.rb +2 -2
  83. data/lib/losant_rest/device.rb +1 -1
  84. data/lib/losant_rest/device_recipe.rb +1 -1
  85. data/lib/losant_rest/device_recipes.rb +1 -1
  86. data/lib/losant_rest/devices.rb +155 -3
  87. data/lib/losant_rest/edge_deployments.rb +1 -1
  88. data/lib/losant_rest/error.rb +1 -1
  89. data/lib/losant_rest/event.rb +1 -1
  90. data/lib/losant_rest/events.rb +4 -4
  91. data/lib/losant_rest/experience.rb +2 -2
  92. data/lib/losant_rest/experience_domain.rb +1 -1
  93. data/lib/losant_rest/experience_domains.rb +2 -2
  94. data/lib/losant_rest/experience_endpoint.rb +3 -1
  95. data/lib/losant_rest/experience_endpoints.rb +1 -1
  96. data/lib/losant_rest/experience_group.rb +5 -1
  97. data/lib/losant_rest/experience_groups.rb +1 -1
  98. data/lib/losant_rest/experience_slug.rb +1 -1
  99. data/lib/losant_rest/experience_slugs.rb +2 -2
  100. data/lib/losant_rest/experience_user.rb +1 -1
  101. data/lib/losant_rest/experience_users.rb +1 -1
  102. data/lib/losant_rest/experience_version.rb +4 -4
  103. data/lib/losant_rest/experience_versions.rb +3 -3
  104. data/lib/losant_rest/experience_view.rb +5 -5
  105. data/lib/losant_rest/experience_views.rb +3 -3
  106. data/lib/losant_rest/file.rb +5 -5
  107. data/lib/losant_rest/files.rb +3 -3
  108. data/lib/losant_rest/flow.rb +47 -1
  109. data/lib/losant_rest/flow_version.rb +1 -1
  110. data/lib/losant_rest/flow_versions.rb +54 -1
  111. data/lib/losant_rest/flows.rb +9 -1
  112. data/lib/losant_rest/instance.rb +226 -0
  113. data/lib/losant_rest/instance_api_token.rb +176 -0
  114. data/lib/losant_rest/instance_api_tokens.rb +136 -0
  115. data/lib/losant_rest/instance_member.rb +176 -0
  116. data/lib/losant_rest/instance_members.rb +134 -0
  117. data/lib/losant_rest/instance_org.rb +176 -0
  118. data/lib/losant_rest/instance_org_member.rb +182 -0
  119. data/lib/losant_rest/instance_org_members.rb +138 -0
  120. data/lib/losant_rest/instance_orgs.rb +139 -0
  121. data/lib/losant_rest/instances.rb +88 -0
  122. data/lib/losant_rest/integration.rb +3 -1
  123. data/lib/losant_rest/integrations.rb +1 -1
  124. data/lib/losant_rest/me.rb +2 -2
  125. data/lib/losant_rest/notebook.rb +1 -1
  126. data/lib/losant_rest/notebooks.rb +1 -1
  127. data/lib/losant_rest/org.rb +2 -2
  128. data/lib/losant_rest/org_invites.rb +1 -1
  129. data/lib/losant_rest/orgs.rb +1 -1
  130. data/lib/losant_rest/user_api_token.rb +170 -0
  131. data/lib/losant_rest/user_api_tokens.rb +132 -0
  132. data/lib/losant_rest/utils.rb +1 -1
  133. data/lib/losant_rest/version.rb +2 -2
  134. data/lib/losant_rest/webhook.rb +3 -1
  135. data/lib/losant_rest/webhooks.rb +1 -1
  136. data/schemas/advancedApplicationKeyQuery.json +1082 -0
  137. data/schemas/advancedDeviceQuery.json +309 -0
  138. data/schemas/advancedFlowByVersionQuery.json +665 -0
  139. data/schemas/advancedFlowQuery.json +883 -0
  140. data/schemas/advancedFlowVersionQuery.json +925 -0
  141. data/schemas/apiToken.json +2 -1
  142. data/schemas/apiTokenPost.json +420 -0
  143. data/schemas/apiTokens.json +4 -2
  144. data/schemas/applicationApiTokenPost.json +11 -0
  145. data/schemas/applicationDashboardPost.json +5687 -0
  146. data/schemas/applicationGlobalPatch.json +33 -0
  147. data/schemas/attributeNamesResponse.json +14 -0
  148. data/schemas/auditLog.json +4 -0
  149. data/schemas/auditLogFilter.json +4 -0
  150. data/schemas/auditLogs.json +4 -0
  151. data/schemas/authedUser.json +3 -0
  152. data/schemas/bulkDeleteResponse.json +12 -0
  153. data/schemas/changePassword.json +1 -1
  154. data/schemas/dashboard.json +72 -17
  155. data/schemas/dashboardPatch.json +72 -17
  156. data/schemas/dashboardPost.json +72 -17
  157. data/schemas/dashboardSendReport.json +4 -0
  158. data/schemas/dashboards.json +72 -17
  159. data/schemas/deviceAttributeDataTypeFilter.json +29 -0
  160. data/schemas/deviceClassFilter.json +1 -2
  161. data/schemas/devicesDeletePost.json +309 -0
  162. data/schemas/devicesExportPost.json +309 -0
  163. data/schemas/devicesPatch.json +309 -0
  164. data/schemas/devicesRemoveDataPost.json +309 -0
  165. data/schemas/experienceGroup.json +6 -0
  166. data/schemas/experienceGroups.json +6 -0
  167. data/schemas/experienceLinkedResources.json +57 -0
  168. data/schemas/experienceVersion.json +9 -0
  169. data/schemas/experienceVersionPatch.json +9 -0
  170. data/schemas/experienceVersions.json +9 -0
  171. data/schemas/filePost.json +8 -2
  172. data/schemas/files.json +3 -0
  173. data/schemas/flow.json +19 -0
  174. data/schemas/flowPatch.json +19 -0
  175. data/schemas/flowPost.json +19 -0
  176. data/schemas/flowStorageMetadata.json +13 -0
  177. data/schemas/flowVersion.json +38 -0
  178. data/schemas/flowVersionPost.json +19 -0
  179. data/schemas/flowVersions.json +38 -0
  180. data/schemas/flowVersionsDeletePost.json +941 -0
  181. data/schemas/flows.json +19 -0
  182. data/schemas/flowsImportPost.json +38 -0
  183. data/schemas/flowsImportResult.json +57 -0
  184. data/schemas/githubLogin.json +64 -1
  185. data/schemas/historicalSummaries.json +43 -0
  186. data/schemas/historicalSummary.json +458 -0
  187. data/schemas/instance.json +192 -0
  188. data/schemas/instanceMember.json +37 -0
  189. data/schemas/instanceMemberPatch.json +17 -0
  190. data/schemas/instanceMemberPost.json +22 -0
  191. data/schemas/instanceMembers.json +69 -0
  192. data/schemas/instanceOrg.json +133 -0
  193. data/schemas/instanceOrgMember.json +37 -0
  194. data/schemas/instanceOrgMemberPatch.json +69 -0
  195. data/schemas/instanceOrgMemberPost.json +161 -0
  196. data/schemas/instanceOrgMembers.json +34 -0
  197. data/schemas/instanceOrgPatch.json +122 -0
  198. data/schemas/instanceOrgPost.json +291 -0
  199. data/schemas/instanceOrgs.json +174 -0
  200. data/schemas/instancePatch.json +67 -0
  201. data/schemas/instanceReportOptionsPost.json +41 -0
  202. data/schemas/instances.json +43 -0
  203. data/schemas/integration.json +3 -0
  204. data/schemas/integrationPatch.json +3 -0
  205. data/schemas/integrationPost.json +3 -0
  206. data/schemas/integrations.json +3 -0
  207. data/schemas/me.json +3 -0
  208. data/schemas/mePatch.json +1 -1
  209. data/schemas/multiDeviceCommand.json +309 -0
  210. data/schemas/notebook.json +22 -0
  211. data/schemas/notebookExecutionLogs.json +7 -0
  212. data/schemas/notebookPatch.json +7 -0
  213. data/schemas/notebookPost.json +7 -0
  214. data/schemas/notebooks.json +22 -0
  215. data/schemas/orgPatch.json +0 -9
  216. data/schemas/passwordResetFinish.json +1 -1
  217. data/schemas/payloadStats.json +110 -0
  218. data/schemas/tagKeysResponse.json +14 -0
  219. data/schemas/tagValuesResponse.json +19 -0
  220. data/schemas/userCredentials.json +64 -1
  221. data/schemas/userPost.json +65 -2
  222. data/schemas/validateContextError.json +34 -0
  223. data/schemas/validateContextSuccess.json +34 -0
  224. metadata +64 -3
data/docs/application.md CHANGED
@@ -15,6 +15,7 @@ parameters and the potential responses.
15
15
  * [Full Data Tables Archive](#full-data-tables-archive)
16
16
  * [Full Events Archive](#full-events-archive)
17
17
  * [Get](#get)
18
+ * [Globals](#globals)
18
19
  * [Import](#import)
19
20
  * [Mqtt Publish Message](#mqtt-publish-message)
20
21
  * [Patch](#patch)
@@ -349,7 +350,7 @@ puts result
349
350
  #### Authentication
350
351
  The client must be configured with a valid api access token to call this
351
352
  action. The token must include at least one of the following scopes:
352
- all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, application.*, or application.get.
353
+ all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, application.*, or application.get.
353
354
 
354
355
  #### Available Parameters
355
356
 
@@ -375,6 +376,46 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
375
376
 
376
377
  <br/>
377
378
 
379
+ ## Globals
380
+
381
+ Updates an application global at the given key
382
+
383
+ ```ruby
384
+ result = client.application.globals(
385
+ applicationId: my_application_id,
386
+ globals: my_globals)
387
+
388
+ puts result
389
+ ```
390
+
391
+ #### Authentication
392
+ The client must be configured with a valid api access token to call this
393
+ action. The token must include at least one of the following scopes:
394
+ all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, application.*, or application.patch.
395
+
396
+ #### Available Parameters
397
+
398
+ | Name | Type | Required | Description | Default | Example |
399
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
400
+ | applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
401
+ | globals | [Application Global Patch](_schemas.md#application-global-patch) | Y | Array of objects containing new application global information | | [Application Global Patch Example](_schemas.md#application-global-patch-example) |
402
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
403
+
404
+ #### Successful Responses
405
+
406
+ | Code | Type | Description |
407
+ | ---- | ---- | ----------- |
408
+ | 200 | [Application](_schemas.md#application) | Updated application information |
409
+
410
+ #### Error Responses
411
+
412
+ | Code | Type | Description |
413
+ | ---- | ---- | ----------- |
414
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
415
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
416
+
417
+ <br/>
418
+
378
419
  ## Import
379
420
 
380
421
  Add multiple resources to an application via a zip file
@@ -472,7 +513,7 @@ puts result
472
513
  #### Authentication
473
514
  The client must be configured with a valid api access token to call this
474
515
  action. The token must include at least one of the following scopes:
475
- all.Application, all.Organization, all.User, application.*, or application.patch.
516
+ all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, application.*, or application.patch.
476
517
 
477
518
  #### Available Parameters
478
519
 
@@ -551,7 +592,7 @@ puts result
551
592
  #### Authentication
552
593
  The client must be configured with a valid api access token to call this
553
594
  action. The token must include at least one of the following scopes:
554
- all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, application.*, or application.get.
595
+ all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, application.*, or application.get.
555
596
 
556
597
  #### Available Parameters
557
598
 
@@ -590,7 +631,7 @@ puts result
590
631
  #### Authentication
591
632
  The client must be configured with a valid api access token to call this
592
633
  action. The token must include at least one of the following scopes:
593
- all.Application, all.Organization, all.User, application.*, or application.patch.
634
+ all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, application.*, or application.patch.
594
635
 
595
636
  #### Available Parameters
596
637
 
@@ -34,7 +34,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
34
34
  | sortField | string | N | Field to sort the results by. Accepted values are: name, status, id, creationDate, lastUpdated, expirationDate | name | name |
35
35
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
36
  | page | string | N | Which page of results to return | 0 | 0 |
37
- | perPage | string | N | How many items to return per page | 1000 | 10 |
37
+ | perPage | string | N | How many items to return per page | 100 | 10 |
38
38
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name, status | | key |
39
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my*token |
40
40
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
@@ -75,7 +75,7 @@ all.Application, all.Organization, all.User, applicationApiTokens.*, or applicat
75
75
  | Name | Type | Required | Description | Default | Example |
76
76
  | ---- | ---- | -------- | ----------- | ------- | ------- |
77
77
  | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
78
- | apiToken | [Application API Token Post](_schemas.md#application-api-token-post) | Y | API token information | | [Application API Token Post Example](_schemas.md#application-api-token-post-example) |
78
+ | apiToken | [API Token Post](_schemas.md#api-token-post) | Y | API token information | | [API Token Post Example](_schemas.md#api-token-post-example) |
79
79
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
80
80
 
81
81
  #### Successful Responses
@@ -34,7 +34,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
34
34
  | sortField | string | N | Field to sort the results by. Accepted values are: name, status, id, creationDate, lastUpdated | name | name |
35
35
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
36
  | page | string | N | Which page of results to return | 0 | 0 |
37
- | perPage | string | N | How many items to return per page | 1000 | 10 |
37
+ | perPage | string | N | How many items to return per page | 100 | 10 |
38
38
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name, status | | name |
39
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | the*name |
40
40
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
@@ -34,7 +34,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
34
34
  | sortField | string | N | Field to sort the results by. Accepted values are: certificateInfo.commonName, status, id, creationDate, lastUpdated | certificateInfo.commonName | status |
35
35
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
36
  | page | string | N | Which page of results to return | 0 | 0 |
37
- | perPage | string | N | How many items to return per page | 1000 | 10 |
37
+ | perPage | string | N | How many items to return per page | 100 | 10 |
38
38
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: certificateInfo.commonName, status | | status |
39
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | the*status |
40
40
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
@@ -0,0 +1,133 @@
1
+ # Application Dashboard Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Application Dashboard resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Delete](#delete)
10
+ * [Get](#get)
11
+ * [Patch](#patch)
12
+
13
+ <br/>
14
+
15
+ ## Delete
16
+
17
+ Deletes a dashboard
18
+
19
+ ```ruby
20
+ result = client.application_dashboard.delete(
21
+ dashboardId: my_dashboard_id,
22
+ applicationId: my_application_id)
23
+
24
+ puts result
25
+ ```
26
+
27
+ #### Authentication
28
+ The client must be configured with a valid api access token to call this
29
+ action. The token must include at least one of the following scopes:
30
+ all.Application, all.Organization, all.User, applicationDashboard.*, or applicationDashboard.delete.
31
+
32
+ #### Available Parameters
33
+
34
+ | Name | Type | Required | Description | Default | Example |
35
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
36
+ | dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b |
37
+ | applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
38
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
39
+
40
+ #### Successful Responses
41
+
42
+ | Code | Type | Description |
43
+ | ---- | ---- | ----------- |
44
+ | 200 | [Success](_schemas.md#success) | If dashboard was successfully deleted |
45
+
46
+ #### Error Responses
47
+
48
+ | Code | Type | Description |
49
+ | ---- | ---- | ----------- |
50
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
51
+ | 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
52
+
53
+ <br/>
54
+
55
+ ## Get
56
+
57
+ Retrieves information on a dashboard
58
+
59
+ ```ruby
60
+ result = client.application_dashboard.get(
61
+ dashboardId: my_dashboard_id,
62
+ applicationId: my_application_id)
63
+
64
+ puts result
65
+ ```
66
+
67
+ #### Authentication
68
+ The client must be configured with a valid api access token to call this
69
+ action. The token must include at least one of the following scopes:
70
+ all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, applicationDashboard.*, or applicationDashboard.get.
71
+
72
+ #### Available Parameters
73
+
74
+ | Name | Type | Required | Description | Default | Example |
75
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
76
+ | dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b |
77
+ | applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
78
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
79
+
80
+ #### Successful Responses
81
+
82
+ | Code | Type | Description |
83
+ | ---- | ---- | ----------- |
84
+ | 200 | [Dashboard](_schemas.md#dashboard) | Dashboard information |
85
+
86
+ #### Error Responses
87
+
88
+ | Code | Type | Description |
89
+ | ---- | ---- | ----------- |
90
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
91
+ | 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
92
+
93
+ <br/>
94
+
95
+ ## Patch
96
+
97
+ Updates information about a dashboard
98
+
99
+ ```ruby
100
+ result = client.application_dashboard.patch(
101
+ dashboardId: my_dashboard_id,
102
+ applicationId: my_application_id,
103
+ dashboard: my_dashboard)
104
+
105
+ puts result
106
+ ```
107
+
108
+ #### Authentication
109
+ The client must be configured with a valid api access token to call this
110
+ action. The token must include at least one of the following scopes:
111
+ all.Application, all.Organization, all.User, applicationDashboard.*, or applicationDashboard.patch.
112
+
113
+ #### Available Parameters
114
+
115
+ | Name | Type | Required | Description | Default | Example |
116
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
117
+ | dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b |
118
+ | applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
119
+ | dashboard | [Dashboard Patch](_schemas.md#dashboard-patch) | Y | Object containing new dashboard properties | | [Dashboard Patch Example](_schemas.md#dashboard-patch-example) |
120
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
121
+
122
+ #### Successful Responses
123
+
124
+ | Code | Type | Description |
125
+ | ---- | ---- | ----------- |
126
+ | 200 | [Dashboard](_schemas.md#dashboard) | Update dashboard information |
127
+
128
+ #### Error Responses
129
+
130
+ | Code | Type | Description |
131
+ | ---- | ---- | ----------- |
132
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
133
+ | 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
@@ -0,0 +1,93 @@
1
+ # Application Dashboards Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Application Dashboards resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Get](#get)
10
+ * [Post](#post)
11
+
12
+ <br/>
13
+
14
+ ## Get
15
+
16
+ Returns all dashboards scoped to the given application.
17
+
18
+ ```ruby
19
+ result = client.application_dashboards.get(applicationId: my_application_id)
20
+
21
+ puts result
22
+ ```
23
+
24
+ #### Authentication
25
+ The client must be configured with a valid api access token to call this
26
+ action. The token must include at least one of the following scopes:
27
+ all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, applicationDashboards.*, or applicationDashboards.get.
28
+
29
+ #### Available Parameters
30
+
31
+ | Name | Type | Required | Description | Default | Example |
32
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
33
+ | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
34
+ | sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate | name | name |
35
+ | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
+ | page | string | N | Which page of results to return | 0 | 0 |
37
+ | perPage | string | N | How many items to return per page | 100 | 10 |
38
+ | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | name |
39
+ | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * dashboard |
40
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
41
+
42
+ #### Successful Responses
43
+
44
+ | Code | Type | Description |
45
+ | ---- | ---- | ----------- |
46
+ | 200 | [Dashboards](_schemas.md#dashboards) | Collection of dashboards |
47
+
48
+ #### Error Responses
49
+
50
+ | Code | Type | Description |
51
+ | ---- | ---- | ----------- |
52
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
53
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
54
+
55
+ <br/>
56
+
57
+ ## Post
58
+
59
+ Create a new dashboard
60
+
61
+ ```ruby
62
+ result = client.application_dashboards.post(
63
+ applicationId: my_application_id,
64
+ dashboard: my_dashboard)
65
+
66
+ puts result
67
+ ```
68
+
69
+ #### Authentication
70
+ The client must be configured with a valid api access token to call this
71
+ action. The token must include at least one of the following scopes:
72
+ all.Application, all.Organization, all.User, applicationDashboards.*, or applicationDashboards.post.
73
+
74
+ #### Available Parameters
75
+
76
+ | Name | Type | Required | Description | Default | Example |
77
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
78
+ | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
79
+ | dashboard | [Application Dashboard Post](_schemas.md#application-dashboard-post) | Y | New dashboard information | | [Application Dashboard Post Example](_schemas.md#application-dashboard-post-example) |
80
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
81
+
82
+ #### Successful Responses
83
+
84
+ | Code | Type | Description |
85
+ | ---- | ---- | ----------- |
86
+ | 201 | [Dashboard](_schemas.md#dashboard) | Successfully created dashboard |
87
+
88
+ #### Error Responses
89
+
90
+ | Code | Type | Description |
91
+ | ---- | ---- | ----------- |
92
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
93
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
@@ -31,12 +31,13 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
31
31
  | Name | Type | Required | Description | Default | Example |
32
32
  | ---- | ---- | -------- | ----------- | ------- | ------- |
33
33
  | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
34
- | sortField | string | N | Field to sort the results by. Accepted values are: key, status, id, creationDate, lastUpdated | name | name |
35
- | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
34
+ | sortField | string | N | Field to sort the results by. Accepted values are: key, status, id, creationDate, lastUpdated | creationDate | creationDate |
35
+ | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | desc | asc |
36
36
  | page | string | N | Which page of results to return | 0 | 0 |
37
- | perPage | string | N | How many items to return per page | 1000 | 10 |
37
+ | perPage | string | N | How many items to return per page | 100 | 10 |
38
38
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: key, status | | key |
39
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | the*key |
40
+ | query | [Advanced Application Key Query](_schemas.md#advanced-application-key-query) | N | Application key filter JSON object which overrides the filterField and filter parameters. | | [Advanced Application Key Query Example](_schemas.md#advanced-application-key-query-example) |
40
41
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
41
42
 
42
43
  #### Successful Responses
@@ -34,7 +34,7 @@ all.User, all.User.read, applicationTemplates.*, or applicationTemplates.get.
34
34
  | sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated | name | name |
35
35
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
36
  | page | string | N | Which page of results to return | 0 | 0 |
37
- | perPage | string | N | How many items to return per page | 1000 | 10 |
37
+ | perPage | string | N | How many items to return per page | 100 | 10 |
38
38
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name, authorName | | name |
39
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * app |
40
40
  | keywords | array | N | List of keywords to filter by. Matches all provided keywords. | | [ &#x27;gps&#x27;, &#x27;aws&#x27; ] |
data/docs/applications.md CHANGED
@@ -25,7 +25,7 @@ puts result
25
25
  #### Authentication
26
26
  The client must be configured with a valid api access token to call this
27
27
  action. The token must include at least one of the following scopes:
28
- all.Organization, all.Organization.read, all.User, all.User.read, applications.*, or applications.get.
28
+ all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, applications.*, or applications.get.
29
29
 
30
30
  #### Available Parameters
31
31
 
@@ -34,7 +34,7 @@ all.Organization, all.Organization.read, all.User, all.User.read, applications.*
34
34
  | sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, ownerId, lastUpdated | name | name |
35
35
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
36
  | page | string | N | Which page of results to return | 0 | 0 |
37
- | perPage | string | N | How many items to return per page | 1000 | 10 |
37
+ | perPage | string | N | How many items to return per page | 100 | 10 |
38
38
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | name |
39
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * app |
40
40
  | orgId | string | N | If not provided, return all applications. If provided but blank, only return applications belonging to the current user. If provided and an id, only return applications belonging to the given organization id. | | 575ecdf07ae143cd83dc4a9a |
data/docs/auditLogs.md CHANGED
@@ -33,7 +33,7 @@ all.Organization, all.Organization.read, all.User, all.User.read, auditLogs.*, o
33
33
  | sortField | string | N | Field to sort the results by. Accepted values are: creationDate, responseStatus, actorName | creationDate | creationDate |
34
34
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | desc | asc |
35
35
  | page | string | N | Which page of results to return | 0 | 0 |
36
- | perPage | string | N | How many items to return per page | 1000 | 10 |
36
+ | perPage | string | N | How many items to return per page | 100 | 10 |
37
37
  | start | string | N | Start of time range for audit log query | | 1465790400000 |
38
38
  | end | string | N | End of time range for audit log query | | 1465790400000 |
39
39
  | auditLogFilter | [Audit Log Filter](_schemas.md#audit-log-filter) | N | Filters for the audit log query | | [Audit Log Filter Example](_schemas.md#audit-log-filter-example) |
data/docs/dashboards.md CHANGED
@@ -33,7 +33,7 @@ all.Organization, all.Organization.read, all.User, all.User.read, dashboards.*,
33
33
  | sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, ownerId, applicationId | name | name |
34
34
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
35
35
  | page | string | N | Which page of results to return | 0 | 0 |
36
- | perPage | string | N | How many items to return per page | 1000 | 10 |
36
+ | perPage | string | N | How many items to return per page | 100 | 10 |
37
37
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | name |
38
38
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * dashboard |
39
39
  | applicationId | string | N | If not provided, return all dashboards. If provided but blank, only return dashboards that are not linked to applications. If provided and an id, only return dashboards linked to the given application id. | | 575ec8687ae143cd83dc4a97 |
data/docs/dataTable.md CHANGED
@@ -111,7 +111,7 @@ puts result
111
111
  #### Authentication
112
112
  The client must be configured with a valid api access token to call this
113
113
  action. The token must include at least one of the following scopes:
114
- all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, dataTable.*, or dataTable.get.
114
+ all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, dataTable.*, or dataTable.get.
115
115
 
116
116
  #### Available Parameters
117
117
 
@@ -114,7 +114,7 @@ puts result
114
114
  #### Authentication
115
115
  The client must be configured with a valid api access token to call this
116
116
  action. The token must include at least one of the following scopes:
117
- all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, dataTableRows.*, or dataTableRows.get.
117
+ all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, dataTableRows.*, or dataTableRows.get.
118
118
 
119
119
  #### Available Parameters
120
120
 
data/docs/dataTables.md CHANGED
@@ -24,7 +24,7 @@ puts result
24
24
  #### Authentication
25
25
  The client must be configured with a valid api access token to call this
26
26
  action. The token must include at least one of the following scopes:
27
- all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, dataTables.*, or dataTables.get.
27
+ all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, dataTables.*, or dataTables.get.
28
28
 
29
29
  #### Available Parameters
30
30
 
@@ -34,7 +34,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
34
34
  | sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated | name | name |
35
35
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
36
  | page | string | N | Which page of results to return | 0 | 0 |
37
- | perPage | string | N | How many items to return per page | 1000 | 10 |
37
+ | perPage | string | N | How many items to return per page | 100 | 10 |
38
38
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | name |
39
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my*table |
40
40
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |