Skip to content

Commit

Permalink
Update to newly built .Net 6 Client from GH Run 163
Browse files Browse the repository at this point in the history
  • Loading branch information
openapi-bot committed Sep 29, 2022
1 parent 634bf59 commit f9f00dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 58 deletions.
1 change: 1 addition & 0 deletions Client/Com/Cumulocity/Client/Api/TrustedCertificatesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public class MicroserviceApplicationManifest
/// A list of settings objects for this microservice application.
/// </summary>
[JsonPropertyName("settings")]
public List<Settings>? PSettings { get; set; }
public List<ApplicationSettings>? Settings { get; set; }

/// <summary>
/// Allows to specify a custom category for microservice settings.
Expand Down Expand Up @@ -273,63 +273,6 @@ public override string ToString()
}


public class Settings
{

/// <summary>
/// The name of the setting.
/// </summary>
[JsonPropertyName("key")]
public string? Key { get; set; }

/// <summary>
/// The value schema determines the values that the microservice can process.
/// </summary>
[JsonPropertyName("valueSchema")]
public ValueSchema? PValueSchema { get; set; }

/// <summary>
/// The default value.
/// </summary>
[JsonPropertyName("defaultValue")]
public string? DefaultValue { get; set; }

/// <summary>
/// Indicates if the value is editable.
/// </summary>
[JsonPropertyName("editable")]
public bool? Editable { get; set; }

/// <summary>
/// Indicated wether this setting is inherited.
/// </summary>
[JsonPropertyName("inheritFromOwner")]
public bool? InheritFromOwner { get; set; }

/// <summary>
/// The value schema determines the values that the microservice can process.
/// </summary>
public class ValueSchema
{

/// <summary>
/// The value schema type.
/// </summary>
[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);
Expand Down

0 comments on commit f9f00dc

Please sign in to comment.