losant_rest 1.18.0 → 1.19.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +10369 -390
  3. data/docs/applications.md +49 -0
  4. data/docs/credential.md +175 -0
  5. data/docs/credentials.md +93 -0
  6. data/docs/device.md +12 -3
  7. data/docs/me.md +116 -0
  8. data/lib/losant_rest/client.rb +10 -2
  9. data/lib/losant_rest/credential.rb +224 -0
  10. data/lib/losant_rest/credentials.rb +138 -0
  11. data/lib/losant_rest/version.rb +1 -1
  12. data/lib/losant_rest.rb +2 -0
  13. data/lib/platform_rest/application.rb +932 -0
  14. data/lib/platform_rest/application_api_token.rb +176 -0
  15. data/lib/platform_rest/application_api_tokens.rb +136 -0
  16. data/lib/platform_rest/application_certificate.rb +176 -0
  17. data/lib/platform_rest/application_certificate_authorities.rb +138 -0
  18. data/lib/platform_rest/application_certificate_authority.rb +176 -0
  19. data/lib/platform_rest/application_certificates.rb +138 -0
  20. data/lib/platform_rest/application_dashboard.rb +225 -0
  21. data/lib/platform_rest/application_dashboards.rb +138 -0
  22. data/lib/platform_rest/application_key.rb +176 -0
  23. data/lib/platform_rest/application_keys.rb +141 -0
  24. data/lib/platform_rest/application_template.rb +79 -0
  25. data/lib/platform_rest/application_templates.rb +176 -0
  26. data/lib/platform_rest/applications.rb +209 -0
  27. data/lib/platform_rest/audit_log.rb +81 -0
  28. data/lib/platform_rest/audit_logs.rb +93 -0
  29. data/lib/platform_rest/auth.rb +245 -0
  30. data/lib/platform_rest/client.rb +410 -0
  31. data/lib/platform_rest/credential.rb +224 -0
  32. data/lib/platform_rest/credentials.rb +138 -0
  33. data/lib/platform_rest/dashboard.rb +268 -0
  34. data/lib/platform_rest/dashboards.rb +136 -0
  35. data/lib/platform_rest/data.rb +176 -0
  36. data/lib/platform_rest/data_table.rb +274 -0
  37. data/lib/platform_rest/data_table_row.rb +182 -0
  38. data/lib/platform_rest/data_table_rows.rb +343 -0
  39. data/lib/platform_rest/data_tables.rb +138 -0
  40. data/lib/platform_rest/device.rb +767 -0
  41. data/lib/platform_rest/device_recipe.rb +234 -0
  42. data/lib/platform_rest/device_recipes.rb +146 -0
  43. data/lib/platform_rest/devices.rb +707 -0
  44. data/lib/platform_rest/edge_deployment.rb +81 -0
  45. data/lib/platform_rest/edge_deployments.rb +236 -0
  46. data/lib/platform_rest/embedded_deployment.rb +81 -0
  47. data/lib/platform_rest/embedded_deployments.rb +280 -0
  48. data/lib/platform_rest/error.rb +34 -0
  49. data/lib/platform_rest/event.rb +176 -0
  50. data/lib/platform_rest/events.rb +341 -0
  51. data/lib/platform_rest/experience.rb +142 -0
  52. data/lib/platform_rest/experience_domain.rb +176 -0
  53. data/lib/platform_rest/experience_domains.rb +126 -0
  54. data/lib/platform_rest/experience_endpoint.rb +230 -0
  55. data/lib/platform_rest/experience_endpoints.rb +200 -0
  56. data/lib/platform_rest/experience_group.rb +180 -0
  57. data/lib/platform_rest/experience_groups.rb +141 -0
  58. data/lib/platform_rest/experience_slug.rb +176 -0
  59. data/lib/platform_rest/experience_slugs.rb +126 -0
  60. data/lib/platform_rest/experience_user.rb +176 -0
  61. data/lib/platform_rest/experience_users.rb +142 -0
  62. data/lib/platform_rest/experience_version.rb +176 -0
  63. data/lib/platform_rest/experience_versions.rb +138 -0
  64. data/lib/platform_rest/experience_view.rb +228 -0
  65. data/lib/platform_rest/experience_views.rb +142 -0
  66. data/lib/platform_rest/file.rb +226 -0
  67. data/lib/platform_rest/files.rb +144 -0
  68. data/lib/platform_rest/flow.rb +580 -0
  69. data/lib/platform_rest/flow_version.rb +352 -0
  70. data/lib/platform_rest/flow_versions.rb +201 -0
  71. data/lib/platform_rest/flows.rb +310 -0
  72. data/lib/platform_rest/instance.rb +377 -0
  73. data/lib/platform_rest/instance_api_token.rb +176 -0
  74. data/lib/platform_rest/instance_api_tokens.rb +136 -0
  75. data/lib/platform_rest/instance_custom_node.rb +282 -0
  76. data/lib/platform_rest/instance_custom_nodes.rb +136 -0
  77. data/lib/platform_rest/instance_member.rb +176 -0
  78. data/lib/platform_rest/instance_members.rb +134 -0
  79. data/lib/platform_rest/instance_org.rb +336 -0
  80. data/lib/platform_rest/instance_org_invite.rb +182 -0
  81. data/lib/platform_rest/instance_org_invites.rb +138 -0
  82. data/lib/platform_rest/instance_org_member.rb +182 -0
  83. data/lib/platform_rest/instance_org_members.rb +138 -0
  84. data/lib/platform_rest/instance_orgs.rb +139 -0
  85. data/lib/platform_rest/instance_sandbox.rb +181 -0
  86. data/lib/platform_rest/instance_sandboxes.rb +98 -0
  87. data/lib/platform_rest/instances.rb +88 -0
  88. data/lib/platform_rest/integration.rb +178 -0
  89. data/lib/platform_rest/integrations.rb +138 -0
  90. data/lib/platform_rest/me.rb +923 -0
  91. data/lib/platform_rest/notebook.rb +423 -0
  92. data/lib/platform_rest/notebooks.rb +138 -0
  93. data/lib/platform_rest/org.rb +663 -0
  94. data/lib/platform_rest/org_invites.rb +124 -0
  95. data/lib/platform_rest/orgs.rb +140 -0
  96. data/lib/platform_rest/resource_job.rb +326 -0
  97. data/lib/platform_rest/resource_jobs.rb +138 -0
  98. data/lib/platform_rest/user_api_token.rb +170 -0
  99. data/lib/platform_rest/user_api_tokens.rb +132 -0
  100. data/lib/platform_rest/utils.rb +44 -0
  101. data/lib/platform_rest/webhook.rb +178 -0
  102. data/lib/platform_rest/webhooks.rb +138 -0
  103. data/lib/platform_rest.rb +129 -0
  104. data/schemas/apiTokenPost.json +12 -0
  105. data/schemas/application.json +9 -8
  106. data/schemas/applicationCreationByTemplateResult.json +9 -8
  107. data/schemas/applicationDashboardPost.json +66 -0
  108. data/schemas/applicationPatch.json +6 -8
  109. data/schemas/applicationPost.json +6 -8
  110. data/schemas/applications.json +9 -8
  111. data/schemas/credential.json +115 -0
  112. data/schemas/credentialLinkedResources.json +8254 -0
  113. data/schemas/credentialPatch.json +66 -0
  114. data/schemas/credentialPost.json +89 -0
  115. data/schemas/credentials.json +160 -0
  116. data/schemas/dashboard.json +66 -0
  117. data/schemas/dashboardPatch.json +76 -3
  118. data/schemas/dashboardPost.json +76 -3
  119. data/schemas/dashboards.json +66 -0
  120. data/schemas/device.json +8 -0
  121. data/schemas/deviceConnectionStatus.json +10 -0
  122. data/schemas/deviceLog.json +3 -0
  123. data/schemas/devices.json +8 -0
  124. data/schemas/event.json +8 -0
  125. data/schemas/eventPlusNewCount.json +8 -0
  126. data/schemas/events.json +8 -0
  127. data/schemas/experienceGroup.json +8 -0
  128. data/schemas/experienceGroups.json +8 -0
  129. data/schemas/experienceLinkedResources.json +6 -3
  130. data/schemas/flow.json +2 -1
  131. data/schemas/flowPatch.json +2 -1
  132. data/schemas/flowPost.json +2 -1
  133. data/schemas/flowVersion.json +4 -2
  134. data/schemas/flowVersionPost.json +2 -1
  135. data/schemas/flowVersions.json +4 -2
  136. data/schemas/flows.json +2 -1
  137. data/schemas/flowsImportPost.json +4 -2
  138. data/schemas/flowsImportResult.json +6 -3
  139. data/schemas/githubLogin.json +12 -0
  140. data/schemas/historicalSummaries.json +4 -0
  141. data/schemas/historicalSummary.json +4 -0
  142. data/schemas/instance.json +7 -0
  143. data/schemas/instanceOrg.json +4 -0
  144. data/schemas/instanceOrgPatch.json +4 -0
  145. data/schemas/instanceOrgPost.json +4 -0
  146. data/schemas/instanceOrgs.json +4 -0
  147. data/schemas/instancePatch.json +4 -0
  148. data/schemas/instanceSandbox.json +6 -0
  149. data/schemas/instanceSandboxes.json +6 -0
  150. data/schemas/instances.json +7 -0
  151. data/schemas/integration.json +26 -12
  152. data/schemas/integrationPatch.json +33 -22
  153. data/schemas/integrationPost.json +26 -12
  154. data/schemas/integrations.json +26 -12
  155. data/schemas/me.json +6 -0
  156. data/schemas/org.json +7 -0
  157. data/schemas/orgInviteActionUser.json +18 -0
  158. data/schemas/orgInviteResultUser.json +18 -0
  159. data/schemas/orgInviteUser.json +51 -0
  160. data/schemas/orgInvitesUser.json +59 -0
  161. data/schemas/orgs.json +7 -0
  162. data/schemas/payloadCountsBreakdown.json +1 -25
  163. data/schemas/periodSummaries.json +172 -0
  164. data/schemas/samlResponse.json +12 -0
  165. data/schemas/userCredentials.json +12 -0
  166. data/schemas/userPost.json +12 -0
  167. metadata +107 -2
