losant_rest 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/.travis.yml +3 -2
  4. data/README.md +19 -8
  5. data/docs/_schemas.md +210 -184
  6. data/docs/application.md +20 -0
  7. data/docs/applicationApiToken.md +130 -0
  8. data/docs/applicationApiTokens.md +83 -0
  9. data/docs/applicationKey.md +15 -0
  10. data/docs/applicationKeys.md +10 -0
  11. data/docs/applications.md +10 -0
  12. data/docs/auditLog.md +5 -0
  13. data/docs/auditLogs.md +5 -0
  14. data/docs/auth.md +20 -8
  15. data/docs/dashboard.md +13 -0
  16. data/docs/dashboards.md +10 -0
  17. data/docs/data.md +10 -0
  18. data/docs/device.md +55 -0
  19. data/docs/deviceRecipe.md +20 -0
  20. data/docs/deviceRecipes.md +10 -0
  21. data/docs/devices.md +20 -0
  22. data/docs/event.md +15 -0
  23. data/docs/events.md +20 -0
  24. data/docs/flow.md +35 -0
  25. data/docs/flows.md +10 -0
  26. data/docs/me.md +61 -0
  27. data/docs/org.md +51 -0
  28. data/docs/orgInvites.md +6 -0
  29. data/docs/orgs.md +11 -0
  30. data/docs/solution.md +15 -0
  31. data/docs/solutionUser.md +15 -0
  32. data/docs/solutionUsers.md +10 -0
  33. data/docs/solutions.md +10 -0
  34. data/docs/webhook.md +15 -0
  35. data/docs/webhooks.md +10 -0
  36. data/lib/losant_rest.rb +2 -2
  37. data/lib/losant_rest/application.rb +24 -0
  38. data/lib/losant_rest/{access_token.rb → application_api_token.rb} +47 -23
  39. data/lib/losant_rest/{access_tokens.rb → application_api_tokens.rb} +27 -11
  40. data/lib/losant_rest/application_key.rb +18 -0
  41. data/lib/losant_rest/application_keys.rb +12 -0
  42. data/lib/losant_rest/applications.rb +12 -0
  43. data/lib/losant_rest/audit_log.rb +6 -0
  44. data/lib/losant_rest/audit_logs.rb +6 -0
  45. data/lib/losant_rest/auth.rb +20 -8
  46. data/lib/losant_rest/client.rb +8 -8
  47. data/lib/losant_rest/dashboard.rb +15 -0
  48. data/lib/losant_rest/dashboards.rb +12 -0
  49. data/lib/losant_rest/data.rb +12 -0
  50. data/lib/losant_rest/device.rb +66 -0
  51. data/lib/losant_rest/device_recipe.rb +24 -0
  52. data/lib/losant_rest/device_recipes.rb +12 -0
  53. data/lib/losant_rest/devices.rb +24 -0
  54. data/lib/losant_rest/event.rb +18 -0
  55. data/lib/losant_rest/events.rb +24 -0
  56. data/lib/losant_rest/flow.rb +42 -0
  57. data/lib/losant_rest/flows.rb +12 -0
  58. data/lib/losant_rest/me.rb +74 -0
  59. data/lib/losant_rest/org.rb +62 -0
  60. data/lib/losant_rest/org_invites.rb +6 -0
  61. data/lib/losant_rest/orgs.rb +14 -0
  62. data/lib/losant_rest/solution.rb +18 -0
  63. data/lib/losant_rest/solution_user.rb +18 -0
  64. data/lib/losant_rest/solution_users.rb +12 -0
  65. data/lib/losant_rest/solutions.rb +12 -0
  66. data/lib/losant_rest/version.rb +1 -1
  67. data/lib/losant_rest/webhook.rb +18 -0
  68. data/lib/losant_rest/webhooks.rb +12 -0
  69. data/losant_rest.gemspec +3 -3
  70. data/schemas/{accessToken.json → apiToken.json} +31 -3
  71. data/schemas/{accessTokenPatch.json → apiTokenPatch.json} +4 -0
  72. data/schemas/applicationApiTokenPost.json +116 -0
  73. data/schemas/auditLog.json +3 -1
  74. data/schemas/auditLogFilter.json +3 -1
  75. data/schemas/auditLogs.json +3 -1
  76. data/schemas/event.json +4 -2
  77. data/schemas/events.json +4 -2
  78. metadata +17 -19
  79. data/.rbenv-version +0 -1
  80. data/docs/accessToken.md +0 -107
  81. data/docs/accessTokens.md +0 -68
  82. data/schemas/accessTokenPost.json +0 -32
  83. data/schemas/accessTokens.json +0 -65
  84. data/schemas/deviceState.json +0 -31
