Skip to content

Commit d537c8b

Browse files
committed
Updated with build 07f42ad4-118f-492b-8f66-f897dc39abf4 from OmniCore-SDK-Generator commit 5d955e7f51ed04b7f80d7e47c5c2b617894f9556
1 parent d9626c8 commit d537c8b

File tree

148 files changed

+490
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+490
-325
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
OmniCoreModelAndStateManagementApi - JavaScript client for omni_core_model_and_state_management_api
44
This is an OmniCore Model and State Management server.
55

6-
- API version: 1.8.10
7-
- Package version: 1.8.10
6+
- API version: 1.8.12
7+
- Package version: 1.8.12
88
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
99
For more information, please visit [http://www.korewireless.com](http://www.korewireless.com)
1010

@@ -139,8 +139,8 @@ Class | Method | HTTP request | Description
139139
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**getConfig**](docs/DeviceApi.md#getConfig) | **GET** /omnicore/subscriptions/{subscriptionid}/registries/{registryId}/devices/{deviceId}/configVersions |
140140
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**getDevice**](docs/DeviceApi.md#getDevice) | **GET** /omnicore/subscriptions/{subscriptionId}/registries/{registryId}/devices/{deviceId} |
141141
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**getDevices**](docs/DeviceApi.md#getDevices) | **GET** /omnicore/subscriptions/{subscriptionId}/registries/{registryId}/devices |
142+
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**getDevicesLastSeen**](docs/DeviceApi.md#getDevicesLastSeen) | **GET** /omnicore/subscriptions/{subscriptionId}/devices |
142143
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**getStates**](docs/DeviceApi.md#getStates) | **GET** /omnicore/subscriptions/{subscriptionid}/registries/{registryId}/devices/{deviceId}/states |
143-
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**getSubscriptionDevices**](docs/DeviceApi.md#getSubscriptionDevices) | **GET** /omnicore/subscriptions/{subscriptionId}/devices |
144144
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**sendCommandToDevice**](docs/DeviceApi.md#sendCommandToDevice) | **POST** /omnicore/subscriptions/{subscriptionid}/registries/{registryId}/devices/{deviceId}/sendCommandToDevice |
145145
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**unBindDevice**](docs/DeviceApi.md#unBindDevice) | **POST** /omnicore/subscriptions/{subscriptionId}/registries/{registryId}/unbindDeviceFromGateway |
146146
*OmniCoreModelAndStateManagementApi.DeviceApi* | [**unBindDevices**](docs/DeviceApi.md#unBindDevices) | **POST** /omnicore/subscriptions/{subscriptionId}/registries/{registryId}/unbindDevicesFromGateway |

docs/DeviceApi.md

+39-39
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Method | HTTP request | Description
1212
[**getConfig**](DeviceApi.md#getConfig) | **GET** /omnicore/subscriptions/{subscriptionid}/registries/{registryId}/devices/{deviceId}/configVersions |
1313
[**getDevice**](DeviceApi.md#getDevice) | **GET** /omnicore/subscriptions/{subscriptionId}/registries/{registryId}/devices/{deviceId} |
1414
[**getDevices**](DeviceApi.md#getDevices) | **GET** /omnicore/subscriptions/{subscriptionId}/registries/{registryId}/devices |
15+
[**getDevicesLastSeen**](DeviceApi.md#getDevicesLastSeen) | **GET** /omnicore/subscriptions/{subscriptionId}/devices |
1516
[**getStates**](DeviceApi.md#getStates) | **GET** /omnicore/subscriptions/{subscriptionid}/registries/{registryId}/devices/{deviceId}/states |
16-
[**getSubscriptionDevices**](DeviceApi.md#getSubscriptionDevices) | **GET** /omnicore/subscriptions/{subscriptionId}/devices |
1717
[**sendCommandToDevice**](DeviceApi.md#sendCommandToDevice) | **POST** /omnicore/subscriptions/{subscriptionid}/registries/{registryId}/devices/{deviceId}/sendCommandToDevice |
1818
[**unBindDevice**](DeviceApi.md#unBindDevice) | **POST** /omnicore/subscriptions/{subscriptionId}/registries/{registryId}/unbindDeviceFromGateway |
1919
[**unBindDevices**](DeviceApi.md#unBindDevices) | **POST** /omnicore/subscriptions/{subscriptionId}/registries/{registryId}/unbindDevicesFromGateway |
@@ -509,13 +509,13 @@ Name | Type | Description | Notes
509509
- **Accept**: application/json
510510

511511

512-
## getStates
512+
## getDevicesLastSeen
513513

514-
> ListDeviceStatesResponse getStates(subscriptionid, registryId, deviceId, opts)
514+
> ListDevicesOnlineResponse getDevicesLastSeen(subscriptionId, opts)
515515
516516

517517

518-
Get States Of Devices
518+
Get devices under a subscription sorted by last seen
519519

520520
### Example
521521

@@ -532,13 +532,19 @@ let bearerAuth = defaultClient.authentications['bearerAuth'];
532532
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
533533

534534
let apiInstance = new OmniCoreModelAndStateManagementApi.DeviceApi();
535-
let subscriptionid = "subscriptionid_example"; // String | Subscription ID
536-
let registryId = "registryId_example"; // String | Registry ID
537-
let deviceId = "deviceId_example"; // String | Device ID
535+
let subscriptionId = "subscriptionId_example"; // String | Subscription ID
538536
let opts = {
539-
'numStates': 56 // Number | The number of states to list. States are listed in descending order of update time. The maximum number of states retained is 10. If this value is zero, it will return all the states available.
537+
'pageNumber': 56, // Number | Page Number
538+
'pageSize': 56, // Number | The maximum number of devices to return in the response. If this value is zero, the service will select a default size.
539+
'fieldMask': "fieldMask_example", // String | The fields of the Device resource to be returned to the response. The fields id and numId are always returned, along with any other fields specified. A comma-separated list of fully qualified names of fields. Example:
540+
'sortByClientOnline': true, // Boolean | Set to true to return devices sorted by last heartbeat
541+
'deviceIds': ["null"], // [String] | A list of device string IDs. For example, ['device0', 'device12']. If empty, this field is ignored. Maximum IDs: 10,000
542+
'deviceNumIds': ["null"], // [String] | A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.
543+
'gatewayListOptionsAssociationsDeviceId': "gatewayListOptionsAssociationsDeviceId_example", // String | If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound.
544+
'gatewayListOptionsAssociationsGatewayId': "gatewayListOptionsAssociationsGatewayId_example", // String | If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned
545+
'gatewayListOptionsGatewayType': "gatewayListOptionsGatewayType_example" // String | If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.
540546
};
541-
apiInstance.getStates(subscriptionid, registryId, deviceId, opts, (error, data, response) => {
547+
apiInstance.getDevicesLastSeen(subscriptionId, opts, (error, data, response) => {
542548
if (error) {
543549
console.error(error);
544550
} else {
@@ -552,14 +558,20 @@ apiInstance.getStates(subscriptionid, registryId, deviceId, opts, (error, data,
552558

553559
Name | Type | Description | Notes
554560
------------- | ------------- | ------------- | -------------
555-
**subscriptionid** | **String**| Subscription ID |
556-
**registryId** | **String**| Registry ID |
557-
**deviceId** | **String**| Device ID |
558-
**numStates** | **Number**| The number of states to list. States are listed in descending order of update time. The maximum number of states retained is 10. If this value is zero, it will return all the states available. | [optional]
561+
**subscriptionId** | **String**| Subscription ID |
562+
**pageNumber** | **Number**| Page Number | [optional]
563+
**pageSize** | **Number**| The maximum number of devices to return in the response. If this value is zero, the service will select a default size. | [optional]
564+
**fieldMask** | **String**| The fields of the Device resource to be returned to the response. The fields id and numId are always returned, along with any other fields specified. A comma-separated list of fully qualified names of fields. Example: | [optional]
565+
**sortByClientOnline** | **Boolean**| Set to true to return devices sorted by last heartbeat | [optional]
566+
**deviceIds** | [**[String]**](String.md)| A list of device string IDs. For example, ['device0', 'device12']. If empty, this field is ignored. Maximum IDs: 10,000 | [optional]
567+
**deviceNumIds** | [**[String]**](String.md)| A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000. | [optional]
568+
**gatewayListOptionsAssociationsDeviceId** | **String**| If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound. | [optional]
569+
**gatewayListOptionsAssociationsGatewayId** | **String**| If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned | [optional]
570+
**gatewayListOptionsGatewayType** | **String**| If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned. | [optional]
559571

560572
### Return type
561573

562-
[**ListDeviceStatesResponse**](ListDeviceStatesResponse.md)
574+
[**ListDevicesOnlineResponse**](ListDevicesOnlineResponse.md)
563575

564576
### Authorization
565577

@@ -571,13 +583,13 @@ Name | Type | Description | Notes
571583
- **Accept**: application/json
572584

573585

574-
## getSubscriptionDevices
586+
## getStates
575587

576-
> ListDevicesOnlineResponse getSubscriptionDevices(subscriptionId, opts)
588+
> ListDeviceStatesResponse getStates(subscriptionid, registryId, deviceId, opts)
577589
578590

579591

580-
Get all devices under a subscription
592+
Get States Of Devices
581593

582594
### Example
583595

@@ -594,19 +606,13 @@ let bearerAuth = defaultClient.authentications['bearerAuth'];
594606
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
595607

596608
let apiInstance = new OmniCoreModelAndStateManagementApi.DeviceApi();
597-
let subscriptionId = "subscriptionId_example"; // String | Subscription ID
609+
let subscriptionid = "subscriptionid_example"; // String | Subscription ID
610+
let registryId = "registryId_example"; // String | Registry ID
611+
let deviceId = "deviceId_example"; // String | Device ID
598612
let opts = {
599-
'pageNumber': 56, // Number | Page Number
600-
'pageSize': 56, // Number | The maximum number of devices to return in the response. If this value is zero, the service will select a default size.
601-
'fieldMask': "fieldMask_example", // String | The fields of the Device resource to be returned to the response. The fields id and numId are always returned, along with any other fields specified. A comma-separated list of fully qualified names of fields. Example:
602-
'sortByClientOnline': true, // Boolean | Set to true to return devices sorted by last heartbeat
603-
'deviceIds': ["null"], // [String] | A list of device string IDs. For example, ['device0', 'device12']. If empty, this field is ignored. Maximum IDs: 10,000
604-
'deviceNumIds': ["null"], // [String] | A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.
605-
'gatewayListOptionsAssociationsDeviceId': "gatewayListOptionsAssociationsDeviceId_example", // String | If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound.
606-
'gatewayListOptionsAssociationsGatewayId': "gatewayListOptionsAssociationsGatewayId_example", // String | If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned
607-
'gatewayListOptionsGatewayType': "gatewayListOptionsGatewayType_example" // String | If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.
613+
'numStates': 56 // Number | The number of states to list. States are listed in descending order of update time. The maximum number of states retained is 10. If this value is zero, it will return all the states available.
608614
};
609-
apiInstance.getSubscriptionDevices(subscriptionId, opts, (error, data, response) => {
615+
apiInstance.getStates(subscriptionid, registryId, deviceId, opts, (error, data, response) => {
610616
if (error) {
611617
console.error(error);
612618
} else {
@@ -620,20 +626,14 @@ apiInstance.getSubscriptionDevices(subscriptionId, opts, (error, data, response)
620626

621627
Name | Type | Description | Notes
622628
------------- | ------------- | ------------- | -------------
623-
**subscriptionId** | **String**| Subscription ID |
624-
**pageNumber** | **Number**| Page Number | [optional]
625-
**pageSize** | **Number**| The maximum number of devices to return in the response. If this value is zero, the service will select a default size. | [optional]
626-
**fieldMask** | **String**| The fields of the Device resource to be returned to the response. The fields id and numId are always returned, along with any other fields specified. A comma-separated list of fully qualified names of fields. Example: | [optional]
627-
**sortByClientOnline** | **Boolean**| Set to true to return devices sorted by last heartbeat | [optional]
628-
**deviceIds** | [**[String]**](String.md)| A list of device string IDs. For example, ['device0', 'device12']. If empty, this field is ignored. Maximum IDs: 10,000 | [optional]
629-
**deviceNumIds** | [**[String]**](String.md)| A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000. | [optional]
630-
**gatewayListOptionsAssociationsDeviceId** | **String**| If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound. | [optional]
631-
**gatewayListOptionsAssociationsGatewayId** | **String**| If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned | [optional]
632-
**gatewayListOptionsGatewayType** | **String**| If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned. | [optional]
629+
**subscriptionid** | **String**| Subscription ID |
630+
**registryId** | **String**| Registry ID |
631+
**deviceId** | **String**| Device ID |
632+
**numStates** | **Number**| The number of states to list. States are listed in descending order of update time. The maximum number of states retained is 10. If this value is zero, it will return all the states available. | [optional]
633633

634634
### Return type
635635

636-
[**ListDevicesOnlineResponse**](ListDevicesOnlineResponse.md)
636+
[**ListDeviceStatesResponse**](ListDeviceStatesResponse.md)
637637

638638
### Authorization
639639

docs/DeviceRegistry.md

+12
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,17 @@ Name | Type | Description | Notes
2121
**customOnboardEnabled** | **Boolean** | | [optional]
2222
**numberOfDevices** | **Number** | | [optional] [readonly]
2323
**numberOfGateways** | **Number** | | [optional] [readonly]
24+
**routeTarget** | **String** | | [optional]
25+
26+
27+
28+
## Enum: RouteTargetEnum
29+
30+
31+
* `pubsub` (value: `"pubsub"`)
32+
33+
* `kinesis` (value: `"kinesis"`)
34+
35+
2436

2537

docs/EventNotificationConfig.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**pubsubTopicName** | **String** | PubsubTopicName: A Topic name. For example, `projects/myProject/topics/deviceEvents`. | [optional]
88
**subfolderMatches** | **String** | SubfolderMatches: If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes. | [optional]
9+
**roleArn** | **String** | | [optional]
10+
**region** | **String** | | [optional]
11+
**stream** | **String** | | [optional]
912

1013

docs/NotificationConfig.md

+3
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**pubsubTopicName** | **String** | PubsubTopicName: A Topic name. For example, `projects/myProject/topics/deviceEvents`. | [optional]
8+
**roleArn** | **String** | | [optional]
9+
**region** | **String** | | [optional]
10+
**stream** | **String** | | [optional]
811

912

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "omni_core_model_and_state_management_api",
3-
"version": "1.8.10",
3+
"version": "1.8.12",
44
"description": "This is an OmniCore Model and State Management server.",
55
"license": "Unlicense",
66
"main": "dist/index.js",

src/ApiClient.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OmniCore Model and State Management API
33
* This is an OmniCore Model and State Management server.
44
*
5-
* The version of the OpenAPI document: 1.8.10
5+
* The version of the OpenAPI document: 1.8.12
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,7 +17,7 @@ import querystring from "querystring";
1717

1818
/**
1919
* @module ApiClient
20-
* @version 1.8.10
20+
* @version 1.8.12
2121
*/
2222

2323
/**
@@ -56,7 +56,7 @@ class ApiClient {
5656
* @default {}
5757
*/
5858
this.defaultHeaders = {
59-
'User-Agent': 'OpenAPI-Generator/1.8.10/Javascript'
59+
'User-Agent': 'OpenAPI-Generator/1.8.12/Javascript'
6060
};
6161

6262
/**

0 commit comments

Comments
 (0)