Skip to content

Commit

Permalink
Merge pull request #30 from CoreLayer/dev-0.1.3-21
Browse files Browse the repository at this point in the history
Updates to SslCertFile
  • Loading branch information
jantytgat authored Jan 27, 2021
2 parents 3aff5e2 + 1698eb8 commit 619ba1d
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ namespace CoreLayer.Citrix.Adc.NitroClient.Api.Configuration.Policy.PolicyString
{
public class PolicyStringMapBindingRemoveRequestOptions : NitroRequestRemoveOptions
{

public PolicyStringMapBindingRemoveRequestOptions() { }

public PolicyStringMapBindingRemoveRequestOptions(string resourceName) : base(resourceName) { }
}
public enum PolicyStringMapBindingRemoveRequestOptionsProperties
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ namespace CoreLayer.Citrix.Adc.NitroClient.Api.Configuration.SSL.SslCertFile
public class SslCertFileImportRequestData : INitroRequestData
{
public string Name { get; set; }
[JsonPropertyName("src")]public string Source { get; set; }

[JsonPropertyName("src")]
public string Source { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,41 @@
using System.Text.Json.Serialization;
using CoreLayer.Citrix.Adc.NitroClient.Interfaces;

namespace CoreLayer.Citrix.Adc.NitroClient.Api.Configuration.SSL.SslCertKey
{
public class SslCertKeyAddRequestData : INitroRequestData
{
public string FileName { get; }
public string FileContent { get; }
public SslCertKeyAddRequestData(string fileName, string fileContent)
{
FileName = fileName;
FileContent = fileContent;
}

public string FileLocation { get; set; }
public string FileEncoding { get; set; }
[JsonPropertyName("certkey")]
public string CertKey { get; set; }

[JsonPropertyName("cert")]
public string PublicKey { get; set; }

[JsonPropertyName("key")]
public string PrivateKey { get; set; }

[JsonPropertyName("password")]
public bool Password { get; set; }

[JsonPropertyName("fipskey")]
public string FipsKey { get; set; }

[JsonPropertyName("hsmkey")]
public string HsmKey { get; set; }

[JsonPropertyName("inform")]
public string Inform { get; set; }

[JsonPropertyName("passplain")]
public string PassPlain { get; set; }

[JsonPropertyName("expirymonitor")]
public string ExpiryMonitor { get; set; }

[JsonPropertyName("notificationperiod")]
public double NotificationPeriod { get; set; }

[JsonPropertyName("bundle")]
public string Bundle { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System.Text.Json.Serialization;

namespace CoreLayer.Citrix.Adc.NitroData.Api.Configuration.Ssl
{
public class SslCertKeyConfiguration
{
[JsonPropertyName("certkey")]
public string CertKey { get; set; }

[JsonPropertyName("cert")]
public string PublicKey { get; set; }

[JsonPropertyName("key")]
public string PrivateKey { get; set; }

[JsonPropertyName("password")]
public bool Password { get; set; }

[JsonPropertyName("fipskey")]
public string FipsKey { get; set; }

[JsonPropertyName("hsmkey")]
public string HsmKey { get; set; }

[JsonPropertyName("inform")]
public string Inform { get; set; }

[JsonPropertyName("passplain")]
public string PassPlain { get; set; }

[JsonPropertyName("expirymonitor")]
public string ExpiryMonitor { get; set; }

[JsonPropertyName("notificationperiod")]
public double NotificationPeriod { get; set; }

[JsonPropertyName("bundle")]
public string Bundle { get; set; }
}
}

0 comments on commit 619ba1d

Please sign in to comment.