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.
- 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
|
@@ -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
|
+
|
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
|
+
|
data/docs/DeviceArray.md
ADDED
|
@@ -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::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
|
+
|
data/docs/DeviceToken.md
ADDED
|
@@ -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
|
+
|
data/docs/DeviceType.md
ADDED
|
@@ -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,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
|
+
|