artikcloud 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +65 -0
  4. data/LICENSE +202 -0
  5. data/README.md +230 -0
  6. data/artikcloud.gemspec +32 -0
  7. data/docs/AckEnvelope.md +8 -0
  8. data/docs/Acknowledgement.md +11 -0
  9. data/docs/ActionDetails.md +9 -0
  10. data/docs/ActionDetailsArray.md +8 -0
  11. data/docs/ActionIn.md +13 -0
  12. data/docs/ActionOut.md +12 -0
  13. data/docs/AggregateData.md +13 -0
  14. data/docs/AggregatesHistogramData.md +14 -0
  15. data/docs/AggregatesHistogramResponse.md +14 -0
  16. data/docs/AggregatesResponse.md +13 -0
  17. data/docs/AppProperties.md +10 -0
  18. data/docs/CheckTokenMessage.md +8 -0
  19. data/docs/CheckTokenResponse.md +8 -0
  20. data/docs/Device.md +21 -0
  21. data/docs/DeviceArray.md +8 -0
  22. data/docs/DeviceEnvelope.md +8 -0
  23. data/docs/DeviceRegCompleteRequest.md +8 -0
  24. data/docs/DeviceRegConfirmUserRequest.md +10 -0
  25. data/docs/DeviceRegConfirmUserResponse.md +8 -0
  26. data/docs/DeviceRegConfirmUserResponseEnvelope.md +8 -0
  27. data/docs/DeviceRegStatusResponse.md +9 -0
  28. data/docs/DeviceRegStatusResponseEnvelope.md +8 -0
  29. data/docs/DeviceToken.md +11 -0
  30. data/docs/DeviceTokenEnvelope.md +8 -0
  31. data/docs/DeviceType.md +25 -0
  32. data/docs/DeviceTypeArray.md +8 -0
  33. data/docs/DeviceTypeEnvelope.md +8 -0
  34. data/docs/DeviceTypesApi.md +284 -0
  35. data/docs/DeviceTypesEnvelope.md +11 -0
  36. data/docs/DevicesApi.md +382 -0
  37. data/docs/DevicesEnvelope.md +11 -0
  38. data/docs/ErrorEnvelope.md +8 -0
  39. data/docs/ExportApi.md +225 -0
  40. data/docs/ExportData.md +14 -0
  41. data/docs/ExportDataArray.md +8 -0
  42. data/docs/ExportHistoryResponse.md +11 -0
  43. data/docs/ExportNormalizedMessagesResponse.md +20 -0
  44. data/docs/ExportRequest.md +15 -0
  45. data/docs/ExportRequestData.md +18 -0
  46. data/docs/ExportRequestInfo.md +17 -0
  47. data/docs/ExportRequestResponse.md +8 -0
  48. data/docs/ExportResponse.md +18 -0
  49. data/docs/ExportStatusResponse.md +12 -0
  50. data/docs/FieldPath.md +8 -0
  51. data/docs/FieldPresence.md +8 -0
  52. data/docs/FieldPresenceEnvelope.md +14 -0
  53. data/docs/FieldsActions.md +9 -0
  54. data/docs/ManifestProperties.md +8 -0
  55. data/docs/ManifestPropertiesEnvelope.md +8 -0
  56. data/docs/ManifestVersions.md +8 -0
  57. data/docs/ManifestVersionsEnvelope.md +8 -0
  58. data/docs/MessageAction.md +12 -0
  59. data/docs/MessageID.md +8 -0
  60. data/docs/MessageIDEnvelope.md +8 -0
  61. data/docs/MessageIn.md +13 -0
  62. data/docs/MessageOut.md +12 -0
  63. data/docs/MessagesApi.md +382 -0
  64. data/docs/NonEmptyString.md +8 -0
  65. data/docs/NormalizedMessage.md +15 -0
  66. data/docs/NormalizedMessagesEnvelope.md +17 -0
  67. data/docs/OutputRule.md +21 -0
  68. data/docs/PropertiesEnvelope.md +8 -0
  69. data/docs/RefreshTokenResponse.md +11 -0
  70. data/docs/RegisterMessage.md +12 -0
  71. data/docs/RegistrationsApi.md +167 -0
  72. data/docs/RuleArray.md +8 -0
  73. data/docs/RuleCreationInfo.md +11 -0
  74. data/docs/RuleEnvelope.md +8 -0
  75. data/docs/RuleError.md +11 -0
  76. data/docs/RuleUpdateInfo.md +11 -0
  77. data/docs/RuleWarningOutput.md +9 -0
  78. data/docs/RulesApi.md +226 -0
  79. data/docs/RulesEnvelope.md +11 -0
  80. data/docs/Tag.md +9 -0
  81. data/docs/TagArray.md +8 -0
  82. data/docs/TagsApi.md +169 -0
  83. data/docs/TagsEnvelope.md +8 -0
  84. data/docs/Token.md +11 -0
  85. data/docs/TokenRequest.md +8 -0
  86. data/docs/TokenResponse.md +8 -0
  87. data/docs/TokensApi.md +117 -0
  88. data/docs/UnregisterDeviceResponse.md +18 -0
  89. data/docs/UnregisterDeviceResponseEnvelope.md +8 -0
  90. data/docs/User.md +14 -0
  91. data/docs/UserEnvelope.md +8 -0
  92. data/docs/UsersApi.md +474 -0
  93. data/docs/WebSocketError.md +10 -0
  94. data/git_push.sh +52 -0
  95. data/lib/artikcloud/api/device_types_api.rb +340 -0
  96. data/lib/artikcloud/api/devices_api.rb +450 -0
  97. data/lib/artikcloud/api/export_api.rb +269 -0
  98. data/lib/artikcloud/api/messages_api.rb +468 -0
  99. data/lib/artikcloud/api/registrations_api.rb +205 -0
  100. data/lib/artikcloud/api/rules_api.rb +276 -0
  101. data/lib/artikcloud/api/tags_api.rb +209 -0
  102. data/lib/artikcloud/api/tokens_api.rb +152 -0
  103. data/lib/artikcloud/api/users_api.rb +552 -0
  104. data/lib/artikcloud/api_client.rb +336 -0
  105. data/lib/artikcloud/api_error.rb +38 -0
  106. data/lib/artikcloud/configuration.rb +170 -0
  107. data/lib/artikcloud/models/ack_envelope.rb +164 -0
  108. data/lib/artikcloud/models/acknowledgement.rb +198 -0
  109. data/lib/artikcloud/models/action_details.rb +178 -0
  110. data/lib/artikcloud/models/action_details_array.rb +166 -0
  111. data/lib/artikcloud/models/action_in.rb +221 -0
  112. data/lib/artikcloud/models/action_out.rb +209 -0
  113. data/lib/artikcloud/models/aggregate_data.rb +214 -0
  114. data/lib/artikcloud/models/aggregates_histogram_data.rb +224 -0
  115. data/lib/artikcloud/models/aggregates_histogram_response.rb +226 -0
  116. data/lib/artikcloud/models/aggregates_response.rb +216 -0
  117. data/lib/artikcloud/models/app_properties.rb +184 -0
  118. data/lib/artikcloud/models/check_token_message.rb +164 -0
  119. data/lib/artikcloud/models/check_token_response.rb +164 -0
  120. data/lib/artikcloud/models/device.rb +310 -0
  121. data/lib/artikcloud/models/device_array.rb +166 -0
  122. data/lib/artikcloud/models/device_envelope.rb +164 -0
  123. data/lib/artikcloud/models/device_reg_complete_request.rb +165 -0
  124. data/lib/artikcloud/models/device_reg_confirm_user_request.rb +187 -0
  125. data/lib/artikcloud/models/device_reg_confirm_user_response.rb +165 -0
  126. data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +164 -0
  127. data/lib/artikcloud/models/device_reg_status_response.rb +176 -0
  128. data/lib/artikcloud/models/device_reg_status_response_envelope.rb +164 -0
  129. data/lib/artikcloud/models/device_token.rb +194 -0
  130. data/lib/artikcloud/models/device_token_envelope.rb +164 -0
  131. data/lib/artikcloud/models/device_type.rb +353 -0
  132. data/lib/artikcloud/models/device_type_array.rb +166 -0
  133. data/lib/artikcloud/models/device_type_envelope.rb +164 -0
  134. data/lib/artikcloud/models/device_types_envelope.rb +194 -0
  135. data/lib/artikcloud/models/devices_envelope.rb +194 -0
  136. data/lib/artikcloud/models/error_envelope.rb +165 -0
  137. data/lib/artikcloud/models/export_data.rb +225 -0
  138. data/lib/artikcloud/models/export_data_array.rb +166 -0
  139. data/lib/artikcloud/models/export_history_response.rb +194 -0
  140. data/lib/artikcloud/models/export_normalized_messages_response.rb +284 -0
  141. data/lib/artikcloud/models/export_request.rb +234 -0
  142. data/lib/artikcloud/models/export_request_data.rb +275 -0
  143. data/lib/artikcloud/models/export_request_info.rb +264 -0
  144. data/lib/artikcloud/models/export_request_response.rb +164 -0
  145. data/lib/artikcloud/models/export_response.rb +275 -0
  146. data/lib/artikcloud/models/export_status_response.rb +205 -0
  147. data/lib/artikcloud/models/field_path.rb +166 -0
  148. data/lib/artikcloud/models/field_presence.rb +164 -0
  149. data/lib/artikcloud/models/field_presence_envelope.rb +226 -0
  150. data/lib/artikcloud/models/fields_actions.rb +180 -0
  151. data/lib/artikcloud/models/manifest_properties.rb +164 -0
  152. data/lib/artikcloud/models/manifest_properties_envelope.rb +164 -0
  153. data/lib/artikcloud/models/manifest_versions.rb +166 -0
  154. data/lib/artikcloud/models/manifest_versions_envelope.rb +164 -0
  155. data/lib/artikcloud/models/message_action.rb +210 -0
  156. data/lib/artikcloud/models/message_id.rb +165 -0
  157. data/lib/artikcloud/models/message_id_envelope.rb +164 -0
  158. data/lib/artikcloud/models/message_in.rb +224 -0
  159. data/lib/artikcloud/models/message_out.rb +209 -0
  160. data/lib/artikcloud/models/non_empty_string.rb +164 -0
  161. data/lib/artikcloud/models/normalized_message.rb +236 -0
  162. data/lib/artikcloud/models/normalized_messages_envelope.rb +256 -0
  163. data/lib/artikcloud/models/output_rule.rb +296 -0
  164. data/lib/artikcloud/models/properties_envelope.rb +164 -0
  165. data/lib/artikcloud/models/refresh_token_response.rb +194 -0
  166. data/lib/artikcloud/models/register_message.rb +211 -0
  167. data/lib/artikcloud/models/rule_array.rb +166 -0
  168. data/lib/artikcloud/models/rule_creation_info.rb +200 -0
  169. data/lib/artikcloud/models/rule_envelope.rb +164 -0
  170. data/lib/artikcloud/models/rule_error.rb +196 -0
  171. data/lib/artikcloud/models/rule_update_info.rb +200 -0
  172. data/lib/artikcloud/models/rule_warning_output.rb +174 -0
  173. data/lib/artikcloud/models/rules_envelope.rb +194 -0
  174. data/lib/artikcloud/models/tag.rb +176 -0
  175. data/lib/artikcloud/models/tag_array.rb +166 -0
  176. data/lib/artikcloud/models/tags_envelope.rb +164 -0
  177. data/lib/artikcloud/models/token.rb +194 -0
  178. data/lib/artikcloud/models/token_request.rb +164 -0
  179. data/lib/artikcloud/models/token_response.rb +164 -0
  180. data/lib/artikcloud/models/unregister_device_response.rb +275 -0
  181. data/lib/artikcloud/models/unregister_device_response_envelope.rb +164 -0
  182. data/lib/artikcloud/models/user.rb +224 -0
  183. data/lib/artikcloud/models/user_envelope.rb +164 -0
  184. data/lib/artikcloud/models/web_socket_error.rb +187 -0
  185. data/lib/artikcloud/version.rb +17 -0
  186. data/lib/artikcloud.rb +128 -0
  187. data/pom.xml +60 -0
  188. data/spec/api/messages_api_spec.rb +79 -0
  189. data/spec/api/tokens_api_spec.rb +79 -0
  190. data/spec/api/users_api_spec.rb +50 -0
  191. data/spec/spec.opts +4 -0
  192. data/spec/spec_helper.rb +36 -0
  193. metadata +420 -0
