artikcloud 2.0.8 → 2.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.
- checksums.yaml +4 -4
- data/Gemfile +5 -2
- data/LICENSE +1 -1
- data/README.md +39 -4
- data/Rakefile +8 -0
- data/artikcloud.gemspec +5 -16
- data/docs/Device.md +2 -0
- data/docs/DeviceShareInfo.md +8 -0
- data/docs/DeviceSharing.md +11 -0
- data/docs/DeviceSharingArray.md +8 -0
- data/docs/DeviceSharingEnvelope.md +11 -0
- data/docs/DeviceSharingId.md +8 -0
- data/docs/DeviceStatus.md +9 -0
- data/docs/DeviceStatusBatch.md +11 -0
- data/docs/DeviceStatusData.md +12 -0
- data/docs/DeviceStatusPut.md +8 -0
- data/docs/DeviceStatusPutData.md +8 -0
- data/docs/DevicessharesApi.md +235 -0
- data/docs/DevicestatusApi.md +183 -0
- data/docs/NotifMessage.md +15 -0
- data/docs/NotifMessageArray.md +8 -0
- data/docs/NotifMessagesResponse.md +12 -0
- data/docs/Subscription.md +24 -0
- data/docs/SubscriptionArray.md +8 -0
- data/docs/SubscriptionEnvelope.md +8 -0
- data/docs/SubscriptionInfo.md +20 -0
- data/docs/SubscriptionsApi.md +342 -0
- data/docs/SubscriptionsEnvelope.md +11 -0
- data/docs/TaskParameters.md +2 -0
- data/docs/UpdateParameters.md +8 -0
- data/docs/UsersApi.md +67 -1
- data/docs/ValidationCallbackInfo.md +9 -0
- data/git_push.sh +0 -12
- data/lib/artikcloud.rb +24 -13
- data/lib/artikcloud/api/device_types_api.rb +7 -55
- data/lib/artikcloud/api/devices_api.rb +12 -66
- data/lib/artikcloud/api/devices_management_api.rb +16 -118
- data/lib/artikcloud/api/devicesshares_api.rb +244 -0
- data/lib/artikcloud/api/devicestatus_api.rb +190 -0
- data/lib/artikcloud/api/export_api.rb +5 -41
- data/lib/artikcloud/api/messages_api.rb +10 -76
- data/lib/artikcloud/api/registrations_api.rb +4 -34
- data/lib/artikcloud/api/rules_api.rb +5 -41
- data/lib/artikcloud/api/subscriptions_api.rb +346 -0
- data/lib/artikcloud/api/tags_api.rb +4 -34
- data/lib/artikcloud/api/tokens_api.rb +5 -33
- data/lib/artikcloud/api/users_api.rb +79 -67
- data/lib/artikcloud/api_client.rb +17 -20
- data/lib/artikcloud/api_error.rb +8 -18
- data/lib/artikcloud/configuration.rb +1 -13
- data/lib/artikcloud/models/ack_envelope.rb +4 -16
- data/lib/artikcloud/models/acknowledgement.rb +4 -16
- data/lib/artikcloud/models/action.rb +4 -16
- data/lib/artikcloud/models/action_array.rb +4 -16
- data/lib/artikcloud/models/action_details.rb +4 -16
- data/lib/artikcloud/models/action_details_array.rb +4 -16
- data/lib/artikcloud/models/action_in.rb +4 -16
- data/lib/artikcloud/models/action_out.rb +4 -16
- data/lib/artikcloud/models/actions.rb +4 -16
- data/lib/artikcloud/models/aggregate_data.rb +4 -16
- data/lib/artikcloud/models/aggregates_histogram_data.rb +4 -16
- data/lib/artikcloud/models/aggregates_histogram_response.rb +4 -16
- data/lib/artikcloud/models/aggregates_response.rb +4 -16
- data/lib/artikcloud/models/app_properties.rb +8 -16
- data/lib/artikcloud/models/check_token_message.rb +4 -16
- data/lib/artikcloud/models/check_token_response.rb +4 -16
- data/lib/artikcloud/models/device.rb +28 -20
- data/lib/artikcloud/models/device_array.rb +4 -16
- data/lib/artikcloud/models/device_envelope.rb +8 -16
- data/lib/artikcloud/models/device_reg_complete_request.rb +4 -16
- data/lib/artikcloud/models/device_reg_confirm_user_request.rb +4 -16
- data/lib/artikcloud/models/device_reg_confirm_user_response.rb +4 -16
- data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +4 -16
- data/lib/artikcloud/models/device_reg_status_response.rb +4 -16
- data/lib/artikcloud/models/device_reg_status_response_envelope.rb +4 -16
- data/lib/artikcloud/models/device_share_info.rb +188 -0
- data/lib/artikcloud/models/device_sharing.rb +218 -0
- data/lib/artikcloud/models/device_sharing_array.rb +189 -0
- data/lib/artikcloud/models/device_sharing_envelope.rb +214 -0
- data/lib/artikcloud/models/device_sharing_id.rb +188 -0
- data/lib/artikcloud/models/device_status.rb +196 -0
- data/lib/artikcloud/models/device_status_batch.rb +216 -0
- data/lib/artikcloud/models/device_status_data.rb +225 -0
- data/lib/artikcloud/models/device_status_put.rb +187 -0
- data/lib/artikcloud/models/device_status_put_data.rb +187 -0
- data/lib/artikcloud/models/device_task.rb +4 -16
- data/lib/artikcloud/models/device_task_update_request.rb +4 -16
- data/lib/artikcloud/models/device_task_update_response.rb +4 -16
- data/lib/artikcloud/models/device_token.rb +20 -16
- data/lib/artikcloud/models/device_token_envelope.rb +8 -16
- data/lib/artikcloud/models/device_type.rb +4 -16
- data/lib/artikcloud/models/device_type_array.rb +4 -16
- data/lib/artikcloud/models/device_type_envelope.rb +8 -16
- data/lib/artikcloud/models/device_type_info.rb +4 -16
- data/lib/artikcloud/models/device_type_info_envelope.rb +4 -16
- data/lib/artikcloud/models/device_types_envelope.rb +16 -16
- data/lib/artikcloud/models/device_types_info.rb +4 -16
- data/lib/artikcloud/models/device_types_info_envelope.rb +4 -16
- data/lib/artikcloud/models/devices_envelope.rb +16 -16
- data/lib/artikcloud/models/error_envelope.rb +4 -16
- data/lib/artikcloud/models/event_feed_data.rb +4 -16
- data/lib/artikcloud/models/export_data.rb +4 -16
- data/lib/artikcloud/models/export_data_array.rb +4 -16
- data/lib/artikcloud/models/export_history_response.rb +4 -16
- data/lib/artikcloud/models/export_normalized_messages_response.rb +4 -16
- data/lib/artikcloud/models/export_request.rb +4 -16
- data/lib/artikcloud/models/export_request_data.rb +4 -16
- data/lib/artikcloud/models/export_request_info.rb +4 -16
- data/lib/artikcloud/models/export_request_response.rb +4 -16
- data/lib/artikcloud/models/export_response.rb +4 -16
- data/lib/artikcloud/models/export_status_response.rb +4 -16
- data/lib/artikcloud/models/field_path.rb +4 -16
- data/lib/artikcloud/models/field_presence.rb +8 -16
- data/lib/artikcloud/models/field_presence_envelope.rb +32 -16
- data/lib/artikcloud/models/fields_actions.rb +4 -16
- data/lib/artikcloud/models/manifest_properties.rb +8 -16
- data/lib/artikcloud/models/manifest_properties_envelope.rb +8 -16
- data/lib/artikcloud/models/manifest_versions.rb +8 -16
- data/lib/artikcloud/models/manifest_versions_envelope.rb +8 -16
- data/lib/artikcloud/models/message.rb +4 -16
- data/lib/artikcloud/models/message_action.rb +4 -16
- data/lib/artikcloud/models/message_id.rb +4 -16
- data/lib/artikcloud/models/message_id_envelope.rb +4 -16
- data/lib/artikcloud/models/message_in.rb +4 -16
- data/lib/artikcloud/models/message_out.rb +4 -16
- data/lib/artikcloud/models/metadata_envelope.rb +4 -16
- data/lib/artikcloud/models/metadata_properties_envelope.rb +4 -16
- data/lib/artikcloud/models/metadata_query_envelope.rb +4 -16
- data/lib/artikcloud/models/non_empty_string.rb +4 -16
- data/lib/artikcloud/models/normalized_action.rb +36 -16
- data/lib/artikcloud/models/normalized_actions_envelope.rb +16 -16
- data/lib/artikcloud/models/normalized_message.rb +36 -16
- data/lib/artikcloud/models/normalized_messages_envelope.rb +16 -16
- data/lib/artikcloud/models/notif_message.rb +252 -0
- data/lib/artikcloud/models/notif_message_array.rb +189 -0
- data/lib/artikcloud/models/notif_messages_response.rb +223 -0
- data/lib/artikcloud/models/output_rule.rb +4 -16
- data/lib/artikcloud/models/presence_envelope.rb +4 -16
- data/lib/artikcloud/models/presence_model.rb +4 -16
- data/lib/artikcloud/models/properties_envelope.rb +8 -16
- data/lib/artikcloud/models/refresh_token_response.rb +4 -16
- data/lib/artikcloud/models/register_message.rb +4 -16
- data/lib/artikcloud/models/rule_array.rb +4 -16
- data/lib/artikcloud/models/rule_creation_info.rb +4 -16
- data/lib/artikcloud/models/rule_envelope.rb +4 -16
- data/lib/artikcloud/models/rule_error.rb +4 -16
- data/lib/artikcloud/models/rule_update_info.rb +4 -16
- data/lib/artikcloud/models/rule_warning_output.rb +4 -16
- data/lib/artikcloud/models/rules_envelope.rb +4 -16
- data/lib/artikcloud/models/snapshot_response.rb +4 -16
- data/lib/artikcloud/models/snapshot_responses.rb +4 -16
- data/lib/artikcloud/models/snapshots_response_envelope.rb +4 -16
- data/lib/artikcloud/models/subscription.rb +348 -0
- data/lib/artikcloud/models/subscription_array.rb +189 -0
- data/lib/artikcloud/models/subscription_envelope.rb +187 -0
- data/lib/artikcloud/models/subscription_info.rb +308 -0
- data/lib/artikcloud/models/subscriptions_envelope.rb +214 -0
- data/lib/artikcloud/models/tag.rb +4 -16
- data/lib/artikcloud/models/tag_array.rb +4 -16
- data/lib/artikcloud/models/tags_envelope.rb +4 -16
- data/lib/artikcloud/models/task.rb +4 -16
- data/lib/artikcloud/models/task_by_did.rb +4 -16
- data/lib/artikcloud/models/task_by_did_list.rb +4 -16
- data/lib/artikcloud/models/task_by_did_list_envelope.rb +4 -16
- data/lib/artikcloud/models/task_envelope.rb +4 -16
- data/lib/artikcloud/models/task_history.rb +4 -16
- data/lib/artikcloud/models/task_history_list.rb +4 -16
- data/lib/artikcloud/models/task_list.rb +4 -16
- data/lib/artikcloud/models/task_list_envelope.rb +4 -16
- data/lib/artikcloud/models/task_parameters.rb +25 -17
- data/lib/artikcloud/models/task_request.rb +4 -16
- data/lib/artikcloud/models/task_status.rb +4 -16
- data/lib/artikcloud/models/task_status_counts.rb +4 -16
- data/lib/artikcloud/models/task_statuses.rb +4 -16
- data/lib/artikcloud/models/task_statuses_envelope.rb +4 -16
- data/lib/artikcloud/models/task_statuses_history_envelope.rb +4 -16
- data/lib/artikcloud/models/task_update_request.rb +4 -16
- data/lib/artikcloud/models/task_update_response.rb +4 -16
- data/lib/artikcloud/models/tasks_status_counts.rb +4 -16
- data/lib/artikcloud/models/token.rb +4 -16
- data/lib/artikcloud/models/token_info.rb +4 -16
- data/lib/artikcloud/models/token_info_success_response.rb +4 -16
- data/lib/artikcloud/models/token_request.rb +4 -16
- data/lib/artikcloud/models/token_response.rb +4 -16
- data/lib/artikcloud/models/unregister_device_response.rb +4 -16
- data/lib/artikcloud/models/unregister_device_response_envelope.rb +4 -16
- data/lib/artikcloud/models/update_parameters.rb +188 -0
- data/lib/artikcloud/models/user.rb +28 -16
- data/lib/artikcloud/models/user_envelope.rb +8 -16
- data/lib/artikcloud/models/validation_callback_info.rb +198 -0
- data/lib/artikcloud/models/web_socket_error.rb +4 -16
- data/lib/artikcloud/version.rb +2 -14
- data/pom.xml +1 -1
- data/spec/api/devicesshares_api_spec.rb +87 -0
- data/spec/api/devicestatus_api_spec.rb +75 -0
- data/spec/api/subscriptions_api_spec.rb +112 -0
- metadata +58 -26
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ArtikCloud::SubscriptionsEnvelope
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**total** | **Integer** | | [optional]
|
|
7
|
+
**offset** | **Integer** | | [optional]
|
|
8
|
+
**data** | [**SubscriptionArray**](SubscriptionArray.md) | | [optional]
|
|
9
|
+
**count** | **Integer** | | [optional]
|
|
10
|
+
|
|
11
|
+
|
data/docs/TaskParameters.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
6
|
**expires_after** | **Integer** | Expire time in seconds | [optional]
|
|
7
|
+
**scheduled_on** | **Integer** | Future scheduled time | [optional]
|
|
8
|
+
**update** | [**UpdateParameters**](UpdateParameters.md) | Update parameters | [optional]
|
|
7
9
|
**value** | **String** | Value to write | [optional]
|
|
8
10
|
|
|
9
11
|
|
data/docs/UsersApi.md
CHANGED
|
@@ -11,6 +11,7 @@ Method | HTTP request | Description
|
|
|
11
11
|
[**get_user_devices**](UsersApi.md#get_user_devices) | **GET** /users/{userId}/devices | Get User Devices
|
|
12
12
|
[**get_user_properties**](UsersApi.md#get_user_properties) | **GET** /users/{userId}/properties | Get User application properties
|
|
13
13
|
[**get_user_rules**](UsersApi.md#get_user_rules) | **GET** /users/{userId}/rules | Get User Rules
|
|
14
|
+
[**list_all_shares_for_user**](UsersApi.md#list_all_shares_for_user) | **GET** in/api/users/{userId}/shares | Get User shares
|
|
14
15
|
[**update_user_properties**](UsersApi.md#update_user_properties) | **PUT** /users/{userId}/properties | Update User Application Properties
|
|
15
16
|
|
|
16
17
|
|
|
@@ -259,7 +260,9 @@ user_id = "user_id_example" # String | User ID
|
|
|
259
260
|
opts = {
|
|
260
261
|
offset: 56, # Integer | Offset for pagination.
|
|
261
262
|
count: 56, # Integer | Desired count of items in the result set
|
|
262
|
-
include_properties: true # BOOLEAN | Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users.
|
|
263
|
+
include_properties: true, # BOOLEAN | Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users.
|
|
264
|
+
owner: "owner_example", # String | Return owned and/or shared devices. Default to ALL.
|
|
265
|
+
include_share_info: true # BOOLEAN | Include share info
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
begin
|
|
@@ -279,6 +282,8 @@ Name | Type | Description | Notes
|
|
|
279
282
|
**offset** | **Integer**| Offset for pagination. | [optional]
|
|
280
283
|
**count** | **Integer**| Desired count of items in the result set | [optional]
|
|
281
284
|
**include_properties** | **BOOLEAN**| Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users. | [optional]
|
|
285
|
+
**owner** | **String**| Return owned and/or shared devices. Default to ALL. | [optional]
|
|
286
|
+
**include_share_info** | **BOOLEAN**| Include share info | [optional]
|
|
282
287
|
|
|
283
288
|
### Return type
|
|
284
289
|
|
|
@@ -411,6 +416,67 @@ Name | Type | Description | Notes
|
|
|
411
416
|
|
|
412
417
|
|
|
413
418
|
|
|
419
|
+
# **list_all_shares_for_user**
|
|
420
|
+
> DeviceSharingEnvelope list_all_shares_for_user(user_id, filter, opts)
|
|
421
|
+
|
|
422
|
+
Get User shares
|
|
423
|
+
|
|
424
|
+
Get User shares
|
|
425
|
+
|
|
426
|
+
### Example
|
|
427
|
+
```ruby
|
|
428
|
+
# load the gem
|
|
429
|
+
require 'artikcloud'
|
|
430
|
+
# setup authorization
|
|
431
|
+
ArtikCloud.configure do |config|
|
|
432
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
|
433
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
api_instance = ArtikCloud::UsersApi.new
|
|
437
|
+
|
|
438
|
+
user_id = "user_id_example" # String | User ID.
|
|
439
|
+
|
|
440
|
+
filter = "filter_example" # String | filter
|
|
441
|
+
|
|
442
|
+
opts = {
|
|
443
|
+
count: 56, # Integer | Desired count of items in the result set.
|
|
444
|
+
offset: 56 # Integer | Offset for pagination.
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
begin
|
|
448
|
+
#Get User shares
|
|
449
|
+
result = api_instance.list_all_shares_for_user(user_id, filter, opts)
|
|
450
|
+
p result
|
|
451
|
+
rescue ArtikCloud::ApiError => e
|
|
452
|
+
puts "Exception when calling UsersApi->list_all_shares_for_user: #{e}"
|
|
453
|
+
end
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
### Parameters
|
|
457
|
+
|
|
458
|
+
Name | Type | Description | Notes
|
|
459
|
+
------------- | ------------- | ------------- | -------------
|
|
460
|
+
**user_id** | **String**| User ID. |
|
|
461
|
+
**filter** | **String**| filter |
|
|
462
|
+
**count** | **Integer**| Desired count of items in the result set. | [optional]
|
|
463
|
+
**offset** | **Integer**| Offset for pagination. | [optional]
|
|
464
|
+
|
|
465
|
+
### Return type
|
|
466
|
+
|
|
467
|
+
[**DeviceSharingEnvelope**](DeviceSharingEnvelope.md)
|
|
468
|
+
|
|
469
|
+
### Authorization
|
|
470
|
+
|
|
471
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
|
472
|
+
|
|
473
|
+
### HTTP request headers
|
|
474
|
+
|
|
475
|
+
- **Content-Type**: Not defined
|
|
476
|
+
- **Accept**: application/json
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
414
480
|
# **update_user_properties**
|
|
415
481
|
> PropertiesEnvelope update_user_properties(user_id, properties, opts)
|
|
416
482
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# ArtikCloud::ValidationCallbackInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**aid** | **String** | Application id that created the subscription. | [optional]
|
|
7
|
+
**nonce** | **String** | Nonce obtained from the validation request. | [optional]
|
|
8
|
+
|
|
9
|
+
|
data/git_push.sh
CHANGED
|
@@ -2,18 +2,6 @@
|
|
|
2
2
|
#
|
|
3
3
|
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
4
4
|
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
#
|
|
17
5
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
18
6
|
#
|
|
19
7
|
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
data/lib/artikcloud.rb
CHANGED
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
# Common files
|
|
@@ -53,6 +41,16 @@ require 'artikcloud/models/device_reg_confirm_user_response'
|
|
|
53
41
|
require 'artikcloud/models/device_reg_confirm_user_response_envelope'
|
|
54
42
|
require 'artikcloud/models/device_reg_status_response'
|
|
55
43
|
require 'artikcloud/models/device_reg_status_response_envelope'
|
|
44
|
+
require 'artikcloud/models/device_share_info'
|
|
45
|
+
require 'artikcloud/models/device_sharing'
|
|
46
|
+
require 'artikcloud/models/device_sharing_array'
|
|
47
|
+
require 'artikcloud/models/device_sharing_envelope'
|
|
48
|
+
require 'artikcloud/models/device_sharing_id'
|
|
49
|
+
require 'artikcloud/models/device_status'
|
|
50
|
+
require 'artikcloud/models/device_status_batch'
|
|
51
|
+
require 'artikcloud/models/device_status_data'
|
|
52
|
+
require 'artikcloud/models/device_status_put'
|
|
53
|
+
require 'artikcloud/models/device_status_put_data'
|
|
56
54
|
require 'artikcloud/models/device_task'
|
|
57
55
|
require 'artikcloud/models/device_task_update_request'
|
|
58
56
|
require 'artikcloud/models/device_task_update_response'
|
|
@@ -101,6 +99,9 @@ require 'artikcloud/models/normalized_action'
|
|
|
101
99
|
require 'artikcloud/models/normalized_actions_envelope'
|
|
102
100
|
require 'artikcloud/models/normalized_message'
|
|
103
101
|
require 'artikcloud/models/normalized_messages_envelope'
|
|
102
|
+
require 'artikcloud/models/notif_message'
|
|
103
|
+
require 'artikcloud/models/notif_message_array'
|
|
104
|
+
require 'artikcloud/models/notif_messages_response'
|
|
104
105
|
require 'artikcloud/models/output_rule'
|
|
105
106
|
require 'artikcloud/models/presence_envelope'
|
|
106
107
|
require 'artikcloud/models/presence_model'
|
|
@@ -117,6 +118,11 @@ require 'artikcloud/models/rules_envelope'
|
|
|
117
118
|
require 'artikcloud/models/snapshot_response'
|
|
118
119
|
require 'artikcloud/models/snapshot_responses'
|
|
119
120
|
require 'artikcloud/models/snapshots_response_envelope'
|
|
121
|
+
require 'artikcloud/models/subscription'
|
|
122
|
+
require 'artikcloud/models/subscription_array'
|
|
123
|
+
require 'artikcloud/models/subscription_envelope'
|
|
124
|
+
require 'artikcloud/models/subscription_info'
|
|
125
|
+
require 'artikcloud/models/subscriptions_envelope'
|
|
120
126
|
require 'artikcloud/models/tag'
|
|
121
127
|
require 'artikcloud/models/tag_array'
|
|
122
128
|
require 'artikcloud/models/tags_envelope'
|
|
@@ -146,18 +152,23 @@ require 'artikcloud/models/token_request'
|
|
|
146
152
|
require 'artikcloud/models/token_response'
|
|
147
153
|
require 'artikcloud/models/unregister_device_response'
|
|
148
154
|
require 'artikcloud/models/unregister_device_response_envelope'
|
|
155
|
+
require 'artikcloud/models/update_parameters'
|
|
149
156
|
require 'artikcloud/models/user'
|
|
150
157
|
require 'artikcloud/models/user_envelope'
|
|
158
|
+
require 'artikcloud/models/validation_callback_info'
|
|
151
159
|
require 'artikcloud/models/web_socket_error'
|
|
152
160
|
|
|
153
161
|
# APIs
|
|
154
162
|
require 'artikcloud/api/device_types_api'
|
|
155
163
|
require 'artikcloud/api/devices_api'
|
|
156
164
|
require 'artikcloud/api/devices_management_api'
|
|
165
|
+
require 'artikcloud/api/devicesshares_api'
|
|
166
|
+
require 'artikcloud/api/devicestatus_api'
|
|
157
167
|
require 'artikcloud/api/export_api'
|
|
158
168
|
require 'artikcloud/api/messages_api'
|
|
159
169
|
require 'artikcloud/api/registrations_api'
|
|
160
170
|
require 'artikcloud/api/rules_api'
|
|
171
|
+
require 'artikcloud/api/subscriptions_api'
|
|
161
172
|
require 'artikcloud/api/tags_api'
|
|
162
173
|
require 'artikcloud/api/tokens_api'
|
|
163
174
|
require 'artikcloud/api/users_api'
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require "uri"
|
|
@@ -60,14 +48,8 @@ module ArtikCloud
|
|
|
60
48
|
|
|
61
49
|
# header parameters
|
|
62
50
|
header_params = {}
|
|
63
|
-
|
|
64
51
|
# HTTP header 'Accept' (if needed)
|
|
65
|
-
|
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
67
|
-
|
|
68
|
-
# HTTP header 'Content-Type'
|
|
69
|
-
local_header_content_type = []
|
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
71
53
|
|
|
72
54
|
# form parameters
|
|
73
55
|
form_params = {}
|
|
@@ -117,14 +99,8 @@ module ArtikCloud
|
|
|
117
99
|
|
|
118
100
|
# header parameters
|
|
119
101
|
header_params = {}
|
|
120
|
-
|
|
121
102
|
# HTTP header 'Accept' (if needed)
|
|
122
|
-
|
|
123
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
124
|
-
|
|
125
|
-
# HTTP header 'Content-Type'
|
|
126
|
-
local_header_content_type = []
|
|
127
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
103
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
128
104
|
|
|
129
105
|
# form parameters
|
|
130
106
|
form_params = {}
|
|
@@ -184,14 +160,8 @@ module ArtikCloud
|
|
|
184
160
|
|
|
185
161
|
# header parameters
|
|
186
162
|
header_params = {}
|
|
187
|
-
|
|
188
163
|
# HTTP header 'Accept' (if needed)
|
|
189
|
-
|
|
190
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
191
|
-
|
|
192
|
-
# HTTP header 'Content-Type'
|
|
193
|
-
local_header_content_type = []
|
|
194
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
164
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
195
165
|
|
|
196
166
|
# form parameters
|
|
197
167
|
form_params = {}
|
|
@@ -250,14 +220,8 @@ module ArtikCloud
|
|
|
250
220
|
|
|
251
221
|
# header parameters
|
|
252
222
|
header_params = {}
|
|
253
|
-
|
|
254
223
|
# HTTP header 'Accept' (if needed)
|
|
255
|
-
|
|
256
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
257
|
-
|
|
258
|
-
# HTTP header 'Content-Type'
|
|
259
|
-
local_header_content_type = []
|
|
260
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
261
225
|
|
|
262
226
|
# form parameters
|
|
263
227
|
form_params = {}
|
|
@@ -307,14 +271,8 @@ module ArtikCloud
|
|
|
307
271
|
|
|
308
272
|
# header parameters
|
|
309
273
|
header_params = {}
|
|
310
|
-
|
|
311
274
|
# HTTP header 'Accept' (if needed)
|
|
312
|
-
|
|
313
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
314
|
-
|
|
315
|
-
# HTTP header 'Content-Type'
|
|
316
|
-
local_header_content_type = []
|
|
317
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
275
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
318
276
|
|
|
319
277
|
# form parameters
|
|
320
278
|
form_params = {}
|
|
@@ -368,14 +326,8 @@ module ArtikCloud
|
|
|
368
326
|
|
|
369
327
|
# header parameters
|
|
370
328
|
header_params = {}
|
|
371
|
-
|
|
372
329
|
# HTTP header 'Accept' (if needed)
|
|
373
|
-
|
|
374
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
375
|
-
|
|
376
|
-
# HTTP header 'Content-Type'
|
|
377
|
-
local_header_content_type = []
|
|
378
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
330
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
379
331
|
|
|
380
332
|
# form parameters
|
|
381
333
|
form_params = {}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require "uri"
|
|
@@ -60,14 +48,10 @@ module ArtikCloud
|
|
|
60
48
|
|
|
61
49
|
# header parameters
|
|
62
50
|
header_params = {}
|
|
63
|
-
|
|
64
51
|
# HTTP header 'Accept' (if needed)
|
|
65
|
-
|
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
67
|
-
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
68
53
|
# HTTP header 'Content-Type'
|
|
69
|
-
|
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
71
55
|
|
|
72
56
|
# form parameters
|
|
73
57
|
form_params = {}
|
|
@@ -117,14 +101,8 @@ module ArtikCloud
|
|
|
117
101
|
|
|
118
102
|
# header parameters
|
|
119
103
|
header_params = {}
|
|
120
|
-
|
|
121
104
|
# HTTP header 'Accept' (if needed)
|
|
122
|
-
|
|
123
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
124
|
-
|
|
125
|
-
# HTTP header 'Content-Type'
|
|
126
|
-
local_header_content_type = []
|
|
127
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
105
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
128
106
|
|
|
129
107
|
# form parameters
|
|
130
108
|
form_params = {}
|
|
@@ -174,14 +152,8 @@ module ArtikCloud
|
|
|
174
152
|
|
|
175
153
|
# header parameters
|
|
176
154
|
header_params = {}
|
|
177
|
-
|
|
178
155
|
# HTTP header 'Accept' (if needed)
|
|
179
|
-
|
|
180
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
181
|
-
|
|
182
|
-
# HTTP header 'Content-Type'
|
|
183
|
-
local_header_content_type = []
|
|
184
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
156
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
185
157
|
|
|
186
158
|
# form parameters
|
|
187
159
|
form_params = {}
|
|
@@ -231,14 +203,8 @@ module ArtikCloud
|
|
|
231
203
|
|
|
232
204
|
# header parameters
|
|
233
205
|
header_params = {}
|
|
234
|
-
|
|
235
206
|
# HTTP header 'Accept' (if needed)
|
|
236
|
-
|
|
237
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
238
|
-
|
|
239
|
-
# HTTP header 'Content-Type'
|
|
240
|
-
local_header_content_type = []
|
|
241
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
207
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
242
208
|
|
|
243
209
|
# form parameters
|
|
244
210
|
form_params = {}
|
|
@@ -288,14 +254,8 @@ module ArtikCloud
|
|
|
288
254
|
|
|
289
255
|
# header parameters
|
|
290
256
|
header_params = {}
|
|
291
|
-
|
|
292
257
|
# HTTP header 'Accept' (if needed)
|
|
293
|
-
|
|
294
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
295
|
-
|
|
296
|
-
# HTTP header 'Content-Type'
|
|
297
|
-
local_header_content_type = []
|
|
298
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
299
259
|
|
|
300
260
|
# form parameters
|
|
301
261
|
form_params = {}
|
|
@@ -345,14 +305,8 @@ module ArtikCloud
|
|
|
345
305
|
|
|
346
306
|
# header parameters
|
|
347
307
|
header_params = {}
|
|
348
|
-
|
|
349
308
|
# HTTP header 'Accept' (if needed)
|
|
350
|
-
|
|
351
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
352
|
-
|
|
353
|
-
# HTTP header 'Content-Type'
|
|
354
|
-
local_header_content_type = []
|
|
355
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
309
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
356
310
|
|
|
357
311
|
# form parameters
|
|
358
312
|
form_params = {}
|
|
@@ -406,14 +360,10 @@ module ArtikCloud
|
|
|
406
360
|
|
|
407
361
|
# header parameters
|
|
408
362
|
header_params = {}
|
|
409
|
-
|
|
410
363
|
# HTTP header 'Accept' (if needed)
|
|
411
|
-
|
|
412
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
413
|
-
|
|
364
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
414
365
|
# HTTP header 'Content-Type'
|
|
415
|
-
|
|
416
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
366
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
417
367
|
|
|
418
368
|
# form parameters
|
|
419
369
|
form_params = {}
|
|
@@ -463,14 +413,10 @@ module ArtikCloud
|
|
|
463
413
|
|
|
464
414
|
# header parameters
|
|
465
415
|
header_params = {}
|
|
466
|
-
|
|
467
416
|
# HTTP header 'Accept' (if needed)
|
|
468
|
-
|
|
469
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
470
|
-
|
|
417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
471
418
|
# HTTP header 'Content-Type'
|
|
472
|
-
|
|
473
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
419
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
|
474
420
|
|
|
475
421
|
# form parameters
|
|
476
422
|
form_params = {}
|