@@ -31,6 +31,12 @@ module LosantRest
31
31
 
32
32
  # Creates an export of all device metadata.
33
33
  #
34
+ # Authentication:
35
+ # The client must be configured with a valid api
36
+ # access token to call this action. The token
37
+ # must include at least one of the following scopes:
38
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, devices.*, or devices.export.
39
+ #
34
40
  # Parameters:
35
41
  # * {string} applicationId - ID associated with the application
36
42
  # * {string} email - Email address to send export to. Defaults to current user's email.
@@ -73,6 +79,12 @@ module LosantRest
73
79
 
74
80
  # Returns the devices for an application
75
81
  #
82
+ # Authentication:
83
+ # The client must be configured with a valid api
84
+ # access token to call this action. The token
85
+ # must include at least one of the following scopes:
86
+ # all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, devices.*, or devices.get.
87
+ #
76
88
  # Parameters:
77
89
  # * {string} applicationId - ID associated with the application
78
90
  # * {string} sortField - Field to sort the results by. Accepted values are: name, id, creationDate
@@ -125,6 +137,12 @@ module LosantRest
125
137
 
126
138
  # Create a new device for an application
127
139
  #
140
+ # Authentication:
141
+ # The client must be configured with a valid api
142
+ # access token to call this action. The token
143
+ # must include at least one of the following scopes:
144
+ # all.Application, all.Organization, all.User, devices.*, or devices.post.
145
+ #
128
146
  # Parameters:
129
147
  # * {string} applicationId - ID associated with the application
130
148
  # * {hash} device - New device information (https://api.losant.com/#/definitions/devicePost)
@@ -166,6 +184,12 @@ module LosantRest
166
184
 
167
185
  # Send a command to multiple devices
168
186
  #
187
+ # Authentication:
188
+ # The client must be configured with a valid api
189
+ # access token to call this action. The token
190
+ # must include at least one of the following scopes:
191
+ # all.Application, all.Device, all.Organization, all.User, devices.*, or devices.sendCommand.
192
+ #
169
193
  # Parameters:
170
194
  # * {string} applicationId - ID associated with the application
171
195
  # * {hash} multiDeviceCommand - Command to send to the device (https://api.losant.com/#/definitions/multiDeviceCommand)
@@ -31,6 +31,12 @@ module LosantRest
31
31
 
32
32
  # Deletes an event
33
33
  #
34
+ # Authentication:
35
+ # The client must be configured with a valid api
36
+ # access token to call this action. The token
37
+ # must include at least one of the following scopes:
38
+ # all.Application, all.Organization, all.User, event.*, or event.delete.
39
+ #
34
40
  # Parameters:
35
41
  # * {string} applicationId - ID associated with the application
36
42
  # * {string} eventId - ID associated with the event
@@ -71,6 +77,12 @@ module LosantRest
71
77
 
72
78
  # Retrieves information on an event
73
79
  #
80
+ # Authentication:
81
+ # The client must be configured with a valid api
82
+ # access token to call this action. The token
83
+ # must include at least one of the following scopes:
84
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, event.*, or event.get.
85
+ #
74
86
  # Parameters:
75
87
  # * {string} applicationId - ID associated with the application
76
88
  # * {string} eventId - ID associated with the event
@@ -111,6 +123,12 @@ module LosantRest
111
123
 
112
124
  # Updates information about an event
113
125
  #
126
+ # Authentication:
127
+ # The client must be configured with a valid api
128
+ # access token to call this action. The token
129
+ # must include at least one of the following scopes:
130
+ # all.Application, all.Organization, all.User, event.*, or event.patch.
131
+ #
114
132
  # Parameters:
115
133
  # * {string} applicationId - ID associated with the application
116
134
  # * {string} eventId - ID associated with the event
@@ -31,6 +31,12 @@ module LosantRest
31
31
 
32
32
  # Returns the events for an application
33
33
  #
34
+ # Authentication:
35
+ # The client must be configured with a valid api
36
+ # access token to call this action. The token
37
+ # must include at least one of the following scopes:
38
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, events.*, or events.get.
39
+ #
34
40
  # Parameters:
35
41
  # * {string} applicationId - ID associated with the application
36
42
  # * {string} sortField - Field to sort the results by. Accepted values are: subject, id, creationDate
@@ -83,6 +89,12 @@ module LosantRest
83
89
 
84
90
  # Returns the first new event ordered by severity and then creation
85
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.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, events.*, or events.mostRecentBySeverity.
97
+ #
86
98
  # Parameters:
87
99
  # * {string} applicationId - ID associated with the application
88
100
  # * {string} filter - Filter to apply against event subjects. Supports globbing. Blank or not provided means no filtering.
@@ -122,6 +134,12 @@ module LosantRest
122
134
 
123
135
  # Asynchronously updates information for matching events by subject and/or current state
124
136
  #
137
+ # Authentication:
138
+ # The client must be configured with a valid api
139
+ # access token to call this action. The token
140
+ # must include at least one of the following scopes:
141
+ # all.Application, all.Organization, all.User, events.*, or events.patch.
142
+ #
125
143
  # Parameters:
126
144
  # * {string} applicationId - ID associated with the application
127
145
  # * {string} filterField - Field to filter the events to act on by. Blank or not provided means no filtering. Accepted values are: subject
@@ -169,6 +187,12 @@ module LosantRest
169
187
 
170
188
  # Create a new event for an application
171
189
  #
190
+ # Authentication:
191
+ # The client must be configured with a valid api
192
+ # access token to call this action. The token
193
+ # must include at least one of the following scopes:
194
+ # all.Application, all.Organization, all.User, events.*, or events.post.
195
+ #
172
196
  # Parameters:
173
197
  # * {string} applicationId - ID associated with the application
174
198
  # * {hash} event - New event information (https://api.losant.com/#/definitions/eventPost)
@@ -31,6 +31,12 @@ module LosantRest
31
31
 
32
32
  # Deletes a flow
33
33
  #
34
+ # Authentication:
35
+ # The client must be configured with a valid api
36
+ # access token to call this action. The token
37
+ # must include at least one of the following scopes:
38
+ # all.Application, all.Organization, all.User, flow.*, or flow.delete.
39
+ #
34
40
  # Parameters:
35
41
  # * {string} applicationId - ID associated with the application
36
42
  # * {string} flowId - ID associated with the flow
@@ -71,6 +77,12 @@ module LosantRest
71
77
 
72
78
  # Retrieves information on a flow
73
79
  #
80
+ # Authentication:
81
+ # The client must be configured with a valid api
82
+ # access token to call this action. The token
83
+ # must include at least one of the following scopes:
84
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.get.
85
+ #
74
86
  # Parameters:
75
87
  # * {string} applicationId - ID associated with the application
76
88
  # * {string} flowId - ID associated with the flow
@@ -111,6 +123,12 @@ module LosantRest
111
123
 
112
124
  # Retrieve the recent log entries about the flows
113
125
  #
126
+ # Authentication:
127
+ # The client must be configured with a valid api
128
+ # access token to call this action. The token
129
+ # must include at least one of the following scopes:
130
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.log.
131
+ #
114
132
  # Parameters:
115
133
  # * {string} applicationId - ID associated with the application
116
134
  # * {string} flowId - ID associated with the flow
@@ -155,6 +173,12 @@ module LosantRest
155
173
 
156
174
  # Gets the current values in persistent storage
157
175
  #
176
+ # Authentication:
177
+ # The client must be configured with a valid api
178
+ # access token to call this action. The token
179
+ # must include at least one of the following scopes:
180
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.getStorageEntries.
181
+ #
158
182
  # Parameters:
159
183
  # * {string} applicationId - ID associated with the application
160
184
  # * {string} flowId - ID associated with the flow
@@ -195,6 +219,12 @@ module LosantRest
195
219
 
196
220
  # Updates information about a flow
197
221
  #
222
+ # Authentication:
223
+ # The client must be configured with a valid api
224
+ # access token to call this action. The token
225
+ # must include at least one of the following scopes:
226
+ # all.Application, all.Organization, all.User, flow.*, or flow.patch.
227
+ #
198
228
  # Parameters:
199
229
  # * {string} applicationId - ID associated with the application
200
230
  # * {string} flowId - ID associated with the flow
@@ -238,6 +268,12 @@ module LosantRest
238
268
 
239
269
  # Presses the specified virtual button on the flow
240
270
  #
271
+ # Authentication:
272
+ # The client must be configured with a valid api
273
+ # access token to call this action. The token
274
+ # must include at least one of the following scopes:
275
+ # all.Application, all.Organization, all.User, flow.*, or flow.pressVirtualButton.
276
+ #
241
277
  # Parameters:
242
278
  # * {string} applicationId - ID associated with the application
243
279
  # * {string} flowId - ID associated with the flow
@@ -281,6 +317,12 @@ module LosantRest
281
317
 
282
318
  # Sets a storage value
283
319
  #
320
+ # Authentication:
321
+ # The client must be configured with a valid api
322
+ # access token to call this action. The token
323
+ # must include at least one of the following scopes:
324
+ # all.Application, all.Organization, all.User, flow.*, or flow.setStorageEntry.
325
+ #
284
326
  # Parameters:
285
327
  # * {string} applicationId - ID associated with the application
286
328
  # * {string} flowId - ID associated with the flow
@@ -31,6 +31,12 @@ module LosantRest
31
31
 
32
32
  # Returns the flows for an application
33
33
  #
34
+ # Authentication:
35
+ # The client must be configured with a valid api
36
+ # access token to call this action. The token
37
+ # must include at least one of the following scopes:
38
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flows.*, or flows.get.
39
+ #
34
40
  # Parameters:
35
41
  # * {string} applicationId - ID associated with the application
36
42
  # * {string} sortField - Field to sort the results by. Accepted values are: name, id, creationDate
@@ -81,6 +87,12 @@ module LosantRest
81
87
 
82
88
  # Create a new flow for an application
83
89
  #
90
+ # Authentication:
91
+ # The client must be configured with a valid api
92
+ # access token to call this action. The token
93
+ # must include at least one of the following scopes:
94
+ # all.Application, all.Organization, all.User, flows.*, or flows.create.
95
+ #
84
96
  # Parameters:
85
97
  # * {string} applicationId - ID associated with the application
86
98
  # * {hash} flow - New flow information (https://api.losant.com/#/definitions/flowPost)
@@ -31,6 +31,12 @@ module LosantRest
31
31
 
32
32
  # Adds an item to a recent item list
33
33
  #
34
+ # Authentication:
35
+ # The client must be configured with a valid api
36
+ # access token to call this action. The token
37
+ # must include at least one of the following scopes:
38
+ # all.SolutionUser, all.User, me.*, or me.addRecentItem.
39
+ #
34
40
  # Parameters:
35
41
  # * {hash} data - Object containing recent item info (https://api.losant.com/#/definitions/recentItem)
36
42
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -69,6 +75,12 @@ module LosantRest
69
75
 
70
76
  # Deletes the current user
71
77
  #
78
+ # Authentication:
79
+ # The client must be configured with a valid api
80
+ # access token to call this action. The token
81
+ # must include at least one of the following scopes:
82
+ # all.SolutionUser, all.User, me.*, or me.delete.
83
+ #
72
84
  # Parameters:
73
85
  # * {hash} credentials - User authentication credentials (https://api.losant.com/#/definitions/userCredentials)
74
86
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -107,6 +119,12 @@ module LosantRest
107
119
 