@@ -0,0 +1,138 @@
1
+ # The MIT License (MIT)
2
+ #
3
+ # Copyright (c) 2023 Losant IoT, Inc.
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in all
13
+ # copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ # SOFTWARE.
22
+
23
+ require "json"
24
+
25
+ module PlatformRest
26
+
27
+ # Class containing all the actions for the Webhooks Resource
28
+ class Webhooks
29
+
30
+ def initialize(client)
31
+ @client = client
32
+ end
33
+
34
+ # Returns the webhooks for an application
35
+ #
36
+ # Authentication:
37
+ # The client must be configured with a valid api
38
+ # access token to call this action. The token
39
+ # must include at least one of the following scopes:
40
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, webhooks.*, or webhooks.get.
41
+ #
42
+ # Parameters:
43
+ # * {string} applicationId - ID associated with the application
44
+ # * {string} sortField - Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated
45
+ # * {string} sortDirection - Direction to sort the results by. Accepted values are: asc, desc
46
+ # * {string} page - Which page of results to return
47
+ # * {string} perPage - How many items to return per page
48
+ # * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name
49
+ # * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
50
+ # * {string} losantdomain - Domain scope of request (rarely needed)
51
+ # * {boolean} _actions - Return resource actions in response
52
+ # * {boolean} _links - Return resource link in response
53
+ # * {boolean} _embedded - Return embedded resources in response
54
+ #
55
+ # Responses:
56
+ # * 200 - Collection of webhooks (https://api.losant.com/#/definitions/webhooks)
57
+ #
58
+ # Errors:
59
+ # * 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
60
+ # * 404 - Error if application was not found (https://api.losant.com/#/definitions/error)
61
+ def get(params = {})
62
+ params = Utils.symbolize_hash_keys(params)
63
+ query_params = { _actions: false, _links: true, _embedded: true }
64
+ headers = {}
65
+ body = nil
66
+
67
+ raise ArgumentError.new("applicationId is required") unless params.has_key?(:applicationId)
68
+
69
+ query_params[:sortField] = params[:sortField] if params.has_key?(:sortField)
70
+ query_params[:sortDirection] = params[:sortDirection] if params.has_key?(:sortDirection)
71
+ query_params[:page] = params[:page] if params.has_key?(:page)
72
+ query_params[:perPage] = params[:perPage] if params.has_key?(:perPage)
73
+ query_params[:filterField] = params[:filterField] if params.has_key?(:filterField)
74
+ query_params[:filter] = params[:filter] if params.has_key?(:filter)
75
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
76
+ query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
77
+ query_params[:_links] = params[:_links] if params.has_key?(:_links)
78
+ query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
79
+
80
+ path = "/applications/#{params[:applicationId]}/webhooks"
81
+
82
+ @client.request(
83
+ method: :get,
84
+ path: path,
85
+ query: query_params,
86
+ headers: headers,
87
+ body: body)
88
+ end
89
+
90
+ # Create a new webhook for an application
91
+ #
92
+ # Authentication:
93
+ # The client must be configured with a valid api
94
+ # access token to call this action. The token
95
+ # must include at least one of the following scopes:
96
+ # all.Application, all.Organization, all.User, webhooks.*, or webhooks.post.
97
+ #
98
+ # Parameters:
99
+ # * {string} applicationId - ID associated with the application
100
+ # * {hash} webhook - New webhook information (https://api.losant.com/#/definitions/webhookPost)
101
+ # * {string} losantdomain - Domain scope of request (rarely needed)
102
+ # * {boolean} _actions - Return resource actions in response
103
+ # * {boolean} _links - Return resource link in response
104
+ # * {boolean} _embedded - Return embedded resources in response
105
+ #
106
+ # Responses:
107
+ # * 201 - Successfully created webhook (https://api.losant.com/#/definitions/webhook)
108
+ #
109
+ # Errors:
110
+ # * 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
111
+ # * 404 - Error if application was not found (https://api.losant.com/#/definitions/error)
112
+ def post(params = {})
113
+ params = Utils.symbolize_hash_keys(params)
114
+ query_params = { _actions: false, _links: true, _embedded: true }
115
+ headers = {}
116
+ body = nil
117
+
118
+ raise ArgumentError.new("applicationId is required") unless params.has_key?(:applicationId)
119
+ raise ArgumentError.new("webhook is required") unless params.has_key?(:webhook)
120
+
121
+ body = params[:webhook] if params.has_key?(:webhook)
122
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
123
+ query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
124
+ query_params[:_links] = params[:_links] if params.has_key?(:_links)
125
+ query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
126
+
127
+ path = "/applications/#{params[:applicationId]}/webhooks"
128
+
129
+ @client.request(
130
+ method: :post,
131
+ path: path,
132
+ query: query_params,
133
+ headers: headers,
134
+ body: body)
135
+ end
136
+
137
+ end
138
+ end
@@ -0,0 +1,129 @@
1
+ # The MIT License (MIT)
2
+ #
3
+ # Copyright (c) 2023 Losant IoT, Inc.
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in all
13
+ # copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ # SOFTWARE.
22
+
23
+ require_relative "platform_rest/version"
24
+ require_relative "platform_rest/error"
25
+ require_relative "platform_rest/utils"
26
+ require_relative "platform_rest/application"
27
+ require_relative "platform_rest/application_api_token"
28
+ require_relative "platform_rest/application_api_tokens"
29
+ require_relative "platform_rest/application_certificate"
30
+ require_relative "platform_rest/application_certificate_authorities"
31
+ require_relative "platform_rest/application_certificate_authority"
32
+ require_relative "platform_rest/application_certificates"
33
+ require_relative "platform_rest/application_dashboard"
34
+ require_relative "platform_rest/application_dashboards"
35
+ require_relative "platform_rest/application_key"
36
+ require_relative "platform_rest/application_keys"
37
+ require_relative "platform_rest/application_template"
38
+ require_relative "platform_rest/application_templates"
39
+ require_relative "platform_rest/applications"
40
+ require_relative "platform_rest/audit_log"
41
+ require_relative "platform_rest/audit_logs"
42
+ require_relative "platform_rest/auth"
43
+ require_relative "platform_rest/credential"
44
+ require_relative "platform_rest/credentials"
45
+ require_relative "platform_rest/dashboard"
46
+ require_relative "platform_rest/dashboards"
47
+ require_relative "platform_rest/data"
48
+ require_relative "platform_rest/data_table"
49
+ require_relative "platform_rest/data_table_row"
50
+ require_relative "platform_rest/data_table_rows"
51
+ require_relative "platform_rest/data_tables"
52
+ require_relative "platform_rest/device"
53
+ require_relative "platform_rest/device_recipe"
54
+ require_relative "platform_rest/device_recipes"
55
+ require_relative "platform_rest/devices"
56
+ require_relative "platform_rest/edge_deployment"
57
+ require_relative "platform_rest/edge_deployments"
58
+ require_relative "platform_rest/embedded_deployment"
59
+ require_relative "platform_rest/embedded_deployments"
60
+ require_relative "platform_rest/event"
61
+ require_relative "platform_rest/events"
62
+ require_relative "platform_rest/experience"
63
+ require_relative "platform_rest/experience_domain"
64
+ require_relative "platform_rest/experience_domains"
65
+ require_relative "platform_rest/experience_endpoint"
66
+ require_relative "platform_rest/experience_endpoints"
67
+ require_relative "platform_rest/experience_group"
68
+ require_relative "platform_rest/experience_groups"
69
+ require_relative "platform_rest/experience_slug"
70
+ require_relative "platform_rest/experience_slugs"
71
+ require_relative "platform_rest/experience_user"
72
+ require_relative "platform_rest/experience_users"
73
+ require_relative "platform_rest/experience_version"
74
+ require_relative "platform_rest/experience_versions"
75
+ require_relative "platform_rest/experience_view"
76
+ require_relative "platform_rest/experience_views"
77
+ require_relative "platform_rest/file"
78
+ require_relative "platform_rest/files"
79
+ require_relative "platform_rest/flow"
80
+ require_relative "platform_rest/flow_version"
81
+ require_relative "platform_rest/flow_versions"
82
+ require_relative "platform_rest/flows"
83
+ require_relative "platform_rest/instance"
84
+ require_relative "platform_rest/instance_api_token"
85
+ require_relative "platform_rest/instance_api_tokens"
86
+ require_relative "platform_rest/instance_custom_node"
87
+ require_relative "platform_rest/instance_custom_nodes"
88
+ require_relative "platform_rest/instance_member"
89
+ require_relative "platform_rest/instance_members"
90
+ require_relative "platform_rest/instance_org"
91
+ require_relative "platform_rest/instance_org_invite"
92
+ require_relative "platform_rest/instance_org_invites"
93
+ require_relative "platform_rest/instance_org_member"
94
+ require_relative "platform_rest/instance_org_members"
95
+ require_relative "platform_rest/instance_orgs"
96
+ require_relative "platform_rest/instance_sandbox"
97
+ require_relative "platform_rest/instance_sandboxes"
98
+ require_relative "platform_rest/instances"
99
+ require_relative "platform_rest/integration"
100
+ require_relative "platform_rest/integrations"
101
+ require_relative "platform_rest/me"
102
+ require_relative "platform_rest/notebook"
103
+ require_relative "platform_rest/notebooks"
104
+ require_relative "platform_rest/org"
105
+ require_relative "platform_rest/org_invites"
106
+ require_relative "platform_rest/orgs"
107
+ require_relative "platform_rest/resource_job"
108
+ require_relative "platform_rest/resource_jobs"
109
+ require_relative "platform_rest/user_api_token"
110
+ require_relative "platform_rest/user_api_tokens"
111
+ require_relative "platform_rest/webhook"
112
+ require_relative "platform_rest/webhooks"
113
+ require_relative "platform_rest/client"
114
+
115
+ module PlatformRest
116
+
117
+ def self.client
118
+ @client ||= Client.new
119
+ end
120
+
121
+ def self.method_missing(sym, *args, &block)
122
+ self.client.__send__(sym, *args, &block)
123
+ end
124
+
125
+ def respond_to_missing?(method_name, include_private = false)
126
+ self.client.respond_to?(method_name, include_private)
127
+ end
128
+
129
+ end
@@ -41,6 +41,8 @@
41
41
  "applicationDashboard.*",
