From 484f2a5937b4fb3824cf6bb26709ad0b5dff659a Mon Sep 17 00:00:00 2001 From: wangbwn <69622111+wangbwn@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:10:50 +0800 Subject: [PATCH] DataFactory DotNet Sdk Release (#47030) --- .../CHANGELOG.md | 9 +- ...ourceManager.DataFactory.netstandard2.0.cs | 18 ++ .../Azure.ResourceManager.DataFactory.csproj | 2 +- ...rePostgreSqlLinkedService.Serialization.cs | 176 ++++++++++++++++++ .../Models/AzurePostgreSqlLinkedService.cs | 46 ++++- .../MySqlLinkedService.Serialization.cs | 114 +++++++++++- .../Generated/Models/MySqlLinkedService.cs | 30 ++- .../src/autorest.md | 2 +- 8 files changed, 386 insertions(+), 11 deletions(-) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md index 5192c7c02bae6..a60f2cbedd485 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md @@ -1,14 +1,11 @@ # Release History -## 1.6.0-beta.1 (Unreleased) +## 1.6.0 (2024-11-11) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Added support for additional MySQL connection properties. +- Added support for Azure PostgreSQL v2, updated connection strings, and corrected Linked JSON configurations. ## 1.5.0 (2024-10-24) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.netstandard2.0.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.netstandard2.0.cs index 67a06849fec38..618789493d12a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.netstandard2.0.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.netstandard2.0.cs @@ -2236,9 +2236,20 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class AzurePostgreSqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AzurePostgreSqlLinkedService() { } + public Azure.Core.Expressions.DataFactory.DataFactoryElement CommandTimeout { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Encoding { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecret Password { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement ReadBufferSize { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement SslMode { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Timeout { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Timezone { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement TrustServerCertificate { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.DataFactory.Models.AzurePostgreSqlLinkedService System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -8338,14 +8349,21 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class MySqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public MySqlLinkedService() { } + public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowZeroDateTime { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionTimeout { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement ConvertZeroDateTime { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DriverVersion { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement GuidFormat { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecret Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement SslCert { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement SslKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SslMode { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement TreatTinyAsBoolean { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseSystemTrustStore { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj index 5e226512a638e..36ee71e07da5c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj @@ -1,6 +1,6 @@ - 1.6.0-beta.1 + 1.6.0 1.5.0 Azure.ResourceManager.DataFactory diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs index 6a1372c237c85..248265ca200e5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs @@ -43,6 +43,61 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("connectionString"u8); JsonSerializer.Serialize(writer, ConnectionString); } + if (Optional.IsDefined(Server)) + { + writer.WritePropertyName("server"u8); + JsonSerializer.Serialize(writer, Server); + } + if (Optional.IsDefined(Port)) + { + writer.WritePropertyName("port"u8); + JsonSerializer.Serialize(writer, Port); + } + if (Optional.IsDefined(Username)) + { + writer.WritePropertyName("username"u8); + JsonSerializer.Serialize(writer, Username); + } + if (Optional.IsDefined(Database)) + { + writer.WritePropertyName("database"u8); + JsonSerializer.Serialize(writer, Database); + } + if (Optional.IsDefined(SslMode)) + { + writer.WritePropertyName("sslMode"u8); + JsonSerializer.Serialize(writer, SslMode); + } + if (Optional.IsDefined(Timeout)) + { + writer.WritePropertyName("timeout"u8); + JsonSerializer.Serialize(writer, Timeout); + } + if (Optional.IsDefined(CommandTimeout)) + { + writer.WritePropertyName("commandTimeout"u8); + JsonSerializer.Serialize(writer, CommandTimeout); + } + if (Optional.IsDefined(TrustServerCertificate)) + { + writer.WritePropertyName("trustServerCertificate"u8); + JsonSerializer.Serialize(writer, TrustServerCertificate); + } + if (Optional.IsDefined(ReadBufferSize)) + { + writer.WritePropertyName("readBufferSize"u8); + JsonSerializer.Serialize(writer, ReadBufferSize); + } + if (Optional.IsDefined(Timezone)) + { + writer.WritePropertyName("timezone"u8); + JsonSerializer.Serialize(writer, Timezone); + } + if (Optional.IsDefined(Encoding)) + { + writer.WritePropertyName("encoding"u8); + JsonSerializer.Serialize(writer, Encoding); + } if (Optional.IsDefined(Password)) { writer.WritePropertyName("password"u8); @@ -95,6 +150,17 @@ internal static AzurePostgreSqlLinkedService DeserializeAzurePostgreSqlLinkedSer IDictionary parameters = default; IList annotations = default; DataFactoryElement connectionString = default; + DataFactoryElement server = default; + DataFactoryElement port = default; + DataFactoryElement username = default; + DataFactoryElement database = default; + DataFactoryElement sslMode = default; + DataFactoryElement timeout = default; + DataFactoryElement commandTimeout = default; + DataFactoryElement trustServerCertificate = default; + DataFactoryElement readBufferSize = default; + DataFactoryElement timezone = default; + DataFactoryElement encoding = default; DataFactoryKeyVaultSecret password = default; string encryptedCredential = default; IDictionary additionalProperties = default; @@ -178,6 +244,105 @@ internal static AzurePostgreSqlLinkedService DeserializeAzurePostgreSqlLinkedSer connectionString = JsonSerializer.Deserialize>(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("server"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + server = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("port"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + port = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("username"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + username = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("database"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + database = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("sslMode"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sslMode = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("timeout"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + timeout = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("commandTimeout"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + commandTimeout = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("trustServerCertificate"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + trustServerCertificate = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("readBufferSize"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + readBufferSize = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("timezone"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + timezone = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("encoding"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + encoding = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } if (property0.NameEquals("password"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -207,6 +372,17 @@ internal static AzurePostgreSqlLinkedService DeserializeAzurePostgreSqlLinkedSer annotations ?? new ChangeTrackingList(), additionalProperties, connectionString, + server, + port, + username, + database, + sslMode, + timeout, + commandTimeout, + trustServerCertificate, + readBufferSize, + timezone, + encoding, password, encryptedCredential); } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.cs index 7f55adeca5dc3..721b309f7d368 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.cs @@ -29,11 +29,33 @@ public AzurePostgreSqlLinkedService() /// List of tags that can be used for describing the linked service. /// Additional Properties. /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + /// Server name for connection. Type: string. + /// The port for the connection. Type: integer. + /// Username for authentication. Type: string. + /// Database name for connection. Type: string. + /// SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer. + /// The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. Type: integer. + /// The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. Set to zero for infinity. Type: integer. + /// Whether to trust the server certificate without validating it. Type: boolean. + /// Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring large values from the database. Type: integer. + /// Gets or sets the session timezone. Type: string. + /// Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzurePostgreSqlLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecret password, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) + internal AzurePostgreSqlLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement server, DataFactoryElement port, DataFactoryElement username, DataFactoryElement database, DataFactoryElement sslMode, DataFactoryElement timeout, DataFactoryElement commandTimeout, DataFactoryElement trustServerCertificate, DataFactoryElement readBufferSize, DataFactoryElement timezone, DataFactoryElement encoding, DataFactoryKeyVaultSecret password, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; + Server = server; + Port = port; + Username = username; + Database = database; + SslMode = sslMode; + Timeout = timeout; + CommandTimeout = commandTimeout; + TrustServerCertificate = trustServerCertificate; + ReadBufferSize = readBufferSize; + Timezone = timezone; + Encoding = encoding; Password = password; EncryptedCredential = encryptedCredential; LinkedServiceType = linkedServiceType ?? "AzurePostgreSql"; @@ -41,6 +63,28 @@ internal AzurePostgreSqlLinkedService(string linkedServiceType, string linkedSer /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. public DataFactoryElement ConnectionString { get; set; } + /// Server name for connection. Type: string. + public DataFactoryElement Server { get; set; } + /// The port for the connection. Type: integer. + public DataFactoryElement Port { get; set; } + /// Username for authentication. Type: string. + public DataFactoryElement Username { get; set; } + /// Database name for connection. Type: string. + public DataFactoryElement Database { get; set; } + /// SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer. + public DataFactoryElement SslMode { get; set; } + /// The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. Type: integer. + public DataFactoryElement Timeout { get; set; } + /// The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. Set to zero for infinity. Type: integer. + public DataFactoryElement CommandTimeout { get; set; } + /// Whether to trust the server certificate without validating it. Type: boolean. + public DataFactoryElement TrustServerCertificate { get; set; } + /// Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring large values from the database. Type: integer. + public DataFactoryElement ReadBufferSize { get; set; } + /// Gets or sets the session timezone. Type: string. + public DataFactoryElement Timezone { get; set; } + /// Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string. + public DataFactoryElement Encoding { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecret Password { get; set; } /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.Serialization.cs index c57cfba31b2c0..a35dcf56156a6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.Serialization.cs @@ -88,6 +88,41 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("encryptedCredential"u8); writer.WriteStringValue(EncryptedCredential); } + if (Optional.IsDefined(AllowZeroDateTime)) + { + writer.WritePropertyName("allowZeroDateTime"u8); + JsonSerializer.Serialize(writer, AllowZeroDateTime); + } + if (Optional.IsDefined(ConnectionTimeout)) + { + writer.WritePropertyName("connectionTimeout"u8); + JsonSerializer.Serialize(writer, ConnectionTimeout); + } + if (Optional.IsDefined(ConvertZeroDateTime)) + { + writer.WritePropertyName("convertZeroDateTime"u8); + JsonSerializer.Serialize(writer, ConvertZeroDateTime); + } + if (Optional.IsDefined(GuidFormat)) + { + writer.WritePropertyName("guidFormat"u8); + JsonSerializer.Serialize(writer, GuidFormat); + } + if (Optional.IsDefined(SslCert)) + { + writer.WritePropertyName("sslCert"u8); + JsonSerializer.Serialize(writer, SslCert); + } + if (Optional.IsDefined(SslKey)) + { + writer.WritePropertyName("sslKey"u8); + JsonSerializer.Serialize(writer, SslKey); + } + if (Optional.IsDefined(TreatTinyAsBoolean)) + { + writer.WritePropertyName("treatTinyAsBoolean"u8); + JsonSerializer.Serialize(writer, TreatTinyAsBoolean); + } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { @@ -139,6 +174,13 @@ internal static MySqlLinkedService DeserializeMySqlLinkedService(JsonElement ele DataFactoryElement useSystemTrustStore = default; DataFactoryKeyVaultSecret password = default; string encryptedCredential = default; + DataFactoryElement allowZeroDateTime = default; + DataFactoryElement connectionTimeout = default; + DataFactoryElement convertZeroDateTime = default; + DataFactoryElement guidFormat = default; + DataFactoryElement sslCert = default; + DataFactoryElement sslKey = default; + DataFactoryElement treatTinyAsBoolean = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -297,6 +339,69 @@ internal static MySqlLinkedService DeserializeMySqlLinkedService(JsonElement ele encryptedCredential = property0.Value.GetString(); continue; } + if (property0.NameEquals("allowZeroDateTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allowZeroDateTime = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("connectionTimeout"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + connectionTimeout = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("convertZeroDateTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + convertZeroDateTime = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("guidFormat"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + guidFormat = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("sslCert"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sslCert = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("sslKey"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sslKey = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("treatTinyAsBoolean"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + treatTinyAsBoolean = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } } continue; } @@ -320,7 +425,14 @@ internal static MySqlLinkedService DeserializeMySqlLinkedService(JsonElement ele sslMode, useSystemTrustStore, password, - encryptedCredential); + encryptedCredential, + allowZeroDateTime, + connectionTimeout, + convertZeroDateTime, + guidFormat, + sslCert, + sslKey, + treatTinyAsBoolean); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.cs index b9f095b00196e..97aafc4b2fe12 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.cs @@ -38,7 +38,14 @@ public MySqlLinkedService() /// Use system trust store for connection. Type: integer. 0: enable, 1: disable. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal MySqlLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement driverVersion, DataFactoryElement connectionString, DataFactoryElement server, DataFactoryElement port, DataFactoryElement username, DataFactoryElement database, DataFactoryElement sslMode, DataFactoryElement useSystemTrustStore, DataFactoryKeyVaultSecret password, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) + /// This allows the special “zero” date value 0000-00-00 to be retrieved from the database. Type: boolean. + /// The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error. Type: integer. + /// True to return DateTime.MinValue for date or datetime columns that have disallowed values. Type: boolean. + /// Determines which column type (if any) should be read as a GUID. Type: string. None: No column types are automatically read as a Guid; Char36: All CHAR(36) columns are read/written as a Guid using lowercase hex with hyphens, which matches UUID. + /// The path to the client’s SSL certificate file in PEM format. SslKey must also be specified. Type: string. + /// The path to the client’s SSL private key in PEM format. SslCert must also be specified. Type: string. + /// When set to true, TINYINT(1) values are returned as booleans. Type: bool. + internal MySqlLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement driverVersion, DataFactoryElement connectionString, DataFactoryElement server, DataFactoryElement port, DataFactoryElement username, DataFactoryElement database, DataFactoryElement sslMode, DataFactoryElement useSystemTrustStore, DataFactoryKeyVaultSecret password, string encryptedCredential, DataFactoryElement allowZeroDateTime, DataFactoryElement connectionTimeout, DataFactoryElement convertZeroDateTime, DataFactoryElement guidFormat, DataFactoryElement sslCert, DataFactoryElement sslKey, DataFactoryElement treatTinyAsBoolean) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) { DriverVersion = driverVersion; ConnectionString = connectionString; @@ -50,6 +57,13 @@ internal MySqlLinkedService(string linkedServiceType, string linkedServiceVersio UseSystemTrustStore = useSystemTrustStore; Password = password; EncryptedCredential = encryptedCredential; + AllowZeroDateTime = allowZeroDateTime; + ConnectionTimeout = connectionTimeout; + ConvertZeroDateTime = convertZeroDateTime; + GuidFormat = guidFormat; + SslCert = sslCert; + SslKey = sslKey; + TreatTinyAsBoolean = treatTinyAsBoolean; LinkedServiceType = linkedServiceType ?? "MySql"; } @@ -73,5 +87,19 @@ internal MySqlLinkedService(string linkedServiceType, string linkedServiceVersio public DataFactoryKeyVaultSecret Password { get; set; } /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. public string EncryptedCredential { get; set; } + /// This allows the special “zero” date value 0000-00-00 to be retrieved from the database. Type: boolean. + public DataFactoryElement AllowZeroDateTime { get; set; } + /// The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error. Type: integer. + public DataFactoryElement ConnectionTimeout { get; set; } + /// True to return DateTime.MinValue for date or datetime columns that have disallowed values. Type: boolean. + public DataFactoryElement ConvertZeroDateTime { get; set; } + /// Determines which column type (if any) should be read as a GUID. Type: string. None: No column types are automatically read as a Guid; Char36: All CHAR(36) columns are read/written as a Guid using lowercase hex with hyphens, which matches UUID. + public DataFactoryElement GuidFormat { get; set; } + /// The path to the client’s SSL certificate file in PEM format. SslKey must also be specified. Type: string. + public DataFactoryElement SslCert { get; set; } + /// The path to the client’s SSL private key in PEM format. SslCert must also be specified. Type: string. + public DataFactoryElement SslKey { get; set; } + /// When set to true, TINYINT(1) values are returned as booleans. Type: bool. + public DataFactoryElement TreatTinyAsBoolean { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md index 4ba733d5f9a5d..d9b3a4a314339 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: DataFactory namespace: Azure.ResourceManager.DataFactory -require: https://github.com/Azure/azure-rest-api-specs/blob/b2d15ba74c547ac29ca371932fd8117707c98524/specification/datafactory/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/1982dfc5db1a54ac3cf824449e08590cee74d9a5/specification/datafactory/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: