Skip to content

Commit

Permalink
add isnatsroute
Browse files Browse the repository at this point in the history
  • Loading branch information
shehzad-kore committed May 25, 2023
1 parent 63976cf commit 7945e0e
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 45 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", "{3D511DA2-B6B0-4D32-9C40-656CDE65DF0F}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmniCore", "src\OmniCore\OmniCore.csproj", "{E9FE9401-0019-48E2-BD20-14CF8D7E56E4}"
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
{3D511DA2-B6B0-4D32-9C40-656CDE65DF0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3D511DA2-B6B0-4D32-9C40-656CDE65DF0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3D511DA2-B6B0-4D32-9C40-656CDE65DF0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3D511DA2-B6B0-4D32-9C40-656CDE65DF0F}.Release|Any CPU.Build.0 = Release|Any CPU
{E9FE9401-0019-48E2-BD20-14CF8D7E56E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E9FE9401-0019-48E2-BD20-14CF8D7E56E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E9FE9401-0019-48E2-BD20-14CF8D7E56E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E9FE9401-0019-48E2-BD20-14CF8D7E56E4}.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
2 changes: 1 addition & 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.3
- SDK version: 1.7.4
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [http://www.korewireless.com](http://www.korewireless.com)

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<EventNotificationConfig>**](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, `projects/myProject/topics/deviceEvents`. | [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 '/' 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
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, `projects/myProject/topics/deviceEvents`. | [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)

6 changes: 3 additions & 3 deletions src/OmniCore/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "1.7.3";
public const string Version = "1.7.4";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -110,7 +110,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.7.3/csharp");
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.7.4/csharp");
BasePath = "https://api.korewireless.com/omnicore";
DefaultHeaders = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -524,7 +524,7 @@ public static string ToDebugReport()
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 1.0\n";
report += " SDK Package Version: 1.7.3\n";
report += " SDK Package Version: 1.7.4\n";

return report;
}
Expand Down
16 changes: 15 additions & 1 deletion src/OmniCore/Model/DeviceRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ protected DeviceRegistry() { }
/// <param name="httpConfig">httpConfig.</param>
/// <param name="mqttConfig">mqttConfig.</param>
/// <param name="logLevel">logLevel.</param>
/// <param name="isNatsRoute">isNatsRoute.</param>
/// <param name="eventNotificationConfigs">eventNotificationConfigs.</param>
/// <param name="logNotificationConfig">logNotificationConfig.</param>
/// <param name="stateNotificationConfig">stateNotificationConfig.</param>
/// <param name="customOnboardNotificationConfig">customOnboardNotificationConfig.</param>
/// <param name="customOnboardEnabled">customOnboardEnabled.</param>
public DeviceRegistry(string id = default(string), List<RegistryCredential> credentials = default(List<RegistryCredential>), HttpConfig httpConfig = default(HttpConfig), MqttConfig mqttConfig = default(MqttConfig), LogLevel? logLevel = default(LogLevel?), List<EventNotificationConfig> eventNotificationConfigs = default(List<EventNotificationConfig>), NotificationConfig logNotificationConfig = default(NotificationConfig), NotificationConfig stateNotificationConfig = default(NotificationConfig), NotificationConfig customOnboardNotificationConfig = default(NotificationConfig), bool customOnboardEnabled = default(bool))
public DeviceRegistry(string id = default(string), List<RegistryCredential> credentials = default(List<RegistryCredential>), HttpConfig httpConfig = default(HttpConfig), MqttConfig mqttConfig = default(MqttConfig), LogLevel? logLevel = default(LogLevel?), bool isNatsRoute = default(bool), List<EventNotificationConfig> eventNotificationConfigs = default(List<EventNotificationConfig>), NotificationConfig logNotificationConfig = default(NotificationConfig), NotificationConfig stateNotificationConfig = default(NotificationConfig), NotificationConfig customOnboardNotificationConfig = default(NotificationConfig), bool customOnboardEnabled = default(bool))
{
// to ensure "id" is required (not null)
if (id == null)
Expand All @@ -68,6 +69,7 @@ protected DeviceRegistry() { }
this.HttpConfig = httpConfig;
this.MqttConfig = mqttConfig;
this.LogLevel = logLevel;
this.IsNatsRoute = isNatsRoute;
this.EventNotificationConfigs = eventNotificationConfigs;
this.LogNotificationConfig = logNotificationConfig;
this.StateNotificationConfig = stateNotificationConfig;
Expand Down Expand Up @@ -155,6 +157,12 @@ public bool ShouldSerializeUpdatedOn()
[DataMember(Name = "mqttConfig", EmitDefaultValue = false)]
public MqttConfig MqttConfig { get; set; }

/// <summary>
/// Gets or Sets IsNatsRoute
/// </summary>
[DataMember(Name = "isNatsRoute", EmitDefaultValue = true)]
public bool IsNatsRoute { get; set; }

/// <summary>
/// Gets or Sets EventNotificationConfigs
/// </summary>
Expand Down Expand Up @@ -230,6 +238,7 @@ public override string ToString()
sb.Append(" HttpConfig: ").Append(HttpConfig).Append("\n");
sb.Append(" MqttConfig: ").Append(MqttConfig).Append("\n");
sb.Append(" LogLevel: ").Append(LogLevel).Append("\n");
sb.Append(" IsNatsRoute: ").Append(IsNatsRoute).Append("\n");
sb.Append(" EventNotificationConfigs: ").Append(EventNotificationConfigs).Append("\n");
sb.Append(" LogNotificationConfig: ").Append(LogNotificationConfig).Append("\n");
sb.Append(" StateNotificationConfig: ").Append(StateNotificationConfig).Append("\n");
Expand Down Expand Up @@ -317,6 +326,10 @@ public bool Equals(DeviceRegistry input)
this.LogLevel == input.LogLevel ||
this.LogLevel.Equals(input.LogLevel)
) &&
(
this.IsNatsRoute == input.IsNatsRoute ||
this.IsNatsRoute.Equals(input.IsNatsRoute)
) &&
(
this.EventNotificationConfigs == input.EventNotificationConfigs ||
this.EventNotificationConfigs != null &&
Expand Down Expand Up @@ -394,6 +407,7 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.MqttConfig.GetHashCode();
}
hashCode = (hashCode * 59) + this.LogLevel.GetHashCode();
hashCode = (hashCode * 59) + this.IsNatsRoute.GetHashCode();
if (this.EventNotificationConfigs != null)
{
hashCode = (hashCode * 59) + this.EventNotificationConfigs.GetHashCode();
Expand Down
17 changes: 1 addition & 16 deletions src/OmniCore/Model/EventNotificationConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ public partial class EventNotificationConfig : IEquatable<EventNotificationConfi
/// Initializes a new instance of the <see cref="EventNotificationConfig" /> class.
/// </summary>
/// <param name="pubsubTopicName">PubsubTopicName: A Topic name. For example, &#x60;projects/myProject/topics/deviceEvents&#x60;..</param>
/// <param name="isGcpPubSub">Describe whether the topic is Gcp pubsub topic or Omni topic.</param>
/// <param name="subfolderMatches">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..</param>
public EventNotificationConfig(string pubsubTopicName = default(string), bool isGcpPubSub = default(bool), string subfolderMatches = default(string))
public EventNotificationConfig(string pubsubTopicName = default(string), string subfolderMatches = default(string))
{
this.PubsubTopicName = pubsubTopicName;
this.IsGcpPubSub = isGcpPubSub;
this.SubfolderMatches = subfolderMatches;
}

Expand All @@ -52,13 +50,6 @@ public partial class EventNotificationConfig : IEquatable<EventNotificationConfi
[DataMember(Name = "pubsubTopicName", EmitDefaultValue = false)]
public string PubsubTopicName { get; set; }

/// <summary>
/// Describe whether the topic is Gcp pubsub topic or Omni topic
/// </summary>
/// <value>Describe whether the topic is Gcp pubsub topic or Omni topic</value>
[DataMember(Name = "isGcpPubSub", EmitDefaultValue = true)]
public bool IsGcpPubSub { get; set; }

/// <summary>
/// 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.
/// </summary>
Expand All @@ -75,7 +66,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class EventNotificationConfig {\n");
sb.Append(" PubsubTopicName: ").Append(PubsubTopicName).Append("\n");
sb.Append(" IsGcpPubSub: ").Append(IsGcpPubSub).Append("\n");
sb.Append(" SubfolderMatches: ").Append(SubfolderMatches).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -117,10 +107,6 @@ public bool Equals(EventNotificationConfig input)
(this.PubsubTopicName != null &&
this.PubsubTopicName.Equals(input.PubsubTopicName))
) &&
(
this.IsGcpPubSub == input.IsGcpPubSub ||
this.IsGcpPubSub.Equals(input.IsGcpPubSub)
) &&
(
this.SubfolderMatches == input.SubfolderMatches ||
(this.SubfolderMatches != null &&
Expand All @@ -141,7 +127,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PubsubTopicName.GetHashCode();
}
hashCode = (hashCode * 59) + this.IsGcpPubSub.GetHashCode();
if (this.SubfolderMatches != null)
{
hashCode = (hashCode * 59) + this.SubfolderMatches.GetHashCode();
Expand Down
17 changes: 1 addition & 16 deletions src/OmniCore/Model/NotificationConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ public partial class NotificationConfig : IEquatable<NotificationConfig>, IValid
/// Initializes a new instance of the <see cref="NotificationConfig" /> class.
/// </summary>
/// <param name="pubsubTopicName">PubsubTopicName: A Topic name. For example, &#x60;projects/myProject/topics/deviceEvents&#x60;..</param>
/// <param name="isGcpPubSub">Describe whether the topic is Gcp pubsub topic or Omni topic.</param>
public NotificationConfig(string pubsubTopicName = default(string), bool isGcpPubSub = default(bool))
public NotificationConfig(string pubsubTopicName = default(string))
{
this.PubsubTopicName = pubsubTopicName;
this.IsGcpPubSub = isGcpPubSub;
}

/// <summary>
Expand All @@ -50,13 +48,6 @@ public partial class NotificationConfig : IEquatable<NotificationConfig>, IValid
[DataMember(Name = "pubsubTopicName", EmitDefaultValue = false)]
public string PubsubTopicName { get; set; }

/// <summary>
/// Describe whether the topic is Gcp pubsub topic or Omni topic
/// </summary>
/// <value>Describe whether the topic is Gcp pubsub topic or Omni topic</value>
[DataMember(Name = "isGcpPubSub", EmitDefaultValue = true)]
public bool IsGcpPubSub { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -66,7 +57,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationConfig {\n");
sb.Append(" PubsubTopicName: ").Append(PubsubTopicName).Append("\n");
sb.Append(" IsGcpPubSub: ").Append(IsGcpPubSub).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -106,10 +96,6 @@ public bool Equals(NotificationConfig input)
this.PubsubTopicName == input.PubsubTopicName ||
(this.PubsubTopicName != null &&
this.PubsubTopicName.Equals(input.PubsubTopicName))
) &&
(
this.IsGcpPubSub == input.IsGcpPubSub ||
this.IsGcpPubSub.Equals(input.IsGcpPubSub)
);
}

Expand All @@ -126,7 +112,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PubsubTopicName.GetHashCode();
}
hashCode = (hashCode * 59) + this.IsGcpPubSub.GetHashCode();
return hashCode;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/OmniCore/OmniCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>A library generated from a OpenAPI doc</Description>
<Copyright>No Copyright</Copyright>
<RootNamespace>OmniCore</RootNamespace>
<Version>1.7.3</Version>
<Version>1.7.4</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\OmniCore.xml</DocumentationFile>
<RepositoryUrl>https://github.com/korewireless/OmniCore-CSharp-SDK.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down

0 comments on commit 7945e0e

Please sign in to comment.