-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MsSqlServerProviderInstanceProperties.cs
61 lines (55 loc) · 3.22 KB
/
MsSqlServerProviderInstanceProperties.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.ResourceManager.Workloads.Models
{
/// <summary> Gets or sets the SQL server provider properties. </summary>
public partial class MsSqlServerProviderInstanceProperties : ProviderSpecificProperties
{
/// <summary> Initializes a new instance of <see cref="MsSqlServerProviderInstanceProperties"/>. </summary>
public MsSqlServerProviderInstanceProperties()
{
ProviderType = "MsSqlServer";
}
/// <summary> Initializes a new instance of <see cref="MsSqlServerProviderInstanceProperties"/>. </summary>
/// <param name="providerType"> The provider type. For example, the value can be SapHana. </param>
/// <param name="hostname"> Gets or sets the SQL server host name. </param>
/// <param name="dbPort"> Gets or sets the database sql port. </param>
/// <param name="dbUsername"> Gets or sets the database user name. </param>
/// <param name="dbPassword"> Gets or sets the database password. </param>
/// <param name="dbPasswordUri"> Gets or sets the key vault URI to secret with the database password. </param>
/// <param name="sapSid"> Gets or sets the SAP System Identifier. </param>
/// <param name="sslPreference"> Gets or sets certificate preference if secure communication is enabled. </param>
/// <param name="sslCertificateUri"> Gets or sets the blob URI to SSL certificate for the SQL Database. </param>
internal MsSqlServerProviderInstanceProperties(string providerType, string hostname, string dbPort, string dbUsername, string dbPassword, Uri dbPasswordUri, string sapSid, SapSslPreference? sslPreference, Uri sslCertificateUri) : base(providerType)
{
Hostname = hostname;
DBPort = dbPort;
DBUsername = dbUsername;
DBPassword = dbPassword;
DBPasswordUri = dbPasswordUri;
SapSid = sapSid;
SslPreference = sslPreference;
SslCertificateUri = sslCertificateUri;
ProviderType = providerType ?? "MsSqlServer";
}
/// <summary> Gets or sets the SQL server host name. </summary>
public string Hostname { get; set; }
/// <summary> Gets or sets the database sql port. </summary>
public string DBPort { get; set; }
/// <summary> Gets or sets the database user name. </summary>
public string DBUsername { get; set; }
/// <summary> Gets or sets the database password. </summary>
public string DBPassword { get; set; }
/// <summary> Gets or sets the key vault URI to secret with the database password. </summary>
public Uri DBPasswordUri { get; set; }
/// <summary> Gets or sets the SAP System Identifier. </summary>
public string SapSid { get; set; }
/// <summary> Gets or sets certificate preference if secure communication is enabled. </summary>
public SapSslPreference? SslPreference { get; set; }
/// <summary> Gets or sets the blob URI to SSL certificate for the SQL Database. </summary>
public Uri SslCertificateUri { get; set; }
}
}