108
120
  # Disables two factor auth for the current user
109
121
  #
122
+ # Authentication:
123
+ # The client must be configured with a valid api
124
+ # access token to call this action. The token
125
+ # must include at least one of the following scopes:
126
+ # all.SolutionUser, all.User, me.*, or me.disableTwoFactorAuth.
127
+ #
110
128
  # Parameters:
111
129
  # * {hash} data - Object containing two factor auth properties (https://api.losant.com/#/definitions/disableTwoFactorAuth)
112
130
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -145,6 +163,12 @@ module LosantRest
145
163
 
146
164
  # Disconnects the user from Github
147
165
  #
166
+ # Authentication:
167
+ # The client must be configured with a valid api
168
+ # access token to call this action. The token
169
+ # must include at least one of the following scopes:
170
+ # all.SolutionUser, all.User, me.*, or me.disconnectGithub.
171
+ #
148
172
  # Parameters:
149
173
  # * {string} losantdomain - Domain scope of request (rarely needed)
150
174
  # * {boolean} _actions - Return resource actions in response
@@ -180,6 +204,12 @@ module LosantRest
180
204
 
181
205
  # Disconnects the user from Twitter
182
206
  #
207
+ # Authentication:
208
+ # The client must be configured with a valid api
209
+ # access token to call this action. The token
210
+ # must include at least one of the following scopes:
211
+ # all.SolutionUser, all.User, me.*, or me.disconnectTwitter.
212
+ #
183
213
  # Parameters:
184
214
  # * {string} losantdomain - Domain scope of request (rarely needed)
185
215
  # * {boolean} _actions - Return resource actions in response
@@ -215,6 +245,12 @@ module LosantRest
215
245
 
216
246
  # Enables two factor auth for the current user
217
247
  #
248
+ # Authentication:
249
+ # The client must be configured with a valid api
250
+ # access token to call this action. The token
251
+ # must include at least one of the following scopes:
252
+ # all.SolutionUser, all.User, me.*, or me.enableTwoFactorAuth.
253
+ #
218
254
  # Parameters:
219
255
  # * {hash} data - Object containing two factor auth properties (https://api.losant.com/#/definitions/enableTwoFactorAuth)
220
256
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -253,6 +289,12 @@ module LosantRest
253
289
 
254
290
  # Gets a recent item list
255
291
  #
292
+ # Authentication:
293
+ # The client must be configured with a valid api
294
+ # access token to call this action. The token
295
+ # must include at least one of the following scopes:
296
+ # all.SolutionUser, all.SolutionUser.read, all.User, all.User.read, me.*, or me.fetchRecentItems.
297
+ #
256
298
  # Parameters:
257
299
  # * {string} parentId - Parent id of the recent list
258
300
  # * {undefined} itemType - Item type to get the recent list of. Accepted values are: application, device, flow, dashboard, organization
@@ -293,8 +335,15 @@ module LosantRest
293
335
 
294
336
  # Retrieves information on the current user
295
337
  #
338
+ # Authentication:
339
+ # The client must be configured with a valid api
340
+ # access token to call this action. The token
341
+ # must include at least one of the following scopes:
342
+ # all.SolutionUser, all.SolutionUser.read, all.User, all.User.read, me.*, or me.get.
343
+ #
296
344
  # Parameters:
297
345
  # * {undefined} includeRecent - Should the user include recent app/dashboard info
346
+ # * {string} summaryExclude - List of summary fields to exclude from user summary
298
347
  # * {string} losantdomain - Domain scope of request (rarely needed)
299
348
  # * {boolean} _actions - Return resource actions in response
300
349
  # * {boolean} _links - Return resource link in response
@@ -312,6 +361,7 @@ module LosantRest
312
361
 
313
362
 
314
363
  query_params[:includeRecent] = params[:includeRecent] if params.has_key?(:includeRecent)
364
+ query_params[:summaryExclude] = params[:summaryExclude] if params.has_key?(:summaryExclude)
315
365
  headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
316
366
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
317
367
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
@@ -329,6 +379,12 @@ module LosantRest
329
379
 
330
380
  # Updates information about the current user
331
381
  #
382
+ # Authentication:
383
+ # The client must be configured with a valid api
384
+ # access token to call this action. The token
385
+ # must include at least one of the following scopes:
386
+ # all.SolutionUser, all.User, me.*, or me.patch.
387
+ #
332
388
  # Parameters:
333
389
  # * {hash} user - Object containing new user properties (https://api.losant.com/#/definitions/mePatch)
334
390
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -367,6 +423,12 @@ module LosantRest
367
423
 
368
424
  # Returns payload counts for the time range specified for all applications the current user owns
369
425
  #
426
+ # Authentication:
427
+ # The client must be configured with a valid api
428
+ # access token to call this action. The token
429
+ # must include at least one of the following scopes:
430
+ # all.SolutionUser, all.User, all.User.read, me.*, or me.payloadCounts.
431
+ #
370
432
  # Parameters:
371
433
  # * {string} start - Start of range for payload count query (ms since epoch)
372
434
  # * {string} end - End of range for payload count query (ms since epoch)
@@ -406,6 +468,12 @@ module LosantRest
406
468
 
407
469
  # Moves resources to a new owner
408
470
  #
471
+ # Authentication:
472
+ # The client must be configured with a valid api
473
+ # access token to call this action. The token
474
+ # must include at least one of the following scopes:
475
+ # all.SolutionUser, all.User, me.*, or me.transferResources.
476
+ #
409
477
  # Parameters:
410
478
  # * {hash} transfer - Object containing properties of the transfer (https://api.losant.com/#/definitions/resourceTransfer)
411
479
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -444,6 +512,12 @@ module LosantRest
444
512
 
445
513
  # Sends an email verification to the user
446
514
  #
515
+ # Authentication:
516
+ # The client must be configured with a valid api
517
+ # access token to call this action. The token
518
+ # must include at least one of the following scopes:
519
+ # all.SolutionUser, all.User, me.*, or me.verifyEmail.
520
+ #
447
521
  # Parameters:
448
522
  # * {string} losantdomain - Domain scope of request (rarely needed)
449
523
  # * {boolean} _actions - Return resource actions in response
@@ -31,6 +31,12 @@ module LosantRest
31
31
 
32
32
  # Deletes an organization
33
33
  #
34
+ # Authentication:
35
+ # The client must be configured with a valid api
36
+ # access token to call this action. The token
37
+ # must include at least one of the following scopes:
38
+ # all.Organization, all.User, org.*, or org.delete.
39
+ #
34
40
  # Parameters:
35
41
  # * {string} orgId - ID associated with the organization
36
42
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -69,8 +75,15 @@ module LosantRest
69
75
 
70
76
  # Retrieves information on an organization
71
77
  #
78
+ # Authentication:
79
+ # The client must be configured with a valid api
80
+ # access token to call this action. The token
81
+ # must include at least one of the following scopes:
82
+ # all.Organization, all.Organization.read, all.User, all.User.read, org.*, or org.get.
83
+ #
72
84
  # Parameters:
73
85
  # * {string} orgId - ID associated with the organization
86
+ # * {string} summaryExclude - List of summary fields to exclude from org summary
74
87
  # * {string} losantdomain - Domain scope of request (rarely needed)
75
88
  # * {boolean} _actions - Return resource actions in response
76
89
  # * {boolean} _links - Return resource link in response
@@ -90,6 +103,7 @@ module LosantRest
90
103
 
91
104
  raise ArgumentError.new("orgId is required") unless params.has_key?(:orgId)
92
105
 
106
+ query_params[:summaryExclude] = params[:summaryExclude] if params.has_key?(:summaryExclude)
93
107
  headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
94
108
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
95
109
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
@@ -107,6 +121,12 @@ module LosantRest
107
121
 
108
122
  # Invites a person to an organization
109
123
  #
124
+ # Authentication:
125
+ # The client must be configured with a valid api
126
+ # access token to call this action. The token
127
+ # must include at least one of the following scopes:
128
+ # all.Organization, all.User, org.*, or org.inviteMember.
129
+ #
110
130
  # Parameters:
