artikcloud 2.0.8 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -2
  3. data/LICENSE +1 -1
  4. data/README.md +39 -4
  5. data/Rakefile +8 -0
  6. data/artikcloud.gemspec +5 -16
  7. data/docs/Device.md +2 -0
  8. data/docs/DeviceShareInfo.md +8 -0
  9. data/docs/DeviceSharing.md +11 -0
  10. data/docs/DeviceSharingArray.md +8 -0
  11. data/docs/DeviceSharingEnvelope.md +11 -0
  12. data/docs/DeviceSharingId.md +8 -0
  13. data/docs/DeviceStatus.md +9 -0
  14. data/docs/DeviceStatusBatch.md +11 -0
  15. data/docs/DeviceStatusData.md +12 -0
  16. data/docs/DeviceStatusPut.md +8 -0
  17. data/docs/DeviceStatusPutData.md +8 -0
  18. data/docs/DevicessharesApi.md +235 -0
  19. data/docs/DevicestatusApi.md +183 -0
  20. data/docs/NotifMessage.md +15 -0
  21. data/docs/NotifMessageArray.md +8 -0
  22. data/docs/NotifMessagesResponse.md +12 -0
  23. data/docs/Subscription.md +24 -0
  24. data/docs/SubscriptionArray.md +8 -0
  25. data/docs/SubscriptionEnvelope.md +8 -0
  26. data/docs/SubscriptionInfo.md +20 -0
  27. data/docs/SubscriptionsApi.md +342 -0
  28. data/docs/SubscriptionsEnvelope.md +11 -0
  29. data/docs/TaskParameters.md +2 -0
  30. data/docs/UpdateParameters.md +8 -0
  31. data/docs/UsersApi.md +67 -1
  32. data/docs/ValidationCallbackInfo.md +9 -0
  33. data/git_push.sh +0 -12
  34. data/lib/artikcloud.rb +24 -13
  35. data/lib/artikcloud/api/device_types_api.rb +7 -55
  36. data/lib/artikcloud/api/devices_api.rb +12 -66
  37. data/lib/artikcloud/api/devices_management_api.rb +16 -118
  38. data/lib/artikcloud/api/devicesshares_api.rb +244 -0
  39. data/lib/artikcloud/api/devicestatus_api.rb +190 -0
  40. data/lib/artikcloud/api/export_api.rb +5 -41
  41. data/lib/artikcloud/api/messages_api.rb +10 -76
  42. data/lib/artikcloud/api/registrations_api.rb +4 -34
  43. data/lib/artikcloud/api/rules_api.rb +5 -41
  44. data/lib/artikcloud/api/subscriptions_api.rb +346 -0
  45. data/lib/artikcloud/api/tags_api.rb +4 -34
  46. data/lib/artikcloud/api/tokens_api.rb +5 -33
  47. data/lib/artikcloud/api/users_api.rb +79 -67
  48. data/lib/artikcloud/api_client.rb +17 -20
  49. data/lib/artikcloud/api_error.rb +8 -18
  50. data/lib/artikcloud/configuration.rb +1 -13
  51. data/lib/artikcloud/models/ack_envelope.rb +4 -16
  52. data/lib/artikcloud/models/acknowledgement.rb +4 -16
  53. data/lib/artikcloud/models/action.rb +4 -16
  54. data/lib/artikcloud/models/action_array.rb +4 -16
  55. data/lib/artikcloud/models/action_details.rb +4 -16
  56. data/lib/artikcloud/models/action_details_array.rb +4 -16
  57. data/lib/artikcloud/models/action_in.rb +4 -16
  58. data/lib/artikcloud/models/action_out.rb +4 -16
  59. data/lib/artikcloud/models/actions.rb +4 -16
  60. data/lib/artikcloud/models/aggregate_data.rb +4 -16
  61. data/lib/artikcloud/models/aggregates_histogram_data.rb +4 -16
  62. data/lib/artikcloud/models/aggregates_histogram_response.rb +4 -16
  63. data/lib/artikcloud/models/aggregates_response.rb +4 -16
  64. data/lib/artikcloud/models/app_properties.rb +8 -16
  65. data/lib/artikcloud/models/check_token_message.rb +4 -16
  66. data/lib/artikcloud/models/check_token_response.rb +4 -16
  67. data/lib/artikcloud/models/device.rb +28 -20
  68. data/lib/artikcloud/models/device_array.rb +4 -16
  69. data/lib/artikcloud/models/device_envelope.rb +8 -16
  70. data/lib/artikcloud/models/device_reg_complete_request.rb +4 -16
  71. data/lib/artikcloud/models/device_reg_confirm_user_request.rb +4 -16
  72. data/lib/artikcloud/models/device_reg_confirm_user_response.rb +4 -16
  73. data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +4 -16
  74. data/lib/artikcloud/models/device_reg_status_response.rb +4 -16
  75. data/lib/artikcloud/models/device_reg_status_response_envelope.rb +4 -16
  76. data/lib/artikcloud/models/device_share_info.rb +188 -0
  77. data/lib/artikcloud/models/device_sharing.rb +218 -0
  78. data/lib/artikcloud/models/device_sharing_array.rb +189 -0
  79. data/lib/artikcloud/models/device_sharing_envelope.rb +214 -0
  80. data/lib/artikcloud/models/device_sharing_id.rb +188 -0
  81. data/lib/artikcloud/models/device_status.rb +196 -0
  82. data/lib/artikcloud/models/device_status_batch.rb +216 -0
  83. data/lib/artikcloud/models/device_status_data.rb +225 -0
  84. data/lib/artikcloud/models/device_status_put.rb +187 -0
  85. data/lib/artikcloud/models/device_status_put_data.rb +187 -0
  86. data/lib/artikcloud/models/device_task.rb +4 -16
  87. data/lib/artikcloud/models/device_task_update_request.rb +4 -16
  88. data/lib/artikcloud/models/device_task_update_response.rb +4 -16
  89. data/lib/artikcloud/models/device_token.rb +20 -16
  90. data/lib/artikcloud/models/device_token_envelope.rb +8 -16
  91. data/lib/artikcloud/models/device_type.rb +4 -16
  92. data/lib/artikcloud/models/device_type_array.rb +4 -16
  93. data/lib/artikcloud/models/device_type_envelope.rb +8 -16
  94. data/lib/artikcloud/models/device_type_info.rb +4 -16
  95. data/lib/artikcloud/models/device_type_info_envelope.rb +4 -16
  96. data/lib/artikcloud/models/device_types_envelope.rb +16 -16
  97. data/lib/artikcloud/models/device_types_info.rb +4 -16
  98. data/lib/artikcloud/models/device_types_info_envelope.rb +4 -16
  99. data/lib/artikcloud/models/devices_envelope.rb +16 -16
  100. data/lib/artikcloud/models/error_envelope.rb +4 -16
  101. data/lib/artikcloud/models/event_feed_data.rb +4 -16
  102. data/lib/artikcloud/models/export_data.rb +4 -16
  103. data/lib/artikcloud/models/export_data_array.rb +4 -16
  104. data/lib/artikcloud/models/export_history_response.rb +4 -16
  105. data/lib/artikcloud/models/export_normalized_messages_response.rb +4 -16
  106. data/lib/artikcloud/models/export_request.rb +4 -16
  107. data/lib/artikcloud/models/export_request_data.rb +4 -16
  108. data/lib/artikcloud/models/export_request_info.rb +4 -16
  109. data/lib/artikcloud/models/export_request_response.rb +4 -16
  110. data/lib/artikcloud/models/export_response.rb +4 -16
  111. data/lib/artikcloud/models/export_status_response.rb +4 -16
  112. data/lib/artikcloud/models/field_path.rb +4 -16
  113. data/lib/artikcloud/models/field_presence.rb +8 -16
  114. data/lib/artikcloud/models/field_presence_envelope.rb +32 -16
  115. data/lib/artikcloud/models/fields_actions.rb +4 -16
  116. data/lib/artikcloud/models/manifest_properties.rb +8 -16
  117. data/lib/artikcloud/models/manifest_properties_envelope.rb +8 -16
  118. data/lib/artikcloud/models/manifest_versions.rb +8 -16
  119. data/lib/artikcloud/models/manifest_versions_envelope.rb +8 -16
  120. data/lib/artikcloud/models/message.rb +4 -16
  121. data/lib/artikcloud/models/message_action.rb +4 -16
  122. data/lib/artikcloud/models/message_id.rb +4 -16
  123. data/lib/artikcloud/models/message_id_envelope.rb +4 -16
  124. data/lib/artikcloud/models/message_in.rb +4 -16
  125. data/lib/artikcloud/models/message_out.rb +4 -16
  126. data/lib/artikcloud/models/metadata_envelope.rb +4 -16
  127. data/lib/artikcloud/models/metadata_properties_envelope.rb +4 -16
  128. data/lib/artikcloud/models/metadata_query_envelope.rb +4 -16
  129. data/lib/artikcloud/models/non_empty_string.rb +4 -16
  130. data/lib/artikcloud/models/normalized_action.rb +36 -16
  131. data/lib/artikcloud/models/normalized_actions_envelope.rb +16 -16
  132. data/lib/artikcloud/models/normalized_message.rb +36 -16
  133. data/lib/artikcloud/models/normalized_messages_envelope.rb +16 -16
  134. data/lib/artikcloud/models/notif_message.rb +252 -0
  135. data/lib/artikcloud/models/notif_message_array.rb +189 -0
  136. data/lib/artikcloud/models/notif_messages_response.rb +223 -0
  137. data/lib/artikcloud/models/output_rule.rb +4 -16
  138. data/lib/artikcloud/models/presence_envelope.rb +4 -16
  139. data/lib/artikcloud/models/presence_model.rb +4 -16
  140. data/lib/artikcloud/models/properties_envelope.rb +8 -16
  141. data/lib/artikcloud/models/refresh_token_response.rb +4 -16
  142. data/lib/artikcloud/models/register_message.rb +4 -16
  143. data/lib/artikcloud/models/rule_array.rb +4 -16
  144. data/lib/artikcloud/models/rule_creation_info.rb +4 -16
  145. data/lib/artikcloud/models/rule_envelope.rb +4 -16
  146. data/lib/artikcloud/models/rule_error.rb +4 -16
  147. data/lib/artikcloud/models/rule_update_info.rb +4 -16
  148. data/lib/artikcloud/models/rule_warning_output.rb +4 -16
  149. data/lib/artikcloud/models/rules_envelope.rb +4 -16
  150. data/lib/artikcloud/models/snapshot_response.rb +4 -16
  151. data/lib/artikcloud/models/snapshot_responses.rb +4 -16
  152. data/lib/artikcloud/models/snapshots_response_envelope.rb +4 -16
  153. data/lib/artikcloud/models/subscription.rb +348 -0
  154. data/lib/artikcloud/models/subscription_array.rb +189 -0
  155. data/lib/artikcloud/models/subscription_envelope.rb +187 -0
  156. data/lib/artikcloud/models/subscription_info.rb +308 -0
  157. data/lib/artikcloud/models/subscriptions_envelope.rb +214 -0
  158. data/lib/artikcloud/models/tag.rb +4 -16
  159. data/lib/artikcloud/models/tag_array.rb +4 -16
  160. data/lib/artikcloud/models/tags_envelope.rb +4 -16
  161. data/lib/artikcloud/models/task.rb +4 -16
  162. data/lib/artikcloud/models/task_by_did.rb +4 -16
  163. data/lib/artikcloud/models/task_by_did_list.rb +4 -16
  164. data/lib/artikcloud/models/task_by_did_list_envelope.rb +4 -16
  165. data/lib/artikcloud/models/task_envelope.rb +4 -16
  166. data/lib/artikcloud/models/task_history.rb +4 -16
  167. data/lib/artikcloud/models/task_history_list.rb +4 -16
  168. data/lib/artikcloud/models/task_list.rb +4 -16
  169. data/lib/artikcloud/models/task_list_envelope.rb +4 -16
  170. data/lib/artikcloud/models/task_parameters.rb +25 -17
  171. data/lib/artikcloud/models/task_request.rb +4 -16
  172. data/lib/artikcloud/models/task_status.rb +4 -16
  173. data/lib/artikcloud/models/task_status_counts.rb +4 -16
  174. data/lib/artikcloud/models/task_statuses.rb +4 -16
  175. data/lib/artikcloud/models/task_statuses_envelope.rb +4 -16
  176. data/lib/artikcloud/models/task_statuses_history_envelope.rb +4 -16
  177. data/lib/artikcloud/models/task_update_request.rb +4 -16
  178. data/lib/artikcloud/models/task_update_response.rb +4 -16
  179. data/lib/artikcloud/models/tasks_status_counts.rb +4 -16
  180. data/lib/artikcloud/models/token.rb +4 -16
  181. data/lib/artikcloud/models/token_info.rb +4 -16
  182. data/lib/artikcloud/models/token_info_success_response.rb +4 -16
  183. data/lib/artikcloud/models/token_request.rb +4 -16
  184. data/lib/artikcloud/models/token_response.rb +4 -16
  185. data/lib/artikcloud/models/unregister_device_response.rb +4 -16
  186. data/lib/artikcloud/models/unregister_device_response_envelope.rb +4 -16
  187. data/lib/artikcloud/models/update_parameters.rb +188 -0
  188. data/lib/artikcloud/models/user.rb +28 -16
  189. data/lib/artikcloud/models/user_envelope.rb +8 -16
  190. data/lib/artikcloud/models/validation_callback_info.rb +198 -0
  191. data/lib/artikcloud/models/web_socket_error.rb +4 -16
  192. data/lib/artikcloud/version.rb +2 -14
  193. data/pom.xml +1 -1
  194. data/spec/api/devicesshares_api_spec.rb +87 -0
  195. data/spec/api/devicestatus_api_spec.rb +75 -0
  196. data/spec/api/subscriptions_api_spec.rb +112 -0
  197. metadata +58 -26
