artikcloud 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +65 -0
- data/LICENSE +202 -0
- data/README.md +230 -0
- data/artikcloud.gemspec +32 -0
- data/docs/AckEnvelope.md +8 -0
- data/docs/Acknowledgement.md +11 -0
- data/docs/ActionDetails.md +9 -0
- data/docs/ActionDetailsArray.md +8 -0
- data/docs/ActionIn.md +13 -0
- data/docs/ActionOut.md +12 -0
- data/docs/AggregateData.md +13 -0
- data/docs/AggregatesHistogramData.md +14 -0
- data/docs/AggregatesHistogramResponse.md +14 -0
- data/docs/AggregatesResponse.md +13 -0
- data/docs/AppProperties.md +10 -0
- data/docs/CheckTokenMessage.md +8 -0
- data/docs/CheckTokenResponse.md +8 -0
- data/docs/Device.md +21 -0
- data/docs/DeviceArray.md +8 -0
- data/docs/DeviceEnvelope.md +8 -0
- data/docs/DeviceRegCompleteRequest.md +8 -0
- data/docs/DeviceRegConfirmUserRequest.md +10 -0
- data/docs/DeviceRegConfirmUserResponse.md +8 -0
- data/docs/DeviceRegConfirmUserResponseEnvelope.md +8 -0
- data/docs/DeviceRegStatusResponse.md +9 -0
- data/docs/DeviceRegStatusResponseEnvelope.md +8 -0
- data/docs/DeviceToken.md +11 -0
- data/docs/DeviceTokenEnvelope.md +8 -0
- data/docs/DeviceType.md +25 -0
- data/docs/DeviceTypeArray.md +8 -0
- data/docs/DeviceTypeEnvelope.md +8 -0
- data/docs/DeviceTypesApi.md +284 -0
- data/docs/DeviceTypesEnvelope.md +11 -0
- data/docs/DevicesApi.md +382 -0
- data/docs/DevicesEnvelope.md +11 -0
- data/docs/ErrorEnvelope.md +8 -0
- data/docs/ExportApi.md +225 -0
- data/docs/ExportData.md +14 -0
- data/docs/ExportDataArray.md +8 -0
- data/docs/ExportHistoryResponse.md +11 -0
- data/docs/ExportNormalizedMessagesResponse.md +20 -0
- data/docs/ExportRequest.md +15 -0
- data/docs/ExportRequestData.md +18 -0
- data/docs/ExportRequestInfo.md +17 -0
- data/docs/ExportRequestResponse.md +8 -0
- data/docs/ExportResponse.md +18 -0
- data/docs/ExportStatusResponse.md +12 -0
- data/docs/FieldPath.md +8 -0
- data/docs/FieldPresence.md +8 -0
- data/docs/FieldPresenceEnvelope.md +14 -0
- data/docs/FieldsActions.md +9 -0
- data/docs/ManifestProperties.md +8 -0
- data/docs/ManifestPropertiesEnvelope.md +8 -0
- data/docs/ManifestVersions.md +8 -0
- data/docs/ManifestVersionsEnvelope.md +8 -0
- data/docs/MessageAction.md +12 -0
- data/docs/MessageID.md +8 -0
- data/docs/MessageIDEnvelope.md +8 -0
- data/docs/MessageIn.md +13 -0
- data/docs/MessageOut.md +12 -0
- data/docs/MessagesApi.md +382 -0
- data/docs/NonEmptyString.md +8 -0
- data/docs/NormalizedMessage.md +15 -0
- data/docs/NormalizedMessagesEnvelope.md +17 -0
- data/docs/OutputRule.md +21 -0
- data/docs/PropertiesEnvelope.md +8 -0
- data/docs/RefreshTokenResponse.md +11 -0
- data/docs/RegisterMessage.md +12 -0
- data/docs/RegistrationsApi.md +167 -0
- data/docs/RuleArray.md +8 -0
- data/docs/RuleCreationInfo.md +11 -0
- data/docs/RuleEnvelope.md +8 -0
- data/docs/RuleError.md +11 -0
- data/docs/RuleUpdateInfo.md +11 -0
- data/docs/RuleWarningOutput.md +9 -0
- data/docs/RulesApi.md +226 -0
- data/docs/RulesEnvelope.md +11 -0
- data/docs/Tag.md +9 -0
- data/docs/TagArray.md +8 -0
- data/docs/TagsApi.md +169 -0
- data/docs/TagsEnvelope.md +8 -0
- data/docs/Token.md +11 -0
- data/docs/TokenRequest.md +8 -0
- data/docs/TokenResponse.md +8 -0
- data/docs/TokensApi.md +117 -0
- data/docs/UnregisterDeviceResponse.md +18 -0
- data/docs/UnregisterDeviceResponseEnvelope.md +8 -0
- data/docs/User.md +14 -0
- data/docs/UserEnvelope.md +8 -0
- data/docs/UsersApi.md +474 -0
- data/docs/WebSocketError.md +10 -0
- data/git_push.sh +52 -0
- data/lib/artikcloud/api/device_types_api.rb +340 -0
- data/lib/artikcloud/api/devices_api.rb +450 -0
- data/lib/artikcloud/api/export_api.rb +269 -0
- data/lib/artikcloud/api/messages_api.rb +468 -0
- data/lib/artikcloud/api/registrations_api.rb +205 -0
- data/lib/artikcloud/api/rules_api.rb +276 -0
- data/lib/artikcloud/api/tags_api.rb +209 -0
- data/lib/artikcloud/api/tokens_api.rb +152 -0
- data/lib/artikcloud/api/users_api.rb +552 -0
- data/lib/artikcloud/api_client.rb +336 -0
- data/lib/artikcloud/api_error.rb +38 -0
- data/lib/artikcloud/configuration.rb +170 -0
- data/lib/artikcloud/models/ack_envelope.rb +164 -0
- data/lib/artikcloud/models/acknowledgement.rb +198 -0
- data/lib/artikcloud/models/action_details.rb +178 -0
- data/lib/artikcloud/models/action_details_array.rb +166 -0
- data/lib/artikcloud/models/action_in.rb +221 -0
- data/lib/artikcloud/models/action_out.rb +209 -0
- data/lib/artikcloud/models/aggregate_data.rb +214 -0
- data/lib/artikcloud/models/aggregates_histogram_data.rb +224 -0
- data/lib/artikcloud/models/aggregates_histogram_response.rb +226 -0
- data/lib/artikcloud/models/aggregates_response.rb +216 -0
- data/lib/artikcloud/models/app_properties.rb +184 -0
- data/lib/artikcloud/models/check_token_message.rb +164 -0
- data/lib/artikcloud/models/check_token_response.rb +164 -0
- data/lib/artikcloud/models/device.rb +310 -0
- data/lib/artikcloud/models/device_array.rb +166 -0
- data/lib/artikcloud/models/device_envelope.rb +164 -0
- data/lib/artikcloud/models/device_reg_complete_request.rb +165 -0
- data/lib/artikcloud/models/device_reg_confirm_user_request.rb +187 -0
- data/lib/artikcloud/models/device_reg_confirm_user_response.rb +165 -0
- data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +164 -0
- data/lib/artikcloud/models/device_reg_status_response.rb +176 -0
- data/lib/artikcloud/models/device_reg_status_response_envelope.rb +164 -0
- data/lib/artikcloud/models/device_token.rb +194 -0
- data/lib/artikcloud/models/device_token_envelope.rb +164 -0
- data/lib/artikcloud/models/device_type.rb +353 -0
- data/lib/artikcloud/models/device_type_array.rb +166 -0
- data/lib/artikcloud/models/device_type_envelope.rb +164 -0
- data/lib/artikcloud/models/device_types_envelope.rb +194 -0
- data/lib/artikcloud/models/devices_envelope.rb +194 -0
- data/lib/artikcloud/models/error_envelope.rb +165 -0
- data/lib/artikcloud/models/export_data.rb +225 -0
- data/lib/artikcloud/models/export_data_array.rb +166 -0
- data/lib/artikcloud/models/export_history_response.rb +194 -0
- data/lib/artikcloud/models/export_normalized_messages_response.rb +284 -0
- data/lib/artikcloud/models/export_request.rb +234 -0
- data/lib/artikcloud/models/export_request_data.rb +275 -0
- data/lib/artikcloud/models/export_request_info.rb +264 -0
- data/lib/artikcloud/models/export_request_response.rb +164 -0
- data/lib/artikcloud/models/export_response.rb +275 -0
- data/lib/artikcloud/models/export_status_response.rb +205 -0
- data/lib/artikcloud/models/field_path.rb +166 -0
- data/lib/artikcloud/models/field_presence.rb +164 -0
- data/lib/artikcloud/models/field_presence_envelope.rb +226 -0
- data/lib/artikcloud/models/fields_actions.rb +180 -0
- data/lib/artikcloud/models/manifest_properties.rb +164 -0
- data/lib/artikcloud/models/manifest_properties_envelope.rb +164 -0
- data/lib/artikcloud/models/manifest_versions.rb +166 -0
- data/lib/artikcloud/models/manifest_versions_envelope.rb +164 -0
- data/lib/artikcloud/models/message_action.rb +210 -0
- data/lib/artikcloud/models/message_id.rb +165 -0
- data/lib/artikcloud/models/message_id_envelope.rb +164 -0
- data/lib/artikcloud/models/message_in.rb +224 -0
- data/lib/artikcloud/models/message_out.rb +209 -0
- data/lib/artikcloud/models/non_empty_string.rb +164 -0
- data/lib/artikcloud/models/normalized_message.rb +236 -0
- data/lib/artikcloud/models/normalized_messages_envelope.rb +256 -0
- data/lib/artikcloud/models/output_rule.rb +296 -0
- data/lib/artikcloud/models/properties_envelope.rb +164 -0
- data/lib/artikcloud/models/refresh_token_response.rb +194 -0
- data/lib/artikcloud/models/register_message.rb +211 -0
- data/lib/artikcloud/models/rule_array.rb +166 -0
- data/lib/artikcloud/models/rule_creation_info.rb +200 -0
- data/lib/artikcloud/models/rule_envelope.rb +164 -0
- data/lib/artikcloud/models/rule_error.rb +196 -0
- data/lib/artikcloud/models/rule_update_info.rb +200 -0
- data/lib/artikcloud/models/rule_warning_output.rb +174 -0
- data/lib/artikcloud/models/rules_envelope.rb +194 -0
- data/lib/artikcloud/models/tag.rb +176 -0
- data/lib/artikcloud/models/tag_array.rb +166 -0
- data/lib/artikcloud/models/tags_envelope.rb +164 -0
- data/lib/artikcloud/models/token.rb +194 -0
- data/lib/artikcloud/models/token_request.rb +164 -0
- data/lib/artikcloud/models/token_response.rb +164 -0
- data/lib/artikcloud/models/unregister_device_response.rb +275 -0
- data/lib/artikcloud/models/unregister_device_response_envelope.rb +164 -0
- data/lib/artikcloud/models/user.rb +224 -0
- data/lib/artikcloud/models/user_envelope.rb +164 -0
- data/lib/artikcloud/models/web_socket_error.rb +187 -0
- data/lib/artikcloud/version.rb +17 -0
- data/lib/artikcloud.rb +128 -0
- data/pom.xml +60 -0
- data/spec/api/messages_api_spec.rb +79 -0
- data/spec/api/tokens_api_spec.rb +79 -0
- data/spec/api/users_api_spec.rb +50 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +36 -0
- metadata +420 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 732690591f46e45397d1dfbf3f85aa563137195d
|
4
|
+
data.tar.gz: 52b4ee9cb8e9223bbd6a628cec7e124a858d66d5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5c87ad0e3aca778160bf351392e7b52424e7ec783cdba2e2f4bfa867ca0ad48de85559d535a29c1c05759953e46f954b446f4154e84c4e08e49d668e1337e5c4
|
7
|
+
data.tar.gz: d3fc313afe395d695e600c502f89ffc9cf1e7d9ac188a0a090126c9300dae5bb8079dfdc49ebed3add72a48de1170e39be9f73c4fe4241bee112b8a7e180c689
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
artikcloud (2.0.0)
|
5
|
+
json (~> 1.4, >= 1.4.6)
|
6
|
+
typhoeus (~> 0.2, >= 0.2.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ZenTest (4.11.0)
|
12
|
+
addressable (2.4.0)
|
13
|
+
autotest (4.4.6)
|
14
|
+
ZenTest (>= 4.4.1)
|
15
|
+
autotest-fsevent (0.2.11)
|
16
|
+
sys-uname
|
17
|
+
autotest-growl (0.2.16)
|
18
|
+
autotest-rails-pure (4.1.2)
|
19
|
+
crack (0.4.3)
|
20
|
+
safe_yaml (~> 1.0.0)
|
21
|
+
diff-lcs (1.2.5)
|
22
|
+
ethon (0.8.1)
|
23
|
+
ffi (>= 1.3.0)
|
24
|
+
ffi (1.9.10)
|
25
|
+
hashdiff (0.3.0)
|
26
|
+
json (1.8.3)
|
27
|
+
rspec (3.4.0)
|
28
|
+
rspec-core (~> 3.4.0)
|
29
|
+
rspec-expectations (~> 3.4.0)
|
30
|
+
rspec-mocks (~> 3.4.0)
|
31
|
+
rspec-core (3.4.4)
|
32
|
+
rspec-support (~> 3.4.0)
|
33
|
+
rspec-expectations (3.4.0)
|
34
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
+
rspec-support (~> 3.4.0)
|
36
|
+
rspec-mocks (3.4.1)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.4.0)
|
39
|
+
rspec-support (3.4.1)
|
40
|
+
safe_yaml (1.0.4)
|
41
|
+
sys-uname (1.0.2)
|
42
|
+
ffi (>= 1.0.0)
|
43
|
+
typhoeus (0.8.0)
|
44
|
+
ethon (>= 0.8.0)
|
45
|
+
vcr (2.9.3)
|
46
|
+
webmock (1.24.2)
|
47
|
+
addressable (>= 2.3.6)
|
48
|
+
crack (>= 0.3.2)
|
49
|
+
hashdiff
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
ruby
|
53
|
+
|
54
|
+
DEPENDENCIES
|
55
|
+
artikcloud!
|
56
|
+
autotest (~> 4.4, >= 4.4.6)
|
57
|
+
autotest-fsevent (~> 0.2, >= 0.2.11)
|
58
|
+
autotest-growl (~> 0.2, >= 0.2.16)
|
59
|
+
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
60
|
+
rspec (~> 3.2, >= 3.2.0)
|
61
|
+
vcr (~> 2.9, >= 2.9.3)
|
62
|
+
webmock (~> 1.6, >= 1.6.2)
|
63
|
+
|
64
|
+
BUNDLED WITH
|
65
|
+
1.11.2
|
data/LICENSE
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2016 Samsung Electronics Co., Ltd.
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
202
|
+
|
data/README.md
ADDED
@@ -0,0 +1,230 @@
|
|
1
|
+
ARTIK Cloud Ruby SDK
|
2
|
+
================
|
3
|
+
|
4
|
+
This SDK helps you connect your Ruby scripts to ARTIK Cloud. The SDK exposes a number of methods to easily execute REST API calls to ARTIK Cloud.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
### Build a gem
|
9
|
+
|
10
|
+
To build the Ruby code into a gem:
|
11
|
+
|
12
|
+
```shell
|
13
|
+
gem build artikcloud.gemspec
|
14
|
+
```
|
15
|
+
|
16
|
+
Then either install the gem locally:
|
17
|
+
|
18
|
+
```shell
|
19
|
+
gem install ./artikcloud-2.0.0.gem
|
20
|
+
```
|
21
|
+
|
22
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
23
|
+
|
24
|
+
Finally add this to the Gemfile:
|
25
|
+
|
26
|
+
gem 'artikcloud', '~> 2.0.0'
|
27
|
+
|
28
|
+
### Install from Git
|
29
|
+
|
30
|
+
If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:
|
31
|
+
|
32
|
+
gem 'artikcloud', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'
|
33
|
+
|
34
|
+
### Include the Ruby code directly
|
35
|
+
|
36
|
+
Include the Ruby code directly using `-I` as follows:
|
37
|
+
|
38
|
+
```shell
|
39
|
+
ruby -Ilib script.rb
|
40
|
+
```
|
41
|
+
|
42
|
+
## Getting Started
|
43
|
+
|
44
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
45
|
+
```ruby
|
46
|
+
# Load the gem
|
47
|
+
require 'artikcloud'
|
48
|
+
|
49
|
+
# Setup authorization
|
50
|
+
ArtikCloud.configure do |config|
|
51
|
+
# Configure OAuth2 access token for authorization: artikcloud_oauth
|
52
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
53
|
+
end
|
54
|
+
|
55
|
+
api_instance = ArtikCloud::DeviceTypesApi.new
|
56
|
+
|
57
|
+
device_type_id = "device_type_id_example" # String | deviceTypeId
|
58
|
+
|
59
|
+
|
60
|
+
begin
|
61
|
+
#Get Available Manifest Versions
|
62
|
+
result = api_instance.get_available_manifest_versions(device_type_id)
|
63
|
+
p result
|
64
|
+
rescue ArtikCloud::ApiError => e
|
65
|
+
puts "Exception when calling DeviceTypesApi->get_available_manifest_versions: #{e}"
|
66
|
+
end
|
67
|
+
|
68
|
+
```
|
69
|
+
|
70
|
+
## Documentation for API Endpoints
|
71
|
+
|
72
|
+
All URIs are relative to *https://api.artik.cloud/v1.1*
|
73
|
+
|
74
|
+
Class | Method | HTTP request | Description
|
75
|
+
------------ | ------------- | ------------- | -------------
|
76
|
+
*ArtikCloud::DeviceTypesApi* | [**get_available_manifest_versions**](docs/DeviceTypesApi.md#get_available_manifest_versions) | **GET** /devicetypes/{deviceTypeId}/availablemanifestversions | Get Available Manifest Versions
|
77
|
+
*ArtikCloud::DeviceTypesApi* | [**get_device_type**](docs/DeviceTypesApi.md#get_device_type) | **GET** /devicetypes/{deviceTypeId} | Get Device Type
|
78
|
+
*ArtikCloud::DeviceTypesApi* | [**get_device_types**](docs/DeviceTypesApi.md#get_device_types) | **GET** /devicetypes | Get Device Types
|
79
|
+
*ArtikCloud::DeviceTypesApi* | [**get_latest_manifest_properties**](docs/DeviceTypesApi.md#get_latest_manifest_properties) | **GET** /devicetypes/{deviceTypeId}/manifests/latest/properties | Get Latest Manifest Properties
|
80
|
+
*ArtikCloud::DeviceTypesApi* | [**get_manifest_properties**](docs/DeviceTypesApi.md#get_manifest_properties) | **GET** /devicetypes/{deviceTypeId}/manifests/{version}/properties | Get manifest properties
|
81
|
+
*ArtikCloud::DevicesApi* | [**add_device**](docs/DevicesApi.md#add_device) | **POST** /devices | Add Device
|
82
|
+
*ArtikCloud::DevicesApi* | [**delete_device**](docs/DevicesApi.md#delete_device) | **DELETE** /devices/{deviceId} | Delete Device
|
83
|
+
*ArtikCloud::DevicesApi* | [**delete_device_token**](docs/DevicesApi.md#delete_device_token) | **DELETE** /devices/{deviceId}/tokens | Delete Device Token
|
84
|
+
*ArtikCloud::DevicesApi* | [**get_device**](docs/DevicesApi.md#get_device) | **GET** /devices/{deviceId} | Get Device
|
85
|
+
*ArtikCloud::DevicesApi* | [**get_device_token**](docs/DevicesApi.md#get_device_token) | **GET** /devices/{deviceId}/tokens | Get Device Token
|
86
|
+
*ArtikCloud::DevicesApi* | [**update_device**](docs/DevicesApi.md#update_device) | **PUT** /devices/{deviceId} | Update Device
|
87
|
+
*ArtikCloud::DevicesApi* | [**update_device_token**](docs/DevicesApi.md#update_device_token) | **PUT** /devices/{deviceId}/tokens | Update Device Token
|
88
|
+
*ArtikCloud::ExportApi* | [**export_request**](docs/ExportApi.md#export_request) | **POST** /messages/export | Create Export Request
|
89
|
+
*ArtikCloud::ExportApi* | [**get_export_history**](docs/ExportApi.md#get_export_history) | **GET** /messages/export/history | Get Export History
|
90
|
+
*ArtikCloud::ExportApi* | [**get_export_result**](docs/ExportApi.md#get_export_result) | **GET** /messages/export/{exportId}/result | Get Export Result
|
91
|
+
*ArtikCloud::ExportApi* | [**get_export_status**](docs/ExportApi.md#get_export_status) | **GET** /messages/export/{exportId}/status | Check Export Status
|
92
|
+
*ArtikCloud::MessagesApi* | [**get_aggregates_histogram**](docs/MessagesApi.md#get_aggregates_histogram) | **GET** /messages/analytics/histogram | Get Histogram aggregates
|
93
|
+
*ArtikCloud::MessagesApi* | [**get_field_presence**](docs/MessagesApi.md#get_field_presence) | **GET** /messages/presence | Get normalized message presence
|
94
|
+
*ArtikCloud::MessagesApi* | [**get_last_normalized_messages**](docs/MessagesApi.md#get_last_normalized_messages) | **GET** /messages/last | Get Last Normalized Message
|
95
|
+
*ArtikCloud::MessagesApi* | [**get_message_aggregates**](docs/MessagesApi.md#get_message_aggregates) | **GET** /messages/analytics/aggregates | Get Normalized Message Aggregates
|
96
|
+
*ArtikCloud::MessagesApi* | [**get_normalized_messages**](docs/MessagesApi.md#get_normalized_messages) | **GET** /messages | Get Normalized Messages
|
97
|
+
*ArtikCloud::MessagesApi* | [**send_message_action**](docs/MessagesApi.md#send_message_action) | **POST** /messages | Send Message Action
|
98
|
+
*ArtikCloud::RegistrationsApi* | [**confirm_user**](docs/RegistrationsApi.md#confirm_user) | **PUT** /devices/registrations/pin | Confirm User
|
99
|
+
*ArtikCloud::RegistrationsApi* | [**get_request_status_for_user**](docs/RegistrationsApi.md#get_request_status_for_user) | **GET** /devices/registrations/{requestId}/status | Get Request Status For User
|
100
|
+
*ArtikCloud::RegistrationsApi* | [**unregister_device**](docs/RegistrationsApi.md#unregister_device) | **DELETE** /devices/{deviceId}/registrations | Unregister Device
|
101
|
+
*ArtikCloud::RulesApi* | [**create_rule**](docs/RulesApi.md#create_rule) | **POST** /rules | Create Rule
|
102
|
+
*ArtikCloud::RulesApi* | [**delete_rule**](docs/RulesApi.md#delete_rule) | **DELETE** /rules/{ruleId} | Delete Rule
|
103
|
+
*ArtikCloud::RulesApi* | [**get_rule**](docs/RulesApi.md#get_rule) | **GET** /rules/{ruleId} | Get Rule
|
104
|
+
*ArtikCloud::RulesApi* | [**update_rule**](docs/RulesApi.md#update_rule) | **PUT** /rules/{ruleId} | Update Rule
|
105
|
+
*ArtikCloud::TagsApi* | [**get_tag_categories**](docs/TagsApi.md#get_tag_categories) | **GET** /tags/categories | Get all categories
|
106
|
+
*ArtikCloud::TagsApi* | [**get_tag_suggestions**](docs/TagsApi.md#get_tag_suggestions) | **GET** /tags/suggestions | Get tag suggestions
|
107
|
+
*ArtikCloud::TagsApi* | [**get_tags_by_categories**](docs/TagsApi.md#get_tags_by_categories) | **GET** /tags | Get all tags of categories
|
108
|
+
*ArtikCloud::TokensApi* | [**check_token**](docs/TokensApi.md#check_token) | **POST** /checkToken | Check Token
|
109
|
+
*ArtikCloud::TokensApi* | [**refresh_token**](docs/TokensApi.md#refresh_token) | **POST** /token | Refresh Token
|
110
|
+
*ArtikCloud::UsersApi* | [**create_user_properties**](docs/UsersApi.md#create_user_properties) | **POST** /users/{userId}/properties | Create User Application Properties
|
111
|
+
*ArtikCloud::UsersApi* | [**delete_user_properties**](docs/UsersApi.md#delete_user_properties) | **DELETE** /users/{userId}/properties | Delete User Application Properties
|
112
|
+
*ArtikCloud::UsersApi* | [**get_self**](docs/UsersApi.md#get_self) | **GET** /users/self | Get Current User Profile
|
113
|
+
*ArtikCloud::UsersApi* | [**get_user_device_types**](docs/UsersApi.md#get_user_device_types) | **GET** /users/{userId}/devicetypes | Get User Device Types
|
114
|
+
*ArtikCloud::UsersApi* | [**get_user_devices**](docs/UsersApi.md#get_user_devices) | **GET** /users/{userId}/devices | Get User Devices
|
115
|
+
*ArtikCloud::UsersApi* | [**get_user_properties**](docs/UsersApi.md#get_user_properties) | **GET** /users/{userId}/properties | Get User application properties
|
116
|
+
*ArtikCloud::UsersApi* | [**get_user_rules**](docs/UsersApi.md#get_user_rules) | **GET** /users/{userId}/rules | Get User Rules
|
117
|
+
*ArtikCloud::UsersApi* | [**update_user_properties**](docs/UsersApi.md#update_user_properties) | **PUT** /users/{userId}/properties | Update User Application Properties
|
118
|
+
|
119
|
+
|
120
|
+
## Documentation for Models
|
121
|
+
|
122
|
+
- [ArtikCloud::AckEnvelope](docs/AckEnvelope.md)
|
123
|
+
- [ArtikCloud::Acknowledgement](docs/Acknowledgement.md)
|
124
|
+
- [ArtikCloud::ActionDetails](docs/ActionDetails.md)
|
125
|
+
- [ArtikCloud::ActionDetailsArray](docs/ActionDetailsArray.md)
|
126
|
+
- [ArtikCloud::ActionIn](docs/ActionIn.md)
|
127
|
+
- [ArtikCloud::ActionOut](docs/ActionOut.md)
|
128
|
+
- [ArtikCloud::AggregateData](docs/AggregateData.md)
|
129
|
+
- [ArtikCloud::AggregatesHistogramData](docs/AggregatesHistogramData.md)
|
130
|
+
- [ArtikCloud::AggregatesHistogramResponse](docs/AggregatesHistogramResponse.md)
|
131
|
+
- [ArtikCloud::AggregatesResponse](docs/AggregatesResponse.md)
|
132
|
+
- [ArtikCloud::AppProperties](docs/AppProperties.md)
|
133
|
+
- [ArtikCloud::CheckTokenMessage](docs/CheckTokenMessage.md)
|
134
|
+
- [ArtikCloud::CheckTokenResponse](docs/CheckTokenResponse.md)
|
135
|
+
- [ArtikCloud::Device](docs/Device.md)
|
136
|
+
- [ArtikCloud::DeviceArray](docs/DeviceArray.md)
|
137
|
+
- [ArtikCloud::DeviceEnvelope](docs/DeviceEnvelope.md)
|
138
|
+
- [ArtikCloud::DeviceRegCompleteRequest](docs/DeviceRegCompleteRequest.md)
|
139
|
+
- [ArtikCloud::DeviceRegConfirmUserRequest](docs/DeviceRegConfirmUserRequest.md)
|
140
|
+
- [ArtikCloud::DeviceRegConfirmUserResponse](docs/DeviceRegConfirmUserResponse.md)
|
141
|
+
- [ArtikCloud::DeviceRegConfirmUserResponseEnvelope](docs/DeviceRegConfirmUserResponseEnvelope.md)
|
142
|
+
- [ArtikCloud::DeviceRegStatusResponse](docs/DeviceRegStatusResponse.md)
|
143
|
+
- [ArtikCloud::DeviceRegStatusResponseEnvelope](docs/DeviceRegStatusResponseEnvelope.md)
|
144
|
+
- [ArtikCloud::DeviceToken](docs/DeviceToken.md)
|
145
|
+
- [ArtikCloud::DeviceTokenEnvelope](docs/DeviceTokenEnvelope.md)
|
146
|
+
- [ArtikCloud::DeviceType](docs/DeviceType.md)
|
147
|
+
- [ArtikCloud::DeviceTypeArray](docs/DeviceTypeArray.md)
|
148
|
+
- [ArtikCloud::DeviceTypeEnvelope](docs/DeviceTypeEnvelope.md)
|
149
|
+
- [ArtikCloud::DeviceTypesEnvelope](docs/DeviceTypesEnvelope.md)
|
150
|
+
- [ArtikCloud::DevicesEnvelope](docs/DevicesEnvelope.md)
|
151
|
+
- [ArtikCloud::ErrorEnvelope](docs/ErrorEnvelope.md)
|
152
|
+
- [ArtikCloud::ExportData](docs/ExportData.md)
|
153
|
+
- [ArtikCloud::ExportDataArray](docs/ExportDataArray.md)
|
154
|
+
- [ArtikCloud::ExportHistoryResponse](docs/ExportHistoryResponse.md)
|
155
|
+
- [ArtikCloud::ExportNormalizedMessagesResponse](docs/ExportNormalizedMessagesResponse.md)
|
156
|
+
- [ArtikCloud::ExportRequest](docs/ExportRequest.md)
|
157
|
+
- [ArtikCloud::ExportRequestData](docs/ExportRequestData.md)
|
158
|
+
- [ArtikCloud::ExportRequestInfo](docs/ExportRequestInfo.md)
|
159
|
+
- [ArtikCloud::ExportRequestResponse](docs/ExportRequestResponse.md)
|
160
|
+
- [ArtikCloud::ExportResponse](docs/ExportResponse.md)
|
161
|
+
- [ArtikCloud::ExportStatusResponse](docs/ExportStatusResponse.md)
|
162
|
+
- [ArtikCloud::FieldPath](docs/FieldPath.md)
|
163
|
+
- [ArtikCloud::FieldPresence](docs/FieldPresence.md)
|
164
|
+
- [ArtikCloud::FieldPresenceEnvelope](docs/FieldPresenceEnvelope.md)
|
165
|
+
- [ArtikCloud::FieldsActions](docs/FieldsActions.md)
|
166
|
+
- [ArtikCloud::ManifestProperties](docs/ManifestProperties.md)
|
167
|
+
- [ArtikCloud::ManifestPropertiesEnvelope](docs/ManifestPropertiesEnvelope.md)
|
168
|
+
- [ArtikCloud::ManifestVersions](docs/ManifestVersions.md)
|
169
|
+
- [ArtikCloud::ManifestVersionsEnvelope](docs/ManifestVersionsEnvelope.md)
|
170
|
+
- [ArtikCloud::MessageAction](docs/MessageAction.md)
|
171
|
+
- [ArtikCloud::MessageID](docs/MessageID.md)
|
172
|
+
- [ArtikCloud::MessageIDEnvelope](docs/MessageIDEnvelope.md)
|
173
|
+
- [ArtikCloud::MessageIn](docs/MessageIn.md)
|
174
|
+
- [ArtikCloud::MessageOut](docs/MessageOut.md)
|
175
|
+
- [ArtikCloud::NonEmptyString](docs/NonEmptyString.md)
|
176
|
+
- [ArtikCloud::NormalizedMessage](docs/NormalizedMessage.md)
|
177
|
+
- [ArtikCloud::NormalizedMessagesEnvelope](docs/NormalizedMessagesEnvelope.md)
|
178
|
+
- [ArtikCloud::OutputRule](docs/OutputRule.md)
|
179
|
+
- [ArtikCloud::PropertiesEnvelope](docs/PropertiesEnvelope.md)
|
180
|
+
- [ArtikCloud::RefreshTokenResponse](docs/RefreshTokenResponse.md)
|
181
|
+
- [ArtikCloud::RegisterMessage](docs/RegisterMessage.md)
|
182
|
+
- [ArtikCloud::RuleArray](docs/RuleArray.md)
|
183
|
+
- [ArtikCloud::RuleCreationInfo](docs/RuleCreationInfo.md)
|
184
|
+
- [ArtikCloud::RuleEnvelope](docs/RuleEnvelope.md)
|
185
|
+
- [ArtikCloud::RuleError](docs/RuleError.md)
|
186
|
+
- [ArtikCloud::RuleUpdateInfo](docs/RuleUpdateInfo.md)
|
187
|
+
- [ArtikCloud::RuleWarningOutput](docs/RuleWarningOutput.md)
|
188
|
+
- [ArtikCloud::RulesEnvelope](docs/RulesEnvelope.md)
|
189
|
+
- [ArtikCloud::Tag](docs/Tag.md)
|
190
|
+
- [ArtikCloud::TagArray](docs/TagArray.md)
|
191
|
+
- [ArtikCloud::TagsEnvelope](docs/TagsEnvelope.md)
|
192
|
+
- [ArtikCloud::Token](docs/Token.md)
|
193
|
+
- [ArtikCloud::TokenRequest](docs/TokenRequest.md)
|
194
|
+
- [ArtikCloud::TokenResponse](docs/TokenResponse.md)
|
195
|
+
- [ArtikCloud::UnregisterDeviceResponse](docs/UnregisterDeviceResponse.md)
|
196
|
+
- [ArtikCloud::UnregisterDeviceResponseEnvelope](docs/UnregisterDeviceResponseEnvelope.md)
|
197
|
+
- [ArtikCloud::User](docs/User.md)
|
198
|
+
- [ArtikCloud::UserEnvelope](docs/UserEnvelope.md)
|
199
|
+
- [ArtikCloud::WebSocketError](docs/WebSocketError.md)
|
200
|
+
|
201
|
+
## Documentation for Authorization
|
202
|
+
|
203
|
+
### artikcloud_oauth
|
204
|
+
|
205
|
+
- **Type**: OAuth
|
206
|
+
- **Flow**: implicit
|
207
|
+
- **Authorizatoin URL**: https://accounts.artik.cloud/authorize
|
208
|
+
- **Scopes**:
|
209
|
+
- read:artikcloud: Read from Artik Cloud
|
210
|
+
- write:artikcloud: Write from Artik Cloud
|
211
|
+
|
212
|
+
More about ARTIK Cloud
|
213
|
+
-------------------------
|
214
|
+
|
215
|
+
If you are not familiar with ARTIK Cloud, we have extensive documentation at https://developer.artik.cloud/documentation
|
216
|
+
|
217
|
+
The full ARTIK Cloud API specification can be found at https://developer.artik.cloud/documentation/api-reference/
|
218
|
+
|
219
|
+
Check out advanced sample applications at https://developer.artik.cloud/documentation/samples/
|
220
|
+
|
221
|
+
To create and manage your services and devices on ARTIK Cloud, create an account at https://developer.artik.cloud
|
222
|
+
|
223
|
+
Also see the ARTIK Cloud blog for tutorials, updates, and more: http://artik.io/blog
|
224
|
+
|
225
|
+
License and Copyright
|
226
|
+
---------------------
|
227
|
+
|
228
|
+
Licensed under the Apache License. See [LICENSE](https://github.com/artikcloud/artikcloud-ruby/blob/master/LICENSE).
|
229
|
+
|
230
|
+
Copyright (c) 2016 Samsung Electronics Co., Ltd.
|
data/artikcloud.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "artikcloud/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "artikcloud"
|
7
|
+
s.version = ArtikCloud::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Samsung-Artik-Cloud"]
|
10
|
+
s.email = ["support@artik.cloud"]
|
11
|
+
s.homepage = "http://github.com/artikcloud/artikcloud-ruby"
|
12
|
+
s.summary = "ArtikCloud Ruby Gem"
|
13
|
+
s.description = "A ruby wrapper for the ArtikCloud REST APIs"
|
14
|
+
s.license = "Apache 2.0"
|
15
|
+
|
16
|
+
|
17
|
+
s.add_runtime_dependency 'typhoeus', '~> 0.2', '>= 0.2.1'
|
18
|
+
s.add_runtime_dependency 'json', '~> 1.4', '>= 1.4.6'
|
19
|
+
|
20
|
+
s.add_development_dependency 'rspec', '~> 3.2', '>= 3.2.0'
|
21
|
+
s.add_development_dependency 'vcr', '~> 2.9', '>= 2.9.3'
|
22
|
+
s.add_development_dependency 'webmock', '~> 1.6', '>= 1.6.2'
|
23
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
24
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
25
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
26
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
|
27
|
+
|
28
|
+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
29
|
+
s.test_files = `find spec/*`.split("\n")
|
30
|
+
s.executables = []
|
31
|
+
s.require_paths = ["lib"]
|
32
|
+
end
|
data/docs/AckEnvelope.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# ArtikCloud::Acknowledgement
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**mid** | **String** | Message ID. | [optional]
|
7
|
+
**cid** | **String** | Confirmation ID. | [optional]
|
8
|
+
**message** | **String** | Message. | [optional]
|
9
|
+
**code** | **String** | Code | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# ArtikCloud::ActionDetails
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**parameters** | **Hash<String, Object>** | Parameters. | [optional]
|
7
|
+
**name** | **String** | Name. | [optional]
|
8
|
+
|
9
|
+
|
data/docs/ActionIn.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# ArtikCloud::ActionIn
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**ActionDetailsArray**](ActionDetailsArray.md) | | [optional]
|
7
|
+
**cid** | **String** | Confirmation ID. | [optional]
|
8
|
+
**ddid** | **String** | Destination Device ID. | [optional]
|
9
|
+
**sdid** | **String** | Source Device ID. | [optional]
|
10
|
+
**ts** | **Integer** | Timestamp (past, present or future). Defaults to current time if not provided. | [optional]
|
11
|
+
**type** | **String** | Type. | [optional] [default to "action"]
|
12
|
+
|
13
|
+
|
data/docs/ActionOut.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# ArtikCloud::ActionOut
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**mid** | **String** | Message ID. | [optional]
|
7
|
+
**uid** | **String** | User ID. | [optional]
|
8
|
+
**sdtid** | **String** | Source Device Type ID. | [optional]
|
9
|
+
**cts** | **Integer** | Created Timestamp (past, present or future). Defaults to current time if not provided. | [optional]
|
10
|
+
**mv** | **Integer** | Manifest Version. | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# ArtikCloud::AggregateData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**count** | **Integer** | | [optional]
|
7
|
+
**max** | **Float** | | [optional]
|
8
|
+
**mean** | **Float** | | [optional]
|
9
|
+
**min** | **Float** | | [optional]
|
10
|
+
**sum** | **Float** | | [optional]
|
11
|
+
**variance** | **Float** | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# ArtikCloud::AggregatesHistogramData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**count** | **Integer** | | [optional]
|
7
|
+
**max** | **Float** | | [optional]
|
8
|
+
**mean** | **Float** | | [optional]
|
9
|
+
**min** | **Float** | | [optional]
|
10
|
+
**sum** | **Float** | | [optional]
|
11
|
+
**ts** | **Integer** | | [optional]
|
12
|
+
**variance** | **Float** | | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# ArtikCloud::AggregatesHistogramResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**Array<AggregatesHistogramData>**](AggregatesHistogramData.md) | | [optional]
|
7
|
+
**end_date** | **Integer** | | [optional]
|
8
|
+
**field** | **String** | | [optional]
|
9
|
+
**interval** | **String** | | [optional]
|
10
|
+
**sdid** | **String** | | [optional]
|
11
|
+
**size** | **Integer** | | [optional]
|
12
|
+
**start_date** | **Integer** | | [optional]
|
13
|
+
|
14
|
+
|