diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/api/Azure.ResourceManager.Synapse.netstandard2.0.cs b/sdk/synapse/Azure.ResourceManager.Synapse/api/Azure.ResourceManager.Synapse.netstandard2.0.cs index 742ca3694ded..eccb6c8c7015 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/api/Azure.ResourceManager.Synapse.netstandard2.0.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/api/Azure.ResourceManager.Synapse.netstandard2.0.cs @@ -1013,7 +1013,7 @@ public SynapseLibraryData() { } public string Path { get { throw null; } set { } } public string ProvisioningStatus { get { throw null; } } public string TypePropertiesType { get { throw null; } set { } } - public System.DateTimeOffset? UploadedOn { get { throw null; } set { } } + public System.DateTimeOffset? UploadedOn { get { throw null; } } Azure.ResourceManager.Synapse.SynapseLibraryData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Synapse.SynapseLibraryData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1892,8 +1892,6 @@ protected SynapseSqlPoolResource() { } public virtual System.Threading.Tasks.Task> PauseAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Rename(Azure.ResourceManager.Synapse.Models.SynapseResourceMoveDefinition synapseResourceMoveDefinition, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RenameAsync(Azure.ResourceManager.Synapse.Models.SynapseResourceMoveDefinition synapseResourceMoveDefinition, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Resume(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ResumeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -2346,10 +2344,10 @@ public partial class SynapseWorkspaceData : Azure.ResourceManager.Models.Tracked { public SynapseWorkspaceData(Azure.Core.AzureLocation location) { } public Azure.Core.ResourceIdentifier AdlaResourceId { get { throw null; } } - public System.Collections.Generic.IDictionary ConnectivityEndpoints { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary ConnectivityEndpoints { get { throw null; } } public Azure.ResourceManager.Synapse.Models.SynapseDataLakeStorageAccountDetails DefaultDataLakeStorage { get { throw null; } set { } } public Azure.ResourceManager.Synapse.Models.SynapseEncryptionDetails Encryption { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyDictionary ExtraProperties { get { throw null; } } + public System.BinaryData ExtraProperties { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public System.Guid? InitialWorkspaceAdminObjectId { get { throw null; } set { } } public bool? IsAadOnlyAuthenticationEnabled { get { throw null; } set { } } @@ -2685,7 +2683,9 @@ public static partial class ArmSynapseModelFactory public static Azure.ResourceManager.Synapse.SynapseRestorableDroppedSqlPoolData SynapseRestorableDroppedSqlPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string databaseName = null, string edition = null, string maxSizeBytes = null, string serviceLevelObjective = null, string elasticPoolName = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?), System.DateTimeOffset? earliestRestoreOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Synapse.SynapseRestorePointData SynapseRestorePointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Synapse.Models.SynapseRestorePointType? restorePointType = default(Azure.ResourceManager.Synapse.Models.SynapseRestorePointType?), System.DateTimeOffset? earliestRestoreOn = default(System.DateTimeOffset?), System.DateTimeOffset? restorePointCreationOn = default(System.DateTimeOffset?), string restorePointLabel = null) { throw null; } public static Azure.ResourceManager.Synapse.Models.SynapseSelfHostedIntegrationRuntimeNode SynapseSelfHostedIntegrationRuntimeNode(string nodeName = null, string machineName = null, System.Uri hostServiceUri = null, Azure.ResourceManager.Synapse.Models.SynapseSelfHostedIntegrationRuntimeNodeStatus? status = default(Azure.ResourceManager.Synapse.Models.SynapseSelfHostedIntegrationRuntimeNodeStatus?), System.Collections.Generic.IReadOnlyDictionary capabilities = null, string versionStatus = null, string version = null, System.DateTimeOffset? registerOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastConnectedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStopOn = default(System.DateTimeOffset?), Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeUpdateResult? lastUpdateResult = default(Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeUpdateResult?), System.DateTimeOffset? lastStartUpdateOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastEndUpdateOn = default(System.DateTimeOffset?), bool? isActiveDispatcher = default(bool?), int? concurrentJobsLimit = default(int?), int? maxConcurrentJobs = default(int?), System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } - public static Azure.ResourceManager.Synapse.Models.SynapseSelfHostedIntegrationRuntimeStatus SynapseSelfHostedIntegrationRuntimeStatus(string dataFactoryName = null, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeState? state = default(Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeState?), System.Collections.Generic.IReadOnlyDictionary additionalProperties = null, System.DateTimeOffset? createOn = default(System.DateTimeOffset?), string taskQueueId = null, string nodeCommunicationChannelEncryptionMode = null, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption = default(Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeInternalChannelEncryptionMode?), string version = null, System.Collections.Generic.IEnumerable nodes = null, System.DateTimeOffset? scheduledUpdateOn = default(System.DateTimeOffset?), string updateDelayOffset = null, string localTimeZoneOffset = null, System.Collections.Generic.IReadOnlyDictionary capabilities = null, System.Collections.Generic.IEnumerable serviceUrls = null, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeAutoUpdate? autoUpdate = default(Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeAutoUpdate?), string versionStatus = null, System.Collections.Generic.IEnumerable links = null, string pushedVersion = null, string latestVersion = null, System.DateTimeOffset? autoUpdateEta = default(System.DateTimeOffset?), string serviceRegion = null, System.Collections.Generic.IEnumerable newerVersions = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Synapse.Models.SynapseSelfHostedIntegrationRuntimeStatus SynapseSelfHostedIntegrationRuntimeStatus(string dataFactoryName, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeState? state, System.Collections.Generic.IReadOnlyDictionary additionalProperties, System.DateTimeOffset? createOn, string taskQueueId, string nodeCommunicationChannelEncryptionMode, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption, string version, System.Collections.Generic.IEnumerable nodes, System.DateTimeOffset? scheduledUpdateOn, string updateDelayOffset, string localTimeZoneOffset, System.Collections.Generic.IReadOnlyDictionary capabilities, System.Collections.Generic.IEnumerable serviceUrls, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeAutoUpdate? autoUpdate, string versionStatus, System.Collections.Generic.IEnumerable links, string pushedVersion, string latestVersion, System.DateTimeOffset? autoUpdateEta, string serviceRegion, System.Collections.Generic.IEnumerable newerVersions) { throw null; } + public static Azure.ResourceManager.Synapse.Models.SynapseSelfHostedIntegrationRuntimeStatus SynapseSelfHostedIntegrationRuntimeStatus(string dataFactoryName = null, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeState? state = default(Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeState?), System.Collections.Generic.IReadOnlyDictionary additionalProperties = null, System.DateTimeOffset? createOn = default(System.DateTimeOffset?), string taskQueueId = null, string nodeCommunicationChannelEncryptionMode = null, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption = default(Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeInternalChannelEncryptionMode?), string version = null, System.Collections.Generic.IEnumerable nodes = null, System.DateTimeOffset? scheduledUpdateOn = default(System.DateTimeOffset?), string updateDelayOffset = null, string localTimeZoneOffset = null, System.Collections.Generic.IReadOnlyDictionary capabilities = null, System.Collections.Generic.IEnumerable serviceUrls = null, Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeAutoUpdate? autoUpdate = default(Azure.ResourceManager.Synapse.Models.SynapseIntegrationRuntimeAutoUpdate?), string versionStatus = null, System.Collections.Generic.IEnumerable links = null, string pushedVersion = null, string latestVersion = null, System.DateTimeOffset? autoUpdateEta = default(System.DateTimeOffset?), string serviceRegion = null, System.Collections.Generic.IEnumerable newerVersions = null, int? osType = default(int?), int? targetFramework = default(int?)) { throw null; } public static Azure.ResourceManager.Synapse.SynapseSensitivityLabelData SynapseSensitivityLabelData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string managedBy = null, string schemaName = null, string tableName = null, string columnName = null, string labelName = null, System.Guid? labelId = default(System.Guid?), string informationType = null, System.Guid? informationTypeId = default(System.Guid?), bool? isDisabled = default(bool?), Azure.ResourceManager.Synapse.Models.SynapseSensitivityLabelRank? rank = default(Azure.ResourceManager.Synapse.Models.SynapseSensitivityLabelRank?)) { throw null; } public static Azure.ResourceManager.Synapse.Models.SynapseSensitivityLabelUpdate SynapseSensitivityLabelUpdate(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Synapse.Models.SynapseSensitivityLabelUpdateKind? op = default(Azure.ResourceManager.Synapse.Models.SynapseSensitivityLabelUpdateKind?), string schema = null, string table = null, string column = null, Azure.ResourceManager.Synapse.SynapseSensitivityLabelData sensitivityLabel = null) { throw null; } public static Azure.ResourceManager.Synapse.SynapseServerBlobAuditingPolicyData SynapseServerBlobAuditingPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Synapse.Models.SynapseBlobAuditingPolicyState? state = default(Azure.ResourceManager.Synapse.Models.SynapseBlobAuditingPolicyState?), string storageEndpoint = null, string storageAccountAccessKey = null, int? retentionDays = default(int?), System.Collections.Generic.IEnumerable auditActionsAndGroups = null, System.Guid? storageAccountSubscriptionId = default(System.Guid?), bool? isStorageSecondaryKeyInUse = default(bool?), bool? isAzureMonitorTargetEnabled = default(bool?), int? queueDelayMs = default(int?), bool? isDevopsAuditEnabled = default(bool?)) { throw null; } @@ -2718,7 +2718,7 @@ public static partial class ArmSynapseModelFactory public static Azure.ResourceManager.Synapse.SynapseWorkloadClassifierData SynapseWorkloadClassifierData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string memberName = null, string label = null, string context = null, string startTime = null, string endTime = null, string importance = null) { throw null; } public static Azure.ResourceManager.Synapse.SynapseWorkloadGroupData SynapseWorkloadGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? minResourcePercent = default(int?), int? maxResourcePercent = default(int?), double? minResourcePercentPerRequest = default(double?), double? maxResourcePercentPerRequest = default(double?), string importance = null, int? queryExecutionTimeout = default(int?)) { throw null; } public static Azure.ResourceManager.Synapse.SynapseWorkspaceAadAdminInfoData SynapseWorkspaceAadAdminInfoData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? tenantId = default(System.Guid?), string login = null, string administratorType = null, string sid = null) { throw null; } - public static Azure.ResourceManager.Synapse.SynapseWorkspaceData SynapseWorkspaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Synapse.Models.SynapseDataLakeStorageAccountDetails defaultDataLakeStorage = null, string sqlAdministratorLoginPassword = null, string managedResourceGroupName = null, string provisioningState = null, string sqlAdministratorLogin = null, string virtualNetworkComputeSubnetId = null, System.Collections.Generic.IDictionary connectivityEndpoints = null, string managedVirtualNetwork = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Synapse.Models.SynapseEncryptionDetails encryption = null, System.Guid? workspaceUid = default(System.Guid?), System.Collections.Generic.IReadOnlyDictionary extraProperties = null, Azure.ResourceManager.Synapse.Models.SynapseManagedVirtualNetworkSettings managedVirtualNetworkSettings = null, Azure.ResourceManager.Synapse.Models.SynapseWorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = null, Azure.Core.ResourceIdentifier purviewResourceId = null, Azure.Core.ResourceIdentifier adlaResourceId = null, Azure.ResourceManager.Synapse.Models.WorkspacePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Synapse.Models.WorkspacePublicNetworkAccess?), System.Guid? initialWorkspaceAdminObjectId = default(System.Guid?), System.Collections.Generic.IReadOnlyDictionary settings = null, bool? isAadOnlyAuthenticationEnabled = default(bool?), bool? isTrustedServiceBypassEnabled = default(bool?)) { throw null; } + public static Azure.ResourceManager.Synapse.SynapseWorkspaceData SynapseWorkspaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Synapse.Models.SynapseDataLakeStorageAccountDetails defaultDataLakeStorage = null, string sqlAdministratorLoginPassword = null, string managedResourceGroupName = null, string provisioningState = null, string sqlAdministratorLogin = null, string virtualNetworkComputeSubnetId = null, System.Collections.Generic.IReadOnlyDictionary connectivityEndpoints = null, string managedVirtualNetwork = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Synapse.Models.SynapseEncryptionDetails encryption = null, System.Guid? workspaceUid = default(System.Guid?), System.BinaryData extraProperties = null, Azure.ResourceManager.Synapse.Models.SynapseManagedVirtualNetworkSettings managedVirtualNetworkSettings = null, Azure.ResourceManager.Synapse.Models.SynapseWorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = null, Azure.Core.ResourceIdentifier purviewResourceId = null, Azure.Core.ResourceIdentifier adlaResourceId = null, Azure.ResourceManager.Synapse.Models.WorkspacePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Synapse.Models.WorkspacePublicNetworkAccess?), System.Guid? initialWorkspaceAdminObjectId = default(System.Guid?), System.Collections.Generic.IReadOnlyDictionary settings = null, bool? isAadOnlyAuthenticationEnabled = default(bool?), bool? isTrustedServiceBypassEnabled = default(bool?)) { throw null; } public static Azure.ResourceManager.Synapse.Models.SynapseWorkspacePatch SynapseWorkspacePatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string sqlAdministratorLoginPassword = null, Azure.ResourceManager.Synapse.Models.SynapseManagedVirtualNetworkSettings managedVirtualNetworkSettings = null, Azure.ResourceManager.Synapse.Models.SynapseWorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = null, Azure.Core.ResourceIdentifier purviewResourceId = null, string provisioningState = null, Azure.ResourceManager.Synapse.Models.SynapseEncryptionDetails encryption = null, Azure.ResourceManager.Synapse.Models.WorkspacePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Synapse.Models.WorkspacePublicNetworkAccess?)) { throw null; } public static Azure.ResourceManager.Synapse.Models.WorkspaceCustomerManagedKeyDetails WorkspaceCustomerManagedKeyDetails(string status = null, Azure.ResourceManager.Synapse.Models.SynapseWorkspaceKeyDetails key = null, Azure.ResourceManager.Synapse.Models.KekIdentityProperties kekIdentity = null) { throw null; } } @@ -2754,7 +2754,7 @@ public BigDataPoolLibraryInfo() { } public string Name { get { throw null; } set { } } public string Path { get { throw null; } set { } } public string ProvisioningStatus { get { throw null; } } - public System.DateTimeOffset? UploadedOn { get { throw null; } set { } } + public System.DateTimeOffset? UploadedOn { get { throw null; } } Azure.ResourceManager.Synapse.Models.BigDataPoolLibraryInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Synapse.Models.BigDataPoolLibraryInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -4829,16 +4829,6 @@ public enum SynapseReplicationRole public static bool operator !=(Azure.ResourceManager.Synapse.Models.SynapseReplicationState left, Azure.ResourceManager.Synapse.Models.SynapseReplicationState right) { throw null; } public override string ToString() { throw null; } } - public partial class SynapseResourceMoveDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SynapseResourceMoveDefinition(Azure.Core.ResourceIdentifier id) { } - public Azure.Core.ResourceIdentifier Id { get { throw null; } } - Azure.ResourceManager.Synapse.Models.SynapseResourceMoveDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Synapse.Models.SynapseResourceMoveDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public enum SynapseRestorePointType { Continuous = 0, @@ -4944,10 +4934,12 @@ internal SynapseSelfHostedIntegrationRuntimeStatus() { } public System.Collections.Generic.IReadOnlyList NewerVersions { get { throw null; } } public string NodeCommunicationChannelEncryptionMode { get { throw null; } } public System.Collections.Generic.IReadOnlyList Nodes { get { throw null; } } + public int? OSType { get { throw null; } } public string PushedVersion { get { throw null; } } public System.DateTimeOffset? ScheduledUpdateOn { get { throw null; } } public string ServiceRegion { get { throw null; } } public System.Collections.Generic.IReadOnlyList ServiceUrls { get { throw null; } } + public int? TargetFramework { get { throw null; } } public string TaskQueueId { get { throw null; } } public string UpdateDelayOffset { get { throw null; } } public string Version { get { throw null; } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseBigDataPoolInfoCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseBigDataPoolInfoCollection.cs index 943d44c3a37c..39f872971138 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseBigDataPoolInfoCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseBigDataPoolInfoCollection.cs @@ -174,7 +174,7 @@ public async Task CreateOrUpdate_CreateOrUpdateABigDataPool() Content = "", Filename = "requirements.txt", }, - SparkVersion = "2.4", + SparkVersion = "3.3", DefaultSparkLogFolder = "/logs", NodeSize = BigDataPoolNodeSize.Medium, NodeSizeFamily = BigDataPoolNodeSizeFamily.MemoryOptimized, diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolResource.cs index d8e19305e93f..20a3ecfc8e3a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolResource.cs @@ -185,35 +185,6 @@ public async Task Resume_ResumeASQLAnalyticsPool() Console.WriteLine($"Succeeded: {result}"); } - // Rename a SQL Analytics pool - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Rename_RenameASQLAnalyticsPool() - { - // Generated from example definition: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RenameSqlPool.json - // this example is just showing the usage of "SqlPools_Rename" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SynapseSqlPoolResource created on azure - // for more information of creating SynapseSqlPoolResource, please refer to the document of SynapseSqlPoolResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "Default-SQL-SouthEastAsia"; - string workspaceName = "testsvr"; - string sqlPoolName = "testdb"; - ResourceIdentifier synapseSqlPoolResourceId = SynapseSqlPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, sqlPoolName); - SynapseSqlPoolResource synapseSqlPool = client.GetSynapseSqlPoolResource(synapseSqlPoolResourceId); - - // invoke the operation - SynapseResourceMoveDefinition synapseResourceMoveDefinition = new SynapseResourceMoveDefinition(new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/newtestdb")); - await synapseSqlPool.RenameAsync(synapseResourceMoveDefinition); - - Console.WriteLine($"Succeeded"); - } - // Creates Sql pool restore point. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/ArmSynapseModelFactory.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/ArmSynapseModelFactory.cs index 0ef64a2ffd30..39bc164eb181 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/ArmSynapseModelFactory.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/ArmSynapseModelFactory.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Net; using Azure; @@ -1219,12 +1220,11 @@ public static SynapseDedicatedSqlMinimalTlsSettingData SynapseDedicatedSqlMinima /// Enable or Disable AzureADOnlyAuthentication on All Workspace subresource. /// Is trustedServiceBypassEnabled for the workspace. /// A new instance for mocking. - public static SynapseWorkspaceData SynapseWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, SynapseDataLakeStorageAccountDetails defaultDataLakeStorage = null, string sqlAdministratorLoginPassword = null, string managedResourceGroupName = null, string provisioningState = null, string sqlAdministratorLogin = null, string virtualNetworkComputeSubnetId = null, IDictionary connectivityEndpoints = null, string managedVirtualNetwork = null, IEnumerable privateEndpointConnections = null, SynapseEncryptionDetails encryption = null, Guid? workspaceUid = null, IReadOnlyDictionary extraProperties = null, SynapseManagedVirtualNetworkSettings managedVirtualNetworkSettings = null, SynapseWorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = null, ResourceIdentifier purviewResourceId = null, ResourceIdentifier adlaResourceId = null, WorkspacePublicNetworkAccess? publicNetworkAccess = null, Guid? initialWorkspaceAdminObjectId = null, IReadOnlyDictionary settings = null, bool? isAadOnlyAuthenticationEnabled = null, bool? isTrustedServiceBypassEnabled = null) + public static SynapseWorkspaceData SynapseWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, SynapseDataLakeStorageAccountDetails defaultDataLakeStorage = null, string sqlAdministratorLoginPassword = null, string managedResourceGroupName = null, string provisioningState = null, string sqlAdministratorLogin = null, string virtualNetworkComputeSubnetId = null, IReadOnlyDictionary connectivityEndpoints = null, string managedVirtualNetwork = null, IEnumerable privateEndpointConnections = null, SynapseEncryptionDetails encryption = null, Guid? workspaceUid = null, BinaryData extraProperties = null, SynapseManagedVirtualNetworkSettings managedVirtualNetworkSettings = null, SynapseWorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = null, ResourceIdentifier purviewResourceId = null, ResourceIdentifier adlaResourceId = null, WorkspacePublicNetworkAccess? publicNetworkAccess = null, Guid? initialWorkspaceAdminObjectId = null, IReadOnlyDictionary settings = null, bool? isAadOnlyAuthenticationEnabled = null, bool? isTrustedServiceBypassEnabled = null) { tags ??= new Dictionary(); connectivityEndpoints ??= new Dictionary(); privateEndpointConnections ??= new List(); - extraProperties ??= new Dictionary(); settings ??= new Dictionary(); return new SynapseWorkspaceData(id, name, resourceType, systemData, tags, location, identity, defaultDataLakeStorage, sqlAdministratorLoginPassword, managedResourceGroupName, provisioningState, sqlAdministratorLogin, virtualNetworkComputeSubnetId != null ? new VirtualNetworkProfile(virtualNetworkComputeSubnetId, serializedAdditionalRawData: null) : null, connectivityEndpoints, managedVirtualNetwork, privateEndpointConnections?.ToList(), encryption, workspaceUid, extraProperties, managedVirtualNetworkSettings, workspaceRepositoryConfiguration, purviewResourceId != null ? new PurviewConfiguration(purviewResourceId, serializedAdditionalRawData: null) : null, adlaResourceId, publicNetworkAccess, initialWorkspaceAdminObjectId != null ? new CspWorkspaceAdminProperties(initialWorkspaceAdminObjectId, serializedAdditionalRawData: null) : null, settings, isAadOnlyAuthenticationEnabled, isTrustedServiceBypassEnabled, serializedAdditionalRawData: null); @@ -2005,8 +2005,10 @@ public static SynapseManagedIntegrationRuntimeOperationResult SynapseManagedInte /// The estimated time when the self-hosted integration runtime will be updated. /// The service region of the integration runtime. /// The newer versions on download center. + /// + /// /// A new instance for mocking. - public static SynapseSelfHostedIntegrationRuntimeStatus SynapseSelfHostedIntegrationRuntimeStatus(string dataFactoryName = null, SynapseIntegrationRuntimeState? state = null, IReadOnlyDictionary additionalProperties = null, DateTimeOffset? createOn = null, string taskQueueId = null, string nodeCommunicationChannelEncryptionMode = null, SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption = null, string version = null, IEnumerable nodes = null, DateTimeOffset? scheduledUpdateOn = null, string updateDelayOffset = null, string localTimeZoneOffset = null, IReadOnlyDictionary capabilities = null, IEnumerable serviceUrls = null, SynapseIntegrationRuntimeAutoUpdate? autoUpdate = null, string versionStatus = null, IEnumerable links = null, string pushedVersion = null, string latestVersion = null, DateTimeOffset? autoUpdateEta = null, string serviceRegion = null, IEnumerable newerVersions = null) + public static SynapseSelfHostedIntegrationRuntimeStatus SynapseSelfHostedIntegrationRuntimeStatus(string dataFactoryName = null, SynapseIntegrationRuntimeState? state = null, IReadOnlyDictionary additionalProperties = null, DateTimeOffset? createOn = null, string taskQueueId = null, string nodeCommunicationChannelEncryptionMode = null, SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption = null, string version = null, IEnumerable nodes = null, DateTimeOffset? scheduledUpdateOn = null, string updateDelayOffset = null, string localTimeZoneOffset = null, IReadOnlyDictionary capabilities = null, IEnumerable serviceUrls = null, SynapseIntegrationRuntimeAutoUpdate? autoUpdate = null, string versionStatus = null, IEnumerable links = null, string pushedVersion = null, string latestVersion = null, DateTimeOffset? autoUpdateEta = null, string serviceRegion = null, IEnumerable newerVersions = null, int? osType = null, int? targetFramework = null) { additionalProperties ??= new Dictionary(); nodes ??= new List(); @@ -2015,7 +2017,7 @@ public static SynapseSelfHostedIntegrationRuntimeStatus SynapseSelfHostedIntegra links ??= new List(); newerVersions ??= new List(); - return new SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType.SelfHosted, dataFactoryName, state, additionalProperties, createOn, taskQueueId, nodeCommunicationChannelEncryptionMode, internalChannelEncryption, version, nodes?.ToList(), scheduledUpdateOn, updateDelayOffset, localTimeZoneOffset, capabilities, serviceUrls?.ToList(), autoUpdate, versionStatus, links?.ToList(), pushedVersion, latestVersion, autoUpdateEta, serviceRegion, newerVersions?.ToList()); + return new SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType.SelfHosted, dataFactoryName, state, additionalProperties, createOn, taskQueueId, nodeCommunicationChannelEncryptionMode, internalChannelEncryption, version, nodes?.ToList(), scheduledUpdateOn, updateDelayOffset, localTimeZoneOffset, capabilities, serviceUrls?.ToList(), autoUpdate, versionStatus, links?.ToList(), pushedVersion, latestVersion, autoUpdateEta, serviceRegion, newerVersions?.ToList(), osType, targetFramework); } /// Initializes a new instance of . @@ -2232,5 +2234,35 @@ public static SynapseEventGridDataConnection SynapseEventGridDataConnection(Reso { return new SynapseEventGridDataConnection(id, name, resourceType, systemData, location, SynapseDataConnectionKind.EventGrid, serializedAdditionalRawData: null, storageAccountResourceId, eventHubResourceId, consumerGroup, tableName, mappingRuleName, dataFormat, ignoreFirstRecord, blobStorageEventType, provisioningState); } + + /// Initializes a new instance of . + /// The workspace name which the integration runtime belong to. + /// The state of integration runtime. + /// Additional Properties. + /// The time at which the integration runtime was created, in ISO8601 format. + /// The task queue id of the integration runtime. + /// The node communication Channel encryption mode. + /// It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration runtime nodes exist). + /// Version of the integration runtime. + /// The list of nodes for this integration runtime. + /// The date at which the integration runtime will be scheduled to update, in ISO8601 format. + /// The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours. + /// The local time zone offset in hours. + /// Object with additional information about integration runtime capabilities. + /// The URLs for the services used in integration runtime backend service. + /// Whether Self-hosted integration runtime auto update has been turned on. + /// Status of the integration runtime version. + /// The list of linked integration runtimes that are created to share with this integration runtime. + /// The version that the integration runtime is going to update to. + /// The latest version on download center. + /// The estimated time when the self-hosted integration runtime will be updated. + /// The service region of the integration runtime. + /// The newer versions on download center. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SynapseSelfHostedIntegrationRuntimeStatus SynapseSelfHostedIntegrationRuntimeStatus(string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createOn, string taskQueueId, string nodeCommunicationChannelEncryptionMode, SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption, string version, IEnumerable nodes, DateTimeOffset? scheduledUpdateOn, string updateDelayOffset, string localTimeZoneOffset, IReadOnlyDictionary capabilities, IEnumerable serviceUrls, SynapseIntegrationRuntimeAutoUpdate? autoUpdate, string versionStatus, IEnumerable links, string pushedVersion, string latestVersion, DateTimeOffset? autoUpdateEta, string serviceRegion, IEnumerable newerVersions) + { + return SynapseSelfHostedIntegrationRuntimeStatus(dataFactoryName: dataFactoryName, state: state, additionalProperties: additionalProperties, createOn: createOn, taskQueueId: taskQueueId, nodeCommunicationChannelEncryptionMode: nodeCommunicationChannelEncryptionMode, internalChannelEncryption: internalChannelEncryption, version: version, nodes: nodes, scheduledUpdateOn: scheduledUpdateOn, updateDelayOffset: updateDelayOffset, localTimeZoneOffset: localTimeZoneOffset, capabilities: capabilities, serviceUrls: serviceUrls, autoUpdate: autoUpdate, versionStatus: versionStatus, links: links, pushedVersion: pushedVersion, latestVersion: latestVersion, autoUpdateEta: autoUpdateEta, serviceRegion: serviceRegion, newerVersions: newerVersions, osType: default, targetFramework: default); + } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.Serialization.cs index aa26f7d8ee3d..91309081fade 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.Serialization.cs @@ -41,7 +41,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReader writer.WritePropertyName("containerName"u8); writer.WriteStringValue(ContainerName); } - if (Optional.IsDefined(UploadedOn)) + if (options.Format != "W" && Optional.IsDefined(UploadedOn)) { writer.WritePropertyName("uploadedTimestamp"u8); writer.WriteStringValue(UploadedOn.Value, "O"); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.cs index 9a71d28ecfe1..79da16608326 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.cs @@ -78,7 +78,7 @@ internal BigDataPoolLibraryInfo(string name, string path, string containerName, /// Storage blob container name. public string ContainerName { get; set; } /// The last update time of the library. - public DateTimeOffset? UploadedOn { get; set; } + public DateTimeOffset? UploadedOn { get; } /// Type of the library. public string LibraryInfoType { get; set; } /// Provisioning status of the library/package. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLibraryData.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLibraryData.Serialization.cs index 7afb6f04ec22..d762ae9c9103 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLibraryData.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLibraryData.Serialization.cs @@ -70,7 +70,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("containerName"u8); writer.WriteStringValue(ContainerName); } - if (Optional.IsDefined(UploadedOn)) + if (options.Format != "W" && Optional.IsDefined(UploadedOn)) { writer.WritePropertyName("uploadedTimestamp"u8); writer.WriteStringValue(UploadedOn.Value, "O"); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseResourceMoveDefinition.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseResourceMoveDefinition.Serialization.cs deleted file mode 100644 index 5542739a05a9..000000000000 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseResourceMoveDefinition.Serialization.cs +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.Synapse.Models -{ - public partial class SynapseResourceMoveDefinition : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, new ModelReaderWriterOptions("W")); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(SynapseResourceMoveDefinition)} does not support '{format}' format."); - } - - writer.WriteStartObject(); - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - writer.WriteEndObject(); - } - - SynapseResourceMoveDefinition IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(SynapseResourceMoveDefinition)} does not support '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSynapseResourceMoveDefinition(document.RootElement, options); - } - - internal static SynapseResourceMoveDefinition DeserializeSynapseResourceMoveDefinition(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= new ModelReaderWriterOptions("W"); - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier id = default; - IDictionary serializedAdditionalRawData = default; - Dictionary additionalPropertiesDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = additionalPropertiesDictionary; - return new SynapseResourceMoveDefinition(id, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(SynapseResourceMoveDefinition)} does not support '{options.Format}' format."); - } - } - - SynapseResourceMoveDefinition IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeSynapseResourceMoveDefinition(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(SynapseResourceMoveDefinition)} does not support '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseResourceMoveDefinition.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseResourceMoveDefinition.cs deleted file mode 100644 index eabf80e4af11..000000000000 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseResourceMoveDefinition.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.Synapse.Models -{ - /// Contains the information necessary to perform a resource move (rename). - public partial class SynapseResourceMoveDefinition - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// The target ID for the resource. - /// is null. - public SynapseResourceMoveDefinition(ResourceIdentifier id) - { - Argument.AssertNotNull(id, nameof(id)); - - Id = id; - } - - /// Initializes a new instance of . - /// The target ID for the resource. - /// Keeps track of any properties unknown to the library. - internal SynapseResourceMoveDefinition(ResourceIdentifier id, IDictionary serializedAdditionalRawData) - { - Id = id; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal SynapseResourceMoveDefinition() - { - } - - /// The target ID for the resource. - public ResourceIdentifier Id { get; } - } -} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.Serialization.cs index 1ac71e3ef2af..0258678b3e46 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.Serialization.cs @@ -161,6 +161,16 @@ void IJsonModel.Write(Utf8JsonWriter } writer.WriteEndArray(); } + if (options.Format != "W" && Optional.IsDefined(OSType)) + { + writer.WritePropertyName("osType"u8); + writer.WriteNumberValue(OSType.Value); + } + if (options.Format != "W" && Optional.IsDefined(TargetFramework)) + { + writer.WritePropertyName("targetFramework"u8); + writer.WriteNumberValue(TargetFramework.Value); + } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { @@ -219,6 +229,8 @@ internal static SynapseSelfHostedIntegrationRuntimeStatus DeserializeSynapseSelf Optional autoUpdateEta = default; Optional serviceRegion = default; Optional> newerVersions = default; + Optional osType = default; + Optional targetFramework = default; IReadOnlyDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -411,13 +423,31 @@ internal static SynapseSelfHostedIntegrationRuntimeStatus DeserializeSynapseSelf newerVersions = array; continue; } + if (property0.NameEquals("osType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + osType = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("targetFramework"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + targetFramework = property0.Value.GetInt32(); + continue; + } } continue; } additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new SynapseSelfHostedIntegrationRuntimeStatus(type, dataFactoryName.Value, Optional.ToNullable(state), additionalProperties, Optional.ToNullable(createTime), taskQueueId.Value, nodeCommunicationChannelEncryptionMode.Value, Optional.ToNullable(internalChannelEncryption), version.Value, Optional.ToList(nodes), Optional.ToNullable(scheduledUpdateDate), updateDelayOffset.Value, localTimeZoneOffset.Value, Optional.ToDictionary(capabilities), Optional.ToList(serviceUrls), Optional.ToNullable(autoUpdate), versionStatus.Value, Optional.ToList(links), pushedVersion.Value, latestVersion.Value, Optional.ToNullable(autoUpdateEta), serviceRegion.Value, Optional.ToList(newerVersions)); + return new SynapseSelfHostedIntegrationRuntimeStatus(type, dataFactoryName.Value, Optional.ToNullable(state), additionalProperties, Optional.ToNullable(createTime), taskQueueId.Value, nodeCommunicationChannelEncryptionMode.Value, Optional.ToNullable(internalChannelEncryption), version.Value, Optional.ToList(nodes), Optional.ToNullable(scheduledUpdateDate), updateDelayOffset.Value, localTimeZoneOffset.Value, Optional.ToDictionary(capabilities), Optional.ToList(serviceUrls), Optional.ToNullable(autoUpdate), versionStatus.Value, Optional.ToList(links), pushedVersion.Value, latestVersion.Value, Optional.ToNullable(autoUpdateEta), serviceRegion.Value, Optional.ToList(newerVersions), Optional.ToNullable(osType), Optional.ToNullable(targetFramework)); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs index 6341c8d5dbf8..3e3632950226 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs @@ -49,7 +49,9 @@ internal SynapseSelfHostedIntegrationRuntimeStatus() /// The estimated time when the self-hosted integration runtime will be updated. /// The service region of the integration runtime. /// The newer versions on download center. - internal SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createOn, string taskQueueId, string nodeCommunicationChannelEncryptionMode, SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption, string version, IReadOnlyList nodes, DateTimeOffset? scheduledUpdateOn, string updateDelayOffset, string localTimeZoneOffset, IReadOnlyDictionary capabilities, IReadOnlyList serviceUrls, SynapseIntegrationRuntimeAutoUpdate? autoUpdate, string versionStatus, IReadOnlyList links, string pushedVersion, string latestVersion, DateTimeOffset? autoUpdateEta, string serviceRegion, IReadOnlyList newerVersions) : base(runtimeType, dataFactoryName, state, additionalProperties) + /// + /// + internal SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createOn, string taskQueueId, string nodeCommunicationChannelEncryptionMode, SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption, string version, IReadOnlyList nodes, DateTimeOffset? scheduledUpdateOn, string updateDelayOffset, string localTimeZoneOffset, IReadOnlyDictionary capabilities, IReadOnlyList serviceUrls, SynapseIntegrationRuntimeAutoUpdate? autoUpdate, string versionStatus, IReadOnlyList links, string pushedVersion, string latestVersion, DateTimeOffset? autoUpdateEta, string serviceRegion, IReadOnlyList newerVersions, int? osType, int? targetFramework) : base(runtimeType, dataFactoryName, state, additionalProperties) { CreateOn = createOn; TaskQueueId = taskQueueId; @@ -70,6 +72,8 @@ internal SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtim AutoUpdateEta = autoUpdateEta; ServiceRegion = serviceRegion; NewerVersions = newerVersions; + OSType = osType; + TargetFramework = targetFramework; RuntimeType = runtimeType; } @@ -111,5 +115,9 @@ internal SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtim public string ServiceRegion { get; } /// The newer versions on download center. public IReadOnlyList NewerVersions { get; } + /// Gets the os type. + public int? OSType { get; } + /// Gets the target framework. + public int? TargetFramework { get; } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceData.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceData.Serialization.cs index a8e408eac1df..e4dfc68d950b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceData.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceData.Serialization.cs @@ -99,7 +99,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr writer.WritePropertyName("virtualNetworkProfile"u8); writer.WriteObjectValue(VirtualNetworkProfile); } - if (Optional.IsCollectionDefined(ConnectivityEndpoints)) + if (options.Format != "W" && Optional.IsCollectionDefined(ConnectivityEndpoints)) { writer.WritePropertyName("connectivityEndpoints"u8); writer.WriteStartObject(); @@ -135,28 +135,17 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr writer.WritePropertyName("workspaceUID"u8); writer.WriteStringValue(WorkspaceUid.Value); } - if (options.Format != "W" && Optional.IsCollectionDefined(ExtraProperties)) + if (options.Format != "W" && Optional.IsDefined(ExtraProperties)) { writer.WritePropertyName("extraProperties"u8); - writer.WriteStartObject(); - foreach (var item in ExtraProperties) - { - writer.WritePropertyName(item.Key); - if (item.Value == null) - { - writer.WriteNullValue(); - continue; - } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(ExtraProperties); #else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif + using (JsonDocument document = JsonDocument.Parse(ExtraProperties)) + { + JsonSerializer.Serialize(writer, document.RootElement); } - writer.WriteEndObject(); +#endif } if (Optional.IsDefined(ManagedVirtualNetworkSettings)) { @@ -273,12 +262,12 @@ internal static SynapseWorkspaceData DeserializeSynapseWorkspaceData(JsonElement Optional provisioningState = default; Optional sqlAdministratorLogin = default; Optional virtualNetworkProfile = default; - Optional> connectivityEndpoints = default; + Optional> connectivityEndpoints = default; Optional managedVirtualNetwork = default; Optional> privateEndpointConnections = default; Optional encryption = default; Optional workspaceUID = default; - Optional> extraProperties = default; + Optional extraProperties = default; Optional managedVirtualNetworkSettings = default; Optional workspaceRepositoryConfiguration = default; Optional purviewConfiguration = default; @@ -449,19 +438,7 @@ internal static SynapseWorkspaceData DeserializeSynapseWorkspaceData(JsonElement { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property1 in property0.Value.EnumerateObject()) - { - if (property1.Value.ValueKind == JsonValueKind.Null) - { - dictionary.Add(property1.Name, null); - } - else - { - dictionary.Add(property1.Name, BinaryData.FromString(property1.Value.GetRawText())); - } - } - extraProperties = dictionary; + extraProperties = BinaryData.FromString(property0.Value.GetRawText()); continue; } if (property0.NameEquals("managedVirtualNetworkSettings"u8)) @@ -566,7 +543,7 @@ internal static SynapseWorkspaceData DeserializeSynapseWorkspaceData(JsonElement } } serializedAdditionalRawData = additionalPropertiesDictionary; - return new SynapseWorkspaceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, defaultDataLakeStorage.Value, sqlAdministratorLoginPassword.Value, managedResourceGroupName.Value, provisioningState.Value, sqlAdministratorLogin.Value, virtualNetworkProfile.Value, Optional.ToDictionary(connectivityEndpoints), managedVirtualNetwork.Value, Optional.ToList(privateEndpointConnections), encryption.Value, Optional.ToNullable(workspaceUID), Optional.ToDictionary(extraProperties), managedVirtualNetworkSettings.Value, workspaceRepositoryConfiguration.Value, purviewConfiguration.Value, adlaResourceId.Value, Optional.ToNullable(publicNetworkAccess), cspWorkspaceAdminProperties.Value, Optional.ToDictionary(settings), Optional.ToNullable(azureADOnlyAuthentication), Optional.ToNullable(trustedServiceBypassEnabled), serializedAdditionalRawData); + return new SynapseWorkspaceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, defaultDataLakeStorage.Value, sqlAdministratorLoginPassword.Value, managedResourceGroupName.Value, provisioningState.Value, sqlAdministratorLogin.Value, virtualNetworkProfile.Value, Optional.ToDictionary(connectivityEndpoints), managedVirtualNetwork.Value, Optional.ToList(privateEndpointConnections), encryption.Value, Optional.ToNullable(workspaceUID), extraProperties.Value, managedVirtualNetworkSettings.Value, workspaceRepositoryConfiguration.Value, purviewConfiguration.Value, adlaResourceId.Value, Optional.ToNullable(publicNetworkAccess), cspWorkspaceAdminProperties.Value, Optional.ToDictionary(settings), Optional.ToNullable(azureADOnlyAuthentication), Optional.ToNullable(trustedServiceBypassEnabled), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceRepositoryConfiguration.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceRepositoryConfiguration.cs index 05322d6ae24c..cba1db69c750 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceRepositoryConfiguration.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceRepositoryConfiguration.cs @@ -52,7 +52,7 @@ public SynapseWorkspaceRepositoryConfiguration() /// Initializes a new instance of . /// Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration. - /// GitHub Enterprise host name. For example: https://github.mydomain.com. + /// GitHub Enterprise host name. For example: `https://github.mydomain.com`. /// Account name. /// VSTS project name. /// Repository name. @@ -77,7 +77,7 @@ internal SynapseWorkspaceRepositoryConfiguration(string workspaceRepositoryConfi /// Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration. public string WorkspaceRepositoryConfigurationType { get; set; } - /// GitHub Enterprise host name. For example: https://github.mydomain.com. + /// GitHub Enterprise host name. For example: `https://github.mydomain.com`. public string HostName { get; set; } /// Account name. public string AccountName { get; set; } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolsRestOperations.cs index 67632d61eb65..c6117d0b7cc3 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolsRestOperations.cs @@ -604,88 +604,6 @@ public Response Resume(string subscriptionId, string resourceGroupName, string w } } - internal HttpMessage CreateRenameRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseResourceMoveDefinition synapseResourceMoveDefinition) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); - uri.AppendPath(workspaceName, true); - uri.AppendPath("/sqlPools/", false); - uri.AppendPath(sqlPoolName, true); - uri.AppendPath("/move", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(synapseResourceMoveDefinition); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Rename a SQL pool. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the workspace. - /// SQL pool name. - /// The resource move definition for renaming this Sql pool. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task RenameAsync(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseResourceMoveDefinition synapseResourceMoveDefinition, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - Argument.AssertNotNullOrEmpty(sqlPoolName, nameof(sqlPoolName)); - Argument.AssertNotNull(synapseResourceMoveDefinition, nameof(synapseResourceMoveDefinition)); - - using var message = CreateRenameRequest(subscriptionId, resourceGroupName, workspaceName, sqlPoolName, synapseResourceMoveDefinition); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Rename a SQL pool. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the workspace. - /// SQL pool name. - /// The resource move definition for renaming this Sql pool. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Rename(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseResourceMoveDefinition synapseResourceMoveDefinition, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); - Argument.AssertNotNullOrEmpty(sqlPoolName, nameof(sqlPoolName)); - Argument.AssertNotNull(synapseResourceMoveDefinition, nameof(synapseResourceMoveDefinition)); - - using var message = CreateRenameRequest(subscriptionId, resourceGroupName, workspaceName, sqlPoolName, synapseResourceMoveDefinition); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseLibraryData.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseLibraryData.cs index 1a1a96e3f4b8..3a3604613150 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseLibraryData.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseLibraryData.cs @@ -90,7 +90,7 @@ internal SynapseLibraryData(ResourceIdentifier id, string name, ResourceType res /// Storage blob container name. public string ContainerName { get; set; } /// The last update time of the library. - public DateTimeOffset? UploadedOn { get; set; } + public DateTimeOffset? UploadedOn { get; } /// Type of the library. public string TypePropertiesType { get; set; } /// Provisioning status of the library/package. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapsePrivateLinkHubResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapsePrivateLinkHubResource.cs index 76f188d13f45..3bbe30a5c195 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapsePrivateLinkHubResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapsePrivateLinkHubResource.cs @@ -340,7 +340,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _synapsePrivateLinkHubPrivateLinkHubsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(_synapsePrivateLinkHubPrivateLinkHubsClientDiagnostics, Pipeline, _synapsePrivateLinkHubPrivateLinkHubsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new SynapseArmOperation(_synapsePrivateLinkHubPrivateLinkHubsClientDiagnostics, Pipeline, _synapsePrivateLinkHubPrivateLinkHubsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -382,7 +382,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _synapsePrivateLinkHubPrivateLinkHubsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new SynapseArmOperation(_synapsePrivateLinkHubPrivateLinkHubsClientDiagnostics, Pipeline, _synapsePrivateLinkHubPrivateLinkHubsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new SynapseArmOperation(_synapsePrivateLinkHubPrivateLinkHubsClientDiagnostics, Pipeline, _synapsePrivateLinkHubPrivateLinkHubsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs index 65d4358443a8..9bd5cd5f61ff 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs @@ -1243,90 +1243,6 @@ public virtual ArmOperation Resume(WaitUntil waitUntil, Cancellation } } - /// - /// Rename a SQL pool. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/move - /// - /// - /// Operation Id - /// SqlPools_Rename - /// - /// - /// Default Api Version - /// 2021-06-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The resource move definition for renaming this Sql pool. - /// The cancellation token to use. - /// is null. - public virtual async Task RenameAsync(SynapseResourceMoveDefinition synapseResourceMoveDefinition, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(synapseResourceMoveDefinition, nameof(synapseResourceMoveDefinition)); - - using var scope = _synapseSqlPoolSqlPoolsClientDiagnostics.CreateScope("SynapseSqlPoolResource.Rename"); - scope.Start(); - try - { - var response = await _synapseSqlPoolSqlPoolsRestClient.RenameAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, synapseResourceMoveDefinition, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Rename a SQL pool. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/move - /// - /// - /// Operation Id - /// SqlPools_Rename - /// - /// - /// Default Api Version - /// 2021-06-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The resource move definition for renaming this Sql pool. - /// The cancellation token to use. - /// is null. - public virtual Response Rename(SynapseResourceMoveDefinition synapseResourceMoveDefinition, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(synapseResourceMoveDefinition, nameof(synapseResourceMoveDefinition)); - - using var scope = _synapseSqlPoolSqlPoolsClientDiagnostics.CreateScope("SynapseSqlPoolResource.Rename"); - scope.Start(); - try - { - var response = _synapseSqlPoolSqlPoolsRestClient.Rename(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, synapseResourceMoveDefinition, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Creates a restore point for a data warehouse. /// diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceData.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceData.cs index f3e6287a1560..8d72c5036021 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceData.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceData.cs @@ -57,7 +57,6 @@ public SynapseWorkspaceData(AzureLocation location) : base(location) { ConnectivityEndpoints = new ChangeTrackingDictionary(); PrivateEndpointConnections = new ChangeTrackingList(); - ExtraProperties = new ChangeTrackingDictionary(); Settings = new ChangeTrackingDictionary(); } @@ -91,7 +90,7 @@ public SynapseWorkspaceData(AzureLocation location) : base(location) /// Enable or Disable AzureADOnlyAuthentication on All Workspace subresource. /// Is trustedServiceBypassEnabled for the workspace. /// Keeps track of any properties unknown to the library. - internal SynapseWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, SynapseDataLakeStorageAccountDetails defaultDataLakeStorage, string sqlAdministratorLoginPassword, string managedResourceGroupName, string provisioningState, string sqlAdministratorLogin, VirtualNetworkProfile virtualNetworkProfile, IDictionary connectivityEndpoints, string managedVirtualNetwork, IList privateEndpointConnections, SynapseEncryptionDetails encryption, Guid? workspaceUid, IReadOnlyDictionary extraProperties, SynapseManagedVirtualNetworkSettings managedVirtualNetworkSettings, SynapseWorkspaceRepositoryConfiguration workspaceRepositoryConfiguration, PurviewConfiguration purviewConfiguration, ResourceIdentifier adlaResourceId, WorkspacePublicNetworkAccess? publicNetworkAccess, CspWorkspaceAdminProperties cspWorkspaceAdminProperties, IReadOnlyDictionary settings, bool? isAadOnlyAuthenticationEnabled, bool? isTrustedServiceBypassEnabled, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal SynapseWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, SynapseDataLakeStorageAccountDetails defaultDataLakeStorage, string sqlAdministratorLoginPassword, string managedResourceGroupName, string provisioningState, string sqlAdministratorLogin, VirtualNetworkProfile virtualNetworkProfile, IReadOnlyDictionary connectivityEndpoints, string managedVirtualNetwork, IList privateEndpointConnections, SynapseEncryptionDetails encryption, Guid? workspaceUid, BinaryData extraProperties, SynapseManagedVirtualNetworkSettings managedVirtualNetworkSettings, SynapseWorkspaceRepositoryConfiguration workspaceRepositoryConfiguration, PurviewConfiguration purviewConfiguration, ResourceIdentifier adlaResourceId, WorkspacePublicNetworkAccess? publicNetworkAccess, CspWorkspaceAdminProperties cspWorkspaceAdminProperties, IReadOnlyDictionary settings, bool? isAadOnlyAuthenticationEnabled, bool? isTrustedServiceBypassEnabled, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; DefaultDataLakeStorage = defaultDataLakeStorage; @@ -150,7 +149,7 @@ public string VirtualNetworkComputeSubnetId } /// Connectivity endpoints. - public IDictionary ConnectivityEndpoints { get; } + public IReadOnlyDictionary ConnectivityEndpoints { get; } /// Setting this to 'default' will ensure that all compute for this workspace is in a virtual network managed on behalf of the user. public string ManagedVirtualNetwork { get; set; } /// Private endpoint connections to the workspace. @@ -162,7 +161,7 @@ public string VirtualNetworkComputeSubnetId /// /// Workspace level configs and feature flags /// - /// To assign an object to the value of this property use . + /// To assign an object to this property use . /// /// /// To assign an already formatted json string to this property use . @@ -189,7 +188,7 @@ public string VirtualNetworkComputeSubnetId /// /// /// - public IReadOnlyDictionary ExtraProperties { get; } + public BinaryData ExtraProperties { get; } /// Managed Virtual Network Settings. public SynapseManagedVirtualNetworkSettings ManagedVirtualNetworkSettings { get; set; } /// Git integration settings. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md b/sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md index 29aaba2b452c..f6665bc7bda1 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md @@ -9,7 +9,7 @@ csharp: true library-name: Synapse namespace: Azure.ResourceManager.Synapse # The readme.md in swagger repo contains invalid setting for C# sdk -# require: https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/readme.md +# require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/synapse/resource-manager/readme.md tag: package-composite-v2 output-folder: $(this-folder)/Generated clear-output-folder: true @@ -546,20 +546,20 @@ These settings apply only when --tag=package-composite-v2 is specified on the co ```yaml $(tag) == 'package-composite-v2' input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/azureADOnlyAuthentication.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/checkNameAvailability.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/firewallRule.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/keys.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/operations.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateEndpointConnections.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateLinkResources.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privatelinkhub.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/bigDataPool.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/library.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/integrationRuntime.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json - - https://github.com/Azure/azure-rest-api-specs/blob/340d577969b7bff5ad0488d79543314bc17daa50/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/azureADOnlyAuthentication.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/checkNameAvailability.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/firewallRule.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/keys.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/operations.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateEndpointConnections.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateLinkResources.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privatelinkhub.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/bigDataPool.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/library.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/integrationRuntime.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json + - https://github.com/Azure/azure-rest-api-specs/blob/5f0d3910b11e32ab14a5d2a30eccac0cf32cfe70/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json ```