@@ -0,0 +1,190 @@
1
+ =begin
2
+ #ARTIK Cloud API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 2.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require "uri"
13
+
14
+ module ArtikCloud
15
+ class DevicestatusApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+
22
+ # Get Device Status
23
+ # Get Device Status
24
+ # @param device_id Device ID.
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [BOOLEAN] :include_snapshot Include device snapshot into the response
27
+ # @option opts [BOOLEAN] :include_snapshot_timestamp Include device snapshot timestamp into the response
28
+ # @return [DeviceStatus]
29
+ def get_device_status(device_id, opts = {})
30
+ data, _status_code, _headers = get_device_status_with_http_info(device_id, opts)
31
+ return data
32
+ end
33
+
34
+ # Get Device Status
35
+ # Get Device Status
36
+ # @param device_id Device ID.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [BOOLEAN] :include_snapshot Include device snapshot into the response
39
+ # @option opts [BOOLEAN] :include_snapshot_timestamp Include device snapshot timestamp into the response
40
+ # @return [Array<(DeviceStatus, Fixnum, Hash)>] DeviceStatus data, response status code and response headers
41
+ def get_device_status_with_http_info(device_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug "Calling API: DevicestatusApi.get_device_status ..."
44
+ end
45
+ # verify the required parameter 'device_id' is set
46
+ fail ArgumentError, "Missing the required parameter 'device_id' when calling DevicestatusApi.get_device_status" if device_id.nil?
47
+ # resource path
48
+ local_var_path = "/devices/{deviceId}/status".sub('{format}','json').sub('{' + 'deviceId' + '}', device_id.to_s)
49
+
50
+ # query parameters
51
+ query_params = {}
52
+ query_params[:'includeSnapshot'] = opts[:'include_snapshot'] if !opts[:'include_snapshot'].nil?
53
+ query_params[:'includeSnapshotTimestamp'] = opts[:'include_snapshot_timestamp'] if !opts[:'include_snapshot_timestamp'].nil?
54
+
55
+ # header parameters
56
+ header_params = {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+
60
+ # form parameters
61
+ form_params = {}
62
+
63
+ # http body (model)
64
+ post_body = nil
65
+ auth_names = ['artikcloud_oauth']
66
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => 'DeviceStatus')
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: DevicestatusApi#get_device_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # Get Devices Status
80
+ # Get Devices Status
81
+ # @param dids List of device ids (comma-separated) for which the statuses are requested.
82
+ # @param [Hash] opts the optional parameters
83
+ # @option opts [BOOLEAN] :include_snapshot Include device snapshot into the response
84
+ # @option opts [BOOLEAN] :include_snapshot_timestamp Include device snapshot timestamp into the response
85
+ # @return [DeviceStatusBatch]
86
+ def get_devices_status(dids, opts = {})
87
+ data, _status_code, _headers = get_devices_status_with_http_info(dids, opts)
88
+ return data
89
+ end
90
+
91
+ # Get Devices Status
92
+ # Get Devices Status
93
+ # @param dids List of device ids (comma-separated) for which the statuses are requested.
94
+ # @param [Hash] opts the optional parameters
95
+ # @option opts [BOOLEAN] :include_snapshot Include device snapshot into the response
96
+ # @option opts [BOOLEAN] :include_snapshot_timestamp Include device snapshot timestamp into the response
97
+ # @return [Array<(DeviceStatusBatch, Fixnum, Hash)>] DeviceStatusBatch data, response status code and response headers
98
+ def get_devices_status_with_http_info(dids, opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug "Calling API: DevicestatusApi.get_devices_status ..."
101
+ end
102
+ # verify the required parameter 'dids' is set
103
+ fail ArgumentError, "Missing the required parameter 'dids' when calling DevicestatusApi.get_devices_status" if dids.nil?
104
+ # resource path
105
+ local_var_path = "/devices/status".sub('{format}','json')
106
+
107
+ # query parameters
108
+ query_params = {}
109
+ query_params[:'dids'] = dids
110
+ query_params[:'includeSnapshot'] = opts[:'include_snapshot'] if !opts[:'include_snapshot'].nil?
111
+ query_params[:'includeSnapshotTimestamp'] = opts[:'include_snapshot_timestamp'] if !opts[:'include_snapshot_timestamp'].nil?
112
+
113
+ # header parameters
114
+ header_params = {}
115
+ # HTTP header 'Accept' (if needed)
116
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
+
118
+ # form parameters
119
+ form_params = {}
120
+
121
+ # http body (model)
122
+ post_body = nil
123
+ auth_names = ['artikcloud_oauth']
124
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
125
+ :header_params => header_params,
126
+ :query_params => query_params,
127
+ :form_params => form_params,
128
+ :body => post_body,
129
+ :auth_names => auth_names,
130
+ :return_type => 'DeviceStatusBatch')
131
+ if @api_client.config.debugging
132
+ @api_client.config.logger.debug "API called: DevicestatusApi#get_devices_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
+ end
134
+ return data, status_code, headers
135
+ end
136
+
137
+ # Update Device Status
138
+ # Update Device Status
139
+ # @param device_id Device ID.
140
+ # @param [Hash] opts the optional parameters
141
+ # @option opts [DeviceStatusPut] :body Body
142
+ # @return [DeviceStatus]
143
+ def put_device_status(device_id, opts = {})
144
+ data, _status_code, _headers = put_device_status_with_http_info(device_id, opts)
145
+ return data
146
+ end
147
+
148
+ # Update Device Status
149
+ # Update Device Status
150
+ # @param device_id Device ID.
151
+ # @param [Hash] opts the optional parameters
152
+ # @option opts [DeviceStatusPut] :body Body
153
+ # @return [Array<(DeviceStatus, Fixnum, Hash)>] DeviceStatus data, response status code and response headers
154
+ def put_device_status_with_http_info(device_id, opts = {})
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug "Calling API: DevicestatusApi.put_device_status ..."
157
+ end
158
+ # verify the required parameter 'device_id' is set
159
+ fail ArgumentError, "Missing the required parameter 'device_id' when calling DevicestatusApi.put_device_status" if device_id.nil?
160
+ # resource path
161
+ local_var_path = "/devices/{deviceId}/status".sub('{format}','json').sub('{' + 'deviceId' + '}', device_id.to_s)
162
+
163
+ # query parameters
164
+ query_params = {}
165
+
166
+ # header parameters
167
+ header_params = {}
168
+ # HTTP header 'Accept' (if needed)
169
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
170
+
171
+ # form parameters
172
+ form_params = {}
173
+
174
+ # http body (model)
175
+ post_body = @api_client.object_to_http_body(opts[:'body'])
176
+ auth_names = ['artikcloud_oauth']
177
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
178
+ :header_params => header_params,
179
+ :query_params => query_params,
180
+ :form_params => form_params,
181
+ :body => post_body,
182
+ :auth_names => auth_names,
183
+ :return_type => 'DeviceStatus')
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug "API called: DevicestatusApi#put_device_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
186
+ end
187
+ return data, status_code, headers
188
+ end
189
+ end
190
+ end
@@ -1,24 +1,12 @@
1
1
  =begin
