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
@@ -22,7 +22,7 @@ describe 'MessagesApi' do
22
22
  before do
23
23
  # run before each test
24
24
  configuration = ArtikCloud::Configuration.new
25
- configuration.access_token = '1eef3e3251e147d1ac707a57f6779c49'
25
+ configuration.access_token = 'dc43d12e2b59495daf94631e6ddfe3e8'
26
26
  api_client = ArtikCloud::ApiClient.new(configuration)
27
27
  @instance = ArtikCloud::MessagesApi.new(api_client)
28
28
  end
@@ -45,15 +45,15 @@ describe 'MessagesApi' do
45
45
  # @return [MessageIDEnvelope]
46
46
  describe 'send_message_action test' do
47
47
  it "should work" do
48
- message = ArtikCloud::MessageAction.new
48
+ message = ArtikCloud::Message.new
49
49
  message.type = "message"
50
- message.sdid = "993925c3cd994bf7a51c620884be65e9"
50
+ message.sdid = "19da42ee01414722a6ad1224097c38d4"
51
51
  message.ts = Time.now.to_f*1000
52
52
  message.data = {
53
- :'volume' => 5
53
+ :'steps' => 500
54
54
  }
55
55
 
56
- result = @instance.send_message_action(message)
56
+ result = @instance.send_message(message)
57
57
  result.should be_a(ArtikCloud::MessageIDEnvelope)
58
58
  message_id = result.data.mid
59
59
 
@@ -70,9 +70,9 @@ describe 'MessagesApi' do
70
70
  normalized = normalized_messages.data[0]
71
71
  normalized.mid.should == message_id
72
72
 
73
- volume = normalized.data["volume"]
73
+ volume = normalized.data["steps"]
74
74
  volume.should_not be_nil
75
- volume.should == 5
75
+ volume.should == 500
76
76
  end
77
77
  end
78
78
 
@@ -0,0 +1,82 @@
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::RegistrationsApi
28
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
29
+ # Please update as you see appropriate
30
+ describe 'RegistrationsApi' do
31
+ before do
32
+ # run before each test
33
+ @instance = ArtikCloud::RegistrationsApi.new
34
+ end
35
+
36
+ after do
37
+ # run after each test
38
+ end
39
+
40
+ describe 'test an instance of RegistrationsApi' do
41
+ it 'should create an instact of RegistrationsApi' do
42
+ # expect(@instance).to be_instance_of(ArtikCloud::RegistrationsApi)
43
+ end
44
+ end
45
+
46
+ # unit tests for confirm_user
47
+ # Confirm User
48
+ # This call updates the registration request issued earlier by associating it with an authenticated user and captures all additional information required to add a new device.
49
+ # @param registration_info Device Registration information.
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [DeviceRegConfirmUserResponseEnvelope]
52
+ describe 'confirm_user 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_request_status_for_user
59
+ # Get Request Status For User
60
+ # This call checks the status of the request so users can poll and know when registration is complete.
61
+ # @param request_id Request ID.
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [DeviceRegStatusResponseEnvelope]
64
+ describe 'get_request_status_for_user 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 unregister_device
71
+ # Unregister Device
72
+ # This call clears any associations from the secure device registration.
73
+ # @param device_id Device ID.
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [UnregisterDeviceResponseEnvelope]
76
+ describe 'unregister_device 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
+ 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::RulesApi
28
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
29
+ # Please update as you see appropriate
30
+ describe 'RulesApi' do
31
+ before do
32
+ # run before each test
33
+ @instance = ArtikCloud::RulesApi.new
34
+ end
35
+
36
+ after do
37
+ # run after each test
38
+ end
39
+
40
+ describe 'test an instance of RulesApi' do
41
+ it 'should create an instact of RulesApi' do
42
+ # expect(@instance).to be_instance_of(ArtikCloud::RulesApi)
43
+ end
44
+ end
45
+
46
+ # unit tests for create_rule
47
+ # Create Rule
48
+ # Create a new Rule
49
+ # @param rule_info Rule object that needs to be added
50
+ # @param user_id User ID
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [RuleEnvelope]
53
+ describe 'create_rule test' do
54
+ it "should work" do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for delete_rule
60
+ # Delete Rule
61
+ # Delete a Rule
62
+ # @param rule_id Rule ID.
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [RuleEnvelope]
65
+ describe 'delete_rule test' do
66
+ it "should work" do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for get_rule
72
+ # Get Rule
73
+ # Get a rule using the Rule ID
74
+ # @param rule_id Rule ID.
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [RuleEnvelope]
77
+ describe 'get_rule test' do
78
+ it "should work" do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for update_rule
84
+ # Update Rule
85
+ # Update an existing Rule
86
+ # @param rule_id Rule ID.
87
+ # @param rule_info Rule object that needs to be updated
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [RuleEnvelope]
90
+ describe 'update_rule 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
@@ -0,0 +1,84 @@
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::TagsApi
28
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
29
+ # Please update as you see appropriate
30
+ describe 'TagsApi' do
31
+ before do
32
+ # run before each test
33
+ @instance = ArtikCloud::TagsApi.new
34
+ end
35
+
36
+ after do
37
+ # run after each test
38
+ end
39
+
40
+ describe 'test an instance of TagsApi' do
41
+ it 'should create an instact of TagsApi' do
42
+ # expect(@instance).to be_instance_of(ArtikCloud::TagsApi)
43
+ end
44
+ end
45
+
46
+ # unit tests for get_tag_categories
47
+ # Get all categories
48
+ # Get all tags marked as categories
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [TagsEnvelope]
51
+ describe 'get_tag_categories test' do
52
+ it "should work" do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for get_tag_suggestions
58
+ # Get tag suggestions
59
+ # Get tag suggestions for applications, device types that have been most used with a group of tags.
60
+ # @param [Hash] opts the optional parameters
61
+ # @option opts [String] :entity_type Entity type name.
62
+ # @option opts [String] :tags Comma separated list of tags.
63
+ # @option opts [String] :name Name of tags used for type ahead.
64
+ # @option opts [Integer] :count Number of results to return. Max 10.
65
+ # @return [TagsEnvelope]
66
+ describe 'get_tag_suggestions 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_tags_by_categories
73
+ # Get all tags of categories
74
+ # Get all tags related to the list of categories
75
+ # @param [Hash] opts the optional parameters
76
+ # @option opts [String] :categories Comma separated list of categories.
77
+ # @return [TagsEnvelope]
78
+ describe 'get_tags_by_categories 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
+ end
@@ -21,14 +21,11 @@ require 'json'
21
21
  describe 'TokensApi' do
22
22
  before do
23
23
  # run before each test
24
- @token = '12d094c0b6294f7f9bdbfcf0d2f6c64b'
24
+ @token = 'fa460261b858484583097ecb331faaa8'
25
25
  configuration = ArtikCloud::Configuration.new
26
26
  configuration.access_token = @token
27
27
  #configuration.base_url = 'https://accounts.artik.cloud'
28
28
  configuration.debugging = false
29
- configuration.scheme = 'https'
30
- configuration.host = 'accounts.artik.cloud'
31
- configuration.base_path = ''
32
29
  api_client = ArtikCloud::ApiClient.new(configuration)
33
30
  @instance = ArtikCloud::TokensApi.new(api_client)
34
31
  end
@@ -39,24 +36,18 @@ describe 'TokensApi' do
39
36
 
40
37
  describe 'test an instance of TokensApi' do
41
38
  it 'should create an instact of TokensApi' do
42
- @instance.should be_a(ArtikCloud::TokensApi)
39
+ #@instance.should be_a(ArtikCloud::TokensApi)
43
40
  end
44
41
  end
45
42
 
46
- # unit tests for check_token
47
- # Check Token
48
- # Check Token
49
- # @param token_info Token object to be checked
50
- # @param [Hash] opts the optional parameters
51
- # @return [CheckTokenResponse]
52
- describe 'check_token test' do
43
+ # unit tests for tokenInfo
44
+ # Token Info
45
+ # @return [TokenInfoSuccessResponse]
46
+ describe 'token_info test' do
53
47
  it "should work" do
54
- request = ArtikCloud::TokenRequest.new
55
- request.token = @token
56
-
57
- response = @instance.check_token(request)
58
- response.should be_a(ArtikCloud::CheckTokenResponse)
59
- response.data.message.should == "Valid token"
48
+ response = @instance.token_info()
49
+ response.should be_a(ArtikCloud::TokenInfoSuccessResponse)
50
+ # response.data.message.should == "Valid token"
60
51
  end
61
52
  end
62
53
 
@@ -69,10 +60,10 @@ describe 'TokensApi' do
69
60
  # @return [RefreshTokenResponse]
70
61
  describe 'refresh_token test' do
71
62
  it "should work" do
72
- refresh_token = "bb90333aee114b3e97284814d978080d"
63
+ # refresh_token = "bb90333aee114b3e97284814d978080d"
73
64
 
74
- response = @instance.refresh_token("refresh_token", refresh_token)
75
- response.should be_a(ArtikCloud::RefreshTokenResponse)
65
+ # response = @instance.refresh_token("refresh_token", refresh_token)
66
+ # response.should be_a(ArtikCloud::RefreshTokenResponse)
76
67
  end