111
131
  # * {string} orgId - ID associated with the organization
112
132
  # * {hash} invite - Object containing new invite info (https://api.losant.com/#/definitions/orgInvitePost)
@@ -148,6 +168,12 @@ module LosantRest
148
168
 
149
169
  # Modifies a current org member's role
150
170
  #
171
+ # Authentication:
172
+ # The client must be configured with a valid api
173
+ # access token to call this action. The token
174
+ # must include at least one of the following scopes:
175
+ # all.Organization, all.User, org.*, or org.modifyMember.
176
+ #
151
177
  # Parameters:
152
178
  # * {string} orgId - ID associated with the organization
153
179
  # * {hash} member - Object containing new member pair (https://api.losant.com/#/definitions/orgMemberPatch)
@@ -189,6 +215,12 @@ module LosantRest
189
215
 
190
216
  # Updates information about an organization
191
217
  #
218
+ # Authentication:
219
+ # The client must be configured with a valid api
220
+ # access token to call this action. The token
221
+ # must include at least one of the following scopes:
222
+ # all.Organization, all.User, org.*, or org.patch.
223
+ #
192
224
  # Parameters:
193
225
  # * {string} orgId - ID associated with the organization
194
226
  # * {hash} organization - Object containing new organization properties (https://api.losant.com/#/definitions/orgPatch)
@@ -230,6 +262,12 @@ module LosantRest
230
262
 
231
263
  # Returns payload counts for the time range specified for all applications this organization owns
232
264
  #
265
+ # Authentication:
266
+ # The client must be configured with a valid api
267
+ # access token to call this action. The token
268
+ # must include at least one of the following scopes:
269
+ # all.Organization, all.Organization.read, all.User, all.User.read, org.*, or org.payloadCounts.
270
+ #
233
271
  # Parameters:
234
272
  # * {string} orgId - ID associated with the organization
235
273
  # * {string} start - Start of range for payload count query (ms since epoch)
@@ -272,6 +310,12 @@ module LosantRest
272
310
 
273
311
  # Gets the current pending invites
274
312
  #
313
+ # Authentication:
314
+ # The client must be configured with a valid api
315
+ # access token to call this action. The token
316
+ # must include at least one of the following scopes:
317
+ # all.Organization, all.Organization.read, all.User, all.User.read, org.*, or org.pendingInvites.
318
+ #
275
319
  # Parameters:
276
320
  # * {string} orgId - ID associated with the organization
277
321
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -310,6 +354,12 @@ module LosantRest
310
354
 
311
355
  # Removes a member from the org
312
356
  #
357
+ # Authentication:
358
+ # The client must be configured with a valid api
359
+ # access token to call this action. The token
360
+ # must include at least one of the following scopes:
361
+ # all.Organization, all.User, org.*, or org.removeMember.
362
+ #
313
363
  # Parameters:
314
364
  # * {string} orgId - ID associated with the organization
315
365
  # * {string} userId - Id of user to remove
@@ -351,6 +401,12 @@ module LosantRest
351
401
 
352
402
  # Revokes an existing invite
353
403
  #
404
+ # Authentication:
405
+ # The client must be configured with a valid api
406
+ # access token to call this action. The token
407
+ # must include at least one of the following scopes:
408
+ # all.Organization, all.User, org.*, or org.revokeInvite.
409
+ #
354
410
  # Parameters:
355
411
  # * {string} orgId - ID associated with the organization
356
412
  # * {string} inviteId - Id of invite to revoke
@@ -392,6 +448,12 @@ module LosantRest
392
448
 
393
449
  # Moves resources to a new owner
394
450
  #
451
+ # Authentication:
452
+ # The client must be configured with a valid api
453
+ # access token to call this action. The token
454
+ # must include at least one of the following scopes:
455
+ # all.Organization, all.User, org.*, or org.transferResources.
456
+ #
395
457
  # Parameters:
396
458
  # * {string} orgId - ID associated with the organization
397
459
  # * {hash} transfer - Object containing properties of the transfer (https://api.losant.com/#/definitions/resourceTransfer)