2
2
  #ARTIK Cloud API
3
3
 
4
- #No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
6
  OpenAPI spec version: 2.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
15
-
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.
21
-
22
10
  =end
23
11
 
24
12
  require "uri"
@@ -60,14 +48,8 @@ module ArtikCloud
60
48
 
61
49
  # header parameters
62
50
  header_params = {}
63
-
64
51
  # HTTP header 'Accept' (if needed)
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
67
-
68
- # HTTP header 'Content-Type'
69
- local_header_content_type = []
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
71
53
 
72
54
  # form parameters
73
55
  form_params = {}
@@ -122,14 +104,8 @@ module ArtikCloud
122
104
 
123
105
  # header parameters
124
106
  header_params = {}
125
-
126
107
  # HTTP header 'Accept' (if needed)
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
129
-
130
- # HTTP header 'Content-Type'
131
- local_header_content_type = []
132
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
133
109
 
134
110
  # form parameters
135
111
  form_params = {}
@@ -179,14 +155,8 @@ module ArtikCloud
179
155
 
180
156
  # header parameters
181
157
  header_params = {}
182
-
183
158
  # HTTP header 'Accept' (if needed)
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
-
187
- # HTTP header 'Content-Type'
188
- local_header_content_type = []
189
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
159
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
190
160
 
191
161
  # form parameters
192
162
  form_params = {}
@@ -236,14 +206,8 @@ module ArtikCloud
236
206
 
237
207
  # header parameters
238
208
  header_params = {}
239
-
240
209
  # HTTP header 'Accept' (if needed)
241
- local_header_accept = ['application/json']
242
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
243
-
244
- # HTTP header 'Content-Type'
245
- local_header_content_type = []
246
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
210
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
247
211
 
248
212
  # form parameters
249
213
  form_params = {}
@@ -1,24 +1,12 @@
1
1
  =begin
2
2
  #ARTIK Cloud API
3
3
 
4
- #No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
6
  OpenAPI spec version: 2.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
15
-
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.
21
-
22
10
  =end
23
11
 
24
12
  require "uri"
@@ -75,14 +63,8 @@ module ArtikCloud
75
63
 
76
64
  # header parameters
77
65
  header_params = {}
78
-
79
66
  # HTTP header 'Accept' (if needed)
80
- local_header_accept = ['application/json']
81
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
82
-
83
- # HTTP header 'Content-Type'
84
- local_header_content_type = []
85
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
67
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
86
68
 
87
69
  # form parameters
88
70
  form_params = {}
@@ -149,14 +131,8 @@ module ArtikCloud
149
131
 
150
132
  # header parameters