42
42
  "applicationKey.*",
43
43
  "applicationKeys.*",
44
+ "credential.*",
45
+ "credentials.*",
44
46
  "data.*",
45
47
  "dataTable.*",
46
48
  "dataTables.*",
@@ -130,6 +132,12 @@
130
132
  "applicationKey.patch",
131
133
  "applicationKeys.get",
132
134
  "applicationKeys.post",
135
+ "credential.get",
136
+ "credential.linkedResources",
137
+ "credential.patch",
138
+ "credential.delete",
139
+ "credentials.get",
140
+ "credentials.post",
133
141
  "data.export",
134
142
  "data.lastValueQuery",
135
143
  "data.timeSeriesQuery",
@@ -329,6 +337,7 @@
329
337
  "applications.post",
330
338
  "applications.import",
331
339
  "applications.detailedSummary",
340
+ "applications.periodSummaries",
332
341
  "auditLog.get",
333
342
  "auditLogs.get",
334
343
  "dashboard.patch",
@@ -463,6 +472,9 @@
463
472
  "me.deviceCounts",
464
473
  "me.notebookMinuteCounts",
465
474
  "me.transferResources",
475
+ "me.invite",
476
+ "me.invites",
477
+ "me.respondToInvite",
466
478
  "orgs.*",
467
479
  "orgs.get",
