artikcloud 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +65 -0
  4. data/LICENSE +202 -0
  5. data/README.md +230 -0
  6. data/artikcloud.gemspec +32 -0
  7. data/docs/AckEnvelope.md +8 -0
  8. data/docs/Acknowledgement.md +11 -0
  9. data/docs/ActionDetails.md +9 -0
  10. data/docs/ActionDetailsArray.md +8 -0
  11. data/docs/ActionIn.md +13 -0
  12. data/docs/ActionOut.md +12 -0
  13. data/docs/AggregateData.md +13 -0
  14. data/docs/AggregatesHistogramData.md +14 -0
  15. data/docs/AggregatesHistogramResponse.md +14 -0
  16. data/docs/AggregatesResponse.md +13 -0
  17. data/docs/AppProperties.md +10 -0
  18. data/docs/CheckTokenMessage.md +8 -0
  19. data/docs/CheckTokenResponse.md +8 -0
  20. data/docs/Device.md +21 -0
  21. data/docs/DeviceArray.md +8 -0
  22. data/docs/DeviceEnvelope.md +8 -0
  23. data/docs/DeviceRegCompleteRequest.md +8 -0
  24. data/docs/DeviceRegConfirmUserRequest.md +10 -0
  25. data/docs/DeviceRegConfirmUserResponse.md +8 -0
  26. data/docs/DeviceRegConfirmUserResponseEnvelope.md +8 -0
  27. data/docs/DeviceRegStatusResponse.md +9 -0
  28. data/docs/DeviceRegStatusResponseEnvelope.md +8 -0
  29. data/docs/DeviceToken.md +11 -0
  30. data/docs/DeviceTokenEnvelope.md +8 -0
  31. data/docs/DeviceType.md +25 -0
  32. data/docs/DeviceTypeArray.md +8 -0
  33. data/docs/DeviceTypeEnvelope.md +8 -0
  34. data/docs/DeviceTypesApi.md +284 -0
  35. data/docs/DeviceTypesEnvelope.md +11 -0
  36. data/docs/DevicesApi.md +382 -0
  37. data/docs/DevicesEnvelope.md +11 -0
  38. data/docs/ErrorEnvelope.md +8 -0
  39. data/docs/ExportApi.md +225 -0
  40. data/docs/ExportData.md +14 -0
  41. data/docs/ExportDataArray.md +8 -0
  42. data/docs/ExportHistoryResponse.md +11 -0
  43. data/docs/ExportNormalizedMessagesResponse.md +20 -0
  44. data/docs/ExportRequest.md +15 -0
  45. data/docs/ExportRequestData.md +18 -0
  46. data/docs/ExportRequestInfo.md +17 -0
  47. data/docs/ExportRequestResponse.md +8 -0
  48. data/docs/ExportResponse.md +18 -0
  49. data/docs/ExportStatusResponse.md +12 -0
  50. data/docs/FieldPath.md +8 -0
  51. data/docs/FieldPresence.md +8 -0
  52. data/docs/FieldPresenceEnvelope.md +14 -0
  53. data/docs/FieldsActions.md +9 -0
  54. data/docs/ManifestProperties.md +8 -0
  55. data/docs/ManifestPropertiesEnvelope.md +8 -0
  56. data/docs/ManifestVersions.md +8 -0
  57. data/docs/ManifestVersionsEnvelope.md +8 -0
  58. data/docs/MessageAction.md +12 -0
  59. data/docs/MessageID.md +8 -0
  60. data/docs/MessageIDEnvelope.md +8 -0
  61. data/docs/MessageIn.md +13 -0
  62. data/docs/MessageOut.md +12 -0
  63. data/docs/MessagesApi.md +382 -0
  64. data/docs/NonEmptyString.md +8 -0
  65. data/docs/NormalizedMessage.md +15 -0
  66. data/docs/NormalizedMessagesEnvelope.md +17 -0
  67. data/docs/OutputRule.md +21 -0
  68. data/docs/PropertiesEnvelope.md +8 -0
  69. data/docs/RefreshTokenResponse.md +11 -0
  70. data/docs/RegisterMessage.md +12 -0
  71. data/docs/RegistrationsApi.md +167 -0
  72. data/docs/RuleArray.md +8 -0
  73. data/docs/RuleCreationInfo.md +11 -0
  74. data/docs/RuleEnvelope.md +8 -0
  75. data/docs/RuleError.md +11 -0
  76. data/docs/RuleUpdateInfo.md +11 -0
  77. data/docs/RuleWarningOutput.md +9 -0
  78. data/docs/RulesApi.md +226 -0
  79. data/docs/RulesEnvelope.md +11 -0
  80. data/docs/Tag.md +9 -0
  81. data/docs/TagArray.md +8 -0
  82. data/docs/TagsApi.md +169 -0
  83. data/docs/TagsEnvelope.md +8 -0
  84. data/docs/Token.md +11 -0
  85. data/docs/TokenRequest.md +8 -0
  86. data/docs/TokenResponse.md +8 -0
  87. data/docs/TokensApi.md +117 -0
  88. data/docs/UnregisterDeviceResponse.md +18 -0
  89. data/docs/UnregisterDeviceResponseEnvelope.md +8 -0
  90. data/docs/User.md +14 -0
  91. data/docs/UserEnvelope.md +8 -0
  92. data/docs/UsersApi.md +474 -0
  93. data/docs/WebSocketError.md +10 -0
  94. data/git_push.sh +52 -0
  95. data/lib/artikcloud/api/device_types_api.rb +340 -0
  96. data/lib/artikcloud/api/devices_api.rb +450 -0
  97. data/lib/artikcloud/api/export_api.rb +269 -0
  98. data/lib/artikcloud/api/messages_api.rb +468 -0
  99. data/lib/artikcloud/api/registrations_api.rb +205 -0
  100. data/lib/artikcloud/api/rules_api.rb +276 -0
  101. data/lib/artikcloud/api/tags_api.rb +209 -0
  102. data/lib/artikcloud/api/tokens_api.rb +152 -0
  103. data/lib/artikcloud/api/users_api.rb +552 -0
  104. data/lib/artikcloud/api_client.rb +336 -0
  105. data/lib/artikcloud/api_error.rb +38 -0
  106. data/lib/artikcloud/configuration.rb +170 -0
  107. data/lib/artikcloud/models/ack_envelope.rb +164 -0
  108. data/lib/artikcloud/models/acknowledgement.rb +198 -0
  109. data/lib/artikcloud/models/action_details.rb +178 -0
  110. data/lib/artikcloud/models/action_details_array.rb +166 -0
  111. data/lib/artikcloud/models/action_in.rb +221 -0
  112. data/lib/artikcloud/models/action_out.rb +209 -0
  113. data/lib/artikcloud/models/aggregate_data.rb +214 -0
  114. data/lib/artikcloud/models/aggregates_histogram_data.rb +224 -0
  115. data/lib/artikcloud/models/aggregates_histogram_response.rb +226 -0
  116. data/lib/artikcloud/models/aggregates_response.rb +216 -0
  117. data/lib/artikcloud/models/app_properties.rb +184 -0
  118. data/lib/artikcloud/models/check_token_message.rb +164 -0
  119. data/lib/artikcloud/models/check_token_response.rb +164 -0
  120. data/lib/artikcloud/models/device.rb +310 -0
  121. data/lib/artikcloud/models/device_array.rb +166 -0
  122. data/lib/artikcloud/models/device_envelope.rb +164 -0
  123. data/lib/artikcloud/models/device_reg_complete_request.rb +165 -0
  124. data/lib/artikcloud/models/device_reg_confirm_user_request.rb +187 -0
  125. data/lib/artikcloud/models/device_reg_confirm_user_response.rb +165 -0
  126. data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +164 -0
  127. data/lib/artikcloud/models/device_reg_status_response.rb +176 -0
  128. data/lib/artikcloud/models/device_reg_status_response_envelope.rb +164 -0
  129. data/lib/artikcloud/models/device_token.rb +194 -0
  130. data/lib/artikcloud/models/device_token_envelope.rb +164 -0
  131. data/lib/artikcloud/models/device_type.rb +353 -0
  132. data/lib/artikcloud/models/device_type_array.rb +166 -0
  133. data/lib/artikcloud/models/device_type_envelope.rb +164 -0
  134. data/lib/artikcloud/models/device_types_envelope.rb +194 -0
  135. data/lib/artikcloud/models/devices_envelope.rb +194 -0
  136. data/lib/artikcloud/models/error_envelope.rb +165 -0
  137. data/lib/artikcloud/models/export_data.rb +225 -0
  138. data/lib/artikcloud/models/export_data_array.rb +166 -0
  139. data/lib/artikcloud/models/export_history_response.rb +194 -0
  140. data/lib/artikcloud/models/export_normalized_messages_response.rb +284 -0
  141. data/lib/artikcloud/models/export_request.rb +234 -0
  142. data/lib/artikcloud/models/export_request_data.rb +275 -0
  143. data/lib/artikcloud/models/export_request_info.rb +264 -0
  144. data/lib/artikcloud/models/export_request_response.rb +164 -0
  145. data/lib/artikcloud/models/export_response.rb +275 -0
  146. data/lib/artikcloud/models/export_status_response.rb +205 -0
  147. data/lib/artikcloud/models/field_path.rb +166 -0
  148. data/lib/artikcloud/models/field_presence.rb +164 -0
  149. data/lib/artikcloud/models/field_presence_envelope.rb +226 -0
  150. data/lib/artikcloud/models/fields_actions.rb +180 -0
  151. data/lib/artikcloud/models/manifest_properties.rb +164 -0
  152. data/lib/artikcloud/models/manifest_properties_envelope.rb +164 -0
  153. data/lib/artikcloud/models/manifest_versions.rb +166 -0
  154. data/lib/artikcloud/models/manifest_versions_envelope.rb +164 -0
  155. data/lib/artikcloud/models/message_action.rb +210 -0
  156. data/lib/artikcloud/models/message_id.rb +165 -0
  157. data/lib/artikcloud/models/message_id_envelope.rb +164 -0
  158. data/lib/artikcloud/models/message_in.rb +224 -0
  159. data/lib/artikcloud/models/message_out.rb +209 -0
  160. data/lib/artikcloud/models/non_empty_string.rb +164 -0
  161. data/lib/artikcloud/models/normalized_message.rb +236 -0
  162. data/lib/artikcloud/models/normalized_messages_envelope.rb +256 -0
  163. data/lib/artikcloud/models/output_rule.rb +296 -0
  164. data/lib/artikcloud/models/properties_envelope.rb +164 -0
  165. data/lib/artikcloud/models/refresh_token_response.rb +194 -0
  166. data/lib/artikcloud/models/register_message.rb +211 -0
  167. data/lib/artikcloud/models/rule_array.rb +166 -0
  168. data/lib/artikcloud/models/rule_creation_info.rb +200 -0
  169. data/lib/artikcloud/models/rule_envelope.rb +164 -0
  170. data/lib/artikcloud/models/rule_error.rb +196 -0
  171. data/lib/artikcloud/models/rule_update_info.rb +200 -0
  172. data/lib/artikcloud/models/rule_warning_output.rb +174 -0
  173. data/lib/artikcloud/models/rules_envelope.rb +194 -0
  174. data/lib/artikcloud/models/tag.rb +176 -0
  175. data/lib/artikcloud/models/tag_array.rb +166 -0
  176. data/lib/artikcloud/models/tags_envelope.rb +164 -0
  177. data/lib/artikcloud/models/token.rb +194 -0
  178. data/lib/artikcloud/models/token_request.rb +164 -0
  179. data/lib/artikcloud/models/token_response.rb +164 -0
  180. data/lib/artikcloud/models/unregister_device_response.rb +275 -0
  181. data/lib/artikcloud/models/unregister_device_response_envelope.rb +164 -0
  182. data/lib/artikcloud/models/user.rb +224 -0
  183. data/lib/artikcloud/models/user_envelope.rb +164 -0
  184. data/lib/artikcloud/models/web_socket_error.rb +187 -0
  185. data/lib/artikcloud/version.rb +17 -0
  186. data/lib/artikcloud.rb +128 -0
  187. data/pom.xml +60 -0
  188. data/spec/api/messages_api_spec.rb +79 -0
  189. data/spec/api/tokens_api_spec.rb +79 -0
  190. data/spec/api/users_api_spec.rb +50 -0
  191. data/spec/spec.opts +4 -0
  192. data/spec/spec_helper.rb +36 -0
  193. metadata +420 -0
