From 29df8c70094ba22c301bf0fd876ea3be4912ff0a Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Fri, 29 Aug 2025 16:03:32 +0800 Subject: [PATCH 1/3] Synapse Artifacts: update models and serialization for new release (Sep) --- .../CHANGELOG.md | 2 +- ...zure.Analytics.Synapse.Artifacts.net8.0.cs | 209 +++++++++++- ...lytics.Synapse.Artifacts.netstandard2.0.cs | 209 +++++++++++- .../AnalyticsSynapseArtifactsModelFactory.cs | 2 +- .../AmazonRdsForOracleAuthenticationType.cs | 48 +++ ...RdsForOracleLinkedService.Serialization.cs | 235 ++++++++++++- .../Models/AmazonRdsForOracleLinkedService.cs | 72 +++- .../AmazonRdsForOracleSource.Serialization.cs | 34 +- .../Models/AmazonRdsForOracleSource.cs | 10 +- ...reDatabricksLinkedService.Serialization.cs | 18 +- .../Models/AzureDatabricksLinkedService.cs | 6 +- .../AzurePostgreSqlSink.Serialization.cs | 34 +- .../Generated/Models/AzurePostgreSqlSink.cs | 12 +- ...tgreSqlSinkUpsertSettings.Serialization.cs | 64 ++++ .../AzurePostgreSqlSinkUpsertSettings.cs | 28 ++ .../Generated/Models/AzurePostgreSqlSource.cs | 2 +- .../Models/AzurePostgreSqlWriteMethodEnum.cs | 54 +++ ...monDataServiceForAppsSink.Serialization.cs | 34 +- .../Models/CommonDataServiceForAppsSink.cs | 10 +- .../Models/DynamicsCrmSink.Serialization.cs | 34 +- .../src/Generated/Models/DynamicsCrmSink.cs | 10 +- .../Models/DynamicsSink.Serialization.cs | 34 +- .../src/Generated/Models/DynamicsSink.cs | 10 +- .../Models/ExpressionV2.Serialization.cs | 10 +- .../src/Generated/Models/ExpressionV2.cs | 8 +- .../GreenplumLinkedService.Serialization.cs | 18 +- .../Models/GreenplumLinkedService.cs | 14 +- .../HDInsightClusterAuthenticationType.cs | 54 +++ .../HDInsightLinkedService.Serialization.cs | 34 +- .../Models/HDInsightLinkedService.cs | 10 +- .../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 + .../LakeHouseLinkedService.Serialization.cs | 34 +- .../Models/LakeHouseLinkedService.cs | 10 +- .../Models/LakehouseAuthenticationType.cs | 54 +++ .../Models/LinkedService.Serialization.cs | 1 + .../src/Generated/Models/LinkedService.cs | 2 +- .../Models/LinkedServiceDebugResource.cs | 6 +- .../Generated/Models/LinkedServiceResource.cs | 6 +- .../Office365LinkedService.Serialization.cs | 48 +++ .../Models/Office365LinkedService.cs | 30 +- .../OracleLinkedService.Serialization.cs | 11 +- .../Generated/Models/OracleLinkedService.cs | 8 +- .../Models/OracleSource.Serialization.cs | 34 +- .../src/Generated/Models/OracleSource.cs | 10 +- .../PrestoLinkedService.Serialization.cs | 27 +- .../Generated/Models/PrestoLinkedService.cs | 47 +-- .../QuickBooksLinkedService.Serialization.cs | 38 ++- .../Models/QuickBooksLinkedService.cs | 54 ++- .../Models/ServiceNowV2AuthenticationType.cs | 2 +- ...ServiceNowV2LinkedService.Serialization.cs | 316 ++++++++++++++++++ ...erties.cs => ServiceNowV2LinkedService.cs} | 38 ++- ...ServiceNowV2ObjectDataset.Serialization.cs | 18 +- .../Models/ServiceNowV2ObjectDataset.cs | 6 +- .../SnowflakeV2LinkedService.Serialization.cs | 32 ++ .../Models/SnowflakeV2LinkedService.cs | 14 +- .../SparkLinkedService.Serialization.cs | 16 + .../Generated/Models/SparkLinkedService.cs | 6 +- .../TypeConversionSettings.Serialization.cs | 32 ++ .../Models/TypeConversionSettings.cs | 10 +- .../src/Generated/Models/ValueType.cs | 51 +++ .../Models/WarehouseAuthenticationType.cs | 54 +++ .../WarehouseLinkedService.Serialization.cs | 34 +- .../Models/WarehouseLinkedService.cs | 10 +- .../src/autorest.md | 2 +- 69 files changed, 2305 insertions(+), 185 deletions(-) create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleAuthenticationType.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSinkUpsertSettings.Serialization.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSinkUpsertSettings.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlWriteMethodEnum.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightClusterAuthenticationType.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaThriftTransportProtocol.Serialization.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaThriftTransportProtocol.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakehouseAuthenticationType.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedService.Serialization.cs rename sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/{ServiceNowV2LinkedServiceTypeProperties.cs => ServiceNowV2LinkedService.cs} (70%) create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ValueType.cs create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseAuthenticationType.cs diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md index daab7b92e586..51bdacf90696 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0-preview.22 (Unreleased) +## 1.0.0-preview.22 (2025-09-05) ### Features Added diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.net8.0.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.net8.0.cs index 29b96e746535..4c7ba7ff8483 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.net8.0.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.net8.0.cs @@ -1071,12 +1071,43 @@ public partial class AmazonMWSSource : Azure.Analytics.Synapse.Artifacts.Models. public AmazonMWSSource() { } public object Query { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AmazonRdsForOracleAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AmazonRdsForOracleAuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType Basic { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class AmazonRdsForOracleLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { - public AmazonRdsForOracleLinkedService(object connectionString) { } + public AmazonRdsForOracleLinkedService() { } + public Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType? AuthenticationType { get { throw null; } set { } } public object ConnectionString { get { throw null; } set { } } + public object CryptoChecksumClient { get { throw null; } set { } } + public object CryptoChecksumTypesClient { get { throw null; } set { } } + public object EnableBulkLoad { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } + public object EncryptionClient { get { throw null; } set { } } + public object EncryptionTypesClient { get { throw null; } set { } } + public object FetchSize { get { throw null; } set { } } + public object FetchTswtzAsTimestamp { get { throw null; } set { } } + public object InitializationString { get { throw null; } set { } } + public object InitialLobFetchSize { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } + public object Server { get { throw null; } set { } } + public object StatementCacheSize { get { throw null; } set { } } + public object SupportV1DataTypes { get { throw null; } set { } } + public object Username { get { throw null; } set { } } } public partial class AmazonRdsForOraclePartitionSettings { @@ -1090,6 +1121,8 @@ public partial class AmazonRdsForOracleSource : Azure.Analytics.Synapse.Artifact { public AmazonRdsForOracleSource() { } public object AdditionalColumns { get { throw null; } set { } } + public object NumberPrecision { get { throw null; } set { } } + public object NumberScale { get { throw null; } set { } } public object OracleReaderQuery { get { throw null; } set { } } public object PartitionOption { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOraclePartitionSettings PartitionSettings { get { throw null; } set { } } @@ -1553,6 +1586,7 @@ public AzureDatabricksLinkedService(object domain) { } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase AccessToken { get { throw null; } set { } } public object Authentication { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.CredentialReference Credential { get { throw null; } set { } } + public object DataSecurityMode { get { throw null; } set { } } public object Domain { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object ExistingClusterId { get { throw null; } set { } } @@ -1895,6 +1929,13 @@ public partial class AzurePostgreSqlSink : Azure.Analytics.Synapse.Artifacts.Mod { public AzurePostgreSqlSink() { } public object PreCopyScript { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlSinkUpsertSettings UpsertSettings { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum? WriteMethod { get { throw null; } set { } } + } + public partial class AzurePostgreSqlSinkUpsertSettings + { + public AzurePostgreSqlSinkUpsertSettings() { } + public object Keys { get { throw null; } set { } } } public partial class AzurePostgreSqlSource : Azure.Analytics.Synapse.Artifacts.Models.TabularSource { @@ -1908,6 +1949,25 @@ public AzurePostgreSqlTableDataset(Azure.Analytics.Synapse.Artifacts.Models.Link public object Table { get { throw null; } set { } } public object TableName { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AzurePostgreSqlWriteMethodEnum : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AzurePostgreSqlWriteMethodEnum(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum BulkInsert { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum CopyCommand { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum Upsert { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum left, Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum left, Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum right) { throw null; } + public override string ToString() { throw null; } + } public partial class AzureQueueSink : Azure.Analytics.Synapse.Artifacts.Models.CopySink { public AzureQueueSink() { } @@ -2460,6 +2520,8 @@ public partial class CommonDataServiceForAppsSink : Azure.Analytics.Synapse.Arti { public CommonDataServiceForAppsSink(Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior writeBehavior) { } public object AlternateKeyName { get { throw null; } set { } } + public object BypassBusinessLogicExecution { get { throw null; } set { } } + public object BypassPowerAutomateFlows { get { throw null; } set { } } public object IgnoreNullValues { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior WriteBehavior { get { throw null; } set { } } } @@ -3317,6 +3379,8 @@ public partial class DynamicsCrmSink : Azure.Analytics.Synapse.Artifacts.Models. { public DynamicsCrmSink(Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior writeBehavior) { } public object AlternateKeyName { get { throw null; } set { } } + public object BypassBusinessLogicExecution { get { throw null; } set { } } + public object BypassPowerAutomateFlows { get { throw null; } set { } } public object IgnoreNullValues { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior WriteBehavior { get { throw null; } set { } } } @@ -3353,6 +3417,8 @@ public partial class DynamicsSink : Azure.Analytics.Synapse.Artifacts.Models.Cop { public DynamicsSink(Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior writeBehavior) { } public object AlternateKeyName { get { throw null; } set { } } + public object BypassBusinessLogicExecution { get { throw null; } set { } } + public object BypassPowerAutomateFlows { get { throw null; } set { } } public object IgnoreNullValues { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior WriteBehavior { get { throw null; } set { } } } @@ -3558,7 +3624,7 @@ public ExpressionV2() { } public System.Collections.Generic.IList Operands { get { throw null; } } public System.Collections.Generic.IList Operators { get { throw null; } } public Azure.Analytics.Synapse.Artifacts.Models.ExpressionV2Type? Type { get { throw null; } set { } } - public string Value { get { throw null; } set { } } + public object Value { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ExpressionV2Type : System.IEquatable @@ -3945,7 +4011,6 @@ public GreenplumLinkedService() { } public object Database { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } - public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } public object Port { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.AzureKeyVaultSecretReference Pwd { get { throw null; } set { } } public object SslMode { get { throw null; } set { } } @@ -4058,6 +4123,25 @@ public HdfsSource() { } public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.HDInsightActivityDebugInfoOption left, Azure.Analytics.Synapse.Artifacts.Models.HDInsightActivityDebugInfoOption right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HDInsightClusterAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HDInsightClusterAuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType BasicAuth { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType SystemAssignedManagedIdentity { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType UserAssignedManagedIdentity { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class HDInsightHiveActivity : Azure.Analytics.Synapse.Artifacts.Models.ExecutionActivity { public HDInsightHiveActivity(string name) : base (default(string)) { } @@ -4073,7 +4157,9 @@ public HDInsightHiveActivity(string name) : base (default(string)) { } public partial class HDInsightLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { public HDInsightLinkedService(object clusterUri) { } + public Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType? ClusterAuthType { get { throw null; } set { } } public object ClusterUri { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.CredentialReference Credential { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object FileSystem { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.LinkedServiceReference HcatalogLinkedServiceName { get { throw null; } set { } } @@ -4196,6 +4282,7 @@ public HiveLinkedService(object host, Azure.Analytics.Synapse.Artifacts.Models.H public object AllowHostNameCNMismatch { get { throw null; } set { } } public object AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.HiveAuthenticationType AuthenticationType { get { throw null; } set { } } + public object EnableServerCertificateValidation { get { throw null; } set { } } public object EnableSsl { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } @@ -4394,11 +4481,13 @@ public ImpalaLinkedService(object host, Azure.Analytics.Synapse.Artifacts.Models public object AllowHostNameCNMismatch { get { throw null; } set { } } public object AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.ImpalaAuthenticationType AuthenticationType { get { throw null; } set { } } + public object EnableServerCertificateValidation { get { throw null; } set { } } public object EnableSsl { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } public object Port { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.ImpalaThriftTransportProtocol? ThriftTransportProtocol { get { throw null; } set { } } public object TrustedCertPath { get { throw null; } set { } } public object Username { get { throw null; } set { } } public object UseSystemTrustStore { get { throw null; } set { } } @@ -4415,6 +4504,11 @@ public partial class ImpalaSource : Azure.Analytics.Synapse.Artifacts.Models.Tab public ImpalaSource() { } public object Query { get { throw null; } set { } } } + public enum ImpalaThriftTransportProtocol + { + Binary = 0, + Http = 1, + } public abstract partial class ImportSettings { protected ImportSettings() { } @@ -4764,10 +4858,31 @@ public KqlScriptResource() { } public Azure.Analytics.Synapse.Artifacts.Models.KqlScript Properties { get { throw null; } set { } } public string Type { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct LakehouseAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LakehouseAuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType ServicePrincipal { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType SystemAssignedManagedIdentity { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType UserAssignedManagedIdentity { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class LakeHouseLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { public LakeHouseLinkedService() { } public object ArtifactId { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType? AuthenticationType { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.CredentialReference Credential { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalCredential { get { throw null; } set { } } public object ServicePrincipalCredentialType { get { throw null; } set { } } @@ -5722,6 +5837,9 @@ public partial class Office365LinkedService : Azure.Analytics.Synapse.Artifacts. public Office365LinkedService(object office365TenantId, object servicePrincipalTenantId, object servicePrincipalId, Azure.Analytics.Synapse.Artifacts.Models.SecretBase servicePrincipalKey) { } public object EncryptedCredential { get { throw null; } set { } } public object Office365TenantId { get { throw null; } set { } } + public object ServicePrincipalCredentialType { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalEmbeddedCert { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalEmbeddedCertPassword { get { throw null; } set { } } public object ServicePrincipalId { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalKey { get { throw null; } set { } } public object ServicePrincipalTenantId { get { throw null; } set { } } @@ -5764,7 +5882,7 @@ internal OperationResult() { } } public partial class OracleLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { - public OracleLinkedService(object connectionString) { } + public OracleLinkedService() { } public Azure.Analytics.Synapse.Artifacts.Models.OracleAuthenticationType? AuthenticationType { get { throw null; } set { } } public object ConnectionString { get { throw null; } set { } } public object CryptoChecksumClient { get { throw null; } set { } } @@ -5840,6 +5958,8 @@ public partial class OracleSource : Azure.Analytics.Synapse.Artifacts.Models.Cop { public OracleSource() { } public object AdditionalColumns { get { throw null; } set { } } + public object NumberPrecision { get { throw null; } set { } } + public object NumberScale { get { throw null; } set { } } public object OracleReaderQuery { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.OraclePartitionOption? PartitionOption { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.OraclePartitionSettings PartitionSettings { get { throw null; } set { } } @@ -6213,11 +6333,12 @@ public PowerBIWorkspaceLinkedService(string workspaceId, string tenantId) { } } public partial class PrestoLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { - public PrestoLinkedService(object host, object serverVersion, object catalog, Azure.Analytics.Synapse.Artifacts.Models.PrestoAuthenticationType authenticationType) { } + public PrestoLinkedService(object host, object catalog, Azure.Analytics.Synapse.Artifacts.Models.PrestoAuthenticationType authenticationType) { } public object AllowHostNameCNMismatch { get { throw null; } set { } } public object AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.PrestoAuthenticationType AuthenticationType { get { throw null; } set { } } public object Catalog { get { throw null; } set { } } + public object EnableServerCertificateValidation { get { throw null; } set { } } public object EnableSsl { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } @@ -6284,7 +6405,7 @@ public QuickbaseLinkedService(object url, Azure.Analytics.Synapse.Artifacts.Mode } public partial class QuickBooksLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { - public QuickBooksLinkedService(object endpoint, object companyId, object consumerKey, Azure.Analytics.Synapse.Artifacts.Models.SecretBase consumerSecret, Azure.Analytics.Synapse.Artifacts.Models.SecretBase accessToken, Azure.Analytics.Synapse.Artifacts.Models.SecretBase accessTokenSecret) { } + public QuickBooksLinkedService(object endpoint, object companyId, object consumerKey, Azure.Analytics.Synapse.Artifacts.Models.SecretBase consumerSecret) { } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase AccessToken { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase AccessTokenSecret { get { throw null; } set { } } public object CompanyId { get { throw null; } set { } } @@ -6293,6 +6414,7 @@ public QuickBooksLinkedService(object endpoint, object companyId, object consume public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ConsumerSecret { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Endpoint { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase RefreshToken { get { throw null; } set { } } public object UseEncryptedEndpoints { get { throw null; } set { } } } public partial class QuickBooksObjectDataset : Azure.Analytics.Synapse.Artifacts.Models.Dataset @@ -7367,10 +7489,41 @@ public partial class ServiceNowSource : Azure.Analytics.Synapse.Artifacts.Models public ServiceNowSource() { } public object Query { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ServiceNowV2AuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ServiceNowV2AuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType Basic { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType OAuth2 { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ServiceNowV2LinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService + { + public ServiceNowV2LinkedService(object endpoint, Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType authenticationType) { } + public Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType AuthenticationType { get { throw null; } set { } } + public object ClientId { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ClientSecret { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } + public object Endpoint { get { throw null; } set { } } + public object GrantType { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } + public object Username { get { throw null; } set { } } + } public partial class ServiceNowV2ObjectDataset : Azure.Analytics.Synapse.Artifacts.Models.Dataset { public ServiceNowV2ObjectDataset(Azure.Analytics.Synapse.Artifacts.Models.LinkedServiceReference linkedServiceName) : base (default(Azure.Analytics.Synapse.Artifacts.Models.LinkedServiceReference)) { } public object TableName { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.ValueType? ValueType { get { throw null; } set { } } } public partial class ServiceNowV2Source : Azure.Analytics.Synapse.Artifacts.Models.TabularSource { @@ -7580,6 +7733,8 @@ public SnowflakeV2LinkedService(object accountIdentifier, object database, objec public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase PrivateKey { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase PrivateKeyPassphrase { get { throw null; } set { } } + public object Role { get { throw null; } set { } } + public object Schema { get { throw null; } set { } } public object Scope { get { throw null; } set { } } public object TenantId { get { throw null; } set { } } public object User { get { throw null; } set { } } @@ -7818,6 +7973,7 @@ public SparkLinkedService(object host, object port, Azure.Analytics.Synapse.Arti public object AllowHostNameCNMismatch { get { throw null; } set { } } public object AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SparkAuthenticationType AuthenticationType { get { throw null; } set { } } + public object EnableServerCertificateValidation { get { throw null; } set { } } public object EnableSsl { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } @@ -8842,8 +8998,10 @@ public partial class TypeConversionSettings public TypeConversionSettings() { } public object AllowDataTruncation { get { throw null; } set { } } public object Culture { get { throw null; } set { } } + public object DateFormat { get { throw null; } set { } } public object DateTimeFormat { get { throw null; } set { } } public object DateTimeOffsetFormat { get { throw null; } set { } } + public object TimeFormat { get { throw null; } set { } } public object TimeSpanFormat { get { throw null; } set { } } public object TreatBooleanAsNumber { get { throw null; } set { } } } @@ -8874,6 +9032,24 @@ public ValidationActivity(string name, Azure.Analytics.Synapse.Artifacts.Models. public object Sleep { get { throw null; } set { } } public object Timeout { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ValueType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ValueType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.ValueType Actual { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.ValueType Display { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.ValueType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.ValueType left, Azure.Analytics.Synapse.Artifacts.Models.ValueType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.ValueType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.ValueType left, Azure.Analytics.Synapse.Artifacts.Models.ValueType right) { throw null; } + public override string ToString() { throw null; } + } public partial class VariableSpecification { public VariableSpecification(Azure.Analytics.Synapse.Artifacts.Models.VariableType type) { } @@ -8933,10 +9109,31 @@ public partial class WaitActivity : Azure.Analytics.Synapse.Artifacts.Models.Con public WaitActivity(string name, object waitTimeInSeconds) : base (default(string)) { } public object WaitTimeInSeconds { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct WarehouseAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WarehouseAuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType ServicePrincipal { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType SystemAssignedManagedIdentity { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType UserAssignedManagedIdentity { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class WarehouseLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { public WarehouseLinkedService(object artifactId, object endpoint) { } public object ArtifactId { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType? AuthenticationType { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.CredentialReference Credential { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public object Endpoint { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalCredential { get { throw null; } set { } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.netstandard2.0.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.netstandard2.0.cs index 29b96e746535..4c7ba7ff8483 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.netstandard2.0.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.netstandard2.0.cs @@ -1071,12 +1071,43 @@ public partial class AmazonMWSSource : Azure.Analytics.Synapse.Artifacts.Models. public AmazonMWSSource() { } public object Query { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AmazonRdsForOracleAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AmazonRdsForOracleAuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType Basic { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class AmazonRdsForOracleLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { - public AmazonRdsForOracleLinkedService(object connectionString) { } + public AmazonRdsForOracleLinkedService() { } + public Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOracleAuthenticationType? AuthenticationType { get { throw null; } set { } } public object ConnectionString { get { throw null; } set { } } + public object CryptoChecksumClient { get { throw null; } set { } } + public object CryptoChecksumTypesClient { get { throw null; } set { } } + public object EnableBulkLoad { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } + public object EncryptionClient { get { throw null; } set { } } + public object EncryptionTypesClient { get { throw null; } set { } } + public object FetchSize { get { throw null; } set { } } + public object FetchTswtzAsTimestamp { get { throw null; } set { } } + public object InitializationString { get { throw null; } set { } } + public object InitialLobFetchSize { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } + public object Server { get { throw null; } set { } } + public object StatementCacheSize { get { throw null; } set { } } + public object SupportV1DataTypes { get { throw null; } set { } } + public object Username { get { throw null; } set { } } } public partial class AmazonRdsForOraclePartitionSettings { @@ -1090,6 +1121,8 @@ public partial class AmazonRdsForOracleSource : Azure.Analytics.Synapse.Artifact { public AmazonRdsForOracleSource() { } public object AdditionalColumns { get { throw null; } set { } } + public object NumberPrecision { get { throw null; } set { } } + public object NumberScale { get { throw null; } set { } } public object OracleReaderQuery { get { throw null; } set { } } public object PartitionOption { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.AmazonRdsForOraclePartitionSettings PartitionSettings { get { throw null; } set { } } @@ -1553,6 +1586,7 @@ public AzureDatabricksLinkedService(object domain) { } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase AccessToken { get { throw null; } set { } } public object Authentication { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.CredentialReference Credential { get { throw null; } set { } } + public object DataSecurityMode { get { throw null; } set { } } public object Domain { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object ExistingClusterId { get { throw null; } set { } } @@ -1895,6 +1929,13 @@ public partial class AzurePostgreSqlSink : Azure.Analytics.Synapse.Artifacts.Mod { public AzurePostgreSqlSink() { } public object PreCopyScript { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlSinkUpsertSettings UpsertSettings { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum? WriteMethod { get { throw null; } set { } } + } + public partial class AzurePostgreSqlSinkUpsertSettings + { + public AzurePostgreSqlSinkUpsertSettings() { } + public object Keys { get { throw null; } set { } } } public partial class AzurePostgreSqlSource : Azure.Analytics.Synapse.Artifacts.Models.TabularSource { @@ -1908,6 +1949,25 @@ public AzurePostgreSqlTableDataset(Azure.Analytics.Synapse.Artifacts.Models.Link public object Table { get { throw null; } set { } } public object TableName { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AzurePostgreSqlWriteMethodEnum : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AzurePostgreSqlWriteMethodEnum(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum BulkInsert { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum CopyCommand { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum Upsert { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum left, Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum left, Azure.Analytics.Synapse.Artifacts.Models.AzurePostgreSqlWriteMethodEnum right) { throw null; } + public override string ToString() { throw null; } + } public partial class AzureQueueSink : Azure.Analytics.Synapse.Artifacts.Models.CopySink { public AzureQueueSink() { } @@ -2460,6 +2520,8 @@ public partial class CommonDataServiceForAppsSink : Azure.Analytics.Synapse.Arti { public CommonDataServiceForAppsSink(Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior writeBehavior) { } public object AlternateKeyName { get { throw null; } set { } } + public object BypassBusinessLogicExecution { get { throw null; } set { } } + public object BypassPowerAutomateFlows { get { throw null; } set { } } public object IgnoreNullValues { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior WriteBehavior { get { throw null; } set { } } } @@ -3317,6 +3379,8 @@ public partial class DynamicsCrmSink : Azure.Analytics.Synapse.Artifacts.Models. { public DynamicsCrmSink(Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior writeBehavior) { } public object AlternateKeyName { get { throw null; } set { } } + public object BypassBusinessLogicExecution { get { throw null; } set { } } + public object BypassPowerAutomateFlows { get { throw null; } set { } } public object IgnoreNullValues { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior WriteBehavior { get { throw null; } set { } } } @@ -3353,6 +3417,8 @@ public partial class DynamicsSink : Azure.Analytics.Synapse.Artifacts.Models.Cop { public DynamicsSink(Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior writeBehavior) { } public object AlternateKeyName { get { throw null; } set { } } + public object BypassBusinessLogicExecution { get { throw null; } set { } } + public object BypassPowerAutomateFlows { get { throw null; } set { } } public object IgnoreNullValues { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.DynamicsSinkWriteBehavior WriteBehavior { get { throw null; } set { } } } @@ -3558,7 +3624,7 @@ public ExpressionV2() { } public System.Collections.Generic.IList Operands { get { throw null; } } public System.Collections.Generic.IList Operators { get { throw null; } } public Azure.Analytics.Synapse.Artifacts.Models.ExpressionV2Type? Type { get { throw null; } set { } } - public string Value { get { throw null; } set { } } + public object Value { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ExpressionV2Type : System.IEquatable @@ -3945,7 +4011,6 @@ public GreenplumLinkedService() { } public object Database { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } - public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } public object Port { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.AzureKeyVaultSecretReference Pwd { get { throw null; } set { } } public object SslMode { get { throw null; } set { } } @@ -4058,6 +4123,25 @@ public HdfsSource() { } public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.HDInsightActivityDebugInfoOption left, Azure.Analytics.Synapse.Artifacts.Models.HDInsightActivityDebugInfoOption right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HDInsightClusterAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HDInsightClusterAuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType BasicAuth { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType SystemAssignedManagedIdentity { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType UserAssignedManagedIdentity { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class HDInsightHiveActivity : Azure.Analytics.Synapse.Artifacts.Models.ExecutionActivity { public HDInsightHiveActivity(string name) : base (default(string)) { } @@ -4073,7 +4157,9 @@ public HDInsightHiveActivity(string name) : base (default(string)) { } public partial class HDInsightLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { public HDInsightLinkedService(object clusterUri) { } + public Azure.Analytics.Synapse.Artifacts.Models.HDInsightClusterAuthenticationType? ClusterAuthType { get { throw null; } set { } } public object ClusterUri { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.CredentialReference Credential { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object FileSystem { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.LinkedServiceReference HcatalogLinkedServiceName { get { throw null; } set { } } @@ -4196,6 +4282,7 @@ public HiveLinkedService(object host, Azure.Analytics.Synapse.Artifacts.Models.H public object AllowHostNameCNMismatch { get { throw null; } set { } } public object AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.HiveAuthenticationType AuthenticationType { get { throw null; } set { } } + public object EnableServerCertificateValidation { get { throw null; } set { } } public object EnableSsl { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } @@ -4394,11 +4481,13 @@ public ImpalaLinkedService(object host, Azure.Analytics.Synapse.Artifacts.Models public object AllowHostNameCNMismatch { get { throw null; } set { } } public object AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.ImpalaAuthenticationType AuthenticationType { get { throw null; } set { } } + public object EnableServerCertificateValidation { get { throw null; } set { } } public object EnableSsl { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } public object Port { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.ImpalaThriftTransportProtocol? ThriftTransportProtocol { get { throw null; } set { } } public object TrustedCertPath { get { throw null; } set { } } public object Username { get { throw null; } set { } } public object UseSystemTrustStore { get { throw null; } set { } } @@ -4415,6 +4504,11 @@ public partial class ImpalaSource : Azure.Analytics.Synapse.Artifacts.Models.Tab public ImpalaSource() { } public object Query { get { throw null; } set { } } } + public enum ImpalaThriftTransportProtocol + { + Binary = 0, + Http = 1, + } public abstract partial class ImportSettings { protected ImportSettings() { } @@ -4764,10 +4858,31 @@ public KqlScriptResource() { } public Azure.Analytics.Synapse.Artifacts.Models.KqlScript Properties { get { throw null; } set { } } public string Type { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct LakehouseAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LakehouseAuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType ServicePrincipal { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType SystemAssignedManagedIdentity { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType UserAssignedManagedIdentity { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class LakeHouseLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { public LakeHouseLinkedService() { } public object ArtifactId { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.LakehouseAuthenticationType? AuthenticationType { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.CredentialReference Credential { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalCredential { get { throw null; } set { } } public object ServicePrincipalCredentialType { get { throw null; } set { } } @@ -5722,6 +5837,9 @@ public partial class Office365LinkedService : Azure.Analytics.Synapse.Artifacts. public Office365LinkedService(object office365TenantId, object servicePrincipalTenantId, object servicePrincipalId, Azure.Analytics.Synapse.Artifacts.Models.SecretBase servicePrincipalKey) { } public object EncryptedCredential { get { throw null; } set { } } public object Office365TenantId { get { throw null; } set { } } + public object ServicePrincipalCredentialType { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalEmbeddedCert { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalEmbeddedCertPassword { get { throw null; } set { } } public object ServicePrincipalId { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalKey { get { throw null; } set { } } public object ServicePrincipalTenantId { get { throw null; } set { } } @@ -5764,7 +5882,7 @@ internal OperationResult() { } } public partial class OracleLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { - public OracleLinkedService(object connectionString) { } + public OracleLinkedService() { } public Azure.Analytics.Synapse.Artifacts.Models.OracleAuthenticationType? AuthenticationType { get { throw null; } set { } } public object ConnectionString { get { throw null; } set { } } public object CryptoChecksumClient { get { throw null; } set { } } @@ -5840,6 +5958,8 @@ public partial class OracleSource : Azure.Analytics.Synapse.Artifacts.Models.Cop { public OracleSource() { } public object AdditionalColumns { get { throw null; } set { } } + public object NumberPrecision { get { throw null; } set { } } + public object NumberScale { get { throw null; } set { } } public object OracleReaderQuery { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.OraclePartitionOption? PartitionOption { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.OraclePartitionSettings PartitionSettings { get { throw null; } set { } } @@ -6213,11 +6333,12 @@ public PowerBIWorkspaceLinkedService(string workspaceId, string tenantId) { } } public partial class PrestoLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { - public PrestoLinkedService(object host, object serverVersion, object catalog, Azure.Analytics.Synapse.Artifacts.Models.PrestoAuthenticationType authenticationType) { } + public PrestoLinkedService(object host, object catalog, Azure.Analytics.Synapse.Artifacts.Models.PrestoAuthenticationType authenticationType) { } public object AllowHostNameCNMismatch { get { throw null; } set { } } public object AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.PrestoAuthenticationType AuthenticationType { get { throw null; } set { } } public object Catalog { get { throw null; } set { } } + public object EnableServerCertificateValidation { get { throw null; } set { } } public object EnableSsl { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } @@ -6284,7 +6405,7 @@ public QuickbaseLinkedService(object url, Azure.Analytics.Synapse.Artifacts.Mode } public partial class QuickBooksLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { - public QuickBooksLinkedService(object endpoint, object companyId, object consumerKey, Azure.Analytics.Synapse.Artifacts.Models.SecretBase consumerSecret, Azure.Analytics.Synapse.Artifacts.Models.SecretBase accessToken, Azure.Analytics.Synapse.Artifacts.Models.SecretBase accessTokenSecret) { } + public QuickBooksLinkedService(object endpoint, object companyId, object consumerKey, Azure.Analytics.Synapse.Artifacts.Models.SecretBase consumerSecret) { } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase AccessToken { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase AccessTokenSecret { get { throw null; } set { } } public object CompanyId { get { throw null; } set { } } @@ -6293,6 +6414,7 @@ public QuickBooksLinkedService(object endpoint, object companyId, object consume public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ConsumerSecret { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Endpoint { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase RefreshToken { get { throw null; } set { } } public object UseEncryptedEndpoints { get { throw null; } set { } } } public partial class QuickBooksObjectDataset : Azure.Analytics.Synapse.Artifacts.Models.Dataset @@ -7367,10 +7489,41 @@ public partial class ServiceNowSource : Azure.Analytics.Synapse.Artifacts.Models public ServiceNowSource() { } public object Query { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ServiceNowV2AuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ServiceNowV2AuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType Basic { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType OAuth2 { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ServiceNowV2LinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService + { + public ServiceNowV2LinkedService(object endpoint, Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType authenticationType) { } + public Azure.Analytics.Synapse.Artifacts.Models.ServiceNowV2AuthenticationType AuthenticationType { get { throw null; } set { } } + public object ClientId { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ClientSecret { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } + public object Endpoint { get { throw null; } set { } } + public object GrantType { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } + public object Username { get { throw null; } set { } } + } public partial class ServiceNowV2ObjectDataset : Azure.Analytics.Synapse.Artifacts.Models.Dataset { public ServiceNowV2ObjectDataset(Azure.Analytics.Synapse.Artifacts.Models.LinkedServiceReference linkedServiceName) : base (default(Azure.Analytics.Synapse.Artifacts.Models.LinkedServiceReference)) { } public object TableName { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.ValueType? ValueType { get { throw null; } set { } } } public partial class ServiceNowV2Source : Azure.Analytics.Synapse.Artifacts.Models.TabularSource { @@ -7580,6 +7733,8 @@ public SnowflakeV2LinkedService(object accountIdentifier, object database, objec public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase PrivateKey { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase PrivateKeyPassphrase { get { throw null; } set { } } + public object Role { get { throw null; } set { } } + public object Schema { get { throw null; } set { } } public object Scope { get { throw null; } set { } } public object TenantId { get { throw null; } set { } } public object User { get { throw null; } set { } } @@ -7818,6 +7973,7 @@ public SparkLinkedService(object host, object port, Azure.Analytics.Synapse.Arti public object AllowHostNameCNMismatch { get { throw null; } set { } } public object AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SparkAuthenticationType AuthenticationType { get { throw null; } set { } } + public object EnableServerCertificateValidation { get { throw null; } set { } } public object EnableSsl { get { throw null; } set { } } public object EncryptedCredential { get { throw null; } set { } } public object Host { get { throw null; } set { } } @@ -8842,8 +8998,10 @@ public partial class TypeConversionSettings public TypeConversionSettings() { } public object AllowDataTruncation { get { throw null; } set { } } public object Culture { get { throw null; } set { } } + public object DateFormat { get { throw null; } set { } } public object DateTimeFormat { get { throw null; } set { } } public object DateTimeOffsetFormat { get { throw null; } set { } } + public object TimeFormat { get { throw null; } set { } } public object TimeSpanFormat { get { throw null; } set { } } public object TreatBooleanAsNumber { get { throw null; } set { } } } @@ -8874,6 +9032,24 @@ public ValidationActivity(string name, Azure.Analytics.Synapse.Artifacts.Models. public object Sleep { get { throw null; } set { } } public object Timeout { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ValueType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ValueType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.ValueType Actual { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.ValueType Display { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.ValueType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.ValueType left, Azure.Analytics.Synapse.Artifacts.Models.ValueType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.ValueType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.ValueType left, Azure.Analytics.Synapse.Artifacts.Models.ValueType right) { throw null; } + public override string ToString() { throw null; } + } public partial class VariableSpecification { public VariableSpecification(Azure.Analytics.Synapse.Artifacts.Models.VariableType type) { } @@ -8933,10 +9109,31 @@ public partial class WaitActivity : Azure.Analytics.Synapse.Artifacts.Models.Con public WaitActivity(string name, object waitTimeInSeconds) : base (default(string)) { } public object WaitTimeInSeconds { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct WarehouseAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WarehouseAuthenticationType(string value) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType ServicePrincipal { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType SystemAssignedManagedIdentity { get { throw null; } } + public static Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType UserAssignedManagedIdentity { get { throw null; } } + public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType right) { throw null; } + public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType left, Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } public partial class WarehouseLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { public WarehouseLinkedService(object artifactId, object endpoint) { } public object ArtifactId { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.WarehouseAuthenticationType? AuthenticationType { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.CredentialReference Credential { get { throw null; } set { } } public string EncryptedCredential { get { throw null; } set { } } public object Endpoint { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ServicePrincipalCredential { get { throw null; } set { } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs index 21f2a9b988b5..2c9a98ae9afc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs @@ -616,7 +616,7 @@ public static OperationResult OperationResult(string status = null, string code /// /// Properties of linked service. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// A new instance for mocking. public static LinkedServiceResource LinkedServiceResource(string id = null, string name = null, string type = null, string etag = null, LinkedService properties = null) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleAuthenticationType.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleAuthenticationType.cs new file mode 100644 index 000000000000..620e04a099c7 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleAuthenticationType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version 2.0. + public readonly partial struct AmazonRdsForOracleAuthenticationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AmazonRdsForOracleAuthenticationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BasicValue = "Basic"; + + /// Basic. + public static AmazonRdsForOracleAuthenticationType Basic { get; } = new AmazonRdsForOracleAuthenticationType(BasicValue); + /// Determines if two values are the same. + public static bool operator ==(AmazonRdsForOracleAuthenticationType left, AmazonRdsForOracleAuthenticationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AmazonRdsForOracleAuthenticationType left, AmazonRdsForOracleAuthenticationType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AmazonRdsForOracleAuthenticationType(string value) => new AmazonRdsForOracleAuthenticationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AmazonRdsForOracleAuthenticationType other && Equals(other); + /// + public bool Equals(AmazonRdsForOracleAuthenticationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs index 2ce7127d8895..016809980b77 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs @@ -64,13 +64,86 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("typeProperties"u8); writer.WriteStartObject(); - writer.WritePropertyName("connectionString"u8); - writer.WriteObjectValue(ConnectionString); + if (Optional.IsDefined(ConnectionString)) + { + writer.WritePropertyName("connectionString"u8); + writer.WriteObjectValue(ConnectionString); + } + if (Optional.IsDefined(Server)) + { + writer.WritePropertyName("server"u8); + writer.WriteObjectValue(Server); + } + if (Optional.IsDefined(AuthenticationType)) + { + writer.WritePropertyName("authenticationType"u8); + writer.WriteStringValue(AuthenticationType.Value.ToString()); + } + if (Optional.IsDefined(Username)) + { + writer.WritePropertyName("username"u8); + writer.WriteObjectValue(Username); + } if (Optional.IsDefined(Password)) { writer.WritePropertyName("password"u8); writer.WriteObjectValue(Password); } + if (Optional.IsDefined(EncryptionClient)) + { + writer.WritePropertyName("encryptionClient"u8); + writer.WriteObjectValue(EncryptionClient); + } + if (Optional.IsDefined(EncryptionTypesClient)) + { + writer.WritePropertyName("encryptionTypesClient"u8); + writer.WriteObjectValue(EncryptionTypesClient); + } + if (Optional.IsDefined(CryptoChecksumClient)) + { + writer.WritePropertyName("cryptoChecksumClient"u8); + writer.WriteObjectValue(CryptoChecksumClient); + } + if (Optional.IsDefined(CryptoChecksumTypesClient)) + { + writer.WritePropertyName("cryptoChecksumTypesClient"u8); + writer.WriteObjectValue(CryptoChecksumTypesClient); + } + if (Optional.IsDefined(InitialLobFetchSize)) + { + writer.WritePropertyName("initialLobFetchSize"u8); + writer.WriteObjectValue(InitialLobFetchSize); + } + if (Optional.IsDefined(FetchSize)) + { + writer.WritePropertyName("fetchSize"u8); + writer.WriteObjectValue(FetchSize); + } + if (Optional.IsDefined(StatementCacheSize)) + { + writer.WritePropertyName("statementCacheSize"u8); + writer.WriteObjectValue(StatementCacheSize); + } + if (Optional.IsDefined(InitializationString)) + { + writer.WritePropertyName("initializationString"u8); + writer.WriteObjectValue(InitializationString); + } + if (Optional.IsDefined(EnableBulkLoad)) + { + writer.WritePropertyName("enableBulkLoad"u8); + writer.WriteObjectValue(EnableBulkLoad); + } + if (Optional.IsDefined(SupportV1DataTypes)) + { + writer.WritePropertyName("supportV1DataTypes"u8); + writer.WriteObjectValue(SupportV1DataTypes); + } + if (Optional.IsDefined(FetchTswtzAsTimestamp)) + { + writer.WritePropertyName("fetchTswtzAsTimestamp"u8); + writer.WriteObjectValue(FetchTswtzAsTimestamp); + } if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); @@ -98,7 +171,21 @@ internal static AmazonRdsForOracleLinkedService DeserializeAmazonRdsForOracleLin IDictionary parameters = default; IList annotations = default; object connectionString = default; + object server = default; + AmazonRdsForOracleAuthenticationType? authenticationType = default; + object username = default; SecretBase password = default; + object encryptionClient = default; + object encryptionTypesClient = default; + object cryptoChecksumClient = default; + object cryptoChecksumTypesClient = default; + object initialLobFetchSize = default; + object fetchSize = default; + object statementCacheSize = default; + object initializationString = default; + object enableBulkLoad = default; + object supportV1DataTypes = default; + object fetchTswtzAsTimestamp = default; object encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -174,9 +261,40 @@ internal static AmazonRdsForOracleLinkedService DeserializeAmazonRdsForOracleLin { if (property0.NameEquals("connectionString"u8)) { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } connectionString = property0.Value.GetObject(); continue; } + if (property0.NameEquals("server"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + server = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("authenticationType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + authenticationType = new AmazonRdsForOracleAuthenticationType(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("username"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + username = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("password"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -186,6 +304,105 @@ internal static AmazonRdsForOracleLinkedService DeserializeAmazonRdsForOracleLin password = SecretBase.DeserializeSecretBase(property0.Value); continue; } + if (property0.NameEquals("encryptionClient"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + encryptionClient = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("encryptionTypesClient"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + encryptionTypesClient = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("cryptoChecksumClient"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + cryptoChecksumClient = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("cryptoChecksumTypesClient"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + cryptoChecksumTypesClient = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("initialLobFetchSize"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + initialLobFetchSize = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("fetchSize"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + fetchSize = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("statementCacheSize"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + statementCacheSize = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("initializationString"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + initializationString = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("enableBulkLoad"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableBulkLoad = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("supportV1DataTypes"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + supportV1DataTypes = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("fetchTswtzAsTimestamp"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + fetchTswtzAsTimestamp = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("encryptedCredential"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -210,7 +427,21 @@ internal static AmazonRdsForOracleLinkedService DeserializeAmazonRdsForOracleLin annotations ?? new ChangeTrackingList(), additionalProperties, connectionString, + server, + authenticationType, + username, password, + encryptionClient, + encryptionTypesClient, + cryptoChecksumClient, + cryptoChecksumTypesClient, + initialLobFetchSize, + fetchSize, + statementCacheSize, + initializationString, + enableBulkLoad, + supportV1DataTypes, + fetchTswtzAsTimestamp, encryptedCredential); } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.cs index 21a57a16ca11..754c44cb7866 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.cs @@ -5,22 +5,16 @@ #nullable disable -using System; using System.Collections.Generic; namespace Azure.Analytics.Synapse.Artifacts.Models { - /// AmazonRdsForOracle database. + /// AmazonRdsForOracle database. This linked service has supported version property. The Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without any bug fix or new features. public partial class AmazonRdsForOracleLinkedService : LinkedService { /// Initializes a new instance of . - /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - /// is null. - public AmazonRdsForOracleLinkedService(object connectionString) + public AmazonRdsForOracleLinkedService() { - Argument.AssertNotNull(connectionString, nameof(connectionString)); - - ConnectionString = connectionString; Type = "AmazonRdsForOracle"; } @@ -32,29 +26,85 @@ public AmazonRdsForOracleLinkedService(object connectionString) /// Parameters for linked service. /// List of tags that can be used for describing the linked service. /// Additional Properties. - /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used for Version 1.0. + /// The location of AmazonRdsForOracle database you want to connect to, the supported forms include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: string. Only used for Version 2.0. + /// Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version 2.0. + /// The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0. /// /// The Azure key vault secret reference of password in connection string. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// + /// Specifies the encryption client behavior. Supported values are accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + /// Specifies the encryption algorithms that client can use. Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + /// Specifies the desired data integrity behavior when this client connects to a server. Supported values are accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + /// Specifies the crypto-checksum algorithms that client can use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version 2.0. + /// Specifies the amount that the source initially fetches for LOB columns, default value is 0. Type: integer. Only used for Version 2.0. + /// Specifies the number of bytes that the driver allocates to fetch the data in one database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + /// Specifies the number of cursors or statements to be cached for each database connection, default value is 0. Type: integer. Only used for Version 2.0. + /// Specifies a command that is issued immediately after connecting to the database to manage session settings. Type: string. Only used for Version 2.0. + /// Specifies whether to use bulk copy or batch insert when loading data into the database, default value is true. Type: boolean. Only used for Version 2.0. + /// Specifies whether to use the Version 1.0 data type mappings. Do not set this to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is false. Type: boolean. Only used for Version 2.0. + /// Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version 2.0. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - internal AmazonRdsForOracleLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object connectionString, SecretBase password, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal AmazonRdsForOracleLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object connectionString, object server, AmazonRdsForOracleAuthenticationType? authenticationType, object username, SecretBase password, object encryptionClient, object encryptionTypesClient, object cryptoChecksumClient, object cryptoChecksumTypesClient, object initialLobFetchSize, object fetchSize, object statementCacheSize, object initializationString, object enableBulkLoad, object supportV1DataTypes, object fetchTswtzAsTimestamp, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; + Server = server; + AuthenticationType = authenticationType; + Username = username; Password = password; + EncryptionClient = encryptionClient; + EncryptionTypesClient = encryptionTypesClient; + CryptoChecksumClient = cryptoChecksumClient; + CryptoChecksumTypesClient = cryptoChecksumTypesClient; + InitialLobFetchSize = initialLobFetchSize; + FetchSize = fetchSize; + StatementCacheSize = statementCacheSize; + InitializationString = initializationString; + EnableBulkLoad = enableBulkLoad; + SupportV1DataTypes = supportV1DataTypes; + FetchTswtzAsTimestamp = fetchTswtzAsTimestamp; EncryptedCredential = encryptedCredential; Type = type ?? "AmazonRdsForOracle"; } - /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used for Version 1.0. public object ConnectionString { get; set; } + /// The location of AmazonRdsForOracle database you want to connect to, the supported forms include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: string. Only used for Version 2.0. + public object Server { get; set; } + /// Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version 2.0. + public AmazonRdsForOracleAuthenticationType? AuthenticationType { get; set; } + /// The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0. + public object Username { get; set; } /// /// The Azure key vault secret reference of password in connection string. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// public SecretBase Password { get; set; } + /// Specifies the encryption client behavior. Supported values are accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + public object EncryptionClient { get; set; } + /// Specifies the encryption algorithms that client can use. Supported values are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + public object EncryptionTypesClient { get; set; } + /// Specifies the desired data integrity behavior when this client connects to a server. Supported values are accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + public object CryptoChecksumClient { get; set; } + /// Specifies the crypto-checksum algorithms that client can use. Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version 2.0. + public object CryptoChecksumTypesClient { get; set; } + /// Specifies the amount that the source initially fetches for LOB columns, default value is 0. Type: integer. Only used for Version 2.0. + public object InitialLobFetchSize { get; set; } + /// Specifies the number of bytes that the driver allocates to fetch the data in one database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + public object FetchSize { get; set; } + /// Specifies the number of cursors or statements to be cached for each database connection, default value is 0. Type: integer. Only used for Version 2.0. + public object StatementCacheSize { get; set; } + /// Specifies a command that is issued immediately after connecting to the database to manage session settings. Type: string. Only used for Version 2.0. + public object InitializationString { get; set; } + /// Specifies whether to use bulk copy or batch insert when loading data into the database, default value is true. Type: boolean. Only used for Version 2.0. + public object EnableBulkLoad { get; set; } + /// Specifies whether to use the Version 1.0 data type mappings. Do not set this to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is false. Type: boolean. Only used for Version 2.0. + public object SupportV1DataTypes { get; set; } + /// Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default value is true. Type: boolean. Only used for Version 2.0. + public object FetchTswtzAsTimestamp { get; set; } /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). public object EncryptedCredential { get; set; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.Serialization.cs index 338b3bc5f829..dbb2038506a3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.Serialization.cs @@ -44,6 +44,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("additionalColumns"u8); writer.WriteObjectValue(AdditionalColumns); } + if (Optional.IsDefined(NumberPrecision)) + { + writer.WritePropertyName("numberPrecision"u8); + writer.WriteObjectValue(NumberPrecision); + } + if (Optional.IsDefined(NumberScale)) + { + writer.WritePropertyName("numberScale"u8); + writer.WriteObjectValue(NumberScale); + } writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); if (Optional.IsDefined(SourceRetryCount)) @@ -80,6 +90,8 @@ internal static AmazonRdsForOracleSource DeserializeAmazonRdsForOracleSource(Jso object partitionOption = default; AmazonRdsForOraclePartitionSettings partitionSettings = default; object additionalColumns = default; + object numberPrecision = default; + object numberScale = default; string type = default; object sourceRetryCount = default; object sourceRetryWait = default; @@ -133,6 +145,24 @@ internal static AmazonRdsForOracleSource DeserializeAmazonRdsForOracleSource(Jso additionalColumns = property.Value.GetObject(); continue; } + if (property.NameEquals("numberPrecision"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + numberPrecision = property.Value.GetObject(); + continue; + } + if (property.NameEquals("numberScale"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + numberScale = property.Value.GetObject(); + continue; + } if (property.NameEquals("type"u8)) { type = property.Value.GetString(); @@ -178,7 +208,9 @@ internal static AmazonRdsForOracleSource DeserializeAmazonRdsForOracleSource(Jso queryTimeout, partitionOption, partitionSettings, - additionalColumns); + additionalColumns, + numberPrecision, + numberScale); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.cs index 4422a0696c24..aea354a584d5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.cs @@ -29,13 +29,17 @@ public AmazonRdsForOracleSource() /// The partition mechanism that will be used for AmazonRdsForOracle read in parallel. Type: string (or Expression with resultType string). /// The settings that will be leveraged for AmazonRdsForOracle source partitioning. /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). - internal AmazonRdsForOracleSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object oracleReaderQuery, object queryTimeout, object partitionOption, AmazonRdsForOraclePartitionSettings partitionSettings, object additionalColumns) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties) + /// The decimal precision used to represent Oracle NUMBER type without precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. + /// The decimal scale used to represent Oracle NUMBER type without precision and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. + internal AmazonRdsForOracleSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object oracleReaderQuery, object queryTimeout, object partitionOption, AmazonRdsForOraclePartitionSettings partitionSettings, object additionalColumns, object numberPrecision, object numberScale) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties) { OracleReaderQuery = oracleReaderQuery; QueryTimeout = queryTimeout; PartitionOption = partitionOption; PartitionSettings = partitionSettings; AdditionalColumns = additionalColumns; + NumberPrecision = numberPrecision; + NumberScale = numberScale; Type = type ?? "AmazonRdsForOracleSource"; } @@ -49,5 +53,9 @@ internal AmazonRdsForOracleSource(string type, object sourceRetryCount, object s public AmazonRdsForOraclePartitionSettings PartitionSettings { get; set; } /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). public object AdditionalColumns { get; set; } + /// The decimal precision used to represent Oracle NUMBER type without precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. + public object NumberPrecision { get; set; } + /// The decimal scale used to represent Oracle NUMBER type without precision and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. + public object NumberScale { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs index d905f2b6ed3a..ed375930fe96 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs @@ -189,6 +189,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("credential"u8); writer.WriteObjectValue(Credential); } + if (Optional.IsDefined(DataSecurityMode)) + { + writer.WritePropertyName("dataSecurityMode"u8); + writer.WriteObjectValue(DataSecurityMode); + } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { @@ -229,6 +234,7 @@ internal static AzureDatabricksLinkedService DeserializeAzureDatabricksLinkedSer object encryptedCredential = default; object policyId = default; CredentialReference credential = default; + object dataSecurityMode = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -504,6 +510,15 @@ internal static AzureDatabricksLinkedService DeserializeAzureDatabricksLinkedSer credential = CredentialReference.DeserializeCredentialReference(property0.Value); continue; } + if (property0.NameEquals("dataSecurityMode"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dataSecurityMode = property0.Value.GetObject(); + continue; + } } continue; } @@ -536,7 +551,8 @@ internal static AzureDatabricksLinkedService DeserializeAzureDatabricksLinkedSer newClusterEnableElasticDisk, encryptedCredential, policyId, - credential); + credential, + dataSecurityMode); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.cs index c5f505f58ebd..b0085abab399 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.cs @@ -58,7 +58,8 @@ public AzureDatabricksLinkedService(object domain) /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). /// The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression with resultType string). /// The credential reference containing authentication information. - internal AzureDatabricksLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object domain, SecretBase accessToken, object authentication, object workspaceResourceId, object existingClusterId, object instancePoolId, object newClusterVersion, object newClusterNumOfWorker, object newClusterNodeType, IDictionary newClusterSparkConf, IDictionary newClusterSparkEnvVars, IDictionary newClusterCustomTags, object newClusterLogDestination, object newClusterDriverNodeType, object newClusterInitScripts, object newClusterEnableElasticDisk, object encryptedCredential, object policyId, CredentialReference credential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + /// The data security mode for the Databricks Cluster. Type: string (or Expression with resultType string). + internal AzureDatabricksLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object domain, SecretBase accessToken, object authentication, object workspaceResourceId, object existingClusterId, object instancePoolId, object newClusterVersion, object newClusterNumOfWorker, object newClusterNodeType, IDictionary newClusterSparkConf, IDictionary newClusterSparkEnvVars, IDictionary newClusterCustomTags, object newClusterLogDestination, object newClusterDriverNodeType, object newClusterInitScripts, object newClusterEnableElasticDisk, object encryptedCredential, object policyId, CredentialReference credential, object dataSecurityMode) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { Domain = domain; AccessToken = accessToken; @@ -79,6 +80,7 @@ internal AzureDatabricksLinkedService(string type, string version, IntegrationRu EncryptedCredential = encryptedCredential; PolicyId = policyId; Credential = credential; + DataSecurityMode = dataSecurityMode; Type = type ?? "AzureDatabricks"; } @@ -124,5 +126,7 @@ internal AzureDatabricksLinkedService(string type, string version, IntegrationRu public object PolicyId { get; set; } /// The credential reference containing authentication information. public CredentialReference Credential { get; set; } + /// The data security mode for the Databricks Cluster. Type: string (or Expression with resultType string). + public object DataSecurityMode { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.Serialization.cs index 488b75803ec7..bca180fb64b5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.Serialization.cs @@ -24,6 +24,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preCopyScript"u8); writer.WriteObjectValue(PreCopyScript); } + if (Optional.IsDefined(WriteMethod)) + { + writer.WritePropertyName("writeMethod"u8); + writer.WriteStringValue(WriteMethod.Value.ToString()); + } + if (Optional.IsDefined(UpsertSettings)) + { + writer.WritePropertyName("upsertSettings"u8); + writer.WriteObjectValue(UpsertSettings); + } writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); if (Optional.IsDefined(WriteBatchSize)) @@ -66,6 +76,8 @@ internal static AzurePostgreSqlSink DeserializeAzurePostgreSqlSink(JsonElement e return null; } object preCopyScript = default; + AzurePostgreSqlWriteMethodEnum? writeMethod = default; + AzurePostgreSqlSinkUpsertSettings upsertSettings = default; string type = default; object writeBatchSize = default; object writeBatchTimeout = default; @@ -85,6 +97,24 @@ internal static AzurePostgreSqlSink DeserializeAzurePostgreSqlSink(JsonElement e preCopyScript = property.Value.GetObject(); continue; } + if (property.NameEquals("writeMethod"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + writeMethod = new AzurePostgreSqlWriteMethodEnum(property.Value.GetString()); + continue; + } + if (property.NameEquals("upsertSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + upsertSettings = AzurePostgreSqlSinkUpsertSettings.DeserializeAzurePostgreSqlSinkUpsertSettings(property.Value); + continue; + } if (property.NameEquals("type"u8)) { type = property.Value.GetString(); @@ -146,7 +176,9 @@ internal static AzurePostgreSqlSink DeserializeAzurePostgreSqlSink(JsonElement e sinkRetryWait, maxConcurrentConnections, additionalProperties, - preCopyScript); + preCopyScript, + writeMethod, + upsertSettings); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.cs index 70f1bd853583..17c3f2c3ac75 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.cs @@ -9,7 +9,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { - /// A copy activity Azure PostgreSQL sink. + /// A copy activity Azure Database for PostgreSQL sink. public partial class AzurePostgreSqlSink : CopySink { /// Initializes a new instance of . @@ -27,13 +27,21 @@ public AzurePostgreSqlSink() /// The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). /// Additional Properties. /// A query to execute before starting the copy. Type: string (or Expression with resultType string). - internal AzurePostgreSqlSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object preCopyScript) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) + /// The write behavior for the operation. Default is Bulk Insert. + /// Azure Database for PostgreSQL upsert option settings. + internal AzurePostgreSqlSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object preCopyScript, AzurePostgreSqlWriteMethodEnum? writeMethod, AzurePostgreSqlSinkUpsertSettings upsertSettings) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) { PreCopyScript = preCopyScript; + WriteMethod = writeMethod; + UpsertSettings = upsertSettings; Type = type ?? "AzurePostgreSqlSink"; } /// A query to execute before starting the copy. Type: string (or Expression with resultType string). public object PreCopyScript { get; set; } + /// The write behavior for the operation. Default is Bulk Insert. + public AzurePostgreSqlWriteMethodEnum? WriteMethod { get; set; } + /// Azure Database for PostgreSQL upsert option settings. + public AzurePostgreSqlSinkUpsertSettings UpsertSettings { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSinkUpsertSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSinkUpsertSettings.Serialization.cs new file mode 100644 index 000000000000..4e2c41662b2e --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSinkUpsertSettings.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + public partial class AzurePostgreSqlSinkUpsertSettings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Keys)) + { + writer.WritePropertyName("keys"u8); + writer.WriteObjectValue(Keys); + } + writer.WriteEndObject(); + } + + internal static AzurePostgreSqlSinkUpsertSettings DeserializeAzurePostgreSqlSinkUpsertSettings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + object keys = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("keys"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + keys = property.Value.GetObject(); + continue; + } + } + return new AzurePostgreSqlSinkUpsertSettings(keys); + } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzurePostgreSqlSinkUpsertSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAzurePostgreSqlSinkUpsertSettings(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSinkUpsertSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSinkUpsertSettings.cs new file mode 100644 index 000000000000..76513a82fbab --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSinkUpsertSettings.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// Azure Database for PostgreSQL upsert option settings. + public partial class AzurePostgreSqlSinkUpsertSettings + { + /// Initializes a new instance of . + public AzurePostgreSqlSinkUpsertSettings() + { + } + + /// Initializes a new instance of . + /// Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). + internal AzurePostgreSqlSinkUpsertSettings(object keys) + { + Keys = keys; + } + + /// Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). + public object Keys { get; set; } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSource.cs index 08af597aa5e5..81edb3c66be3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSource.cs @@ -9,7 +9,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { - /// A copy activity Azure PostgreSQL source. + /// A copy activity Azure Database for PostgreSQL source. public partial class AzurePostgreSqlSource : TabularSource { /// Initializes a new instance of . diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlWriteMethodEnum.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlWriteMethodEnum.cs new file mode 100644 index 000000000000..443ac5288778 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlWriteMethodEnum.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// The write behavior for the operation. Default is Bulk Insert. + public readonly partial struct AzurePostgreSqlWriteMethodEnum : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AzurePostgreSqlWriteMethodEnum(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BulkInsertValue = "BulkInsert"; + private const string CopyCommandValue = "CopyCommand"; + private const string UpsertValue = "Upsert"; + + /// BulkInsert. + public static AzurePostgreSqlWriteMethodEnum BulkInsert { get; } = new AzurePostgreSqlWriteMethodEnum(BulkInsertValue); + /// CopyCommand. + public static AzurePostgreSqlWriteMethodEnum CopyCommand { get; } = new AzurePostgreSqlWriteMethodEnum(CopyCommandValue); + /// Upsert. + public static AzurePostgreSqlWriteMethodEnum Upsert { get; } = new AzurePostgreSqlWriteMethodEnum(UpsertValue); + /// Determines if two values are the same. + public static bool operator ==(AzurePostgreSqlWriteMethodEnum left, AzurePostgreSqlWriteMethodEnum right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AzurePostgreSqlWriteMethodEnum left, AzurePostgreSqlWriteMethodEnum right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AzurePostgreSqlWriteMethodEnum(string value) => new AzurePostgreSqlWriteMethodEnum(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AzurePostgreSqlWriteMethodEnum other && Equals(other); + /// + public bool Equals(AzurePostgreSqlWriteMethodEnum other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.Serialization.cs index 6709cac4c793..c13c04f7d750 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.Serialization.cs @@ -31,6 +31,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("alternateKeyName"u8); writer.WriteObjectValue(AlternateKeyName); } + if (Optional.IsDefined(BypassBusinessLogicExecution)) + { + writer.WritePropertyName("bypassBusinessLogicExecution"u8); + writer.WriteObjectValue(BypassBusinessLogicExecution); + } + if (Optional.IsDefined(BypassPowerAutomateFlows)) + { + writer.WritePropertyName("bypassPowerAutomateFlows"u8); + writer.WriteObjectValue(BypassPowerAutomateFlows); + } writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); if (Optional.IsDefined(WriteBatchSize)) @@ -75,6 +85,8 @@ internal static CommonDataServiceForAppsSink DeserializeCommonDataServiceForApps DynamicsSinkWriteBehavior writeBehavior = default; object ignoreNullValues = default; object alternateKeyName = default; + object bypassBusinessLogicExecution = default; + object bypassPowerAutomateFlows = default; string type = default; object writeBatchSize = default; object writeBatchTimeout = default; @@ -108,6 +120,24 @@ internal static CommonDataServiceForAppsSink DeserializeCommonDataServiceForApps alternateKeyName = property.Value.GetObject(); continue; } + if (property.NameEquals("bypassBusinessLogicExecution"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + bypassBusinessLogicExecution = property.Value.GetObject(); + continue; + } + if (property.NameEquals("bypassPowerAutomateFlows"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + bypassPowerAutomateFlows = property.Value.GetObject(); + continue; + } if (property.NameEquals("type"u8)) { type = property.Value.GetString(); @@ -171,7 +201,9 @@ internal static CommonDataServiceForAppsSink DeserializeCommonDataServiceForApps additionalProperties, writeBehavior, ignoreNullValues, - alternateKeyName); + alternateKeyName, + bypassBusinessLogicExecution, + bypassPowerAutomateFlows); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.cs index 09689a432c19..56aab316ddf5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.cs @@ -31,11 +31,15 @@ public CommonDataServiceForAppsSink(DynamicsSinkWriteBehavior writeBehavior) /// The write behavior for the operation. /// The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). /// The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). - internal CommonDataServiceForAppsSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, DynamicsSinkWriteBehavior writeBehavior, object ignoreNullValues, object alternateKeyName) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) + /// Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + /// Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). + internal CommonDataServiceForAppsSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, DynamicsSinkWriteBehavior writeBehavior, object ignoreNullValues, object alternateKeyName, object bypassBusinessLogicExecution, object bypassPowerAutomateFlows) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) { WriteBehavior = writeBehavior; IgnoreNullValues = ignoreNullValues; AlternateKeyName = alternateKeyName; + BypassBusinessLogicExecution = bypassBusinessLogicExecution; + BypassPowerAutomateFlows = bypassPowerAutomateFlows; Type = type ?? "CommonDataServiceForAppsSink"; } @@ -45,5 +49,9 @@ internal CommonDataServiceForAppsSink(string type, object writeBatchSize, object public object IgnoreNullValues { get; set; } /// The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). public object AlternateKeyName { get; set; } + /// Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + public object BypassBusinessLogicExecution { get; set; } + /// Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). + public object BypassPowerAutomateFlows { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.Serialization.cs index 72302f02e75e..9e00534eb7be 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.Serialization.cs @@ -31,6 +31,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("alternateKeyName"u8); writer.WriteObjectValue(AlternateKeyName); } + if (Optional.IsDefined(BypassBusinessLogicExecution)) + { + writer.WritePropertyName("bypassBusinessLogicExecution"u8); + writer.WriteObjectValue(BypassBusinessLogicExecution); + } + if (Optional.IsDefined(BypassPowerAutomateFlows)) + { + writer.WritePropertyName("bypassPowerAutomateFlows"u8); + writer.WriteObjectValue(BypassPowerAutomateFlows); + } writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); if (Optional.IsDefined(WriteBatchSize)) @@ -75,6 +85,8 @@ internal static DynamicsCrmSink DeserializeDynamicsCrmSink(JsonElement element) DynamicsSinkWriteBehavior writeBehavior = default; object ignoreNullValues = default; object alternateKeyName = default; + object bypassBusinessLogicExecution = default; + object bypassPowerAutomateFlows = default; string type = default; object writeBatchSize = default; object writeBatchTimeout = default; @@ -108,6 +120,24 @@ internal static DynamicsCrmSink DeserializeDynamicsCrmSink(JsonElement element) alternateKeyName = property.Value.GetObject(); continue; } + if (property.NameEquals("bypassBusinessLogicExecution"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + bypassBusinessLogicExecution = property.Value.GetObject(); + continue; + } + if (property.NameEquals("bypassPowerAutomateFlows"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + bypassPowerAutomateFlows = property.Value.GetObject(); + continue; + } if (property.NameEquals("type"u8)) { type = property.Value.GetString(); @@ -171,7 +201,9 @@ internal static DynamicsCrmSink DeserializeDynamicsCrmSink(JsonElement element) additionalProperties, writeBehavior, ignoreNullValues, - alternateKeyName); + alternateKeyName, + bypassBusinessLogicExecution, + bypassPowerAutomateFlows); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.cs index 7933907b974c..3794c51741a9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.cs @@ -31,11 +31,15 @@ public DynamicsCrmSink(DynamicsSinkWriteBehavior writeBehavior) /// The write behavior for the operation. /// The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). /// The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). - internal DynamicsCrmSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, DynamicsSinkWriteBehavior writeBehavior, object ignoreNullValues, object alternateKeyName) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) + /// Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + /// Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). + internal DynamicsCrmSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, DynamicsSinkWriteBehavior writeBehavior, object ignoreNullValues, object alternateKeyName, object bypassBusinessLogicExecution, object bypassPowerAutomateFlows) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) { WriteBehavior = writeBehavior; IgnoreNullValues = ignoreNullValues; AlternateKeyName = alternateKeyName; + BypassBusinessLogicExecution = bypassBusinessLogicExecution; + BypassPowerAutomateFlows = bypassPowerAutomateFlows; Type = type ?? "DynamicsCrmSink"; } @@ -45,5 +49,9 @@ internal DynamicsCrmSink(string type, object writeBatchSize, object writeBatchTi public object IgnoreNullValues { get; set; } /// The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). public object AlternateKeyName { get; set; } + /// Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + public object BypassBusinessLogicExecution { get; set; } + /// Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). + public object BypassPowerAutomateFlows { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.Serialization.cs index 864febe97d5d..3f5593503346 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.Serialization.cs @@ -31,6 +31,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("alternateKeyName"u8); writer.WriteObjectValue(AlternateKeyName); } + if (Optional.IsDefined(BypassBusinessLogicExecution)) + { + writer.WritePropertyName("bypassBusinessLogicExecution"u8); + writer.WriteObjectValue(BypassBusinessLogicExecution); + } + if (Optional.IsDefined(BypassPowerAutomateFlows)) + { + writer.WritePropertyName("bypassPowerAutomateFlows"u8); + writer.WriteObjectValue(BypassPowerAutomateFlows); + } writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); if (Optional.IsDefined(WriteBatchSize)) @@ -75,6 +85,8 @@ internal static DynamicsSink DeserializeDynamicsSink(JsonElement element) DynamicsSinkWriteBehavior writeBehavior = default; object ignoreNullValues = default; object alternateKeyName = default; + object bypassBusinessLogicExecution = default; + object bypassPowerAutomateFlows = default; string type = default; object writeBatchSize = default; object writeBatchTimeout = default; @@ -108,6 +120,24 @@ internal static DynamicsSink DeserializeDynamicsSink(JsonElement element) alternateKeyName = property.Value.GetObject(); continue; } + if (property.NameEquals("bypassBusinessLogicExecution"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + bypassBusinessLogicExecution = property.Value.GetObject(); + continue; + } + if (property.NameEquals("bypassPowerAutomateFlows"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + bypassPowerAutomateFlows = property.Value.GetObject(); + continue; + } if (property.NameEquals("type"u8)) { type = property.Value.GetString(); @@ -171,7 +201,9 @@ internal static DynamicsSink DeserializeDynamicsSink(JsonElement element) additionalProperties, writeBehavior, ignoreNullValues, - alternateKeyName); + alternateKeyName, + bypassBusinessLogicExecution, + bypassPowerAutomateFlows); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.cs index ea2b928c40a9..653cf60587a9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.cs @@ -31,11 +31,15 @@ public DynamicsSink(DynamicsSinkWriteBehavior writeBehavior) /// The write behavior for the operation. /// The flag indicating whether ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). /// The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). - internal DynamicsSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, DynamicsSinkWriteBehavior writeBehavior, object ignoreNullValues, object alternateKeyName) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) + /// Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + /// Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). + internal DynamicsSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, DynamicsSinkWriteBehavior writeBehavior, object ignoreNullValues, object alternateKeyName, object bypassBusinessLogicExecution, object bypassPowerAutomateFlows) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) { WriteBehavior = writeBehavior; IgnoreNullValues = ignoreNullValues; AlternateKeyName = alternateKeyName; + BypassBusinessLogicExecution = bypassBusinessLogicExecution; + BypassPowerAutomateFlows = bypassPowerAutomateFlows; Type = type ?? "DynamicsSink"; } @@ -45,5 +49,9 @@ internal DynamicsSink(string type, object writeBatchSize, object writeBatchTimeo public object IgnoreNullValues { get; set; } /// The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). public object AlternateKeyName { get; set; } + /// Controls the bypass of Dataverse custom business logic. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + public object BypassBusinessLogicExecution { get; set; } + /// Controls the bypass of Power Automate flows. Default is false. Type: boolean (or Expression with resultType boolean). + public object BypassPowerAutomateFlows { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExpressionV2.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExpressionV2.Serialization.cs index a0c052656c11..6aba52bf7e06 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExpressionV2.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExpressionV2.Serialization.cs @@ -27,7 +27,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Value)) { writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); + writer.WriteObjectValue(Value); } if (Optional.IsCollectionDefined(Operators)) { @@ -59,7 +59,7 @@ internal static ExpressionV2 DeserializeExpressionV2(JsonElement element) return null; } ExpressionV2Type? type = default; - string value = default; + object value = default; IList operators = default; IList operands = default; foreach (var property in element.EnumerateObject()) @@ -75,7 +75,11 @@ internal static ExpressionV2 DeserializeExpressionV2(JsonElement element) } if (property.NameEquals("value"u8)) { - value = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetObject(); continue; } if (property.NameEquals("operators"u8)) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExpressionV2.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExpressionV2.cs index a6bdc25bf8d2..90e43bc9f01b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExpressionV2.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExpressionV2.cs @@ -21,10 +21,10 @@ public ExpressionV2() /// Initializes a new instance of . /// Type of expressions supported by the system. Type: string. - /// Value for Constant/Field Type: string. + /// Value for Constant/Field Type: object. /// Expression operator value Type: list of strings. /// List of nested expressions. - internal ExpressionV2(ExpressionV2Type? type, string value, IList operators, IList operands) + internal ExpressionV2(ExpressionV2Type? type, object value, IList operators, IList operands) { Type = type; Value = value; @@ -34,8 +34,8 @@ internal ExpressionV2(ExpressionV2Type? type, string value, IList operat /// Type of expressions supported by the system. Type: string. public ExpressionV2Type? Type { get; set; } - /// Value for Constant/Field Type: string. - public string Value { get; set; } + /// Value for Constant/Field Type: object. + public object Value { get; set; } /// Expression operator value Type: list of strings. public IList Operators { get; } /// List of nested expressions. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.Serialization.cs index 6463fdd1e38c..a468bea0b5ed 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.Serialization.cs @@ -119,11 +119,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("commandTimeout"u8); writer.WriteObjectValue(CommandTimeout); } - if (Optional.IsDefined(Password)) - { - writer.WritePropertyName("password"u8); - writer.WriteObjectValue(Password); - } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { @@ -156,7 +151,6 @@ internal static GreenplumLinkedService DeserializeGreenplumLinkedService(JsonEle object sslMode = default; object connectionTimeout = default; object commandTimeout = default; - SecretBase password = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -328,15 +322,6 @@ internal static GreenplumLinkedService DeserializeGreenplumLinkedService(JsonEle commandTimeout = property0.Value.GetObject(); continue; } - if (property0.NameEquals("password"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - password = SecretBase.DeserializeSecretBase(property0.Value); - continue; - } } continue; } @@ -361,8 +346,7 @@ internal static GreenplumLinkedService DeserializeGreenplumLinkedService(JsonEle database, sslMode, connectionTimeout, - commandTimeout, - password); + commandTimeout); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.cs index d1f7128ab23f..a7be6a6fba50 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.cs @@ -37,12 +37,7 @@ public GreenplumLinkedService() /// SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer. Only used for V2. /// The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. Type: integer. Only used for V2. /// 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. Only used for V2. - /// - /// The Azure key vault secret reference of password in connection string. Type: string. Only used for V2. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - internal GreenplumLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object connectionString, AzureKeyVaultSecretReference pwd, object encryptedCredential, GreenplumAuthenticationType? authenticationType, object host, object port, object username, object database, object sslMode, object connectionTimeout, object commandTimeout, SecretBase password) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal GreenplumLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object connectionString, AzureKeyVaultSecretReference pwd, object encryptedCredential, GreenplumAuthenticationType? authenticationType, object host, object port, object username, object database, object sslMode, object connectionTimeout, object commandTimeout) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Pwd = pwd; @@ -55,7 +50,6 @@ internal GreenplumLinkedService(string type, string version, IntegrationRuntimeR SslMode = sslMode; ConnectionTimeout = connectionTimeout; CommandTimeout = commandTimeout; - Password = password; Type = type ?? "Greenplum"; } @@ -81,11 +75,5 @@ internal GreenplumLinkedService(string type, string version, IntegrationRuntimeR public object ConnectionTimeout { 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. Only used for V2. public object CommandTimeout { get; set; } - /// - /// The Azure key vault secret reference of password in connection string. Type: string. Only used for V2. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public SecretBase Password { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightClusterAuthenticationType.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightClusterAuthenticationType.cs new file mode 100644 index 000000000000..81cf49aa29fc --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightClusterAuthenticationType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// HDInsight cluster authentication type. + public readonly partial struct HDInsightClusterAuthenticationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HDInsightClusterAuthenticationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BasicAuthValue = "BasicAuth"; + private const string SystemAssignedManagedIdentityValue = "SystemAssignedManagedIdentity"; + private const string UserAssignedManagedIdentityValue = "UserAssignedManagedIdentity"; + + /// BasicAuth. + public static HDInsightClusterAuthenticationType BasicAuth { get; } = new HDInsightClusterAuthenticationType(BasicAuthValue); + /// SystemAssignedManagedIdentity. + public static HDInsightClusterAuthenticationType SystemAssignedManagedIdentity { get; } = new HDInsightClusterAuthenticationType(SystemAssignedManagedIdentityValue); + /// UserAssignedManagedIdentity. + public static HDInsightClusterAuthenticationType UserAssignedManagedIdentity { get; } = new HDInsightClusterAuthenticationType(UserAssignedManagedIdentityValue); + /// Determines if two values are the same. + public static bool operator ==(HDInsightClusterAuthenticationType left, HDInsightClusterAuthenticationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HDInsightClusterAuthenticationType left, HDInsightClusterAuthenticationType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator HDInsightClusterAuthenticationType(string value) => new HDInsightClusterAuthenticationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HDInsightClusterAuthenticationType other && Equals(other); + /// + public bool Equals(HDInsightClusterAuthenticationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.Serialization.cs index f67967acf066..6efbbd6bb5eb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.Serialization.cs @@ -66,6 +66,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("clusterUri"u8); writer.WriteObjectValue(ClusterUri); + if (Optional.IsDefined(ClusterAuthType)) + { + writer.WritePropertyName("clusterAuthType"u8); + writer.WriteStringValue(ClusterAuthType.Value.ToString()); + } if (Optional.IsDefined(UserName)) { writer.WritePropertyName("userName"u8); @@ -101,6 +106,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("fileSystem"u8); writer.WriteObjectValue(FileSystem); } + if (Optional.IsDefined(Credential)) + { + writer.WritePropertyName("credential"u8); + writer.WriteObjectValue(Credential); + } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { @@ -123,6 +133,7 @@ internal static HDInsightLinkedService DeserializeHDInsightLinkedService(JsonEle IDictionary parameters = default; IList annotations = default; object clusterUri = default; + HDInsightClusterAuthenticationType? clusterAuthType = default; object userName = default; SecretBase password = default; LinkedServiceReference linkedServiceName = default; @@ -130,6 +141,7 @@ internal static HDInsightLinkedService DeserializeHDInsightLinkedService(JsonEle object encryptedCredential = default; object isEspEnabled = default; object fileSystem = default; + CredentialReference credential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -207,6 +219,15 @@ internal static HDInsightLinkedService DeserializeHDInsightLinkedService(JsonEle clusterUri = property0.Value.GetObject(); continue; } + if (property0.NameEquals("clusterAuthType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + clusterAuthType = new HDInsightClusterAuthenticationType(property0.Value.GetString()); + continue; + } if (property0.NameEquals("userName"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -270,6 +291,15 @@ internal static HDInsightLinkedService DeserializeHDInsightLinkedService(JsonEle fileSystem = property0.Value.GetObject(); continue; } + if (property0.NameEquals("credential"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + credential = CredentialReference.DeserializeCredentialReference(property0.Value); + continue; + } } continue; } @@ -285,13 +315,15 @@ internal static HDInsightLinkedService DeserializeHDInsightLinkedService(JsonEle annotations ?? new ChangeTrackingList(), additionalProperties, clusterUri, + clusterAuthType, userName, password, linkedServiceName, hcatalogLinkedServiceName, encryptedCredential, isEspEnabled, - fileSystem); + fileSystem, + credential); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.cs index a881283926d3..6babb6e24ec6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.cs @@ -33,6 +33,7 @@ public HDInsightLinkedService(object clusterUri) /// List of tags that can be used for describing the linked service. /// Additional Properties. /// HDInsight cluster URI. Type: string (or Expression with resultType string). + /// HDInsight cluster authentication type. /// HDInsight cluster user name. Type: string (or Expression with resultType string). /// /// HDInsight cluster password. @@ -44,9 +45,11 @@ public HDInsightLinkedService(object clusterUri) /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). /// Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. /// Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType string). - internal HDInsightLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object clusterUri, object userName, SecretBase password, LinkedServiceReference linkedServiceName, LinkedServiceReference hcatalogLinkedServiceName, object encryptedCredential, object isEspEnabled, object fileSystem) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + /// The credential reference containing MI authentication information for the HDInsight cluster. + internal HDInsightLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object clusterUri, HDInsightClusterAuthenticationType? clusterAuthType, object userName, SecretBase password, LinkedServiceReference linkedServiceName, LinkedServiceReference hcatalogLinkedServiceName, object encryptedCredential, object isEspEnabled, object fileSystem, CredentialReference credential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { ClusterUri = clusterUri; + ClusterAuthType = clusterAuthType; UserName = userName; Password = password; LinkedServiceName = linkedServiceName; @@ -54,11 +57,14 @@ internal HDInsightLinkedService(string type, string version, IntegrationRuntimeR EncryptedCredential = encryptedCredential; IsEspEnabled = isEspEnabled; FileSystem = fileSystem; + Credential = credential; Type = type ?? "HDInsight"; } /// HDInsight cluster URI. Type: string (or Expression with resultType string). public object ClusterUri { get; set; } + /// HDInsight cluster authentication type. + public HDInsightClusterAuthenticationType? ClusterAuthType { get; set; } /// HDInsight cluster user name. Type: string (or Expression with resultType string). public object UserName { get; set; } /// @@ -77,5 +83,7 @@ internal HDInsightLinkedService(string type, string version, IntegrationRuntimeR public object IsEspEnabled { get; set; } /// Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType string). public object FileSystem { get; set; } + /// The credential reference containing MI authentication information for the HDInsight cluster. + public CredentialReference Credential { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.Serialization.cs index 3ce3645c33c5..8399e08aeb51 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.Serialization.cs @@ -118,6 +118,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableSsl"u8); writer.WriteObjectValue(EnableSsl); } + if (Optional.IsDefined(EnableServerCertificateValidation)) + { + writer.WritePropertyName("enableServerCertificateValidation"u8); + writer.WriteObjectValue(EnableServerCertificateValidation); + } if (Optional.IsDefined(TrustedCertPath)) { writer.WritePropertyName("trustedCertPath"u8); @@ -176,6 +181,7 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme SecretBase password = default; object httpPath = default; object enableSsl = default; + object enableServerCertificateValidation = default; object trustedCertPath = default; object useSystemTrustStore = default; object allowHostNameCNMismatch = default; @@ -353,6 +359,15 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme enableSsl = property0.Value.GetObject(); continue; } + if (property0.NameEquals("enableServerCertificateValidation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableServerCertificateValidation = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("trustedCertPath"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -424,6 +439,7 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme password, httpPath, enableSsl, + enableServerCertificateValidation, trustedCertPath, useSystemTrustStore, allowHostNameCNMismatch, diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.cs index 31a12a96dc5e..a9b95f652089 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.cs @@ -50,12 +50,13 @@ public HiveLinkedService(object host, HiveAuthenticationType authenticationType) /// /// 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 (or Expression with resultType string). - internal HiveLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object host, object port, HiveServerType? serverType, HiveThriftTransportProtocol? thriftTransportProtocol, HiveAuthenticationType authenticationType, object serviceDiscoveryMode, object zooKeeperNameSpace, object useNativeQuery, object username, SecretBase password, object httpPath, object enableSsl, object trustedCertPath, object useSystemTrustStore, object allowHostNameCNMismatch, object allowSelfSignedServerCert, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal HiveLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object host, object port, HiveServerType? serverType, HiveThriftTransportProtocol? thriftTransportProtocol, HiveAuthenticationType authenticationType, object serviceDiscoveryMode, object zooKeeperNameSpace, object useNativeQuery, object username, SecretBase password, object httpPath, object enableSsl, object enableServerCertificateValidation, object trustedCertPath, object useSystemTrustStore, object allowHostNameCNMismatch, object allowSelfSignedServerCert, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -69,6 +70,7 @@ internal HiveLinkedService(string type, string version, IntegrationRuntimeRefere Password = password; HttpPath = httpPath; EnableSsl = enableSsl; + EnableServerCertificateValidation = enableServerCertificateValidation; TrustedCertPath = trustedCertPath; UseSystemTrustStore = useSystemTrustStore; AllowHostNameCNMismatch = allowHostNameCNMismatch; @@ -105,6 +107,8 @@ internal HiveLinkedService(string type, string version, IntegrationRuntimeRefere public object HttpPath { get; set; } /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. public object 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 object 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 object 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/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.Serialization.cs index 0c1ad5ee0151..50d886906506 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.Serialization.cs @@ -83,11 +83,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("password"u8); writer.WriteObjectValue(Password); } + if (Optional.IsDefined(ThriftTransportProtocol)) + { + writer.WritePropertyName("thriftTransportProtocol"u8); + writer.WriteStringValue(ThriftTransportProtocol.Value.ToSerialString()); + } if (Optional.IsDefined(EnableSsl)) { writer.WritePropertyName("enableSsl"u8); writer.WriteObjectValue(EnableSsl); } + if (Optional.IsDefined(EnableServerCertificateValidation)) + { + writer.WritePropertyName("enableServerCertificateValidation"u8); + writer.WriteObjectValue(EnableServerCertificateValidation); + } if (Optional.IsDefined(TrustedCertPath)) { writer.WritePropertyName("trustedCertPath"u8); @@ -139,7 +149,9 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e ImpalaAuthenticationType authenticationType = default; object username = default; SecretBase password = default; + ImpalaThriftTransportProtocol? thriftTransportProtocol = default; object enableSsl = default; + object enableServerCertificateValidation = default; object trustedCertPath = default; object useSystemTrustStore = default; object allowHostNameCNMismatch = default; @@ -254,6 +266,15 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e password = SecretBase.DeserializeSecretBase(property0.Value); 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) @@ -263,6 +284,15 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e enableSsl = property0.Value.GetObject(); continue; } + if (property0.NameEquals("enableServerCertificateValidation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableServerCertificateValidation = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("trustedCertPath"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -327,7 +357,9 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e authenticationType, username, password, + thriftTransportProtocol, enableSsl, + enableServerCertificateValidation, trustedCertPath, useSystemTrustStore, allowHostNameCNMismatch, diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.cs index e28546ad9d2e..0a745fedb887 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.cs @@ -43,20 +43,24 @@ public ImpalaLinkedService(object host, ImpalaAuthenticationType authenticationT /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// + /// 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 (or Expression with resultType string). - internal ImpalaLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object host, object port, ImpalaAuthenticationType authenticationType, object username, SecretBase password, object enableSsl, object trustedCertPath, object useSystemTrustStore, object allowHostNameCNMismatch, object allowSelfSignedServerCert, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal ImpalaLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object host, object port, ImpalaAuthenticationType authenticationType, object username, SecretBase password, ImpalaThriftTransportProtocol? thriftTransportProtocol, object enableSsl, object enableServerCertificateValidation, object trustedCertPath, object useSystemTrustStore, object allowHostNameCNMismatch, object allowSelfSignedServerCert, object encryptedCredential) : base(type, version, 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; @@ -79,8 +83,12 @@ internal ImpalaLinkedService(string type, string version, IntegrationRuntimeRefe /// The available derived classes include and . /// public SecretBase 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 object 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 object 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 object 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/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaThriftTransportProtocol.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaThriftTransportProtocol.Serialization.cs new file mode 100644 index 000000000000..a80893688f85 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/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.Analytics.Synapse.Artifacts.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/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaThriftTransportProtocol.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaThriftTransportProtocol.cs new file mode 100644 index 000000000000..f39bf7c62432 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/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.Analytics.Synapse.Artifacts.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/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakeHouseLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakeHouseLinkedService.Serialization.cs index 034acde83c58..db2d5a54d838 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakeHouseLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakeHouseLinkedService.Serialization.cs @@ -74,6 +74,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("artifactId"u8); writer.WriteObjectValue(ArtifactId); } + if (Optional.IsDefined(AuthenticationType)) + { + writer.WritePropertyName("authenticationType"u8); + writer.WriteStringValue(AuthenticationType.Value.ToString()); + } if (Optional.IsDefined(ServicePrincipalId)) { writer.WritePropertyName("servicePrincipalId"u8); @@ -104,6 +109,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("servicePrincipalCredential"u8); writer.WriteObjectValue(ServicePrincipalCredential); } + if (Optional.IsDefined(Credential)) + { + writer.WritePropertyName("credential"u8); + writer.WriteObjectValue(Credential); + } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { @@ -127,12 +137,14 @@ internal static LakeHouseLinkedService DeserializeLakeHouseLinkedService(JsonEle IList annotations = default; object workspaceId = default; object artifactId = default; + LakehouseAuthenticationType? authenticationType = default; object servicePrincipalId = default; SecretBase servicePrincipalKey = default; object tenant = default; string encryptedCredential = default; object servicePrincipalCredentialType = default; SecretBase servicePrincipalCredential = default; + CredentialReference credential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -223,6 +235,15 @@ internal static LakeHouseLinkedService DeserializeLakeHouseLinkedService(JsonEle artifactId = property0.Value.GetObject(); continue; } + if (property0.NameEquals("authenticationType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + authenticationType = new LakehouseAuthenticationType(property0.Value.GetString()); + continue; + } if (property0.NameEquals("servicePrincipalId"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -273,6 +294,15 @@ internal static LakeHouseLinkedService DeserializeLakeHouseLinkedService(JsonEle servicePrincipalCredential = SecretBase.DeserializeSecretBase(property0.Value); continue; } + if (property0.NameEquals("credential"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + credential = CredentialReference.DeserializeCredentialReference(property0.Value); + continue; + } } continue; } @@ -289,12 +319,14 @@ internal static LakeHouseLinkedService DeserializeLakeHouseLinkedService(JsonEle additionalProperties, workspaceId, artifactId, + authenticationType, servicePrincipalId, servicePrincipalKey, tenant, encryptedCredential, servicePrincipalCredentialType, - servicePrincipalCredential); + servicePrincipalCredential, + credential); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakeHouseLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakeHouseLinkedService.cs index 29dce8f0ebd6..92e1fe3ae3b5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakeHouseLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakeHouseLinkedService.cs @@ -28,6 +28,7 @@ public LakeHouseLinkedService() /// Additional Properties. /// The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). /// The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with resultType string). + /// The authentication type to use. /// The ID of the application used to authenticate against Microsoft Fabric Lakehouse. Type: string (or Expression with resultType string). /// /// The Key of the application used to authenticate against Microsoft Fabric Lakehouse. @@ -42,16 +43,19 @@ public LakeHouseLinkedService() /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - internal LakeHouseLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object workspaceId, object artifactId, object servicePrincipalId, SecretBase servicePrincipalKey, object tenant, string encryptedCredential, object servicePrincipalCredentialType, SecretBase servicePrincipalCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + /// The credential reference containing authentication information. + internal LakeHouseLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object workspaceId, object artifactId, LakehouseAuthenticationType? authenticationType, object servicePrincipalId, SecretBase servicePrincipalKey, object tenant, string encryptedCredential, object servicePrincipalCredentialType, SecretBase servicePrincipalCredential, CredentialReference credential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { WorkspaceId = workspaceId; ArtifactId = artifactId; + AuthenticationType = authenticationType; ServicePrincipalId = servicePrincipalId; ServicePrincipalKey = servicePrincipalKey; Tenant = tenant; EncryptedCredential = encryptedCredential; ServicePrincipalCredentialType = servicePrincipalCredentialType; ServicePrincipalCredential = servicePrincipalCredential; + Credential = credential; Type = type ?? "Lakehouse"; } @@ -59,6 +63,8 @@ internal LakeHouseLinkedService(string type, string version, IntegrationRuntimeR public object WorkspaceId { get; set; } /// The ID of Microsoft Fabric Lakehouse artifact. Type: string (or Expression with resultType string). public object ArtifactId { get; set; } + /// The authentication type to use. + public LakehouseAuthenticationType? AuthenticationType { get; set; } /// The ID of the application used to authenticate against Microsoft Fabric Lakehouse. Type: string (or Expression with resultType string). public object ServicePrincipalId { get; set; } /// @@ -79,5 +85,7 @@ internal LakeHouseLinkedService(string type, string version, IntegrationRuntimeR /// The available derived classes include and . /// public SecretBase ServicePrincipalCredential { get; set; } + /// The credential reference containing authentication information. + public CredentialReference Credential { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakehouseAuthenticationType.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakehouseAuthenticationType.cs new file mode 100644 index 000000000000..b69b647fc153 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LakehouseAuthenticationType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// The authentication type to use. + public readonly partial struct LakehouseAuthenticationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public LakehouseAuthenticationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ServicePrincipalValue = "ServicePrincipal"; + private const string SystemAssignedManagedIdentityValue = "SystemAssignedManagedIdentity"; + private const string UserAssignedManagedIdentityValue = "UserAssignedManagedIdentity"; + + /// ServicePrincipal. + public static LakehouseAuthenticationType ServicePrincipal { get; } = new LakehouseAuthenticationType(ServicePrincipalValue); + /// SystemAssignedManagedIdentity. + public static LakehouseAuthenticationType SystemAssignedManagedIdentity { get; } = new LakehouseAuthenticationType(SystemAssignedManagedIdentityValue); + /// UserAssignedManagedIdentity. + public static LakehouseAuthenticationType UserAssignedManagedIdentity { get; } = new LakehouseAuthenticationType(UserAssignedManagedIdentityValue); + /// Determines if two values are the same. + public static bool operator ==(LakehouseAuthenticationType left, LakehouseAuthenticationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(LakehouseAuthenticationType left, LakehouseAuthenticationType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator LakehouseAuthenticationType(string value) => new LakehouseAuthenticationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is LakehouseAuthenticationType other && Equals(other); + /// + public bool Equals(LakehouseAuthenticationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.Serialization.cs index 297211a46fa1..0ac85ce69550 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.Serialization.cs @@ -179,6 +179,7 @@ internal static LinkedService DeserializeLinkedService(JsonElement element) case "SapOpenHub": return SapOpenHubLinkedService.DeserializeSapOpenHubLinkedService(element); case "SapTable": return SapTableLinkedService.DeserializeSapTableLinkedService(element); case "ServiceNow": return ServiceNowLinkedService.DeserializeServiceNowLinkedService(element); + case "ServiceNowV2": return ServiceNowV2LinkedService.DeserializeServiceNowV2LinkedService(element); case "Sftp": return SftpServerLinkedService.DeserializeSftpServerLinkedService(element); case "SharePointOnlineList": return SharePointOnlineListLinkedService.DeserializeSharePointOnlineListLinkedService(element); case "Shopify": return ShopifyLinkedService.DeserializeShopifyLinkedService(element); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs index 84b7298b74f4..c22f52a4fea7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models /// /// The Azure Synapse nested object which contains the information and credential which can be used to connect with related store or compute resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// public abstract partial class LinkedService { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceDebugResource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceDebugResource.cs index 5aea3beb17ef..a357fbcf5c3a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceDebugResource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceDebugResource.cs @@ -16,7 +16,7 @@ public partial class LinkedServiceDebugResource : SubResourceDebugResource /// /// Properties of linked service. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// is null. public LinkedServiceDebugResource(LinkedService properties) @@ -31,7 +31,7 @@ public LinkedServiceDebugResource(LinkedService properties) /// /// Properties of linked service. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// internal LinkedServiceDebugResource(string name, LinkedService properties) : base(name) { @@ -41,7 +41,7 @@ internal LinkedServiceDebugResource(string name, LinkedService properties) : bas /// /// Properties of linked service. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// public LinkedService Properties { get; set; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceResource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceResource.cs index 8210abc4eb15..c827d9b8783e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceResource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceResource.cs @@ -16,7 +16,7 @@ public partial class LinkedServiceResource : SubResource /// /// Properties of linked service. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// is null. public LinkedServiceResource(LinkedService properties) @@ -34,7 +34,7 @@ public LinkedServiceResource(LinkedService properties) /// /// Properties of linked service. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// internal LinkedServiceResource(string id, string name, string type, string etag, LinkedService properties) : base(id, name, type, etag) { @@ -44,7 +44,7 @@ internal LinkedServiceResource(string id, string name, string type, string etag, /// /// Properties of linked service. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// public LinkedService Properties { get; set; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.Serialization.cs index cfad393bc56c..fa0537590e18 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.Serialization.cs @@ -72,6 +72,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(ServicePrincipalId); writer.WritePropertyName("servicePrincipalKey"u8); writer.WriteObjectValue(ServicePrincipalKey); + if (Optional.IsDefined(ServicePrincipalCredentialType)) + { + writer.WritePropertyName("servicePrincipalCredentialType"u8); + writer.WriteObjectValue(ServicePrincipalCredentialType); + } + if (Optional.IsDefined(ServicePrincipalEmbeddedCert)) + { + writer.WritePropertyName("servicePrincipalEmbeddedCert"u8); + writer.WriteObjectValue(ServicePrincipalEmbeddedCert); + } + if (Optional.IsDefined(ServicePrincipalEmbeddedCertPassword)) + { + writer.WritePropertyName("servicePrincipalEmbeddedCertPassword"u8); + writer.WriteObjectValue(ServicePrincipalEmbeddedCertPassword); + } if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); @@ -102,6 +117,9 @@ internal static Office365LinkedService DeserializeOffice365LinkedService(JsonEle object servicePrincipalTenantId = default; object servicePrincipalId = default; SecretBase servicePrincipalKey = default; + object servicePrincipalCredentialType = default; + SecretBase servicePrincipalEmbeddedCert = default; + SecretBase servicePrincipalEmbeddedCertPassword = default; object encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -195,6 +213,33 @@ internal static Office365LinkedService DeserializeOffice365LinkedService(JsonEle servicePrincipalKey = SecretBase.DeserializeSecretBase(property0.Value); continue; } + if (property0.NameEquals("servicePrincipalCredentialType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + servicePrincipalCredentialType = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("servicePrincipalEmbeddedCert"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + servicePrincipalEmbeddedCert = SecretBase.DeserializeSecretBase(property0.Value); + continue; + } + if (property0.NameEquals("servicePrincipalEmbeddedCertPassword"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + servicePrincipalEmbeddedCertPassword = SecretBase.DeserializeSecretBase(property0.Value); + continue; + } if (property0.NameEquals("encryptedCredential"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -222,6 +267,9 @@ internal static Office365LinkedService DeserializeOffice365LinkedService(JsonEle servicePrincipalTenantId, servicePrincipalId, servicePrincipalKey, + servicePrincipalCredentialType, + servicePrincipalEmbeddedCert, + servicePrincipalEmbeddedCertPassword, encryptedCredential); } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.cs index 40c75324aea1..6d022478e0bc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.cs @@ -53,13 +53,27 @@ public Office365LinkedService(object office365TenantId, object servicePrincipalT /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// + /// The service principal credential type for authentication.'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. If not specified, 'ServicePrincipalKey' is in use. Type: string (or Expression with resultType string). + /// + /// Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - internal Office365LinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object office365TenantId, object servicePrincipalTenantId, object servicePrincipalId, SecretBase servicePrincipalKey, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal Office365LinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object office365TenantId, object servicePrincipalTenantId, object servicePrincipalId, SecretBase servicePrincipalKey, object servicePrincipalCredentialType, SecretBase servicePrincipalEmbeddedCert, SecretBase servicePrincipalEmbeddedCertPassword, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { Office365TenantId = office365TenantId; ServicePrincipalTenantId = servicePrincipalTenantId; ServicePrincipalId = servicePrincipalId; ServicePrincipalKey = servicePrincipalKey; + ServicePrincipalCredentialType = servicePrincipalCredentialType; + ServicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert; + ServicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword; EncryptedCredential = encryptedCredential; Type = type ?? "Office365"; } @@ -76,6 +90,20 @@ internal Office365LinkedService(string type, string version, IntegrationRuntimeR /// The available derived classes include and . /// public SecretBase ServicePrincipalKey { get; set; } + /// The service principal credential type for authentication.'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. If not specified, 'ServicePrincipalKey' is in use. Type: string (or Expression with resultType string). + public object ServicePrincipalCredentialType { get; set; } + /// + /// Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public SecretBase ServicePrincipalEmbeddedCert { get; set; } + /// + /// Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public SecretBase ServicePrincipalEmbeddedCertPassword { get; set; } /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). public object EncryptedCredential { get; set; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.Serialization.cs index e59afc877e7d..461688b89637 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.Serialization.cs @@ -64,8 +64,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("typeProperties"u8); writer.WriteStartObject(); - writer.WritePropertyName("connectionString"u8); - writer.WriteObjectValue(ConnectionString); + if (Optional.IsDefined(ConnectionString)) + { + writer.WritePropertyName("connectionString"u8); + writer.WriteObjectValue(ConnectionString); + } if (Optional.IsDefined(Server)) { writer.WritePropertyName("server"u8); @@ -258,6 +261,10 @@ internal static OracleLinkedService DeserializeOracleLinkedService(JsonElement e { if (property0.NameEquals("connectionString"u8)) { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } connectionString = property0.Value.GetObject(); continue; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.cs index da55d040f439..6f14d20626c9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Collections.Generic; namespace Azure.Analytics.Synapse.Artifacts.Models @@ -14,13 +13,8 @@ namespace Azure.Analytics.Synapse.Artifacts.Models public partial class OracleLinkedService : LinkedService { /// Initializes a new instance of . - /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used for Version 1.0. - /// is null. - public OracleLinkedService(object connectionString) + public OracleLinkedService() { - Argument.AssertNotNull(connectionString, nameof(connectionString)); - - ConnectionString = connectionString; Type = "Oracle"; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.Serialization.cs index c668b608ceac..383cc7b328a3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.Serialization.cs @@ -44,6 +44,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("additionalColumns"u8); writer.WriteObjectValue(AdditionalColumns); } + if (Optional.IsDefined(NumberPrecision)) + { + writer.WritePropertyName("numberPrecision"u8); + writer.WriteObjectValue(NumberPrecision); + } + if (Optional.IsDefined(NumberScale)) + { + writer.WritePropertyName("numberScale"u8); + writer.WriteObjectValue(NumberScale); + } writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); if (Optional.IsDefined(SourceRetryCount)) @@ -80,6 +90,8 @@ internal static OracleSource DeserializeOracleSource(JsonElement element) OraclePartitionOption? partitionOption = default; OraclePartitionSettings partitionSettings = default; object additionalColumns = default; + object numberPrecision = default; + object numberScale = default; string type = default; object sourceRetryCount = default; object sourceRetryWait = default; @@ -133,6 +145,24 @@ internal static OracleSource DeserializeOracleSource(JsonElement element) additionalColumns = property.Value.GetObject(); continue; } + if (property.NameEquals("numberPrecision"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + numberPrecision = property.Value.GetObject(); + continue; + } + if (property.NameEquals("numberScale"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + numberScale = property.Value.GetObject(); + continue; + } if (property.NameEquals("type"u8)) { type = property.Value.GetString(); @@ -178,7 +208,9 @@ internal static OracleSource DeserializeOracleSource(JsonElement element) queryTimeout, partitionOption, partitionSettings, - additionalColumns); + additionalColumns, + numberPrecision, + numberScale); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.cs index 7d68ff4be2f0..9a23797d2fdc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.cs @@ -29,13 +29,17 @@ public OracleSource() /// The partition mechanism that will be used for Oracle read in parallel. /// The settings that will be leveraged for Oracle source partitioning. /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). - internal OracleSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object oracleReaderQuery, object queryTimeout, OraclePartitionOption? partitionOption, OraclePartitionSettings partitionSettings, object additionalColumns) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties) + /// The decimal precision used to represent Oracle NUMBER type without precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. + /// The decimal scale used to represent Oracle NUMBER type without precision and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. + internal OracleSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object oracleReaderQuery, object queryTimeout, OraclePartitionOption? partitionOption, OraclePartitionSettings partitionSettings, object additionalColumns, object numberPrecision, object numberScale) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties) { OracleReaderQuery = oracleReaderQuery; QueryTimeout = queryTimeout; PartitionOption = partitionOption; PartitionSettings = partitionSettings; AdditionalColumns = additionalColumns; + NumberPrecision = numberPrecision; + NumberScale = numberScale; Type = type ?? "OracleSource"; } @@ -49,5 +53,9 @@ internal OracleSource(string type, object sourceRetryCount, object sourceRetryWa public OraclePartitionSettings PartitionSettings { get; set; } /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). public object AdditionalColumns { get; set; } + /// The decimal precision used to represent Oracle NUMBER type without precision and scale. The range is 1 to 256 and default value is 256 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. + public object NumberPrecision { get; set; } + /// The decimal scale used to represent Oracle NUMBER type without precision and scale. The range is 0 to 130 and default value is 130 if not specified. Type: integer (or Expression with resultType integer). Only used for Version 2.0. + public object NumberScale { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.Serialization.cs index f827873022ad..c71d87bfcc90 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.Serialization.cs @@ -66,8 +66,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("host"u8); writer.WriteObjectValue(Host); - writer.WritePropertyName("serverVersion"u8); - writer.WriteObjectValue(ServerVersion); + if (Optional.IsDefined(ServerVersion)) + { + writer.WritePropertyName("serverVersion"u8); + writer.WriteObjectValue(ServerVersion); + } writer.WritePropertyName("catalog"u8); writer.WriteObjectValue(Catalog); if (Optional.IsDefined(Port)) @@ -92,6 +95,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableSsl"u8); writer.WriteObjectValue(EnableSsl); } + if (Optional.IsDefined(EnableServerCertificateValidation)) + { + writer.WritePropertyName("enableServerCertificateValidation"u8); + writer.WriteObjectValue(EnableServerCertificateValidation); + } if (Optional.IsDefined(TrustedCertPath)) { writer.WritePropertyName("trustedCertPath"u8); @@ -151,6 +159,7 @@ internal static PrestoLinkedService DeserializePrestoLinkedService(JsonElement e object username = default; SecretBase password = default; object enableSsl = default; + object enableServerCertificateValidation = default; object trustedCertPath = default; object useSystemTrustStore = default; object allowHostNameCNMismatch = default; @@ -236,6 +245,10 @@ internal static PrestoLinkedService DeserializePrestoLinkedService(JsonElement e } if (property0.NameEquals("serverVersion"u8)) { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } serverVersion = property0.Value.GetObject(); continue; } @@ -285,6 +298,15 @@ internal static PrestoLinkedService DeserializePrestoLinkedService(JsonElement e enableSsl = property0.Value.GetObject(); continue; } + if (property0.NameEquals("enableServerCertificateValidation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableServerCertificateValidation = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("trustedCertPath"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -361,6 +383,7 @@ internal static PrestoLinkedService DeserializePrestoLinkedService(JsonElement e username, password, enableSsl, + enableServerCertificateValidation, trustedCertPath, useSystemTrustStore, allowHostNameCNMismatch, diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.cs index 906dc5095de3..c225aa08b704 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.cs @@ -10,23 +10,20 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { - /// Presto server linked service. + /// Presto server linked service. This linked service has supported version property. The Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without any bug fix or new features. public partial class PrestoLinkedService : LinkedService { /// Initializes a new instance of . /// The IP address or host name of the Presto server. (i.e. 192.168.222.160). - /// The version of the Presto server. (i.e. 0.148-t). /// The catalog context for all request against the server. /// The authentication mechanism used to connect to the Presto server. - /// , or is null. - public PrestoLinkedService(object host, object serverVersion, object catalog, PrestoAuthenticationType authenticationType) + /// or is null. + public PrestoLinkedService(object host, object catalog, PrestoAuthenticationType authenticationType) { Argument.AssertNotNull(host, nameof(host)); - Argument.AssertNotNull(serverVersion, nameof(serverVersion)); Argument.AssertNotNull(catalog, nameof(catalog)); Host = host; - ServerVersion = serverVersion; Catalog = catalog; AuthenticationType = authenticationType; Type = "Presto"; @@ -41,9 +38,9 @@ public PrestoLinkedService(object host, object serverVersion, object catalog, Pr /// List of tags that can be used for describing the linked service. /// Additional Properties. /// The IP address or host name of the Presto server. (i.e. 192.168.222.160). - /// The version of the Presto server. (i.e. 0.148-t). + /// The version of the Presto server. (i.e. 0.148-t) Only used for Version 1.0. /// The catalog context for all request against the server. - /// The TCP port that the Presto server uses to listen for client connections. The default value is 8080. + /// The TCP port that the Presto server uses to listen for client connections. The default value is 8080 when disable SSL, default value is 443 when enable SSL. /// The authentication mechanism used to connect to the Presto server. /// The user name used to connect to the Presto server. /// @@ -51,14 +48,15 @@ public PrestoLinkedService(object host, object serverVersion, object catalog, Pr /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. - /// 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 local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value is the system time zone. + /// Specifies whether the connections to the server are encrypted using SSL. The default value for legacy version is False. The default value for version 2.0 is True. + /// 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. Only used for Version 1.0. + /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. Only used for Version 1.0. + /// 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. Only used for Version 1.0. + /// Specifies whether to allow self-signed certificates from the server. The default value is false. Only used for Version 1.0. + /// The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value for Version 1.0 is the client system time zone. The default value for Version 2.0 is server system timeZone. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - internal PrestoLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object host, object serverVersion, object catalog, object port, PrestoAuthenticationType authenticationType, object username, SecretBase password, object enableSsl, object trustedCertPath, object useSystemTrustStore, object allowHostNameCNMismatch, object allowSelfSignedServerCert, object timeZoneID, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal PrestoLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object host, object serverVersion, object catalog, object port, PrestoAuthenticationType authenticationType, object username, SecretBase password, object enableSsl, object enableServerCertificateValidation, object trustedCertPath, object useSystemTrustStore, object allowHostNameCNMismatch, object allowSelfSignedServerCert, object timeZoneID, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { Host = host; ServerVersion = serverVersion; @@ -68,6 +66,7 @@ internal PrestoLinkedService(string type, string version, IntegrationRuntimeRefe Username = username; Password = password; EnableSsl = enableSsl; + EnableServerCertificateValidation = enableServerCertificateValidation; TrustedCertPath = trustedCertPath; UseSystemTrustStore = useSystemTrustStore; AllowHostNameCNMismatch = allowHostNameCNMismatch; @@ -79,11 +78,11 @@ internal PrestoLinkedService(string type, string version, IntegrationRuntimeRefe /// The IP address or host name of the Presto server. (i.e. 192.168.222.160). public object Host { get; set; } - /// The version of the Presto server. (i.e. 0.148-t). + /// The version of the Presto server. (i.e. 0.148-t) Only used for Version 1.0. public object ServerVersion { get; set; } /// The catalog context for all request against the server. public object Catalog { get; set; } - /// The TCP port that the Presto server uses to listen for client connections. The default value is 8080. + /// The TCP port that the Presto server uses to listen for client connections. The default value is 8080 when disable SSL, default value is 443 when enable SSL. public object Port { get; set; } /// The authentication mechanism used to connect to the Presto server. public PrestoAuthenticationType AuthenticationType { get; set; } @@ -95,17 +94,19 @@ internal PrestoLinkedService(string type, string version, IntegrationRuntimeRefe /// The available derived classes include and . /// public SecretBase Password { get; set; } - /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. + /// Specifies whether the connections to the server are encrypted using SSL. The default value for legacy version is False. The default value for version 2.0 is True. public object EnableSsl { 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. + /// Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0. + public object 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. Only used for Version 1.0. public object 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. + /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. Only used for Version 1.0. public object UseSystemTrustStore { get; set; } - /// 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 require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. Only used for Version 1.0. public object AllowHostNameCNMismatch { get; set; } - /// Specifies whether to allow self-signed certificates from the server. The default value is false. + /// Specifies whether to allow self-signed certificates from the server. The default value is false. Only used for Version 1.0. public object AllowSelfSignedServerCert { get; set; } - /// The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value is the system time zone. + /// The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value for Version 1.0 is the client system time zone. The default value for Version 2.0 is server system timeZone. public object TimeZoneID { get; set; } /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). public object EncryptedCredential { get; set; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.Serialization.cs index b95843b238da..0619f35a7e99 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.Serialization.cs @@ -77,10 +77,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(ConsumerKey); writer.WritePropertyName("consumerSecret"u8); writer.WriteObjectValue(ConsumerSecret); - writer.WritePropertyName("accessToken"u8); - writer.WriteObjectValue(AccessToken); - writer.WritePropertyName("accessTokenSecret"u8); - writer.WriteObjectValue(AccessTokenSecret); + if (Optional.IsDefined(AccessToken)) + { + writer.WritePropertyName("accessToken"u8); + writer.WriteObjectValue(AccessToken); + } + if (Optional.IsDefined(AccessTokenSecret)) + { + writer.WritePropertyName("accessTokenSecret"u8); + writer.WriteObjectValue(AccessTokenSecret); + } + if (Optional.IsDefined(RefreshToken)) + { + writer.WritePropertyName("refreshToken"u8); + writer.WriteObjectValue(RefreshToken); + } if (Optional.IsDefined(UseEncryptedEndpoints)) { writer.WritePropertyName("useEncryptedEndpoints"u8); @@ -119,6 +130,7 @@ internal static QuickBooksLinkedService DeserializeQuickBooksLinkedService(JsonE SecretBase consumerSecret = default; SecretBase accessToken = default; SecretBase accessTokenSecret = default; + SecretBase refreshToken = default; object useEncryptedEndpoints = default; object encryptedCredential = default; IDictionary additionalProperties = default; @@ -224,14 +236,31 @@ internal static QuickBooksLinkedService DeserializeQuickBooksLinkedService(JsonE } if (property0.NameEquals("accessToken"u8)) { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } accessToken = SecretBase.DeserializeSecretBase(property0.Value); continue; } if (property0.NameEquals("accessTokenSecret"u8)) { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } accessTokenSecret = SecretBase.DeserializeSecretBase(property0.Value); continue; } + if (property0.NameEquals("refreshToken"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + refreshToken = SecretBase.DeserializeSecretBase(property0.Value); + continue; + } if (property0.NameEquals("useEncryptedEndpoints"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -271,6 +300,7 @@ internal static QuickBooksLinkedService DeserializeQuickBooksLinkedService(JsonE consumerSecret, accessToken, accessTokenSecret, + refreshToken, useEncryptedEndpoints, encryptedCredential); } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.cs index 9668672bb03b..ab4cd35391fa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.cs @@ -10,44 +10,30 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { - /// QuickBooks server linked service. + /// QuickBooks server linked service. This linked service has supported version property. The Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without any bug fix or new features. public partial class QuickBooksLinkedService : LinkedService { /// Initializes a new instance of . /// The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). /// The company ID of the QuickBooks company to authorize. - /// The consumer key for OAuth 1.0 authentication. + /// The consumer key for OAuth 2.0 authentication. /// - /// The consumer secret for OAuth 1.0 authentication. + /// The consumer secret for OAuth 2.0 authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - /// - /// The access token for OAuth 1.0 authentication. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// - /// The access token secret for OAuth 1.0 authentication. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// , , , , or is null. - public QuickBooksLinkedService(object endpoint, object companyId, object consumerKey, SecretBase consumerSecret, SecretBase accessToken, SecretBase accessTokenSecret) + /// , , or is null. + public QuickBooksLinkedService(object endpoint, object companyId, object consumerKey, SecretBase consumerSecret) { Argument.AssertNotNull(endpoint, nameof(endpoint)); Argument.AssertNotNull(companyId, nameof(companyId)); Argument.AssertNotNull(consumerKey, nameof(consumerKey)); Argument.AssertNotNull(consumerSecret, nameof(consumerSecret)); - Argument.AssertNotNull(accessToken, nameof(accessToken)); - Argument.AssertNotNull(accessTokenSecret, nameof(accessTokenSecret)); Endpoint = endpoint; CompanyId = companyId; ConsumerKey = consumerKey; ConsumerSecret = consumerSecret; - AccessToken = accessToken; - AccessTokenSecret = accessTokenSecret; Type = "QuickBooks"; } @@ -62,25 +48,30 @@ public QuickBooksLinkedService(object endpoint, object companyId, object consume /// Properties used to connect to QuickBooks. It is mutually exclusive with any other properties in the linked service. Type: object. /// The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). /// The company ID of the QuickBooks company to authorize. - /// The consumer key for OAuth 1.0 authentication. + /// The consumer key for OAuth 2.0 authentication. /// - /// The consumer secret for OAuth 1.0 authentication. + /// The consumer secret for OAuth 2.0 authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// - /// The access token for OAuth 1.0 authentication. + /// The access token for OAuth 2.0 authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// - /// The access token secret for OAuth 1.0 authentication. + /// The access token secret is deprecated for OAuth 1.0 authentication. Only used for version 1.0. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// The refresh token for OAuth 2.0 authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - internal QuickBooksLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object connectionProperties, object endpoint, object companyId, object consumerKey, SecretBase consumerSecret, SecretBase accessToken, SecretBase accessTokenSecret, object useEncryptedEndpoints, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal QuickBooksLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object connectionProperties, object endpoint, object companyId, object consumerKey, SecretBase consumerSecret, SecretBase accessToken, SecretBase accessTokenSecret, SecretBase refreshToken, object useEncryptedEndpoints, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { ConnectionProperties = connectionProperties; Endpoint = endpoint; @@ -89,6 +80,7 @@ internal QuickBooksLinkedService(string type, string version, IntegrationRuntime ConsumerSecret = consumerSecret; AccessToken = accessToken; AccessTokenSecret = accessTokenSecret; + RefreshToken = refreshToken; UseEncryptedEndpoints = useEncryptedEndpoints; EncryptedCredential = encryptedCredential; Type = type ?? "QuickBooks"; @@ -100,26 +92,32 @@ internal QuickBooksLinkedService(string type, string version, IntegrationRuntime public object Endpoint { get; set; } /// The company ID of the QuickBooks company to authorize. public object CompanyId { get; set; } - /// The consumer key for OAuth 1.0 authentication. + /// The consumer key for OAuth 2.0 authentication. public object ConsumerKey { get; set; } /// - /// The consumer secret for OAuth 1.0 authentication. + /// The consumer secret for OAuth 2.0 authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// public SecretBase ConsumerSecret { get; set; } /// - /// The access token for OAuth 1.0 authentication. + /// The access token for OAuth 2.0 authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// public SecretBase AccessToken { get; set; } /// - /// The access token secret for OAuth 1.0 authentication. + /// The access token secret is deprecated for OAuth 1.0 authentication. Only used for version 1.0. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// public SecretBase AccessTokenSecret { get; set; } + /// + /// The refresh token for OAuth 2.0 authentication. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public SecretBase RefreshToken { get; set; } /// Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. public object UseEncryptedEndpoints { get; set; } /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2AuthenticationType.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2AuthenticationType.cs index a9ed3e305805..2e0fe99ace7d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2AuthenticationType.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2AuthenticationType.cs @@ -11,7 +11,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { /// The authentication type to use. - internal readonly partial struct ServiceNowV2AuthenticationType : IEquatable + public readonly partial struct ServiceNowV2AuthenticationType : IEquatable { private readonly string _value; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedService.Serialization.cs new file mode 100644 index 000000000000..2b96bfb6322f --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedService.Serialization.cs @@ -0,0 +1,316 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + [JsonConverter(typeof(ServiceNowV2LinkedServiceConverter))] + public partial class ServiceNowV2LinkedService : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(ConnectVia)) + { + writer.WritePropertyName("connectVia"u8); + writer.WriteObjectValue(ConnectVia); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsCollectionDefined(Parameters)) + { + writer.WritePropertyName("parameters"u8); + writer.WriteStartObject(); + foreach (var item in Parameters) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsCollectionDefined(Annotations)) + { + writer.WritePropertyName("annotations"u8); + writer.WriteStartArray(); + foreach (var item in Annotations) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("typeProperties"u8); + writer.WriteStartObject(); + writer.WritePropertyName("endpoint"u8); + writer.WriteObjectValue(Endpoint); + writer.WritePropertyName("authenticationType"u8); + writer.WriteStringValue(AuthenticationType.ToString()); + if (Optional.IsDefined(Username)) + { + writer.WritePropertyName("username"u8); + writer.WriteObjectValue(Username); + } + if (Optional.IsDefined(Password)) + { + writer.WritePropertyName("password"u8); + writer.WriteObjectValue(Password); + } + if (Optional.IsDefined(ClientId)) + { + writer.WritePropertyName("clientId"u8); + writer.WriteObjectValue(ClientId); + } + if (Optional.IsDefined(ClientSecret)) + { + writer.WritePropertyName("clientSecret"u8); + writer.WriteObjectValue(ClientSecret); + } + if (Optional.IsDefined(GrantType)) + { + writer.WritePropertyName("grantType"u8); + writer.WriteObjectValue(GrantType); + } + if (Optional.IsDefined(EncryptedCredential)) + { + writer.WritePropertyName("encryptedCredential"u8); + writer.WriteStringValue(EncryptedCredential); + } + writer.WriteEndObject(); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static ServiceNowV2LinkedService DeserializeServiceNowV2LinkedService(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string type = default; + string version = default; + IntegrationRuntimeReference connectVia = default; + string description = default; + IDictionary parameters = default; + IList annotations = default; + object endpoint = default; + ServiceNowV2AuthenticationType authenticationType = default; + object username = default; + SecretBase password = default; + object clientId = default; + SecretBase clientSecret = default; + object grantType = default; + string encryptedCredential = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("version"u8)) + { + version = property.Value.GetString(); + continue; + } + if (property.NameEquals("connectVia"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + connectVia = IntegrationRuntimeReference.DeserializeIntegrationRuntimeReference(property.Value); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("parameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, ParameterSpecification.DeserializeParameterSpecification(property0.Value)); + } + parameters = dictionary; + continue; + } + if (property.NameEquals("annotations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetObject()); + } + } + annotations = array; + continue; + } + if (property.NameEquals("typeProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("endpoint"u8)) + { + endpoint = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("authenticationType"u8)) + { + authenticationType = new ServiceNowV2AuthenticationType(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("username"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + username = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("password"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + password = SecretBase.DeserializeSecretBase(property0.Value); + continue; + } + if (property0.NameEquals("clientId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + clientId = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("clientSecret"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + clientSecret = SecretBase.DeserializeSecretBase(property0.Value); + continue; + } + if (property0.NameEquals("grantType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + grantType = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("encryptedCredential"u8)) + { + encryptedCredential = property0.Value.GetString(); + continue; + } + } + continue; + } + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + additionalProperties = additionalPropertiesDictionary; + return new ServiceNowV2LinkedService( + type, + version, + connectVia, + description, + parameters ?? new ChangeTrackingDictionary(), + annotations ?? new ChangeTrackingList(), + additionalProperties, + endpoint, + authenticationType, + username, + password, + clientId, + clientSecret, + grantType, + encryptedCredential); + } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ServiceNowV2LinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeServiceNowV2LinkedService(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + + internal partial class ServiceNowV2LinkedServiceConverter : JsonConverter + { + public override void Write(Utf8JsonWriter writer, ServiceNowV2LinkedService model, JsonSerializerOptions options) + { + writer.WriteObjectValue(model); + } + + public override ServiceNowV2LinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + using var document = JsonDocument.ParseValue(ref reader); + return DeserializeServiceNowV2LinkedService(document.RootElement); + } + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedServiceTypeProperties.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedService.cs similarity index 70% rename from sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedServiceTypeProperties.cs rename to sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedService.cs index 2acf533ea2b0..9b672ab38386 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedServiceTypeProperties.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2LinkedService.cs @@ -6,25 +6,34 @@ #nullable disable using System; +using System.Collections.Generic; namespace Azure.Analytics.Synapse.Artifacts.Models { - /// ServiceNowV2 server linked service properties. - internal partial class ServiceNowV2LinkedServiceTypeProperties + /// ServiceNowV2 server linked service. + public partial class ServiceNowV2LinkedService : LinkedService { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The endpoint of the ServiceNowV2 server. (i.e. <instance>.service-now.com). /// The authentication type to use. /// is null. - internal ServiceNowV2LinkedServiceTypeProperties(object endpoint, ServiceNowV2AuthenticationType authenticationType) + public ServiceNowV2LinkedService(object endpoint, ServiceNowV2AuthenticationType authenticationType) { Argument.AssertNotNull(endpoint, nameof(endpoint)); Endpoint = endpoint; AuthenticationType = authenticationType; + Type = "ServiceNowV2"; } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Type of linked service. + /// Version of the linked service. + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for describing the linked service. + /// Additional Properties. /// The endpoint of the ServiceNowV2 server. (i.e. <instance>.service-now.com). /// The authentication type to use. /// The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication. @@ -41,7 +50,7 @@ internal ServiceNowV2LinkedServiceTypeProperties(object endpoint, ServiceNowV2Au /// /// GrantType for OAuth2 authentication. Default value is password. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ServiceNowV2LinkedServiceTypeProperties(object endpoint, ServiceNowV2AuthenticationType authenticationType, object username, SecretBase password, object clientId, SecretBase clientSecret, object grantType, string encryptedCredential) + internal ServiceNowV2LinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object endpoint, ServiceNowV2AuthenticationType authenticationType, object username, SecretBase password, object clientId, SecretBase clientSecret, object grantType, string encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { Endpoint = endpoint; AuthenticationType = authenticationType; @@ -51,31 +60,32 @@ internal ServiceNowV2LinkedServiceTypeProperties(object endpoint, ServiceNowV2Au ClientSecret = clientSecret; GrantType = grantType; EncryptedCredential = encryptedCredential; + Type = type ?? "ServiceNowV2"; } /// The endpoint of the ServiceNowV2 server. (i.e. <instance>.service-now.com). - public object Endpoint { get; } + public object Endpoint { get; set; } /// The authentication type to use. - public ServiceNowV2AuthenticationType AuthenticationType { get; } + public ServiceNowV2AuthenticationType AuthenticationType { get; set; } /// The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication. - public object Username { get; } + public object Username { get; set; } /// /// The password corresponding to the user name for Basic and OAuth2 authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public SecretBase Password { get; } + public SecretBase Password { get; set; } /// The client id for OAuth2 authentication. - public object ClientId { get; } + public object ClientId { get; set; } /// /// The client secret for OAuth2 authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public SecretBase ClientSecret { get; } + public SecretBase ClientSecret { get; set; } /// GrantType for OAuth2 authentication. Default value is password. - public object GrantType { get; } + public object GrantType { get; set; } /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - public string EncryptedCredential { get; } + public string EncryptedCredential { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2ObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2ObjectDataset.Serialization.cs index 2b6e9c235f3e..64586161e986 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2ObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2ObjectDataset.Serialization.cs @@ -76,6 +76,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("tableName"u8); writer.WriteObjectValue(TableName); } + if (Optional.IsDefined(ValueType)) + { + writer.WritePropertyName("valueType"u8); + writer.WriteStringValue(ValueType.Value.ToString()); + } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { @@ -100,6 +105,7 @@ internal static ServiceNowV2ObjectDataset DeserializeServiceNowV2ObjectDataset(J IList annotations = default; DatasetFolder folder = default; object tableName = default; + ValueType? valueType = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -199,6 +205,15 @@ internal static ServiceNowV2ObjectDataset DeserializeServiceNowV2ObjectDataset(J tableName = property0.Value.GetObject(); continue; } + if (property0.NameEquals("valueType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + valueType = new ValueType(property0.Value.GetString()); + continue; + } } continue; } @@ -215,7 +230,8 @@ internal static ServiceNowV2ObjectDataset DeserializeServiceNowV2ObjectDataset(J annotations ?? new ChangeTrackingList(), folder, additionalProperties, - tableName); + tableName, + valueType); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2ObjectDataset.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2ObjectDataset.cs index 7cf0adf9ac5e..99e1da4aea66 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2ObjectDataset.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowV2ObjectDataset.cs @@ -34,13 +34,17 @@ public ServiceNowV2ObjectDataset(LinkedServiceReference linkedServiceName) : bas /// The folder that this Dataset is in. If not specified, Dataset will appear at the root level. /// Additional Properties. /// The table name. Type: string (or Expression with resultType string). - internal ServiceNowV2ObjectDataset(string type, string description, object structure, object schema, LinkedServiceReference linkedServiceName, IDictionary parameters, IList annotations, DatasetFolder folder, IDictionary additionalProperties, object tableName) : base(type, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties) + /// Type of value copied from source. + internal ServiceNowV2ObjectDataset(string type, string description, object structure, object schema, LinkedServiceReference linkedServiceName, IDictionary parameters, IList annotations, DatasetFolder folder, IDictionary additionalProperties, object tableName, ValueType? valueType) : base(type, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties) { TableName = tableName; + ValueType = valueType; Type = type ?? "ServiceNowV2Object"; } /// The table name. Type: string (or Expression with resultType string). public object TableName { get; set; } + /// Type of value copied from source. + public ValueType? ValueType { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeV2LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeV2LinkedService.Serialization.cs index 164387fc93de..cde660170cfe 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeV2LinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeV2LinkedService.Serialization.cs @@ -105,11 +105,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("scope"u8); writer.WriteObjectValue(Scope); } + if (Optional.IsDefined(Role)) + { + writer.WritePropertyName("role"u8); + writer.WriteObjectValue(Role); + } if (Optional.IsDefined(Host)) { writer.WritePropertyName("host"u8); writer.WriteObjectValue(Host); } + if (Optional.IsDefined(Schema)) + { + writer.WritePropertyName("schema"u8); + writer.WriteObjectValue(Schema); + } if (Optional.IsDefined(PrivateKey)) { writer.WritePropertyName("privateKey"u8); @@ -156,7 +166,9 @@ internal static SnowflakeV2LinkedService DeserializeSnowflakeV2LinkedService(Jso SecretBase clientSecret = default; object tenantId = default; object scope = default; + object role = default; object host = default; + object schema = default; SecretBase privateKey = default; SecretBase privateKeyPassphrase = default; string encryptedCredential = default; @@ -310,6 +322,15 @@ internal static SnowflakeV2LinkedService DeserializeSnowflakeV2LinkedService(Jso scope = property0.Value.GetObject(); continue; } + if (property0.NameEquals("role"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + role = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("host"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -319,6 +340,15 @@ internal static SnowflakeV2LinkedService DeserializeSnowflakeV2LinkedService(Jso host = property0.Value.GetObject(); continue; } + if (property0.NameEquals("schema"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + schema = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("privateKey"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -366,7 +396,9 @@ internal static SnowflakeV2LinkedService DeserializeSnowflakeV2LinkedService(Jso clientSecret, tenantId, scope, + role, host, + schema, privateKey, privateKeyPassphrase, encryptedCredential); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeV2LinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeV2LinkedService.cs index f91f1a9d4306..3688a34acd7f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeV2LinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeV2LinkedService.cs @@ -56,7 +56,9 @@ public SnowflakeV2LinkedService(object accountIdentifier, object database, objec /// /// The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication. /// The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication. - /// The host name of the Snowflake account. + /// The default access control role to use in the Snowflake session. Type: string (or Expression with resultType string). + /// The host name of the Snowflake account. Type: string (or Expression with resultType string). + /// Schema name for connection. Type: string (or Expression with resultType string). /// /// The Azure key vault secret reference of privateKey for KeyPair auth. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -68,7 +70,7 @@ public SnowflakeV2LinkedService(object accountIdentifier, object database, objec /// The available derived classes include and . /// /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SnowflakeV2LinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object accountIdentifier, object user, SecretBase password, object database, object warehouse, SnowflakeAuthenticationType? authenticationType, object clientId, SecretBase clientSecret, object tenantId, object scope, object host, SecretBase privateKey, SecretBase privateKeyPassphrase, string encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal SnowflakeV2LinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object accountIdentifier, object user, SecretBase password, object database, object warehouse, SnowflakeAuthenticationType? authenticationType, object clientId, SecretBase clientSecret, object tenantId, object scope, object role, object host, object schema, SecretBase privateKey, SecretBase privateKeyPassphrase, string encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { AccountIdentifier = accountIdentifier; User = user; @@ -80,7 +82,9 @@ internal SnowflakeV2LinkedService(string type, string version, IntegrationRuntim ClientSecret = clientSecret; TenantId = tenantId; Scope = scope; + Role = role; Host = host; + Schema = schema; PrivateKey = privateKey; PrivateKeyPassphrase = privateKeyPassphrase; EncryptedCredential = encryptedCredential; @@ -115,8 +119,12 @@ internal SnowflakeV2LinkedService(string type, string version, IntegrationRuntim public object TenantId { get; set; } /// The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication. public object Scope { get; set; } - /// The host name of the Snowflake account. + /// The default access control role to use in the Snowflake session. Type: string (or Expression with resultType string). + public object Role { get; set; } + /// The host name of the Snowflake account. Type: string (or Expression with resultType string). public object Host { get; set; } + /// Schema name for connection. Type: string (or Expression with resultType string). + public object Schema { get; set; } /// /// The Azure key vault secret reference of privateKey for KeyPair auth. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.Serialization.cs index e54c251a63a6..8ae57d9bc741 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.Serialization.cs @@ -100,6 +100,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableSsl"u8); writer.WriteObjectValue(EnableSsl); } + if (Optional.IsDefined(EnableServerCertificateValidation)) + { + writer.WritePropertyName("enableServerCertificateValidation"u8); + writer.WriteObjectValue(EnableServerCertificateValidation); + } if (Optional.IsDefined(TrustedCertPath)) { writer.WritePropertyName("trustedCertPath"u8); @@ -155,6 +160,7 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele SecretBase password = default; object httpPath = default; object enableSsl = default; + object enableServerCertificateValidation = default; object trustedCertPath = default; object useSystemTrustStore = default; object allowHostNameCNMismatch = default; @@ -301,6 +307,15 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele enableSsl = property0.Value.GetObject(); continue; } + if (property0.NameEquals("enableServerCertificateValidation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableServerCertificateValidation = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("trustedCertPath"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -369,6 +384,7 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele password, httpPath, enableSsl, + enableServerCertificateValidation, trustedCertPath, useSystemTrustStore, allowHostNameCNMismatch, diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.cs index 6724b189634e..5b4af886e07e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.cs @@ -50,12 +50,13 @@ public SparkLinkedService(object host, object port, SparkAuthenticationType auth /// /// 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 (or Expression with resultType string). - internal SparkLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object host, object port, SparkServerType? serverType, SparkThriftTransportProtocol? thriftTransportProtocol, SparkAuthenticationType authenticationType, object username, SecretBase password, object httpPath, object enableSsl, object trustedCertPath, object useSystemTrustStore, object allowHostNameCNMismatch, object allowSelfSignedServerCert, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + internal SparkLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object host, object port, SparkServerType? serverType, SparkThriftTransportProtocol? thriftTransportProtocol, SparkAuthenticationType authenticationType, object username, SecretBase password, object httpPath, object enableSsl, object enableServerCertificateValidation, object trustedCertPath, object useSystemTrustStore, object allowHostNameCNMismatch, object allowSelfSignedServerCert, object encryptedCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -66,6 +67,7 @@ internal SparkLinkedService(string type, string version, IntegrationRuntimeRefer Password = password; HttpPath = httpPath; EnableSsl = enableSsl; + EnableServerCertificateValidation = enableServerCertificateValidation; TrustedCertPath = trustedCertPath; UseSystemTrustStore = useSystemTrustStore; AllowHostNameCNMismatch = allowHostNameCNMismatch; @@ -96,6 +98,8 @@ internal SparkLinkedService(string type, string version, IntegrationRuntimeRefer public object HttpPath { get; set; } /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. public object 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 object 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 object 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/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.Serialization.cs index 9e303fa09254..3f379bbd6f02 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.Serialization.cs @@ -43,6 +43,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("timeSpanFormat"u8); writer.WriteObjectValue(TimeSpanFormat); } + if (Optional.IsDefined(TimeFormat)) + { + writer.WritePropertyName("timeFormat"u8); + writer.WriteObjectValue(TimeFormat); + } + if (Optional.IsDefined(DateFormat)) + { + writer.WritePropertyName("dateFormat"u8); + writer.WriteObjectValue(DateFormat); + } if (Optional.IsDefined(Culture)) { writer.WritePropertyName("culture"u8); @@ -62,6 +72,8 @@ internal static TypeConversionSettings DeserializeTypeConversionSettings(JsonEle object dateTimeFormat = default; object dateTimeOffsetFormat = default; object timeSpanFormat = default; + object timeFormat = default; + object dateFormat = default; object culture = default; foreach (var property in element.EnumerateObject()) { @@ -110,6 +122,24 @@ internal static TypeConversionSettings DeserializeTypeConversionSettings(JsonEle timeSpanFormat = property.Value.GetObject(); continue; } + if (property.NameEquals("timeFormat"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + timeFormat = property.Value.GetObject(); + continue; + } + if (property.NameEquals("dateFormat"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dateFormat = property.Value.GetObject(); + continue; + } if (property.NameEquals("culture"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -126,6 +156,8 @@ internal static TypeConversionSettings DeserializeTypeConversionSettings(JsonEle dateTimeFormat, dateTimeOffsetFormat, timeSpanFormat, + timeFormat, + dateFormat, culture); } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.cs index b4696c54520c..a7d89ae5ef4f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.cs @@ -21,14 +21,18 @@ public TypeConversionSettings() /// The format for DateTime values. Type: string (or Expression with resultType string). /// The format for DateTimeOffset values. Type: string (or Expression with resultType string). /// The format for TimeSpan values. Type: string (or Expression with resultType string). + /// The format for Time values. Type: string (or Expression with resultType string). + /// The format for Date values. Type: string (or Expression with resultType string). /// The culture used to convert data from/to string. Type: string (or Expression with resultType string). - internal TypeConversionSettings(object allowDataTruncation, object treatBooleanAsNumber, object dateTimeFormat, object dateTimeOffsetFormat, object timeSpanFormat, object culture) + internal TypeConversionSettings(object allowDataTruncation, object treatBooleanAsNumber, object dateTimeFormat, object dateTimeOffsetFormat, object timeSpanFormat, object timeFormat, object dateFormat, object culture) { AllowDataTruncation = allowDataTruncation; TreatBooleanAsNumber = treatBooleanAsNumber; DateTimeFormat = dateTimeFormat; DateTimeOffsetFormat = dateTimeOffsetFormat; TimeSpanFormat = timeSpanFormat; + TimeFormat = timeFormat; + DateFormat = dateFormat; Culture = culture; } @@ -42,6 +46,10 @@ internal TypeConversionSettings(object allowDataTruncation, object treatBooleanA public object DateTimeOffsetFormat { get; set; } /// The format for TimeSpan values. Type: string (or Expression with resultType string). public object TimeSpanFormat { get; set; } + /// The format for Time values. Type: string (or Expression with resultType string). + public object TimeFormat { get; set; } + /// The format for Date values. Type: string (or Expression with resultType string). + public object DateFormat { get; set; } /// The culture used to convert data from/to string. Type: string (or Expression with resultType string). public object Culture { get; set; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ValueType.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ValueType.cs new file mode 100644 index 000000000000..131d00bb571a --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ValueType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// Type of value copied from source. + public readonly partial struct ValueType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ValueType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ActualValue = "actual"; + private const string DisplayValue = "display"; + + /// actual. + public static ValueType Actual { get; } = new ValueType(ActualValue); + /// display. + public static ValueType Display { get; } = new ValueType(DisplayValue); + /// Determines if two values are the same. + public static bool operator ==(ValueType left, ValueType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ValueType left, ValueType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ValueType(string value) => new ValueType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ValueType other && Equals(other); + /// + public bool Equals(ValueType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseAuthenticationType.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseAuthenticationType.cs new file mode 100644 index 000000000000..a25dde2269d6 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseAuthenticationType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// The authentication type to use. + public readonly partial struct WarehouseAuthenticationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public WarehouseAuthenticationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ServicePrincipalValue = "ServicePrincipal"; + private const string SystemAssignedManagedIdentityValue = "SystemAssignedManagedIdentity"; + private const string UserAssignedManagedIdentityValue = "UserAssignedManagedIdentity"; + + /// ServicePrincipal. + public static WarehouseAuthenticationType ServicePrincipal { get; } = new WarehouseAuthenticationType(ServicePrincipalValue); + /// SystemAssignedManagedIdentity. + public static WarehouseAuthenticationType SystemAssignedManagedIdentity { get; } = new WarehouseAuthenticationType(SystemAssignedManagedIdentityValue); + /// UserAssignedManagedIdentity. + public static WarehouseAuthenticationType UserAssignedManagedIdentity { get; } = new WarehouseAuthenticationType(UserAssignedManagedIdentityValue); + /// Determines if two values are the same. + public static bool operator ==(WarehouseAuthenticationType left, WarehouseAuthenticationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(WarehouseAuthenticationType left, WarehouseAuthenticationType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator WarehouseAuthenticationType(string value) => new WarehouseAuthenticationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is WarehouseAuthenticationType other && Equals(other); + /// + public bool Equals(WarehouseAuthenticationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseLinkedService.Serialization.cs index ff925d2c96c4..e0248a13a708 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseLinkedService.Serialization.cs @@ -73,6 +73,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("workspaceId"u8); writer.WriteObjectValue(WorkspaceId); } + if (Optional.IsDefined(AuthenticationType)) + { + writer.WritePropertyName("authenticationType"u8); + writer.WriteStringValue(AuthenticationType.Value.ToString()); + } if (Optional.IsDefined(ServicePrincipalId)) { writer.WritePropertyName("servicePrincipalId"u8); @@ -103,6 +108,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("servicePrincipalCredential"u8); writer.WriteObjectValue(ServicePrincipalCredential); } + if (Optional.IsDefined(Credential)) + { + writer.WritePropertyName("credential"u8); + writer.WriteObjectValue(Credential); + } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { @@ -127,12 +137,14 @@ internal static WarehouseLinkedService DeserializeWarehouseLinkedService(JsonEle object artifactId = default; object endpoint = default; object workspaceId = default; + WarehouseAuthenticationType? authenticationType = default; object servicePrincipalId = default; SecretBase servicePrincipalKey = default; object tenant = default; string encryptedCredential = default; object servicePrincipalCredentialType = default; SecretBase servicePrincipalCredential = default; + CredentialReference credential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -224,6 +236,15 @@ internal static WarehouseLinkedService DeserializeWarehouseLinkedService(JsonEle workspaceId = property0.Value.GetObject(); continue; } + if (property0.NameEquals("authenticationType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + authenticationType = new WarehouseAuthenticationType(property0.Value.GetString()); + continue; + } if (property0.NameEquals("servicePrincipalId"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -274,6 +295,15 @@ internal static WarehouseLinkedService DeserializeWarehouseLinkedService(JsonEle servicePrincipalCredential = SecretBase.DeserializeSecretBase(property0.Value); continue; } + if (property0.NameEquals("credential"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + credential = CredentialReference.DeserializeCredentialReference(property0.Value); + continue; + } } continue; } @@ -291,12 +321,14 @@ internal static WarehouseLinkedService DeserializeWarehouseLinkedService(JsonEle artifactId, endpoint, workspaceId, + authenticationType, servicePrincipalId, servicePrincipalKey, tenant, encryptedCredential, servicePrincipalCredentialType, - servicePrincipalCredential); + servicePrincipalCredential, + credential); } /// Deserializes the model from a raw response. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseLinkedService.cs index 000119e8c8b5..dbecd0dfb1b4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WarehouseLinkedService.cs @@ -38,6 +38,7 @@ public WarehouseLinkedService(object artifactId, object endpoint) /// The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression with resultType string). /// The endpoint of Microsoft Fabric Warehouse server. Type: string (or Expression with resultType string). /// The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). + /// The authentication type to use. /// The ID of the application used to authenticate against Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). /// /// The Key of the application used to authenticate against Microsoft Fabric Warehouse. @@ -52,17 +53,20 @@ public WarehouseLinkedService(object artifactId, object endpoint) /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - internal WarehouseLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object artifactId, object endpoint, object workspaceId, object servicePrincipalId, SecretBase servicePrincipalKey, object tenant, string encryptedCredential, object servicePrincipalCredentialType, SecretBase servicePrincipalCredential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) + /// The credential reference containing authentication information. + internal WarehouseLinkedService(string type, string version, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, object artifactId, object endpoint, object workspaceId, WarehouseAuthenticationType? authenticationType, object servicePrincipalId, SecretBase servicePrincipalKey, object tenant, string encryptedCredential, object servicePrincipalCredentialType, SecretBase servicePrincipalCredential, CredentialReference credential) : base(type, version, connectVia, description, parameters, annotations, additionalProperties) { ArtifactId = artifactId; Endpoint = endpoint; WorkspaceId = workspaceId; + AuthenticationType = authenticationType; ServicePrincipalId = servicePrincipalId; ServicePrincipalKey = servicePrincipalKey; Tenant = tenant; EncryptedCredential = encryptedCredential; ServicePrincipalCredentialType = servicePrincipalCredentialType; ServicePrincipalCredential = servicePrincipalCredential; + Credential = credential; Type = type ?? "Warehouse"; } @@ -72,6 +76,8 @@ internal WarehouseLinkedService(string type, string version, IntegrationRuntimeR public object Endpoint { get; set; } /// The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). public object WorkspaceId { get; set; } + /// The authentication type to use. + public WarehouseAuthenticationType? AuthenticationType { get; set; } /// The ID of the application used to authenticate against Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). public object ServicePrincipalId { get; set; } /// @@ -92,5 +98,7 @@ internal WarehouseLinkedService(string type, string version, IntegrationRuntimeR /// The available derived classes include and . /// public SecretBase ServicePrincipalCredential { get; set; } + /// The credential reference containing authentication information. + public CredentialReference Credential { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md index 1d7df60bff26..ae31f800baad 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md @@ -8,7 +8,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml tag: package-artifacts-composite-v7 require: - - https://github.com/Azure/azure-rest-api-specs/blob/0da14ec4f475435b9d7d0ba06e49f05a5daac226/specification/synapse/data-plane/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/222af3670e36c5083cb0dc8a9c2677a8f77f8958/specification/synapse/data-plane/readme.md namespace: Azure.Analytics.Synapse.Artifacts generation1-convenience-client: true public-clients: true From e0adc5415a874098e28ec96e9b4f5257c2478ba3 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Tue, 2 Sep 2025 15:53:25 +0800 Subject: [PATCH 2/3] Update CHANGELOG.md to include new parameters and breaking changes for various models --- .../CHANGELOG.md | 54 ++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md index 51bdacf90696..c36426dfabe9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md @@ -3,9 +3,61 @@ ## 1.0.0-preview.22 (2025-09-05) ### Features Added +- Model ServiceNowV2ObjectDataset has a new parameter value_type +- Added Presto server linked service +- Model DynamicsSink has a new parameter bypass_business_logic_execution +- Model DynamicsSink has a new parameter bypass_power_automate_flows +- Model AzurePostgreSqlSink has a new parameter write_method +- Model AzurePostgreSqlSink has a new parameter upsert_settings +- Model SnowflakeV2LinkedService has a new parameter role +- Model SnowflakeV2LinkedService has a new parameter schema +- Model AzurePostgreSqlLinkedService has a new parameter service_principal_embedded_cert +- Model AzurePostgreSqlLinkedService has a new parameter service_principal_embedded_cert_password +- Model ODataLinkedService has a new parameter service_principal_embedded_cert +- Model ODataLinkedService has a new parameter service_principal_embedded_cert_password +- Model Office365LinkedService has a new parameter service_principal_embedded_cert +- Model Office365LinkedService has a new parameter service_principal_embedded_cert_password +- Model RestServiceLinkedService has a new parameter service_principal_embedded_cert +- Model RestServiceLinkedService has a new parameter service_principal_embedded_cert_password +- Model SharePointOnlineListLinkedService has a new parameter service_principal_embedded_cert +- Model SharePointOnlineListLinkedService has a new parameter service_principal_embedded_cert_password +- Model AzureDatabricksLinkedService has a new parameter data_security_mode +- Model AmazonRdsForOracleLinkedService has a new parameter server +- Model AmazonRdsForOracleLinkedService has a new parameter authentication_type +- Model AmazonRdsForOracleLinkedService has a new parameter username +- Model AmazonRdsForOracleLinkedService has a new parameter encryption_client +- Model AmazonRdsForOracleLinkedService has a new parameter encryption_types_client +- Model AmazonRdsForOracleLinkedService has a new parameter crypto_checksum_client +- Model AmazonRdsForOracleLinkedService has a new parameter crypto_checksum_types_client +- Model AmazonRdsForOracleLinkedService has a new parameter initial_lob_fetch_size +- Model AmazonRdsForOracleLinkedService has a new parameter fetch_size +- Model AmazonRdsForOracleLinkedService has a new parameter statement_cache_size +- Model AmazonRdsForOracleLinkedService has a new parameter initialization_string +- Model AmazonRdsForOracleLinkedService has a new parameter enable_bulk_load +- Model AmazonRdsForOracleLinkedService has a new parameter fetch_tswtz_as_timestamp +- Model AmazonRdsForOracleLinkedService has a new parameter support_v1_data_types +- Model FtpServerLinkedService has a new parameter enable_server_certificate_validation +- Model HiveLinkedService has a new parameter enable_server_certificate_validation +- Model HttpLinkedService has a new parameter enable_server_certificate_validation +- Model ImpalaLinkedService has a new parameter enable_server_certificate_validation +- Model RestServiceLinkedService has a new parameter enable_server_certificate_validation +- Model SparkLinkedService has a new parameter enable_server_certificate_validation +- Model QuickBooksLinkedService has a new parameter refresh_token +- Model AmazonRdsForOracleSource has a new parameter number_precision +- Model AmazonRdsForOracleSource has a new parameter number_scale +- Model OracleSource has a new parameter number_precision +- Model OracleSource has a new parameter number_scale +- Model LakeHouseLinkedService has a new parameter authentication_type +- Model LakeHouseLinkedService has a new parameter credential +- Model WarehouseLinkedService has a new parameter authentication_type +- Model WarehouseLinkedService has a new parameter credential +- Model HDInsightLinkedService has a new parameter cluster_auth_type +- Model HDInsightLinkedService has a new parameter credential ### Breaking Changes - +- Model OracleLinkedService parameter connection_string now is not required +- Model GreenplumLinkedService remove parameter password +- Model ExpressionV2 parameter value change its type from string to object ### Bugs Fixed ### Other Changes From ef90d1b6a00dc571d1ff91aaa7a93698069f1621 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Tue, 2 Sep 2025 16:22:05 +0800 Subject: [PATCH 3/3] remove empty section --- sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md index c36426dfabe9..b62c319ea4e4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md @@ -58,9 +58,6 @@ - Model OracleLinkedService parameter connection_string now is not required - Model GreenplumLinkedService remove parameter password - Model ExpressionV2 parameter value change its type from string to object -### Bugs Fixed - -### Other Changes ## 1.0.0-preview.21 (2025-03-07)