artikcloud 2.1.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -3
  3. data/artikcloud.gemspec +3 -4
  4. data/docs/ActionOut.md +6 -0
  5. data/docs/CertificateData.md +9 -0
  6. data/docs/CertificateEnvelope.md +8 -0
  7. data/docs/CertificateFields.md +13 -0
  8. data/docs/CertificateId.md +8 -0
  9. data/docs/ContactInfo.md +9 -0
  10. data/docs/DevicePricingTier.md +16 -0
  11. data/docs/DevicePricingTierEnvelope.md +8 -0
  12. data/docs/DevicePricingTierRequest.md +8 -0
  13. data/docs/DevicePricingTiers.md +8 -0
  14. data/docs/DevicePricingTiersEnvelope.md +8 -0
  15. data/docs/DeviceShareInfo.md +1 -1
  16. data/docs/DeviceTypePricingList.md +8 -0
  17. data/docs/DeviceTypePricingTier.md +17 -0
  18. data/docs/DeviceTypePricingTiersEnvelope.md +8 -0
  19. data/docs/DeviceTypeUpdateInput.md +8 -0
  20. data/docs/DevicesSharesApi.md +235 -0
  21. data/docs/DevicesStatusApi.md +183 -0
  22. data/docs/MessageOut.md +6 -0
  23. data/docs/MonetizationApi.md +289 -0
  24. data/docs/OutputRule.md +1 -0
  25. data/docs/RejectedCSVRow.md +8 -0
  26. data/docs/RejectedCSVRowsEnvelope.md +11 -0
  27. data/docs/Tier.md +17 -0
  28. data/docs/UpgradePath.md +8 -0
  29. data/docs/UpgradePathEnvelope.md +8 -0
  30. data/docs/UpgradePathUserToken.md +10 -0
  31. data/docs/UpgradePathUserTokenEnvelope.md +8 -0
  32. data/docs/UploadIdEnvelope.md +8 -0
  33. data/docs/UploadStatusEnvelope.md +8 -0
  34. data/docs/UsersApi.md +6 -2
  35. data/docs/ValidityPeriod.md +9 -0
  36. data/docs/Whitelist.md +10 -0
  37. data/docs/WhitelistEnvelope.md +8 -0
  38. data/docs/WhitelistResultEnvelope.md +12 -0
  39. data/docs/WhitelistingApi.md +515 -0
  40. data/lib/artikcloud/api/monetization_api.rb +296 -0
  41. data/lib/artikcloud/api/users_api.rb +3 -0
  42. data/lib/artikcloud/api/whitelisting_api.rb +519 -0
  43. data/lib/artikcloud/models/action_out.rb +62 -1
  44. data/lib/artikcloud/models/certificate_data.rb +197 -0
  45. data/lib/artikcloud/models/certificate_envelope.rb +188 -0
  46. data/lib/artikcloud/models/certificate_fields.rb +237 -0
  47. data/lib/artikcloud/models/certificate_id.rb +188 -0
  48. data/lib/artikcloud/models/contact_info.rb +198 -0
  49. data/lib/artikcloud/models/device_pricing_tier.rb +268 -0
  50. data/lib/artikcloud/models/device_pricing_tier_envelope.rb +188 -0
  51. data/lib/artikcloud/models/device_pricing_tier_request.rb +188 -0
  52. data/lib/artikcloud/models/device_pricing_tiers.rb +190 -0
  53. data/lib/artikcloud/models/device_pricing_tiers_envelope.rb +188 -0
  54. data/lib/artikcloud/models/device_share_info.rb +7 -7
  55. data/lib/artikcloud/models/device_type_pricing_list.rb +190 -0
  56. data/lib/artikcloud/models/device_type_pricing_tier.rb +280 -0
  57. data/lib/artikcloud/models/device_type_pricing_tiers_envelope.rb +188 -0
  58. data/lib/artikcloud/models/device_type_update_input.rb +188 -0
  59. data/lib/artikcloud/models/message_out.rb +65 -1
  60. data/lib/artikcloud/models/output_rule.rb +46 -4
  61. data/lib/artikcloud/models/rejected_csv_row.rb +188 -0
  62. data/lib/artikcloud/models/rejected_csv_rows_envelope.rb +220 -0
  63. data/lib/artikcloud/models/tier.rb +278 -0
  64. data/lib/artikcloud/models/upgrade_path.rb +188 -0
  65. data/lib/artikcloud/models/upgrade_path_envelope.rb +188 -0
  66. data/lib/artikcloud/models/upgrade_path_user_token.rb +208 -0
  67. data/lib/artikcloud/models/upgrade_path_user_token_envelope.rb +187 -0
  68. data/lib/artikcloud/models/upload_id_envelope.rb +188 -0
  69. data/lib/artikcloud/models/upload_status_envelope.rb +188 -0
  70. data/lib/artikcloud/models/validity_period.rb +198 -0
  71. data/lib/artikcloud/models/whitelist.rb +208 -0
  72. data/lib/artikcloud/models/whitelist_envelope.rb +190 -0
  73. data/lib/artikcloud/models/whitelist_result_envelope.rb +230 -0
  74. data/lib/artikcloud/version.rb +1 -2
  75. data/lib/artikcloud.rb +33 -3
  76. data/pom.xml +1 -1
  77. data/spec/api/device_types_api_spec.rb +3 -15
  78. data/spec/api/devices_api_spec.rb +6 -22
  79. data/spec/api/devices_management_api_spec.rb +1 -13
  80. data/spec/api/export_api_spec.rb +2 -14
  81. data/spec/api/messages_api_spec.rb +115 -74
  82. data/spec/api/monetization_api_spec.rb +99 -0
  83. data/spec/api/registrations_api_spec.rb +1 -13
  84. data/spec/api/rules_api_spec.rb +3 -15
  85. data/spec/api/tags_api_spec.rb +0 -12
  86. data/spec/api/tokens_api_spec.rb +24 -14
  87. data/spec/api/users_api_spec.rb +119 -57
  88. data/spec/api/whitelisting_api_spec.rb +152 -0
  89. data/spec/factories/users.rb +12 -12
  90. data/spec/models/action_out_spec.rb +36 -0
  91. data/spec/models/certificate_data_spec.rb +47 -0
  92. data/spec/models/certificate_envelope_spec.rb +41 -0
  93. data/spec/models/certificate_fields_spec.rb +71 -0
  94. data/spec/models/certificate_id_spec.rb +41 -0
  95. data/spec/models/contact_info_spec.rb +47 -0
  96. data/spec/models/device_pricing_tier_envelope_spec.rb +41 -0
  97. data/spec/models/device_pricing_tier_request_spec.rb +41 -0
  98. data/spec/models/device_pricing_tier_spec.rb +89 -0
  99. data/spec/models/device_pricing_tiers_envelope_spec.rb +41 -0
  100. data/spec/models/device_pricing_tiers_spec.rb +41 -0
  101. data/spec/models/device_share_info_spec.rb +1 -1
  102. data/spec/models/device_type_pricing_list_spec.rb +41 -0
  103. data/spec/models/device_type_pricing_tier_spec.rb +95 -0
  104. data/spec/models/device_type_pricing_tiers_envelope_spec.rb +41 -0
  105. data/spec/models/device_type_update_input_spec.rb +41 -0
  106. data/spec/models/message_out_spec.rb +36 -0
  107. data/spec/models/output_rule_spec.rb +10 -0
  108. data/spec/models/rejected_csv_row_spec.rb +41 -0
  109. data/spec/models/rejected_csv_rows_envelope_spec.rb +59 -0
  110. data/spec/models/tier_spec.rb +95 -0
  111. data/spec/models/upgrade_path_envelope_spec.rb +41 -0
  112. data/spec/models/upgrade_path_spec.rb +41 -0
  113. data/spec/models/upgrade_path_user_token_envelope_spec.rb +41 -0
  114. data/spec/models/upgrade_path_user_token_spec.rb +53 -0
  115. data/spec/models/upload_id_envelope_spec.rb +41 -0
  116. data/spec/models/upload_status_envelope_spec.rb +41 -0
  117. data/spec/models/validity_period_spec.rb +47 -0
  118. data/spec/models/whitelist_envelope_spec.rb +41 -0
  119. data/spec/models/whitelist_result_envelope_spec.rb +65 -0
  120. data/spec/models/whitelist_spec.rb +53 -0
  121. metadata +121 -11
  122. data/docs/.DS_Store +0 -0
  123. data/lib/.DS_Store +0 -0
  124. data/lib/artikcloud/.DS_Store +0 -0
  125. data/lib/artikcloud/api/.DS_Store +0 -0
  126. data/lib/artikcloud/models/.DS_Store +0 -0
  127. data/spec/.DS_Store +0 -0
  128. 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
@@ -17,5 +17,6 @@ Name | Type | Description | Notes
17
17
  **rule** | **Hash<String, Object>** | | [optional]
18
18
  **uid** | **String** | | [optional]
19
19
  **warning** | [**RuleWarningOutput**](RuleWarningOutput.md) | | [optional]
20
+ **owner** | **String** | | [optional]
20
21
 
21
22
 
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::RejectedCSVRow
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **message** | **String** | Rejection message | [optional]
7
+
8
+
@@ -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
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::UpgradePath
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url** | **String** | Url to display the upgrade path to the user | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::UpgradePathEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**UpgradePath**](UpgradePath.md) | data envelope | [optional]
7
+
8
+
@@ -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::UpgradePathUserTokenEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**UpgradePathUserToken**](UpgradePathUserToken.md) | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::UploadIdEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **upload_id** | **String** | Id identifying the uploaded CSV. | [optional]
7
+
8
+
@@ -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
 
@@ -0,0 +1,9 @@
1
+ # ArtikCloud::ValidityPeriod
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **not_before** | **Integer** | Not before | [optional]
7
+ **not_after** | **Integer** | Not before | [optional]
8
+
9
+
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,8 @@
1
+ # ArtikCloud::WhitelistEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | **Hash<String, Object>** | Free form JSON object | [optional]
7
+
8
+
@@ -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
+