@@ -0,0 +1,382 @@
1
+ # ArtikCloud::DevicesApi
2
+
3
+ All URIs are relative to *https://api.artik.cloud/v1.1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add_device**](DevicesApi.md#add_device) | **POST** /devices | Add Device
8
+ [**delete_device**](DevicesApi.md#delete_device) | **DELETE** /devices/{deviceId} | Delete Device
9
+ [**delete_device_token**](DevicesApi.md#delete_device_token) | **DELETE** /devices/{deviceId}/tokens | Delete Device Token
10
+ [**get_device**](DevicesApi.md#get_device) | **GET** /devices/{deviceId} | Get Device
11
+ [**get_device_token**](DevicesApi.md#get_device_token) | **GET** /devices/{deviceId}/tokens | Get Device Token
12
+ [**update_device**](DevicesApi.md#update_device) | **PUT** /devices/{deviceId} | Update Device
13
+ [**update_device_token**](DevicesApi.md#update_device_token) | **PUT** /devices/{deviceId}/tokens | Update Device Token
14
+
15
+
16
+ # **add_device**
17
+ > DeviceEnvelope add_device(device)
18
+
19
+ Add Device
20
+
21
+ Create a device
22
+
23
+ ### Example
24
+ ```ruby
25
+ # load the gem
26
+ require 'artikcloud'
27
+ # setup authorization
28
+ ArtikCloud.configure do |config|
29
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
30
+ config.access_token = 'YOUR ACCESS TOKEN'
31
+ end
32
+
33
+ api_instance = ArtikCloud::DevicesApi.new
34
+
35
+ device = ArtikCloud::Device.new # Device | Device to be added to the user
36
+
37
+
38
+ begin
39
+ #Add Device
40
+ result = api_instance.add_device(device)
41
+ p result
42
+ rescue ArtikCloud::ApiError => e
43
+ puts "Exception when calling DevicesApi->add_device: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **device** | [**Device**](Device.md)| Device to be added to the user |
52
+
53
+ ### Return type
54
+
55
+ [**DeviceEnvelope**](DeviceEnvelope.md)
56
+
57
+ ### Authorization
58
+
59
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
60
+
61
+ ### HTTP reuqest headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: application/json
65
+
66
+
67
+
68
+ # **delete_device**
69
+ > DeviceEnvelope delete_device(device_id)
70
+
71
+ Delete Device
72
+
73
+ Deletes a device
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'artikcloud'
79
+ # setup authorization
80
+ ArtikCloud.configure do |config|
81
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
82
+ config.access_token = 'YOUR ACCESS TOKEN'
83
+ end
84
+
85
+ api_instance = ArtikCloud::DevicesApi.new
86
+
87
+ device_id = "device_id_example" # String | deviceId
88
+
89
+
90
+ begin
91
+ #Delete Device
92
+ result = api_instance.delete_device(device_id)
93
+ p result
94
+ rescue ArtikCloud::ApiError => e
95
+ puts "Exception when calling DevicesApi->delete_device: #{e}"
96
+ end
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+ Name | Type | Description | Notes
102
+ ------------- | ------------- | ------------- | -------------
103
+ **device_id** | **String**| deviceId |
104
+
105
+ ### Return type
106
+
107
+ [**DeviceEnvelope**](DeviceEnvelope.md)
108
+
109
+ ### Authorization
110
+
111
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
112
+
113
+ ### HTTP reuqest headers
114
+
115
+ - **Content-Type**: Not defined
116
+ - **Accept**: application/json
117
+
118
+
119
+
120
+ # **delete_device_token**
121
+ > DeviceTokenEnvelope delete_device_token(device_id)
122
+
123
+ Delete Device Token
124
+
125
+ Deletes a device's token
126
+
127
+ ### Example
128
+ ```ruby
129
+ # load the gem
130
+ require 'artikcloud'
131
+ # setup authorization
132
+ ArtikCloud.configure do |config|
133
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
134
+ config.access_token = 'YOUR ACCESS TOKEN'
135
+ end
136
+
137
+ api_instance = ArtikCloud::DevicesApi.new
138
+
139
+ device_id = "device_id_example" # String | deviceId
140
+
141
+
142
+ begin
143
+ #Delete Device Token
144
+ result = api_instance.delete_device_token(device_id)
145
+ p result
146
+ rescue ArtikCloud::ApiError => e
147
+ puts "Exception when calling DevicesApi->delete_device_token: #{e}"
148
+ end
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+ Name | Type | Description | Notes
154
+ ------------- | ------------- | ------------- | -------------
155
+ **device_id** | **String**| deviceId |
156
+
157
+ ### Return type
158
+
159
+ [**DeviceTokenEnvelope**](DeviceTokenEnvelope.md)
160
+
161
+ ### Authorization
162
+
163
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
164
+
165
+ ### HTTP reuqest headers
166
+
167
+ - **Content-Type**: Not defined
168
+ - **Accept**: application/json
169
+
170
+
171
+
172
+ # **get_device**
173
+ > DeviceEnvelope get_device(device_id)
174
+
175
+ Get Device
176
+
177
+ Retrieves a device
178
+
179
+ ### Example
180
+ ```ruby
181
+ # load the gem
182
+ require 'artikcloud'
183
+ # setup authorization
184
+ ArtikCloud.configure do |config|
185
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
186
+ config.access_token = 'YOUR ACCESS TOKEN'
187
+ end
188
+
189
+ api_instance = ArtikCloud::DevicesApi.new
190
+
191
+ device_id = "device_id_example" # String | deviceId
192
+
193
+
194
+ begin
195
+ #Get Device
196
+ result = api_instance.get_device(device_id)
197
+ p result
198
+ rescue ArtikCloud::ApiError => e
199
+ puts "Exception when calling DevicesApi->get_device: #{e}"
200
+ end
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+ Name | Type | Description | Notes
206
+ ------------- | ------------- | ------------- | -------------
207
+ **device_id** | **String**| deviceId |
208
+
209
+ ### Return type
210
+
211
+ [**DeviceEnvelope**](DeviceEnvelope.md)
212
+
213
+ ### Authorization
214
+
215
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
216
+
217
+ ### HTTP reuqest headers
218
+
219
+ - **Content-Type**: Not defined
220
+ - **Accept**: application/json
221
+
222
+
223
+
224
+ # **get_device_token**
225
+ > DeviceTokenEnvelope get_device_token(device_id)
226
+
227
+ Get Device Token
228
+
229
+ Retrieves a device's token
230
+
231
+ ### Example
232
+ ```ruby
233
+ # load the gem
234
+ require 'artikcloud'
235
+ # setup authorization
236
+ ArtikCloud.configure do |config|
237
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
238
+ config.access_token = 'YOUR ACCESS TOKEN'
239
+ end
240
+
241
+ api_instance = ArtikCloud::DevicesApi.new
242
+
243
+ device_id = "device_id_example" # String | deviceId
244
+
245
+
246
+ begin
247
+ #Get Device Token
248
+ result = api_instance.get_device_token(device_id)
249
+ p result
250
+ rescue ArtikCloud::ApiError => e
251
+ puts "Exception when calling DevicesApi->get_device_token: #{e}"
252
+ end
253
+ ```
254
+
255
+ ### Parameters
256
+
257
+ Name | Type | Description | Notes
258
+ ------------- | ------------- | ------------- | -------------
259
+ **device_id** | **String**| deviceId |
260
+
261
+ ### Return type
262
+
263
+ [**DeviceTokenEnvelope**](DeviceTokenEnvelope.md)
264
+
265
+ ### Authorization
266
+
267
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
268
+
269
+ ### HTTP reuqest headers
270
+
271
+ - **Content-Type**: Not defined
272
+ - **Accept**: application/json
273
+
274
+
275
+
276
+ # **update_device**
277
+ > DeviceEnvelope update_device(device_id, device)
278
+
279
+ Update Device
280
+
281
+ Updates a device
282
+
283
+ ### Example
284
+ ```ruby
285
+ # load the gem
286
+ require 'artikcloud'
287
+ # setup authorization
288
+ ArtikCloud.configure do |config|
289
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
290
+ config.access_token = 'YOUR ACCESS TOKEN'
291
+ end
292
+
293
+ api_instance = ArtikCloud::DevicesApi.new
294
+
295
+ device_id = "device_id_example" # String | deviceId
296
+
297
+ device = ArtikCloud::Device.new # Device | Device to be updated
298
+
299
+
300
+ begin
301
+ #Update Device
302
+ result = api_instance.update_device(device_id, device)
303
+ p result
304
+ rescue ArtikCloud::ApiError => e
305
+ puts "Exception when calling DevicesApi->update_device: #{e}"
306
+ end
307
+ ```
308
+
309
+ ### Parameters
310
+
311
+ Name | Type | Description | Notes
312
+ ------------- | ------------- | ------------- | -------------
313
+ **device_id** | **String**| deviceId |
314
+ **device** | [**Device**](Device.md)| Device to be updated |
315
+
316
+ ### Return type
317
+
318
+ [**DeviceEnvelope**](DeviceEnvelope.md)
319
+
320
+ ### Authorization
321
+
322
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
323
+
324
+ ### HTTP reuqest headers
325
+
326
+ - **Content-Type**: application/json
327
+ - **Accept**: application/json
328
+
329
+
330
+
331
+ # **update_device_token**
332
+ > DeviceTokenEnvelope update_device_token(device_id)
333
+
334
+ Update Device Token
335
+
336
+ Updates a device's token
337
+
338
+ ### Example
339
+ ```ruby
340
+ # load the gem
341
+ require 'artikcloud'
342
+ # setup authorization
343
+ ArtikCloud.configure do |config|
344
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
345
+ config.access_token = 'YOUR ACCESS TOKEN'
346
+ end
347
+
348
+ api_instance = ArtikCloud::DevicesApi.new
349
+
350
+ device_id = "device_id_example" # String | deviceId
351
+
352
+
353
+ begin
354
+ #Update Device Token
355
+ result = api_instance.update_device_token(device_id)
356
+ p result
357
+ rescue ArtikCloud::ApiError => e
358
+ puts "Exception when calling DevicesApi->update_device_token: #{e}"
359
+ end
360
+ ```
361
+
362
+ ### Parameters
363
+
364
+ Name | Type | Description | Notes
365
+ ------------- | ------------- | ------------- | -------------
366
+ **device_id** | **String**| deviceId |
367
+
368
+ ### Return type
369
+
370
+ [**DeviceTokenEnvelope**](DeviceTokenEnvelope.md)
371
+
372
+ ### Authorization
373
+
374
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
375
+
376
+ ### HTTP reuqest headers
377
+
378
+ - **Content-Type**: application/json
379
+ - **Accept**: application/json
380
+
381
+
382
+
@@ -0,0 +1,11 @@
1
+ # ArtikCloud::DevicesEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **total** | **Integer** | |
7
+ **count** | **Integer** | |
8
+ **offset** | **Integer** | |
9
+ **data** | [**DeviceArray**](DeviceArray.md) | | [optional]
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::ErrorEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**WebSocketError**](WebSocketError.md) | Error Data | [optional]
7
+
8
+
data/docs/ExportApi.md ADDED
@@ -0,0 +1,225 @@
1
+ # ArtikCloud::ExportApi
2
+
3
+ All URIs are relative to *https://api.artik.cloud/v1.1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**export_request**](ExportApi.md#export_request) | **POST** /messages/export | Create Export Request
8
+ [**get_export_history**](ExportApi.md#get_export_history) | **GET** /messages/export/history | Get Export History
9
+ [**get_export_result**](ExportApi.md#get_export_result) | **GET** /messages/export/{exportId}/result | Get Export Result
10
+ [**get_export_status**](ExportApi.md#get_export_status) | **GET** /messages/export/{exportId}/status | Check Export Status
11
+
12
+
13
+ # **export_request**
14
+ > ExportRequestResponse export_request(export_request_info)
15
+
16
+ Create Export Request
17
+
18
+ Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td><td>Search by a list of User IDs. For each user in the list, the current authenticated user must have read access over the specified user.</td></tr><tr><td>Get by devices</td><td>sdids</td><td>Search by Source Device IDs.</td></tr><tr><td>Get by device types</td><td>uids,sdtids</td><td>Search by list of Source Device Type IDs for the given list of users.</td></tr><tr><td>Get by trial</td><td>trialId</td><td>Search by Trial ID.</td></tr><tr><td>Get by combination of parameters</td><td>uids,sdids,sdtids</td><td>Search by list of Source Device IDs. Each Device ID must belong to a Source Device Type ID and a User ID.</td></tr><tr><td>Common</td><td>startDate,endDate,order,format,url,csvHeaders</td><td>Parameters that can be used with the above combinations.</td></tr></table>
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'artikcloud'
24
+ # setup authorization
25
+ ArtikCloud.configure do |config|
26
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
27
+ config.access_token = 'YOUR ACCESS TOKEN'
28
+ end
29
+
30
+ api_instance = ArtikCloud::ExportApi.new
31
+
32
+ export_request_info = ArtikCloud::ExportRequestInfo.new # ExportRequestInfo | ExportRequest object that is passed in the body
33
+
34
+
35
+ begin
36
+ #Create Export Request
37
+ result = api_instance.export_request(export_request_info)
38
+ p result
39
+ rescue ArtikCloud::ApiError => e
40
+ puts "Exception when calling ExportApi->export_request: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **export_request_info** | [**ExportRequestInfo**](ExportRequestInfo.md)| ExportRequest object that is passed in the body |
49
+
50
+ ### Return type
51
+
52
+ [**ExportRequestResponse**](ExportRequestResponse.md)
53
+
54
+ ### Authorization
55
+
56
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
57
+
58
+ ### HTTP reuqest headers
59
+
60
+ - **Content-Type**: Not defined
61
+ - **Accept**: application/json
62
+
63
+
64
+
65
+ # **get_export_history**
66
+ > ExportHistoryResponse get_export_history(opts)
67
+
68
+ Get Export History
69
+
70
+ Get the history of export requests.
71
+
72
+ ### Example
73
+ ```ruby
74
+ # load the gem
75
+ require 'artikcloud'
76
+ # setup authorization
77
+ ArtikCloud.configure do |config|
78
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
79
+ config.access_token = 'YOUR ACCESS TOKEN'
80
+ end
81
+
82
+ api_instance = ArtikCloud::ExportApi.new
83
+
84
+ opts = {
85
+ trial_id: "trial_id_example", # String | Filter by trialId.
86
+ count: 56, # Integer | Pagination count.
87
+ offset: 56 # Integer | Pagination offset.
88
+ }
89
+
90
+ begin
91
+ #Get Export History
92
+ result = api_instance.get_export_history(opts)
93
+ p result
94
+ rescue ArtikCloud::ApiError => e
95
+ puts "Exception when calling ExportApi->get_export_history: #{e}"
96
+ end
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+ Name | Type | Description | Notes
102
+ ------------- | ------------- | ------------- | -------------
103
+ **trial_id** | **String**| Filter by trialId. | [optional]
104
+ **count** | [**Integer**](.md)| Pagination count. | [optional]
105
+ **offset** | [**Integer**](.md)| Pagination offset. | [optional]
106
+
107
+ ### Return type
108
+
109
+ [**ExportHistoryResponse**](ExportHistoryResponse.md)
110
+
111
+ ### Authorization
112
+
113
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
114
+
115
+ ### HTTP reuqest headers
116
+
117
+ - **Content-Type**: Not defined
118
+ - **Accept**: application/json
119
+
120
+
121
+
122
+ # **get_export_result**
123
+ > String get_export_result(export_id)
124
+
125
+ Get Export Result
126
+
127
+ Retrieve result of the export query in tgz format. The tar file may contain one or more files with the results.
128
+
129
+ ### Example
130
+ ```ruby
131
+ # load the gem
132
+ require 'artikcloud'
133
+ # setup authorization
134
+ ArtikCloud.configure do |config|
135
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
136
+ config.access_token = 'YOUR ACCESS TOKEN'
137
+ end
138
+
139
+ api_instance = ArtikCloud::ExportApi.new
140
+
141
+ export_id = "export_id_example" # String | Export ID of the export query.
142
+
143
+
144
+ begin
145
+ #Get Export Result
146
+ result = api_instance.get_export_result(export_id)
147
+ p result
148
+ rescue ArtikCloud::ApiError => e
149
+ puts "Exception when calling ExportApi->get_export_result: #{e}"
150
+ end
151
+ ```
152
+
153
+ ### Parameters
154
+
155
+ Name | Type | Description | Notes
156
+ ------------- | ------------- | ------------- | -------------
157
+ **export_id** | **String**| Export ID of the export query. |
158
+
159
+ ### Return type
160
+
161
+ **String**
162
+
163
+ ### Authorization
164
+
165
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
166
+
167
+ ### HTTP reuqest headers
168
+
169
+ - **Content-Type**: Not defined
170
+ - **Accept**: application/json
171
+
172
+
173
+
174
+ # **get_export_status**
175
+ > ExportStatusResponse get_export_status(export_id)
176
+
177
+ Check Export Status
178
+
179
+ Check status of the export query.
180
+
181
+ ### Example
182
+ ```ruby
183
+ # load the gem
184
+ require 'artikcloud'
185
+ # setup authorization
186
+ ArtikCloud.configure do |config|
187
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
188
+ config.access_token = 'YOUR ACCESS TOKEN'
189
+ end
190
+
191
+ api_instance = ArtikCloud::ExportApi.new
192
+
193
+ export_id = "export_id_example" # String | Export ID of the export query.
194
+
195
+
196
+ begin
197
+ #Check Export Status
198
+ result = api_instance.get_export_status(export_id)
199
+ p result
200
+ rescue ArtikCloud::ApiError => e
201
+ puts "Exception when calling ExportApi->get_export_status: #{e}"
202
+ end
203
+ ```
204
+
205
+ ### Parameters
206
+
207
+ Name | Type | Description | Notes
208
+ ------------- | ------------- | ------------- | -------------
209
+ **export_id** | **String**| Export ID of the export query. |
210
+
211
+ ### Return type
212
+
213
+ [**ExportStatusResponse**](ExportStatusResponse.md)
214
+
215
+ ### Authorization
216
+
217
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
218
+
219
+ ### HTTP reuqest headers
220
+
221
+ - **Content-Type**: Not defined
222
+ - **Accept**: application/json
223
+
224
+
225
+
@@ -0,0 +1,14 @@
1
+ # ArtikCloud::ExportData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **expiration_date** | **Integer** | | [optional]
7
+ **export_id** | **String** | | [optional]
8
+ **file_size** | **Integer** | | [optional]
9
+ **md5** | **String** | | [optional]
10
+ **request** | [**ExportRequest**](ExportRequest.md) | | [optional]
11
+ **status** | **String** | Export status | [optional]
12
+ **total_messages** | **Integer** | | [optional]
13
+
14
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::ExportDataArray
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **exports** | [**Array&lt;ExportData&gt;**](ExportData.md) | | [optional]
7
+
8
+
@@ -0,0 +1,11 @@
1
+ # ArtikCloud::ExportHistoryResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **count** | **Integer** | | [optional]
7
+ **data** | [**ExportDataArray**](ExportDataArray.md) | | [optional]
8
+ **offset** | **Integer** | | [optional]
9
+ **total** | **Integer** | | [optional]
10
+
11
+
@@ -0,0 +1,20 @@
1
+ # ArtikCloud::ExportNormalizedMessagesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **csv_headers** | **BOOLEAN** | | [optional]
7
+ **end_date** | **Integer** | | [optional]
8
+ **export_id** | **String** | | [optional]
9
+ **format** | **String** | | [optional]
10
+ **order** | **String** | | [optional]
11
+ **sdid** | **String** | | [optional]
12
+ **sdids** | **String** | | [optional]
13
+ **start_date** | **Integer** | | [optional]
14
+ **stdids** | **String** | | [optional]
15
+ **trial_id** | **String** | | [optional]
16
+ **uid** | **String** | | [optional]
17
+ **uids** | **String** | | [optional]
18
+ **url** | **String** | | [optional]
19
+
20
+
@@ -0,0 +1,15 @@
1
+ # ArtikCloud::ExportRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **end_date** | **Integer** | | [optional]
7
+ **format** | **String** | | [optional]
8
+ **order** | **String** | | [optional]
9
+ **sdids** | **String** | | [optional]
10
+ **sdtids** | **String** | | [optional]
11
+ **start_date** | **Integer** | | [optional]
12
+ **trial_id** | **String** | | [optional]
13
+ **uids** | **String** | | [optional]
14
+
15
+