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
@@ -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 [DeviceRegConfirmUserResponseEnvelope]
30
39
  def confirm_user(registration_info, opts = {})
31
- data, status_code, headers = confirm_user_with_http_info(registration_info, opts)
40
+ data, _status_code, _headers = confirm_user_with_http_info(registration_info, opts)
32
41
  return data
33
42
  end
34
43
 
@@ -39,12 +48,10 @@ module ArtikCloud
39
48
  # @return [Array<(DeviceRegConfirmUserResponseEnvelope, Fixnum, Hash)>] DeviceRegConfirmUserResponseEnvelope data, response status code and response headers
40
49
  def confirm_user_with_http_info(registration_info, opts = {})
41
50
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: RegistrationsApi#confirm_user ..."
51
+ @api_client.config.logger.debug "Calling API: RegistrationsApi.confirm_user ..."
43
52
  end
44
-
45
53
  # verify the required parameter 'registration_info' is set
46
- fail "Missing the required parameter 'registration_info' when calling confirm_user" if registration_info.nil?
47
-
54
+ fail ArgumentError, "Missing the required parameter 'registration_info' when calling RegistrationsApi.confirm_user" if registration_info.nil?
48
55
  # resource path
49
56
  local_var_path = "/devices/registrations/pin".sub('{format}','json')
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 = @api_client.object_to_http_body(registration_info)
70
-
71
77
  auth_names = ['artikcloud_oauth']
