artikcloud 2.1.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +44 -3
- data/artikcloud.gemspec +3 -4
- data/docs/ActionOut.md +6 -0
- data/docs/CertificateData.md +9 -0
- data/docs/CertificateEnvelope.md +8 -0
- data/docs/CertificateFields.md +13 -0
- data/docs/CertificateId.md +8 -0
- data/docs/ContactInfo.md +9 -0
- data/docs/DevicePricingTier.md +16 -0
- data/docs/DevicePricingTierEnvelope.md +8 -0
- data/docs/DevicePricingTierRequest.md +8 -0
- data/docs/DevicePricingTiers.md +8 -0
- data/docs/DevicePricingTiersEnvelope.md +8 -0
- data/docs/DeviceShareInfo.md +1 -1
- data/docs/DeviceTypePricingList.md +8 -0
- data/docs/DeviceTypePricingTier.md +17 -0
- data/docs/DeviceTypePricingTiersEnvelope.md +8 -0
- data/docs/DeviceTypeUpdateInput.md +8 -0
- data/docs/DevicesSharesApi.md +235 -0
- data/docs/DevicesStatusApi.md +183 -0
- data/docs/MessageOut.md +6 -0
- data/docs/MonetizationApi.md +289 -0
- data/docs/OutputRule.md +1 -0
- data/docs/RejectedCSVRow.md +8 -0
- data/docs/RejectedCSVRowsEnvelope.md +11 -0
- data/docs/Tier.md +17 -0
- data/docs/UpgradePath.md +8 -0
- data/docs/UpgradePathEnvelope.md +8 -0
- data/docs/UpgradePathUserToken.md +10 -0
- data/docs/UpgradePathUserTokenEnvelope.md +8 -0
- data/docs/UploadIdEnvelope.md +8 -0
- data/docs/UploadStatusEnvelope.md +8 -0
- data/docs/UsersApi.md +6 -2
- data/docs/ValidityPeriod.md +9 -0
- data/docs/Whitelist.md +10 -0
- data/docs/WhitelistEnvelope.md +8 -0
- data/docs/WhitelistResultEnvelope.md +12 -0
- data/docs/WhitelistingApi.md +515 -0
- data/lib/artikcloud/api/monetization_api.rb +296 -0
- data/lib/artikcloud/api/users_api.rb +3 -0
- data/lib/artikcloud/api/whitelisting_api.rb +519 -0
- data/lib/artikcloud/models/action_out.rb +62 -1
- data/lib/artikcloud/models/certificate_data.rb +197 -0
- data/lib/artikcloud/models/certificate_envelope.rb +188 -0
- data/lib/artikcloud/models/certificate_fields.rb +237 -0
- data/lib/artikcloud/models/certificate_id.rb +188 -0
- data/lib/artikcloud/models/contact_info.rb +198 -0
- data/lib/artikcloud/models/device_pricing_tier.rb +268 -0
- data/lib/artikcloud/models/device_pricing_tier_envelope.rb +188 -0
- data/lib/artikcloud/models/device_pricing_tier_request.rb +188 -0
- data/lib/artikcloud/models/device_pricing_tiers.rb +190 -0
- data/lib/artikcloud/models/device_pricing_tiers_envelope.rb +188 -0
- data/lib/artikcloud/models/device_share_info.rb +7 -7
- data/lib/artikcloud/models/device_type_pricing_list.rb +190 -0
- data/lib/artikcloud/models/device_type_pricing_tier.rb +280 -0
- data/lib/artikcloud/models/device_type_pricing_tiers_envelope.rb +188 -0
- data/lib/artikcloud/models/device_type_update_input.rb +188 -0
- data/lib/artikcloud/models/message_out.rb +65 -1
- data/lib/artikcloud/models/output_rule.rb +46 -4
- data/lib/artikcloud/models/rejected_csv_row.rb +188 -0
- data/lib/artikcloud/models/rejected_csv_rows_envelope.rb +220 -0
- data/lib/artikcloud/models/tier.rb +278 -0
- data/lib/artikcloud/models/upgrade_path.rb +188 -0
- data/lib/artikcloud/models/upgrade_path_envelope.rb +188 -0
- data/lib/artikcloud/models/upgrade_path_user_token.rb +208 -0
- data/lib/artikcloud/models/upgrade_path_user_token_envelope.rb +187 -0
- data/lib/artikcloud/models/upload_id_envelope.rb +188 -0
- data/lib/artikcloud/models/upload_status_envelope.rb +188 -0
- data/lib/artikcloud/models/validity_period.rb +198 -0
- data/lib/artikcloud/models/whitelist.rb +208 -0
- data/lib/artikcloud/models/whitelist_envelope.rb +190 -0
- data/lib/artikcloud/models/whitelist_result_envelope.rb +230 -0
- data/lib/artikcloud/version.rb +1 -2
- data/lib/artikcloud.rb +33 -3
- data/pom.xml +1 -1
- data/spec/api/device_types_api_spec.rb +3 -15
- data/spec/api/devices_api_spec.rb +6 -22
- data/spec/api/devices_management_api_spec.rb +1 -13
- data/spec/api/export_api_spec.rb +2 -14
- data/spec/api/messages_api_spec.rb +115 -74
- data/spec/api/monetization_api_spec.rb +99 -0
- data/spec/api/registrations_api_spec.rb +1 -13
- data/spec/api/rules_api_spec.rb +3 -15
- data/spec/api/tags_api_spec.rb +0 -12
- data/spec/api/tokens_api_spec.rb +24 -14
- data/spec/api/users_api_spec.rb +119 -57
- data/spec/api/whitelisting_api_spec.rb +152 -0
- data/spec/factories/users.rb +12 -12
- data/spec/models/action_out_spec.rb +36 -0
- data/spec/models/certificate_data_spec.rb +47 -0
- data/spec/models/certificate_envelope_spec.rb +41 -0
- data/spec/models/certificate_fields_spec.rb +71 -0
- data/spec/models/certificate_id_spec.rb +41 -0
- data/spec/models/contact_info_spec.rb +47 -0
- data/spec/models/device_pricing_tier_envelope_spec.rb +41 -0
- data/spec/models/device_pricing_tier_request_spec.rb +41 -0
- data/spec/models/device_pricing_tier_spec.rb +89 -0
- data/spec/models/device_pricing_tiers_envelope_spec.rb +41 -0
- data/spec/models/device_pricing_tiers_spec.rb +41 -0
- data/spec/models/device_share_info_spec.rb +1 -1
- data/spec/models/device_type_pricing_list_spec.rb +41 -0
- data/spec/models/device_type_pricing_tier_spec.rb +95 -0
- data/spec/models/device_type_pricing_tiers_envelope_spec.rb +41 -0
- data/spec/models/device_type_update_input_spec.rb +41 -0
- data/spec/models/message_out_spec.rb +36 -0
- data/spec/models/output_rule_spec.rb +10 -0
- data/spec/models/rejected_csv_row_spec.rb +41 -0
- data/spec/models/rejected_csv_rows_envelope_spec.rb +59 -0
- data/spec/models/tier_spec.rb +95 -0
- data/spec/models/upgrade_path_envelope_spec.rb +41 -0
- data/spec/models/upgrade_path_spec.rb +41 -0
- data/spec/models/upgrade_path_user_token_envelope_spec.rb +41 -0
- data/spec/models/upgrade_path_user_token_spec.rb +53 -0
- data/spec/models/upload_id_envelope_spec.rb +41 -0
- data/spec/models/upload_status_envelope_spec.rb +41 -0
- data/spec/models/validity_period_spec.rb +47 -0
- data/spec/models/whitelist_envelope_spec.rb +41 -0
- data/spec/models/whitelist_result_envelope_spec.rb +65 -0
- data/spec/models/whitelist_spec.rb +53 -0
- metadata +121 -11
- data/docs/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/artikcloud/.DS_Store +0 -0
- data/lib/artikcloud/api/.DS_Store +0 -0
- data/lib/artikcloud/models/.DS_Store +0 -0
- data/spec/.DS_Store +0 -0
- data/spec/api/.DS_Store +0 -0
@@ -0,0 +1,183 @@
|
|
1
|
+
# ArtikCloud::DevicesStatusApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.artik.cloud/v1.1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_device_status**](DevicesStatusApi.md#get_device_status) | **GET** /devices/{deviceId}/status | Get Device Status
|
8
|
+
[**get_devices_status**](DevicesStatusApi.md#get_devices_status) | **GET** /devices/status | Get Devices Status
|
9
|
+
[**put_device_status**](DevicesStatusApi.md#put_device_status) | **PUT** /devices/{deviceId}/status | Update Device Status
|
10
|
+
|
11
|
+
|
12
|
+
# **get_device_status**
|
13
|
+
> DeviceStatus get_device_status(device_id, opts)
|
14
|
+
|
15
|
+
Get Device Status
|
16
|
+
|
17
|
+
Get Device Status
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'artikcloud'
|
23
|
+
# setup authorization
|
24
|
+
ArtikCloud.configure do |config|
|
25
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
26
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = ArtikCloud::DevicesStatusApi.new
|
30
|
+
|
31
|
+
device_id = "device_id_example" # String | Device ID.
|
32
|
+
|
33
|
+
opts = {
|
34
|
+
include_snapshot: true, # BOOLEAN | Include device snapshot into the response
|
35
|
+
include_snapshot_timestamp: true # BOOLEAN | Include device snapshot timestamp into the response
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Get Device Status
|
40
|
+
result = api_instance.get_device_status(device_id, opts)
|
41
|
+
p result
|
42
|
+
rescue ArtikCloud::ApiError => e
|
43
|
+
puts "Exception when calling DevicesStatusApi->get_device_status: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**device_id** | **String**| Device ID. |
|
52
|
+
**include_snapshot** | **BOOLEAN**| Include device snapshot into the response | [optional]
|
53
|
+
**include_snapshot_timestamp** | **BOOLEAN**| Include device snapshot timestamp into the response | [optional]
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**DeviceStatus**](DeviceStatus.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: Not defined
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
# **get_devices_status**
|
71
|
+
> DeviceStatusBatch get_devices_status(dids, opts)
|
72
|
+
|
73
|
+
Get Devices Status
|
74
|
+
|
75
|
+
Get Devices Status
|
76
|
+
|
77
|
+
### Example
|
78
|
+
```ruby
|
79
|
+
# load the gem
|
80
|
+
require 'artikcloud'
|
81
|
+
# setup authorization
|
82
|
+
ArtikCloud.configure do |config|
|
83
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
84
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
85
|
+
end
|
86
|
+
|
87
|
+
api_instance = ArtikCloud::DevicesStatusApi.new
|
88
|
+
|
89
|
+
dids = "dids_example" # String | List of device ids (comma-separated) for which the statuses are requested.
|
90
|
+
|
91
|
+
opts = {
|
92
|
+
include_snapshot: true, # BOOLEAN | Include device snapshot into the response
|
93
|
+
include_snapshot_timestamp: true # BOOLEAN | Include device snapshot timestamp into the response
|
94
|
+
}
|
95
|
+
|
96
|
+
begin
|
97
|
+
#Get Devices Status
|
98
|
+
result = api_instance.get_devices_status(dids, opts)
|
99
|
+
p result
|
100
|
+
rescue ArtikCloud::ApiError => e
|
101
|
+
puts "Exception when calling DevicesStatusApi->get_devices_status: #{e}"
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
### Parameters
|
106
|
+
|
107
|
+
Name | Type | Description | Notes
|
108
|
+
------------- | ------------- | ------------- | -------------
|
109
|
+
**dids** | **String**| List of device ids (comma-separated) for which the statuses are requested. |
|
110
|
+
**include_snapshot** | **BOOLEAN**| Include device snapshot into the response | [optional]
|
111
|
+
**include_snapshot_timestamp** | **BOOLEAN**| Include device snapshot timestamp into the response | [optional]
|
112
|
+
|
113
|
+
### Return type
|
114
|
+
|
115
|
+
[**DeviceStatusBatch**](DeviceStatusBatch.md)
|
116
|
+
|
117
|
+
### Authorization
|
118
|
+
|
119
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
120
|
+
|
121
|
+
### HTTP request headers
|
122
|
+
|
123
|
+
- **Content-Type**: Not defined
|
124
|
+
- **Accept**: application/json
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
# **put_device_status**
|
129
|
+
> DeviceStatus put_device_status(device_id, opts)
|
130
|
+
|
131
|
+
Update Device Status
|
132
|
+
|
133
|
+
Update Device Status
|
134
|
+
|
135
|
+
### Example
|
136
|
+
```ruby
|
137
|
+
# load the gem
|
138
|
+
require 'artikcloud'
|
139
|
+
# setup authorization
|
140
|
+
ArtikCloud.configure do |config|
|
141
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
142
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
143
|
+
end
|
144
|
+
|
145
|
+
api_instance = ArtikCloud::DevicesStatusApi.new
|
146
|
+
|
147
|
+
device_id = "device_id_example" # String | Device ID.
|
148
|
+
|
149
|
+
opts = {
|
150
|
+
body: ArtikCloud::DeviceStatusPut.new # DeviceStatusPut | Body
|
151
|
+
}
|
152
|
+
|
153
|
+
begin
|
154
|
+
#Update Device Status
|
155
|
+
result = api_instance.put_device_status(device_id, opts)
|
156
|
+
p result
|
157
|
+
rescue ArtikCloud::ApiError => e
|
158
|
+
puts "Exception when calling DevicesStatusApi->put_device_status: #{e}"
|
159
|
+
end
|
160
|
+
```
|
161
|
+
|
162
|
+
### Parameters
|
163
|
+
|
164
|
+
Name | Type | Description | Notes
|
165
|
+
------------- | ------------- | ------------- | -------------
|
166
|
+
**device_id** | **String**| Device ID. |
|
167
|
+
**body** | [**DeviceStatusPut**](DeviceStatusPut.md)| Body | [optional]
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
[**DeviceStatus**](DeviceStatus.md)
|
172
|
+
|
173
|
+
### Authorization
|
174
|
+
|
175
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
176
|
+
|
177
|
+
### HTTP request headers
|
178
|
+
|
179
|
+
- **Content-Type**: Not defined
|
180
|
+
- **Accept**: application/json
|
181
|
+
|
182
|
+
|
183
|
+
|
data/docs/MessageOut.md
CHANGED
@@ -3,6 +3,12 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | **Hash<String, Object>** | Message Payload. | [optional]
|
7
|
+
**cid** | **String** | Confirmation ID. | [optional]
|
8
|
+
**ddid** | **String** | Destination Device ID. | [optional]
|
9
|
+
**sdid** | **String** | Source Device ID. | [optional]
|
10
|
+
**ts** | **Integer** | Timestamp (past, present or future). Defaults to current time if not provided. | [optional]
|
11
|
+
**type** | **String** | Type. | [optional] [default to "message"]
|
6
12
|
**mid** | **String** | Message ID. | [optional]
|
7
13
|
**uid** | **String** | User ID. | [optional]
|
8
14
|
**sdtid** | **String** | Source Device Type ID. | [optional]
|
@@ -0,0 +1,289 @@
|
|
1
|
+
# ArtikCloud::MonetizationApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.artik.cloud/v1.1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_pricing_tiers**](MonetizationApi.md#create_pricing_tiers) | **POST** /pricing/devicetypes/{dtid}/pricingtiers | Define devicetype's pricing tiers.
|
8
|
+
[**get_pricing_tiers**](MonetizationApi.md#get_pricing_tiers) | **GET** /pricing/devices/{did}/pricingtiers | Get a device's pricing tiers
|
9
|
+
[**get_the__pricing_tiers**](MonetizationApi.md#get_the__pricing_tiers) | **GET** /pricing/devicetypes/{dtid}/pricingtiers | Get devicetype's pricing tiers.
|
10
|
+
[**get_upgrade_path**](MonetizationApi.md#get_upgrade_path) | **GET** /pricing/devices/{did}/revenueshare/upgradepath | Get upgrade path
|
11
|
+
[**set_pricing_tier**](MonetizationApi.md#set_pricing_tier) | **PUT** /pricing/devices/{did}/pricingtiers | Set a device's pricing tier
|
12
|
+
|
13
|
+
|
14
|
+
# **create_pricing_tiers**
|
15
|
+
> DeviceTypePricingTier create_pricing_tiers(dtid, pricing_tier_info)
|
16
|
+
|
17
|
+
Define devicetype's pricing tiers.
|
18
|
+
|
19
|
+
Define devicetype's pricing tiers.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'artikcloud'
|
25
|
+
# setup authorization
|
26
|
+
ArtikCloud.configure do |config|
|
27
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
28
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = ArtikCloud::MonetizationApi.new
|
32
|
+
|
33
|
+
dtid = "dtid_example" # String | DeviceType ID
|
34
|
+
|
35
|
+
pricing_tier_info = ArtikCloud::DeviceTypePricingTier.new # DeviceTypePricingTier | Pricing tier info
|
36
|
+
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Define devicetype's pricing tiers.
|
40
|
+
result = api_instance.create_pricing_tiers(dtid, pricing_tier_info)
|
41
|
+
p result
|
42
|
+
rescue ArtikCloud::ApiError => e
|
43
|
+
puts "Exception when calling MonetizationApi->create_pricing_tiers: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**dtid** | **String**| DeviceType ID |
|
52
|
+
**pricing_tier_info** | [**DeviceTypePricingTier**](DeviceTypePricingTier.md)| Pricing tier info |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**DeviceTypePricingTier**](DeviceTypePricingTier.md)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: Not defined
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **get_pricing_tiers**
|
70
|
+
> DevicePricingTiersEnvelope get_pricing_tiers(did, opts)
|
71
|
+
|
72
|
+
Get a device's pricing tiers
|
73
|
+
|
74
|
+
Get a device's pricing tiers
|
75
|
+
|
76
|
+
### Example
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'artikcloud'
|
80
|
+
# setup authorization
|
81
|
+
ArtikCloud.configure do |config|
|
82
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
83
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = ArtikCloud::MonetizationApi.new
|
87
|
+
|
88
|
+
did = "did_example" # String | Device ID
|
89
|
+
|
90
|
+
opts = {
|
91
|
+
active: true # BOOLEAN | Filter by active
|
92
|
+
}
|
93
|
+
|
94
|
+
begin
|
95
|
+
#Get a device's pricing tiers
|
96
|
+
result = api_instance.get_pricing_tiers(did, opts)
|
97
|
+
p result
|
98
|
+
rescue ArtikCloud::ApiError => e
|
99
|
+
puts "Exception when calling MonetizationApi->get_pricing_tiers: #{e}"
|
100
|
+
end
|
101
|
+
```
|
102
|
+
|
103
|
+
### Parameters
|
104
|
+
|
105
|
+
Name | Type | Description | Notes
|
106
|
+
------------- | ------------- | ------------- | -------------
|
107
|
+
**did** | **String**| Device ID |
|
108
|
+
**active** | **BOOLEAN**| Filter by active | [optional]
|
109
|
+
|
110
|
+
### Return type
|
111
|
+
|
112
|
+
[**DevicePricingTiersEnvelope**](DevicePricingTiersEnvelope.md)
|
113
|
+
|
114
|
+
### Authorization
|
115
|
+
|
116
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
117
|
+
|
118
|
+
### HTTP request headers
|
119
|
+
|
120
|
+
- **Content-Type**: Not defined
|
121
|
+
- **Accept**: application/json
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
# **get_the__pricing_tiers**
|
126
|
+
> DeviceTypePricingTiersEnvelope get_the__pricing_tiers(dtid, version)
|
127
|
+
|
128
|
+
Get devicetype's pricing tiers.
|
129
|
+
|
130
|
+
Get devicetype's pricing tiers.
|
131
|
+
|
132
|
+
### Example
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'artikcloud'
|
136
|
+
# setup authorization
|
137
|
+
ArtikCloud.configure do |config|
|
138
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
139
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
140
|
+
end
|
141
|
+
|
142
|
+
api_instance = ArtikCloud::MonetizationApi.new
|
143
|
+
|
144
|
+
dtid = "dtid_example" # String | DeviceType ID
|
145
|
+
|
146
|
+
version = 56 # Integer | Version
|
147
|
+
|
148
|
+
|
149
|
+
begin
|
150
|
+
#Get devicetype's pricing tiers.
|
151
|
+
result = api_instance.get_the__pricing_tiers(dtid, version)
|
152
|
+
p result
|
153
|
+
rescue ArtikCloud::ApiError => e
|
154
|
+
puts "Exception when calling MonetizationApi->get_the__pricing_tiers: #{e}"
|
155
|
+
end
|
156
|
+
```
|
157
|
+
|
158
|
+
### Parameters
|
159
|
+
|
160
|
+
Name | Type | Description | Notes
|
161
|
+
------------- | ------------- | ------------- | -------------
|
162
|
+
**dtid** | **String**| DeviceType ID |
|
163
|
+
**version** | **Integer**| Version |
|
164
|
+
|
165
|
+
### Return type
|
166
|
+
|
167
|
+
[**DeviceTypePricingTiersEnvelope**](DeviceTypePricingTiersEnvelope.md)
|
168
|
+
|
169
|
+
### Authorization
|
170
|
+
|
171
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
172
|
+
|
173
|
+
### HTTP request headers
|
174
|
+
|
175
|
+
- **Content-Type**: Not defined
|
176
|
+
- **Accept**: application/json
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
# **get_upgrade_path**
|
181
|
+
> UpgradePathEnvelope get_upgrade_path(did, action)
|
182
|
+
|
183
|
+
Get upgrade path
|
184
|
+
|
185
|
+
Get upgrade path
|
186
|
+
|
187
|
+
### Example
|
188
|
+
```ruby
|
189
|
+
# load the gem
|
190
|
+
require 'artikcloud'
|
191
|
+
# setup authorization
|
192
|
+
ArtikCloud.configure do |config|
|
193
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
194
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
195
|
+
end
|
196
|
+
|
197
|
+
api_instance = ArtikCloud::MonetizationApi.new
|
198
|
+
|
199
|
+
did = "did_example" # String | Device ID
|
200
|
+
|
201
|
+
action = "action_example" # String | Action to perform
|
202
|
+
|
203
|
+
|
204
|
+
begin
|
205
|
+
#Get upgrade path
|
206
|
+
result = api_instance.get_upgrade_path(did, action)
|
207
|
+
p result
|
208
|
+
rescue ArtikCloud::ApiError => e
|
209
|
+
puts "Exception when calling MonetizationApi->get_upgrade_path: #{e}"
|
210
|
+
end
|
211
|
+
```
|
212
|
+
|
213
|
+
### Parameters
|
214
|
+
|
215
|
+
Name | Type | Description | Notes
|
216
|
+
------------- | ------------- | ------------- | -------------
|
217
|
+
**did** | **String**| Device ID |
|
218
|
+
**action** | **String**| Action to perform |
|
219
|
+
|
220
|
+
### Return type
|
221
|
+
|
222
|
+
[**UpgradePathEnvelope**](UpgradePathEnvelope.md)
|
223
|
+
|
224
|
+
### Authorization
|
225
|
+
|
226
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
227
|
+
|
228
|
+
### HTTP request headers
|
229
|
+
|
230
|
+
- **Content-Type**: Not defined
|
231
|
+
- **Accept**: application/json
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
# **set_pricing_tier**
|
236
|
+
> DevicePricingTierEnvelope set_pricing_tier(did, pricing_tier)
|
237
|
+
|
238
|
+
Set a device's pricing tier
|
239
|
+
|
240
|
+
Set a device's pricing tier
|
241
|
+
|
242
|
+
### Example
|
243
|
+
```ruby
|
244
|
+
# load the gem
|
245
|
+
require 'artikcloud'
|
246
|
+
# setup authorization
|
247
|
+
ArtikCloud.configure do |config|
|
248
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
249
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
250
|
+
end
|
251
|
+
|
252
|
+
api_instance = ArtikCloud::MonetizationApi.new
|
253
|
+
|
254
|
+
did = "did_example" # String | Device ID
|
255
|
+
|
256
|
+
pricing_tier = ArtikCloud::DevicePricingTierRequest.new # DevicePricingTierRequest | Pricing tier
|
257
|
+
|
258
|
+
|
259
|
+
begin
|
260
|
+
#Set a device's pricing tier
|
261
|
+
result = api_instance.set_pricing_tier(did, pricing_tier)
|
262
|
+
p result
|
263
|
+
rescue ArtikCloud::ApiError => e
|
264
|
+
puts "Exception when calling MonetizationApi->set_pricing_tier: #{e}"
|
265
|
+
end
|
266
|
+
```
|
267
|
+
|
268
|
+
### Parameters
|
269
|
+
|
270
|
+
Name | Type | Description | Notes
|
271
|
+
------------- | ------------- | ------------- | -------------
|
272
|
+
**did** | **String**| Device ID |
|
273
|
+
**pricing_tier** | [**DevicePricingTierRequest**](DevicePricingTierRequest.md)| Pricing tier |
|
274
|
+
|
275
|
+
### Return type
|
276
|
+
|
277
|
+
[**DevicePricingTierEnvelope**](DevicePricingTierEnvelope.md)
|
278
|
+
|
279
|
+
### Authorization
|
280
|
+
|
281
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
282
|
+
|
283
|
+
### HTTP request headers
|
284
|
+
|
285
|
+
- **Content-Type**: Not defined
|
286
|
+
- **Accept**: application/json
|
287
|
+
|
288
|
+
|
289
|
+
|
data/docs/OutputRule.md
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
# ArtikCloud::RejectedCSVRowsEnvelope
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**offset** | **Integer** | Page starting position | [optional]
|
7
|
+
**count** | **Integer** | Page size | [optional]
|
8
|
+
**total** | **Integer** | Total number or rejected rows | [optional]
|
9
|
+
**data** | [**Array<RejectedCSVRow>**](RejectedCSVRow.md) | Array of rejected rows | [optional]
|
10
|
+
|
11
|
+
|
data/docs/Tier.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# ArtikCloud::Tier
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**modified_on** | **Integer** | Modified On | [optional]
|
7
|
+
**message_limit** | **Integer** | Message Limit | [optional]
|
8
|
+
**cost** | **String** | Cost | [optional]
|
9
|
+
**name** | **String** | Name | [optional]
|
10
|
+
**description** | **String** | Description | [optional]
|
11
|
+
**interval** | **String** | Interval | [optional]
|
12
|
+
**ptid** | **String** | Pricing Tier ID | [optional]
|
13
|
+
**type** | **String** | Type | [optional]
|
14
|
+
**billing_interval** | **String** | Billing Interval | [optional]
|
15
|
+
**created_on** | **Integer** | Created On | [optional]
|
16
|
+
|
17
|
+
|
data/docs/UpgradePath.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# ArtikCloud::UpgradePathUserToken
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uid** | **String** | User ID | [optional]
|
7
|
+
**access_token** | **String** | User token from initial upgrade path request | [optional]
|
8
|
+
**did** | **String** | Device ID | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# ArtikCloud::UploadStatusEnvelope
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**status** | **String** | The uploaded CSV status, like 'Processing', 'Completed' or 'Failed' | [optional]
|
7
|
+
|
8
|
+
|
data/docs/UsersApi.md
CHANGED
@@ -262,7 +262,8 @@ opts = {
|
|
262
262
|
count: 56, # Integer | Desired count of items in the result set
|
263
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
264
|
owner: "owner_example", # String | Return owned and/or shared devices. Default to ALL.
|
265
|
-
include_share_info: true # BOOLEAN | Include share info
|
265
|
+
include_share_info: true, # BOOLEAN | Include share info
|
266
|
+
dtid: "dtid_example" # String | Return only devices of this device type. If empty, assumes all device types allowed by the authorization.
|
266
267
|
}
|
267
268
|
|
268
269
|
begin
|
@@ -284,6 +285,7 @@ Name | Type | Description | Notes
|
|
284
285
|
**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
286
|
**owner** | **String**| Return owned and/or shared devices. Default to ALL. | [optional]
|
286
287
|
**include_share_info** | **BOOLEAN**| Include share info | [optional]
|
288
|
+
**dtid** | **String**| Return only devices of this device type. If empty, assumes all device types allowed by the authorization. | [optional]
|
287
289
|
|
288
290
|
### Return type
|
289
291
|
|
@@ -380,7 +382,8 @@ user_id = "user_id_example" # String | User ID.
|
|
380
382
|
opts = {
|
381
383
|
exclude_disabled: true, # BOOLEAN | Exclude disabled rules in the result.
|
382
384
|
count: 56, # Integer | Desired count of items in the result set.
|
383
|
-
offset: 56 # Integer | Offset for pagination.
|
385
|
+
offset: 56, # Integer | Offset for pagination.
|
386
|
+
owner: "owner_example" # String | Rule owner
|
384
387
|
}
|
385
388
|
|
386
389
|
begin
|
@@ -400,6 +403,7 @@ Name | Type | Description | Notes
|
|
400
403
|
**exclude_disabled** | **BOOLEAN**| Exclude disabled rules in the result. | [optional]
|
401
404
|
**count** | **Integer**| Desired count of items in the result set. | [optional]
|
402
405
|
**offset** | **Integer**| Offset for pagination. | [optional]
|
406
|
+
**owner** | **String**| Rule owner | [optional]
|
403
407
|
|
404
408
|
### Return type
|
405
409
|
|
data/docs/Whitelist.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# ArtikCloud::Whitelist
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**vdid** | **String** | VendorDeviceId | [optional]
|
7
|
+
**did** | **String** | Device ID | [optional]
|
8
|
+
**uploaded_on** | **Integer** | Uploaded on | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# ArtikCloud::WhitelistResultEnvelope
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**dtid** | **String** | Device type id | [optional]
|
7
|
+
**offset** | **Integer** | Page starting position | [optional]
|
8
|
+
**count** | **Integer** | Page size | [optional]
|
9
|
+
**total** | **Integer** | Total number or whitelist vdids | [optional]
|
10
|
+
**data** | [**Array<Whitelist>**](Whitelist.md) | Array of whitelisted vdids | [optional]
|
11
|
+
|
12
|
+
|