468
480
  "orgs.post"
@@ -110,6 +110,9 @@
110
110
  "apiTokenCount": {
111
111
  "type": "integer"
112
112
  },
113
+ "credentialCount": {
114
+ "type": "integer"
115
+ },
113
116
  "dataTableCount": {
114
117
  "type": "integer"
115
118
  },
@@ -293,13 +296,15 @@
293
296
  }
294
297
  },
295
298
  "required": [
296
- "bucket",
297
- "accessKeyId",
298
- "secretAccessKey",
299
- "region"
299
+ "bucket"
300
300
  ],
301
301
  "additionalProperties": false
302
302
  },
303
+ "credentialName": {
304
+ "type": "string",
305
+ "minLength": 1,
306
+ "maxLength": 255
307
+ },
303
308
  "gcs": {
304
309
  "type": "object",
305
310
  "properties": {
@@ -319,8 +324,6 @@
319
324
  }
320
325
  },
321
326
  "required": [
322
- "projectId",
323
- "keyJson",
324
327
  "bucket"
325
328
  ],
326
329
  "additionalProperties": false
@@ -344,8 +347,6 @@
344
347
  }
345
348
  },
346
349
  "required": [
347
- "account",
348
- "accountKey",
349
350
  "bucket"
350
351
  ],
351
352
  "additionalProperties": false