151
133
  header_params = {}
152
-
153
134
  # HTTP header 'Accept' (if needed)
154
- local_header_accept = ['application/json']
155
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
156
-
157
- # HTTP header 'Content-Type'
158
- local_header_content_type = []
159
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
135
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
160
136
 
161
137
  # form parameters
162
138
  form_params = {}
@@ -211,14 +187,8 @@ module ArtikCloud
211
187
 
212
188
  # header parameters
213
189
  header_params = {}
214
-
215
190
  # HTTP header 'Accept' (if needed)
216
- local_header_accept = ['application/json']
217
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
218
-
219
- # HTTP header 'Content-Type'
220
- local_header_content_type = []
221
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
191
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
222
192
 
223
193
  # form parameters
224
194
  form_params = {}
@@ -284,14 +254,8 @@ module ArtikCloud
284
254
 
285
255
  # header parameters
286
256
  header_params = {}
287
-
288
257
  # HTTP header 'Accept' (if needed)
289
- local_header_accept = ['application/json']
290
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
291
-
292
- # HTTP header 'Content-Type'
293
- local_header_content_type = []
294
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
258
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
295
259
 
296
260
  # form parameters
297
261
  form_params = {}
@@ -345,14 +309,8 @@ module ArtikCloud
345
309
 
346
310
  # header parameters
347
311
  header_params = {}
348
-
349
312
  # HTTP header 'Accept' (if needed)
350
- local_header_accept = ['application/json']
351
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
352
-
353
- # HTTP header 'Content-Type'
354
- local_header_content_type = []
355
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
313
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
356
314
 
357
315
  # form parameters
358
316
  form_params = {}
@@ -422,14 +380,8 @@ module ArtikCloud
422
380
 
423
381
  # header parameters
424
382
  header_params = {}
425
-
426
383
  # HTTP header 'Accept' (if needed)
427
- local_header_accept = ['application/json']
428
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
429
-
430
- # HTTP header 'Content-Type'
431
- local_header_content_type = []
432
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
433
385
 
434
386
  # form parameters
435
387
  form_params = {}
@@ -505,14 +457,8 @@ module ArtikCloud
505
457
 
506
458
  # header parameters
507
459
  header_params = {}
508
-
509
460
  # HTTP header 'Accept' (if needed)
510
- local_header_accept = ['application/json']
511
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
512
-
513
- # HTTP header 'Content-Type'
514
- local_header_content_type = []
515
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
461
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
516
462
 
517
463
  # form parameters
518
464
  form_params = {}
@@ -562,14 +508,8 @@ module ArtikCloud
562
508
 
563
509
  # header parameters