@@ -0,0 +1,13 @@
1
+ # ArtikCloud::AggregatesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<AggregateData>**](AggregateData.md) | | [optional]
7
+ **end_date** | **Integer** | | [optional]
8
+ **field** | **String** | | [optional]
9
+ **sdid** | **String** | | [optional]
10
+ **size** | **Integer** | | [optional]
11
+ **start_date** | **Integer** | | [optional]
12
+
13
+
@@ -0,0 +1,10 @@
1
+ # ArtikCloud::AppProperties
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **uid** | **String** | | [optional]
7
+ **aid** | **String** | | [optional]
8
+ **properties** | **String** | |
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::CheckTokenMessage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **message** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::CheckTokenResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**CheckTokenMessage**](CheckTokenMessage.md) | | [optional]
7
+
8
+
data/docs/Device.md ADDED
@@ -0,0 +1,21 @@
1
+ # ArtikCloud::Device
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Device ID | [optional]
7
+ **uid** | **String** | User ID | [optional]
8
+ **dtid** | **String** | Device Type ID | [optional]
9
+ **name** | **String** | Name | [optional]
10
+ **manifest_version** | **Integer** | Manifest Version | [optional]
11
+ **manifest_version_policy** | **String** | Manifest Version Policy (LATEST, DEVICE) | [optional]
12
+ **need_provider_auth** | **BOOLEAN** | Needs Provider Authentication | [optional]
13
+ **properties** | **Hash<String, Object>** | | [optional]
14
+ **created_on** | **Integer** | Created On (milliseconds since epoch) | [optional]
15
+ **connected** | **BOOLEAN** | Is Connected | [optional]
16
+ **certificate_info** | **String** | Certificate Info (if any) | [optional]
17
+ **certificate_signature** | **String** | Certificate Signature (if any) | [optional]
18
+ **eid** | **String** | External ID (if any) | [optional]
19
+ **provider_credentials** | **Hash<String, Object>** | | [optional]
20
+
21
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceArray
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **devices** | [**Array<Device>**](Device.md) | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Device**](Device.md) | |
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceRegCompleteRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **nonce** | **String** | Nonce obtained from the initial registration request. | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # ArtikCloud::DeviceRegConfirmUserRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **device_id** | **String** | Device ID. Optional if deviceName is present | [optional]
7
+ **device_name** | **String** | Device Name. Optional if deviceId is present | [optional]
8
+ **pin** | **String** | Pin obtained in the registrations call. | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceRegConfirmUserResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **rid** | **String** | The registration request id. | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceRegConfirmUserResponseEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**DeviceRegConfirmUserResponse**](DeviceRegConfirmUserResponse.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # ArtikCloud::DeviceRegStatusResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **did** | **String** | The created or existing device id. | [optional]
7
+ **status** | **String** | Status of the ongoing device registration request. | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceRegStatusResponseEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**DeviceRegStatusResponse**](DeviceRegStatusResponse.md) | | [optional]
7
+
8
+
@@ -0,0 +1,11 @@
1
+ # ArtikCloud::DeviceToken
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **access_token** | **String** | |
7
+ **uid** | **String** | |
8
+ **did** | **String** | |
9
+ **cid** | **String** | |
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceTokenEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**DeviceToken**](DeviceToken.md) | |
7
+
8
+
@@ -0,0 +1,25 @@
1
+ # ArtikCloud::DeviceType
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Device Type ID. | [optional]
7
+ **unique_name** | **String** | Unique Name. | [optional]
8
+ **latest_version** | **Integer** | Latest Manifest version. | [optional]
9
+ **last_updated** | **Integer** | | [optional]
10
+ **name** | **String** | Name. | [optional]
11
+ **description** | **String** | Description. | [optional]
12
+ **uid** | **String** | User ID. | [optional]
13
+ **oid** | **String** | Organization ID. | [optional]
14
+ **has_cloud_connector** | **BOOLEAN** | Uses Cloud Connectors SDK | [optional]
15
+ **approved** | **BOOLEAN** | Approval status. | [optional]
16
+ **published** | **BOOLEAN** | Published status. | [optional]
17
+ **protected** | **BOOLEAN** | Protected status. | [optional]
18
+ **in_store** | **BOOLEAN** | In Store. | [optional]
19
+ **owned_by_current_user** | **BOOLEAN** | Does the current user own a device of this device type | [optional]
20
+ **tags** | [**Array<Tag>**](Tag.md) | Tags | [optional]
21
+ **rsp** | **BOOLEAN** | Require Secure Device Registration (SDR) Protocol. | [optional]
22
+ **issuer_dn** | **String** | Issuer Distinguished Name (Used in SDR) | [optional]
23
+ **vid** | **String** | Vendor ID. (Used in SDR) | [optional]
24
+
25
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceTypeArray
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **device_types** | [**Array<DeviceType>**](DeviceType.md) | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # ArtikCloud::DeviceTypeEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**DeviceType**](DeviceType.md) | |
7
+
8
+
@@ -0,0 +1,284 @@
1
+ # ArtikCloud::DeviceTypesApi
2
+
3
+ All URIs are relative to *https://api.artik.cloud/v1.1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_available_manifest_versions**](DeviceTypesApi.md#get_available_manifest_versions) | **GET** /devicetypes/{deviceTypeId}/availablemanifestversions | Get Available Manifest Versions
8
+ [**get_device_type**](DeviceTypesApi.md#get_device_type) | **GET** /devicetypes/{deviceTypeId} | Get Device Type
9
+ [**get_device_types**](DeviceTypesApi.md#get_device_types) | **GET** /devicetypes | Get Device Types
10
+ [**get_latest_manifest_properties**](DeviceTypesApi.md#get_latest_manifest_properties) | **GET** /devicetypes/{deviceTypeId}/manifests/latest/properties | Get Latest Manifest Properties
11
+ [**get_manifest_properties**](DeviceTypesApi.md#get_manifest_properties) | **GET** /devicetypes/{deviceTypeId}/manifests/{version}/properties | Get manifest properties
12
+
13
+
14
+ # **get_available_manifest_versions**
15
+ > ManifestVersionsEnvelope get_available_manifest_versions(device_type_id)
16
+
17
+ Get Available Manifest Versions
18
+
19
+ Get a Device Type's available manifest versions
20
+
21
+ ### Example
22
+ ```ruby
23
+ # load the gem
24
+ require 'artikcloud'
25
+ # setup authorization
26
+ ArtikCloud.configure do |config|
27
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
28
+ config.access_token = 'YOUR ACCESS TOKEN'
29
+ end
30
+
31
+ api_instance = ArtikCloud::DeviceTypesApi.new
32
+
33
+ device_type_id = "device_type_id_example" # String | deviceTypeId
34
+
35
+
36
+ begin
37
+ #Get Available Manifest Versions
38
+ result = api_instance.get_available_manifest_versions(device_type_id)
39
+ p result
40
+ rescue ArtikCloud::ApiError => e
41
+ puts "Exception when calling DeviceTypesApi->get_available_manifest_versions: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **device_type_id** | **String**| deviceTypeId |
50
+
51
+ ### Return type
52
+
53
+ [**ManifestVersionsEnvelope**](ManifestVersionsEnvelope.md)
54
+
55
+ ### Authorization
56
+
57
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
58
+
59
+ ### HTTP reuqest headers
60
+
61
+ - **Content-Type**: Not defined
62
+ - **Accept**: application/json
63
+
64
+
65
+
66
+ # **get_device_type**
67
+ > DeviceTypeEnvelope get_device_type(device_type_id)
68
+
69
+ Get Device Type
70
+
71
+ Retrieves a Device Type
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'artikcloud'
77
+ # setup authorization
78
+ ArtikCloud.configure do |config|
79
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
80
+ config.access_token = 'YOUR ACCESS TOKEN'
81
+ end
82
+
83
+ api_instance = ArtikCloud::DeviceTypesApi.new
84
+
85
+ device_type_id = "device_type_id_example" # String | deviceTypeId
86
+
87
+
88
+ begin
89
+ #Get Device Type
90
+ result = api_instance.get_device_type(device_type_id)
91
+ p result
92
+ rescue ArtikCloud::ApiError => e
93
+ puts "Exception when calling DeviceTypesApi->get_device_type: #{e}"
94
+ end
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+ Name | Type | Description | Notes
100
+ ------------- | ------------- | ------------- | -------------
101
+ **device_type_id** | **String**| deviceTypeId |
102
+
103
+ ### Return type
104
+
105
+ [**DeviceTypeEnvelope**](DeviceTypeEnvelope.md)
106
+
107
+ ### Authorization
108
+
109
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
110
+
111
+ ### HTTP reuqest headers
112
+
113
+ - **Content-Type**: Not defined
114
+ - **Accept**: application/json
115
+
116
+
117
+
118
+ # **get_device_types**
119
+ > DeviceTypesEnvelope get_device_types(name, opts)
120
+
121
+ Get Device Types
122
+
123
+ Retrieves Device Types
124
+
125
+ ### Example
126
+ ```ruby
127
+ # load the gem
128
+ require 'artikcloud'
129
+ # setup authorization
130
+ ArtikCloud.configure do |config|
131
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
132
+ config.access_token = 'YOUR ACCESS TOKEN'
133
+ end
134
+
135
+ api_instance = ArtikCloud::DeviceTypesApi.new
136
+
137
+ name = "name_example" # String | Device Type name
138
+
139
+ opts = {
140
+ offset: 56, # Integer | Offset for pagination.
141
+ count: 56, # Integer | Desired count of items in the result set
142
+ tags: "tags_example" # String | Elements tagged with the list of tags. (comma separated)
143
+ }
144
+
145
+ begin
146
+ #Get Device Types
147
+ result = api_instance.get_device_types(name, opts)
148
+ p result
149
+ rescue ArtikCloud::ApiError => e
150
+ puts "Exception when calling DeviceTypesApi->get_device_types: #{e}"
151
+ end
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ Name | Type | Description | Notes
157
+ ------------- | ------------- | ------------- | -------------
158
+ **name** | **String**| Device Type name |
159
+ **offset** | **Integer**| Offset for pagination. | [optional]
160
+ **count** | **Integer**| Desired count of items in the result set | [optional]
161
+ **tags** | **String**| Elements tagged with the list of tags. (comma separated) | [optional]
162
+
163
+ ### Return type
164
+
165
+ [**DeviceTypesEnvelope**](DeviceTypesEnvelope.md)
166
+
167
+ ### Authorization
168
+
169
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
170
+
171
+ ### HTTP reuqest headers
172
+
173
+ - **Content-Type**: Not defined
174
+ - **Accept**: application/json
175
+
176
+
177
+
178
+ # **get_latest_manifest_properties**
179
+ > ManifestPropertiesEnvelope get_latest_manifest_properties(device_type_id)
180
+
181
+ Get Latest Manifest Properties
182
+
183
+ Get a Device Type's manifest properties for the latest version.
184
+
185
+ ### Example
186
+ ```ruby
187
+ # load the gem
188
+ require 'artikcloud'
189
+ # setup authorization
190
+ ArtikCloud.configure do |config|
191
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
192
+ config.access_token = 'YOUR ACCESS TOKEN'
193
+ end
194
+
195
+ api_instance = ArtikCloud::DeviceTypesApi.new
196
+
197
+ device_type_id = "device_type_id_example" # String | Device Type ID.
198
+
199
+
200
+ begin
201
+ #Get Latest Manifest Properties
202
+ result = api_instance.get_latest_manifest_properties(device_type_id)
203
+ p result
204
+ rescue ArtikCloud::ApiError => e
205
+ puts "Exception when calling DeviceTypesApi->get_latest_manifest_properties: #{e}"
206
+ end
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+ Name | Type | Description | Notes
212
+ ------------- | ------------- | ------------- | -------------
213
+ **device_type_id** | **String**| Device Type ID. |
214
+
215
+ ### Return type
216
+
217
+ [**ManifestPropertiesEnvelope**](ManifestPropertiesEnvelope.md)
218
+
219
+ ### Authorization
220
+
221
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
222
+
223
+ ### HTTP reuqest headers
224
+
225
+ - **Content-Type**: Not defined
226
+ - **Accept**: application/json
227
+
228
+
229
+
230
+ # **get_manifest_properties**
231
+ > ManifestPropertiesEnvelope get_manifest_properties(device_type_id, version)
232
+
233
+ Get manifest properties
234
+
235
+ Get a Device Type's manifest properties for a specific version.
236
+
237
+ ### Example
238
+ ```ruby
239
+ # load the gem
240
+ require 'artikcloud'
241
+ # setup authorization
242
+ ArtikCloud.configure do |config|
243
+ # Configure OAuth2 access token for authorization: artikcloud_oauth
244
+ config.access_token = 'YOUR ACCESS TOKEN'
245
+ end
246
+
247
+ api_instance = ArtikCloud::DeviceTypesApi.new
248
+
249
+ device_type_id = "device_type_id_example" # String | Device Type ID.
250
+
251
+ version = "version_example" # String | Manifest Version.
252
+
253
+
254
+ begin
255
+ #Get manifest properties
256
+ result = api_instance.get_manifest_properties(device_type_id, version)
257
+ p result
258
+ rescue ArtikCloud::ApiError => e
259
+ puts "Exception when calling DeviceTypesApi->get_manifest_properties: #{e}"
260
+ end
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+ Name | Type | Description | Notes
266
+ ------------- | ------------- | ------------- | -------------
267
+ **device_type_id** | **String**| Device Type ID. |
268
+ **version** | **String**| Manifest Version. |
269
+
270
+ ### Return type
271
+
272
+ [**ManifestPropertiesEnvelope**](ManifestPropertiesEnvelope.md)
273
+
274
+ ### Authorization
275
+
276
+ [artikcloud_oauth](../README.md#artikcloud_oauth)
277
+
278
+ ### HTTP reuqest headers
279
+
280
+ - **Content-Type**: Not defined
281
+ - **Accept**: application/json
282
+
283
+
284
+
@@ -0,0 +1,11 @@
1
+ # ArtikCloud::DeviceTypesEnvelope
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **total** | **Integer** | |
7
+ **count** | **Integer** | |
8
+ **offset** | **Integer** | |
9
+ **data** | [**DeviceTypeArray**](DeviceTypeArray.md) | | [optional]
10
+
11
+