From f9f00dca73a6f9a88c66be8b7d9a2ba97c5a9b7c Mon Sep 17 00:00:00 2001 From: OpenApi-Bot Date: Thu, 29 Sep 2022 09:19:24 +0000 Subject: [PATCH] Update to newly built .Net 6 Client from GH Run 163 --- .../Client/Api/TrustedCertificatesApi.cs | 1 + .../Model/MicroserviceApplicationManifest.cs | 59 +------------------ 2 files changed, 2 insertions(+), 58 deletions(-) diff --git a/Client/Com/Cumulocity/Client/Api/TrustedCertificatesApi.cs b/Client/Com/Cumulocity/Client/Api/TrustedCertificatesApi.cs index 4bc6d9c..3855b7c 100644 --- a/Client/Com/Cumulocity/Client/Api/TrustedCertificatesApi.cs +++ b/Client/Com/Cumulocity/Client/Api/TrustedCertificatesApi.cs @@ -155,6 +155,7 @@ public TrustedCertificatesApi(HttpClient httpClient) : base(httpClient) var client = HttpClient; var resourcePath = $"/tenant/tenants/{tenantId}/trusted-certificates/{fingerprint}"; var uriBuilder = new UriBuilder(new Uri(HttpClient?.BaseAddress ?? new Uri(resourcePath), resourcePath)); + var request = new HttpRequestMessage { Content = new StringContent(jsonNode.ToString(), Encoding.UTF8, "application/json"), Method = HttpMethod.Put, diff --git a/Client/Com/Cumulocity/Client/Model/MicroserviceApplicationManifest.cs b/Client/Com/Cumulocity/Client/Model/MicroserviceApplicationManifest.cs index 4fd1699..7e490d8 100644 --- a/Client/Com/Cumulocity/Client/Model/MicroserviceApplicationManifest.cs +++ b/Client/Com/Cumulocity/Client/Model/MicroserviceApplicationManifest.cs @@ -112,7 +112,7 @@ public class MicroserviceApplicationManifest /// A list of settings objects for this microservice application. /// [JsonPropertyName("settings")] - public List? PSettings { get; set; } + public List? Settings { get; set; } /// /// Allows to specify a custom category for microservice settings. @@ -273,63 +273,6 @@ public override string ToString() } - public class Settings - { - - /// - /// The name of the setting. - /// - [JsonPropertyName("key")] - public string? Key { get; set; } - - /// - /// The value schema determines the values that the microservice can process. - /// - [JsonPropertyName("valueSchema")] - public ValueSchema? PValueSchema { get; set; } - - /// - /// The default value. - /// - [JsonPropertyName("defaultValue")] - public string? DefaultValue { get; set; } - - /// - /// Indicates if the value is editable. - /// - [JsonPropertyName("editable")] - public bool? Editable { get; set; } - - /// - /// Indicated wether this setting is inherited. - /// - [JsonPropertyName("inheritFromOwner")] - public bool? InheritFromOwner { get; set; } - - /// - /// The value schema determines the values that the microservice can process. - /// - public class ValueSchema - { - - /// - /// The value schema type. - /// - [JsonPropertyName("type")] - public string? Type { get; set; } - - public override string ToString() - { - return JsonSerializer.Serialize(this); - } - } - - public override string ToString() - { - return JsonSerializer.Serialize(this); - } - } - public override string ToString() { return JsonSerializer.Serialize(this);