77
68
  end
78
69
 
@@ -28,7 +28,7 @@ describe 'UsersApi' do
28
28
 
29
29
  describe 'test an instance of UsersApi' do
30
30
  it 'should create an instact of UsersApi' do
31
- @instance.should be_a(ArtikCloud::UsersApi)
31
+ # @instance.should be_a(ArtikCloud::UsersApi)
32
32
  end
33
33
  end
34
34
 
data/spec/spec_helper.rb CHANGED
@@ -27,7 +27,7 @@ end
27
27
 
28
28
  def prepare_api_client()
29
29
  configuration = ArtikCloud::Configuration.new
30
- configuration.access_token = '12d094c0b6294f7f9bdbfcf0d2f6c64b'
30
+ configuration.access_token = 'fa460261b858484583097ecb331faaa8'
31
31
  configuration.debugging = false
32
32
  api_client = ArtikCloud::ApiClient.new(configuration)
33
33
  return api_client
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artikcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samsung-Artik-Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-29 00:00:00.000000000 Z
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -16,100 +16,100 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '1.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.2.1
22
+ version: 1.0.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0.2'
29
+ version: '1.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.2.1
32
+ version: 1.0.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.4'
39
+ version: '1.8'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.4.6
42
+ version: 1.8.3
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '1.4'
49
+ version: '1.8'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.4.6
52
+ version: 1.8.3
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '3.2'
59
+ version: '3.4'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 3.2.0
62
+ version: 3.4.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '3.2'
69
+ version: '3.4'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 3.2.0
72
+ version: 3.4.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: vcr
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '2.9'
79
+ version: '3.0'
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 2.9.3
82
+ version: 3.0.1
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.9'
89
+ version: '3.0'
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 2.9.3
92
+ version: 3.0.1
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: webmock
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
- version: '1.6'
99
+ version: '1.24'
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 1.6.2
102
+ version: 1.24.3
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '1.6'
109
+ version: '1.24'
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 1.6.2
112
+ version: 1.24.3
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: autotest
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -204,10 +204,13 @@ files:
204
204
  - artikcloud.gemspec
205
205
  - docs/AckEnvelope.md
206
206
  - docs/Acknowledgement.md
207
+ - docs/Action.md
208
+ - docs/ActionArray.md
207
209
  - docs/ActionDetails.md
208
210
  - docs/ActionDetailsArray.md
209
211
  - docs/ActionIn.md
210
212
  - docs/ActionOut.md
213
+ - docs/Actions.md
211
214
  - docs/AggregateData.md
212
215
  - docs/AggregatesHistogramData.md
213
216
  - docs/AggregatesHistogramResponse.md
@@ -253,6 +256,7 @@ files:
253
256
  - docs/ManifestPropertiesEnvelope.md
254
257
  - docs/ManifestVersions.md
255
258
  - docs/ManifestVersionsEnvelope.md
259
+ - docs/Message.md
256
260
  - docs/MessageAction.md
257
261
  - docs/MessageID.md
258
262
  - docs/MessageIDEnvelope.md
@@ -260,9 +264,13 @@ files:
260
264
  - docs/MessageOut.md
261
265
  - docs/MessagesApi.md
262
266
  - docs/NonEmptyString.md
267
+ - docs/NormalizedAction.md
268
+ - docs/NormalizedActionsEnvelope.md
263
269
  - docs/NormalizedMessage.md
264
270
  - docs/NormalizedMessagesEnvelope.md
265
271
  - docs/OutputRule.md
272
+ - docs/PresenceEnvelope.md
273
+ - docs/PresenceModel.md
266
274
  - docs/PropertiesEnvelope.md
267
275
  - docs/RefreshTokenResponse.md
268
276
  - docs/RegisterMessage.md
@@ -275,11 +283,16 @@ files:
275
283
  - docs/RuleWarningOutput.md
276
284
  - docs/RulesApi.md
277
285
  - docs/RulesEnvelope.md
286
+ - docs/SnapshotResponse.md
287
+ - docs/SnapshotResponses.md
288
+ - docs/SnapshotsResponseEnvelope.md
278
289
  - docs/Tag.md
279
290
  - docs/TagArray.md
280
291
  - docs/TagsApi.md
281
292
  - docs/TagsEnvelope.md
282
293
  - docs/Token.md
294
+ - docs/TokenInfo.md
295
+ - docs/TokenInfoSuccessResponse.md
283
296
  - docs/TokenRequest.md
284
297
  - docs/TokenResponse.md
285
298
  - docs/TokensApi.md
