losant_rest 1.10.3 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +2 -2
  4. data/docs/_schemas.md +27526 -11724
  5. data/docs/application.md +83 -0
  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/applicationTemplate.md +46 -0
  13. data/docs/applicationTemplates.md +77 -2
  14. data/docs/applications.md +1 -1
  15. data/docs/auditLogs.md +1 -1
  16. data/docs/dashboards.md +1 -1
  17. data/docs/dataTables.md +1 -1
  18. data/docs/device.md +6 -3
  19. data/docs/deviceRecipes.md +1 -1
  20. data/docs/devices.md +125 -1
  21. data/docs/edgeDeployments.md +1 -1
  22. data/docs/events.md +4 -4
  23. data/docs/experienceEndpoint.md +1 -0
  24. data/docs/experienceGroups.md +1 -1
  25. data/docs/experienceUsers.md +1 -1
  26. data/docs/experienceVersions.md +1 -1
  27. data/docs/experienceViews.md +1 -1
  28. data/docs/files.md +1 -1
  29. data/docs/flow.md +41 -0
  30. data/docs/flowVersions.md +2 -1
  31. data/docs/flows.md +5 -2
  32. data/docs/instance.md +128 -0
  33. data/docs/instanceMember.md +133 -0
  34. data/docs/instanceMembers.md +91 -0
  35. data/docs/instanceOrg.md +133 -0
  36. data/docs/instanceOrgMember.md +139 -0
  37. data/docs/instanceOrgMembers.md +96 -0
  38. data/docs/instanceOrgs.md +91 -0
  39. data/docs/instances.md +50 -0
  40. data/docs/integration.md +1 -0
  41. data/docs/integrations.md +1 -1
  42. data/docs/me.md +0 -36
  43. data/docs/notebooks.md +1 -1
  44. data/docs/orgs.md +1 -1
  45. data/docs/webhook.md +1 -0
  46. data/docs/webhooks.md +1 -1
  47. data/lib/losant_rest.rb +12 -1
  48. data/lib/losant_rest/application.rb +97 -2
  49. data/lib/losant_rest/application_api_token.rb +1 -1
  50. data/lib/losant_rest/application_api_tokens.rb +2 -2
  51. data/lib/losant_rest/application_certificate.rb +1 -1
  52. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  53. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  54. data/lib/losant_rest/application_certificates.rb +1 -1
  55. data/lib/losant_rest/application_dashboard.rb +176 -0
  56. data/lib/losant_rest/application_dashboards.rb +138 -0
  57. data/lib/losant_rest/application_key.rb +1 -1
  58. data/lib/losant_rest/application_keys.rb +4 -1
  59. data/lib/losant_rest/application_template.rb +79 -0
  60. data/lib/losant_rest/application_templates.rb +90 -2
  61. data/lib/losant_rest/applications.rb +1 -1
  62. data/lib/losant_rest/audit_log.rb +1 -1
  63. data/lib/losant_rest/audit_logs.rb +1 -1
  64. data/lib/losant_rest/auth.rb +1 -1
  65. data/lib/losant_rest/client.rb +47 -3
  66. data/lib/losant_rest/dashboard.rb +1 -1
  67. data/lib/losant_rest/dashboards.rb +1 -1
  68. data/lib/losant_rest/data.rb +1 -1
  69. data/lib/losant_rest/data_table.rb +1 -1
  70. data/lib/losant_rest/data_table_row.rb +1 -1
  71. data/lib/losant_rest/data_table_rows.rb +1 -1
  72. data/lib/losant_rest/data_tables.rb +1 -1
  73. data/lib/losant_rest/device.rb +10 -4
  74. data/lib/losant_rest/device_recipe.rb +1 -1
  75. data/lib/losant_rest/device_recipes.rb +1 -1
  76. data/lib/losant_rest/devices.rb +153 -1
  77. data/lib/losant_rest/edge_deployments.rb +1 -1
  78. data/lib/losant_rest/error.rb +1 -1
  79. data/lib/losant_rest/event.rb +1 -1
  80. data/lib/losant_rest/events.rb +4 -4
  81. data/lib/losant_rest/experience.rb +1 -1
  82. data/lib/losant_rest/experience_domain.rb +1 -1
  83. data/lib/losant_rest/experience_domains.rb +1 -1
  84. data/lib/losant_rest/experience_endpoint.rb +3 -1
  85. data/lib/losant_rest/experience_endpoints.rb +1 -1
  86. data/lib/losant_rest/experience_group.rb +1 -1
  87. data/lib/losant_rest/experience_groups.rb +1 -1
  88. data/lib/losant_rest/experience_slug.rb +1 -1
  89. data/lib/losant_rest/experience_slugs.rb +1 -1
  90. data/lib/losant_rest/experience_user.rb +1 -1
  91. data/lib/losant_rest/experience_users.rb +1 -1
  92. data/lib/losant_rest/experience_version.rb +1 -1
  93. data/lib/losant_rest/experience_versions.rb +1 -1
  94. data/lib/losant_rest/experience_view.rb +1 -1
  95. data/lib/losant_rest/experience_views.rb +1 -1
  96. data/lib/losant_rest/file.rb +1 -1
  97. data/lib/losant_rest/files.rb +1 -1
  98. data/lib/losant_rest/flow.rb +47 -1
  99. data/lib/losant_rest/flow_version.rb +1 -1
  100. data/lib/losant_rest/flow_versions.rb +4 -1
  101. data/lib/losant_rest/flows.rb +9 -1
  102. data/lib/losant_rest/instance.rb +181 -0
  103. data/lib/losant_rest/instance_member.rb +176 -0
  104. data/lib/losant_rest/instance_members.rb +134 -0
  105. data/lib/losant_rest/instance_org.rb +176 -0
  106. data/lib/losant_rest/instance_org_member.rb +182 -0
  107. data/lib/losant_rest/instance_org_members.rb +138 -0
  108. data/lib/losant_rest/instance_orgs.rb +139 -0
  109. data/lib/losant_rest/instances.rb +88 -0
  110. data/lib/losant_rest/integration.rb +3 -1
  111. data/lib/losant_rest/integrations.rb +1 -1
  112. data/lib/losant_rest/me.rb +2 -43
  113. data/lib/losant_rest/notebook.rb +1 -1
  114. data/lib/losant_rest/notebooks.rb +1 -1
  115. data/lib/losant_rest/org.rb +2 -2
  116. data/lib/losant_rest/org_invites.rb +1 -1
  117. data/lib/losant_rest/orgs.rb +1 -1
  118. data/lib/losant_rest/utils.rb +1 -1
  119. data/lib/losant_rest/version.rb +2 -2
  120. data/lib/losant_rest/webhook.rb +3 -1
  121. data/lib/losant_rest/webhooks.rb +1 -1
  122. data/schemas/advancedApplicationKeyQuery.json +1082 -0
  123. data/schemas/advancedDeviceQuery.json +309 -0
  124. data/schemas/advancedFlowByVersionQuery.json +665 -0
  125. data/schemas/advancedFlowQuery.json +883 -0
  126. data/schemas/advancedFlowVersionQuery.json +925 -0
  127. data/schemas/application.json +8 -0
  128. data/schemas/applicationApiTokenPost.json +12 -0
  129. data/schemas/applicationApplyTemplatePatch.json +19 -0
  130. data/schemas/applicationCreationByTemplateResult.json +8 -0
  131. data/schemas/applicationDashboardPost.json +5683 -0
  132. data/schemas/applicationGlobalPatch.json +33 -0
  133. data/schemas/applicationPost.json +8 -0
  134. data/schemas/applicationTemplate.json +20 -0
  135. data/schemas/applicationTemplateCategories.json +43 -0
  136. data/schemas/applicationTemplateCategory.json +23 -0
  137. data/schemas/applicationTemplates.json +32 -0
  138. data/schemas/applications.json +8 -0
  139. data/schemas/attributeNamesResponse.json +14 -0
  140. data/schemas/authedUser.json +3 -0
  141. data/schemas/changePassword.json +2 -2
  142. data/schemas/dashboard.json +197 -26
  143. data/schemas/dashboardPatch.json +197 -26
  144. data/schemas/dashboardPost.json +197 -26
  145. data/schemas/dashboards.json +197 -26
  146. data/schemas/dataExport.json +132 -1
  147. data/schemas/deviceAttributeDataTypeFilter.json +29 -0
  148. data/schemas/deviceClassFilter.json +1 -2
  149. data/schemas/devicesDeletePost.json +309 -0
  150. data/schemas/devicesExportPost.json +309 -0
  151. data/schemas/devicesPatch.json +309 -0
  152. data/schemas/devicesRemoveDataPost.json +309 -0
  153. data/schemas/experienceLinkedResources.json +96 -0
  154. data/schemas/experienceVersion.json +9 -0
  155. data/schemas/experienceVersionPatch.json +9 -0
  156. data/schemas/experienceVersions.json +9 -0
  157. data/schemas/filePost.json +8 -2
  158. data/schemas/files.json +3 -0
  159. data/schemas/flow.json +32 -0
  160. data/schemas/flowPatch.json +32 -0
  161. data/schemas/flowPost.json +32 -0
  162. data/schemas/flowStorageMetadata.json +13 -0
  163. data/schemas/flowVersion.json +64 -0
  164. data/schemas/flowVersionPost.json +32 -0
  165. data/schemas/flowVersions.json +64 -0
  166. data/schemas/flows.json +32 -0
  167. data/schemas/flowsImportPost.json +64 -0
  168. data/schemas/flowsImportResult.json +96 -0
  169. data/schemas/githubLogin.json +53 -4
  170. data/schemas/historicalSummaries.json +43 -0
  171. data/schemas/historicalSummary.json +455 -0
  172. data/schemas/instance.json +132 -0
  173. data/schemas/instanceMember.json +37 -0
  174. data/schemas/instanceMemberPatch.json +17 -0
  175. data/schemas/instanceMemberPost.json +22 -0
  176. data/schemas/instanceMembers.json +69 -0
  177. data/schemas/instanceOrg.json +133 -0
  178. data/schemas/instanceOrgMember.json +37 -0
  179. data/schemas/instanceOrgMemberPatch.json +69 -0
  180. data/schemas/instanceOrgMemberPost.json +161 -0
  181. data/schemas/instanceOrgMembers.json +34 -0
  182. data/schemas/instanceOrgPatch.json +122 -0
  183. data/schemas/instanceOrgPost.json +125 -0
  184. data/schemas/instanceOrgs.json +174 -0
  185. data/schemas/instanceReportOptionsPost.json +40 -0
  186. data/schemas/instances.json +43 -0
  187. data/schemas/integration.json +3 -0
  188. data/schemas/integrationPatch.json +3 -0
  189. data/schemas/integrationPost.json +3 -0
  190. data/schemas/integrations.json +3 -0
  191. data/schemas/me.json +3 -3
  192. data/schemas/mePatch.json +2 -2
  193. data/schemas/multiDeviceCommand.json +309 -0
  194. data/schemas/notebook.json +7 -0
  195. data/schemas/notebookExecutionLogs.json +7 -0
  196. data/schemas/notebookPatch.json +7 -0
  197. data/schemas/notebookPost.json +7 -0
  198. data/schemas/notebooks.json +7 -0
  199. data/schemas/orgInviteInfo.json +3 -0
  200. data/schemas/orgInvitePost.json +3 -0
  201. data/schemas/orgInvites.json +3 -0
  202. data/schemas/orgPatch.json +0 -9
  203. data/schemas/passwordResetFinish.json +2 -2
  204. data/schemas/payloadStats.json +110 -0
  205. data/schemas/tagKeysResponse.json +14 -0
  206. data/schemas/tagValuesResponse.json +19 -0
  207. data/schemas/templateKeywords.json +14 -0
  208. data/schemas/timeSeriesData.json +12 -2
  209. data/schemas/timeSeriesQuery.json +94 -14
  210. data/schemas/userCredentials.json +51 -3
  211. data/schemas/userPost.json +59 -7
  212. metadata +61 -6
