/// <summary> /// Initializes a new instance of the /// ApiManagementServiceUploadCertificateParameters class. /// </summary> /// <param name="type">Hostname type. Possible values include: 'Proxy', /// 'Portal', 'Management', 'Scm'</param> /// <param name="certificate">Base64 Encoded certificate.</param> /// <param name="certificatePassword">Certificate password.</param> public ApiManagementServiceUploadCertificateParameters(HostnameType type, string certificate, string certificatePassword) { Type = type; Certificate = certificate; CertificatePassword = certificatePassword; CustomInit(); }
/// <summary> /// Initializes a new instance of the HostnameConfigurationOld class. /// </summary> /// <param name="type">Hostname type. Possible values include: 'Proxy', /// 'Portal', 'Management', 'Scm'</param> /// <param name="hostname">Hostname to configure.</param> /// <param name="certificate">Certificate information.</param> public HostnameConfigurationOld(HostnameType type, string hostname, CertificateInformation certificate) { Type = type; Hostname = hostname; Certificate = certificate; CustomInit(); }
/// <summary> /// Initializes a new instance of the HostnameConfiguration class. /// </summary> /// <param name="type">Hostname type. Possible values include: 'Proxy', /// 'Portal', 'Management', 'Scm'</param> /// <param name="hostName">Hostname to configure on the Api Management /// service.</param> /// <param name="keyVaultId">Url to the KeyVault Secret containing the /// Ssl Certificate. If absolute Url containing version is provided, /// auto-update of ssl certificate will not work. This requires Api /// Management service to be configured with MSI. The secret should be /// of type *application/x-pkcs12*</param> /// <param name="encodedCertificate">Base64 Encoded /// certificate.</param> /// <param name="certificatePassword">Certificate Password.</param> /// <param name="defaultSslBinding">Specify true to setup the /// certificate associated with this Hostname as the Default SSL /// Certificate. If a client does not send the SNI header, then this /// will be the certificate that will be challenged. The property is /// useful if a service has multiple custom hostname enabled and it /// needs to decide on the default ssl certificate. The setting only /// applied to Proxy Hostname Type.</param> /// <param name="negotiateClientCertificate">Specify true to always /// negotiate client certificate on the hostname. Default Value is /// false.</param> /// <param name="certificate">Certificate information.</param> public HostnameConfiguration(HostnameType type, string hostName, string keyVaultId = default(string), string encodedCertificate = default(string), string certificatePassword = default(string), bool?defaultSslBinding = default(bool?), bool?negotiateClientCertificate = default(bool?), CertificateInformation certificate = default(CertificateInformation)) { Type = type; HostName = hostName; KeyVaultId = keyVaultId; EncodedCertificate = encodedCertificate; CertificatePassword = certificatePassword; DefaultSslBinding = defaultSslBinding; NegotiateClientCertificate = negotiateClientCertificate; Certificate = certificate; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// ApiServiceUploadCertificateParameters class with required /// arguments. /// </summary> public ApiServiceUploadCertificateParameters(HostnameType type, string encodedCertificate, string certificatePassword) : this() { if (encodedCertificate == null) { throw new ArgumentNullException("encodedCertificate"); } if (certificatePassword == null) { throw new ArgumentNullException("certificatePassword"); } this.Type = type; this.EncodedCertificate = encodedCertificate; this.CertificatePassword = certificatePassword; }
/// <summary> /// Initializes a new instance of the HostnameConfiguration class with /// required arguments. /// </summary> public HostnameConfiguration(HostnameType type, string hostname, CertificateInformation certificate) : this() { if (hostname == null) { throw new ArgumentNullException("hostname"); } if (certificate == null) { throw new ArgumentNullException("certificate"); } this.Type = type; this.Hostname = hostname; this.Certificate = certificate; }
internal static string ToSerializedValue(this HostnameType value) { switch (value) { case HostnameType.Proxy: return("Proxy"); case HostnameType.Portal: return("Portal"); case HostnameType.Management: return("Management"); case HostnameType.Scm: return("Scm"); } return(null); }