@@ -305,10 +318,13 @@ files:
305
318
  - lib/artikcloud/configuration.rb
306
319
  - lib/artikcloud/models/ack_envelope.rb
307
320
  - lib/artikcloud/models/acknowledgement.rb
321
+ - lib/artikcloud/models/action.rb
322
+ - lib/artikcloud/models/action_array.rb
308
323
  - lib/artikcloud/models/action_details.rb
309
324
  - lib/artikcloud/models/action_details_array.rb
310
325
  - lib/artikcloud/models/action_in.rb
311
326
  - lib/artikcloud/models/action_out.rb
327
+ - lib/artikcloud/models/actions.rb
312
328
  - lib/artikcloud/models/aggregate_data.rb
313
329
  - lib/artikcloud/models/aggregates_histogram_data.rb
314
330
  - lib/artikcloud/models/aggregates_histogram_response.rb
@@ -351,15 +367,20 @@ files:
351
367
  - lib/artikcloud/models/manifest_properties_envelope.rb
352
368
  - lib/artikcloud/models/manifest_versions.rb
353
369
  - lib/artikcloud/models/manifest_versions_envelope.rb
370
+ - lib/artikcloud/models/message.rb
354
371
  - lib/artikcloud/models/message_action.rb
355
372
  - lib/artikcloud/models/message_id.rb
356
373
  - lib/artikcloud/models/message_id_envelope.rb
357
374
  - lib/artikcloud/models/message_in.rb
358
375
  - lib/artikcloud/models/message_out.rb
359
376
  - lib/artikcloud/models/non_empty_string.rb
377
+ - lib/artikcloud/models/normalized_action.rb
378
+ - lib/artikcloud/models/normalized_actions_envelope.rb
360
379
  - lib/artikcloud/models/normalized_message.rb
361
380
  - lib/artikcloud/models/normalized_messages_envelope.rb
362
381
  - lib/artikcloud/models/output_rule.rb
382
+ - lib/artikcloud/models/presence_envelope.rb
383
+ - lib/artikcloud/models/presence_model.rb
363
384
  - lib/artikcloud/models/properties_envelope.rb
364
385
  - lib/artikcloud/models/refresh_token_response.rb
365
386
  - lib/artikcloud/models/register_message.rb
@@ -370,10 +391,15 @@ files:
370
391
  - lib/artikcloud/models/rule_update_info.rb
371
392
  - lib/artikcloud/models/rule_warning_output.rb
372
393
  - lib/artikcloud/models/rules_envelope.rb
394
+ - lib/artikcloud/models/snapshot_response.rb
395
+ - lib/artikcloud/models/snapshot_responses.rb
396
+ - lib/artikcloud/models/snapshots_response_envelope.rb
373
397
  - lib/artikcloud/models/tag.rb
374
398
  - lib/artikcloud/models/tag_array.rb
375
399
  - lib/artikcloud/models/tags_envelope.rb
376
400
  - lib/artikcloud/models/token.rb
401
+ - lib/artikcloud/models/token_info.rb
402
+ - lib/artikcloud/models/token_info_success_response.rb
377
403
  - lib/artikcloud/models/token_request.rb
378
404
  - lib/artikcloud/models/token_response.rb
379
405
  - lib/artikcloud/models/unregister_device_response.rb
@@ -383,7 +409,13 @@ files:
383
409
  - lib/artikcloud/models/web_socket_error.rb
384
410
  - lib/artikcloud/version.rb
385
411
  - pom.xml
412
+ - spec/api/device_types_api_spec.rb
413
+ - spec/api/devices_api_spec.rb
414
+ - spec/api/export_api_spec.rb
386
415
  - spec/api/messages_api_spec.rb
416
+ - spec/api/registrations_api_spec.rb
417
+ - spec/api/rules_api_spec.rb
418
+ - spec/api/tags_api_spec.rb
387
419
  - spec/api/tokens_api_spec.rb
388
420
  - spec/api/users_api_spec.rb
389
421
  - spec/spec.opts
@@ -413,7 +445,13 @@ signing_key:
413
445
  specification_version: 4
414
446
  summary: ArtikCloud Ruby Gem
415
447
  test_files:
448
+ - spec/api/device_types_api_spec.rb
449
+ - spec/api/devices_api_spec.rb
450
+ - spec/api/export_api_spec.rb
416
451
  - spec/api/messages_api_spec.rb
452
+ - spec/api/registrations_api_spec.rb
453
+ - spec/api/rules_api_spec.rb
454
+ - spec/api/tags_api_spec.rb
417
455
  - spec/api/tokens_api_spec.rb
418
456
  - spec/api/users_api_spec.rb
419
457
  - spec/spec.opts