72
78
  data, status_code, headers = @api_client.call_api(:PUT, 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 [DeviceRegStatusResponseEnvelope]
90
96
  def get_request_status_for_user(request_id, opts = {})
91
- data, status_code, headers = get_request_status_for_user_with_http_info(request_id, opts)
97
+ data, _status_code, _headers = get_request_status_for_user_with_http_info(request_id, opts)
92
98
  return data
93
99
  end
94
100
 
@@ -99,12 +105,10 @@ module ArtikCloud
99
105
  # @return [Array<(DeviceRegStatusResponseEnvelope, Fixnum, Hash)>] DeviceRegStatusResponseEnvelope data, response status code and response headers
100
106
  def get_request_status_for_user_with_http_info(request_id, opts = {})
101
107
  if @api_client.config.debugging
102
- @api_client.config.logger.debug "Calling API: RegistrationsApi#get_request_status_for_user ..."
108
+ @api_client.config.logger.debug "Calling API: RegistrationsApi.get_request_status_for_user ..."
103
109
  end
104
-
105
110
  # verify the required parameter 'request_id' is set
106
- fail "Missing the required parameter 'request_id' when calling get_request_status_for_user" if request_id.nil?
107
-
111
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling RegistrationsApi.get_request_status_for_user" if request_id.nil?
108
112
  # resource path
109
113
  local_var_path = "/devices/registrations/{requestId}/status".sub('{format}','json').sub('{' + 'requestId' + '}', request_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,
@@ -148,7 +151,7 @@ module ArtikCloud
148
151
  # @param [Hash] opts the optional parameters
149
152
  # @return [UnregisterDeviceResponseEnvelope]
150
153
  def unregister_device(device_id, opts = {})
151
- data, status_code, headers = unregister_device_with_http_info(device_id, opts)
154
+ data, _status_code, _headers = unregister_device_with_http_info(device_id, opts)
152
155
  return data
153
156
  end
154
157
 
@@ -159,12 +162,10 @@ module ArtikCloud
159
162
  # @return [Array<(UnregisterDeviceResponseEnvelope, Fixnum, Hash)>] UnregisterDeviceResponseEnvelope data, response status code and response headers
160
163
  def unregister_device_with_http_info(device_id, opts = {})
161
164
  if @api_client.config.debugging
162
- @api_client.config.logger.debug "Calling API: RegistrationsApi#unregister_device ..."
165
+ @api_client.config.logger.debug "Calling API: RegistrationsApi.unregister_device ..."
163
166
  end
164
-
165
167
  # verify the required parameter 'device_id' is set
166
- fail "Missing the required parameter 'device_id' when calling unregister_device" if device_id.nil?
167
-
168
+ fail ArgumentError, "Missing the required parameter 'device_id' when calling RegistrationsApi.unregister_device" if device_id.nil?
168
169
  # resource path
169
170
  local_var_path = "/devices/{deviceId}/registrations".sub('{format}','json').sub('{' + 'deviceId' + '}', device_id.to_s)
170
171
 
@@ -175,19 +176,18 @@ module ArtikCloud
175
176
  header_params = {}
176
177
 
177
178
  # HTTP header 'Accept' (if needed)
178
- _header_accept = ['application/json']
179
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
179
+ local_header_accept = ['application/json']
180
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
180
181
 
181
182
  # HTTP header 'Content-Type'
182
- _header_content_type = []
183
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
183
+ local_header_content_type = []
184
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
184
185
 
185
186
  # form parameters
186
187
  form_params = {}
187
188
 
188
189
  # http body (model)
189
190
  post_body = nil
190
-
191
191
  auth_names = ['artikcloud_oauth']
192
192
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
193
193
  :header_params => header_params,
@@ -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
 
@@ -29,7 +38,7 @@ module ArtikCloud
29
38
  # @param [Hash] opts the optional parameters
30
39
  # @return [RuleEnvelope]
31
40
  def create_rule(rule_info, user_id, opts = {})
32
- data, status_code, headers = create_rule_with_http_info(rule_info, user_id, opts)
41
+ data, _status_code, _headers = create_rule_with_http_info(rule_info, user_id, opts)
33
42
  return data
34
43
  end
35
44
 
@@ -41,15 +50,12 @@ module ArtikCloud
41
50
  # @return [Array<(RuleEnvelope, Fixnum, Hash)>] RuleEnvelope data, response status code and response headers
42
51
  def create_rule_with_http_info(rule_info, user_id, opts = {})
43
52
  if @api_client.config.debugging
44
- @api_client.config.logger.debug "Calling API: RulesApi#create_rule ..."
53
+ @api_client.config.logger.debug "Calling API: RulesApi.create_rule ..."
45
54
  end
46
-
47
55
  # verify the required parameter 'rule_info' is set
48
- fail "Missing the required parameter 'rule_info' when calling create_rule" if rule_info.nil?
49
-
56
+ fail ArgumentError, "Missing the required parameter 'rule_info' when calling RulesApi.create_rule" if rule_info.nil?
50
57
  # verify the required parameter 'user_id' is set
51
- fail "Missing the required parameter 'user_id' when calling create_rule" if user_id.nil?
52
-
58
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling RulesApi.create_rule" if user_id.nil?
53
59
  # resource path
54
60
  local_var_path = "/rules".sub('{format}','json')
55
61
 
@@ -61,19 +67,18 @@ module ArtikCloud
61
67
  header_params = {}
62
68
 
63
69
  # HTTP header 'Accept' (if needed)
64
- _header_accept = ['application/json']
65
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
70
+ local_header_accept = ['application/json']
71
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
66
72
 
67
73
  # HTTP header 'Content-Type'
68
- _header_content_type = []
69
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
74
+ local_header_content_type = []
75
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
70
76
 
71
77
  # form parameters
72
78
  form_params = {}
73
79
 
74
80
  # http body (model)
75
81
  post_body = @api_client.object_to_http_body(rule_info)
76
-
77
82
  auth_names = ['artikcloud_oauth']
78
83
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
79
84
  :header_params => header_params,
@@ -94,7 +99,7 @@ module ArtikCloud
94
99
  # @param [Hash] opts the optional parameters
95
100
  # @return [RuleEnvelope]
96
101
  def delete_rule(rule_id, opts = {})
97
- data, status_code, headers = delete_rule_with_http_info(rule_id, opts)
102
+ data, _status_code, _headers = delete_rule_with_http_info(rule_id, opts)
98
103
  return data
99
104
  end
100
105
 
@@ -105,12 +110,10 @@ module ArtikCloud
105
110
  # @return [Array<(RuleEnvelope, Fixnum, Hash)>] RuleEnvelope data, response status code and response headers
106
111
  def delete_rule_with_http_info(rule_id, opts = {})
107
112
  if @api_client.config.debugging
108
- @api_client.config.logger.debug "Calling API: RulesApi#delete_rule ..."
113
+ @api_client.config.logger.debug "Calling API: RulesApi.delete_rule ..."
109
114
  end
110
-
111
115
  # verify the required parameter 'rule_id' is set
112
- fail "Missing the required parameter 'rule_id' when calling delete_rule" if rule_id.nil?
113
-
116
+ fail ArgumentError, "Missing the required parameter 'rule_id' when calling RulesApi.delete_rule" if rule_id.nil?
114
117
  # resource path
115
118
  local_var_path = "/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
116
119
 
@@ -121,19 +124,18 @@ module ArtikCloud
121
124
  header_params = {}
122
125
 
123
126
  # HTTP header 'Accept' (if needed)
124
- _header_accept = ['application/json']
125
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
127
+ local_header_accept = ['application/json']
128
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
126
129
 
127
130
  # HTTP header 'Content-Type'
128
- _header_content_type = []
129
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
131
+ local_header_content_type = []
132
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
130
133
 
131
134
  # form parameters
132
135
  form_params = {}
133
136
 
134
137
  # http body (model)
135
138
  post_body = nil
136
-
137
139
  auth_names = ['artikcloud_oauth']
138
140
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
139
141
  :header_params => header_params,
@@ -154,7 +156,7 @@ module ArtikCloud
154
156
  # @param [Hash] opts the optional parameters
155
157
  # @return [RuleEnvelope]
156
158
  def get_rule(rule_id, opts = {})
157
- data, status_code, headers = get_rule_with_http_info(rule_id, opts)
159
+ data, _status_code, _headers = get_rule_with_http_info(rule_id, opts)
158
160
  return data
159
161
  end
160
162
 
@@ -165,12 +167,10 @@ module ArtikCloud
165
167
  # @return [Array<(RuleEnvelope, Fixnum, Hash)>] RuleEnvelope data, response status code and response headers
166
168
  def get_rule_with_http_info(rule_id, opts = {})
167
169
  if @api_client.config.debugging
168
- @api_client.config.logger.debug "Calling API: RulesApi#get_rule ..."
170
+ @api_client.config.logger.debug "Calling API: RulesApi.get_rule ..."
169
171
  end
170
-
171
172
  # verify the required parameter 'rule_id' is set
172
- fail "Missing the required parameter 'rule_id' when calling get_rule" if rule_id.nil?
173
-
173
+ fail ArgumentError, "Missing the required parameter 'rule_id' when calling RulesApi.get_rule" if rule_id.nil?
174
174
  # resource path
175
175
  local_var_path = "/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
176
176
 
@@ -181,19 +181,18 @@ module ArtikCloud
181
181
  header_params = {}
182
182
 
183
183
  # HTTP header 'Accept' (if needed)
184
- _header_accept = ['application/json']
185
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
184
+ local_header_accept = ['application/json']
185
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
186
186
 
187
187
  # HTTP header 'Content-Type'
188
- _header_content_type = []
189
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
188
+ local_header_content_type = []
189
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
190
190
 
191
191
  # form parameters
192
192
  form_params = {}
193
193
 
194
194
  # http body (model)
195
195
  post_body = nil
196
-
197
196
  auth_names = ['artikcloud_oauth']
198
197
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
199
198
  :header_params => header_params,
@@ -215,7 +214,7 @@ module ArtikCloud
215
214
  # @param [Hash] opts the optional parameters
216
215
  # @return [RuleEnvelope]
217
216
  def update_rule(rule_id, rule_info, opts = {})
218
- data, status_code, headers = update_rule_with_http_info(rule_id, rule_info, opts)
217
+ data, _status_code, _headers = update_rule_with_http_info(rule_id, rule_info, opts)
219
218
  return data
220
219
  end
221
220
 
@@ -227,15 +226,12 @@ module ArtikCloud
227
226
  # @return [Array<(RuleEnvelope, Fixnum, Hash)>] RuleEnvelope data, response status code and response headers
228
227
  def update_rule_with_http_info(rule_id, rule_info, opts = {})
229
228
  if @api_client.config.debugging
230
- @api_client.config.logger.debug "Calling API: RulesApi#update_rule ..."
229
+ @api_client.config.logger.debug "Calling API: RulesApi.update_rule ..."
231
230
  end
232
-
233
231
  # verify the required parameter 'rule_id' is set
234
- fail "Missing the required parameter 'rule_id' when calling update_rule" if rule_id.nil?
235
-
232
+ fail ArgumentError, "Missing the required parameter 'rule_id' when calling RulesApi.update_rule" if rule_id.nil?
236
233
  # verify the required parameter 'rule_info' is set
237
- fail "Missing the required parameter 'rule_info' when calling update_rule" if rule_info.nil?
238
-
234
+ fail ArgumentError, "Missing the required parameter 'rule_info' when calling RulesApi.update_rule" if rule_info.nil?
239
235
  # resource path
240
236
  local_var_path = "/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
241
237
 
@@ -246,19 +242,18 @@ module ArtikCloud
246
242
  header_params = {}
247
243
 
248
244
  # HTTP header 'Accept' (if needed)
249
- _header_accept = ['application/json']
250
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
245
+ local_header_accept = ['application/json']
246
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
251
247
 
252
248
  # HTTP header 'Content-Type'
253
- _header_content_type = []
254
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
249
+ local_header_content_type = []
250
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
255
251
 
256
252
  # form parameters
257
253
  form_params = {}
258
254
 
259
255
  # http body (model)
260
256
  post_body = @api_client.object_to_http_body(rule_info)
261
-
262
257
  auth_names = ['artikcloud_oauth']
263
258
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
264
259
  :header_params => header_params,
@@ -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
 
@@ -27,7 +36,7 @@ module ArtikCloud
27
36
  # @param [Hash] opts the optional parameters
28
37
  # @return [TagsEnvelope]
29
38
  def get_tag_categories(opts = {})
30
- data, status_code, headers = get_tag_categories_with_http_info(opts)
39
+ data, _status_code, _headers = get_tag_categories_with_http_info(opts)
31
40
  return data
32
41
  end
33
42
 
@@ -37,9 +46,8 @@ module ArtikCloud
37
46
  # @return [Array<(TagsEnvelope, Fixnum, Hash)>] TagsEnvelope data, response status code and response headers
38
47
  def get_tag_categories_with_http_info(opts = {})
39
48
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: TagsApi#get_tag_categories ..."
49
+ @api_client.config.logger.debug "Calling API: TagsApi.get_tag_categories ..."
41
50
  end
42
-
43
51
  # resource path
44
52
  local_var_path = "/tags/categories".sub('{format}','json')
45
53
 
@@ -50,19 +58,18 @@ module ArtikCloud
50
58
  header_params = {}
51
59
 
52
60
  # HTTP header 'Accept' (if needed)
53
- _header_accept = ['application/json']
54
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
61
+ local_header_accept = ['application/json']
62
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
55
63
 
56
64
  # HTTP header 'Content-Type'
57
- _header_content_type = []
58
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
65
+ local_header_content_type = []
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
59
67
 
60
68
  # form parameters
61
69
  form_params = {}
62
70
 
63
71
  # http body (model)
64
72
  post_body = nil
65
-
66
73
  auth_names = ['artikcloud_oauth']
67
74
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
68
75
  :header_params => header_params,
@@ -86,7 +93,7 @@ module ArtikCloud
86
93
  # @option opts [Integer] :count Number of results to return. Max 10.
87
94
  # @return [TagsEnvelope]
88
95
  def get_tag_suggestions(opts = {})
89
- data, status_code, headers = get_tag_suggestions_with_http_info(opts)
96
+ data, _status_code, _headers = get_tag_suggestions_with_http_info(opts)
90
97
  return data
91
98
  end
92
99
 
@@ -100,40 +107,37 @@ module ArtikCloud
100
107
  # @return [Array<(TagsEnvelope, Fixnum, Hash)>] TagsEnvelope data, response status code and response headers
101
108
  def get_tag_suggestions_with_http_info(opts = {})
102
109
  if @api_client.config.debugging
103
- @api_client.config.logger.debug "Calling API: TagsApi#get_tag_suggestions ..."
110
+ @api_client.config.logger.debug "Calling API: TagsApi.get_tag_suggestions ..."
104
111
  end
105
-
106
112
  if opts[:'entity_type'] && !['TAG', 'APPLICATION', 'DEVICE_TYPE'].include?(opts[:'entity_type'])
107
- fail 'invalid value for "entity_type", must be one of TAG, APPLICATION, DEVICE_TYPE'
113
+ fail ArgumentError, 'invalid value for "entity_type", must be one of TAG, APPLICATION, DEVICE_TYPE'
108
114
  end
109
-
110
115
  # resource path
111
116
  local_var_path = "/tags/suggestions".sub('{format}','json')
112
117
 
113
118
  # query parameters
114
119
  query_params = {}
115
- query_params[:'entity_type'] = opts[:'entity_type'] if opts[:'entity_type']
116
- query_params[:'tags'] = opts[:'tags'] if opts[:'tags']
117
- query_params[:'name'] = opts[:'name'] if opts[:'name']
118
- query_params[:'count'] = opts[:'count'] if opts[:'count']
120
+ query_params[:'entity_type'] = opts[:'entity_type'] if !opts[:'entity_type'].nil?
121
+ query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
122
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
123
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
119
124
 
120
125
  # header parameters
121
126
  header_params = {}
122
127
 
123
128
  # HTTP header 'Accept' (if needed)
124
- _header_accept = ['application/json']
125
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
129
+ local_header_accept = ['application/json']
130
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
126
131
 
127
132
  # HTTP header 'Content-Type'
128
- _header_content_type = []
129
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
133
+ local_header_content_type = []
134
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
130
135
 
131
136
  # form parameters
132
137
  form_params = {}
133
138
 
134
139
  # http body (model)
135
140
  post_body = nil
136
-
137
141
  auth_names = ['artikcloud_oauth']
138
142
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
139
143
  :header_params => header_params,
@@ -154,7 +158,7 @@ module ArtikCloud
154
158
  # @option opts [String] :categories Comma separated list of categories.
155
159
  # @return [TagsEnvelope]
156
160
  def get_tags_by_categories(opts = {})
157
- data, status_code, headers = get_tags_by_categories_with_http_info(opts)
161
+ data, _status_code, _headers = get_tags_by_categories_with_http_info(opts)
158
162
  return data
159
163
  end
160
164
 
@@ -165,33 +169,31 @@ module ArtikCloud
165
169
  # @return [Array<(TagsEnvelope, Fixnum, Hash)>] TagsEnvelope data, response status code and response headers
166
170
  def get_tags_by_categories_with_http_info(opts = {})
167
171
  if @api_client.config.debugging
168
- @api_client.config.logger.debug "Calling API: TagsApi#get_tags_by_categories ..."
172
+ @api_client.config.logger.debug "Calling API: TagsApi.get_tags_by_categories ..."
169
173
  end
170
-
171
174
  # resource path
172
175
  local_var_path = "/tags".sub('{format}','json')
173
176
 
174
177
  # query parameters
175
178
  query_params = {}
176
- query_params[:'categories'] = opts[:'categories'] if opts[:'categories']
179
+ query_params[:'categories'] = opts[:'categories'] if !opts[:'categories'].nil?
177
180
 
178
181
  # header parameters
179
182
  header_params = {}
180
183
 
181
184
  # HTTP header 'Accept' (if needed)
182
- _header_accept = ['application/json']
183
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
185
+ local_header_accept = ['application/json']
186
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
184
187
 
185
188
  # HTTP header 'Content-Type'
186
- _header_content_type = []
187
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
189
+ local_header_content_type = []
190
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
188
191
 
189
192
  # form parameters
190
193
  form_params = {}
191
194
 
192
195
  # http body (model)
193
196
  post_body = nil
194
-
195
197
  auth_names = ['artikcloud_oauth']
196
198
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
197
199
  :header_params => header_params,