From 6d75a5d6a22a80844b7d0d7f847fbed1243466a0 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 13 May 2025 08:01:50 +0000 Subject: [PATCH] CodeGen from PR 34491 in Azure/azure-rest-api-specs Merge 02fc6fe46966979ee39276997e6d3fb0730e8c53 into ba0c086df0ebe03a61579485c1c10de0d17804b2 --- ...zure.ResourceManager.DataFactory.net8.0.cs | 9 ++++++ ...ourceManager.DataFactory.netstandard2.0.cs | 9 ++++++ .../Models/HiveLinkedService.Serialization.cs | 16 ++++++++++ .../src/Generated/Models/HiveLinkedService.cs | 6 +++- .../ImpalaLinkedService.Serialization.cs | 32 +++++++++++++++++++ .../Generated/Models/ImpalaLinkedService.cs | 10 +++++- ...laThriftTransportProtocol.Serialization.cs | 28 ++++++++++++++++ .../Models/ImpalaThriftTransportProtocol.cs | 18 +++++++++++ .../SparkLinkedService.Serialization.cs | 16 ++++++++++ .../Generated/Models/SparkLinkedService.cs | 6 +++- .../src/autorest.md | 2 +- sdk/storage/ci.yml | 2 ++ 12 files changed, 150 insertions(+), 4 deletions(-) create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaThriftTransportProtocol.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaThriftTransportProtocol.cs diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.net8.0.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.net8.0.cs index aa73a84e0653..ac3eba292a27 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.net8.0.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.net8.0.cs @@ -6678,6 +6678,7 @@ public HiveLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.HiveAuthenticationType AuthenticationType { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } @@ -6938,11 +6939,13 @@ public ImpalaLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.ImpalaAuthenticationType AuthenticationType { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { 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.DataFactoryElement Port { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.ImpalaThriftTransportProtocol? ThriftTransportProtocol { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TrustedCertPath { 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 { } } @@ -6977,6 +6980,11 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public enum ImpalaThriftTransportProtocol + { + Binary = 0, + Http = 1, + } public abstract partial class ImportSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected ImportSettings() { } @@ -11479,6 +11487,7 @@ public SparkLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement< public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.SparkAuthenticationType AuthenticationType { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } 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 aa73a84e0653..ac3eba292a27 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 @@ -6678,6 +6678,7 @@ public HiveLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.HiveAuthenticationType AuthenticationType { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } @@ -6938,11 +6939,13 @@ public ImpalaLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.ImpalaAuthenticationType AuthenticationType { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { 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.DataFactoryElement Port { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.ImpalaThriftTransportProtocol? ThriftTransportProtocol { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TrustedCertPath { 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 { } } @@ -6977,6 +6980,11 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public enum ImpalaThriftTransportProtocol + { + Binary = 0, + Http = 1, + } public abstract partial class ImportSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected ImportSettings() { } @@ -11479,6 +11487,7 @@ public SparkLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement< public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.SparkAuthenticationType AuthenticationType { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.Serialization.cs index eba153ace31e..5eca1ac30616 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.Serialization.cs @@ -92,6 +92,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("enableSsl"u8); JsonSerializer.Serialize(writer, EnableSsl); } + if (Optional.IsDefined(EnableServerCertificateValidation)) + { + writer.WritePropertyName("enableServerCertificateValidation"u8); + JsonSerializer.Serialize(writer, EnableServerCertificateValidation); + } if (Optional.IsDefined(TrustedCertPath)) { writer.WritePropertyName("trustedCertPath"u8); @@ -170,6 +175,7 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme DataFactorySecret password = default; DataFactoryElement httpPath = default; DataFactoryElement enableSsl = default; + DataFactoryElement enableServerCertificateValidation = default; DataFactoryElement trustedCertPath = default; DataFactoryElement useSystemTrustStore = default; DataFactoryElement allowHostNameCNMismatch = default; @@ -347,6 +353,15 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme enableSsl = JsonSerializer.Deserialize>(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("enableServerCertificateValidation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableServerCertificateValidation = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } if (property0.NameEquals("trustedCertPath"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -414,6 +429,7 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme password, httpPath, enableSsl, + enableServerCertificateValidation, trustedCertPath, useSystemTrustStore, allowHostNameCNMismatch, diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.cs index fe43ed767542..114e7e212d88 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.cs @@ -47,12 +47,13 @@ public HiveLinkedService(DataFactoryElement host, HiveAuthenticationType /// The password corresponding to the user name that you provided in the Username field. /// The partial URL corresponding to the Hive server. /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. + /// Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0. /// The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. /// Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. /// Specifies whether to allow self-signed certificates from the server. The default value is false. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal HiveLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, HiveServerType? serverType, HiveThriftTransportProtocol? thriftTransportProtocol, HiveAuthenticationType authenticationType, DataFactoryElement serviceDiscoveryMode, DataFactoryElement zooKeeperNameSpace, DataFactoryElement useNativeQuery, DataFactoryElement username, DataFactorySecret password, DataFactoryElement httpPath, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) + internal HiveLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, HiveServerType? serverType, HiveThriftTransportProtocol? thriftTransportProtocol, HiveAuthenticationType authenticationType, DataFactoryElement serviceDiscoveryMode, DataFactoryElement zooKeeperNameSpace, DataFactoryElement useNativeQuery, DataFactoryElement username, DataFactorySecret password, DataFactoryElement httpPath, DataFactoryElement enableSsl, DataFactoryElement enableServerCertificateValidation, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -66,6 +67,7 @@ internal HiveLinkedService(string linkedServiceType, string linkedServiceVersion Password = password; HttpPath = httpPath; EnableSsl = enableSsl; + EnableServerCertificateValidation = enableServerCertificateValidation; TrustedCertPath = trustedCertPath; UseSystemTrustStore = useSystemTrustStore; AllowHostNameCNMismatch = allowHostNameCNMismatch; @@ -103,6 +105,8 @@ internal HiveLinkedService() public DataFactoryElement HttpPath { get; set; } /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. public DataFactoryElement EnableSsl { get; set; } + /// Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0. + public DataFactoryElement EnableServerCertificateValidation { get; set; } /// The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. public DataFactoryElement TrustedCertPath { get; set; } /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.Serialization.cs index 171971ebf06b..958a8dfb7a32 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.Serialization.cs @@ -57,11 +57,21 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("password"u8); JsonSerializer.Serialize(writer, Password); } + if (Optional.IsDefined(ThriftTransportProtocol)) + { + writer.WritePropertyName("thriftTransportProtocol"u8); + writer.WriteStringValue(ThriftTransportProtocol.Value.ToSerialString()); + } if (Optional.IsDefined(EnableSsl)) { writer.WritePropertyName("enableSsl"u8); JsonSerializer.Serialize(writer, EnableSsl); } + if (Optional.IsDefined(EnableServerCertificateValidation)) + { + writer.WritePropertyName("enableServerCertificateValidation"u8); + JsonSerializer.Serialize(writer, EnableServerCertificateValidation); + } if (Optional.IsDefined(TrustedCertPath)) { writer.WritePropertyName("trustedCertPath"u8); @@ -133,7 +143,9 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e ImpalaAuthenticationType authenticationType = default; DataFactoryElement username = default; DataFactorySecret password = default; + ImpalaThriftTransportProtocol? thriftTransportProtocol = default; DataFactoryElement enableSsl = default; + DataFactoryElement enableServerCertificateValidation = default; DataFactoryElement trustedCertPath = default; DataFactoryElement useSystemTrustStore = default; DataFactoryElement allowHostNameCNMismatch = default; @@ -248,6 +260,15 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e password = JsonSerializer.Deserialize(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("thriftTransportProtocol"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + thriftTransportProtocol = property0.Value.GetString().ToImpalaThriftTransportProtocol(); + continue; + } if (property0.NameEquals("enableSsl"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -257,6 +278,15 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e enableSsl = JsonSerializer.Deserialize>(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("enableServerCertificateValidation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableServerCertificateValidation = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } if (property0.NameEquals("trustedCertPath"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -317,7 +347,9 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e authenticationType, username, password, + thriftTransportProtocol, enableSsl, + enableServerCertificateValidation, trustedCertPath, useSystemTrustStore, allowHostNameCNMismatch, diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.cs index c8022b0d976e..00d88d44e550 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.cs @@ -40,20 +40,24 @@ public ImpalaLinkedService(DataFactoryElement host, ImpalaAuthentication /// The authentication type to use. /// The user name used to access the Impala server. The default value is anonymous when using SASLUsername. /// The password corresponding to the user name when using UsernameAndPassword. + /// The transport protocol to use in the Thrift layer (for V2 only). Default value is Binary. /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. + /// Specify whether to enable server SSL certificate validation when you connect.Always use System Trust Store (for V2 only). The default value is true. /// The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. /// Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. /// Specifies whether to allow self-signed certificates from the server. The default value is false. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ImpalaLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, ImpalaAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecret password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) + internal ImpalaLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, ImpalaAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecret password, ImpalaThriftTransportProtocol? thriftTransportProtocol, DataFactoryElement enableSsl, DataFactoryElement enableServerCertificateValidation, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; AuthenticationType = authenticationType; Username = username; Password = password; + ThriftTransportProtocol = thriftTransportProtocol; EnableSsl = enableSsl; + EnableServerCertificateValidation = enableServerCertificateValidation; TrustedCertPath = trustedCertPath; UseSystemTrustStore = useSystemTrustStore; AllowHostNameCNMismatch = allowHostNameCNMismatch; @@ -77,8 +81,12 @@ internal ImpalaLinkedService() public DataFactoryElement Username { get; set; } /// The password corresponding to the user name when using UsernameAndPassword. public DataFactorySecret Password { get; set; } + /// The transport protocol to use in the Thrift layer (for V2 only). Default value is Binary. + public ImpalaThriftTransportProtocol? ThriftTransportProtocol { get; set; } /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. public DataFactoryElement EnableSsl { get; set; } + /// Specify whether to enable server SSL certificate validation when you connect.Always use System Trust Store (for V2 only). The default value is true. + public DataFactoryElement EnableServerCertificateValidation { get; set; } /// The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. public DataFactoryElement TrustedCertPath { get; set; } /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaThriftTransportProtocol.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaThriftTransportProtocol.Serialization.cs new file mode 100644 index 000000000000..7c4c6e4288d7 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaThriftTransportProtocol.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DataFactory.Models +{ + internal static partial class ImpalaThriftTransportProtocolExtensions + { + public static string ToSerialString(this ImpalaThriftTransportProtocol value) => value switch + { + ImpalaThriftTransportProtocol.Binary => "Binary", + ImpalaThriftTransportProtocol.Http => "HTTP", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ImpalaThriftTransportProtocol value.") + }; + + public static ImpalaThriftTransportProtocol ToImpalaThriftTransportProtocol(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Binary")) return ImpalaThriftTransportProtocol.Binary; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "HTTP")) return ImpalaThriftTransportProtocol.Http; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ImpalaThriftTransportProtocol value."); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaThriftTransportProtocol.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaThriftTransportProtocol.cs new file mode 100644 index 000000000000..b919e9c4de40 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaThriftTransportProtocol.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// The transport protocol to use in the Thrift layer (for V2 only). Default value is Binary. + public enum ImpalaThriftTransportProtocol + { + /// Binary. + Binary, + /// HTTP. + Http + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.Serialization.cs index c6c454cc2a72..55f48f1ea695 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.Serialization.cs @@ -74,6 +74,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("enableSsl"u8); JsonSerializer.Serialize(writer, EnableSsl); } + if (Optional.IsDefined(EnableServerCertificateValidation)) + { + writer.WritePropertyName("enableServerCertificateValidation"u8); + JsonSerializer.Serialize(writer, EnableServerCertificateValidation); + } if (Optional.IsDefined(TrustedCertPath)) { writer.WritePropertyName("trustedCertPath"u8); @@ -149,6 +154,7 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele DataFactorySecret password = default; DataFactoryElement httpPath = default; DataFactoryElement enableSsl = default; + DataFactoryElement enableServerCertificateValidation = default; DataFactoryElement trustedCertPath = default; DataFactoryElement useSystemTrustStore = default; DataFactoryElement allowHostNameCNMismatch = default; @@ -295,6 +301,15 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele enableSsl = JsonSerializer.Deserialize>(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("enableServerCertificateValidation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableServerCertificateValidation = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } if (property0.NameEquals("trustedCertPath"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -359,6 +374,7 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele password, httpPath, enableSsl, + enableServerCertificateValidation, trustedCertPath, useSystemTrustStore, allowHostNameCNMismatch, diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.cs index c6e9da8fa941..a49e669153b8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.cs @@ -47,12 +47,13 @@ public SparkLinkedService(DataFactoryElement host, DataFactoryElement The password corresponding to the user name that you provided in the Username field. /// The partial URL corresponding to the Spark server. /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. + /// Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0. /// The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. /// Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. /// Specifies whether to allow self-signed certificates from the server. The default value is false. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SparkLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, SparkServerType? serverType, SparkThriftTransportProtocol? thriftTransportProtocol, SparkAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecret password, DataFactoryElement httpPath, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) + internal SparkLinkedService(string linkedServiceType, string linkedServiceVersion, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, SparkServerType? serverType, SparkThriftTransportProtocol? thriftTransportProtocol, SparkAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecret password, DataFactoryElement httpPath, DataFactoryElement enableSsl, DataFactoryElement enableServerCertificateValidation, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, linkedServiceVersion, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -63,6 +64,7 @@ internal SparkLinkedService(string linkedServiceType, string linkedServiceVersio Password = password; HttpPath = httpPath; EnableSsl = enableSsl; + EnableServerCertificateValidation = enableServerCertificateValidation; TrustedCertPath = trustedCertPath; UseSystemTrustStore = useSystemTrustStore; AllowHostNameCNMismatch = allowHostNameCNMismatch; @@ -94,6 +96,8 @@ internal SparkLinkedService() public DataFactoryElement HttpPath { get; set; } /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. public DataFactoryElement EnableSsl { get; set; } + /// Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0. + public DataFactoryElement EnableServerCertificateValidation { get; set; } /// The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. public DataFactoryElement TrustedCertPath { get; set; } /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md index c6f0e1d4cac8..7eaf535bd9ce 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/4c0f7731c93696af01bd2bb9927bf28d2afcbc98/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: diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 2ca0501b60bd..4e749e6b85b1 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -12,6 +12,8 @@ trigger: - sdk/storage/Azure.Storage.DataMovement/ - sdk/storage/Azure.Storage.DataMovement.Blobs/ - sdk/storage/Azure.Storage.DataMovement.Files/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement.Blobs.Files.Shares/ exclude: - sdk/storage/Azure.ResourceManager.Storage/