data/docs/application.md CHANGED
@@ -6,6 +6,7 @@ parameters and the potential responses.
6
6
 
7
7
  ##### Contents
8
8
 
9
+ * [Apply Template](#apply-template)
9
10
  * [Archive Data](#archive-data)
10
11
  * [Backfill Archive Data](#backfill-archive-data)
11
12
  * [Clone](#clone)
@@ -14,6 +15,7 @@ parameters and the potential responses.
14
15
  * [Full Data Tables Archive](#full-data-tables-archive)
15
16
  * [Full Events Archive](#full-events-archive)
16
17
  * [Get](#get)
18
+ * [Globals](#globals)
17
19
  * [Import](#import)
18
20
  * [Mqtt Publish Message](#mqtt-publish-message)
19
21
  * [Patch](#patch)
@@ -24,6 +26,47 @@ parameters and the potential responses.
24
26
 
25
27
  <br/>
26
28
 
29
+ ## Apply Template
30
+
31
+ Add resources to an application via an application template
32
+
33
+ ```ruby
34
+ result = client.application.apply_template(
35
+ applicationId: my_application_id,
36
+ options: my_options)
37
+
38
+ puts result
39
+ ```
40
+
41
+ #### Authentication
42
+ The client must be configured with a valid api access token to call this
43
+ action. The token must include at least one of the following scopes:
44
+ all.Application, all.Organization, all.User, application.*, or application.applyTemplate.
45
+
46
+ #### Available Parameters
47
+
48
+ | Name | Type | Required | Description | Default | Example |
49
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
50
+ | applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
51
+ | options | [Application Apply Template Patch Schema](_schemas.md#application-apply-template-patch-schema) | Y | Object containing template import options | | [Application Apply Template Patch Schema Example](_schemas.md#application-apply-template-patch-schema-example) |
52
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
53
+
54
+ #### Successful Responses
55
+
56
+ | Code | Type | Description |
57
+ | ---- | ---- | ----------- |
58
+ | 200 | [Application](_schemas.md#application) | Updated application information |
59
+ | 202 | [Job Enqueued API Result](_schemas.md#job-enqueued-api-result) | If a job was enqueued for the resources to be imported into the application |
60
+
61
+ #### Error Responses
62
+
63
+ | Code | Type | Description |
64
+ | ---- | ---- | ----------- |
65
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
66
+ | 404 | [Error](_schemas.md#error) | Error if application is not found |
67
+
68
+ <br/>
69
+
27
70
  ## Archive Data
28
71
 
29
72
  Returns success when a job has been enqueued to archive this application&#x27;s device data for a given day
@@ -333,6 +376,46 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
333
376
 
334
377
  <br/>
335
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.Organization, all.User, 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
+
336
419
  ## Import
337
420
 
338
421
  Add multiple resources to an application via a zip file
@@ -31,10 +31,10 @@ 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: name, status, id, creationDate, lastUpdated | name | name |
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 |
@@ -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
@@ -0,0 +1,46 @@
1
+ # Application Template Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Application Template resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Get](#get)
10
+
11
+ <br/>
12
+
13
+ ## Get
14
+
15
+ Retrieves information on an application template
16
+
17
+ ```ruby
18
+ result = client.application_template.get(templateId: my_template_id)
19
+
20
+ puts result
21
+ ```
22
+
23
+ #### Authentication
24
+ The client must be configured with a valid api access token to call this
25
+ action. The token must include at least one of the following scopes:
26
+ all.User, all.User.read, applicationTemplate.*, or applicationTemplate.get.
27
+
28
+ #### Available Parameters
29
+
30
+ | Name | Type | Required | Description | Default | Example |
31
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
32
+ | templateId | string | Y | ID associated with the template | | 575ed0de7ae143cd83dc4aa5 |
33
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
34
+
35
+ #### Successful Responses
36
+
37
+ | Code | Type | Description |
38
+ | ---- | ---- | ----------- |
39
+ | 200 | [Application Template](_schemas.md#application-template) | Application template information |
40
+
41
+ #### Error Responses
42
+
43
+ | Code | Type | Description |
44
+ | ---- | ---- | ----------- |
45
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
46
+ | 404 | [Error](_schemas.md#error) | Error if template was not found |
@@ -7,6 +7,8 @@ parameters and the potential responses.
7
7
  ##### Contents
8
8
 
9
9
  * [Get](#get)
10
+ * [Get Categories](#get-categories)
11
+ * [Get Unique Keywords](#get-unique-keywords)
10
12
 
11
13
  <br/>
12
14
 
@@ -32,9 +34,11 @@ all.User, all.User.read, applicationTemplates.*, or applicationTemplates.get.
32
34
  | sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated | name | name |
33
35
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
34
36
  | page | string | N | Which page of results to return | 0 | 0 |
35
- | perPage | string | N | How many items to return per page | 1000 | 10 |
36
- | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | name |
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, authorName | | name |
37
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * app |
40
+ | keywords | array | N | List of keywords to filter by. Matches all provided keywords. | | [ &#x27;gps&#x27;, &#x27;aws&#x27; ] |
41
+ | categoryId | string | N | ID of a category to filter by. | | 575ec76c7ae143cd83dc4a96 |
38
42
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
39
43
 
40
44
  #### Successful Responses
@@ -48,3 +52,74 @@ all.User, all.User.read, applicationTemplates.*, or applicationTemplates.get.
48
52
  | Code | Type | Description |
49
53
  | ---- | ---- | ----------- |
50
54
  | 400 | [Error](_schemas.md#error) | Error if malformed request |
55
+
56
+ <br/>
57
+
58
+ ## Get Categories
59
+
60
+ Returns a category list, beginning at the specified category
61
+
62
+ ```ruby
63
+ result = client.application_templates.get_categories(optional_params)
64
+
65
+ puts result
66
+ ```
67
+
68
+ #### Authentication
69
+ The client must be configured with a valid api access token to call this
70
+ action. The token must include at least one of the following scopes:
71
+ all.User, all.User.read, applicationTemplates.*, or applicationTemplates.getCategories.
72
+
73
+ #### Available Parameters
74
+
75
+ | Name | Type | Required | Description | Default | Example |
76
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
77
+ | baseId | string | N | ID of the category to begin from | | 575ed6e87ae143cd83dc4aa8 |
78
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
79
+
80
+ #### Successful Responses
81
+
82
+ | Code | Type | Description |
83
+ | ---- | ---- | ----------- |
84
+ | 200 | [Application Template Categories](_schemas.md#application-template-categories) | Collection of application categories |
85
+
86
+ #### Error Responses
87
+
88
+ | Code | Type | Description |
89
+ | ---- | ---- | ----------- |
90
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
91
+
92
+ <br/>
93
+
94
+ ## Get Unique Keywords
95
+
96
+ Returns an array of all unique keywords currently in use by templates
97
+
98
+ ```ruby
99
+ result = client.application_templates.get_unique_keywords(optional_params)
100
+
101
+ puts result
102
+ ```
103
+
104
+ #### Authentication
105
+ The client must be configured with a valid api access token to call this
106
+ action. The token must include at least one of the following scopes:
107
+ all.User, all.User.read, applicationTemplates.*, or applicationTemplates.getUniqueKeywords.
108
+
109
+ #### Available Parameters
110
+
111
+ | Name | Type | Required | Description | Default | Example |
112
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
113
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
114
+
115
+ #### Successful Responses
116
+
117
+ | Code | Type | Description |
118
+ | ---- | ---- | ----------- |
119
+ | 200 | [Template Keywords](_schemas.md#template-keywords) | Array of all unique template keywords |
120
+
121
+ #### Error Responses
122
+
123
+ | Code | Type | Description |
124
+ | ---- | ---- | ----------- |
125
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |