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 51c4b014bba5a..26b6bab030219 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 @@ -94,7 +94,7 @@ public partial class SynapseBigDataPoolInfoData : Azure.ResourceManager.Models.T public SynapseBigDataPoolInfoData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ResourceManager.Synapse.Models.BigDataPoolAutoPauseProperties AutoPause { get { throw null; } set { } } public Azure.ResourceManager.Synapse.Models.BigDataPoolAutoScaleProperties AutoScale { get { throw null; } set { } } - public int? CacheSize { get { throw null; } set { } } + public int? CacheSize { get { throw null; } } public System.DateTimeOffset? CreatedOn { get { throw null; } } public System.Collections.Generic.IList CustomLibraries { get { throw null; } } public string DefaultSparkLogFolder { get { throw null; } set { } } @@ -882,7 +882,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; } } } public partial class SynapseLibraryResource : Azure.ResourceManager.ArmResource { @@ -1381,7 +1381,7 @@ protected SynapseServerVulnerabilityAssessmentCollection() { } public partial class SynapseServerVulnerabilityAssessmentData : Azure.ResourceManager.Models.ResourceData { public SynapseServerVulnerabilityAssessmentData() { } - public Azure.ResourceManager.Synapse.Models.SynapseVulnerabilityAssessmentRecurringScansProperties RecurringScans { get { throw null; } set { } } + public Azure.ResourceManager.Synapse.Models.VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated RecurringScans { get { throw null; } set { } } public string StorageAccountAccessKey { get { throw null; } set { } } public string StorageContainerPath { get { throw null; } set { } } public string StorageContainerSasKey { get { throw null; } set { } } @@ -2003,10 +2003,10 @@ public partial class SynapseWorkspaceData : Azure.ResourceManager.Models.Tracked { public SynapseWorkspaceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } 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 { } } @@ -2190,7 +2190,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; } } } public partial class BigDataPoolLibraryRequirements { @@ -3930,10 +3930,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; } } @@ -4279,6 +4281,13 @@ public partial class UpdateIntegrationRuntimeNodeContent public UpdateIntegrationRuntimeNodeContent() { } public int? ConcurrentJobsLimit { get { throw null; } set { } } } + public partial class VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated + { + public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated() { } + public System.Collections.Generic.IList Emails { get { throw null; } } + public bool? EmailSubscriptionAdmins { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + } public partial class WorkspaceCustomerManagedKeyDetails { public WorkspaceCustomerManagedKeyDetails() { } 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 e109005a7591f..2387a2adf8d97 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 @@ -31,11 +31,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("containerName"); writer.WriteStringValue(ContainerName); } - if (Optional.IsDefined(UploadedOn)) - { - writer.WritePropertyName("uploadedTimestamp"); - writer.WriteStringValue(UploadedOn.Value, "O"); - } if (Optional.IsDefined(LibraryInfoType)) { writer.WritePropertyName("type"); 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 9f3ba88456ca6..e4541171e83a6 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/BigDataPoolLibraryInfo.cs @@ -43,7 +43,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/SynapseBigDataPoolInfoData.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoData.Serialization.cs index 525054c112396..5fb3c93fa35e1 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoData.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoData.Serialization.cs @@ -64,11 +64,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("sessionLevelPackagesEnabled"); writer.WriteBooleanValue(IsSessionLevelPackagesEnabled.Value); } - if (Optional.IsDefined(CacheSize)) - { - writer.WritePropertyName("cacheSize"); - writer.WriteNumberValue(CacheSize.Value); - } if (Optional.IsDefined(DynamicExecutorAllocation)) { writer.WritePropertyName("dynamicExecutorAllocation"); 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 3ccd0931c3e74..4a848c70913bc 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 @@ -35,11 +35,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("containerName"); writer.WriteStringValue(ContainerName); } - if (Optional.IsDefined(UploadedOn)) - { - writer.WritePropertyName("uploadedTimestamp"); - writer.WriteStringValue(UploadedOn.Value, "O"); - } if (Optional.IsDefined(TypePropertiesType)) { writer.WritePropertyName("type"); 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 5287bb7590f79..002f72fb68a79 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 @@ -38,6 +38,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()) @@ -241,13 +243,33 @@ internal static SynapseSelfHostedIntegrationRuntimeStatus DeserializeSynapseSelf newerVersions = array; continue; } + if (property0.NameEquals("osType")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + osType = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("targetFramework")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + 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)); } } } 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 2d4b0bf8bd90a..67430e11b0888 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/SynapseServerVulnerabilityAssessmentData.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentData.Serialization.cs index 0d42fc04f4223..a72f7198ab343 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentData.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentData.Serialization.cs @@ -52,7 +52,7 @@ internal static SynapseServerVulnerabilityAssessmentData DeserializeSynapseServe Optional storageContainerPath = default; Optional storageContainerSasKey = default; Optional storageAccountAccessKey = default; - Optional recurringScans = default; + Optional recurringScans = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -111,7 +111,7 @@ internal static SynapseServerVulnerabilityAssessmentData DeserializeSynapseServe property0.ThrowNonNullablePropertyIsNull(); continue; } - recurringScans = SynapseVulnerabilityAssessmentRecurringScansProperties.DeserializeSynapseVulnerabilityAssessmentRecurringScansProperties(property0.Value); + recurringScans = VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.DeserializeVulnerabilityAssessmentRecurringScansPropertiesAutoGenerated(property0.Value); continue; } } 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 5931cd0e0a89d..e6e01919674f7 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 @@ -65,17 +65,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("virtualNetworkProfile"); writer.WriteObjectValue(VirtualNetworkProfile); } - if (Optional.IsCollectionDefined(ConnectivityEndpoints)) - { - writer.WritePropertyName("connectivityEndpoints"); - writer.WriteStartObject(); - foreach (var item in ConnectivityEndpoints) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } if (Optional.IsDefined(ManagedVirtualNetwork)) { writer.WritePropertyName("managedVirtualNetwork"); @@ -150,12 +139,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; @@ -334,12 +323,7 @@ internal static SynapseWorkspaceData DeserializeSynapseWorkspaceData(JsonElement property0.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property1 in property0.Value.EnumerateObject()) - { - dictionary.Add(property1.Name, BinaryData.FromString(property1.Value.GetRawText())); - } - extraProperties = dictionary; + extraProperties = BinaryData.FromString(property0.Value.GetRawText()); continue; } if (property0.NameEquals("managedVirtualNetworkSettings")) @@ -441,7 +425,7 @@ internal static SynapseWorkspaceData DeserializeSynapseWorkspaceData(JsonElement continue; } } - 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)); + 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)); } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.Serialization.cs new file mode 100644 index 0000000000000..0445535858154 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.Serialization.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Synapse.Models +{ + public partial class VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsEnabled)) + { + writer.WritePropertyName("isEnabled"); + writer.WriteBooleanValue(IsEnabled.Value); + } + if (Optional.IsDefined(EmailSubscriptionAdmins)) + { + writer.WritePropertyName("emailSubscriptionAdmins"); + writer.WriteBooleanValue(EmailSubscriptionAdmins.Value); + } + if (Optional.IsCollectionDefined(Emails)) + { + writer.WritePropertyName("emails"); + writer.WriteStartArray(); + foreach (var item in Emails) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated DeserializeVulnerabilityAssessmentRecurringScansPropertiesAutoGenerated(JsonElement element) + { + Optional isEnabled = default; + Optional emailSubscriptionAdmins = default; + Optional> emails = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("isEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("emailSubscriptionAdmins")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + emailSubscriptionAdmins = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("emails")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + emails = array; + continue; + } + } + return new VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated(Optional.ToNullable(isEnabled), Optional.ToNullable(emailSubscriptionAdmins), Optional.ToList(emails)); + } + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.cs new file mode 100644 index 0000000000000..05dc9c6891fa8 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Synapse.Models +{ + /// Properties of a Vulnerability Assessment recurring scans. + public partial class VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated + { + /// Initializes a new instance of VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated. + public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated() + { + Emails = new ChangeTrackingList(); + } + + /// Initializes a new instance of VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated. + /// Recurring scans state. + /// Specifies that the schedule scan notification will be is sent to the subscription administrators. + /// Specifies an array of e-mail addresses to which the scan notification is sent. + internal VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated(bool? isEnabled, bool? emailSubscriptionAdmins, IList emails) + { + IsEnabled = isEnabled; + EmailSubscriptionAdmins = emailSubscriptionAdmins; + Emails = emails; + } + + /// Recurring scans state. + public bool? IsEnabled { get; set; } + /// Specifies that the schedule scan notification will be is sent to the subscription administrators. + public bool? EmailSubscriptionAdmins { get; set; } + /// Specifies an array of e-mail addresses to which the scan notification is sent. + public IList Emails { get; } + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseBigDataPoolInfoData.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseBigDataPoolInfoData.cs index a527ec3488d86..0166de0f4cb27 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseBigDataPoolInfoData.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseBigDataPoolInfoData.cs @@ -87,7 +87,7 @@ internal SynapseBigDataPoolInfoData(ResourceIdentifier id, string name, Resource /// Whether session level packages enabled. public bool? IsSessionLevelPackagesEnabled { get; set; } /// The cache size. - public int? CacheSize { get; set; } + public int? CacheSize { get; } /// Dynamic Executor Allocation. public SynapseDynamicExecutorAllocation DynamicExecutorAllocation { get; set; } /// The Spark events folder. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseLibraryData.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseLibraryData.cs index 22769ed16e34c..b6466a3cab700 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseLibraryData.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseLibraryData.cs @@ -52,7 +52,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/SynapseServerVulnerabilityAssessmentData.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentData.cs index 892b9a9587642..f4ff87d693c54 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentData.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentData.cs @@ -28,7 +28,7 @@ public SynapseServerVulnerabilityAssessmentData() /// A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. /// The recurring scans settings. - internal SynapseServerVulnerabilityAssessmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string storageContainerPath, string storageContainerSasKey, string storageAccountAccessKey, SynapseVulnerabilityAssessmentRecurringScansProperties recurringScans) : base(id, name, resourceType, systemData) + internal SynapseServerVulnerabilityAssessmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string storageContainerPath, string storageContainerSasKey, string storageAccountAccessKey, VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans) : base(id, name, resourceType, systemData) { StorageContainerPath = storageContainerPath; StorageContainerSasKey = storageContainerSasKey; @@ -43,6 +43,6 @@ internal SynapseServerVulnerabilityAssessmentData(ResourceIdentifier id, string /// Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. public string StorageAccountAccessKey { get; set; } /// The recurring scans settings. - public SynapseVulnerabilityAssessmentRecurringScansProperties RecurringScans { get; set; } + public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated RecurringScans { get; set; } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceData.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceData.cs index fa2fbda3c0a00..0ad4f5f43e646 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceData.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceData.cs @@ -22,7 +22,6 @@ public SynapseWorkspaceData(AzureLocation location) : base(location) { ConnectivityEndpoints = new ChangeTrackingDictionary(); PrivateEndpointConnections = new ChangeTrackingList(); - ExtraProperties = new ChangeTrackingDictionary(); Settings = new ChangeTrackingDictionary(); } @@ -55,7 +54,7 @@ public SynapseWorkspaceData(AzureLocation location) : base(location) /// Workspace settings. /// Enable or Disable AzureADOnlyAuthentication on All Workspace subresource. /// Is trustedServiceBypassEnabled for the workspace. - 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) : 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) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; DefaultDataLakeStorage = defaultDataLakeStorage; @@ -108,7 +107,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. @@ -120,7 +119,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 formated json string to this property use . @@ -147,7 +146,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 07f36f30921c0..5144aec03ec15 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 @@ -526,20 +526,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/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/azureADOnlyAuthentication.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/checkNameAvailability.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/firewallRule.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/keys.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/operations.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateEndpointConnections.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateLinkResources.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privatelinkhub.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/bigDataPool.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/library.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/integrationRuntime.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json + - https://github.com/Azure/azure-rest-api-specs/blob/2f539c92aa7597d06f38343a6637a44725dd4a25/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json ```