artikcloud 2.0.0 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -12
- data/README.md +33 -10
- data/artikcloud.gemspec +5 -6
- data/docs/Action.md +9 -0
- data/docs/ActionArray.md +8 -0
- data/docs/Actions.md +12 -0
- data/docs/DeviceTypesApi.md +10 -10
- data/docs/DevicesApi.md +68 -15
- data/docs/ExportApi.md +10 -10
- data/docs/Message.md +11 -0
- data/docs/MessagesApi.md +205 -27
- data/docs/NormalizedAction.md +16 -0
- data/docs/NormalizedActionsEnvelope.md +17 -0
- data/docs/PresenceEnvelope.md +9 -0
- data/docs/PresenceModel.md +9 -0
- data/docs/RegistrationsApi.md +6 -6
- data/docs/RulesApi.md +8 -8
- data/docs/RulesEnvelope.md +1 -1
- data/docs/SnapshotResponse.md +9 -0
- data/docs/SnapshotResponses.md +10 -0
- data/docs/SnapshotsResponseEnvelope.md +9 -0
- data/docs/TagsApi.md +7 -7
- data/docs/TokenInfo.md +11 -0
- data/docs/TokenInfoSuccessResponse.md +8 -0
- data/docs/TokensApi.md +54 -7
- data/docs/UsersApi.md +18 -20
- data/git_push.sh +16 -1
- data/lib/artikcloud/api/device_types_api.rb +52 -59
- data/lib/artikcloud/api/devices_api.rb +120 -76
- data/lib/artikcloud/api/export_api.rb +43 -45
- data/lib/artikcloud/api/messages_api.rb +285 -103
- data/lib/artikcloud/api/registrations_api.rb +34 -34
- data/lib/artikcloud/api/rules_api.rb +43 -48
- data/lib/artikcloud/api/tags_api.rb +37 -35
- data/lib/artikcloud/api/tokens_api.rb +85 -30
- data/lib/artikcloud/api/users_api.rb +83 -102
- data/lib/artikcloud/api_client.rb +56 -13
- data/lib/artikcloud/api_error.rb +13 -4
- data/lib/artikcloud/configuration.rb +45 -1
- data/lib/artikcloud/models/ack_envelope.rb +59 -24
- data/lib/artikcloud/models/acknowledgement.rb +65 -33
- data/lib/artikcloud/models/action.rb +212 -0
- data/lib/artikcloud/models/action_array.rb +201 -0
- data/lib/artikcloud/models/action_details.rb +61 -27
- data/lib/artikcloud/models/action_details_array.rb +59 -24
- data/lib/artikcloud/models/action_in.rb +69 -39
- data/lib/artikcloud/models/action_out.rb +67 -36
- data/lib/artikcloud/models/actions.rb +241 -0
- data/lib/artikcloud/models/aggregate_data.rb +69 -39
- data/lib/artikcloud/models/aggregates_histogram_data.rb +71 -42
- data/lib/artikcloud/models/aggregates_histogram_response.rb +71 -42
- data/lib/artikcloud/models/aggregates_response.rb +69 -39
- data/lib/artikcloud/models/app_properties.rb +64 -30
- data/lib/artikcloud/models/check_token_message.rb +59 -24
- data/lib/artikcloud/models/check_token_response.rb +59 -24
- data/lib/artikcloud/models/device.rb +85 -63
- data/lib/artikcloud/models/device_array.rb +59 -24
- data/lib/artikcloud/models/device_envelope.rb +60 -24
- data/lib/artikcloud/models/device_reg_complete_request.rb +59 -24
- data/lib/artikcloud/models/device_reg_confirm_user_request.rb +63 -30
- data/lib/artikcloud/models/device_reg_confirm_user_response.rb +59 -24
- data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +59 -24
- data/lib/artikcloud/models/device_reg_status_response.rb +61 -27
- data/lib/artikcloud/models/device_reg_status_response_envelope.rb +59 -24
- data/lib/artikcloud/models/device_token.rb +69 -33
- data/lib/artikcloud/models/device_token_envelope.rb +60 -24
- data/lib/artikcloud/models/device_type.rb +93 -75
- data/lib/artikcloud/models/device_type_array.rb +59 -24
- data/lib/artikcloud/models/device_type_envelope.rb +60 -24
- data/lib/artikcloud/models/device_types_envelope.rb +68 -33
- data/lib/artikcloud/models/devices_envelope.rb +68 -33
- data/lib/artikcloud/models/error_envelope.rb +59 -24
- data/lib/artikcloud/models/export_data.rb +71 -42
- data/lib/artikcloud/models/export_data_array.rb +59 -24
- data/lib/artikcloud/models/export_history_response.rb +65 -33
- data/lib/artikcloud/models/export_normalized_messages_response.rb +83 -60
- data/lib/artikcloud/models/export_request.rb +73 -45
- data/lib/artikcloud/models/export_request_data.rb +79 -54
- data/lib/artikcloud/models/export_request_info.rb +77 -51
- data/lib/artikcloud/models/export_request_response.rb +59 -24
- data/lib/artikcloud/models/export_response.rb +79 -54
- data/lib/artikcloud/models/export_status_response.rb +67 -36
- data/lib/artikcloud/models/field_path.rb +59 -24
- data/lib/artikcloud/models/field_presence.rb +60 -24
- data/lib/artikcloud/models/field_presence_envelope.rb +78 -42
- data/lib/artikcloud/models/fields_actions.rb +61 -27
- data/lib/artikcloud/models/manifest_properties.rb +60 -24
- data/lib/artikcloud/models/manifest_properties_envelope.rb +60 -24
- data/lib/artikcloud/models/manifest_versions.rb +60 -24
- data/lib/artikcloud/models/manifest_versions_envelope.rb +60 -24
- data/lib/artikcloud/models/message.rb +233 -0
- data/lib/artikcloud/models/message_action.rb +67 -36
- data/lib/artikcloud/models/message_id.rb +59 -24
- data/lib/artikcloud/models/message_id_envelope.rb +59 -24
- data/lib/artikcloud/models/message_in.rb +69 -39
- data/lib/artikcloud/models/message_out.rb +67 -36
- data/lib/artikcloud/models/non_empty_string.rb +59 -24
- data/lib/artikcloud/models/normalized_action.rb +279 -0
- data/lib/artikcloud/models/normalized_actions_envelope.rb +285 -0
- data/lib/artikcloud/models/normalized_message.rb +81 -45
- data/lib/artikcloud/models/normalized_messages_envelope.rb +80 -51
- data/lib/artikcloud/models/output_rule.rb +85 -63
- data/lib/artikcloud/models/presence_envelope.rb +208 -0
- data/lib/artikcloud/models/presence_model.rb +208 -0
- data/lib/artikcloud/models/properties_envelope.rb +60 -24
- data/lib/artikcloud/models/refresh_token_response.rb +65 -33
- data/lib/artikcloud/models/register_message.rb +67 -36
- data/lib/artikcloud/models/rule_array.rb +59 -24
- data/lib/artikcloud/models/rule_creation_info.rb +65 -33
- data/lib/artikcloud/models/rule_envelope.rb +59 -24
- data/lib/artikcloud/models/rule_error.rb +65 -33
- data/lib/artikcloud/models/rule_update_info.rb +65 -33
- data/lib/artikcloud/models/rule_warning_output.rb +61 -27
- data/lib/artikcloud/models/rules_envelope.rb +69 -35
- data/lib/artikcloud/models/snapshot_response.rb +210 -0
- data/lib/artikcloud/models/snapshot_responses.rb +219 -0
- data/lib/artikcloud/models/snapshots_response_envelope.rb +208 -0
- data/lib/artikcloud/models/tag.rb +61 -27
- data/lib/artikcloud/models/tag_array.rb +59 -24
- data/lib/artikcloud/models/tags_envelope.rb +59 -24
- data/lib/artikcloud/models/token.rb +65 -33
- data/lib/artikcloud/models/token_info.rb +226 -0
- data/lib/artikcloud/models/token_info_success_response.rb +199 -0
- data/lib/artikcloud/models/token_request.rb +59 -24
- data/lib/artikcloud/models/token_response.rb +59 -24
- data/lib/artikcloud/models/unregister_device_response.rb +79 -54
- data/lib/artikcloud/models/unregister_device_response_envelope.rb +59 -24
- data/lib/artikcloud/models/user.rb +77 -42
- data/lib/artikcloud/models/user_envelope.rb +60 -24
- data/lib/artikcloud/models/web_socket_error.rb +63 -30
- data/lib/artikcloud/version.rb +14 -5
- data/lib/artikcloud.rb +26 -4
- data/spec/api/device_types_api_spec.rb +110 -0
- data/spec/api/devices_api_spec.rb +143 -0
- data/spec/api/export_api_spec.rb +96 -0
- data/spec/api/messages_api_spec.rb +7 -7
- data/spec/api/registrations_api_spec.rb +82 -0
- data/spec/api/rules_api_spec.rb +96 -0
- data/spec/api/tags_api_spec.rb +84 -0
- data/spec/api/tokens_api_spec.rb +12 -21
- data/spec/api/users_api_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +60 -22
data/docs/TokensApi.md
CHANGED
@@ -4,8 +4,9 @@ All URIs are relative to *https://api.artik.cloud/v1.1*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**check_token**](TokensApi.md#check_token) | **POST** /checkToken | Check Token
|
8
|
-
[**refresh_token**](TokensApi.md#refresh_token) | **POST** /token | Refresh Token
|
7
|
+
[**check_token**](TokensApi.md#check_token) | **POST** /accounts/checkToken | Check Token
|
8
|
+
[**refresh_token**](TokensApi.md#refresh_token) | **POST** /accounts/token | Refresh Token
|
9
|
+
[**token_info**](TokensApi.md#token_info) | **GET** /accounts/tokenInfo | Token Info
|
9
10
|
|
10
11
|
|
11
12
|
# **check_token**
|
@@ -13,13 +14,13 @@ Method | HTTP request | Description
|
|
13
14
|
|
14
15
|
Check Token
|
15
16
|
|
16
|
-
Check Token
|
17
|
+
(Deprecated) Check Token. See tokenInfo
|
17
18
|
|
18
19
|
### Example
|
19
20
|
```ruby
|
20
21
|
# load the gem
|
21
22
|
require 'artikcloud'
|
22
|
-
# setup authorization
|
23
|
+
# setup authorization
|
23
24
|
ArtikCloud.configure do |config|
|
24
25
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
25
26
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -53,7 +54,7 @@ Name | Type | Description | Notes
|
|
53
54
|
|
54
55
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
55
56
|
|
56
|
-
### HTTP
|
57
|
+
### HTTP request headers
|
57
58
|
|
58
59
|
- **Content-Type**: Not defined
|
59
60
|
- **Accept**: application/json
|
@@ -71,7 +72,7 @@ Refresh Token
|
|
71
72
|
```ruby
|
72
73
|
# load the gem
|
73
74
|
require 'artikcloud'
|
74
|
-
# setup authorization
|
75
|
+
# setup authorization
|
75
76
|
ArtikCloud.configure do |config|
|
76
77
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
77
78
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -108,10 +109,56 @@ Name | Type | Description | Notes
|
|
108
109
|
|
109
110
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
110
111
|
|
111
|
-
### HTTP
|
112
|
+
### HTTP request headers
|
112
113
|
|
113
114
|
- **Content-Type**: application/x-www-form-urlencoded
|
114
115
|
- **Accept**: application/json
|
115
116
|
|
116
117
|
|
117
118
|
|
119
|
+
# **token_info**
|
120
|
+
> TokenInfoSuccessResponse token_info
|
121
|
+
|
122
|
+
Token Info
|
123
|
+
|
124
|
+
Returns the Token Information
|
125
|
+
|
126
|
+
### Example
|
127
|
+
```ruby
|
128
|
+
# load the gem
|
129
|
+
require 'artikcloud'
|
130
|
+
# setup authorization
|
131
|
+
ArtikCloud.configure do |config|
|
132
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
133
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
134
|
+
end
|
135
|
+
|
136
|
+
api_instance = ArtikCloud::TokensApi.new
|
137
|
+
|
138
|
+
begin
|
139
|
+
#Token Info
|
140
|
+
result = api_instance.token_info
|
141
|
+
p result
|
142
|
+
rescue ArtikCloud::ApiError => e
|
143
|
+
puts "Exception when calling TokensApi->token_info: #{e}"
|
144
|
+
end
|
145
|
+
```
|
146
|
+
|
147
|
+
### Parameters
|
148
|
+
This endpoint does not need any parameter.
|
149
|
+
|
150
|
+
### Return type
|
151
|
+
|
152
|
+
[**TokenInfoSuccessResponse**](TokenInfoSuccessResponse.md)
|
153
|
+
|
154
|
+
### Authorization
|
155
|
+
|
156
|
+
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
157
|
+
|
158
|
+
### HTTP request headers
|
159
|
+
|
160
|
+
- **Content-Type**: Not defined
|
161
|
+
- **Accept**: application/json
|
162
|
+
|
163
|
+
|
164
|
+
|
data/docs/UsersApi.md
CHANGED
@@ -25,7 +25,7 @@ Create application properties for a user
|
|
25
25
|
```ruby
|
26
26
|
# load the gem
|
27
27
|
require 'artikcloud'
|
28
|
-
# setup authorization
|
28
|
+
# setup authorization
|
29
29
|
ArtikCloud.configure do |config|
|
30
30
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
31
31
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -66,7 +66,7 @@ Name | Type | Description | Notes
|
|
66
66
|
|
67
67
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
68
68
|
|
69
|
-
### HTTP
|
69
|
+
### HTTP request headers
|
70
70
|
|
71
71
|
- **Content-Type**: application/json
|
72
72
|
- **Accept**: application/json
|
@@ -84,7 +84,7 @@ Deletes a user's application properties
|
|
84
84
|
```ruby
|
85
85
|
# load the gem
|
86
86
|
require 'artikcloud'
|
87
|
-
# setup authorization
|
87
|
+
# setup authorization
|
88
88
|
ArtikCloud.configure do |config|
|
89
89
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
90
90
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -122,7 +122,7 @@ Name | Type | Description | Notes
|
|
122
122
|
|
123
123
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
124
124
|
|
125
|
-
### HTTP
|
125
|
+
### HTTP request headers
|
126
126
|
|
127
127
|
- **Content-Type**: Not defined
|
128
128
|
- **Accept**: application/json
|
@@ -140,7 +140,7 @@ Get's the current user's profile
|
|
140
140
|
```ruby
|
141
141
|
# load the gem
|
142
142
|
require 'artikcloud'
|
143
|
-
# setup authorization
|
143
|
+
# setup authorization
|
144
144
|
ArtikCloud.configure do |config|
|
145
145
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
146
146
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -168,7 +168,7 @@ This endpoint does not need any parameter.
|
|
168
168
|
|
169
169
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
170
170
|
|
171
|
-
### HTTP
|
171
|
+
### HTTP request headers
|
172
172
|
|
173
173
|
- **Content-Type**: Not defined
|
174
174
|
- **Accept**: application/json
|
@@ -186,7 +186,7 @@ Retrieve User's Device Types
|
|
186
186
|
```ruby
|
187
187
|
# load the gem
|
188
188
|
require 'artikcloud'
|
189
|
-
# setup authorization
|
189
|
+
# setup authorization
|
190
190
|
ArtikCloud.configure do |config|
|
191
191
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
192
192
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -228,7 +228,7 @@ Name | Type | Description | Notes
|
|
228
228
|
|
229
229
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
230
230
|
|
231
|
-
### HTTP
|
231
|
+
### HTTP request headers
|
232
232
|
|
233
233
|
- **Content-Type**: Not defined
|
234
234
|
- **Accept**: application/json
|
@@ -246,7 +246,7 @@ Retrieve User's Devices
|
|
246
246
|
```ruby
|
247
247
|
# load the gem
|
248
248
|
require 'artikcloud'
|
249
|
-
# setup authorization
|
249
|
+
# setup authorization
|
250
250
|
ArtikCloud.configure do |config|
|
251
251
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
252
252
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -288,7 +288,7 @@ Name | Type | Description | Notes
|
|
288
288
|
|
289
289
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
290
290
|
|
291
|
-
### HTTP
|
291
|
+
### HTTP request headers
|
292
292
|
|
293
293
|
- **Content-Type**: Not defined
|
294
294
|
- **Accept**: application/json
|
@@ -306,7 +306,7 @@ Get application properties of a user
|
|
306
306
|
```ruby
|
307
307
|
# load the gem
|
308
308
|
require 'artikcloud'
|
309
|
-
# setup authorization
|
309
|
+
# setup authorization
|
310
310
|
ArtikCloud.configure do |config|
|
311
311
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
312
312
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -344,7 +344,7 @@ Name | Type | Description | Notes
|
|
344
344
|
|
345
345
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
346
346
|
|
347
|
-
### HTTP
|
347
|
+
### HTTP request headers
|
348
348
|
|
349
349
|
- **Content-Type**: Not defined
|
350
350
|
- **Accept**: application/json
|
@@ -362,7 +362,7 @@ Retrieve User's Rules
|
|
362
362
|
```ruby
|
363
363
|
# load the gem
|
364
364
|
require 'artikcloud'
|
365
|
-
# setup authorization
|
365
|
+
# setup authorization
|
366
366
|
ArtikCloud.configure do |config|
|
367
367
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
368
368
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -374,7 +374,6 @@ user_id = "user_id_example" # String | User ID.
|
|
374
374
|
|
375
375
|
opts = {
|
376
376
|
exclude_disabled: true, # BOOLEAN | Exclude disabled rules in the result.
|
377
|
-
other_applications: true, # BOOLEAN | List rules of other applications if current application id has full read access
|
378
377
|
count: 56, # Integer | Desired count of items in the result set.
|
379
378
|
offset: 56 # Integer | Offset for pagination.
|
380
379
|
}
|
@@ -394,9 +393,8 @@ Name | Type | Description | Notes
|
|
394
393
|
------------- | ------------- | ------------- | -------------
|
395
394
|
**user_id** | **String**| User ID. |
|
396
395
|
**exclude_disabled** | **BOOLEAN**| Exclude disabled rules in the result. | [optional]
|
397
|
-
**
|
398
|
-
**
|
399
|
-
**offset** | [**Integer**](.md)| Offset for pagination. | [optional]
|
396
|
+
**count** | **Integer**| Desired count of items in the result set. | [optional]
|
397
|
+
**offset** | **Integer**| Offset for pagination. | [optional]
|
400
398
|
|
401
399
|
### Return type
|
402
400
|
|
@@ -406,7 +404,7 @@ Name | Type | Description | Notes
|
|
406
404
|
|
407
405
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
408
406
|
|
409
|
-
### HTTP
|
407
|
+
### HTTP request headers
|
410
408
|
|
411
409
|
- **Content-Type**: Not defined
|
412
410
|
- **Accept**: application/json
|
@@ -424,7 +422,7 @@ Updates application properties of a user
|
|
424
422
|
```ruby
|
425
423
|
# load the gem
|
426
424
|
require 'artikcloud'
|
427
|
-
# setup authorization
|
425
|
+
# setup authorization
|
428
426
|
ArtikCloud.configure do |config|
|
429
427
|
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
430
428
|
config.access_token = 'YOUR ACCESS TOKEN'
|
@@ -465,7 +463,7 @@ Name | Type | Description | Notes
|
|
465
463
|
|
466
464
|
[artikcloud_oauth](../README.md#artikcloud_oauth)
|
467
465
|
|
468
|
-
### HTTP
|
466
|
+
### HTTP request headers
|
469
467
|
|
470
468
|
- **Content-Type**: application/json
|
471
469
|
- **Accept**: application/json
|
data/git_push.sh
CHANGED
@@ -1,4 +1,19 @@
|
|
1
1
|
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
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
|
+
#
|
2
17
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
18
|
#
|
4
19
|
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
@@ -28,7 +43,7 @@ git init
|
|
28
43
|
# Adds the files in the local repository and stages them for commit.
|
29
44
|
git add .
|
30
45
|
|
31
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
46
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
32
47
|
git commit -m "$release_note"
|
33
48
|
|
34
49
|
# Sets the new remote
|
@@ -1,14 +1,23 @@
|
|
1
1
|
=begin
|
2
|
-
ARTIK Cloud API
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
3
5
|
|
4
6
|
OpenAPI spec version: 2.0.0
|
5
7
|
|
6
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
9
|
|
8
|
-
License
|
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
|
10
15
|
|
11
|
-
|
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.
|
12
21
|
|
13
22
|
=end
|
14
23
|
|
@@ -28,7 +37,7 @@ module ArtikCloud
|
|
28
37
|
# @param [Hash] opts the optional parameters
|
29
38
|
# @return [ManifestVersionsEnvelope]
|
30
39
|
def get_available_manifest_versions(device_type_id, opts = {})
|
31
|
-
data,
|
40
|
+
data, _status_code, _headers = get_available_manifest_versions_with_http_info(device_type_id, opts)
|
32
41
|
return data
|
33
42
|
end
|
34
43
|
|
@@ -39,12 +48,10 @@ module ArtikCloud
|
|
39
48
|
# @return [Array<(ManifestVersionsEnvelope, Fixnum, Hash)>] ManifestVersionsEnvelope data, response status code and response headers
|
40
49
|
def get_available_manifest_versions_with_http_info(device_type_id, opts = {})
|
41
50
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug "Calling API: DeviceTypesApi
|
51
|
+
@api_client.config.logger.debug "Calling API: DeviceTypesApi.get_available_manifest_versions ..."
|
43
52
|
end
|
44
|
-
|
45
53
|
# verify the required parameter 'device_type_id' is set
|
46
|
-
fail "Missing the required parameter 'device_type_id' when calling get_available_manifest_versions" if device_type_id.nil?
|
47
|
-
|
54
|
+
fail ArgumentError, "Missing the required parameter 'device_type_id' when calling DeviceTypesApi.get_available_manifest_versions" if device_type_id.nil?
|
48
55
|
# resource path
|
49
56
|
local_var_path = "/devicetypes/{deviceTypeId}/availablemanifestversions".sub('{format}','json').sub('{' + 'deviceTypeId' + '}', device_type_id.to_s)
|
50
57
|
|
@@ -55,19 +62,18 @@ module ArtikCloud
|
|
55
62
|
header_params = {}
|
56
63
|
|
57
64
|
# HTTP header 'Accept' (if needed)
|
58
|
-
|
59
|
-
|
65
|
+
local_header_accept = ['application/json']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
60
67
|
|
61
68
|
# HTTP header 'Content-Type'
|
62
|
-
|
63
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
69
|
+
local_header_content_type = []
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
64
71
|
|
65
72
|
# form parameters
|
66
73
|
form_params = {}
|
67
74
|
|
68
75
|
# http body (model)
|
69
76
|
post_body = nil
|
70
|
-
|
71
77
|
auth_names = ['artikcloud_oauth']
|
72
78
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
73
79
|
:header_params => header_params,
|
@@ -88,7 +94,7 @@ module ArtikCloud
|
|
88
94
|
# @param [Hash] opts the optional parameters
|
89
95
|
# @return [DeviceTypeEnvelope]
|
90
96
|
def get_device_type(device_type_id, opts = {})
|
91
|
-
data,
|
97
|
+
data, _status_code, _headers = get_device_type_with_http_info(device_type_id, opts)
|
92
98
|
return data
|
93
99
|
end
|
94
100
|
|
@@ -99,12 +105,10 @@ module ArtikCloud
|
|
99
105
|
# @return [Array<(DeviceTypeEnvelope, Fixnum, Hash)>] DeviceTypeEnvelope data, response status code and response headers
|
100
106
|
def get_device_type_with_http_info(device_type_id, opts = {})
|
101
107
|
if @api_client.config.debugging
|
102
|
-
@api_client.config.logger.debug "Calling API: DeviceTypesApi
|
108
|
+
@api_client.config.logger.debug "Calling API: DeviceTypesApi.get_device_type ..."
|
103
109
|
end
|
104
|
-
|
105
110
|
# verify the required parameter 'device_type_id' is set
|
106
|
-
fail "Missing the required parameter 'device_type_id' when calling get_device_type" if device_type_id.nil?
|
107
|
-
|
111
|
+
fail ArgumentError, "Missing the required parameter 'device_type_id' when calling DeviceTypesApi.get_device_type" if device_type_id.nil?
|
108
112
|
# resource path
|
109
113
|
local_var_path = "/devicetypes/{deviceTypeId}".sub('{format}','json').sub('{' + 'deviceTypeId' + '}', device_type_id.to_s)
|
110
114
|
|
@@ -115,19 +119,18 @@ module ArtikCloud
|
|
115
119
|
header_params = {}
|
116
120
|
|
117
121
|
# HTTP header 'Accept' (if needed)
|
118
|
-
|
119
|
-
|
122
|
+
local_header_accept = ['application/json']
|
123
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
120
124
|
|
121
125
|
# HTTP header 'Content-Type'
|
122
|
-
|
123
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
126
|
+
local_header_content_type = []
|
127
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
124
128
|
|
125
129
|
# form parameters
|
126
130
|
form_params = {}
|
127
131
|
|
128
132
|
# http body (model)
|
129
133
|
post_body = nil
|
130
|
-
|
131
134
|
auth_names = ['artikcloud_oauth']
|
132
135
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
133
136
|
:header_params => header_params,
|
@@ -151,7 +154,7 @@ module ArtikCloud
|
|
151
154
|
# @option opts [String] :tags Elements tagged with the list of tags. (comma separated)
|
152
155
|
# @return [DeviceTypesEnvelope]
|
153
156
|
def get_device_types(name, opts = {})
|
154
|
-
data,
|
157
|
+
data, _status_code, _headers = get_device_types_with_http_info(name, opts)
|
155
158
|
return data
|
156
159
|
end
|
157
160
|
|
@@ -165,39 +168,36 @@ module ArtikCloud
|
|
165
168
|
# @return [Array<(DeviceTypesEnvelope, Fixnum, Hash)>] DeviceTypesEnvelope data, response status code and response headers
|
166
169
|
def get_device_types_with_http_info(name, opts = {})
|
167
170
|
if @api_client.config.debugging
|
168
|
-
@api_client.config.logger.debug "Calling API: DeviceTypesApi
|
171
|
+
@api_client.config.logger.debug "Calling API: DeviceTypesApi.get_device_types ..."
|
169
172
|
end
|
170
|
-
|
171
173
|
# verify the required parameter 'name' is set
|
172
|
-
fail "Missing the required parameter 'name' when calling get_device_types" if name.nil?
|
173
|
-
|
174
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DeviceTypesApi.get_device_types" if name.nil?
|
174
175
|
# resource path
|
175
176
|
local_var_path = "/devicetypes".sub('{format}','json')
|
176
177
|
|
177
178
|
# query parameters
|
178
179
|
query_params = {}
|
179
180
|
query_params[:'name'] = name
|
180
|
-
query_params[:'offset'] = opts[:'offset'] if opts[:'offset']
|
181
|
-
query_params[:'count'] = opts[:'count'] if opts[:'count']
|
182
|
-
query_params[:'tags'] = opts[:'tags'] if opts[:'tags']
|
181
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
182
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
183
|
+
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
183
184
|
|
184
185
|
# header parameters
|
185
186
|
header_params = {}
|
186
187
|
|
187
188
|
# HTTP header 'Accept' (if needed)
|
188
|
-
|
189
|
-
|
189
|
+
local_header_accept = ['application/json']
|
190
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
190
191
|
|
191
192
|
# HTTP header 'Content-Type'
|
192
|
-
|
193
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
193
|
+
local_header_content_type = []
|
194
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
194
195
|
|
195
196
|
# form parameters
|
196
197
|
form_params = {}
|
197
198
|
|
198
199
|
# http body (model)
|
199
200
|
post_body = nil
|
200
|
-
|
201
201
|
auth_names = ['artikcloud_oauth']
|
202
202
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
203
203
|
:header_params => header_params,
|
@@ -218,7 +218,7 @@ module ArtikCloud
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
219
219
|
# @return [ManifestPropertiesEnvelope]
|
220
220
|
def get_latest_manifest_properties(device_type_id, opts = {})
|
221
|
-
data,
|
221
|
+
data, _status_code, _headers = get_latest_manifest_properties_with_http_info(device_type_id, opts)
|
222
222
|
return data
|
223
223
|
end
|
224
224
|
|
@@ -229,12 +229,10 @@ module ArtikCloud
|
|
229
229
|
# @return [Array<(ManifestPropertiesEnvelope, Fixnum, Hash)>] ManifestPropertiesEnvelope data, response status code and response headers
|
230
230
|
def get_latest_manifest_properties_with_http_info(device_type_id, opts = {})
|
231
231
|
if @api_client.config.debugging
|
232
|
-
@api_client.config.logger.debug "Calling API: DeviceTypesApi
|
232
|
+
@api_client.config.logger.debug "Calling API: DeviceTypesApi.get_latest_manifest_properties ..."
|
233
233
|
end
|
234
|
-
|
235
234
|
# verify the required parameter 'device_type_id' is set
|
236
|
-
fail "Missing the required parameter 'device_type_id' when calling get_latest_manifest_properties" if device_type_id.nil?
|
237
|
-
|
235
|
+
fail ArgumentError, "Missing the required parameter 'device_type_id' when calling DeviceTypesApi.get_latest_manifest_properties" if device_type_id.nil?
|
238
236
|
# resource path
|
239
237
|
local_var_path = "/devicetypes/{deviceTypeId}/manifests/latest/properties".sub('{format}','json').sub('{' + 'deviceTypeId' + '}', device_type_id.to_s)
|
240
238
|
|
@@ -245,19 +243,18 @@ module ArtikCloud
|
|
245
243
|
header_params = {}
|
246
244
|
|
247
245
|
# HTTP header 'Accept' (if needed)
|
248
|
-
|
249
|
-
|
246
|
+
local_header_accept = ['application/json']
|
247
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
250
248
|
|
251
249
|
# HTTP header 'Content-Type'
|
252
|
-
|
253
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
250
|
+
local_header_content_type = []
|
251
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
254
252
|
|
255
253
|
# form parameters
|
256
254
|
form_params = {}
|
257
255
|
|
258
256
|
# http body (model)
|
259
257
|
post_body = nil
|
260
|
-
|
261
258
|
auth_names = ['artikcloud_oauth']
|
262
259
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
263
260
|
:header_params => header_params,
|
@@ -279,7 +276,7 @@ module ArtikCloud
|
|
279
276
|
# @param [Hash] opts the optional parameters
|
280
277
|
# @return [ManifestPropertiesEnvelope]
|
281
278
|
def get_manifest_properties(device_type_id, version, opts = {})
|
282
|
-
data,
|
279
|
+
data, _status_code, _headers = get_manifest_properties_with_http_info(device_type_id, version, opts)
|
283
280
|
return data
|
284
281
|
end
|
285
282
|
|
@@ -291,15 +288,12 @@ module ArtikCloud
|
|
291
288
|
# @return [Array<(ManifestPropertiesEnvelope, Fixnum, Hash)>] ManifestPropertiesEnvelope data, response status code and response headers
|
292
289
|
def get_manifest_properties_with_http_info(device_type_id, version, opts = {})
|
293
290
|
if @api_client.config.debugging
|
294
|
-
@api_client.config.logger.debug "Calling API: DeviceTypesApi
|
291
|
+
@api_client.config.logger.debug "Calling API: DeviceTypesApi.get_manifest_properties ..."
|
295
292
|
end
|
296
|
-
|
297
293
|
# verify the required parameter 'device_type_id' is set
|
298
|
-
fail "Missing the required parameter 'device_type_id' when calling get_manifest_properties" if device_type_id.nil?
|
299
|
-
|
294
|
+
fail ArgumentError, "Missing the required parameter 'device_type_id' when calling DeviceTypesApi.get_manifest_properties" if device_type_id.nil?
|
300
295
|
# verify the required parameter 'version' is set
|
301
|
-
fail "Missing the required parameter 'version' when calling get_manifest_properties" if version.nil?
|
302
|
-
|
296
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling DeviceTypesApi.get_manifest_properties" if version.nil?
|
303
297
|
# resource path
|
304
298
|
local_var_path = "/devicetypes/{deviceTypeId}/manifests/{version}/properties".sub('{format}','json').sub('{' + 'deviceTypeId' + '}', device_type_id.to_s).sub('{' + 'version' + '}', version.to_s)
|
305
299
|
|
@@ -310,19 +304,18 @@ module ArtikCloud
|
|
310
304
|
header_params = {}
|
311
305
|
|
312
306
|
# HTTP header 'Accept' (if needed)
|
313
|
-
|
314
|
-
|
307
|
+
local_header_accept = ['application/json']
|
308
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
315
309
|
|
316
310
|
# HTTP header 'Content-Type'
|
317
|
-
|
318
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
311
|
+
local_header_content_type = []
|
312
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
319
313
|
|
320
314
|
# form parameters
|
321
315
|
form_params = {}
|
322
316
|
|
323
317
|
# http body (model)
|
324
318
|
post_body = nil
|
325
|
-
|
326
319
|
auth_names = ['artikcloud_oauth']
|
327
320
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
328
321
|
:header_params => header_params,
|