artikcloud 2.0.0 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +12 -12
  3. data/README.md +33 -10
  4. data/artikcloud.gemspec +5 -6
  5. data/docs/Action.md +9 -0
  6. data/docs/ActionArray.md +8 -0
  7. data/docs/Actions.md +12 -0
  8. data/docs/DeviceTypesApi.md +10 -10
  9. data/docs/DevicesApi.md +68 -15
  10. data/docs/ExportApi.md +10 -10
  11. data/docs/Message.md +11 -0
  12. data/docs/MessagesApi.md +205 -27
  13. data/docs/NormalizedAction.md +16 -0
  14. data/docs/NormalizedActionsEnvelope.md +17 -0
  15. data/docs/PresenceEnvelope.md +9 -0
  16. data/docs/PresenceModel.md +9 -0
  17. data/docs/RegistrationsApi.md +6 -6
  18. data/docs/RulesApi.md +8 -8
  19. data/docs/RulesEnvelope.md +1 -1
  20. data/docs/SnapshotResponse.md +9 -0
  21. data/docs/SnapshotResponses.md +10 -0
  22. data/docs/SnapshotsResponseEnvelope.md +9 -0
  23. data/docs/TagsApi.md +7 -7
  24. data/docs/TokenInfo.md +11 -0
  25. data/docs/TokenInfoSuccessResponse.md +8 -0
  26. data/docs/TokensApi.md +54 -7
  27. data/docs/UsersApi.md +18 -20
  28. data/git_push.sh +16 -1
  29. data/lib/artikcloud/api/device_types_api.rb +52 -59
  30. data/lib/artikcloud/api/devices_api.rb +120 -76
  31. data/lib/artikcloud/api/export_api.rb +43 -45
  32. data/lib/artikcloud/api/messages_api.rb +285 -103
  33. data/lib/artikcloud/api/registrations_api.rb +34 -34
  34. data/lib/artikcloud/api/rules_api.rb +43 -48
  35. data/lib/artikcloud/api/tags_api.rb +37 -35
  36. data/lib/artikcloud/api/tokens_api.rb +85 -30
  37. data/lib/artikcloud/api/users_api.rb +83 -102
  38. data/lib/artikcloud/api_client.rb +56 -13
  39. data/lib/artikcloud/api_error.rb +13 -4
  40. data/lib/artikcloud/configuration.rb +45 -1
  41. data/lib/artikcloud/models/ack_envelope.rb +59 -24
  42. data/lib/artikcloud/models/acknowledgement.rb +65 -33
  43. data/lib/artikcloud/models/action.rb +212 -0
  44. data/lib/artikcloud/models/action_array.rb +201 -0
  45. data/lib/artikcloud/models/action_details.rb +61 -27
  46. data/lib/artikcloud/models/action_details_array.rb +59 -24
  47. data/lib/artikcloud/models/action_in.rb +69 -39
  48. data/lib/artikcloud/models/action_out.rb +67 -36
  49. data/lib/artikcloud/models/actions.rb +241 -0
  50. data/lib/artikcloud/models/aggregate_data.rb +69 -39
  51. data/lib/artikcloud/models/aggregates_histogram_data.rb +71 -42
  52. data/lib/artikcloud/models/aggregates_histogram_response.rb +71 -42
  53. data/lib/artikcloud/models/aggregates_response.rb +69 -39
  54. data/lib/artikcloud/models/app_properties.rb +64 -30
  55. data/lib/artikcloud/models/check_token_message.rb +59 -24
  56. data/lib/artikcloud/models/check_token_response.rb +59 -24
  57. data/lib/artikcloud/models/device.rb +85 -63
  58. data/lib/artikcloud/models/device_array.rb +59 -24
  59. data/lib/artikcloud/models/device_envelope.rb +60 -24
  60. data/lib/artikcloud/models/device_reg_complete_request.rb +59 -24
  61. data/lib/artikcloud/models/device_reg_confirm_user_request.rb +63 -30
  62. data/lib/artikcloud/models/device_reg_confirm_user_response.rb +59 -24
  63. data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +59 -24
  64. data/lib/artikcloud/models/device_reg_status_response.rb +61 -27
  65. data/lib/artikcloud/models/device_reg_status_response_envelope.rb +59 -24
  66. data/lib/artikcloud/models/device_token.rb +69 -33
  67. data/lib/artikcloud/models/device_token_envelope.rb +60 -24
  68. data/lib/artikcloud/models/device_type.rb +93 -75
  69. data/lib/artikcloud/models/device_type_array.rb +59 -24
  70. data/lib/artikcloud/models/device_type_envelope.rb +60 -24
  71. data/lib/artikcloud/models/device_types_envelope.rb +68 -33
  72. data/lib/artikcloud/models/devices_envelope.rb +68 -33
  73. data/lib/artikcloud/models/error_envelope.rb +59 -24
  74. data/lib/artikcloud/models/export_data.rb +71 -42
  75. data/lib/artikcloud/models/export_data_array.rb +59 -24
  76. data/lib/artikcloud/models/export_history_response.rb +65 -33
  77. data/lib/artikcloud/models/export_normalized_messages_response.rb +83 -60
  78. data/lib/artikcloud/models/export_request.rb +73 -45
  79. data/lib/artikcloud/models/export_request_data.rb +79 -54
  80. data/lib/artikcloud/models/export_request_info.rb +77 -51
  81. data/lib/artikcloud/models/export_request_response.rb +59 -24
  82. data/lib/artikcloud/models/export_response.rb +79 -54
  83. data/lib/artikcloud/models/export_status_response.rb +67 -36
  84. data/lib/artikcloud/models/field_path.rb +59 -24
  85. data/lib/artikcloud/models/field_presence.rb +60 -24
  86. data/lib/artikcloud/models/field_presence_envelope.rb +78 -42
  87. data/lib/artikcloud/models/fields_actions.rb +61 -27
  88. data/lib/artikcloud/models/manifest_properties.rb +60 -24
  89. data/lib/artikcloud/models/manifest_properties_envelope.rb +60 -24
  90. data/lib/artikcloud/models/manifest_versions.rb +60 -24
  91. data/lib/artikcloud/models/manifest_versions_envelope.rb +60 -24
  92. data/lib/artikcloud/models/message.rb +233 -0
  93. data/lib/artikcloud/models/message_action.rb +67 -36
  94. data/lib/artikcloud/models/message_id.rb +59 -24
  95. data/lib/artikcloud/models/message_id_envelope.rb +59 -24
  96. data/lib/artikcloud/models/message_in.rb +69 -39
  97. data/lib/artikcloud/models/message_out.rb +67 -36
  98. data/lib/artikcloud/models/non_empty_string.rb +59 -24
  99. data/lib/artikcloud/models/normalized_action.rb +279 -0
  100. data/lib/artikcloud/models/normalized_actions_envelope.rb +285 -0
  101. data/lib/artikcloud/models/normalized_message.rb +81 -45
  102. data/lib/artikcloud/models/normalized_messages_envelope.rb +80 -51
  103. data/lib/artikcloud/models/output_rule.rb +85 -63
  104. data/lib/artikcloud/models/presence_envelope.rb +208 -0
  105. data/lib/artikcloud/models/presence_model.rb +208 -0
  106. data/lib/artikcloud/models/properties_envelope.rb +60 -24
  107. data/lib/artikcloud/models/refresh_token_response.rb +65 -33
  108. data/lib/artikcloud/models/register_message.rb +67 -36
  109. data/lib/artikcloud/models/rule_array.rb +59 -24
  110. data/lib/artikcloud/models/rule_creation_info.rb +65 -33
  111. data/lib/artikcloud/models/rule_envelope.rb +59 -24
  112. data/lib/artikcloud/models/rule_error.rb +65 -33
  113. data/lib/artikcloud/models/rule_update_info.rb +65 -33
  114. data/lib/artikcloud/models/rule_warning_output.rb +61 -27
  115. data/lib/artikcloud/models/rules_envelope.rb +69 -35
  116. data/lib/artikcloud/models/snapshot_response.rb +210 -0
  117. data/lib/artikcloud/models/snapshot_responses.rb +219 -0
  118. data/lib/artikcloud/models/snapshots_response_envelope.rb +208 -0
  119. data/lib/artikcloud/models/tag.rb +61 -27
  120. data/lib/artikcloud/models/tag_array.rb +59 -24
  121. data/lib/artikcloud/models/tags_envelope.rb +59 -24
  122. data/lib/artikcloud/models/token.rb +65 -33
  123. data/lib/artikcloud/models/token_info.rb +226 -0
  124. data/lib/artikcloud/models/token_info_success_response.rb +199 -0
  125. data/lib/artikcloud/models/token_request.rb +59 -24
  126. data/lib/artikcloud/models/token_response.rb +59 -24
  127. data/lib/artikcloud/models/unregister_device_response.rb +79 -54
  128. data/lib/artikcloud/models/unregister_device_response_envelope.rb +59 -24
  129. data/lib/artikcloud/models/user.rb +77 -42
  130. data/lib/artikcloud/models/user_envelope.rb +60 -24
  131. data/lib/artikcloud/models/web_socket_error.rb +63 -30
  132. data/lib/artikcloud/version.rb +14 -5
  133. data/lib/artikcloud.rb +26 -4
  134. data/spec/api/device_types_api_spec.rb +110 -0
  135. data/spec/api/devices_api_spec.rb +143 -0
  136. data/spec/api/export_api_spec.rb +96 -0
  137. data/spec/api/messages_api_spec.rb +7 -7
  138. data/spec/api/registrations_api_spec.rb +82 -0
  139. data/spec/api/rules_api_spec.rb +96 -0
  140. data/spec/api/tags_api_spec.rb +84 -0
  141. data/spec/api/tokens_api_spec.rb +12 -21
  142. data/spec/api/users_api_spec.rb +1 -1
  143. data/spec/spec_helper.rb +1 -1
  144. 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 reuqest headers
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 reuqest headers
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 reuqest headers
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 reuqest headers
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 reuqest headers
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 reuqest headers
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 reuqest headers
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 reuqest headers
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
- **other_applications** | **BOOLEAN**| List rules of other applications if current application id has full read access | [optional]
398
- **count** | [**Integer**](.md)| Desired count of items in the result set. | [optional]
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 reuqest headers
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 reuqest headers
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: MIT
9
- http://en.wikipedia.org/wiki/MIT_License
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
- Terms of Service: http://www.samsung.com/global/business/mobile/info/terms-and-conditions.html
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, status_code, headers = get_available_manifest_versions_with_http_info(device_type_id, opts)
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#get_available_manifest_versions ..."
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
- _header_accept = ['application/json']
59
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
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
- _header_content_type = []
63
- header_params['Content-Type'] = @api_client.select_header_content_type(_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, status_code, headers = get_device_type_with_http_info(device_type_id, opts)
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#get_device_type ..."
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
- _header_accept = ['application/json']
119
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
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
- _header_content_type = []
123
- header_params['Content-Type'] = @api_client.select_header_content_type(_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, status_code, headers = get_device_types_with_http_info(name, opts)
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#get_device_types ..."
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
- _header_accept = ['application/json']
189
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
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
- _header_content_type = []
193
- header_params['Content-Type'] = @api_client.select_header_content_type(_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, status_code, headers = get_latest_manifest_properties_with_http_info(device_type_id, opts)
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#get_latest_manifest_properties ..."
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
- _header_accept = ['application/json']
249
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
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
- _header_content_type = []
253
- header_params['Content-Type'] = @api_client.select_header_content_type(_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, status_code, headers = get_manifest_properties_with_http_info(device_type_id, version, opts)
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#get_manifest_properties ..."
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
- _header_accept = ['application/json']
314
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
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
- _header_content_type = []
318
- header_params['Content-Type'] = @api_client.select_header_content_type(_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,