@@ -42,21 +42,53 @@ public MySqlLinkedService()
42
42
/// <param name="annotations">List of tags that can be used for describing the linked service.
43
43
/// </param>
44
44
45
+ /// <param name="driverVersion">The version of the MySQL driver. Type: string. V1 or empty for legacy
46
+ /// driver, V2 for new driver. V1 can support connection string and property
47
+ /// bag, V2 can only support connection string.
48
+ /// </param>
49
+
45
50
/// <param name="connectionString">The connection string. Type: string, SecureString or
46
51
/// AzureKeyVaultSecretReference.
47
52
/// </param>
48
53
54
+ /// <param name="server">Server name for connection. Type: string.
55
+ /// </param>
56
+
57
+ /// <param name="port">The port for the connection. Type: integer.
58
+ /// </param>
59
+
60
+ /// <param name="username">Username for authentication. Type: string.
61
+ /// </param>
62
+
63
+ /// <param name="database">Database name for connection. Type: string.
64
+ /// </param>
65
+
66
+ /// <param name="sslMode">SSL mode for connection. Type: integer. 0: disable, 1: prefer, 2: require,
67
+ /// 3: verify-ca, 4: verify-full.
68
+ /// </param>
69
+
70
+ /// <param name="useSystemTrustStore">Use system trust store for connection. Type: integer. 0: enable, 1:
71
+ /// disable.
72
+ /// </param>
73
+
49
74
/// <param name="password">The Azure key vault secret reference of password in connection string.
50
75
/// </param>
51
76
52
77
/// <param name="encryptedCredential">The encrypted credential used for authentication. Credentials are encrypted
53
78
/// using the integration runtime credential manager. Type: string.
54
79
/// </param>
55
- public MySqlLinkedService ( object connectionString , System . Collections . Generic . IDictionary < string , object > additionalProperties = default ( System . Collections . Generic . IDictionary < string , object > ) , IntegrationRuntimeReference connectVia = default ( IntegrationRuntimeReference ) , string description = default ( string ) , System . Collections . Generic . IDictionary < string , ParameterSpecification > parameters = default ( System . Collections . Generic . IDictionary < string , ParameterSpecification > ) , System . Collections . Generic . IList < object > annotations = default ( System . Collections . Generic . IList < object > ) , AzureKeyVaultSecretReference password = default ( AzureKeyVaultSecretReference ) , string encryptedCredential = default ( string ) )
80
+ public MySqlLinkedService ( System . Collections . Generic . IDictionary < string , object > additionalProperties = default ( System . Collections . Generic . IDictionary < string , object > ) , IntegrationRuntimeReference connectVia = default ( IntegrationRuntimeReference ) , string description = default ( string ) , System . Collections . Generic . IDictionary < string , ParameterSpecification > parameters = default ( System . Collections . Generic . IDictionary < string , ParameterSpecification > ) , System . Collections . Generic . IList < object > annotations = default ( System . Collections . Generic . IList < object > ) , object driverVersion = default ( object ) , object connectionString = default ( object ) , object server = default ( object ) , object port = default ( object ) , object username = default ( object ) , object database = default ( object ) , object sslMode = default ( object ) , object useSystemTrustStore = default ( object ) , AzureKeyVaultSecretReference password = default ( AzureKeyVaultSecretReference ) , string encryptedCredential = default ( string ) )
56
81
57
82
: base ( additionalProperties , connectVia , description , parameters , annotations )
58
83
{
84
+ this . DriverVersion = driverVersion ;
59
85
this . ConnectionString = connectionString ;
86
+ this . Server = server ;
87
+ this . Port = port ;
88
+ this . Username = username ;
89
+ this . Database = database ;
90
+ this . SslMode = sslMode ;
91
+ this . UseSystemTrustStore = useSystemTrustStore ;
60
92
this . Password = password ;
61
93
this . EncryptedCredential = encryptedCredential ;
62
94
CustomInit ( ) ;
@@ -68,13 +100,59 @@ public MySqlLinkedService()
68
100
partial void CustomInit ( ) ;
69
101
70
102
103
+ /// <summary>
104
+ /// Gets or sets the version of the MySQL driver. Type: string. V1 or empty for
105
+ /// legacy driver, V2 for new driver. V1 can support connection string and
106
+ /// property bag, V2 can only support connection string.
107
+ /// </summary>
108
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.driverVersion" ) ]
109
+ public object DriverVersion { get ; set ; }
110
+
71
111
/// <summary>
72
112
/// Gets or sets the connection string. Type: string, SecureString or
73
113
/// AzureKeyVaultSecretReference.
74
114
/// </summary>
75
115
[ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.connectionString" ) ]
76
116
public object ConnectionString { get ; set ; }
77
117
118
+ /// <summary>
119
+ /// Gets or sets server name for connection. Type: string.
120
+ /// </summary>
121
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.server" ) ]
122
+ public object Server { get ; set ; }
123
+
124
+ /// <summary>
125
+ /// Gets or sets the port for the connection. Type: integer.
126
+ /// </summary>
127
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.port" ) ]
128
+ public object Port { get ; set ; }
129
+
130
+ /// <summary>
131
+ /// Gets or sets username for authentication. Type: string.
132
+ /// </summary>
133
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.username" ) ]
134
+ public object Username { get ; set ; }
135
+
136
+ /// <summary>
137
+ /// Gets or sets database name for connection. Type: string.
138
+ /// </summary>
139
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.database" ) ]
140
+ public object Database { get ; set ; }
141
+
142
+ /// <summary>
143
+ /// Gets or sets sSL mode for connection. Type: integer. 0: disable, 1: prefer,
144
+ /// 2: require, 3: verify-ca, 4: verify-full.
145
+ /// </summary>
146
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.sslMode" ) ]
147
+ public object SslMode { get ; set ; }
148
+
149
+ /// <summary>
150
+ /// Gets or sets use system trust store for connection. Type: integer. 0:
151
+ /// enable, 1: disable.
152
+ /// </summary>
153
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.useSystemTrustStore" ) ]
154
+ public object UseSystemTrustStore { get ; set ; }
155
+
78
156
/// <summary>
79
157
/// Gets or sets the Azure key vault secret reference of password in connection
80
158
/// string.
@@ -98,10 +176,13 @@ public MySqlLinkedService()
98
176
public override void Validate ( )
99
177
{
100
178
base . Validate ( ) ;
101
- if ( this . ConnectionString == null )
102
- {
103
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "ConnectionString" ) ;
104
- }
179
+
180
+
181
+
182
+
183
+
184
+
185
+
105
186
106
187
if ( this . Password != null )
107
188
{
0 commit comments