@@ -115,6 +115,9 @@
115
115
  "apiTokenCount": {
116
116
  "type": "integer"
117
117
  },
118
+ "credentialCount": {
119
+ "type": "integer"
120
+ },
118
121
  "dataTableCount": {
119
122
  "type": "integer"
120
123
  },
@@ -298,13 +301,15 @@
298
301
  }
299
302
  },
300
303
  "required": [
301
- "bucket",
302
- "accessKeyId",
303
- "secretAccessKey",
304
- "region"
304
+ "bucket"
305
305
  ],
306
306
  "additionalProperties": false
307
307
  },
308
+ "credentialName": {
309
+ "type": "string",
310
+ "minLength": 1,
311
+ "maxLength": 255
312
+ },
308
313
  "gcs": {
309
314
  "type": "object",
310
315
  "properties": {
@@ -324,8 +329,6 @@
324
329
  }
325
330
  },
326
331
  "required": [
327
- "projectId",
328
- "keyJson",
329
332
  "bucket"
330
333
  ],
331
334
  "additionalProperties": false
@@ -349,8 +352,6 @@
349
352
  }
350
353
  },
351
354
  "required": [
352
- "account",
353
- "accountKey",
354
355
  "bucket"
355
356
  ],
356
357
  "additionalProperties": false
@@ -2388,6 +2388,10 @@
2388
2388
  }
2389
2389
  ]
2390
2390
  },
2391
+ "yAxisId": {
2392
+ "type": "string",
2393
+ "maxLength": 48
2394
+ },
2391
2395
  "lineType": {
2392
2396
  "type": "string",
2393
2397
  "enum": [
@@ -2441,6 +2445,62 @@
2441
2445
  },
2442
2446
  "additionalProperties": false
2443
2447
  }
2448
+ },
2449
+ "yAxes": {
2450
+ "type": "array",
2451
+ "maxItems": 10,
2452
+ "items": {
2453
+ "type": "object",
2454
+ "properties": {
2455
+ "id": {
2456
+ "type": "string",
2457
+ "maxLength": 48
2458
+ },
2459
+ "label": {
2460
+ "type": "string",
2461
+ "maxLength": 255
2462
+ },
2463
+ "position": {
2464
+ "type": "string",
2465
+ "enum": [
2466
+ "left",
2467
+ "right",
2468
+ "hidden"
2469
+ ],
2470
+ "default": "left"
2471
+ },
2472
+ "min": {
2473
+ "oneOf": [
2474
+ {
2475
+ "type": "number"
2476
+ },
2477
+ {
2478
+ "type": "string",
2479
+ "maxLength": 128
2480
+ }
2481
+ ]
2482
+ },
2483
+ "max": {
2484
+ "oneOf": [
2485
+ {
2486
+ "type": "number"
2487
+ },
2488
+ {
2489
+ "type": "string",
2490
+ "maxLength": 128
2491
+ }
2492
+ ]
2493
+ },
2494
+ "format": {
2495
+ "type": "string",
2496
+ "maxLength": 255
2497
+ }
2498
+ },
2499
+ "additionalProperties": false,
2500
+ "required": [
2501
+ "id"
2502
+ ]
2503
+ }
2444
2504
  }
