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 9beaf9426c3a..684c4ef6deca 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 @@ -8338,14 +8338,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) { } @@ -9259,7 +9266,8 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write } public partial class PostgreSqlV2LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public PostgreSqlV2LinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement server, Azure.Core.Expressions.DataFactory.DataFactoryElement username, Azure.Core.Expressions.DataFactory.DataFactoryElement database, Azure.Core.Expressions.DataFactory.DataFactoryElement sslMode) { } + public PostgreSqlV2LinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement server, Azure.Core.Expressions.DataFactory.DataFactoryElement username, Azure.Core.Expressions.DataFactory.DataFactoryElement database, Azure.Core.Expressions.DataFactory.DataFactoryElement authenticationType, Azure.Core.Expressions.DataFactory.DataFactoryElement sslMode) { } + public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement CommandTimeout { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionTimeout { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } @@ -10112,6 +10120,7 @@ public partial class SalesforceV2Source : Azure.ResourceManager.DataFactory.Mode { public SalesforceV2Source() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement IncludeDeletedObjects { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement PageSize { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SoqlQuery { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -10845,6 +10854,7 @@ public partial class ServiceNowV2Source : Azure.ResourceManager.DataFactory.Mode { public ServiceNowV2Source() { } public Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionV2 Expression { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement PageSize { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.DataFactory.Models.ServiceNowV2Source 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) { } @@ -11180,6 +11190,7 @@ public SnowflakeV2LinkedService(Azure.Core.Expressions.DataFactory.DataFactoryEl public Azure.Core.Expressions.DataFactory.DataFactorySecret ClientSecret { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecret Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecret PrivateKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecret PrivateKeyPassphrase { get { throw null; } set { } } 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 c57cfba31b2c..a35dcf56156a 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 b9f095b00196..97aafc4b2fe1 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/Generated/Models/PostgreSqlV2LinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlV2LinkedService.Serialization.cs index 963813ff62c1..ccaefe8e037d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlV2LinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlV2LinkedService.Serialization.cs @@ -49,6 +49,8 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri JsonSerializer.Serialize(writer, Username); writer.WritePropertyName("database"u8); JsonSerializer.Serialize(writer, Database); + writer.WritePropertyName("authenticationType"u8); + JsonSerializer.Serialize(writer, AuthenticationType); writer.WritePropertyName("sslMode"u8); JsonSerializer.Serialize(writer, SslMode); if (Optional.IsDefined(Schema)) @@ -166,6 +168,7 @@ internal static PostgreSqlV2LinkedService DeserializePostgreSqlV2LinkedService(J DataFactoryElement port = default; DataFactoryElement username = default; DataFactoryElement database = default; + DataFactoryElement authenticationType = default; DataFactoryElement sslMode = default; DataFactoryElement schema = default; DataFactoryElement pooling = default; @@ -277,6 +280,11 @@ internal static PostgreSqlV2LinkedService DeserializePostgreSqlV2LinkedService(J database = JsonSerializer.Deserialize>(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("authenticationType"u8)) + { + authenticationType = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } if (property0.NameEquals("sslMode"u8)) { sslMode = JsonSerializer.Deserialize>(property0.Value.GetRawText()); @@ -422,6 +430,7 @@ internal static PostgreSqlV2LinkedService DeserializePostgreSqlV2LinkedService(J port, username, database, + authenticationType, sslMode, schema, pooling, diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlV2LinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlV2LinkedService.cs index 9cc6851dfd52..490ee849179d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlV2LinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlV2LinkedService.cs @@ -18,18 +18,21 @@ public partial class PostgreSqlV2LinkedService : DataFactoryLinkedServicePropert /// Server name for connection. Type: string. /// Username for authentication. Type: string. /// Database name for connection. Type: string. + /// The authentication type to use. Type: string. /// SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer. - /// , , or is null. - public PostgreSqlV2LinkedService(DataFactoryElement server, DataFactoryElement username, DataFactoryElement database, DataFactoryElement sslMode) + /// , , , or is null. + public PostgreSqlV2LinkedService(DataFactoryElement server, DataFactoryElement username, DataFactoryElement database, DataFactoryElement authenticationType, DataFactoryElement sslMode) { Argument.AssertNotNull(server, nameof(server)); Argument.AssertNotNull(username, nameof(username)); Argument.AssertNotNull(database, nameof(database)); + Argument.AssertNotNull(authenticationType, nameof(authenticationType)); Argument.AssertNotNull(sslMode, nameof(sslMode)); Server = server; Username = username; Database = database; + AuthenticationType = authenticationType; SslMode = sslMode; LinkedServiceType = "PostgreSqlV2"; } @@ -46,6 +49,7 @@ public PostgreSqlV2LinkedService(DataFactoryElement server, DataFactoryE /// The port for the connection. Type: integer. /// Username for authentication. Type: string. /// Database name for connection. Type: string. + /// The authentication type to use. Type: string. /// SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer. /// Sets the schema search path. Type: string. /// Whether connection pooling should be used. Type: boolean. @@ -61,12 +65,13 @@ public PostgreSqlV2LinkedService(DataFactoryElement server, DataFactoryE /// 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. Type: string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal PostgreSqlV2LinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement port, DataFactoryElement username, DataFactoryElement database, DataFactoryElement sslMode, DataFactoryElement schema, DataFactoryElement pooling, DataFactoryElement connectionTimeout, DataFactoryElement commandTimeout, DataFactoryElement trustServerCertificate, DataFactoryElement sslCertificate, DataFactoryElement sslKey, DataFactoryElement sslPassword, DataFactoryElement readBufferSize, DataFactoryElement logParameters, DataFactoryElement timezone, DataFactoryElement encoding, DataFactoryKeyVaultSecret password, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) + internal PostgreSqlV2LinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement port, DataFactoryElement username, DataFactoryElement database, DataFactoryElement authenticationType, DataFactoryElement sslMode, DataFactoryElement schema, DataFactoryElement pooling, DataFactoryElement connectionTimeout, DataFactoryElement commandTimeout, DataFactoryElement trustServerCertificate, DataFactoryElement sslCertificate, DataFactoryElement sslKey, DataFactoryElement sslPassword, DataFactoryElement readBufferSize, DataFactoryElement logParameters, DataFactoryElement timezone, DataFactoryElement encoding, DataFactoryKeyVaultSecret password, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) { Server = server; Port = port; Username = username; Database = database; + AuthenticationType = authenticationType; SslMode = sslMode; Schema = schema; Pooling = pooling; @@ -98,6 +103,8 @@ internal PostgreSqlV2LinkedService() public DataFactoryElement Username { get; set; } /// Database name for connection. Type: string. public DataFactoryElement Database { get; set; } + /// The authentication type to use. Type: string. + public DataFactoryElement AuthenticationType { 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; } /// Sets the schema search path. Type: string. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceV2Source.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceV2Source.Serialization.cs index b35d1969531f..e1d3746ab423 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceV2Source.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceV2Source.Serialization.cs @@ -51,6 +51,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("includeDeletedObjects"u8); JsonSerializer.Serialize(writer, IncludeDeletedObjects); } + if (Optional.IsDefined(PageSize)) + { + writer.WritePropertyName("pageSize"u8); + JsonSerializer.Serialize(writer, PageSize); + } foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); @@ -88,6 +93,7 @@ internal static SalesforceV2Source DeserializeSalesforceV2Source(JsonElement ele DataFactoryElement soqlQuery = default; DataFactoryElement query = default; DataFactoryElement includeDeletedObjects = default; + DataFactoryElement pageSize = default; DataFactoryElement queryTimeout = default; BinaryData additionalColumns = default; string type = default; @@ -126,6 +132,15 @@ internal static SalesforceV2Source DeserializeSalesforceV2Source(JsonElement ele includeDeletedObjects = JsonSerializer.Deserialize>(property.Value.GetRawText()); continue; } + if (property.NameEquals("pageSize"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pageSize = JsonSerializer.Deserialize>(property.Value.GetRawText()); + continue; + } if (property.NameEquals("queryTimeout"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -199,7 +214,8 @@ internal static SalesforceV2Source DeserializeSalesforceV2Source(JsonElement ele additionalColumns, soqlQuery, query, - includeDeletedObjects); + includeDeletedObjects, + pageSize); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceV2Source.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceV2Source.cs index 5b09cb5c1337..cc837f8609f5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceV2Source.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceV2Source.cs @@ -32,11 +32,13 @@ public SalesforceV2Source() /// Deprecating, please use 'query' property instead. Type: string (or Expression with resultType string). /// You can only use Salesforce Object Query Language (SOQL) query with limitations. For SOQL limitations, see this article: https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations. If query is not specified, all the data of the Salesforce object specified in ObjectApiName/reportId in dataset will be retrieved. Type: string (or Expression with resultType string). /// This property control whether query result contains Deleted objects. Default is false. Type: boolean (or Expression with resultType boolean). - internal SalesforceV2Source(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement queryTimeout, BinaryData additionalColumns, DataFactoryElement soqlQuery, DataFactoryElement query, DataFactoryElement includeDeletedObjects) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties, queryTimeout, additionalColumns) + /// Page size for each http request, too large pageSize will caused timeout, default 300,000. Type: integer (or Expression with resultType integer). + internal SalesforceV2Source(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement queryTimeout, BinaryData additionalColumns, DataFactoryElement soqlQuery, DataFactoryElement query, DataFactoryElement includeDeletedObjects, DataFactoryElement pageSize) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties, queryTimeout, additionalColumns) { SoqlQuery = soqlQuery; Query = query; IncludeDeletedObjects = includeDeletedObjects; + PageSize = pageSize; CopySourceType = copySourceType ?? "SalesforceV2Source"; } @@ -46,5 +48,7 @@ internal SalesforceV2Source(string copySourceType, DataFactoryElement sourc public DataFactoryElement Query { get; set; } /// This property control whether query result contains Deleted objects. Default is false. Type: boolean (or Expression with resultType boolean). public DataFactoryElement IncludeDeletedObjects { get; set; } + /// Page size for each http request, too large pageSize will caused timeout, default 300,000. Type: integer (or Expression with resultType integer). + public DataFactoryElement PageSize { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowV2Source.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowV2Source.Serialization.cs index 2d40098816e7..bb09bfbc9067 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowV2Source.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowV2Source.Serialization.cs @@ -41,6 +41,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("expression"u8); writer.WriteObjectValue(Expression, options); } + if (Optional.IsDefined(PageSize)) + { + writer.WritePropertyName("pageSize"u8); + JsonSerializer.Serialize(writer, PageSize); + } foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); @@ -76,6 +81,7 @@ internal static ServiceNowV2Source DeserializeServiceNowV2Source(JsonElement ele return null; } DataFactoryExpressionV2 expression = default; + DataFactoryElement pageSize = default; DataFactoryElement queryTimeout = default; BinaryData additionalColumns = default; string type = default; @@ -96,6 +102,15 @@ internal static ServiceNowV2Source DeserializeServiceNowV2Source(JsonElement ele expression = DataFactoryExpressionV2.DeserializeDataFactoryExpressionV2(property.Value, options); continue; } + if (property.NameEquals("pageSize"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pageSize = JsonSerializer.Deserialize>(property.Value.GetRawText()); + continue; + } if (property.NameEquals("queryTimeout"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -167,7 +182,8 @@ internal static ServiceNowV2Source DeserializeServiceNowV2Source(JsonElement ele additionalProperties, queryTimeout, additionalColumns, - expression); + expression, + pageSize); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowV2Source.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowV2Source.cs index 62e0c258de31..3817f061ee6c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowV2Source.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowV2Source.cs @@ -30,13 +30,17 @@ public ServiceNowV2Source() /// Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). /// Expression to filter data from source. - internal ServiceNowV2Source(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement queryTimeout, BinaryData additionalColumns, DataFactoryExpressionV2 expression) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties, queryTimeout, additionalColumns) + /// Page size of the result. Type: integer (or Expression with resultType integer). + internal ServiceNowV2Source(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement queryTimeout, BinaryData additionalColumns, DataFactoryExpressionV2 expression, DataFactoryElement pageSize) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties, queryTimeout, additionalColumns) { Expression = expression; + PageSize = pageSize; CopySourceType = copySourceType ?? "ServiceNowV2Source"; } /// Expression to filter data from source. public DataFactoryExpressionV2 Expression { get; set; } + /// Page size of the result. Type: integer (or Expression with resultType integer). + public DataFactoryElement PageSize { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeV2LinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeV2LinkedService.Serialization.cs index 3e0b1987f5d9..04a036cc8523 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeV2LinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeV2LinkedService.Serialization.cs @@ -89,6 +89,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("privateKeyPassphrase"u8); JsonSerializer.Serialize(writer, PrivateKeyPassphrase); } + if (Optional.IsDefined(Host)) + { + writer.WritePropertyName("host"u8); + JsonSerializer.Serialize(writer, Host); + } if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); @@ -147,6 +152,7 @@ internal static SnowflakeV2LinkedService DeserializeSnowflakeV2LinkedService(Jso DataFactoryElement scope = default; DataFactorySecret privateKey = default; DataFactorySecret privateKeyPassphrase = default; + DataFactoryElement host = default; string encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -316,6 +322,15 @@ internal static SnowflakeV2LinkedService DeserializeSnowflakeV2LinkedService(Jso privateKeyPassphrase = JsonSerializer.Deserialize(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("host"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + host = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } if (property0.NameEquals("encryptedCredential"u8)) { encryptedCredential = property0.Value.GetString(); @@ -347,6 +362,7 @@ internal static SnowflakeV2LinkedService DeserializeSnowflakeV2LinkedService(Jso scope, privateKey, privateKeyPassphrase, + host, encryptedCredential); } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeV2LinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeV2LinkedService.cs index f09175ddf311..7e2365d2318d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeV2LinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeV2LinkedService.cs @@ -51,8 +51,9 @@ public SnowflakeV2LinkedService(DataFactoryElement accountIdentifier, Da /// The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication. /// The Azure key vault secret reference of privateKey for KeyPair auth. /// The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key. + /// The host name of the Snowflake account. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SnowflakeV2LinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accountIdentifier, DataFactoryElement user, DataFactorySecret password, DataFactoryElement database, DataFactoryElement warehouse, SnowflakeAuthenticationType? authenticationType, DataFactoryElement clientId, DataFactorySecret clientSecret, DataFactoryElement tenantId, DataFactoryElement scope, DataFactorySecret privateKey, DataFactorySecret privateKeyPassphrase, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) + internal SnowflakeV2LinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accountIdentifier, DataFactoryElement user, DataFactorySecret password, DataFactoryElement database, DataFactoryElement warehouse, SnowflakeAuthenticationType? authenticationType, DataFactoryElement clientId, DataFactorySecret clientSecret, DataFactoryElement tenantId, DataFactoryElement scope, DataFactorySecret privateKey, DataFactorySecret privateKeyPassphrase, DataFactoryElement host, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) { AccountIdentifier = accountIdentifier; User = user; @@ -66,6 +67,7 @@ internal SnowflakeV2LinkedService(string linkedServiceType, string linkedService Scope = scope; PrivateKey = privateKey; PrivateKeyPassphrase = privateKeyPassphrase; + Host = host; EncryptedCredential = encryptedCredential; LinkedServiceType = linkedServiceType ?? "SnowflakeV2"; } @@ -99,6 +101,8 @@ internal SnowflakeV2LinkedService() public DataFactorySecret PrivateKey { get; set; } /// The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key. public DataFactorySecret PrivateKeyPassphrase { get; set; } + /// The host name of the Snowflake account. + public DataFactoryElement Host { get; set; } /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. public string EncryptedCredential { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md index 16fe93617a19..7183098c184a 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/1ad29756bd141a47cac770140105a706d065ae1b/specification/datafactory/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: