artikcloud 2.0.0 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -12
- data/README.md +33 -10
- data/artikcloud.gemspec +5 -6
- data/docs/Action.md +9 -0
- data/docs/ActionArray.md +8 -0
- data/docs/Actions.md +12 -0
- data/docs/DeviceTypesApi.md +10 -10
- data/docs/DevicesApi.md +68 -15
- data/docs/ExportApi.md +10 -10
- data/docs/Message.md +11 -0
- data/docs/MessagesApi.md +205 -27
- data/docs/NormalizedAction.md +16 -0
- data/docs/NormalizedActionsEnvelope.md +17 -0
- data/docs/PresenceEnvelope.md +9 -0
- data/docs/PresenceModel.md +9 -0
- data/docs/RegistrationsApi.md +6 -6
- data/docs/RulesApi.md +8 -8
- data/docs/RulesEnvelope.md +1 -1
- data/docs/SnapshotResponse.md +9 -0
- data/docs/SnapshotResponses.md +10 -0
- data/docs/SnapshotsResponseEnvelope.md +9 -0
- data/docs/TagsApi.md +7 -7
- data/docs/TokenInfo.md +11 -0
- data/docs/TokenInfoSuccessResponse.md +8 -0
- data/docs/TokensApi.md +54 -7
- data/docs/UsersApi.md +18 -20
- data/git_push.sh +16 -1
- data/lib/artikcloud/api/device_types_api.rb +52 -59
- data/lib/artikcloud/api/devices_api.rb +120 -76
- data/lib/artikcloud/api/export_api.rb +43 -45
- data/lib/artikcloud/api/messages_api.rb +285 -103
- data/lib/artikcloud/api/registrations_api.rb +34 -34
- data/lib/artikcloud/api/rules_api.rb +43 -48
- data/lib/artikcloud/api/tags_api.rb +37 -35
- data/lib/artikcloud/api/tokens_api.rb +85 -30
- data/lib/artikcloud/api/users_api.rb +83 -102
- data/lib/artikcloud/api_client.rb +56 -13
- data/lib/artikcloud/api_error.rb +13 -4
- data/lib/artikcloud/configuration.rb +45 -1
- data/lib/artikcloud/models/ack_envelope.rb +59 -24
- data/lib/artikcloud/models/acknowledgement.rb +65 -33
- data/lib/artikcloud/models/action.rb +212 -0
- data/lib/artikcloud/models/action_array.rb +201 -0
- data/lib/artikcloud/models/action_details.rb +61 -27
- data/lib/artikcloud/models/action_details_array.rb +59 -24
- data/lib/artikcloud/models/action_in.rb +69 -39
- data/lib/artikcloud/models/action_out.rb +67 -36
- data/lib/artikcloud/models/actions.rb +241 -0
- data/lib/artikcloud/models/aggregate_data.rb +69 -39
- data/lib/artikcloud/models/aggregates_histogram_data.rb +71 -42
- data/lib/artikcloud/models/aggregates_histogram_response.rb +71 -42
- data/lib/artikcloud/models/aggregates_response.rb +69 -39
- data/lib/artikcloud/models/app_properties.rb +64 -30
- data/lib/artikcloud/models/check_token_message.rb +59 -24
- data/lib/artikcloud/models/check_token_response.rb +59 -24
- data/lib/artikcloud/models/device.rb +85 -63
- data/lib/artikcloud/models/device_array.rb +59 -24
- data/lib/artikcloud/models/device_envelope.rb +60 -24
- data/lib/artikcloud/models/device_reg_complete_request.rb +59 -24
- data/lib/artikcloud/models/device_reg_confirm_user_request.rb +63 -30
- data/lib/artikcloud/models/device_reg_confirm_user_response.rb +59 -24
- data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +59 -24
- data/lib/artikcloud/models/device_reg_status_response.rb +61 -27
- data/lib/artikcloud/models/device_reg_status_response_envelope.rb +59 -24
- data/lib/artikcloud/models/device_token.rb +69 -33
- data/lib/artikcloud/models/device_token_envelope.rb +60 -24
- data/lib/artikcloud/models/device_type.rb +93 -75
- data/lib/artikcloud/models/device_type_array.rb +59 -24
- data/lib/artikcloud/models/device_type_envelope.rb +60 -24
- data/lib/artikcloud/models/device_types_envelope.rb +68 -33
- data/lib/artikcloud/models/devices_envelope.rb +68 -33
- data/lib/artikcloud/models/error_envelope.rb +59 -24
- data/lib/artikcloud/models/export_data.rb +71 -42
- data/lib/artikcloud/models/export_data_array.rb +59 -24
- data/lib/artikcloud/models/export_history_response.rb +65 -33
- data/lib/artikcloud/models/export_normalized_messages_response.rb +83 -60
- data/lib/artikcloud/models/export_request.rb +73 -45
- data/lib/artikcloud/models/export_request_data.rb +79 -54
- data/lib/artikcloud/models/export_request_info.rb +77 -51
- data/lib/artikcloud/models/export_request_response.rb +59 -24
- data/lib/artikcloud/models/export_response.rb +79 -54
- data/lib/artikcloud/models/export_status_response.rb +67 -36
- data/lib/artikcloud/models/field_path.rb +59 -24
- data/lib/artikcloud/models/field_presence.rb +60 -24
- data/lib/artikcloud/models/field_presence_envelope.rb +78 -42
- data/lib/artikcloud/models/fields_actions.rb +61 -27
- data/lib/artikcloud/models/manifest_properties.rb +60 -24
- data/lib/artikcloud/models/manifest_properties_envelope.rb +60 -24
- data/lib/artikcloud/models/manifest_versions.rb +60 -24
- data/lib/artikcloud/models/manifest_versions_envelope.rb +60 -24
- data/lib/artikcloud/models/message.rb +233 -0
- data/lib/artikcloud/models/message_action.rb +67 -36
- data/lib/artikcloud/models/message_id.rb +59 -24
- data/lib/artikcloud/models/message_id_envelope.rb +59 -24
- data/lib/artikcloud/models/message_in.rb +69 -39
- data/lib/artikcloud/models/message_out.rb +67 -36
- data/lib/artikcloud/models/non_empty_string.rb +59 -24
- data/lib/artikcloud/models/normalized_action.rb +279 -0
- data/lib/artikcloud/models/normalized_actions_envelope.rb +285 -0
- data/lib/artikcloud/models/normalized_message.rb +81 -45
- data/lib/artikcloud/models/normalized_messages_envelope.rb +80 -51
- data/lib/artikcloud/models/output_rule.rb +85 -63
- data/lib/artikcloud/models/presence_envelope.rb +208 -0
- data/lib/artikcloud/models/presence_model.rb +208 -0
- data/lib/artikcloud/models/properties_envelope.rb +60 -24
- data/lib/artikcloud/models/refresh_token_response.rb +65 -33
- data/lib/artikcloud/models/register_message.rb +67 -36
- data/lib/artikcloud/models/rule_array.rb +59 -24
- data/lib/artikcloud/models/rule_creation_info.rb +65 -33
- data/lib/artikcloud/models/rule_envelope.rb +59 -24
- data/lib/artikcloud/models/rule_error.rb +65 -33
- data/lib/artikcloud/models/rule_update_info.rb +65 -33
- data/lib/artikcloud/models/rule_warning_output.rb +61 -27
- data/lib/artikcloud/models/rules_envelope.rb +69 -35
- data/lib/artikcloud/models/snapshot_response.rb +210 -0
- data/lib/artikcloud/models/snapshot_responses.rb +219 -0
- data/lib/artikcloud/models/snapshots_response_envelope.rb +208 -0
- data/lib/artikcloud/models/tag.rb +61 -27
- data/lib/artikcloud/models/tag_array.rb +59 -24
- data/lib/artikcloud/models/tags_envelope.rb +59 -24
- data/lib/artikcloud/models/token.rb +65 -33
- data/lib/artikcloud/models/token_info.rb +226 -0
- data/lib/artikcloud/models/token_info_success_response.rb +199 -0
- data/lib/artikcloud/models/token_request.rb +59 -24
- data/lib/artikcloud/models/token_response.rb +59 -24
- data/lib/artikcloud/models/unregister_device_response.rb +79 -54
- data/lib/artikcloud/models/unregister_device_response_envelope.rb +59 -24
- data/lib/artikcloud/models/user.rb +77 -42
- data/lib/artikcloud/models/user_envelope.rb +60 -24
- data/lib/artikcloud/models/web_socket_error.rb +63 -30
- data/lib/artikcloud/version.rb +14 -5
- data/lib/artikcloud.rb +26 -4
- data/spec/api/device_types_api_spec.rb +110 -0
- data/spec/api/devices_api_spec.rb +143 -0
- data/spec/api/export_api_spec.rb +96 -0
- data/spec/api/messages_api_spec.rb +7 -7
- data/spec/api/registrations_api_spec.rb +82 -0
- data/spec/api/rules_api_spec.rb +96 -0
- data/spec/api/tags_api_spec.rb +84 -0
- data/spec/api/tokens_api_spec.rb +12 -21
- data/spec/api/users_api_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +60 -22
@@ -1,14 +1,23 @@
|
|
1
1
|
=begin
|
2
|
-
ARTIK Cloud API
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
3
5
|
|
4
6
|
OpenAPI spec version: 2.0.0
|
5
7
|
|
6
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
9
|
|
8
|
-
License
|
9
|
-
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
15
|
|
11
|
-
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
12
21
|
|
13
22
|
=end
|
14
23
|
|
@@ -26,16 +35,13 @@ module ArtikCloud
|
|
26
35
|
# Confirmation ID
|
27
36
|
attr_accessor :cid
|
28
37
|
|
38
|
+
|
29
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
40
|
def self.attribute_map
|
31
41
|
{
|
32
|
-
|
33
42
|
:'message' => :'message',
|
34
|
-
|
35
43
|
:'code' => :'code',
|
36
|
-
|
37
44
|
:'cid' => :'cid'
|
38
|
-
|
39
45
|
}
|
40
46
|
end
|
41
47
|
|
@@ -45,32 +51,46 @@ module ArtikCloud
|
|
45
51
|
:'message' => :'String',
|
46
52
|
:'code' => :'Integer',
|
47
53
|
:'cid' => :'String'
|
48
|
-
|
49
54
|
}
|
50
55
|
end
|
51
56
|
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
59
|
def initialize(attributes = {})
|
53
60
|
return unless attributes.is_a?(Hash)
|
54
61
|
|
55
62
|
# convert string to symbol for hash key
|
56
|
-
attributes = attributes.
|
63
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
57
64
|
|
58
|
-
|
59
|
-
if attributes[:'message']
|
65
|
+
if attributes.has_key?(:'message')
|
60
66
|
self.message = attributes[:'message']
|
61
67
|
end
|
62
|
-
|
63
|
-
if attributes
|
68
|
+
|
69
|
+
if attributes.has_key?(:'code')
|
64
70
|
self.code = attributes[:'code']
|
65
71
|
end
|
66
|
-
|
67
|
-
if attributes
|
72
|
+
|
73
|
+
if attributes.has_key?(:'cid')
|
68
74
|
self.cid = attributes[:'cid']
|
69
75
|
end
|
70
|
-
|
76
|
+
|
71
77
|
end
|
72
78
|
|
73
|
-
#
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
+
# @return Array for valid properies with the reasons
|
81
|
+
def list_invalid_properties
|
82
|
+
invalid_properties = Array.new
|
83
|
+
return invalid_properties
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
def valid?
|
89
|
+
return true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
74
94
|
def ==(o)
|
75
95
|
return true if self.equal?(o)
|
76
96
|
self.class == o.class &&
|
@@ -80,35 +100,41 @@ module ArtikCloud
|
|
80
100
|
end
|
81
101
|
|
82
102
|
# @see the `==` method
|
103
|
+
# @param [Object] Object to be compared
|
83
104
|
def eql?(o)
|
84
105
|
self == o
|
85
106
|
end
|
86
107
|
|
87
|
-
#
|
108
|
+
# Calculates hash code according to all attributes.
|
109
|
+
# @return [Fixnum] Hash code
|
88
110
|
def hash
|
89
111
|
[message, code, cid].hash
|
90
112
|
end
|
91
113
|
|
92
|
-
#
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
93
117
|
def build_from_hash(attributes)
|
94
118
|
return nil unless attributes.is_a?(Hash)
|
95
119
|
self.class.swagger_types.each_pair do |key, type|
|
96
120
|
if type =~ /^Array<(.*)>/i
|
121
|
+
# check to ensure the input is an array given that the the attribute
|
122
|
+
# is documented as an array but the input is not
|
97
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
124
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
99
|
-
else
|
100
|
-
#TODO show warning in debug mode
|
101
125
|
end
|
102
126
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
127
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
104
|
-
else
|
105
|
-
# data not found in attributes(hash), not an issue as the data can be optional
|
106
|
-
end
|
128
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
107
129
|
end
|
108
130
|
|
109
131
|
self
|
110
132
|
end
|
111
133
|
|
134
|
+
# Deserializes the data based on type
|
135
|
+
# @param string type Data type
|
136
|
+
# @param string value Value to be deserialized
|
137
|
+
# @return [Object] Deserialized data
|
112
138
|
def _deserialize(type, value)
|
113
139
|
case type.to_sym
|
114
140
|
when :DateTime
|
@@ -142,21 +168,25 @@ module ArtikCloud
|
|
142
168
|
end
|
143
169
|
end
|
144
170
|
else # model
|
145
|
-
|
146
|
-
|
171
|
+
temp_model = ArtikCloud.const_get(type).new
|
172
|
+
temp_model.build_from_hash(value)
|
147
173
|
end
|
148
174
|
end
|
149
175
|
|
176
|
+
# Returns the string representation of the object
|
177
|
+
# @return [String] String presentation of the object
|
150
178
|
def to_s
|
151
179
|
to_hash.to_s
|
152
180
|
end
|
153
181
|
|
154
|
-
# to_body is an alias to
|
182
|
+
# to_body is an alias to to_hash (backward compatibility)
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
155
184
|
def to_body
|
156
185
|
to_hash
|
157
186
|
end
|
158
187
|
|
159
|
-
#
|
188
|
+
# Returns the object in the form of hash
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
160
190
|
def to_hash
|
161
191
|
hash = {}
|
162
192
|
self.class.attribute_map.each_pair do |attr, param|
|
@@ -167,8 +197,10 @@ module ArtikCloud
|
|
167
197
|
hash
|
168
198
|
end
|
169
199
|
|
170
|
-
#
|
200
|
+
# Outputs non-array value in the form of hash
|
171
201
|
# For object, use to_hash. Otherwise, just return the value
|
202
|
+
# @param [Object] value Any valid value
|
203
|
+
# @return [Hash] Returns the value in the form of hash
|
172
204
|
def _to_hash(value)
|
173
205
|
if value.is_a?(Array)
|
174
206
|
value.compact.map{ |v| _to_hash(v) }
|
@@ -184,4 +216,5 @@ module ArtikCloud
|
|
184
216
|
end
|
185
217
|
|
186
218
|
end
|
219
|
+
|
187
220
|
end
|
data/lib/artikcloud/version.rb
CHANGED
@@ -1,17 +1,26 @@
|
|
1
1
|
=begin
|
2
|
-
ARTIK Cloud API
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
3
5
|
|
4
6
|
OpenAPI spec version: 2.0.0
|
5
7
|
|
6
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
9
|
|
8
|
-
License
|
9
|
-
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
15
|
|
11
|
-
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
12
21
|
|
13
22
|
=end
|
14
23
|
|
15
24
|
module ArtikCloud
|
16
|
-
VERSION = "2.0.
|
25
|
+
VERSION = "2.0.5"
|
17
26
|
end
|
data/lib/artikcloud.rb
CHANGED
@@ -1,14 +1,23 @@
|
|
1
1
|
=begin
|
2
|
-
ARTIK Cloud API
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
3
5
|
|
4
6
|
OpenAPI spec version: 2.0.0
|
5
7
|
|
6
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
9
|
|
8
|
-
License
|
9
|
-
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
15
|
|
11
|
-
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
12
21
|
|
13
22
|
=end
|
14
23
|
|
@@ -21,10 +30,13 @@ require 'artikcloud/configuration'
|
|
21
30
|
# Models
|
22
31
|
require 'artikcloud/models/ack_envelope'
|
23
32
|
require 'artikcloud/models/acknowledgement'
|
33
|
+
require 'artikcloud/models/action'
|
34
|
+
require 'artikcloud/models/action_array'
|
24
35
|
require 'artikcloud/models/action_details'
|
25
36
|
require 'artikcloud/models/action_details_array'
|
26
37
|
require 'artikcloud/models/action_in'
|
27
38
|
require 'artikcloud/models/action_out'
|
39
|
+
require 'artikcloud/models/actions'
|
28
40
|
require 'artikcloud/models/aggregate_data'
|
29
41
|
require 'artikcloud/models/aggregates_histogram_data'
|
30
42
|
require 'artikcloud/models/aggregates_histogram_response'
|
@@ -67,15 +79,20 @@ require 'artikcloud/models/manifest_properties'
|
|
67
79
|
require 'artikcloud/models/manifest_properties_envelope'
|
68
80
|
require 'artikcloud/models/manifest_versions'
|
69
81
|
require 'artikcloud/models/manifest_versions_envelope'
|
82
|
+
require 'artikcloud/models/message'
|
70
83
|
require 'artikcloud/models/message_action'
|
71
84
|
require 'artikcloud/models/message_id'
|
72
85
|
require 'artikcloud/models/message_id_envelope'
|
73
86
|
require 'artikcloud/models/message_in'
|
74
87
|
require 'artikcloud/models/message_out'
|
75
88
|
require 'artikcloud/models/non_empty_string'
|
89
|
+
require 'artikcloud/models/normalized_action'
|
90
|
+
require 'artikcloud/models/normalized_actions_envelope'
|
76
91
|
require 'artikcloud/models/normalized_message'
|
77
92
|
require 'artikcloud/models/normalized_messages_envelope'
|
78
93
|
require 'artikcloud/models/output_rule'
|
94
|
+
require 'artikcloud/models/presence_envelope'
|
95
|
+
require 'artikcloud/models/presence_model'
|
79
96
|
require 'artikcloud/models/properties_envelope'
|
80
97
|
require 'artikcloud/models/refresh_token_response'
|
81
98
|
require 'artikcloud/models/register_message'
|
@@ -86,10 +103,15 @@ require 'artikcloud/models/rule_error'
|
|
86
103
|
require 'artikcloud/models/rule_update_info'
|
87
104
|
require 'artikcloud/models/rule_warning_output'
|
88
105
|
require 'artikcloud/models/rules_envelope'
|
106
|
+
require 'artikcloud/models/snapshot_response'
|
107
|
+
require 'artikcloud/models/snapshot_responses'
|
108
|
+
require 'artikcloud/models/snapshots_response_envelope'
|
89
109
|
require 'artikcloud/models/tag'
|
90
110
|
require 'artikcloud/models/tag_array'
|
91
111
|
require 'artikcloud/models/tags_envelope'
|
92
112
|
require 'artikcloud/models/token'
|
113
|
+
require 'artikcloud/models/token_info'
|
114
|
+
require 'artikcloud/models/token_info_success_response'
|
93
115
|
require 'artikcloud/models/token_request'
|
94
116
|
require 'artikcloud/models/token_response'
|
95
117
|
require 'artikcloud/models/unregister_device_response'
|
@@ -0,0 +1,110 @@
|
|
1
|
+
=begin
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No descripton 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
|
+
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
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for ArtikCloud::DeviceTypesApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'DeviceTypesApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = ArtikCloud::DeviceTypesApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of DeviceTypesApi' do
|
41
|
+
it 'should create an instact of DeviceTypesApi' do
|
42
|
+
# expect(@instance).to be_instance_of(ArtikCloud::DeviceTypesApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for get_available_manifest_versions
|
47
|
+
# Get Available Manifest Versions
|
48
|
+
# Get a Device Type's available manifest versions
|
49
|
+
# @param device_type_id deviceTypeId
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [ManifestVersionsEnvelope]
|
52
|
+
describe 'get_available_manifest_versions test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for get_device_type
|
59
|
+
# Get Device Type
|
60
|
+
# Retrieves a Device Type
|
61
|
+
# @param device_type_id deviceTypeId
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @return [DeviceTypeEnvelope]
|
64
|
+
describe 'get_device_type test' do
|
65
|
+
it "should work" do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for get_device_types
|
71
|
+
# Get Device Types
|
72
|
+
# Retrieves Device Types
|
73
|
+
# @param name Device Type name
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [Integer] :offset Offset for pagination.
|
76
|
+
# @option opts [Integer] :count Desired count of items in the result set
|
77
|
+
# @option opts [String] :tags Elements tagged with the list of tags. (comma separated)
|
78
|
+
# @return [DeviceTypesEnvelope]
|
79
|
+
describe 'get_device_types test' do
|
80
|
+
it "should work" do
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# unit tests for get_latest_manifest_properties
|
86
|
+
# Get Latest Manifest Properties
|
87
|
+
# Get a Device Type's manifest properties for the latest version.
|
88
|
+
# @param device_type_id Device Type ID.
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [ManifestPropertiesEnvelope]
|
91
|
+
describe 'get_latest_manifest_properties test' do
|
92
|
+
it "should work" do
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# unit tests for get_manifest_properties
|
98
|
+
# Get manifest properties
|
99
|
+
# Get a Device Type's manifest properties for a specific version.
|
100
|
+
# @param device_type_id Device Type ID.
|
101
|
+
# @param version Manifest Version.
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [ManifestPropertiesEnvelope]
|
104
|
+
describe 'get_manifest_properties test' do
|
105
|
+
it "should work" do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
end
|
@@ -0,0 +1,143 @@
|
|
1
|
+
=begin
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No descripton 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
|
+
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
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for ArtikCloud::DevicesApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'DevicesApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = ArtikCloud::DevicesApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of DevicesApi' do
|
41
|
+
it 'should create an instact of DevicesApi' do
|
42
|
+
# expect(@instance).to be_instance_of(ArtikCloud::DevicesApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for add_device
|
47
|
+
# Add Device
|
48
|
+
# Create a device
|
49
|
+
# @param device Device to be added to the user
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [DeviceEnvelope]
|
52
|
+
describe 'add_device test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for delete_device
|
59
|
+
# Delete Device
|
60
|
+
# Deletes a device
|
61
|
+
# @param device_id deviceId
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @return [DeviceEnvelope]
|
64
|
+
describe 'delete_device test' do
|
65
|
+
it "should work" do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for delete_device_token
|
71
|
+
# Delete Device Token
|
72
|
+
# Deletes a device's token
|
73
|
+
# @param device_id deviceId
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [DeviceTokenEnvelope]
|
76
|
+
describe 'delete_device_token test' do
|
77
|
+
it "should work" do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for get_device
|
83
|
+
# Get Device
|
84
|
+
# Retrieves a device
|
85
|
+
# @param device_id deviceId
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @return [DeviceEnvelope]
|
88
|
+
describe 'get_device test' do
|
89
|
+
it "should work" do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# unit tests for get_device_presence
|
95
|
+
# Get device presence information
|
96
|
+
# Return the presence status of the given device along with the time it was last seen
|
97
|
+
# @param device_id Device ID.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [PresenceEnvelope]
|
100
|
+
describe 'get_device_presence test' do
|
101
|
+
it "should work" do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# unit tests for get_device_token
|
107
|
+
# Get Device Token
|
108
|
+
# Retrieves a device's token
|
109
|
+
# @param device_id deviceId
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [DeviceTokenEnvelope]
|
112
|
+
describe 'get_device_token test' do
|
113
|
+
it "should work" do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# unit tests for update_device
|
119
|
+
# Update Device
|
120
|
+
# Updates a device
|
121
|
+
# @param device_id deviceId
|
122
|
+
# @param device Device to be updated
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @return [DeviceEnvelope]
|
125
|
+
describe 'update_device test' do
|
126
|
+
it "should work" do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# unit tests for update_device_token
|
132
|
+
# Update Device Token
|
133
|
+
# Updates a device's token
|
134
|
+
# @param device_id deviceId
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @return [DeviceTokenEnvelope]
|
137
|
+
describe 'update_device_token test' do
|
138
|
+
it "should work" do
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
=begin
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No descripton 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
|
+
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
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for ArtikCloud::ExportApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'ExportApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = ArtikCloud::ExportApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of ExportApi' do
|
41
|
+
it 'should create an instact of ExportApi' do
|
42
|
+
# expect(@instance).to be_instance_of(ArtikCloud::ExportApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for export_request
|
47
|
+
# Create Export Request
|
48
|
+
# Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td><td>Search by a list of User IDs. For each user in the list, the current authenticated user must have read access over the specified user.</td></tr><tr><td>Get by devices</td><td>sdids</td><td>Search by Source Device IDs.</td></tr><tr><td>Get by device types</td><td>uids,sdtids</td><td>Search by list of Source Device Type IDs for the given list of users.</td></tr><tr><td>Get by trial</td><td>trialId</td><td>Search by Trial ID.</td></tr><tr><td>Get by combination of parameters</td><td>uids,sdids,sdtids</td><td>Search by list of Source Device IDs. Each Device ID must belong to a Source Device Type ID and a User ID.</td></tr><tr><td>Common</td><td>startDate,endDate,order,format,url,csvHeaders</td><td>Parameters that can be used with the above combinations.</td></tr></table>
|
49
|
+
# @param export_request_info ExportRequest object that is passed in the body
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [ExportRequestResponse]
|
52
|
+
describe 'export_request test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for get_export_history
|
59
|
+
# Get Export History
|
60
|
+
# Get the history of export requests.
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @option opts [String] :trial_id Filter by trialId.
|
63
|
+
# @option opts [Integer] :count Pagination count.
|
64
|
+
# @option opts [Integer] :offset Pagination offset.
|
65
|
+
# @return [ExportHistoryResponse]
|
66
|
+
describe 'get_export_history test' do
|
67
|
+
it "should work" do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for get_export_result
|
73
|
+
# Get Export Result
|
74
|
+
# Retrieve result of the export query in tgz format. The tar file may contain one or more files with the results.
|
75
|
+
# @param export_id Export ID of the export query.
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [String]
|
78
|
+
describe 'get_export_result test' do
|
79
|
+
it "should work" do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# unit tests for get_export_status
|
85
|
+
# Check Export Status
|
86
|
+
# Check status of the export query.
|
87
|
+
# @param export_id Export ID of the export query.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [ExportStatusResponse]
|
90
|
+
describe 'get_export_status test' do
|
91
|
+
it "should work" do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|