2445
2505
  },
2446
2506
  "additionalProperties": false
@@ -2811,6 +2871,9 @@
2811
2871
  "defaultZoom": {
2812
2872
  "type": "number"
2813
2873
  },
2874
+ "disableZoom": {
2875
+ "type": "boolean"
2876
+ },
2814
2877
  "segments": {
2815
2878
  "type": "array",
2816
2879
  "maxItems": 300,
@@ -5378,6 +5441,9 @@
5378
5441
  }
5379
5442
  ]
5380
5443
  },
5444
+ "disableZoom": {
5445
+ "type": "boolean"
5446
+ },
5381
5447
  "deviceIds": {
5382
5448
  "type": "array",
5383
5449
  "maxItems": 100,
@@ -177,13 +177,15 @@
177
177
  }
178
178
  },
179
179
  "required": [
180
- "bucket",
181
- "accessKeyId",
182
- "secretAccessKey",
183
- "region"
180
+ "bucket"
184
181
  ],
185
182
  "additionalProperties": false
186
183
  },
184
+ "credentialName": {
185
+ "type": "string",
186
+ "minLength": 1,
187
+ "maxLength": 255
188
+ },
187
189
  "gcs": {
188
190
  "type": "object",
189
191
  "properties": {
@@ -203,8 +205,6 @@
203
205
  }
204
206
  },
205
207
  "required": [
206
- "projectId",
207
- "keyJson",
208
208
  "bucket"
209
209
  ],
210
210
  "additionalProperties": false
@@ -228,8 +228,6 @@
228
228
  }
229
229
  },
230
230
  "required": [
231
- "account",
232
- "accountKey",
233
231
  "bucket"
234
232
  ],
235
233
  "additionalProperties": false
@@ -164,13 +164,15 @@
164
164
  }
165
165
  },
166
166
  "required": [
167
- "bucket",
168
- "accessKeyId",
169
- "secretAccessKey",
170
- "region"
167
+ "bucket"
171
168
  ],
172
169
  "additionalProperties": false
173
170
  },
171
+ "credentialName": {
172
+ "type": "string",
173
+ "minLength": 1,
174
+ "maxLength": 255
175
+ },
174
176
  "gcs": {
175
177
  "type": "object",
176
178
  "properties": {
@@ -190,8 +192,6 @@
190
192
  }
191
193
  },
192
194
  "required": [
193
- "projectId",
194
- "keyJson",
195
195
  "bucket"
196
196
  ],
197
197
  "additionalProperties": false
@@ -215,8 +215,6 @@
215
215
  }
216
216
  },
217
217
  "required": [
218
- "account",
219
- "accountKey",
220
218
  "bucket"
221
219
  ],
222
220
  "additionalProperties": false
@@ -117,6 +117,9 @@
117
117
  "apiTokenCount": {
118
118
  "type": "integer"
119
119
  },
120
+ "credentialCount": {
121
+ "type": "integer"
122
+ },
120
123
  "dataTableCount": {
121
124
  "type": "integer"
122
125
  },
@@ -300,13 +303,15 @@
300
303
  }
301
304
  },
302
305
  "required": [
303
- "bucket",
304
- "accessKeyId",
305
- "secretAccessKey",
306
- "region"
306
+ "bucket"
307
307
  ],
308
308
  "additionalProperties": false
309
309
  },
310
+ "credentialName": {
311
+ "type": "string",
312
+ "minLength": 1,
313
+ "maxLength": 255
314
+ },
310
315
  "gcs": {
311
316
  "type": "object",
312
317
  "properties": {
@@ -326,8 +331,6 @@
326
331
  }
327
332
  },
328
333
  "required": [
329
- "projectId",
330
- "keyJson",
331
334
  "bucket"
332
335
  ],
333
336
  "additionalProperties": false
@@ -351,8 +354,6 @@
351
354
  }
352
355
  },
353
356
  "required": [
354
- "account",
355
- "accountKey",
356
357
  "bucket"
357
358
  ],
358
359
  "additionalProperties": false