diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/Azure.ResourceManager.Kusto.sln b/sdk/kusto/Azure.ResourceManager.Kusto/Azure.ResourceManager.Kusto.sln index 09c84ee8cdbd7..5755aee80ce80 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/Azure.ResourceManager.Kusto.sln +++ b/sdk/kusto/Azure.ResourceManager.Kusto/Azure.ResourceManager.Kusto.sln @@ -1,21 +1,15 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30309.148 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34031.279 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{B0E4C45D-26BD-4AA6-8EAD-049628768752}") = "Azure.ResourceManager.Kusto", "src\Azure.ResourceManager.Kusto.csproj", "{5EBDF5A2-F6C4-4AF5-AEA0-F9DC47EE4345}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Kusto", "src\Azure.ResourceManager.Kusto.csproj", "{5EBDF5A2-F6C4-4AF5-AEA0-F9DC47EE4345}" EndProject -Project("{B0E4C45D-26BD-4AA6-8EAD-049628768752}") = "Azure.ResourceManager.Kusto.Tests", "tests\Azure.ResourceManager.Kusto.Tests.csproj", "{B74A7ED3-325A-49C1-8878-439AA6CE0A98}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Kusto.Tests", "tests\Azure.ResourceManager.Kusto.Tests.csproj", "{B74A7ED3-325A-49C1-8878-439AA6CE0A98}" EndProject -Project("{B0E4C45D-26BD-4AA6-8EAD-049628768752}") = "Azure.ResourceManager.Kusto.Samples", "samples\Azure.ResourceManager.Kusto.Samples.csproj", "{450DC451-3EA0-4E51-B438-60AA05ECC630}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Kusto.Samples", "samples\Azure.ResourceManager.Kusto.Samples.csproj", "{450DC451-3EA0-4E51-B438-60AA05ECC630}" EndProject Global - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {7352086A-3420-4369-A2A5-EC99ECA5A435} - EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Debug|x64 = Debug|x64 @@ -49,5 +43,23 @@ Global {B74A7ED3-325A-49C1-8878-439AA6CE0A98}.Release|x64.Build.0 = Release|Any CPU {B74A7ED3-325A-49C1-8878-439AA6CE0A98}.Release|x86.ActiveCfg = Release|Any CPU {B74A7ED3-325A-49C1-8878-439AA6CE0A98}.Release|x86.Build.0 = Release|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Debug|Any CPU.Build.0 = Debug|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Debug|x64.ActiveCfg = Debug|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Debug|x64.Build.0 = Debug|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Debug|x86.ActiveCfg = Debug|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Debug|x86.Build.0 = Debug|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Release|Any CPU.ActiveCfg = Release|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Release|Any CPU.Build.0 = Release|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Release|x64.ActiveCfg = Release|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Release|x64.Build.0 = Release|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Release|x86.ActiveCfg = Release|Any CPU + {450DC451-3EA0-4E51-B438-60AA05ECC630}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7352086A-3420-4369-A2A5-EC99ECA5A435} EndGlobalSection EndGlobal diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/CHANGELOG.md b/sdk/kusto/Azure.ResourceManager.Kusto/CHANGELOG.md index 2bf5ead5003d5..c575ca36a702f 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/CHANGELOG.md +++ b/sdk/kusto/Azure.ResourceManager.Kusto/CHANGELOG.md @@ -1,15 +1,15 @@ # Release History -## 1.5.0-beta.1 (Unreleased) +## 1.5.0 (2023-10-25) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Introduced Cluster Sandbox Custom Image functionality. ### Other Changes +- Upgraded to Azure API version 2023-08-15. + ## 1.4.0 (2023-07-05) ### Features Added diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/api/Azure.ResourceManager.Kusto.netstandard2.0.cs b/sdk/kusto/Azure.ResourceManager.Kusto/api/Azure.ResourceManager.Kusto.netstandard2.0.cs index ef8888c266d18..d4258dcff6321 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/api/Azure.ResourceManager.Kusto.netstandard2.0.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/api/Azure.ResourceManager.Kusto.netstandard2.0.cs @@ -158,6 +158,8 @@ protected KustoClusterResource() { } public virtual System.Threading.Tasks.Task> CheckKustoDatabaseNameAvailabilityAsync(Azure.ResourceManager.Kusto.Models.KustoDatabaseNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CheckKustoManagedPrivateEndpointNameAvailability(Azure.ResourceManager.Kusto.Models.KustoManagedPrivateEndpointNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CheckKustoManagedPrivateEndpointNameAvailabilityAsync(Azure.ResourceManager.Kusto.Models.KustoManagedPrivateEndpointNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CheckNameAvailabilitySandboxCustomImage(Azure.ResourceManager.Kusto.Models.SandboxCustomImagesCheckNameContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CheckNameAvailabilitySandboxCustomImageAsync(Azure.ResourceManager.Kusto.Models.SandboxCustomImagesCheckNameContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -193,6 +195,9 @@ protected KustoClusterResource() { } public virtual Azure.AsyncPageable GetLanguageExtensionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSandboxCustomImage(string sandboxCustomImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSandboxCustomImageAsync(string sandboxCustomImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Kusto.SandboxCustomImageCollection GetSandboxCustomImages() { throw null; } public virtual Azure.ResourceManager.ArmOperation Migrate(Azure.WaitUntil waitUntil, Azure.ResourceManager.Kusto.Models.ClusterMigrateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task MigrateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Kusto.Models.ClusterMigrateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation RemoveLanguageExtensions(Azure.WaitUntil waitUntil, Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionList languageExtensionsToRemove, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -378,6 +383,7 @@ public static partial class KustoExtensions public static Azure.ResourceManager.Kusto.KustoPrivateEndpointConnectionResource GetKustoPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Kusto.KustoPrivateLinkResource GetKustoPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Kusto.KustoScriptResource GetKustoScriptResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Kusto.SandboxCustomImageResource GetSandboxCustomImageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetSkus(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetSkusAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -533,6 +539,45 @@ protected KustoScriptResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Kusto.KustoScriptData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Kusto.KustoScriptData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class SandboxCustomImageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected SandboxCustomImageCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string sandboxCustomImageName, Azure.ResourceManager.Kusto.SandboxCustomImageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string sandboxCustomImageName, Azure.ResourceManager.Kusto.SandboxCustomImageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string sandboxCustomImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string sandboxCustomImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string sandboxCustomImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string sandboxCustomImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string sandboxCustomImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string sandboxCustomImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class SandboxCustomImageData : Azure.ResourceManager.Models.ResourceData + { + public SandboxCustomImageData() { } + public Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage? Language { get { throw null; } set { } } + public string LanguageVersion { get { throw null; } set { } } + public Azure.ResourceManager.Kusto.Models.KustoProvisioningState? ProvisioningState { get { throw null; } } + public string RequirementsFileContent { get { throw null; } set { } } + } + public partial class SandboxCustomImageResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected SandboxCustomImageResource() { } + public virtual Azure.ResourceManager.Kusto.SandboxCustomImageData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Kusto.SandboxCustomImageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Kusto.SandboxCustomImageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } } namespace Azure.ResourceManager.Kusto.Models { @@ -551,7 +596,9 @@ public static partial class ArmKustoModelFactory public static Azure.ResourceManager.Kusto.Models.KustoAvailableSkuDetails KustoAvailableSkuDetails(string resourceType = null, Azure.ResourceManager.Kusto.Models.KustoSku sku = null, Azure.ResourceManager.Kusto.Models.KustoCapacity capacity = null) { throw null; } public static Azure.ResourceManager.Kusto.Models.KustoCapacity KustoCapacity(Azure.ResourceManager.Kusto.Models.KustoScaleType scaleType = default(Azure.ResourceManager.Kusto.Models.KustoScaleType), int minimum = 0, int maximum = 0, int @default = 0) { throw null; } public static Azure.ResourceManager.Kusto.KustoClusterData KustoClusterData(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.Kusto.Models.KustoSku sku = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Kusto.Models.KustoClusterState? state = default(Azure.ResourceManager.Kusto.Models.KustoClusterState?), Azure.ResourceManager.Kusto.Models.KustoProvisioningState? provisioningState = default(Azure.ResourceManager.Kusto.Models.KustoProvisioningState?), System.Uri clusterUri = null, System.Uri dataIngestionUri = null, string stateReason = null, System.Collections.Generic.IEnumerable trustedExternalTenants = null, Azure.ResourceManager.Kusto.Models.OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = default(bool?), bool? isStreamingIngestEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, Azure.ResourceManager.Kusto.Models.KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = default(bool?), System.Collections.Generic.IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Kusto.Models.KustoClusterPublicNetworkAccess?), System.Collections.Generic.IEnumerable allowedIPRangeList = null, Azure.ResourceManager.Kusto.Models.KustoClusterEngineType? engineType = default(Azure.ResourceManager.Kusto.Models.KustoClusterEngineType?), System.Collections.Generic.IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = default(Azure.ResourceManager.Kusto.Models.KustoClusterNetworkAccessFlag?), System.Collections.Generic.IEnumerable allowedFqdnList = null, Azure.ResourceManager.Kusto.Models.KustoClusterPublicIPType? publicIPType = default(Azure.ResourceManager.Kusto.Models.KustoClusterPublicIPType?), string virtualClusterGraduationProperties = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Kusto.Models.MigrationClusterProperties migrationCluster = null) { throw null; } - public static Azure.ResourceManager.Kusto.Models.KustoClusterPatch KustoClusterPatch(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.Kusto.Models.KustoSku sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Kusto.Models.KustoClusterState? state = default(Azure.ResourceManager.Kusto.Models.KustoClusterState?), Azure.ResourceManager.Kusto.Models.KustoProvisioningState? provisioningState = default(Azure.ResourceManager.Kusto.Models.KustoProvisioningState?), System.Uri uri = null, System.Uri dataIngestionUri = null, string stateReason = null, System.Collections.Generic.IEnumerable trustedExternalTenants = null, Azure.ResourceManager.Kusto.Models.OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = default(bool?), bool? isStreamingIngestEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, Azure.ResourceManager.Kusto.Models.KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = default(bool?), System.Collections.Generic.IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Kusto.Models.KustoClusterPublicNetworkAccess?), System.Collections.Generic.IEnumerable allowedIPRangeList = null, Azure.ResourceManager.Kusto.Models.KustoClusterEngineType? engineType = default(Azure.ResourceManager.Kusto.Models.KustoClusterEngineType?), System.Collections.Generic.IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = default(Azure.ResourceManager.Kusto.Models.KustoClusterNetworkAccessFlag?), System.Collections.Generic.IEnumerable allowedFqdnList = null, Azure.ResourceManager.Kusto.Models.KustoClusterPublicIPType? publicIPType = default(Azure.ResourceManager.Kusto.Models.KustoClusterPublicIPType?), string virtualClusterGraduationProperties = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Kusto.Models.MigrationClusterProperties migrationCluster = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Kusto.Models.KustoClusterPatch KustoClusterPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Kusto.Models.KustoSku sku, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Kusto.Models.KustoClusterState? state, Azure.ResourceManager.Kusto.Models.KustoProvisioningState? provisioningState, System.Uri uri, System.Uri dataIngestionUri, string stateReason, System.Collections.Generic.IEnumerable trustedExternalTenants, Azure.ResourceManager.Kusto.Models.OptimizedAutoscale optimizedAutoscale, bool? isDiskEncryptionEnabled, bool? isStreamingIngestEnabled, Azure.ResourceManager.Kusto.Models.KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration, Azure.ResourceManager.Kusto.Models.KustoKeyVaultProperties keyVaultProperties, bool? isPurgeEnabled, System.Collections.Generic.IEnumerable languageExtensionsValue, bool? isDoubleEncryptionEnabled, Azure.ResourceManager.Kusto.Models.KustoClusterPublicNetworkAccess? publicNetworkAccess, System.Collections.Generic.IEnumerable allowedIPRangeList, Azure.ResourceManager.Kusto.Models.KustoClusterEngineType? engineType, System.Collections.Generic.IEnumerable acceptedAudiences, bool? isAutoStopEnabled, Azure.ResourceManager.Kusto.Models.KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess, System.Collections.Generic.IEnumerable allowedFqdnList, Azure.ResourceManager.Kusto.Models.KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, System.Collections.Generic.IEnumerable privateEndpointConnections, Azure.ResourceManager.Kusto.Models.MigrationClusterProperties migrationCluster) { throw null; } + public static Azure.ResourceManager.Kusto.Models.KustoClusterPatch KustoClusterPatch(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.Kusto.Models.KustoSku sku = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Kusto.Models.KustoClusterState? state = default(Azure.ResourceManager.Kusto.Models.KustoClusterState?), Azure.ResourceManager.Kusto.Models.KustoProvisioningState? provisioningState = default(Azure.ResourceManager.Kusto.Models.KustoProvisioningState?), System.Uri uri = null, System.Uri dataIngestionUri = null, string stateReason = null, System.Collections.Generic.IEnumerable trustedExternalTenants = null, Azure.ResourceManager.Kusto.Models.OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = default(bool?), bool? isStreamingIngestEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, Azure.ResourceManager.Kusto.Models.KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = default(bool?), System.Collections.Generic.IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Kusto.Models.KustoClusterPublicNetworkAccess?), System.Collections.Generic.IEnumerable allowedIPRangeList = null, Azure.ResourceManager.Kusto.Models.KustoClusterEngineType? engineType = default(Azure.ResourceManager.Kusto.Models.KustoClusterEngineType?), System.Collections.Generic.IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = default(bool?), Azure.ResourceManager.Kusto.Models.KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = default(Azure.ResourceManager.Kusto.Models.KustoClusterNetworkAccessFlag?), System.Collections.Generic.IEnumerable allowedFqdnList = null, Azure.ResourceManager.Kusto.Models.KustoClusterPublicIPType? publicIPType = default(Azure.ResourceManager.Kusto.Models.KustoClusterPublicIPType?), string virtualClusterGraduationProperties = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Kusto.Models.MigrationClusterProperties migrationCluster = null) { throw null; } public static Azure.ResourceManager.Kusto.KustoClusterPrincipalAssignmentData KustoClusterPrincipalAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string clusterPrincipalId = null, Azure.ResourceManager.Kusto.Models.KustoClusterPrincipalRole? role = default(Azure.ResourceManager.Kusto.Models.KustoClusterPrincipalRole?), System.Guid? tenantId = default(System.Guid?), Azure.ResourceManager.Kusto.Models.KustoPrincipalAssignmentType? principalType = default(Azure.ResourceManager.Kusto.Models.KustoPrincipalAssignmentType?), string tenantName = null, string principalName = null, Azure.ResourceManager.Kusto.Models.KustoProvisioningState? provisioningState = default(Azure.ResourceManager.Kusto.Models.KustoProvisioningState?), System.Guid? aadObjectId = default(System.Guid?)) { throw null; } public static Azure.ResourceManager.Kusto.Models.KustoCosmosDBDataConnection KustoCosmosDBDataConnection(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 tableName = null, string mappingRuleName = null, Azure.Core.ResourceIdentifier managedIdentityResourceId = null, System.Guid? managedIdentityObjectId = default(System.Guid?), Azure.Core.ResourceIdentifier cosmosDBAccountResourceId = null, string cosmosDBDatabase = null, string cosmosDBContainer = null, System.DateTimeOffset? retrievalStartOn = default(System.DateTimeOffset?), Azure.ResourceManager.Kusto.Models.KustoProvisioningState? provisioningState = default(Azure.ResourceManager.Kusto.Models.KustoProvisioningState?)) { throw null; } public static Azure.ResourceManager.Kusto.KustoDatabaseData KustoDatabaseData(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 kind = "Unknown") { throw null; } @@ -576,6 +623,7 @@ public static partial class ArmKustoModelFactory public static Azure.ResourceManager.Kusto.Models.KustoSkuLocationInfoItem KustoSkuLocationInfoItem(Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IEnumerable zones = null, System.Collections.Generic.IEnumerable zoneDetails = null) { throw null; } public static Azure.ResourceManager.Kusto.Models.MigrationClusterProperties MigrationClusterProperties(string id = null, System.Uri uri = null, System.Uri dataIngestionUri = null, Azure.ResourceManager.Kusto.Models.MigrationClusterRole? role = default(Azure.ResourceManager.Kusto.Models.MigrationClusterRole?)) { throw null; } public static Azure.ResourceManager.Kusto.Models.OutboundNetworkDependenciesEndpoint OutboundNetworkDependenciesEndpoint(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? etag = default(Azure.ETag?), string category = null, System.Collections.Generic.IEnumerable endpoints = null, Azure.ResourceManager.Kusto.Models.KustoProvisioningState? provisioningState = default(Azure.ResourceManager.Kusto.Models.KustoProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Kusto.SandboxCustomImageData SandboxCustomImageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage? language = default(Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage?), string languageVersion = null, string requirementsFileContent = null, Azure.ResourceManager.Kusto.Models.KustoProvisioningState? provisioningState = default(Azure.ResourceManager.Kusto.Models.KustoProvisioningState?)) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AttachedDatabaseType : System.IEquatable @@ -663,6 +711,7 @@ public EndpointDependency() { } public partial class EndpointDetail { public EndpointDetail() { } + public string IPAddress { get { throw null; } set { } } public int? Port { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -776,6 +825,7 @@ public KustoClusterPatch(Azure.Core.AzureLocation location) : base (default(Azur public System.Uri Uri { get { throw null; } } public string VirtualClusterGraduationProperties { get { throw null; } set { } } public Azure.ResourceManager.Kusto.Models.KustoClusterVirtualNetworkConfiguration VirtualNetworkConfiguration { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } } public partial class KustoClusterPrincipalAssignmentNameAvailabilityContent { @@ -907,8 +957,27 @@ public partial class KustoClusterVirtualNetworkConfiguration public KustoClusterVirtualNetworkConfiguration(string subnetId, string enginePublicIPId, string dataManagementPublicIPId) { } public string DataManagementPublicIPId { get { throw null; } set { } } public string EnginePublicIPId { get { throw null; } set { } } + public Azure.ResourceManager.Kusto.Models.KustoClusterVnetState? State { get { throw null; } set { } } public string SubnetId { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KustoClusterVnetState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KustoClusterVnetState(string value) { throw null; } + public static Azure.ResourceManager.Kusto.Models.KustoClusterVnetState Disabled { get { throw null; } } + public static Azure.ResourceManager.Kusto.Models.KustoClusterVnetState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Kusto.Models.KustoClusterVnetState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Kusto.Models.KustoClusterVnetState left, Azure.ResourceManager.Kusto.Models.KustoClusterVnetState right) { throw null; } + public static implicit operator Azure.ResourceManager.Kusto.Models.KustoClusterVnetState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Kusto.Models.KustoClusterVnetState left, Azure.ResourceManager.Kusto.Models.KustoClusterVnetState right) { throw null; } + public override string ToString() { throw null; } + } public partial class KustoCosmosDBDataConnection : Azure.ResourceManager.Kusto.KustoDataConnectionData { public KustoCosmosDBDataConnection() { } @@ -1299,6 +1368,7 @@ public KustoKeyVaultProperties() { } public partial class KustoLanguageExtension { public KustoLanguageExtension() { } + public string LanguageExtensionCustomImageName { get { throw null; } set { } } public Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName? LanguageExtensionImageName { get { throw null; } set { } } public Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionName? LanguageExtensionName { get { throw null; } set { } } } @@ -1308,12 +1378,14 @@ public KustoLanguageExtension() { } private readonly object _dummy; private readonly int _dummyPrimitive; public KustoLanguageExtensionImageName(string value) { throw null; } + public static Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName Python3108DL { get { throw null; } } public static Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName Python3_10_8 { get { throw null; } } public static Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName Python3_6_5 { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName Python3_9_12 { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName Python3_9_12IncludeDeepLearning { get { throw null; } } + public static Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName PythonCustomImage { get { throw null; } } public static Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName R { get { throw null; } } public bool Equals(Azure.ResourceManager.Kusto.Models.KustoLanguageExtensionImageName other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1690,4 +1762,44 @@ public OutboundNetworkDependenciesEndpoint() { } public Azure.ETag? ETag { get { throw null; } } public Azure.ResourceManager.Kusto.Models.KustoProvisioningState? ProvisioningState { get { throw null; } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SandboxCustomImageLanguage : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SandboxCustomImageLanguage(string value) { throw null; } + public static Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage Python { get { throw null; } } + public bool Equals(Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage left, Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage right) { throw null; } + public static implicit operator Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage left, Azure.ResourceManager.Kusto.Models.SandboxCustomImageLanguage right) { throw null; } + public override string ToString() { throw null; } + } + public partial class SandboxCustomImagesCheckNameContent + { + public SandboxCustomImagesCheckNameContent(string name) { } + public Azure.ResourceManager.Kusto.Models.SandboxCustomImageType ImageType { get { throw null; } } + public string Name { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SandboxCustomImageType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SandboxCustomImageType(string value) { throw null; } + public static Azure.ResourceManager.Kusto.Models.SandboxCustomImageType MicrosoftKustoClustersSandboxCustomImages { get { throw null; } } + public bool Equals(Azure.ResourceManager.Kusto.Models.SandboxCustomImageType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Kusto.Models.SandboxCustomImageType left, Azure.ResourceManager.Kusto.Models.SandboxCustomImageType right) { throw null; } + public static implicit operator Azure.ResourceManager.Kusto.Models.SandboxCustomImageType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Kusto.Models.SandboxCustomImageType left, Azure.ResourceManager.Kusto.Models.SandboxCustomImageType right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/assets.json b/sdk/kusto/Azure.ResourceManager.Kusto/assets.json index 2cbe0b1595599..a12ba91502c29 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/assets.json +++ b/sdk/kusto/Azure.ResourceManager.Kusto/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/kusto/Azure.ResourceManager.Kusto", - "Tag": "net/kusto/Azure.ResourceManager.Kusto_b80b94143b" + "Tag": "net/kusto/Azure.ResourceManager.Kusto_afc9deaaf0" } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoAttachedDatabaseConfigurationCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoAttachedDatabaseConfigurationCollection.cs index c2e48ce885599..054ebcd9ec85c 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoAttachedDatabaseConfigurationCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoAttachedDatabaseConfigurationCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoAttachedDatabaseConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoAttachedDatabaseConfigurationsListByCluster() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsListByCluster.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationsListByCluster.json // this example is just showing the usage of "AttachedDatabaseConfigurations_ListByCluster" 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 @@ -60,7 +60,7 @@ public async Task GetAll_KustoAttachedDatabaseConfigurationsListByCluster() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AttachedDatabaseConfigurationsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationsGet.json // this example is just showing the usage of "AttachedDatabaseConfigurations_Get" 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 @@ -95,7 +95,7 @@ public async Task Get_AttachedDatabaseConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_AttachedDatabaseConfigurationsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationsGet.json // this example is just showing the usage of "AttachedDatabaseConfigurations_Get" 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 @@ -126,7 +126,7 @@ public async Task Exists_AttachedDatabaseConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_AttachedDatabaseConfigurationsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationsGet.json // this example is just showing the usage of "AttachedDatabaseConfigurations_Get" 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 @@ -169,7 +169,7 @@ public async Task GetIfExists_AttachedDatabaseConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AttachedDatabaseConfigurationsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json // this example is just showing the usage of "AttachedDatabaseConfigurations_CreateOrUpdate" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoAttachedDatabaseConfigurationResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoAttachedDatabaseConfigurationResource.cs index 34859f7fb0728..56319efc0d59e 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoAttachedDatabaseConfigurationResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoAttachedDatabaseConfigurationResource.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoAttachedDatabaseConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AttachedDatabaseConfigurationsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationsGet.json // this example is just showing the usage of "AttachedDatabaseConfigurations_Get" 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 @@ -55,7 +55,7 @@ public async Task Get_AttachedDatabaseConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AttachedDatabaseConfigurationsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json // this example is just showing the usage of "AttachedDatabaseConfigurations_CreateOrUpdate" 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 @@ -123,7 +123,7 @@ public async Task Update_AttachedDatabaseConfigurationsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_AttachedDatabaseConfigurationsDelete() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationsDelete.json // this example is just showing the usage of "AttachedDatabaseConfigurations_Delete" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterCollection.cs index 88d0e499e9631..193fd6f5ffe40 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_KustoClusterCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoClustersGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersGet.json // this example is just showing the usage of "Clusters_Get" 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 @@ -59,7 +59,7 @@ public async Task Get_KustoClustersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoClustersGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersGet.json // this example is just showing the usage of "Clusters_Get" 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 @@ -89,7 +89,7 @@ public async Task Exists_KustoClustersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoClustersGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersGet.json // this example is just showing the usage of "Clusters_Get" 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 @@ -131,7 +131,7 @@ public async Task GetIfExists_KustoClustersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoClustersCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersCreateOrUpdate.json // this example is just showing the usage of "Clusters_CreateOrUpdate" 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 @@ -164,7 +164,8 @@ public async Task CreateOrUpdate_KustoClustersCreateOrUpdate() new KustoLanguageExtension() { LanguageExtensionName = KustoLanguageExtensionName.Python, -LanguageExtensionImageName = KustoLanguageExtensionImageName.Python3_10_8, +LanguageExtensionImageName = new KustoLanguageExtensionImageName("Python_Custom_Image"), +LanguageExtensionCustomImageName = "customImage8", },new KustoLanguageExtension() { LanguageExtensionName = KustoLanguageExtensionName.R, @@ -195,7 +196,7 @@ public async Task CreateOrUpdate_KustoClustersCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoClustersListByResourceGroup() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersListByResourceGroup.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersListByResourceGroup.json // this example is just showing the usage of "Clusters_ListByResourceGroup" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterPrincipalAssignmentCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterPrincipalAssignmentCollection.cs index 6bc971f131c2e..ba77267c33032 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterPrincipalAssignmentCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterPrincipalAssignmentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoClusterPrincipalAssignmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoClusterPrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsGet.json // this example is just showing the usage of "ClusterPrincipalAssignments_Get" 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 @@ -58,7 +58,7 @@ public async Task Get_KustoClusterPrincipalAssignmentsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoClusterPrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsGet.json // this example is just showing the usage of "ClusterPrincipalAssignments_Get" 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 @@ -89,7 +89,7 @@ public async Task Exists_KustoClusterPrincipalAssignmentsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoClusterPrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsGet.json // this example is just showing the usage of "ClusterPrincipalAssignments_Get" 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 @@ -132,7 +132,7 @@ public async Task GetIfExists_KustoClusterPrincipalAssignmentsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoClusterPrincipalAssignmentsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json // this example is just showing the usage of "ClusterPrincipalAssignments_CreateOrUpdate" 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 @@ -175,7 +175,7 @@ public async Task CreateOrUpdate_KustoClusterPrincipalAssignmentsCreateOrUpdate( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoPrincipalAssignmentsList() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsList.json // this example is just showing the usage of "ClusterPrincipalAssignments_List" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterPrincipalAssignmentResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterPrincipalAssignmentResource.cs index aba6561342a99..60f5ccdb349a1 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterPrincipalAssignmentResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterPrincipalAssignmentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoClusterPrincipalAssignmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoClusterPrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsGet.json // this example is just showing the usage of "ClusterPrincipalAssignments_Get" 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 @@ -55,7 +55,7 @@ public async Task Get_KustoClusterPrincipalAssignmentsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoClusterPrincipalAssignmentsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json // this example is just showing the usage of "ClusterPrincipalAssignments_CreateOrUpdate" 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 @@ -95,7 +95,7 @@ public async Task Update_KustoClusterPrincipalAssignmentsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_KustoClusterPrincipalAssignmentsDelete() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsDelete.json // this example is just showing the usage of "ClusterPrincipalAssignments_Delete" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterResource.cs index d9f52ccd64f93..d73606ebda51f 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoClusterResource.cs @@ -24,7 +24,7 @@ public partial class Sample_KustoClusterResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoClustersGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersGet.json // this example is just showing the usage of "Clusters_Get" 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 @@ -55,7 +55,7 @@ public async Task Get_KustoClustersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoClustersUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersUpdate.json // this example is just showing the usage of "Clusters_Update" 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 @@ -89,7 +89,7 @@ public async Task Update_KustoClustersUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_KustoClustersDelete() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersDelete.json // this example is just showing the usage of "Clusters_Delete" 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 @@ -116,7 +116,7 @@ public async Task Delete_KustoClustersDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_KustoClustersStop() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersStop.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersStop.json // this example is just showing the usage of "Clusters_Stop" 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 @@ -143,7 +143,7 @@ public async Task Stop_KustoClustersStop() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_KustoClustersStart() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersStart.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersStart.json // this example is just showing the usage of "Clusters_Start" 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 @@ -170,7 +170,7 @@ public async Task Start_KustoClustersStart() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Migrate_KustoClusterMigrate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterMigrate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterMigrate.json // this example is just showing the usage of "Clusters_Migrate" 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 @@ -198,7 +198,7 @@ public async Task Migrate_KustoClusterMigrate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFollowerDatabases_KustoClusterListFollowerDatabases() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterListFollowerDatabases.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterListFollowerDatabases.json // this example is just showing the usage of "Clusters_ListFollowerDatabases" 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 @@ -228,7 +228,7 @@ public async Task GetFollowerDatabases_KustoClusterListFollowerDatabases() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DetachFollowerDatabases_KustoClusterDetachFollowerDatabases() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterDetachFollowerDatabases.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterDetachFollowerDatabases.json // this example is just showing the usage of "Clusters_DetachFollowerDatabases" 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 @@ -256,7 +256,7 @@ public async Task DetachFollowerDatabases_KustoClusterDetachFollowerDatabases() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DiagnoseVirtualNetwork_KustoClusterDiagnoseVirtualNetwork() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersDiagnoseVirtualNetwork.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersDiagnoseVirtualNetwork.json // this example is just showing the usage of "Clusters_DiagnoseVirtualNetwork" 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 @@ -284,7 +284,7 @@ public async Task DiagnoseVirtualNetwork_KustoClusterDiagnoseVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKustoClusters_KustoClustersList() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersList.json // this example is just showing the usage of "Clusters_List" 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 @@ -316,7 +316,7 @@ public async Task GetKustoClusters_KustoClustersList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKustoEligibleSkus_KustoClustersListSkus() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersListSkus.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersListSkus.json // this example is just showing the usage of "Clusters_ListSkus" 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 @@ -344,7 +344,7 @@ public async Task GetKustoEligibleSkus_KustoClustersListSkus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckKustoClusterNameAvailability_KustoClustersCheckNameAvailability() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersCheckNameAvailability.json // this example is just showing the usage of "Clusters_CheckNameAvailability" 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 @@ -371,7 +371,7 @@ public async Task CheckKustoClusterNameAvailability_KustoClustersCheckNameAvaila [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableSkus_KustoClustersListResourceSkus() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersListResourceSkus.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClustersListResourceSkus.json // this example is just showing the usage of "Clusters_ListSkusByResource" 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 @@ -401,7 +401,7 @@ public async Task GetAvailableSkus_KustoClustersListResourceSkus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetOutboundNetworkDependenciesEndpoints_GetKustoClusterOutboundNetworkDependencies() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoOutboundNetworkDependenciesList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoOutboundNetworkDependenciesList.json // this example is just showing the usage of "Clusters_ListOutboundNetworkDependenciesEndpoints" 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 @@ -431,7 +431,7 @@ public async Task GetOutboundNetworkDependenciesEndpoints_GetKustoClusterOutboun [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLanguageExtensions_KustoClusterListLanguageExtensions() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterListLanguageExtensions.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterListLanguageExtensions.json // this example is just showing the usage of "Clusters_ListLanguageExtensions" 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 @@ -461,7 +461,7 @@ public async Task GetLanguageExtensions_KustoClusterListLanguageExtensions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task AddLanguageExtensions_KustoClusterAddLanguageExtensions() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterAddLanguageExtensions.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterAddLanguageExtensions.json // this example is just showing the usage of "Clusters_AddLanguageExtensions" 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 @@ -501,7 +501,7 @@ public async Task AddLanguageExtensions_KustoClusterAddLanguageExtensions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RemoveLanguageExtensions_KustoClusterRemoveLanguageExtensions() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterRemoveLanguageExtensions.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterRemoveLanguageExtensions.json // this example is just showing the usage of "Clusters_RemoveLanguageExtensions" 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 @@ -541,7 +541,7 @@ public async Task RemoveLanguageExtensions_KustoClusterRemoveLanguageExtensions( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckKustoClusterPrincipalAssignmentNameAvailability_KustoClusterPrincipalAssignmentsCheckNameAvailability() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json // this example is just showing the usage of "ClusterPrincipalAssignments_CheckNameAvailability" 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 @@ -569,7 +569,7 @@ public async Task CheckKustoClusterPrincipalAssignmentNameAvailability_KustoClus [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckKustoDatabaseNameAvailability_KustoDatabasesCheckNameAvailability() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesCheckNameAvailability.json // this example is just showing the usage of "Databases_CheckNameAvailability" 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 @@ -597,7 +597,7 @@ public async Task CheckKustoDatabaseNameAvailability_KustoDatabasesCheckNameAvai [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckKustoAttachedDatabaseConfigurationNameAvailability_KustoAttachedDatabaseConfigurationCheckNameAvailability() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json // this example is just showing the usage of "AttachedDatabaseConfigurations_CheckNameAvailability" 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 @@ -625,7 +625,7 @@ public async Task CheckKustoAttachedDatabaseConfigurationNameAvailability_KustoA [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckKustoManagedPrivateEndpointNameAvailability_KustoManagedPrivateEndpointsCheckNameAvailability() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json // this example is just showing the usage of "ManagedPrivateEndpoints_CheckNameAvailability" 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 @@ -647,5 +647,33 @@ public async Task CheckKustoManagedPrivateEndpointNameAvailability_KustoManagedP Console.WriteLine($"Succeeded: {result}"); } + + // KustoSandboxCustomImagesCheckNameAvailability + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CheckNameAvailabilitySandboxCustomImage_KustoSandboxCustomImagesCheckNameAvailability() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImagesCheckNameAvailability.json + // this example is just showing the usage of "SandboxCustomImages_CheckNameAvailability" 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 KustoClusterResource created on azure + // for more information of creating KustoClusterResource, please refer to the document of KustoClusterResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + ResourceIdentifier kustoClusterResourceId = KustoClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + KustoClusterResource kustoCluster = client.GetKustoClusterResource(kustoClusterResourceId); + + // invoke the operation + SandboxCustomImagesCheckNameContent content = new SandboxCustomImagesCheckNameContent("sandboxCustomImage1"); + KustoNameAvailabilityResult result = await kustoCluster.CheckNameAvailabilitySandboxCustomImageAsync(content); + + Console.WriteLine($"Succeeded: {result}"); + } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDataConnectionCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDataConnectionCollection.cs index 0cd18891f56f1..94d354ee2d9e8 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDataConnectionCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDataConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoDataConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoDatabasesListByCluster() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsListByDatabase.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsListByDatabase.json // this example is just showing the usage of "DataConnections_ListByDatabase" 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 @@ -61,7 +61,7 @@ public async Task GetAll_KustoDatabasesListByCluster() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDataConnectionsCosmosDbGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsCosmosDbGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -97,7 +97,7 @@ public async Task Get_KustoDataConnectionsCosmosDbGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoDataConnectionsCosmosDbGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsCosmosDbGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -129,7 +129,7 @@ public async Task Exists_KustoDataConnectionsCosmosDbGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoDataConnectionsCosmosDbGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsCosmosDbGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -173,7 +173,7 @@ public async Task GetIfExists_KustoDataConnectionsCosmosDbGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDataConnectionsEventGridGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsEventGridGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -209,7 +209,7 @@ public async Task Get_KustoDataConnectionsEventGridGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoDataConnectionsEventGridGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsEventGridGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -241,7 +241,7 @@ public async Task Exists_KustoDataConnectionsEventGridGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoDataConnectionsEventGridGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsEventGridGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -285,7 +285,7 @@ public async Task GetIfExists_KustoDataConnectionsEventGridGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDataConnectionsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -321,7 +321,7 @@ public async Task Get_KustoDataConnectionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoDataConnectionsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -353,7 +353,7 @@ public async Task Exists_KustoDataConnectionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoDataConnectionsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -397,7 +397,7 @@ public async Task GetIfExists_KustoDataConnectionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoDataConnectionsCosmosDbCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsCosmosDbCreateOrUpdate.json // this example is just showing the usage of "DataConnections_CreateOrUpdate" 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 @@ -445,7 +445,7 @@ public async Task CreateOrUpdate_KustoDataConnectionsCosmosDbCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoDataConnectionsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsCreateOrUpdate.json // this example is just showing the usage of "DataConnections_CreateOrUpdate" 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 @@ -489,7 +489,7 @@ public async Task CreateOrUpdate_KustoDataConnectionsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoDataConnectionsEventGridCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsEventGridCreateOrUpdate.json // this example is just showing the usage of "DataConnections_CreateOrUpdate" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDataConnectionResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDataConnectionResource.cs index 090ecefc744be..4534828f02da9 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDataConnectionResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDataConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoDataConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDataConnectionsCosmosDbGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsCosmosDbGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -56,7 +56,7 @@ public async Task Get_KustoDataConnectionsCosmosDbGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDataConnectionsEventGridGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsEventGridGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -89,7 +89,7 @@ public async Task Get_KustoDataConnectionsEventGridGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDataConnectionsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsGet.json // this example is just showing the usage of "DataConnections_Get" 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 @@ -122,7 +122,7 @@ public async Task Get_KustoDataConnectionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoDataConnectionsCosmosDbUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsCosmosDbUpdate.json // this example is just showing the usage of "DataConnections_Update" 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 @@ -167,7 +167,7 @@ public async Task Update_KustoDataConnectionsCosmosDbUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoDataConnectionsEventGridUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsEventGridUpdate.json // this example is just showing the usage of "DataConnections_Update" 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 @@ -216,7 +216,7 @@ public async Task Update_KustoDataConnectionsEventGridUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoDataConnectionsUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsUpdate.json // this example is just showing the usage of "DataConnections_Update" 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 @@ -257,7 +257,7 @@ public async Task Update_KustoDataConnectionsUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_KustoDataConnectionsDelete() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsDelete.json // this example is just showing the usage of "DataConnections_Delete" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabaseCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabaseCollection.cs index aa7e0b81cb62f..5bcc53927e30a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabaseCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabaseCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_KustoDatabaseCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoDatabasesListByCluster() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesListByCluster.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesListByCluster.json // this example is just showing the usage of "Databases_ListByCluster" 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 @@ -61,7 +61,7 @@ public async Task GetAll_KustoDatabasesListByCluster() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDatabasesGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesGet.json // this example is just showing the usage of "Databases_Get" 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 @@ -96,7 +96,7 @@ public async Task Get_KustoDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoDatabasesGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesGet.json // this example is just showing the usage of "Databases_Get" 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 @@ -127,7 +127,7 @@ public async Task Exists_KustoDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoDatabasesGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesGet.json // this example is just showing the usage of "Databases_Get" 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 @@ -170,7 +170,7 @@ public async Task GetIfExists_KustoDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoSuspendedDatabasesGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoSuspendedDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSuspendedDatabasesGet.json // this example is just showing the usage of "Databases_Get" 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 @@ -205,7 +205,7 @@ public async Task Get_KustoSuspendedDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoSuspendedDatabasesGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoSuspendedDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSuspendedDatabasesGet.json // this example is just showing the usage of "Databases_Get" 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 @@ -236,7 +236,7 @@ public async Task Exists_KustoSuspendedDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoSuspendedDatabasesGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoSuspendedDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSuspendedDatabasesGet.json // this example is just showing the usage of "Databases_Get" 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 @@ -279,7 +279,7 @@ public async Task GetIfExists_KustoSuspendedDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoReadOnlyDatabaseUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseReadonlyUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabaseReadonlyUpdate.json // this example is just showing the usage of "Databases_CreateOrUpdate" 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 @@ -320,7 +320,7 @@ public async Task CreateOrUpdate_KustoReadOnlyDatabaseUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoReadWriteDatabaseCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesCreateOrUpdate.json // this example is just showing the usage of "Databases_CreateOrUpdate" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabasePrincipalAssignmentCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabasePrincipalAssignmentCollection.cs index fd5cd2dd0cac3..a2bb74bb75245 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabasePrincipalAssignmentCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabasePrincipalAssignmentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoDatabasePrincipalAssignmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDatabasePrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsGet.json // this example is just showing the usage of "DatabasePrincipalAssignments_Get" 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 @@ -59,7 +59,7 @@ public async Task Get_KustoDatabasePrincipalAssignmentsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoDatabasePrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsGet.json // this example is just showing the usage of "DatabasePrincipalAssignments_Get" 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 @@ -91,7 +91,7 @@ public async Task Exists_KustoDatabasePrincipalAssignmentsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoDatabasePrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsGet.json // this example is just showing the usage of "DatabasePrincipalAssignments_Get" 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 @@ -135,7 +135,7 @@ public async Task GetIfExists_KustoDatabasePrincipalAssignmentsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoDatabasePrincipalAssignmentsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json // this example is just showing the usage of "DatabasePrincipalAssignments_CreateOrUpdate" 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 @@ -179,7 +179,7 @@ public async Task CreateOrUpdate_KustoDatabasePrincipalAssignmentsCreateOrUpdate [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoPrincipalAssignmentsList() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsList.json // this example is just showing the usage of "DatabasePrincipalAssignments_List" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabasePrincipalAssignmentResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabasePrincipalAssignmentResource.cs index 42d7005d65b22..4cbfbcb5e1d58 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabasePrincipalAssignmentResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabasePrincipalAssignmentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoDatabasePrincipalAssignmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDatabasePrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsGet.json // this example is just showing the usage of "DatabasePrincipalAssignments_Get" 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 @@ -56,7 +56,7 @@ public async Task Get_KustoDatabasePrincipalAssignmentsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoDatabasePrincipalAssignmentsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json // this example is just showing the usage of "DatabasePrincipalAssignments_CreateOrUpdate" 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 @@ -97,7 +97,7 @@ public async Task Update_KustoDatabasePrincipalAssignmentsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_KustoDatabasePrincipalAssignmentsDelete() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsDelete.json // this example is just showing the usage of "DatabasePrincipalAssignments_Delete" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabaseResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabaseResource.cs index 3741355acb734..c2211c1a604f3 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabaseResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoDatabaseResource.cs @@ -24,7 +24,7 @@ public partial class Sample_KustoDatabaseResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoDatabasesGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesGet.json // this example is just showing the usage of "Databases_Get" 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 @@ -56,7 +56,7 @@ public async Task Get_KustoDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoSuspendedDatabasesGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoSuspendedDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSuspendedDatabasesGet.json // this example is just showing the usage of "Databases_Get" 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 @@ -88,7 +88,7 @@ public async Task Get_KustoSuspendedDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoDatabasesUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesUpdate.json // this example is just showing the usage of "Databases_Update" 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 @@ -125,7 +125,7 @@ public async Task Update_KustoDatabasesUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_KustoDatabasesDelete() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasesDelete.json // this example is just showing the usage of "Databases_Delete" 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 @@ -153,7 +153,7 @@ public async Task Delete_KustoDatabasesDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrincipals_KustoDatabaseListPrincipals() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseListPrincipals.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabaseListPrincipals.json // this example is just showing the usage of "Databases_ListPrincipals" 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 @@ -184,7 +184,7 @@ public async Task GetPrincipals_KustoDatabaseListPrincipals() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task AddPrincipals_KustoDatabaseAddPrincipals() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseAddPrincipals.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabaseAddPrincipals.json // this example is just showing the usage of "Databases_AddPrincipals" 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 @@ -237,7 +237,7 @@ public async Task AddPrincipals_KustoDatabaseAddPrincipals() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RemovePrincipals_KustoDatabaseRemovePrincipals() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseRemovePrincipals.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabaseRemovePrincipals.json // this example is just showing the usage of "Databases_RemovePrincipals" 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 @@ -290,7 +290,7 @@ public async Task RemovePrincipals_KustoDatabaseRemovePrincipals() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task InviteFollowerDatabase_KustoDatabaseInviteFollower() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseInviteFollower.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabaseInviteFollower.json // this example is just showing the usage of "Database_InviteFollower" 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 @@ -355,7 +355,7 @@ public async Task InviteFollowerDatabase_KustoDatabaseInviteFollower() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckKustoDatabasePrincipalAssignmentNameAvailability_KustoDatabaseCheckNameAvailability() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json // this example is just showing the usage of "DatabasePrincipalAssignments_CheckNameAvailability" 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 @@ -384,7 +384,7 @@ public async Task CheckKustoDatabasePrincipalAssignmentNameAvailability_KustoDat [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckKustoScriptNameAvailability_KustoScriptsCheckNameAvailability() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsCheckNameAvailability.json // this example is just showing the usage of "Scripts_CheckNameAvailability" 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 @@ -413,7 +413,7 @@ public async Task CheckKustoScriptNameAvailability_KustoScriptsCheckNameAvailabi [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ValidateDataConnection_KustoDataConnectionEventGridValidation() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionEventGridValidationAsync.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionEventGridValidationAsync.json // this example is just showing the usage of "DataConnections_dataConnectionValidation" 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 @@ -460,7 +460,7 @@ public async Task ValidateDataConnection_KustoDataConnectionEventGridValidation( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ValidateDataConnection_KustoDataConnectionValidation() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionValidationAsync.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionValidationAsync.json // this example is just showing the usage of "DataConnections_dataConnectionValidation" 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 @@ -503,7 +503,7 @@ public async Task ValidateDataConnection_KustoDataConnectionValidation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckKustoDataConnectionNameAvailability_KustoDataConnectionsCheckNameAvailability() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDataConnectionsCheckNameAvailability.json // this example is just showing the usage of "DataConnections_CheckNameAvailability" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoManagedPrivateEndpointCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoManagedPrivateEndpointCollection.cs index d734a9809a172..fd664e53f5527 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoManagedPrivateEndpointCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoManagedPrivateEndpointCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_KustoManagedPrivateEndpointCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoManagedPrivateEndpointsList() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsList.json // this example is just showing the usage of "ManagedPrivateEndpoints_List" 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 @@ -59,7 +59,7 @@ public async Task GetAll_KustoManagedPrivateEndpointsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoManagedPrivateEndpointsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsGet.json // this example is just showing the usage of "ManagedPrivateEndpoints_Get" 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 @@ -94,7 +94,7 @@ public async Task Get_KustoManagedPrivateEndpointsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoManagedPrivateEndpointsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsGet.json // this example is just showing the usage of "ManagedPrivateEndpoints_Get" 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 @@ -125,7 +125,7 @@ public async Task Exists_KustoManagedPrivateEndpointsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoManagedPrivateEndpointsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsGet.json // this example is just showing the usage of "ManagedPrivateEndpoints_Get" 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 @@ -168,7 +168,7 @@ public async Task GetIfExists_KustoManagedPrivateEndpointsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoManagedPrivateEndpointsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json // this example is just showing the usage of "ManagedPrivateEndpoints_CreateOrUpdate" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoManagedPrivateEndpointResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoManagedPrivateEndpointResource.cs index 7050acabc8771..ea18ceb98a867 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoManagedPrivateEndpointResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoManagedPrivateEndpointResource.cs @@ -22,7 +22,7 @@ public partial class Sample_KustoManagedPrivateEndpointResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoManagedPrivateEndpointsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsGet.json // this example is just showing the usage of "ManagedPrivateEndpoints_Get" 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 @@ -54,7 +54,7 @@ public async Task Get_KustoManagedPrivateEndpointsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoManagedPrivateEndpointsUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsUpdate.json // this example is just showing the usage of "ManagedPrivateEndpoints_Update" 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 @@ -93,7 +93,7 @@ public async Task Update_KustoManagedPrivateEndpointsUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ManagedPrivateEndpointsDelete() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoManagedPrivateEndpointsDelete.json // this example is just showing the usage of "ManagedPrivateEndpoints_Delete" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateEndpointConnectionCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateEndpointConnectionCollection.cs index 2c8d0c21530b1..4a7867fa70a54 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateEndpointConnectionCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoPrivateEndpointConnectionsList() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateEndpointConnectionsList.json // this example is just showing the usage of "PrivateEndpointConnections_List" 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 @@ -60,7 +60,7 @@ public async Task GetAll_KustoPrivateEndpointConnectionsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateEndpointConnectionsGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" 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 @@ -95,7 +95,7 @@ public async Task Get_GetsPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateEndpointConnectionsGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" 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 @@ -126,7 +126,7 @@ public async Task Exists_GetsPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateEndpointConnectionsGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" 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 @@ -169,7 +169,7 @@ public async Task GetIfExists_GetsPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ApproveOrRejectAPrivateEndpointConnectionWithAGivenName() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateEndpointConnectionResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateEndpointConnectionResource.cs index 30fc29402d469..98b79d6950e9c 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateEndpointConnectionResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_KustoPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateEndpointConnectionsGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" 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 @@ -55,7 +55,7 @@ public async Task Get_GetsPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ApproveOrRejectAPrivateEndpointConnectionWithAGivenName() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" 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 @@ -96,7 +96,7 @@ public async Task Update_ApproveOrRejectAPrivateEndpointConnectionWithAGivenName [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAPrivateEndpointConnectionWithAGivenName() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateEndpointConnectionsDelete.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateLinkResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateLinkResource.cs index ef30437163c1e..2a35d6c51f2c5 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateLinkResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateLinkResource.cs @@ -21,7 +21,7 @@ public partial class Sample_KustoPrivateLinkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateLinkResourcesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateLinkResourcesGet.json // this example is just showing the usage of "PrivateLinkResources_Get" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateLinkResourceCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateLinkResourceCollection.cs index 21467e716900f..e7b58add78b24 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateLinkResourceCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoPrivateLinkResourceCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_KustoPrivateLinkResourceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsPrivateEndpointConnections() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateLinkResourcesList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateLinkResourcesList.json // this example is just showing the usage of "PrivateLinkResources_List" 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 @@ -59,7 +59,7 @@ public async Task GetAll_GetsPrivateEndpointConnections() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateLinkResourcesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateLinkResourcesGet.json // this example is just showing the usage of "PrivateLinkResources_Get" 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 @@ -94,7 +94,7 @@ public async Task Get_GetsPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateLinkResourcesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateLinkResourcesGet.json // this example is just showing the usage of "PrivateLinkResources_Get" 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 @@ -125,7 +125,7 @@ public async Task Exists_GetsPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsPrivateEndpointConnection() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateLinkResourcesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoPrivateLinkResourcesGet.json // this example is just showing the usage of "PrivateLinkResources_Get" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoScriptCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoScriptCollection.cs index 871b93456c32a..3047014ce4841 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoScriptCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoScriptCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_KustoScriptCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KustoScriptsList() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsListByDatabase.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsListByDatabase.json // this example is just showing the usage of "Scripts_ListByDatabase" 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 @@ -60,7 +60,7 @@ public async Task GetAll_KustoScriptsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoScriptsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsGet.json // this example is just showing the usage of "Scripts_Get" 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 @@ -96,7 +96,7 @@ public async Task Get_KustoScriptsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KustoScriptsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsGet.json // this example is just showing the usage of "Scripts_Get" 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 @@ -128,7 +128,7 @@ public async Task Exists_KustoScriptsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_KustoScriptsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsGet.json // this example is just showing the usage of "Scripts_Get" 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 @@ -172,7 +172,7 @@ public async Task GetIfExists_KustoScriptsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KustoScriptsCreateOrUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsCreateOrUpdate.json // this example is just showing the usage of "Scripts_CreateOrUpdate" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoScriptResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoScriptResource.cs index 0124f6e8fe046..62fa2a235d3b3 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoScriptResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_KustoScriptResource.cs @@ -22,7 +22,7 @@ public partial class Sample_KustoScriptResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KustoScriptsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsGet.json // this example is just showing the usage of "Scripts_Get" 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 @@ -55,7 +55,7 @@ public async Task Get_KustoScriptsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KustoScriptsUpdate() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsUpdate.json // this example is just showing the usage of "Scripts_Update" 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 @@ -96,7 +96,7 @@ public async Task Update_KustoScriptsUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_KustoScriptsDelete() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoScriptsDelete.json // this example is just showing the usage of "Scripts_Delete" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageCollection.cs new file mode 100644 index 0000000000000..78238351d0340 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageCollection.cs @@ -0,0 +1,209 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.Kusto; +using Azure.ResourceManager.Kusto.Models; + +namespace Azure.ResourceManager.Kusto.Samples +{ + public partial class Sample_SandboxCustomImageCollection + { + // KustoSandboxCustomImagesListByCluster + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_KustoSandboxCustomImagesListByCluster() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImagesList.json + // this example is just showing the usage of "SandboxCustomImages_ListByCluster" 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 KustoClusterResource created on azure + // for more information of creating KustoClusterResource, please refer to the document of KustoClusterResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + ResourceIdentifier kustoClusterResourceId = KustoClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + KustoClusterResource kustoCluster = client.GetKustoClusterResource(kustoClusterResourceId); + + // get the collection of this SandboxCustomImageResource + SandboxCustomImageCollection collection = kustoCluster.GetSandboxCustomImages(); + + // invoke the operation and iterate over the result + await foreach (SandboxCustomImageResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SandboxCustomImageData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // KustoSandboxCustomImagesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_KustoSandboxCustomImagesGet() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImagesGet.json + // this example is just showing the usage of "SandboxCustomImages_Get" 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 KustoClusterResource created on azure + // for more information of creating KustoClusterResource, please refer to the document of KustoClusterResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + ResourceIdentifier kustoClusterResourceId = KustoClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + KustoClusterResource kustoCluster = client.GetKustoClusterResource(kustoClusterResourceId); + + // get the collection of this SandboxCustomImageResource + SandboxCustomImageCollection collection = kustoCluster.GetSandboxCustomImages(); + + // invoke the operation + string sandboxCustomImageName = "customImage8"; + SandboxCustomImageResource result = await collection.GetAsync(sandboxCustomImageName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SandboxCustomImageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // KustoSandboxCustomImagesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_KustoSandboxCustomImagesGet() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImagesGet.json + // this example is just showing the usage of "SandboxCustomImages_Get" 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 KustoClusterResource created on azure + // for more information of creating KustoClusterResource, please refer to the document of KustoClusterResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + ResourceIdentifier kustoClusterResourceId = KustoClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + KustoClusterResource kustoCluster = client.GetKustoClusterResource(kustoClusterResourceId); + + // get the collection of this SandboxCustomImageResource + SandboxCustomImageCollection collection = kustoCluster.GetSandboxCustomImages(); + + // invoke the operation + string sandboxCustomImageName = "customImage8"; + bool result = await collection.ExistsAsync(sandboxCustomImageName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // KustoSandboxCustomImagesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_KustoSandboxCustomImagesGet() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImagesGet.json + // this example is just showing the usage of "SandboxCustomImages_Get" 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 KustoClusterResource created on azure + // for more information of creating KustoClusterResource, please refer to the document of KustoClusterResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + ResourceIdentifier kustoClusterResourceId = KustoClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + KustoClusterResource kustoCluster = client.GetKustoClusterResource(kustoClusterResourceId); + + // get the collection of this SandboxCustomImageResource + SandboxCustomImageCollection collection = kustoCluster.GetSandboxCustomImages(); + + // invoke the operation + string sandboxCustomImageName = "customImage8"; + NullableResponse response = await collection.GetIfExistsAsync(sandboxCustomImageName); + SandboxCustomImageResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SandboxCustomImageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // KustoSandboxCustomImagesCreateOrUpdate + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_KustoSandboxCustomImagesCreateOrUpdate() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImagesCreateOrUpdate.json + // this example is just showing the usage of "SandboxCustomImages_CreateOrUpdate" 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 KustoClusterResource created on azure + // for more information of creating KustoClusterResource, please refer to the document of KustoClusterResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + ResourceIdentifier kustoClusterResourceId = KustoClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + KustoClusterResource kustoCluster = client.GetKustoClusterResource(kustoClusterResourceId); + + // get the collection of this SandboxCustomImageResource + SandboxCustomImageCollection collection = kustoCluster.GetSandboxCustomImages(); + + // invoke the operation + string sandboxCustomImageName = "customImage8"; + SandboxCustomImageData data = new SandboxCustomImageData() + { + Language = SandboxCustomImageLanguage.Python, + LanguageVersion = "3.10.8", + RequirementsFileContent = "Requests", + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sandboxCustomImageName, data); + SandboxCustomImageResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SandboxCustomImageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageResource.cs new file mode 100644 index 0000000000000..455ac8738acb0 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageResource.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.Kusto; +using Azure.ResourceManager.Kusto.Models; + +namespace Azure.ResourceManager.Kusto.Samples +{ + public partial class Sample_SandboxCustomImageResource + { + // KustoSandboxCustomImagesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_KustoSandboxCustomImagesGet() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImagesGet.json + // this example is just showing the usage of "SandboxCustomImages_Get" 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 SandboxCustomImageResource created on azure + // for more information of creating SandboxCustomImageResource, please refer to the document of SandboxCustomImageResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + string sandboxCustomImageName = "customImage8"; + ResourceIdentifier sandboxCustomImageResourceId = SandboxCustomImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName); + SandboxCustomImageResource sandboxCustomImage = client.GetSandboxCustomImageResource(sandboxCustomImageResourceId); + + // invoke the operation + SandboxCustomImageResource result = await sandboxCustomImage.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SandboxCustomImageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // KustoSandboxCustomImagesUpdate + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_KustoSandboxCustomImagesUpdate() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImageUpdate.json + // this example is just showing the usage of "SandboxCustomImages_Update" 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 SandboxCustomImageResource created on azure + // for more information of creating SandboxCustomImageResource, please refer to the document of SandboxCustomImageResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + string sandboxCustomImageName = "customImage8"; + ResourceIdentifier sandboxCustomImageResourceId = SandboxCustomImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName); + SandboxCustomImageResource sandboxCustomImage = client.GetSandboxCustomImageResource(sandboxCustomImageResourceId); + + // invoke the operation + SandboxCustomImageData data = new SandboxCustomImageData() + { + Language = SandboxCustomImageLanguage.Python, + LanguageVersion = "3.10.8", + RequirementsFileContent = "Requests", + }; + ArmOperation lro = await sandboxCustomImage.UpdateAsync(WaitUntil.Completed, data); + SandboxCustomImageResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + SandboxCustomImageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // SandboxCustomImagesDelete + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_SandboxCustomImagesDelete() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSandboxCustomImageDelete.json + // this example is just showing the usage of "SandboxCustomImages_Delete" 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 SandboxCustomImageResource created on azure + // for more information of creating SandboxCustomImageResource, please refer to the document of SandboxCustomImageResource + string subscriptionId = "12345678-1234-1234-1234-123456789098"; + string resourceGroupName = "kustorptest"; + string clusterName = "kustoCluster"; + string sandboxCustomImageName = "customImage8"; + ResourceIdentifier sandboxCustomImageResourceId = SandboxCustomImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName); + SandboxCustomImageResource sandboxCustomImage = client.GetSandboxCustomImageResource(sandboxCustomImageResourceId); + + // invoke the operation + await sandboxCustomImage.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 6471f4eaecded..e4724d7a68129 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSkus_KustoListRegionSkus() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoSkus.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoSkus.json // this example is just showing the usage of "Skus_List" 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 diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Azure.ResourceManager.Kusto.csproj b/sdk/kusto/Azure.ResourceManager.Kusto/src/Azure.ResourceManager.Kusto.csproj index 06da4eb4012ee..689b7c9f40fe9 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Azure.ResourceManager.Kusto.csproj +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Azure.ResourceManager.Kusto.csproj @@ -1,6 +1,6 @@ - 1.5.0-beta.1 + 1.5.0 1.4.0 Azure.ResourceManager.Kusto diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Customized/ArmKustoModelFactory.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Customized/ArmKustoModelFactory.cs new file mode 100644 index 0000000000000..878193896bcb3 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Customized/ArmKustoModelFactory.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager.Models; +using System.Collections.Generic; +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Kusto.Models +{ + public static partial class ArmKustoModelFactory + { + /// Initializes a new instance of KustoClusterPatch. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The SKU of the cluster. + /// The identity of the cluster, if configured. + /// The state of the resource. + /// The provisioned state of the resource. + /// The cluster URI. + /// The cluster data ingestion URI. + /// The reason for the cluster's current state. + /// The cluster's external tenants. + /// Optimized auto scale definition. + /// A boolean value that indicates if the cluster's disks are encrypted. + /// A boolean value that indicates if the streaming ingest is enabled. + /// Virtual network definition. + /// KeyVault properties for the cluster encryption. + /// A boolean value that indicates if the purge operations are enabled. + /// List of the cluster's language extensions. + /// A boolean value that indicates if double encryption is enabled. + /// Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed. + /// The list of ips in the format of CIDR allowed to connect to the cluster. + /// The engine type. + /// The cluster's accepted audiences. + /// A boolean value that indicates if the cluster could be automatically stopped (due to lack of data or no activity for many days). + /// Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + /// List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster. + /// Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). + /// Virtual Cluster graduation properties. + /// A list of private endpoint connections. + /// Properties of the peer cluster involved in a migration to/from this cluster. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, ManagedServiceIdentity identity, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri uri, Uri dataIngestionUri, string stateReason, IEnumerable trustedExternalTenants, OptimizedAutoscale optimizedAutoscale, bool? isDiskEncryptionEnabled, bool? isStreamingIngestEnabled, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration, KustoKeyVaultProperties keyVaultProperties, bool? isPurgeEnabled, IEnumerable languageExtensionsValue, bool? isDoubleEncryptionEnabled, KustoClusterPublicNetworkAccess? publicNetworkAccess, IEnumerable allowedIPRangeList, KustoClusterEngineType? engineType, IEnumerable acceptedAudiences, bool? isAutoStopEnabled, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess, IEnumerable allowedFqdnList, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IEnumerable privateEndpointConnections, MigrationClusterProperties migrationCluster) + { + return KustoClusterPatch(id, name, resourceType, systemData, tags, location, sku, default, identity, state, provisioningState, uri, dataIngestionUri, stateReason, trustedExternalTenants, optimizedAutoscale, isDiskEncryptionEnabled, isStreamingIngestEnabled, virtualNetworkConfiguration, keyVaultProperties, isPurgeEnabled, languageExtensionsValue, isDoubleEncryptionEnabled, publicNetworkAccess, allowedIPRangeList, engineType, acceptedAudiences, isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList, publicIPType, virtualClusterGraduationProperties, privateEndpointConnections, migrationCluster); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs index 7c7dc4e39351b..d00e2b6cf1935 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs @@ -113,6 +113,7 @@ public static MigrationClusterProperties MigrationClusterProperties(string id = /// The tags. /// The location. /// The SKU of the cluster. + /// The availability zones of the cluster. /// The identity of the cluster, if configured. /// The state of the resource. /// The provisioned state of the resource. @@ -140,9 +141,10 @@ public static MigrationClusterProperties MigrationClusterProperties(string id = /// A list of private endpoint connections. /// Properties of the peer cluster involved in a migration to/from this cluster. /// A new instance for mocking. - public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, KustoSku sku = null, ManagedServiceIdentity identity = null, KustoClusterState? state = null, KustoProvisioningState? provisioningState = null, Uri uri = null, Uri dataIngestionUri = null, string stateReason = null, IEnumerable trustedExternalTenants = null, OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = null, bool? isStreamingIngestEnabled = null, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = null, IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = null, KustoClusterPublicNetworkAccess? publicNetworkAccess = null, IEnumerable allowedIPRangeList = null, KustoClusterEngineType? engineType = null, IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = null, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = null, IEnumerable allowedFqdnList = null, KustoClusterPublicIPType? publicIPType = null, string virtualClusterGraduationProperties = null, IEnumerable privateEndpointConnections = null, MigrationClusterProperties migrationCluster = null) + public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, KustoSku sku = null, IEnumerable zones = null, ManagedServiceIdentity identity = null, KustoClusterState? state = null, KustoProvisioningState? provisioningState = null, Uri uri = null, Uri dataIngestionUri = null, string stateReason = null, IEnumerable trustedExternalTenants = null, OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = null, bool? isStreamingIngestEnabled = null, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = null, IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = null, KustoClusterPublicNetworkAccess? publicNetworkAccess = null, IEnumerable allowedIPRangeList = null, KustoClusterEngineType? engineType = null, IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = null, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = null, IEnumerable allowedFqdnList = null, KustoClusterPublicIPType? publicIPType = null, string virtualClusterGraduationProperties = null, IEnumerable privateEndpointConnections = null, MigrationClusterProperties migrationCluster = null) { tags ??= new Dictionary(); + zones ??= new List(); trustedExternalTenants ??= new List(); languageExtensionsValue ??= new List(); allowedIPRangeList ??= new List(); @@ -150,7 +152,7 @@ public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id = null, allowedFqdnList ??= new List(); privateEndpointConnections ??= new List(); - return new KustoClusterPatch(id, name, resourceType, systemData, tags, location, sku, identity, state, provisioningState, uri, dataIngestionUri, stateReason, trustedExternalTenants?.ToList(), optimizedAutoscale, isDiskEncryptionEnabled, isStreamingIngestEnabled, virtualNetworkConfiguration, keyVaultProperties, isPurgeEnabled, languageExtensionsValue != null ? new KustoLanguageExtensionList(languageExtensionsValue?.ToList()) : null, isDoubleEncryptionEnabled, publicNetworkAccess, allowedIPRangeList?.ToList(), engineType, acceptedAudiences?.ToList(), isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList?.ToList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections?.ToList(), migrationCluster); + return new KustoClusterPatch(id, name, resourceType, systemData, tags, location, sku, zones?.ToList(), identity, state, provisioningState, uri, dataIngestionUri, stateReason, trustedExternalTenants?.ToList(), optimizedAutoscale, isDiskEncryptionEnabled, isStreamingIngestEnabled, virtualNetworkConfiguration, keyVaultProperties, isPurgeEnabled, languageExtensionsValue != null ? new KustoLanguageExtensionList(languageExtensionsValue?.ToList()) : null, isDoubleEncryptionEnabled, publicNetworkAccess, allowedIPRangeList?.ToList(), engineType, acceptedAudiences?.ToList(), isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList?.ToList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections?.ToList(), migrationCluster); } /// Initializes a new instance of KustoNameAvailabilityResult. @@ -348,6 +350,21 @@ public static KustoScriptData KustoScriptData(ResourceIdentifier id = null, stri return new KustoScriptData(id, name, resourceType, systemData, scriptUri, scriptUriSasToken, scriptContent, forceUpdateTag, shouldContinueOnErrors, provisioningState); } + /// Initializes a new instance of SandboxCustomImageData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The language name, for example Python. + /// The version of the language. + /// The requirements file content. + /// The provisioned state of the resource. + /// A new instance for mocking. + public static SandboxCustomImageData SandboxCustomImageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SandboxCustomImageLanguage? language = null, string languageVersion = null, string requirementsFileContent = null, KustoProvisioningState? provisioningState = null) + { + return new SandboxCustomImageData(id, name, resourceType, systemData, language, languageVersion, requirementsFileContent, provisioningState); + } + /// Initializes a new instance of KustoManagedPrivateEndpointData. /// The id. /// The name. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs index 5759f2e551b03..1908fe1a881f6 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs @@ -183,6 +183,25 @@ public static KustoScriptResource GetKustoScriptResource(this ArmClient client, } #endregion + #region SandboxCustomImageResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SandboxCustomImageResource GetSandboxCustomImageResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SandboxCustomImageResource.ValidateResourceId(id); + return new SandboxCustomImageResource(client, id); + } + ); + } + #endregion + #region KustoPrivateEndpointConnectionResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs index 7c18671db6ed1..dfa9f4ed5facf 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs @@ -45,6 +45,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly AttachedDatabaseConfigurationsRestOperations _kustoAttachedDatabaseConfigurationAttachedDatabaseConfigurationsRestClient; private readonly ClientDiagnostics _kustoManagedPrivateEndpointManagedPrivateEndpointsClientDiagnostics; private readonly ManagedPrivateEndpointsRestOperations _kustoManagedPrivateEndpointManagedPrivateEndpointsRestClient; + private readonly ClientDiagnostics _sandboxCustomImageClientDiagnostics; + private readonly SandboxCustomImagesRestOperations _sandboxCustomImageRestClient; private readonly KustoClusterData _data; /// Initializes a new instance of the class for mocking. @@ -81,6 +83,9 @@ internal KustoClusterResource(ArmClient client, ResourceIdentifier id) : base(cl _kustoManagedPrivateEndpointManagedPrivateEndpointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Kusto", KustoManagedPrivateEndpointResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(KustoManagedPrivateEndpointResource.ResourceType, out string kustoManagedPrivateEndpointManagedPrivateEndpointsApiVersion); _kustoManagedPrivateEndpointManagedPrivateEndpointsRestClient = new ManagedPrivateEndpointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, kustoManagedPrivateEndpointManagedPrivateEndpointsApiVersion); + _sandboxCustomImageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Kusto", SandboxCustomImageResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SandboxCustomImageResource.ResourceType, out string sandboxCustomImageApiVersion); + _sandboxCustomImageRestClient = new SandboxCustomImagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, sandboxCustomImageApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -322,6 +327,59 @@ public virtual Response GetKustoManagedPriv return GetKustoManagedPrivateEndpoints().Get(managedPrivateEndpointName, cancellationToken); } + /// Gets a collection of SandboxCustomImageResources in the KustoCluster. + /// An object representing collection of SandboxCustomImageResources and their operations over a SandboxCustomImageResource. + public virtual SandboxCustomImageCollection GetSandboxCustomImages() + { + return GetCachedClient(Client => new SandboxCustomImageCollection(Client, Id)); + } + + /// + /// Returns a sandbox custom image + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetSandboxCustomImageAsync(string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + return await GetSandboxCustomImages().GetAsync(sandboxCustomImageName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Returns a sandbox custom image + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetSandboxCustomImage(string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + return GetSandboxCustomImages().Get(sandboxCustomImageName, cancellationToken); + } + /// Gets a collection of KustoPrivateEndpointConnectionResources in the KustoCluster. /// An object representing collection of KustoPrivateEndpointConnectionResources and their operations over a KustoPrivateEndpointConnectionResource. public virtual KustoPrivateEndpointConnectionCollection GetKustoPrivateEndpointConnections() @@ -1588,6 +1646,74 @@ public virtual Response CheckKustoManagedPrivateEnd } } + /// + /// Checks that the sandbox custom image resource name is valid and is not already in use. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImagesCheckNameAvailability + /// + /// + /// Operation Id + /// SandboxCustomImages_CheckNameAvailability + /// + /// + /// + /// The name of the resource. + /// The cancellation token to use. + /// is null. + public virtual async Task> CheckNameAvailabilitySandboxCustomImageAsync(SandboxCustomImagesCheckNameContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("KustoClusterResource.CheckNameAvailabilitySandboxCustomImage"); + scope.Start(); + try + { + var response = await _sandboxCustomImageRestClient.CheckNameAvailabilityAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks that the sandbox custom image resource name is valid and is not already in use. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImagesCheckNameAvailability + /// + /// + /// Operation Id + /// SandboxCustomImages_CheckNameAvailability + /// + /// + /// + /// The name of the resource. + /// The cancellation token to use. + /// is null. + public virtual Response CheckNameAvailabilitySandboxCustomImage(SandboxCustomImagesCheckNameContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("KustoClusterResource.CheckNameAvailabilitySandboxCustomImage"); + scope.Start(); + try + { + var response = _sandboxCustomImageRestClient.CheckNameAvailability(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Add a tag to the current resource. /// diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/SandboxCustomImageOperationSource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/SandboxCustomImageOperationSource.cs new file mode 100644 index 0000000000000..e2355be49e6d7 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/SandboxCustomImageOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Kusto +{ + internal class SandboxCustomImageOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal SandboxCustomImageOperationSource(ArmClient client) + { + _client = client; + } + + SandboxCustomImageResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = SandboxCustomImageData.DeserializeSandboxCustomImageData(document.RootElement); + return new SandboxCustomImageResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = SandboxCustomImageData.DeserializeSandboxCustomImageData(document.RootElement); + return new SandboxCustomImageResource(_client, data); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDetail.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDetail.Serialization.cs index f11433590dbb3..ae2fa517d338c 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDetail.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDetail.Serialization.cs @@ -20,6 +20,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("port"u8); writer.WriteNumberValue(Port.Value); } + if (Optional.IsDefined(IPAddress)) + { + writer.WritePropertyName("ipAddress"u8); + writer.WriteStringValue(IPAddress); + } writer.WriteEndObject(); } @@ -30,6 +35,7 @@ internal static EndpointDetail DeserializeEndpointDetail(JsonElement element) return null; } Optional port = default; + Optional ipAddress = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("port"u8)) @@ -41,8 +47,13 @@ internal static EndpointDetail DeserializeEndpointDetail(JsonElement element) port = property.Value.GetInt32(); continue; } + if (property.NameEquals("ipAddress"u8)) + { + ipAddress = property.Value.GetString(); + continue; + } } - return new EndpointDetail(Optional.ToNullable(port)); + return new EndpointDetail(Optional.ToNullable(port), ipAddress.Value); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDetail.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDetail.cs index df9acb0cb0a04..ab0a0dcc1f687 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDetail.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDetail.cs @@ -17,12 +17,16 @@ public EndpointDetail() /// Initializes a new instance of EndpointDetail. /// The port an endpoint is connected to. - internal EndpointDetail(int? port) + /// The ip address of the endpoint. + internal EndpointDetail(int? port, string ipAddress) { Port = port; + IPAddress = ipAddress; } /// The port an endpoint is connected to. public int? Port { get; set; } + /// The ip address of the endpoint. + public string IPAddress { get; set; } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.Serialization.cs index e80f3bf2ffb6e..8c47977d564cb 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.Serialization.cs @@ -24,6 +24,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("sku"u8); writer.WriteObjectValue(Sku); } + if (Optional.IsCollectionDefined(Zones)) + { + writer.WritePropertyName("zones"u8); + writer.WriteStartArray(); + foreach (var item in Zones) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"u8); @@ -165,6 +175,7 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme return null; } Optional sku = default; + Optional> zones = default; Optional identity = default; Optional> tags = default; AzureLocation location = default; @@ -208,6 +219,20 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme sku = KustoSku.DeserializeKustoSku(property.Value); continue; } + if (property.NameEquals("zones"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + zones = array; + continue; + } if (property.NameEquals("identity"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -515,7 +540,7 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme continue; } } - return new KustoClusterPatch(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(state), Optional.ToNullable(provisioningState), uri.Value, dataIngestionUri.Value, stateReason.Value, Optional.ToList(trustedExternalTenants), optimizedAutoscale.Value, Optional.ToNullable(enableDiskEncryption), Optional.ToNullable(enableStreamingIngest), virtualNetworkConfiguration.Value, keyVaultProperties.Value, Optional.ToNullable(enablePurge), languageExtensions.Value, Optional.ToNullable(enableDoubleEncryption), Optional.ToNullable(publicNetworkAccess), Optional.ToList(allowedIPRangeList), Optional.ToNullable(engineType), Optional.ToList(acceptedAudiences), Optional.ToNullable(enableAutoStop), Optional.ToNullable(restrictOutboundNetworkAccess), Optional.ToList(allowedFqdnList), Optional.ToNullable(publicIPType), virtualClusterGraduationProperties.Value, Optional.ToList(privateEndpointConnections), migrationCluster.Value); + return new KustoClusterPatch(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, Optional.ToList(zones), identity, Optional.ToNullable(state), Optional.ToNullable(provisioningState), uri.Value, dataIngestionUri.Value, stateReason.Value, Optional.ToList(trustedExternalTenants), optimizedAutoscale.Value, Optional.ToNullable(enableDiskEncryption), Optional.ToNullable(enableStreamingIngest), virtualNetworkConfiguration.Value, keyVaultProperties.Value, Optional.ToNullable(enablePurge), languageExtensions.Value, Optional.ToNullable(enableDoubleEncryption), Optional.ToNullable(publicNetworkAccess), Optional.ToList(allowedIPRangeList), Optional.ToNullable(engineType), Optional.ToList(acceptedAudiences), Optional.ToNullable(enableAutoStop), Optional.ToNullable(restrictOutboundNetworkAccess), Optional.ToList(allowedFqdnList), Optional.ToNullable(publicIPType), virtualClusterGraduationProperties.Value, Optional.ToList(privateEndpointConnections), migrationCluster.Value); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs index 979becb579431..e7c5fad1095ec 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs @@ -20,6 +20,7 @@ public partial class KustoClusterPatch : TrackedResourceData /// The location. public KustoClusterPatch(AzureLocation location) : base(location) { + Zones = new ChangeTrackingList(); TrustedExternalTenants = new ChangeTrackingList(); AllowedIPRangeList = new ChangeTrackingList(); AcceptedAudiences = new ChangeTrackingList(); @@ -35,6 +36,7 @@ public KustoClusterPatch(AzureLocation location) : base(location) /// The tags. /// The location. /// The SKU of the cluster. + /// The availability zones of the cluster. /// The identity of the cluster, if configured. /// The state of the resource. /// The provisioned state of the resource. @@ -61,9 +63,10 @@ public KustoClusterPatch(AzureLocation location) : base(location) /// Virtual Cluster graduation properties. /// A list of private endpoint connections. /// Properties of the peer cluster involved in a migration to/from this cluster. - internal KustoClusterPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, ManagedServiceIdentity identity, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri uri, Uri dataIngestionUri, string stateReason, IList trustedExternalTenants, OptimizedAutoscale optimizedAutoscale, bool? isDiskEncryptionEnabled, bool? isStreamingIngestEnabled, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration, KustoKeyVaultProperties keyVaultProperties, bool? isPurgeEnabled, KustoLanguageExtensionList languageExtensions, bool? isDoubleEncryptionEnabled, KustoClusterPublicNetworkAccess? publicNetworkAccess, IList allowedIPRangeList, KustoClusterEngineType? engineType, IList acceptedAudiences, bool? isAutoStopEnabled, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess, IList allowedFqdnList, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IReadOnlyList privateEndpointConnections, MigrationClusterProperties migrationCluster) : base(id, name, resourceType, systemData, tags, location) + internal KustoClusterPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, IList zones, ManagedServiceIdentity identity, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri uri, Uri dataIngestionUri, string stateReason, IList trustedExternalTenants, OptimizedAutoscale optimizedAutoscale, bool? isDiskEncryptionEnabled, bool? isStreamingIngestEnabled, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration, KustoKeyVaultProperties keyVaultProperties, bool? isPurgeEnabled, KustoLanguageExtensionList languageExtensions, bool? isDoubleEncryptionEnabled, KustoClusterPublicNetworkAccess? publicNetworkAccess, IList allowedIPRangeList, KustoClusterEngineType? engineType, IList acceptedAudiences, bool? isAutoStopEnabled, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess, IList allowedFqdnList, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IReadOnlyList privateEndpointConnections, MigrationClusterProperties migrationCluster) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; + Zones = zones; Identity = identity; State = state; ProvisioningState = provisioningState; @@ -94,6 +97,8 @@ internal KustoClusterPatch(ResourceIdentifier id, string name, ResourceType reso /// The SKU of the cluster. public KustoSku Sku { get; set; } + /// The availability zones of the cluster. + public IList Zones { get; } /// The identity of the cluster, if configured. public ManagedServiceIdentity Identity { get; set; } /// The state of the resource. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVirtualNetworkConfiguration.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVirtualNetworkConfiguration.Serialization.cs index dfb3ba3e5fe3c..d78941f4929a1 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVirtualNetworkConfiguration.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVirtualNetworkConfiguration.Serialization.cs @@ -21,6 +21,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(EnginePublicIPId); writer.WritePropertyName("dataManagementPublicIpId"u8); writer.WriteStringValue(DataManagementPublicIPId); + if (Optional.IsDefined(State)) + { + writer.WritePropertyName("state"u8); + writer.WriteStringValue(State.Value.ToString()); + } writer.WriteEndObject(); } @@ -33,6 +38,7 @@ internal static KustoClusterVirtualNetworkConfiguration DeserializeKustoClusterV string subnetId = default; string enginePublicIPId = default; string dataManagementPublicIPId = default; + Optional state = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("subnetId"u8)) @@ -50,8 +56,17 @@ internal static KustoClusterVirtualNetworkConfiguration DeserializeKustoClusterV dataManagementPublicIPId = property.Value.GetString(); continue; } + if (property.NameEquals("state"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + state = new KustoClusterVnetState(property.Value.GetString()); + continue; + } } - return new KustoClusterVirtualNetworkConfiguration(subnetId, enginePublicIPId, dataManagementPublicIPId); + return new KustoClusterVirtualNetworkConfiguration(subnetId, enginePublicIPId, dataManagementPublicIPId, Optional.ToNullable(state)); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVirtualNetworkConfiguration.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVirtualNetworkConfiguration.cs index 8436d97b203a6..310ddf6437cb4 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVirtualNetworkConfiguration.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVirtualNetworkConfiguration.cs @@ -29,11 +29,26 @@ public KustoClusterVirtualNetworkConfiguration(string subnetId, string enginePub DataManagementPublicIPId = dataManagementPublicIPId; } + /// Initializes a new instance of KustoClusterVirtualNetworkConfiguration. + /// The subnet resource id. + /// Engine service's public IP address resource id. + /// Data management's service public IP address resource id. + /// When enabled, the cluster is deployed into the configured subnet, when disabled it will be removed from the subnet. + internal KustoClusterVirtualNetworkConfiguration(string subnetId, string enginePublicIPId, string dataManagementPublicIPId, KustoClusterVnetState? state) + { + SubnetId = subnetId; + EnginePublicIPId = enginePublicIPId; + DataManagementPublicIPId = dataManagementPublicIPId; + State = state; + } + /// The subnet resource id. public string SubnetId { get; set; } /// Engine service's public IP address resource id. public string EnginePublicIPId { get; set; } /// Data management's service public IP address resource id. public string DataManagementPublicIPId { get; set; } + /// When enabled, the cluster is deployed into the configured subnet, when disabled it will be removed from the subnet. + public KustoClusterVnetState? State { get; set; } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVnetState.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVnetState.cs new file mode 100644 index 0000000000000..93d474373ffd9 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterVnetState.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// When enabled, the cluster is deployed into the configured subnet, when disabled it will be removed from the subnet. + public readonly partial struct KustoClusterVnetState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public KustoClusterVnetState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static KustoClusterVnetState Enabled { get; } = new KustoClusterVnetState(EnabledValue); + /// Disabled. + public static KustoClusterVnetState Disabled { get; } = new KustoClusterVnetState(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(KustoClusterVnetState left, KustoClusterVnetState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KustoClusterVnetState left, KustoClusterVnetState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator KustoClusterVnetState(string value) => new KustoClusterVnetState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KustoClusterVnetState other && Equals(other); + /// + public bool Equals(KustoClusterVnetState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtension.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtension.Serialization.cs index f1e92aebb30f4..db0dbcefafbd7 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtension.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtension.Serialization.cs @@ -25,6 +25,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("languageExtensionImageName"u8); writer.WriteStringValue(LanguageExtensionImageName.Value.ToString()); } + if (Optional.IsDefined(LanguageExtensionCustomImageName)) + { + writer.WritePropertyName("languageExtensionCustomImageName"u8); + writer.WriteStringValue(LanguageExtensionCustomImageName); + } writer.WriteEndObject(); } @@ -36,6 +41,7 @@ internal static KustoLanguageExtension DeserializeKustoLanguageExtension(JsonEle } Optional languageExtensionName = default; Optional languageExtensionImageName = default; + Optional languageExtensionCustomImageName = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("languageExtensionName"u8)) @@ -56,8 +62,13 @@ internal static KustoLanguageExtension DeserializeKustoLanguageExtension(JsonEle languageExtensionImageName = new KustoLanguageExtensionImageName(property.Value.GetString()); continue; } + if (property.NameEquals("languageExtensionCustomImageName"u8)) + { + languageExtensionCustomImageName = property.Value.GetString(); + continue; + } } - return new KustoLanguageExtension(Optional.ToNullable(languageExtensionName), Optional.ToNullable(languageExtensionImageName)); + return new KustoLanguageExtension(Optional.ToNullable(languageExtensionName), Optional.ToNullable(languageExtensionImageName), languageExtensionCustomImageName.Value); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtension.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtension.cs index 87d76d57fbf16..c5d33416f209d 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtension.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtension.cs @@ -18,15 +18,19 @@ public KustoLanguageExtension() /// Initializes a new instance of KustoLanguageExtension. /// The language extension name. /// The language extension image name. - internal KustoLanguageExtension(KustoLanguageExtensionName? languageExtensionName, KustoLanguageExtensionImageName? languageExtensionImageName) + /// The language extension custom image name. + internal KustoLanguageExtension(KustoLanguageExtensionName? languageExtensionName, KustoLanguageExtensionImageName? languageExtensionImageName, string languageExtensionCustomImageName) { LanguageExtensionName = languageExtensionName; LanguageExtensionImageName = languageExtensionImageName; + LanguageExtensionCustomImageName = languageExtensionCustomImageName; } /// The language extension name. public KustoLanguageExtensionName? LanguageExtensionName { get; set; } /// The language extension image name. public KustoLanguageExtensionImageName? LanguageExtensionImageName { get; set; } + /// The language extension custom image name. + public string LanguageExtensionCustomImageName { get; set; } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs index 5bb172bb2cdec..716d3fc15cb2e 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs @@ -25,9 +25,15 @@ public KustoLanguageExtensionImageName(string value) private const string RValue = "R"; private const string Python3_6_5Value = "Python3_6_5"; private const string Python3_10_8Value = "Python3_10_8"; + private const string Python3108DLValue = "Python3_10_8_DL"; + private const string PythonCustomImageValue = "PythonCustomImage"; /// R. public static KustoLanguageExtensionImageName R { get; } = new KustoLanguageExtensionImageName(RValue); + /// Python3_10_8_DL. + public static KustoLanguageExtensionImageName Python3108DL { get; } = new KustoLanguageExtensionImageName(Python3108DLValue); + /// PythonCustomImage. + public static KustoLanguageExtensionImageName PythonCustomImage { get; } = new KustoLanguageExtensionImageName(PythonCustomImageValue); /// Determines if two values are the same. public static bool operator ==(KustoLanguageExtensionImageName left, KustoLanguageExtensionImageName right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageData.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageData.Serialization.cs new file mode 100644 index 0000000000000..984c757d4a5a0 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageData.Serialization.cs @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Kusto.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Kusto +{ + public partial class SandboxCustomImageData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language.Value.ToString()); + } + if (Optional.IsDefined(LanguageVersion)) + { + writer.WritePropertyName("languageVersion"u8); + writer.WriteStringValue(LanguageVersion); + } + if (Optional.IsDefined(RequirementsFileContent)) + { + writer.WritePropertyName("requirementsFileContent"u8); + writer.WriteStringValue(RequirementsFileContent); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static SandboxCustomImageData DeserializeSandboxCustomImageData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional language = default; + Optional languageVersion = default; + Optional requirementsFileContent = default; + Optional provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("language"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + language = new SandboxCustomImageLanguage(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("languageVersion"u8)) + { + languageVersion = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("requirementsFileContent"u8)) + { + requirementsFileContent = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new KustoProvisioningState(property0.Value.GetString()); + continue; + } + } + continue; + } + } + return new SandboxCustomImageData(id, name, type, systemData.Value, Optional.ToNullable(language), languageVersion.Value, requirementsFileContent.Value, Optional.ToNullable(provisioningState)); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageLanguage.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageLanguage.cs new file mode 100644 index 0000000000000..4c96ed0a1893e --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageLanguage.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The language name, for example Python. + public readonly partial struct SandboxCustomImageLanguage : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SandboxCustomImageLanguage(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PythonValue = "Python"; + + /// Python. + public static SandboxCustomImageLanguage Python { get; } = new SandboxCustomImageLanguage(PythonValue); + /// Determines if two values are the same. + public static bool operator ==(SandboxCustomImageLanguage left, SandboxCustomImageLanguage right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SandboxCustomImageLanguage left, SandboxCustomImageLanguage right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SandboxCustomImageLanguage(string value) => new SandboxCustomImageLanguage(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SandboxCustomImageLanguage other && Equals(other); + /// + public bool Equals(SandboxCustomImageLanguage other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageType.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageType.cs new file mode 100644 index 0000000000000..35967d97c2d02 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The type of resource, for instance Microsoft.Kusto/clusters/sandboxCustomImages. + public readonly partial struct SandboxCustomImageType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SandboxCustomImageType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MicrosoftKustoClustersSandboxCustomImagesValue = "Microsoft.Kusto/clusters/sandboxCustomImages"; + + /// Microsoft.Kusto/clusters/sandboxCustomImages. + public static SandboxCustomImageType MicrosoftKustoClustersSandboxCustomImages { get; } = new SandboxCustomImageType(MicrosoftKustoClustersSandboxCustomImagesValue); + /// Determines if two values are the same. + public static bool operator ==(SandboxCustomImageType left, SandboxCustomImageType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SandboxCustomImageType left, SandboxCustomImageType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SandboxCustomImageType(string value) => new SandboxCustomImageType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SandboxCustomImageType other && Equals(other); + /// + public bool Equals(SandboxCustomImageType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesCheckNameContent.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesCheckNameContent.Serialization.cs new file mode 100644 index 0000000000000..202bba6d43797 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesCheckNameContent.Serialization.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class SandboxCustomImagesCheckNameContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ImageType.ToString()); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesCheckNameContent.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesCheckNameContent.cs new file mode 100644 index 0000000000000..3bd8f95d390d4 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesCheckNameContent.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The result returned from a sandboxCustomImage check name availability request. + public partial class SandboxCustomImagesCheckNameContent + { + /// Initializes a new instance of SandboxCustomImagesCheckNameContent. + /// Sandbox custom image resource name. + /// is null. + public SandboxCustomImagesCheckNameContent(string name) + { + Argument.AssertNotNull(name, nameof(name)); + + Name = name; + ImageType = SandboxCustomImageType.MicrosoftKustoClustersSandboxCustomImages; + } + + /// Sandbox custom image resource name. + public string Name { get; } + /// The type of resource, for instance Microsoft.Kusto/clusters/sandboxCustomImages. + public SandboxCustomImageType ImageType { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.Serialization.cs new file mode 100644 index 0000000000000..d41eb695c55bd --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.Serialization.cs @@ -0,0 +1,50 @@ +// 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; +using Azure.ResourceManager.Kusto; + +namespace Azure.ResourceManager.Kusto.Models +{ + internal partial class SandboxCustomImagesListResult + { + internal static SandboxCustomImagesListResult DeserializeSandboxCustomImagesListResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional nextLink = default; + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SandboxCustomImageData.DeserializeSandboxCustomImageData(item)); + } + value = array; + continue; + } + } + return new SandboxCustomImagesListResult(nextLink.Value, Optional.ToList(value)); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.cs new file mode 100644 index 0000000000000..f60d824e49c3c --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Kusto; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The list Kusto sandbox custom images operation response. + internal partial class SandboxCustomImagesListResult + { + /// Initializes a new instance of SandboxCustomImagesListResult. + internal SandboxCustomImagesListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of SandboxCustomImagesListResult. + /// Link to the next page of results. + /// The list of Kusto sandbox custom images. + internal SandboxCustomImagesListResult(string nextLink, IReadOnlyList value) + { + NextLink = nextLink; + Value = value; + } + + /// Link to the next page of results. + public string NextLink { get; } + /// The list of Kusto sandbox custom images. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs index 36301ce80ffe4..f1025af9e2115 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public AttachedDatabaseConfigurationsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs index 6972a54dc1ea5..637c222b561bd 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs @@ -33,7 +33,7 @@ public ClusterPrincipalAssignmentsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs index 5ccd1bcc48190..68c8377a06b5f 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs @@ -33,7 +33,7 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs index 17e47fd08401c..c070729fc1686 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public DataConnectionsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs index 65254c2596c41..900911833c72e 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs @@ -33,7 +33,7 @@ public DatabasePrincipalAssignmentsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs index 677c5b27d4aef..225a913a6536e 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs @@ -33,7 +33,7 @@ public DatabaseRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs index aafffdf1b4bd4..479b00ae19de5 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs @@ -33,7 +33,7 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs index e07069fa5df71..5601f561d3a83 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs @@ -33,7 +33,7 @@ public ManagedPrivateEndpointsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index c0a76ccc531b3..c445a6c43a6cb 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 834fc187e6c46..ec5f17f46d0f2 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs new file mode 100644 index 0000000000000..0b429711ab950 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs @@ -0,0 +1,542 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Kusto.Models; + +namespace Azure.ResourceManager.Kusto +{ + internal partial class SandboxCustomImagesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SandboxCustomImagesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public SandboxCustomImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-08-15"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Returns the list of the existing sandbox custom images of the given Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SandboxCustomImagesListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SandboxCustomImagesListResult.DeserializeSandboxCustomImagesListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Returns the list of the existing sandbox custom images of the given Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SandboxCustomImagesListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SandboxCustomImagesListResult.DeserializeSandboxCustomImagesListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages/", false); + uri.AppendPath(sandboxCustomImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Returns a sandbox custom image. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SandboxCustomImageData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SandboxCustomImageData.DeserializeSandboxCustomImageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((SandboxCustomImageData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Returns a sandbox custom image. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SandboxCustomImageData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SandboxCustomImageData.DeserializeSandboxCustomImageData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((SandboxCustomImageData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages/", false); + uri.AppendPath(sandboxCustomImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a sandbox custom image. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the sandbox custom image. + /// The sandbox custom image parameters. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a sandbox custom image. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the sandbox custom image. + /// The sandbox custom image parameters. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages/", false); + uri.AppendPath(sandboxCustomImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Updates a sandbox custom image. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the sandbox custom image. + /// The sandbox custom image parameters. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Updates a sandbox custom image. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the sandbox custom image. + /// The sandbox custom image parameters. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages/", false); + uri.AppendPath(sandboxCustomImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a sandbox custom image. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a sandbox custom image. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, clusterName, sandboxCustomImageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, SandboxCustomImagesCheckNameContent content) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImagesCheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Checks that the sandbox custom image resource name is valid and is not already in use. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the resource. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> CheckNameAvailabilityAsync(string subscriptionId, string resourceGroupName, string clusterName, SandboxCustomImagesCheckNameContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateCheckNameAvailabilityRequest(subscriptionId, resourceGroupName, clusterName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + KustoNameAvailabilityResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = KustoNameAvailabilityResult.DeserializeKustoNameAvailabilityResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Checks that the sandbox custom image resource name is valid and is not already in use. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the resource. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response CheckNameAvailability(string subscriptionId, string resourceGroupName, string clusterName, SandboxCustomImagesCheckNameContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateCheckNameAvailabilityRequest(subscriptionId, resourceGroupName, clusterName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + KustoNameAvailabilityResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = KustoNameAvailabilityResult.DeserializeKustoNameAvailabilityResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs index 6af08b88bbe8e..e57502043d24f 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs @@ -33,7 +33,7 @@ public ScriptsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs index 42ded0236e56c..26dfc37c1d4c8 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs @@ -33,7 +33,7 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-02"; + _apiVersion = apiVersion ?? "2023-08-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageCollection.cs new file mode 100644 index 0000000000000..290435b36d402 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageCollection.cs @@ -0,0 +1,413 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Kusto +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetSandboxCustomImages method from an instance of . + /// + public partial class SandboxCustomImageCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _sandboxCustomImageClientDiagnostics; + private readonly SandboxCustomImagesRestOperations _sandboxCustomImageRestClient; + + /// Initializes a new instance of the class for mocking. + protected SandboxCustomImageCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal SandboxCustomImageCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _sandboxCustomImageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Kusto", SandboxCustomImageResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SandboxCustomImageResource.ResourceType, out string sandboxCustomImageApiVersion); + _sandboxCustomImageRestClient = new SandboxCustomImagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, sandboxCustomImageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != KustoClusterResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, KustoClusterResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a sandbox custom image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the sandbox custom image. + /// The sandbox custom image parameters. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string sandboxCustomImageName, SandboxCustomImageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _sandboxCustomImageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, data, cancellationToken).ConfigureAwait(false); + var operation = new KustoArmOperation(new SandboxCustomImageOperationSource(Client), _sandboxCustomImageClientDiagnostics, Pipeline, _sandboxCustomImageRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a sandbox custom image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the sandbox custom image. + /// The sandbox custom image parameters. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string sandboxCustomImageName, SandboxCustomImageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _sandboxCustomImageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, data, cancellationToken); + var operation = new KustoArmOperation(new SandboxCustomImageOperationSource(Client), _sandboxCustomImageClientDiagnostics, Pipeline, _sandboxCustomImageRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Returns a sandbox custom image + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageCollection.Get"); + scope.Start(); + try + { + var response = await _sandboxCustomImageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SandboxCustomImageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Returns a sandbox custom image + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageCollection.Get"); + scope.Start(); + try + { + var response = _sandboxCustomImageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SandboxCustomImageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Returns the list of the existing sandbox custom images of the given Kusto cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages + /// + /// + /// Operation Id + /// SandboxCustomImages_ListByCluster + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _sandboxCustomImageRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new SandboxCustomImageResource(Client, SandboxCustomImageData.DeserializeSandboxCustomImageData(e)), _sandboxCustomImageClientDiagnostics, Pipeline, "SandboxCustomImageCollection.GetAll", "value", null, cancellationToken); + } + + /// + /// Returns the list of the existing sandbox custom images of the given Kusto cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages + /// + /// + /// Operation Id + /// SandboxCustomImages_ListByCluster + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _sandboxCustomImageRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => new SandboxCustomImageResource(Client, SandboxCustomImageData.DeserializeSandboxCustomImageData(e)), _sandboxCustomImageClientDiagnostics, Pipeline, "SandboxCustomImageCollection.GetAll", "value", null, cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageCollection.Exists"); + scope.Start(); + try + { + var response = await _sandboxCustomImageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageCollection.Exists"); + scope.Start(); + try + { + var response = _sandboxCustomImageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _sandboxCustomImageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SandboxCustomImageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The name of the sandbox custom image. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string sandboxCustomImageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(sandboxCustomImageName, nameof(sandboxCustomImageName)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageCollection.GetIfExists"); + scope.Start(); + try + { + var response = _sandboxCustomImageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sandboxCustomImageName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SandboxCustomImageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.cs new file mode 100644 index 0000000000000..5ddd85324af04 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager.Kusto.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Kusto +{ + /// + /// A class representing the SandboxCustomImage data model. + /// Class representing a Kusto sandbox custom image. + /// + public partial class SandboxCustomImageData : ResourceData + { + /// Initializes a new instance of SandboxCustomImageData. + public SandboxCustomImageData() + { + } + + /// Initializes a new instance of SandboxCustomImageData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The language name, for example Python. + /// The version of the language. + /// The requirements file content. + /// The provisioned state of the resource. + internal SandboxCustomImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SandboxCustomImageLanguage? language, string languageVersion, string requirementsFileContent, KustoProvisioningState? provisioningState) : base(id, name, resourceType, systemData) + { + Language = language; + LanguageVersion = languageVersion; + RequirementsFileContent = requirementsFileContent; + ProvisioningState = provisioningState; + } + + /// The language name, for example Python. + public SandboxCustomImageLanguage? Language { get; set; } + /// The version of the language. + public string LanguageVersion { get; set; } + /// The requirements file content. + public string RequirementsFileContent { get; set; } + /// The provisioned state of the resource. + public KustoProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageResource.cs new file mode 100644 index 0000000000000..bc03af04d02cc --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageResource.cs @@ -0,0 +1,297 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Kusto +{ + /// + /// A Class representing a SandboxCustomImage along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetSandboxCustomImageResource method. + /// Otherwise you can get one from its parent resource using the GetSandboxCustomImage method. + /// + public partial class SandboxCustomImageResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _sandboxCustomImageClientDiagnostics; + private readonly SandboxCustomImagesRestOperations _sandboxCustomImageRestClient; + private readonly SandboxCustomImageData _data; + + /// Initializes a new instance of the class for mocking. + protected SandboxCustomImageResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal SandboxCustomImageResource(ArmClient client, SandboxCustomImageData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal SandboxCustomImageResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _sandboxCustomImageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Kusto", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string sandboxCustomImageApiVersion); + _sandboxCustomImageRestClient = new SandboxCustomImagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, sandboxCustomImageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Kusto/clusters/sandboxCustomImages"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual SandboxCustomImageData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Returns a sandbox custom image + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageResource.Get"); + scope.Start(); + try + { + var response = await _sandboxCustomImageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SandboxCustomImageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Returns a sandbox custom image + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageResource.Get"); + scope.Start(); + try + { + var response = _sandboxCustomImageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SandboxCustomImageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a sandbox custom image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageResource.Delete"); + scope.Start(); + try + { + var response = await _sandboxCustomImageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new KustoArmOperation(_sandboxCustomImageClientDiagnostics, Pipeline, _sandboxCustomImageRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a sandbox custom image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageResource.Delete"); + scope.Start(); + try + { + var response = _sandboxCustomImageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new KustoArmOperation(_sandboxCustomImageClientDiagnostics, Pipeline, _sandboxCustomImageRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates a sandbox custom image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Update + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The sandbox custom image parameters. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, SandboxCustomImageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageResource.Update"); + scope.Start(); + try + { + var response = await _sandboxCustomImageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new KustoArmOperation(new SandboxCustomImageOperationSource(Client), _sandboxCustomImageClientDiagnostics, Pipeline, _sandboxCustomImageRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates a sandbox custom image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName} + /// + /// + /// Operation Id + /// SandboxCustomImages_Update + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The sandbox custom image parameters. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, SandboxCustomImageData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _sandboxCustomImageClientDiagnostics.CreateScope("SandboxCustomImageResource.Update"); + scope.Start(); + try + { + var response = _sandboxCustomImageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new KustoArmOperation(new SandboxCustomImageOperationSource(Client), _sandboxCustomImageClientDiagnostics, Pipeline, _sandboxCustomImageRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md b/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md index 6085b145f2e8d..7f420e54c0bb9 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Kusto namespace: Azure.ResourceManager.Kusto -require: https://github.com/Azure/azure-rest-api-specs/blob/4c49a05d22106119afd2078a982f30855b91a010/specification/azure-kusto/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/c280892951a9e45c059132c05aace25a9c752d48/specification/azure-kusto/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -59,12 +59,14 @@ rename-mapping: PublicNetworkAccess: KustoClusterPublicNetworkAccess ClusterNetworkAccessFlag: KustoClusterNetworkAccessFlag State: KustoClusterState + VnetState: KustoClusterVnetState VirtualNetworkConfiguration: KustoClusterVirtualNetworkConfiguration ClusterPrincipalAssignment: KustoClusterPrincipalAssignment ClusterPrincipalAssignment.properties.aadObjectId: -|uuid ClusterPrincipalAssignment.properties.principalId: ClusterPrincipalId PrincipalType: KustoPrincipalAssignmentType ClusterPrincipalRole: KustoClusterPrincipalRole + Language: SandboxCustomImageLanguage LanguageExtension: KustoLanguageExtension LanguageExtensionsList: KustoLanguageExtensionList LanguageExtensionName: KustoLanguageExtensionName diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/KustoManagementTestBase.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/KustoManagementTestBase.cs index 04a51d83a5dcd..5ceacdf385ba3 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/KustoManagementTestBase.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/KustoManagementTestBase.cs @@ -23,6 +23,7 @@ public class KustoManagementTestBase : ManagementRecordedTestBase validate { resourceData = resourceDataCreate; resource = (await createOrUpdateAsync(expectedResourceName, resourceData)).Value; + Assert.IsNotNull(resource); validate( expectedFullResourceName, resourceData, (TS)GetResourceData(resource) ); @@ -106,17 +102,20 @@ Validate validate { resourceData = resourceDataUpdate; resource = (await createOrUpdateAsync(expectedResourceName, resourceData)).Value; + Assert.IsNotNull(resource); validate( expectedFullResourceName, resourceData, (TS)GetResourceData(resource) ); } resource = (await getAsync(expectedResourceName)).Value; + Assert.IsNotNull(resource); validate( expectedFullResourceName, resourceData, (TS)GetResourceData(resource) ); resource = await getAllAsync().FirstOrDefaultAsync(r => expectedFullResourceName == GetResourceName(r)); + Assert.IsNotNull(resource); validate( expectedFullResourceName, resourceData, (TS)GetResourceData(resource) ); @@ -148,7 +147,7 @@ ExistsAsync existsAsync // Utility Methods private static object GetResourceData(object resource) { - return resource.GetType().GetProperty("Data")?.GetValue(resource, null); + return resource.GetType().GetProperty("Data").GetValue(resource, null); } private static string GetResourceName(object resource) diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Data/cluster.bicep b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Data/cluster.bicep index d6532df624831..9851ed61760de 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Data/cluster.bicep +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Data/cluster.bicep @@ -11,7 +11,7 @@ var tableName = 'sdkScriptContentTable${id}' var tenantId = tenant().tenantId -resource cluster 'Microsoft.Kusto/clusters@2023-05-02' = { +resource cluster 'Microsoft.Kusto/clusters@2023-08-15' = { name: clusterName location: location sku: { @@ -57,12 +57,12 @@ output TABLE_NAME string = tableName var followingClusterName = 'sdkFollowingCluster${id}' -resource followerCluster 'Microsoft.Kusto/clusters@2023-05-02' = { +resource followerCluster 'Microsoft.Kusto/clusters@2023-08-15' = { name: followingClusterName location: location sku: { - name: 'Dev(No SLA)_Standard_E2a_v4' - tier: 'Basic' + name: 'Standard_E8as_v5+1TB_PS' + tier: 'Standard' } identity: { type: 'SystemAssigned' diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Scripts/CreateTestResources.ps1 b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Scripts/CreateTestResources.ps1 index e490d996ea1e2..7c8329691348a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Scripts/CreateTestResources.ps1 +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Scripts/CreateTestResources.ps1 @@ -16,8 +16,7 @@ $ApplicationOId = az ad sp show --id $AppId --query "id" --output tsv $Id = [string](Get-Random -Minimum 0 -Maximum 999) -$RootDirectory = (Get-Item $PSScriptRoot).parent.parent.parent.parent.parent.parent -$TestResourcesDirectory = Join-Path -Path $RootDirectory -ChildPath eng\common\TestResources +$TestResourcesDirectory = Join-Path -Path $PSScriptRoot -ChildPath ..\..\..\..\..\..\eng\common\TestResources Write-Host "Triggering New-TestResources script to create all required resources" -ForegroundColor Green & $TestResourcesDirectory\New-TestResources.ps1 ` diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Scripts/RunTestsInPlaybackMode.ps1 b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Scripts/RunTestsInPlaybackMode.ps1 index 80571bdb58a77..7c7ea3e718c73 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Scripts/RunTestsInPlaybackMode.ps1 +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Prerequisites/Scripts/RunTestsInPlaybackMode.ps1 @@ -1,4 +1,4 @@ -Write-Host "Going to run test in record mode, please make sure required resources exists, if not, please run 'CreateTestResurces.ps1'" -ForegroundColor Green +Write-Host "Going to run test in playback mode" -ForegroundColor Green $Env:AZURE_TEST_MODE = "Playback" diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoAttachedDatabaseConfigurationTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoAttachedDatabaseConfigurationTests.cs index 313d5a1a25c53..f076568c9857f 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoAttachedDatabaseConfigurationTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoAttachedDatabaseConfigurationTests.cs @@ -13,7 +13,6 @@ namespace Azure.ResourceManager.Kusto.Tests.Scenario public class KustoAttachedDatabaseConfigurationTests : KustoManagementTestBase { private KustoReadWriteDatabase DatabaseData { get; set; } - private KustoClusterResource FollowingCluster { get; set; } public KustoAttachedDatabaseConfigurationTests(bool isAsync) : base(isAsync) //, RecordedTestMode.Record) @@ -23,10 +22,9 @@ public KustoAttachedDatabaseConfigurationTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(database: true); + await BaseSetUp(); DatabaseData = (KustoReadWriteDatabase)Database.Data; - FollowingCluster = (await ResourceGroup.GetKustoClusterAsync(TE.FollowingClusterName)).Value; } [TestCase] diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoClusterPrincipalAssignmentTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoClusterPrincipalAssignmentTests.cs index 08f83af40936b..f1bb58055cf53 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoClusterPrincipalAssignmentTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoClusterPrincipalAssignmentTests.cs @@ -18,7 +18,7 @@ public KustoClusterPrincipalAssignmentTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(cluster: true); + await BaseSetUp(); } [TestCase] diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDataConnectionTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDataConnectionTests.cs index e9e4db235537a..ab884ba80a60c 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDataConnectionTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDataConnectionTests.cs @@ -19,7 +19,7 @@ public KustoDataConnectionTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(database: true); + await BaseSetUp(); } [TestCase] diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDatabasePrincipalAssignmentTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDatabasePrincipalAssignmentTests.cs index 17bfa9fd0576d..fe8be15e5210e 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDatabasePrincipalAssignmentTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDatabasePrincipalAssignmentTests.cs @@ -18,7 +18,7 @@ public KustoDatabasePrincipalAssignmentTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(database: true); + await BaseSetUp(); } [TestCase] diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDatabaseTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDatabaseTests.cs index 43c519dedf56e..ef8b724c400a8 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDatabaseTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoDatabaseTests.cs @@ -30,7 +30,7 @@ public KustoDatabaseTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(cluster: true); + await BaseSetUp(); KeyVaultUri = TE.KeyVaultUri; KeyName = TE.KeyName; diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoManagedPrivateEndpointTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoManagedPrivateEndpointTests.cs index ed3471f5a64be..2a44e45c0c617 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoManagedPrivateEndpointTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoManagedPrivateEndpointTests.cs @@ -17,7 +17,7 @@ public KustoManagedPrivateEndpointTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(cluster: true); + await BaseSetUp(); } [TestCase] diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoPrivateEndpointConnectionTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoPrivateEndpointConnectionTests.cs index 2357fc269d134..e4737dd2ba6ef 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoPrivateEndpointConnectionTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoPrivateEndpointConnectionTests.cs @@ -21,7 +21,7 @@ public KustoPrivateEndpointConnectionTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(cluster: true); + await BaseSetUp(); } [Ignore("Depend on Network which will block the pipeline to release new Network package, disable this case temporary")] diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoPrivateLinkResourceTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoPrivateLinkResourceTests.cs index 3ae7bea0c00da..89a691210545d 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoPrivateLinkResourceTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoPrivateLinkResourceTests.cs @@ -17,7 +17,7 @@ public KustoPrivateLinkResourceTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(cluster: true); + await BaseSetUp(); } [TestCase] diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoSandboxCustomImageTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoSandboxCustomImageTests.cs new file mode 100644 index 0000000000000..9d094d9593f7f --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoSandboxCustomImageTests.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Kusto.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Kusto.Tests.Scenario +{ + public class KustoSandboxCustomImageTests : KustoManagementTestBase + { + public KustoSandboxCustomImageTests(bool isAsync) + : base(isAsync) //, RecordedTestMode.Record) + { + } + + [SetUp] + protected async Task SetUp() + { + await BaseSetUp(); + } + + [TestCase] + [RecordedTest] + public async Task SandboxCustomImageTests() + { + // Custom Image only works on clusters with skus supporing hyper-threading + // Since DatabaseCmkTests require devSku this test uses the follower cluster resource + // Once DatabaseCmk feature if publicly available - change follower cluster back to regular sku and work on regular cluster + var sandboxCustomImageCollection = FollowingCluster.GetSandboxCustomImages(); + + var sandboxCustomImageName = "sdksandboxcustomimage"; + + var sandboxCustomImageDataCreate = new SandboxCustomImageData() + { + Language = SandboxCustomImageLanguage.Python, + LanguageVersion = "3.9.7", + RequirementsFileContent = "Requests\n urllib3" + }; + + var sandboxCustomImageDataUpdate = new SandboxCustomImageData() + { + Language = SandboxCustomImageLanguage.Python, + LanguageVersion = "3.10.8", + RequirementsFileContent = "Pillow" + }; + + Task> CreateOrUpdateSandboxCustomImageAsync( + string sandboxCustomImageName, + SandboxCustomImageData sandboxCustomImageData + ) => sandboxCustomImageCollection.CreateOrUpdateAsync( + WaitUntil.Completed, sandboxCustomImageName, sandboxCustomImageData + ); + + await CollectionTests( + sandboxCustomImageName, + GetFullClusterChildResourceName(sandboxCustomImageName, TE.FollowingClusterName), + sandboxCustomImageDataCreate, + sandboxCustomImageDataUpdate, + CreateOrUpdateSandboxCustomImageAsync, + sandboxCustomImageCollection.GetAsync, + sandboxCustomImageCollection.GetAllAsync, + sandboxCustomImageCollection.ExistsAsync, + ValidateSandboxCustomImage + ); + + await DeletionTest( + sandboxCustomImageName, + sandboxCustomImageCollection.GetAsync, + sandboxCustomImageCollection.ExistsAsync + ); + } + + private static void ValidateSandboxCustomImage( + string expectedFullSandboxCustomImageName, + SandboxCustomImageData expectedSandboxCustomImageData, + SandboxCustomImageData actualSandboxCustomImageData + ) + { + AssertEquality(expectedFullSandboxCustomImageName, expectedSandboxCustomImageData.Name); + AssertEquality(expectedSandboxCustomImageData.Language, actualSandboxCustomImageData.Language); + AssertEquality(expectedSandboxCustomImageData.LanguageVersion, actualSandboxCustomImageData.LanguageVersion); + AssertEquality(expectedSandboxCustomImageData.RequirementsFileContent, actualSandboxCustomImageData.RequirementsFileContent); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoScriptTests.cs b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoScriptTests.cs index fc2cd28f6460b..de42a0e9b90e8 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoScriptTests.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/tests/Scenario/KustoScriptTests.cs @@ -17,7 +17,7 @@ public KustoScriptTests(bool isAsync) [SetUp] protected async Task SetUp() { - await BaseSetUp(database: true); + await BaseSetUp(); } [TestCase]