564
510
  header_params = {}
565
-
566
511
  # HTTP header 'Accept' (if needed)
567
- local_header_accept = ['application/json']
568
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
569
-
570
- # HTTP header 'Content-Type'
571
- local_header_content_type = []
572
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
512
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
573
513
 
574
514
  # form parameters
575
515
  form_params = {}
@@ -619,14 +559,8 @@ module ArtikCloud
619
559
 
620
560
  # header parameters
621
561
  header_params = {}
622
-
623
562
  # HTTP header 'Accept' (if needed)
624
- local_header_accept = ['application/json']
625
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
626
-
627
- # HTTP header 'Content-Type'
628
- local_header_content_type = []
629
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
563
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
630
564
 
631
565
  # form parameters
632
566
  form_params = {}
@@ -1,24 +1,12 @@
1
1
  =begin
2
2
  #ARTIK Cloud API
3
3
 
4
- #No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
6
  OpenAPI spec version: 2.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
15
-
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.
21
-
22
10
  =end
23
11
 
24
12
  require "uri"
@@ -60,14 +48,8 @@ module ArtikCloud
60
48
 
61
49
  # header parameters
62
50
  header_params = {}
63
-
64
51
  # HTTP header 'Accept' (if needed)
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
67
-
68
- # HTTP header 'Content-Type'
69
- local_header_content_type = []
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
71
53
 
72
54
  # form parameters
73
55
  form_params = {}
@@ -117,14 +99,8 @@ module ArtikCloud
117
99
 
118
100
  # header parameters
119
101
  header_params = {}
120
-
121
102
  # HTTP header 'Accept' (if needed)
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
124
-
125
- # HTTP header 'Content-Type'
126
- local_header_content_type = []
127
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
103
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128
104
 
129
105
  # form parameters
130
106
  form_params = {}
@@ -174,14 +150,8 @@ module ArtikCloud
174
150
 
175
151
  # header parameters
176
152
  header_params = {}
177
-
178
153
  # HTTP header 'Accept' (if needed)
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
181
-
182
- # HTTP header 'Content-Type'
183
- local_header_content_type = []
184
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
154
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
185
155
 
186
156
  # form parameters
187
157
  form_params = {}