Skip to content

Commit

Permalink
Updated with build 802aa032-5441-4f30-bd0a-e17e37706ecf from OmniCore…
Browse files Browse the repository at this point in the history
…-SDK-Generator commit c1a13ace8b90c99a2d2d0d530163fa007e07b5f4
  • Loading branch information
jaisonjayan committed Jun 19, 2023
1 parent 4c9bc62 commit 4dbab46
Show file tree
Hide file tree
Showing 40 changed files with 4,461 additions and 86 deletions.
10 changes: 5 additions & 5 deletions OmniCore.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmniCore", "src\OmniCore\OmniCore.csproj", "{1CB3DA06-D6C6-45E6-BA0C-F9A94BEA2984}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmniCore", "src\OmniCore\OmniCore.csproj", "{A0E4D7B3-9677-4D7E-948E-94CEE0F8D576}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmniCore.Test", "src\OmniCore.Test\OmniCore.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1CB3DA06-D6C6-45E6-BA0C-F9A94BEA2984}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1CB3DA06-D6C6-45E6-BA0C-F9A94BEA2984}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1CB3DA06-D6C6-45E6-BA0C-F9A94BEA2984}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1CB3DA06-D6C6-45E6-BA0C-F9A94BEA2984}.Release|Any CPU.Build.0 = Release|Any CPU
{A0E4D7B3-9677-4D7E-948E-94CEE0F8D576}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0E4D7B3-9677-4D7E-948E-94CEE0F8D576}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0E4D7B3-9677-4D7E-948E-94CEE0F8D576}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0E4D7B3-9677-4D7E-948E-94CEE0F8D576}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is an OmniCore Model and State Management server.
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0
- SDK version: 1.7.2
- SDK version: 1.8.0
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [http://www.korewireless.com](http://www.korewireless.com)

Expand Down Expand Up @@ -125,12 +125,17 @@ Class | Method | HTTP request | Description
*DeviceApi* | [**UpdateConfigurationToDevice**](docs/DeviceApi.md#updateconfigurationtodevice) | **POST** /subscriptions/{subscriptionid}/registries/{registryId}/devices/{deviceId}/updateConfigurationToDevice |
*DeviceApi* | [**UpdateCustomOnboardRequest**](docs/DeviceApi.md#updatecustomonboardrequest) | **POST** /subscriptions/{subscriptionid}/registries/{registryId}/devices/{deviceId}/updateCustomOnboardRequest |
*DeviceApi* | [**UpdateDevice**](docs/DeviceApi.md#updatedevice) | **PATCH** /subscriptions/{subscriptionId}/registries/{registryId}/devices/{deviceId} |
*MetricsApi* | [**GetMetrics**](docs/MetricsApi.md#getmetrics) | **GET** /subscriptions/{subscriptionId}/metrics |
*RegistryApi* | [**CreateRegistry**](docs/RegistryApi.md#createregistry) | **POST** /subscriptions/{subscriptionId}/registries |
*RegistryApi* | [**DeleteRegistry**](docs/RegistryApi.md#deleteregistry) | **DELETE** /subscriptions/{subscriptionId}/registries/{registryId} |
*RegistryApi* | [**GetRegistries**](docs/RegistryApi.md#getregistries) | **GET** /subscriptions/{subscriptionId}/registries |
*RegistryApi* | [**GetRegistry**](docs/RegistryApi.md#getregistry) | **GET** /subscriptions/{subscriptionId}/registries/{registryId} |
*RegistryApi* | [**SendBroadcastToDevices**](docs/RegistryApi.md#sendbroadcasttodevices) | **POST** /subscriptions/{subscriptionid}/registries/{registryId}/sendBroadcastToDevice |
*RegistryApi* | [**UpdateRegistry**](docs/RegistryApi.md#updateregistry) | **PATCH** /subscriptions/{subscriptionId}/registries/{registryId} |
*SinkApi* | [**CreateSink**](docs/SinkApi.md#createsink) | **POST** /subscriptions/{subscriptionId}/sinks |
*SinkApi* | [**DeleteSink**](docs/SinkApi.md#deletesink) | **DELETE** /subscriptions/{subscriptionId}/sinks/{sinkId} |
*SinkApi* | [**GetASink**](docs/SinkApi.md#getasink) | **GET** /subscriptions/{subscriptionId}/sinks/{sinkId} |
*SinkApi* | [**GetSinks**](docs/SinkApi.md#getsinks) | **GET** /subscriptions/{subscriptionId}/sinks | Get All Sinks


<a name="documentation-for-models"></a>
Expand Down Expand Up @@ -158,13 +163,19 @@ Class | Method | HTTP request | Description
- [Model.ListDeviceRegistries](docs/ListDeviceRegistries.md)
- [Model.ListDeviceStatesResponse](docs/ListDeviceStatesResponse.md)
- [Model.ListDevicesResponse](docs/ListDevicesResponse.md)
- [Model.ListSinks](docs/ListSinks.md)
- [Model.ListSinksSinksInner](docs/ListSinksSinksInner.md)
- [Model.ListSinksSinksInnerConfig](docs/ListSinksSinksInnerConfig.md)
- [Model.LogLevel](docs/LogLevel.md)
- [Model.Metrics](docs/Metrics.md)
- [Model.MetricsDetails](docs/MetricsDetails.md)
- [Model.MqttConfig](docs/MqttConfig.md)
- [Model.NotificationConfig](docs/NotificationConfig.md)
- [Model.Policy](docs/Policy.md)
- [Model.PublicKeyCertificate](docs/PublicKeyCertificate.md)
- [Model.PublicKeyCredential](docs/PublicKeyCredential.md)
- [Model.RegistryCredential](docs/RegistryCredential.md)
- [Model.Sink](docs/Sink.md)
- [Model.X509CertificateDetails](docs/X509CertificateDetails.md)


Expand Down
8 changes: 4 additions & 4 deletions docs/DeviceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ catch (ApiException e)

<a name="deletedevice"></a>
# **DeleteDevice**
> Info DeleteDevice (string subscriptionId, string registryId, string deviceId)
> Object DeleteDevice (string subscriptionId, string registryId, string deviceId)


Expand Down Expand Up @@ -472,7 +472,7 @@ namespace Example
try
{
Info result = apiInstance.DeleteDevice(subscriptionId, registryId, deviceId);
Object result = apiInstance.DeleteDevice(subscriptionId, registryId, deviceId);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -492,7 +492,7 @@ This returns an ApiResponse object which contains the response data, status code
```csharp
try
{
ApiResponse<Info> response = apiInstance.DeleteDeviceWithHttpInfo(subscriptionId, registryId, deviceId);
ApiResponse<Object> response = apiInstance.DeleteDeviceWithHttpInfo(subscriptionId, registryId, deviceId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
Expand All @@ -515,7 +515,7 @@ catch (ApiException e)

### Return type

[**Info**](Info.md)
**Object**

### Authorization

Expand Down
1 change: 1 addition & 0 deletions docs/DeviceRegistry.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**HttpConfig** | [**HttpConfig**](HttpConfig.md) | | [optional]
**MqttConfig** | [**MqttConfig**](MqttConfig.md) | | [optional]
**LogLevel** | **LogLevel** | | [optional]
**IsNatsRoute** | **bool** | | [optional]
**EventNotificationConfigs** | [**List&lt;EventNotificationConfig&gt;**](EventNotificationConfig.md) | | [optional]
**LogNotificationConfig** | [**NotificationConfig**](NotificationConfig.md) | | [optional]
**StateNotificationConfig** | [**NotificationConfig**](NotificationConfig.md) | | [optional]
Expand Down
1 change: 0 additions & 1 deletion docs/EventNotificationConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PubsubTopicName** | **string** | PubsubTopicName: A Topic name. For example, &#x60;projects/myProject/topics/deviceEvents&#x60;. | [optional]
**IsGcpPubSub** | **bool** | Describe whether the topic is Gcp pubsub topic or Omni topic | [optional]
**SubfolderMatches** | **string** | SubfolderMatches: If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading &#39;/&#39; character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
10 changes: 10 additions & 0 deletions docs/ListSinks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# OmniCore.Model.ListSinks

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Sinks** | [**List&lt;ListSinksSinksInner&gt;**](ListSinksSinksInner.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

16 changes: 16 additions & 0 deletions docs/ListSinksSinksInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# OmniCore.Model.ListSinksSinksInner

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | | [optional] [readonly]
**Subscription** | **string** | | [optional] [readonly]
**Sink** | **string** | | [optional]
**Config** | [**ListSinksSinksInnerConfig**](ListSinksSinksInnerConfig.md) | | [optional]
**Status** | **bool** | | [optional] [readonly]
**Createdon** | **string** | | [optional] [readonly]
**Updatedon** | **string** | | [optional] [readonly]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

10 changes: 10 additions & 0 deletions docs/ListSinksSinksInnerConfig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# OmniCore.Model.ListSinksSinksInnerConfig

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ConnectionParameter** | **string** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

10 changes: 10 additions & 0 deletions docs/Metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# OmniCore.Model.Metrics

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Details** | [**MetricsDetails**](MetricsDetails.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

107 changes: 107 additions & 0 deletions docs/MetricsApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# OmniCore.Api.MetricsApi

All URIs are relative to *https://api.korewireless.com/omnicore*

| Method | HTTP request | Description |
|--------|--------------|-------------|
| [**GetMetrics**](MetricsApi.md#getmetrics) | **GET** /subscriptions/{subscriptionId}/metrics | |

<a name="getmetrics"></a>
# **GetMetrics**
> Metrics GetMetrics (string subscriptionId)


get metrics

### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using OmniCore.Api;
using OmniCore.Client;
using OmniCore.Model;

namespace Example
{
public class GetMetricsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.korewireless.com/omnicore";
// Configure API key authorization: apiKey
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";

var apiInstance = new MetricsApi(config);
var subscriptionId = "subscriptionId_example"; // string | Subscription ID
try
{
Metrics result = apiInstance.GetMetrics(subscriptionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MetricsApi.GetMetrics: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the GetMetricsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
ApiResponse<Metrics> response = apiInstance.GetMetricsWithHttpInfo(subscriptionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MetricsApi.GetMetricsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters

| Name | Type | Description | Notes |
|------|------|-------------|-------|
| **subscriptionId** | **string** | Subscription ID | |

### Return type

[**Metrics**](Metrics.md)

### Authorization

[apiKey](../README.md#apiKey), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | * Access-Control-Allow-Origin - <br> * Access-Control-Allow-Methods - <br> * Access-Control-Allow-Credentials - <br> * Access-Control-Allow-Headers - <br> |
| **400** | Bad Request | * Access-Control-Allow-Origin - <br> * Access-Control-Allow-Methods - <br> * Access-Control-Allow-Credentials - <br> * Access-Control-Allow-Headers - <br> |
| **404** | Not Found | * Access-Control-Allow-Origin - <br> * Access-Control-Allow-Methods - <br> * Access-Control-Allow-Credentials - <br> * Access-Control-Allow-Headers - <br> |
| **500** | Internal Server Error | * Access-Control-Allow-Origin - <br> * Access-Control-Allow-Methods - <br> * Access-Control-Allow-Credentials - <br> * Access-Control-Allow-Headers - <br> |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

35 changes: 35 additions & 0 deletions docs/MetricsDetails.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# OmniCore.Model.MetricsDetails

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**NoOfMessagesFor30Minutes** | **List&lt;Object&gt;** | | [optional]
**NoOfMessagesFor48Hours** | **List&lt;Object&gt;** | | [optional]
**BillableBytesReceived** | **int** | | [optional]
**BillableBytesSent** | **int** | | [optional]
**BillableMessageSize** | **int** | | [optional]
**BytesReceived** | **int** | | [optional]
**BytesSent** | **int** | | [optional]
**MessageSize** | **int** | | [optional]
**NoOfAckMessages** | **int** | | [optional]
**NoOfCommandMessages** | **int** | | [optional]
**NoOfConfigMessages** | **int** | | [optional]
**NoOfDeviceConnectionsFailed** | **int** | | [optional]
**NoOfDevices** | **int** | | [optional]
**NoOfDisConnections** | **int** | | [optional]
**NoOfEventMessages** | **int** | | [optional]
**NoOfGatewayConnectionsFailed** | **int** | | [optional]
**NoOfGateways** | **int** | | [optional]
**NoOfLoopBackMessages** | **int** | | [optional]
**NoOfMessages** | **int** | | [optional]
**NoOfPublishErrors** | **int** | | [optional]
**NoOfRegistries** | **int** | | [optional]
**NoOfStateMessages** | **int** | | [optional]
**NoOfSubscribe** | **int** | | [optional]
**NoOfSuccessfulConnections** | **int** | | [optional]
**NoOfUnSubscribe** | **int** | | [optional]
**SubscriptionId** | **string** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

1 change: 0 additions & 1 deletion docs/NotificationConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PubsubTopicName** | **string** | PubsubTopicName: A Topic name. For example, &#x60;projects/myProject/topics/deviceEvents&#x60;. | [optional]
**IsGcpPubSub** | **bool** | Describe whether the topic is Gcp pubsub topic or Omni topic | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

16 changes: 16 additions & 0 deletions docs/Sink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# OmniCore.Model.Sink

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | | [optional] [readonly]
**Subscription** | **string** | | [optional] [readonly]
**_Sink** | **string** | | [optional]
**Config** | [**ListSinksSinksInnerConfig**](ListSinksSinksInnerConfig.md) | | [optional]
**Status** | **bool** | | [optional] [readonly]
**Createdon** | **string** | | [optional] [readonly]
**Updatedon** | **string** | | [optional] [readonly]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Loading

0 comments on commit 4dbab46

Please sign in to comment.