-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
OracleConnectionInfo.cs
57 lines (50 loc) · 2.58 KB
/
OracleConnectionInfo.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.DataMigration.Models
{
/// <summary> Information for connecting to Oracle server. </summary>
public partial class OracleConnectionInfo : ConnectionInfo
{
/// <summary> Initializes a new instance of OracleConnectionInfo. </summary>
/// <param name="dataSource"> EZConnect or TNSName connection string. </param>
/// <exception cref="ArgumentNullException"> <paramref name="dataSource"/> is null. </exception>
public OracleConnectionInfo(string dataSource)
{
Argument.AssertNotNull(dataSource, nameof(dataSource));
DataSource = dataSource;
ConnectionInfoType = "OracleConnectionInfo";
}
/// <summary> Initializes a new instance of OracleConnectionInfo. </summary>
/// <param name="connectionInfoType"> Type of connection info. </param>
/// <param name="userName"> User name. </param>
/// <param name="password"> Password credential. </param>
/// <param name="dataSource"> EZConnect or TNSName connection string. </param>
/// <param name="serverName"> name of the server. </param>
/// <param name="serverVersion"> server version. </param>
/// <param name="port"> port for server. </param>
/// <param name="authentication"> Authentication type to use for connection. </param>
internal OracleConnectionInfo(string connectionInfoType, string userName, string password, string dataSource, string serverName, string serverVersion, int? port, AuthenticationType? authentication) : base(connectionInfoType, userName, password)
{
DataSource = dataSource;
ServerName = serverName;
ServerVersion = serverVersion;
Port = port;
Authentication = authentication;
ConnectionInfoType = connectionInfoType ?? "OracleConnectionInfo";
}
/// <summary> EZConnect or TNSName connection string. </summary>
public string DataSource { get; set; }
/// <summary> name of the server. </summary>
public string ServerName { get; set; }
/// <summary> server version. </summary>
public string ServerVersion { get; set; }
/// <summary> port for server. </summary>
public int? Port { get; set; }
/// <summary> Authentication type to use for connection. </summary>
public AuthenticationType? Authentication { get; set; }
}
}