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 ca76ae6e5116..cae804595c68 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 @@ -20,7 +20,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-08-15/examples/KustoAttachedDatabaseConfigurationsListByCluster.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -57,7 +57,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-08-15/examples/KustoAttachedDatabaseConfigurationsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -92,7 +92,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-08-15/examples/KustoAttachedDatabaseConfigurationsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -123,7 +123,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-08-15/examples/KustoAttachedDatabaseConfigurationsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -166,7 +166,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-08-15/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 242c46f66441..9e21073cd4de 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 @@ -20,7 +20,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-08-15/examples/KustoAttachedDatabaseConfigurationsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -52,7 +52,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-08-15/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -120,7 +120,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-08-15/examples/KustoAttachedDatabaseConfigurationsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 48bf2cf721b8..ae72eb48f7e4 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 @@ -22,7 +22,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-08-15/examples/KustoClustersGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -56,7 +56,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-08-15/examples/KustoClustersGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -86,7 +86,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-08-15/examples/KustoClustersGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -128,7 +128,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-08-15/examples/KustoClustersCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -161,8 +161,7 @@ public async Task CreateOrUpdate_KustoClustersCreateOrUpdate() new KustoLanguageExtension() { LanguageExtensionName = KustoLanguageExtensionName.Python, -LanguageExtensionImageName = new KustoLanguageExtensionImageName("Python_Custom_Image"), -LanguageExtensionCustomImageName = "customImage8", +LanguageExtensionImageName = KustoLanguageExtensionImageName.Python3_10_8, },new KustoLanguageExtension() { LanguageExtensionName = KustoLanguageExtensionName.R, @@ -193,7 +192,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-08-15/examples/KustoClustersListByResourceGroup.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 0b36eb1e70ac..3fcc10db46db 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 @@ -20,7 +20,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-08-15/examples/KustoClusterPrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 Exists_KustoClusterPrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoClusterPrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -86,7 +86,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-08-15/examples/KustoClusterPrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -129,7 +129,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-08-15/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -172,7 +172,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-08-15/examples/KustoClusterPrincipalAssignmentsList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 44825045e79b..4e7102807a60 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 @@ -20,7 +20,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-08-15/examples/KustoClusterPrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -52,7 +52,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-08-15/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -92,7 +92,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-08-15/examples/KustoClusterPrincipalAssignmentsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 f65af25a000a..235517792fa9 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 @@ -21,7 +21,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-08-15/examples/KustoClustersGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -52,7 +52,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-08-15/examples/KustoClustersUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -86,7 +86,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-08-15/examples/KustoClustersDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -113,7 +113,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-08-15/examples/KustoClustersStop.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -140,7 +140,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-08-15/examples/KustoClustersStart.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -167,7 +167,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-08-15/examples/KustoClusterMigrate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -190,12 +190,42 @@ public async Task Migrate_KustoClusterMigrate() Console.WriteLine($"Succeeded"); } + // KustoClusterListFollowerDatabasesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetFollowerDatabasesGet_KustoClusterListFollowerDatabasesGet() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/examples/KustoClusterListFollowerDatabasesGet.json + // this example is just showing the usage of "Clusters_ListFollowerDatabasesGet" 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 and iterate over the result + await foreach (FollowerDatabaseDefinitionGet item in kustoCluster.GetFollowerDatabasesGetAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + // KustoClusterListFollowerDatabases [NUnit.Framework.Test] [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-08-15/examples/KustoClusterListFollowerDatabases.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -225,7 +255,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-08-15/examples/KustoClusterDetachFollowerDatabases.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -253,7 +283,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-08-15/examples/KustoClustersDiagnoseVirtualNetwork.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -281,7 +311,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-08-15/examples/KustoClustersList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -313,7 +343,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-08-15/examples/KustoClustersListSkus.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -341,7 +371,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-08-15/examples/KustoClustersCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -368,7 +398,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-08-15/examples/KustoClustersListResourceSkus.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -398,7 +428,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-08-15/examples/KustoOutboundNetworkDependenciesList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -423,12 +453,112 @@ public async Task GetOutboundNetworkDependenciesEndpoints_GetKustoClusterOutboun Console.WriteLine($"Succeeded"); } + // KustoClusterAddCalloutPolicy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task AddCalloutPolicies_KustoClusterAddCalloutPolicy() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/examples/KustoClusterAddCalloutPolicies.json + // this example is just showing the usage of "Clusters_AddCalloutPolicies" 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 + CalloutPoliciesList calloutPolicies = new CalloutPoliciesList() + { + Value = +{ +new CalloutPolicy() +{ +CalloutUriRegex = "*", +CalloutType = CalloutType.Kusto, +OutboundAccess = OutboundAccess.Allow, +} +}, + }; + await kustoCluster.AddCalloutPoliciesAsync(WaitUntil.Completed, calloutPolicies); + + Console.WriteLine($"Succeeded"); + } + + // KustoClusterDropCalloutPolicy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task RemoveCalloutPolicy_KustoClusterDropCalloutPolicy() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/examples/KustoClusterRemoveCalloutPolicy.json + // this example is just showing the usage of "Clusters_RemoveCalloutPolicy" 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 + CalloutPolicyToRemove calloutPolicy = new CalloutPolicyToRemove() + { + CalloutId = "*_kusto", + }; + await kustoCluster.RemoveCalloutPolicyAsync(WaitUntil.Completed, calloutPolicy); + + Console.WriteLine($"Succeeded"); + } + + // KustoClusterListCalloutPolicies + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetCalloutPolicies_KustoClusterListCalloutPolicies() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/examples/KustoClustersListCalloutPolicies.json + // this example is just showing the usage of "Clusters_ListCalloutPolicies" 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 and iterate over the result + await foreach (CalloutPolicy item in kustoCluster.GetCalloutPoliciesAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + // KustoClusterListLanguageExtensions [NUnit.Framework.Test] [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-08-15/examples/KustoClusterListLanguageExtensions.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -458,7 +588,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-08-15/examples/KustoClusterAddLanguageExtensions.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -498,7 +628,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-08-15/examples/KustoClusterRemoveLanguageExtensions.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -538,7 +668,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-08-15/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -566,7 +696,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-08-15/examples/KustoDatabasesCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -594,7 +724,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-08-15/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -622,7 +752,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-08-15/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -650,7 +780,7 @@ public async Task CheckKustoManagedPrivateEndpointNameAvailability_KustoManagedP [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 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 6f9c5c324738..9810f61bd680 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 @@ -20,7 +20,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-08-15/examples/KustoDataConnectionsListByDatabase.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -58,7 +58,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-08-15/examples/KustoDataConnectionsCosmosDbGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -94,7 +94,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-08-15/examples/KustoDataConnectionsCosmosDbGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -126,7 +126,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-08-15/examples/KustoDataConnectionsCosmosDbGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -170,7 +170,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-08-15/examples/KustoDataConnectionsEventGridGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -206,7 +206,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-08-15/examples/KustoDataConnectionsEventGridGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -238,7 +238,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-08-15/examples/KustoDataConnectionsEventGridGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -282,7 +282,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-08-15/examples/KustoDataConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -318,7 +318,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-08-15/examples/KustoDataConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -350,7 +350,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-08-15/examples/KustoDataConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -394,7 +394,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-08-15/examples/KustoDataConnectionsCosmosDbCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -442,7 +442,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-08-15/examples/KustoDataConnectionsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -486,7 +486,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-08-15/examples/KustoDataConnectionsEventGridCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -516,7 +516,7 @@ public async Task CreateOrUpdate_KustoDataConnectionsEventGridCreateOrUpdate() ConsumerGroup = "$Default", TableName = "TestTable", MappingRuleName = "TestMapping", - DataFormat = KustoEventGridDataFormat.Json, + DataFormat = KustoEventGridDataFormat.MultiJson, IsFirstRecordIgnored = false, BlobStorageEventType = BlobStorageEventType.MicrosoftStorageBlobCreated, ManagedIdentityResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), 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 f17c4d103a3f..209499bc0e05 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 @@ -20,7 +20,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-08-15/examples/KustoDataConnectionsCosmosDbGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -53,7 +53,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-08-15/examples/KustoDataConnectionsEventGridGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -86,7 +86,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-08-15/examples/KustoDataConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -119,7 +119,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-08-15/examples/KustoDataConnectionsCosmosDbUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -164,7 +164,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-08-15/examples/KustoDataConnectionsEventGridUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -191,7 +191,7 @@ public async Task Update_KustoDataConnectionsEventGridUpdate() ConsumerGroup = "$Default", TableName = "TestTable", MappingRuleName = "TestMapping", - DataFormat = KustoEventGridDataFormat.Json, + DataFormat = KustoEventGridDataFormat.MultiJson, IsFirstRecordIgnored = false, BlobStorageEventType = BlobStorageEventType.MicrosoftStorageBlobCreated, ManagedIdentityResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), @@ -213,7 +213,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-08-15/examples/KustoDataConnectionsUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -254,7 +254,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-08-15/examples/KustoDataConnectionsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 d1b3e863ee1d..cfc4d75b506d 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 @@ -21,7 +21,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-08-15/examples/KustoDatabasesListByCluster.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -58,7 +58,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-08-15/examples/KustoDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -93,7 +93,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-08-15/examples/KustoDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -124,7 +124,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-08-15/examples/KustoDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -167,7 +167,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-08-15/examples/KustoSuspendedDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -202,7 +202,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-08-15/examples/KustoSuspendedDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -233,7 +233,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-08-15/examples/KustoSuspendedDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -276,7 +276,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-08-15/examples/KustoDatabaseReadonlyUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -317,7 +317,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-08-15/examples/KustoDatabasesCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 29b3a8de46ee..27dc2088fd49 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 @@ -20,7 +20,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-08-15/examples/KustoDatabasePrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 Exists_KustoDatabasePrincipalAssignmentsGet() { - // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/examples/KustoDatabasePrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -88,7 +88,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-08-15/examples/KustoDatabasePrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -132,7 +132,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-08-15/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -176,7 +176,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-08-15/examples/KustoDatabasePrincipalAssignmentsList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 f0e1a3f531ca..e75ee494c84d 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 @@ -20,7 +20,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-08-15/examples/KustoDatabasePrincipalAssignmentsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -53,7 +53,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-08-15/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -94,7 +94,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-08-15/examples/KustoDatabasePrincipalAssignmentsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 a56655f6df8d..7e9c7d741ba6 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 @@ -21,7 +21,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-08-15/examples/KustoDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -53,7 +53,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-08-15/examples/KustoSuspendedDatabasesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -85,7 +85,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-08-15/examples/KustoDatabasesUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -122,7 +122,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-08-15/examples/KustoDatabasesDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -150,7 +150,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-08-15/examples/KustoDatabaseListPrincipals.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -181,7 +181,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-08-15/examples/KustoDatabaseAddPrincipals.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -234,7 +234,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-08-15/examples/KustoDatabaseRemovePrincipals.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -287,7 +287,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-08-15/examples/KustoDatabaseInviteFollower.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -352,7 +352,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-08-15/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -381,7 +381,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-08-15/examples/KustoScriptsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -410,7 +410,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-08-15/examples/KustoDataConnectionEventGridValidationAsync.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -439,7 +439,7 @@ public async Task ValidateDataConnection_KustoDataConnectionEventGridValidation( ConsumerGroup = "$Default", TableName = "TestTable", MappingRuleName = "TestMapping", - DataFormat = KustoEventGridDataFormat.Json, + DataFormat = KustoEventGridDataFormat.MultiJson, IsFirstRecordIgnored = false, BlobStorageEventType = BlobStorageEventType.MicrosoftStorageBlobCreated, ManagedIdentityResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), @@ -457,7 +457,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-08-15/examples/KustoDataConnectionValidationAsync.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -484,7 +484,7 @@ public async Task ValidateDataConnection_KustoDataConnectionValidation() ConsumerGroup = "testConsumerGroup1", TableName = "TestTable", MappingRuleName = "TestMapping", - DataFormat = KustoEventHubDataFormat.Json, + DataFormat = KustoEventHubDataFormat.MultiJson, Compression = EventHubMessagesCompressionType.None, ManagedIdentityResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), }, @@ -500,7 +500,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-08-15/examples/KustoDataConnectionsCheckNameAvailability.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 153088a70ffe..ae55709f090d 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 @@ -19,7 +19,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-08-15/examples/KustoManagedPrivateEndpointsList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -56,7 +56,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-08-15/examples/KustoManagedPrivateEndpointsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -91,7 +91,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-08-15/examples/KustoManagedPrivateEndpointsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -122,7 +122,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-08-15/examples/KustoManagedPrivateEndpointsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -165,7 +165,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-08-15/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 7520ab853a7f..cc2ec350f516 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 @@ -19,7 +19,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-08-15/examples/KustoManagedPrivateEndpointsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -51,7 +51,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-08-15/examples/KustoManagedPrivateEndpointsUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -90,7 +90,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-08-15/examples/KustoManagedPrivateEndpointsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 f27558b3f0fb..78ff6d8dbd3c 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 @@ -20,7 +20,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-08-15/examples/KustoPrivateEndpointConnectionsList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -57,7 +57,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-08-15/examples/KustoPrivateEndpointConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -92,7 +92,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-08-15/examples/KustoPrivateEndpointConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -123,7 +123,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-08-15/examples/KustoPrivateEndpointConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -166,7 +166,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-08-15/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 3fc9d5b0d6c8..21ba7822af8d 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 @@ -20,7 +20,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-08-15/examples/KustoPrivateEndpointConnectionsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -52,7 +52,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-08-15/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -93,7 +93,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-08-15/examples/KustoPrivateEndpointConnectionsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 213d6c65df1a..dd98a1c01c1c 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 @@ -19,7 +19,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-08-15/examples/KustoPrivateLinkResourcesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 e8d91b1272ac..ad0c2422c281 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 @@ -19,7 +19,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-08-15/examples/KustoPrivateLinkResourcesList.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -56,7 +56,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-08-15/examples/KustoPrivateLinkResourcesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -91,7 +91,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-08-15/examples/KustoPrivateLinkResourcesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -122,7 +122,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-08-15/examples/KustoPrivateLinkResourcesGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 714f59ca1f01..3fbc6a75649f 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 @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.Kusto.Models; namespace Azure.ResourceManager.Kusto.Samples { @@ -19,7 +20,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-08-15/examples/KustoScriptsListByDatabase.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -57,7 +58,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-08-15/examples/KustoScriptsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -93,7 +94,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-08-15/examples/KustoScriptsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -125,7 +126,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-08-15/examples/KustoScriptsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -169,7 +170,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-08-15/examples/KustoScriptsCreateOrUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -197,6 +198,8 @@ public async Task CreateOrUpdate_KustoScriptsCreateOrUpdate() ScriptUriSasToken = "?sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=********************************", ForceUpdateTag = "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe", ShouldContinueOnErrors = true, + ScriptLevel = ScriptLevel.Database, + PrincipalPermissionsAction = PrincipalPermissionsAction.RemovePermissionOnScriptCompletion, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, scriptName, data); KustoScriptResource result = lro.Value; 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 d2882d6c8a67..d2793f5378a9 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 @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.Kusto.Models; namespace Azure.ResourceManager.Kusto.Samples { @@ -19,7 +20,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-08-15/examples/KustoScriptsGet.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -52,7 +53,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-08-15/examples/KustoScriptsUpdate.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -77,6 +78,8 @@ public async Task Update_KustoScriptsUpdate() ScriptUriSasToken = "?sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=********************************", ForceUpdateTag = "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe", ShouldContinueOnErrors = true, + ScriptLevel = ScriptLevel.Database, + PrincipalPermissionsAction = PrincipalPermissionsAction.RemovePermissionOnScriptCompletion, }; ArmOperation lro = await kustoScript.UpdateAsync(WaitUntil.Completed, data); KustoScriptResource result = lro.Value; @@ -93,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-08-15/examples/KustoScriptsDelete.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 index 2fa93bbf00df..2c9f8198e024 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SandboxCustomImageCollection [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -57,7 +57,7 @@ public async Task GetAll_KustoSandboxCustomImagesListByCluster() [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -92,7 +92,7 @@ public async Task Get_KustoSandboxCustomImagesGet() [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -123,7 +123,7 @@ public async Task Exists_KustoSandboxCustomImagesGet() [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -166,7 +166,7 @@ public async Task GetIfExists_KustoSandboxCustomImagesGet() [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -202,5 +202,89 @@ public async Task CreateOrUpdate_KustoSandboxCustomImagesCreateOrUpdate() // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + + // KustoSandboxCustomImagesCreateOrUpdateWithCustomBaseImage + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_KustoSandboxCustomImagesCreateOrUpdateWithCustomBaseImage() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/examples/KustoSandboxCustomImagesCreateOrUpdateWithCustomBaseImage.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 = "customImage2"; + SandboxCustomImageData data = new SandboxCustomImageData() + { + Language = SandboxCustomImageLanguage.Python, + BaseImageName = "customImage1", + 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}"); + } + + // KustoSandboxCustomImagesCreateOrUpdateWithManagedBaseImage + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_KustoSandboxCustomImagesCreateOrUpdateWithManagedBaseImage() + { + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/examples/KustoSandboxCustomImagesCreateOrUpdateWithManagedBaseImage.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 = "customImage2"; + SandboxCustomImageData data = new SandboxCustomImageData() + { + Language = SandboxCustomImageLanguage.Python, + BaseImageName = "Python3_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 index 30e5831ebf8c..5747848d0729 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/samples/Generated/Samples/Sample_SandboxCustomImageResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SandboxCustomImageResource [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -52,7 +52,7 @@ public async Task Get_KustoSandboxCustomImagesGet() [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 @@ -91,7 +91,7 @@ public async Task Update_KustoSandboxCustomImagesUpdate() [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 + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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 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 ebd74d88223e..8e64ae79e7b9 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 @@ -21,7 +21,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-08-15/examples/KustoSkus.json + // Generated from example definition: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2024-04-13/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/Generated/ArmKustoModelFactory.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs index 8767dff28419..d4d3fc3ba309 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs @@ -49,12 +49,14 @@ public static partial class ArmKustoModelFactory /// 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. + /// List of callout policies 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. + /// Indicates whether the cluster is zonal or non-zonal. /// A new instance for mocking. - public static KustoClusterData KustoClusterData(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, ETag? etag = null, KustoClusterState? state = null, KustoProvisioningState? provisioningState = null, Uri clusterUri = 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 KustoClusterData KustoClusterData(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, ETag? etag = null, KustoClusterState? state = null, KustoProvisioningState? provisioningState = null, Uri clusterUri = 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, IEnumerable calloutPolicies = null, KustoClusterPublicIPType? publicIPType = null, string virtualClusterGraduationProperties = null, IEnumerable privateEndpointConnections = null, MigrationClusterProperties migrationCluster = null, ZoneStatus? zoneStatus = null) { tags ??= new Dictionary(); zones ??= new List(); @@ -63,6 +65,7 @@ public static KustoClusterData KustoClusterData(ResourceIdentifier id = null, st allowedIPRangeList ??= new List(); acceptedAudiences ??= new List(); allowedFqdnList ??= new List(); + calloutPolicies ??= new List(); privateEndpointConnections ??= new List(); return new KustoClusterData( @@ -97,13 +100,26 @@ public static KustoClusterData KustoClusterData(ResourceIdentifier id = null, st isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList?.ToList(), + calloutPolicies?.ToList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections?.ToList(), migrationCluster, + zoneStatus, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Regular expression or FQDN pattern for the callout URI. + /// Type of the callout service, specifying the kind of external resource or service being accessed. + /// Indicates whether outbound access is permitted for the specified URI pattern. + /// Unique identifier for the callout configuration. + /// A new instance for mocking. + public static CalloutPolicy CalloutPolicy(string calloutUriRegex = null, CalloutType? calloutType = null, OutboundAccess? outboundAccess = null, string calloutId = null) + { + return new CalloutPolicy(calloutUriRegex, calloutType, outboundAccess, calloutId, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -180,12 +196,14 @@ public static MigrationClusterProperties MigrationClusterProperties(string id = /// 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. + /// List of callout policies 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. + /// Indicates whether the cluster is zonal or non-zonal. /// 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, 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) + 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, IEnumerable calloutPolicies = null, KustoClusterPublicIPType? publicIPType = null, string virtualClusterGraduationProperties = null, IEnumerable privateEndpointConnections = null, MigrationClusterProperties migrationCluster = null, ZoneStatus? zoneStatus = null) { tags ??= new Dictionary(); zones ??= new List(); @@ -194,6 +212,7 @@ public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id = null, allowedIPRangeList ??= new List(); acceptedAudiences ??= new List(); allowedFqdnList ??= new List(); + calloutPolicies ??= new List(); privateEndpointConnections ??= new List(); return new KustoClusterPatch( @@ -227,10 +246,12 @@ public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id = null, isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList?.ToList(), + calloutPolicies?.ToList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections?.ToList(), migrationCluster, + zoneStatus, serializedAdditionalRawData: null); } @@ -286,6 +307,24 @@ public static KustoClusterPrincipalAssignmentData KustoClusterPrincipalAssignmen serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Resource id of the cluster that follows a database owned by this cluster. + /// Resource name of the attached database configuration in the follower cluster. + /// The database name owned by this cluster that was followed. * in case following all databases. + /// Table level sharing specifications. + /// The origin of the following setup. + /// A new instance for mocking. + public static FollowerDatabaseDefinitionGet FollowerDatabaseDefinitionGet(string clusterResourceId = null, string attachedDatabaseConfigurationName = null, string databaseName = null, KustoDatabaseTableLevelSharingProperties tableLevelSharingProperties = null, KustoDatabaseShareOrigin? databaseShareOrigin = null) + { + return new FollowerDatabaseDefinitionGet( + clusterResourceId, + attachedDatabaseConfigurationName, + databaseName, + tableLevelSharingProperties, + databaseShareOrigin, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Resource id of the cluster that follows a database owned by this cluster. /// Resource name of the attached database configuration in the follower cluster. @@ -531,8 +570,10 @@ public static KustoDatabasePrincipal KustoDatabasePrincipal(KustoDatabasePrincip /// A unique string. If changed the script will be applied again. /// Flag that indicates whether to continue if one of the command fails. /// The provisioned state of the resource. + /// Differentiates between the type of script commands included - Database or Cluster. The default is Database. + /// Indicates if the permissions for the script caller are kept following completion of the script. /// A new instance for mocking. - public static KustoScriptData KustoScriptData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Uri scriptUri = null, string scriptUriSasToken = null, string scriptContent = null, string forceUpdateTag = null, bool? shouldContinueOnErrors = null, KustoProvisioningState? provisioningState = null) + public static KustoScriptData KustoScriptData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Uri scriptUri = null, string scriptUriSasToken = null, string scriptContent = null, string forceUpdateTag = null, bool? shouldContinueOnErrors = null, KustoProvisioningState? provisioningState = null, ScriptLevel? scriptLevel = null, PrincipalPermissionsAction? principalPermissionsAction = null) { return new KustoScriptData( id, @@ -545,6 +586,8 @@ public static KustoScriptData KustoScriptData(ResourceIdentifier id = null, stri forceUpdateTag, shouldContinueOnErrors, provisioningState, + scriptLevel, + principalPermissionsAction, serializedAdditionalRawData: null); } @@ -554,11 +597,12 @@ public static KustoScriptData KustoScriptData(ResourceIdentifier id = null, stri /// The resourceType. /// The systemData. /// The language name, for example Python. - /// The version of the language. + /// The version of the language. Either this property or baseImageName should be specified. + /// The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified. /// 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) + public static SandboxCustomImageData SandboxCustomImageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SandboxCustomImageLanguage? language = null, string languageVersion = null, string baseImageName = null, string requirementsFileContent = null, KustoProvisioningState? provisioningState = null) { return new SandboxCustomImageData( id, @@ -567,6 +611,7 @@ public static SandboxCustomImageData SandboxCustomImageData(ResourceIdentifier i systemData, language, languageVersion, + baseImageName, requirementsFileContent, provisioningState, serializedAdditionalRawData: null); @@ -991,5 +1036,124 @@ public static KustoCosmosDBDataConnection KustoCosmosDBDataConnection(ResourceId retrievalStartOn, provisioningState); } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The SKU of the cluster. + /// The availability zones of the cluster. + /// The identity of the cluster, if configured. + /// A unique read-only string that changes whenever the resource is updated. + /// 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 KustoClusterData KustoClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, IEnumerable zones, ManagedServiceIdentity identity, ETag? etag, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri clusterUri, 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 KustoClusterData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, sku: sku, zones: zones, identity: identity, etag: etag, state: state, provisioningState: provisioningState, clusterUri: clusterUri, dataIngestionUri: dataIngestionUri, stateReason: stateReason, trustedExternalTenants: trustedExternalTenants, optimizedAutoscale: optimizedAutoscale, isDiskEncryptionEnabled: isDiskEncryptionEnabled, isStreamingIngestEnabled: isStreamingIngestEnabled, virtualNetworkConfiguration: virtualNetworkConfiguration, keyVaultProperties: keyVaultProperties, isPurgeEnabled: isPurgeEnabled, languageExtensionsValue: languageExtensionsValue, isDoubleEncryptionEnabled: isDoubleEncryptionEnabled, publicNetworkAccess: publicNetworkAccess, allowedIPRangeList: allowedIPRangeList, engineType: engineType, acceptedAudiences: acceptedAudiences, isAutoStopEnabled: isAutoStopEnabled, restrictOutboundNetworkAccess: restrictOutboundNetworkAccess, allowedFqdnList: allowedFqdnList, calloutPolicies: default, publicIPType: publicIPType, virtualClusterGraduationProperties: virtualClusterGraduationProperties, privateEndpointConnections: privateEndpointConnections, migrationCluster: migrationCluster, zoneStatus: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// 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. + /// 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, IEnumerable zones, 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: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, sku: sku, zones: zones, identity: identity, state: state, provisioningState: provisioningState, uri: uri, dataIngestionUri: dataIngestionUri, stateReason: stateReason, trustedExternalTenants: trustedExternalTenants, optimizedAutoscale: optimizedAutoscale, isDiskEncryptionEnabled: isDiskEncryptionEnabled, isStreamingIngestEnabled: isStreamingIngestEnabled, virtualNetworkConfiguration: virtualNetworkConfiguration, keyVaultProperties: keyVaultProperties, isPurgeEnabled: isPurgeEnabled, languageExtensionsValue: languageExtensionsValue, isDoubleEncryptionEnabled: isDoubleEncryptionEnabled, publicNetworkAccess: publicNetworkAccess, allowedIPRangeList: allowedIPRangeList, engineType: engineType, acceptedAudiences: acceptedAudiences, isAutoStopEnabled: isAutoStopEnabled, restrictOutboundNetworkAccess: restrictOutboundNetworkAccess, allowedFqdnList: allowedFqdnList, calloutPolicies: default, publicIPType: publicIPType, virtualClusterGraduationProperties: virtualClusterGraduationProperties, privateEndpointConnections: privateEndpointConnections, migrationCluster: migrationCluster, zoneStatus: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The url to the KQL script blob file. Must not be used together with scriptContent property. + /// The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property. + /// The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties. + /// A unique string. If changed the script will be applied again. + /// Flag that indicates whether to continue if one of the command fails. + /// The provisioned state of the resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static KustoScriptData KustoScriptData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Uri scriptUri, string scriptUriSasToken, string scriptContent, string forceUpdateTag, bool? shouldContinueOnErrors, KustoProvisioningState? provisioningState) + { + return KustoScriptData(id: id, name: name, resourceType: resourceType, systemData: systemData, scriptUri: scriptUri, scriptUriSasToken: scriptUriSasToken, scriptContent: scriptContent, forceUpdateTag: forceUpdateTag, shouldContinueOnErrors: shouldContinueOnErrors, provisioningState: provisioningState, scriptLevel: default, principalPermissionsAction: default); + } + + /// Initializes a new instance of . + /// 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. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SandboxCustomImageData SandboxCustomImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SandboxCustomImageLanguage? language, string languageVersion, string requirementsFileContent, KustoProvisioningState? provisioningState) + { + return SandboxCustomImageData(id: id, name: name, resourceType: resourceType, systemData: systemData, language: language, languageVersion: languageVersion, baseImageName: default, requirementsFileContent: requirementsFileContent, provisioningState: provisioningState); + } } } 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 1e939d600ddb..2e15c45cc47a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs @@ -272,7 +272,7 @@ public static KustoClusterCollection GetKustoClusters(this ResourceGroupResource /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public static async Task> GetKustoClusterAsync(th /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -348,7 +348,7 @@ public static Response GetKustoCluster(this ResourceGroupR /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -384,7 +384,7 @@ public static AsyncPageable GetKustoClustersAsync(this Sub /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -420,7 +420,7 @@ public static Pageable GetKustoClusters(this SubscriptionR /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -456,7 +456,7 @@ public static AsyncPageable GetKustoEligibleSkusAsync(this /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -492,7 +492,7 @@ public static Pageable GetKustoEligibleSkus(this Subscripti /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -529,7 +529,7 @@ public static async Task> CheckKustoCluste /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -566,7 +566,7 @@ public static Response CheckKustoClusterNameAvailab /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// @@ -599,7 +599,7 @@ public static AsyncPageable GetSkusAsync(this SubscriptionR /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/MockableKustoResourceGroupResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/MockableKustoResourceGroupResource.cs index 5219b4d3359d..534193a2c403 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/MockableKustoResourceGroupResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/MockableKustoResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual KustoClusterCollection GetKustoClusters() /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetKustoClusterAsync(s /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/MockableKustoSubscriptionResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/MockableKustoSubscriptionResource.cs index c782d009502e..ab55fa492b20 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/MockableKustoSubscriptionResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/MockableKustoSubscriptionResource.cs @@ -59,7 +59,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -88,7 +88,7 @@ public virtual AsyncPageable GetKustoClustersAsync(Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual Pageable GetKustoClusters(CancellationToken /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual AsyncPageable GetKustoEligibleSkusAsync(Canc /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -175,7 +175,7 @@ public virtual Pageable GetKustoEligibleSkus(CancellationTo /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual async Task> CheckKustoClust /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual Response CheckKustoClusterNameAvaila /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// @@ -287,7 +287,7 @@ public virtual AsyncPageable GetSkusAsync(AzureLocation loc /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoAttachedDatabaseConfigurationCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoAttachedDatabaseConfigurationCollection.cs index d9b441891508..437b80ea6096 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoAttachedDatabaseConfigurationCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoAttachedDatabaseConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOr /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string a /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllA /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(Cance /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string attachedDatabaseCon /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string attachedDatabaseConfigurationName, C /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoAttachedDatabaseConfigurationResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoAttachedDatabaseConfigurationResource.cs index aea5b2e04edd..1a8df0a5661f 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoAttachedDatabaseConfigurationResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoAttachedDatabaseConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancella /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterCollection.cs index 9687d4a856e9..13bc05d28fd7 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string cluste /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string clusterName, Cancellati /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -446,7 +446,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.Serialization.cs index dc594818a4f5..5267ee2fe474 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.Serialization.cs @@ -186,6 +186,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsCollectionDefined(CalloutPolicies)) + { + writer.WritePropertyName("calloutPolicies"u8); + writer.WriteStartArray(); + foreach (var item in CalloutPolicies) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(PublicIPType)) { writer.WritePropertyName("publicIPType"u8); @@ -211,6 +221,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("migrationCluster"u8); writer.WriteObjectValue(MigrationCluster, options); } + if (options.Format != "W" && Optional.IsDefined(ZoneStatus)) + { + writer.WritePropertyName("zoneStatus"u8); + writer.WriteStringValue(ZoneStatus.Value.ToString()); + } writer.WriteEndObject(); } @@ -265,10 +280,12 @@ internal static KustoClusterData DeserializeKustoClusterData(JsonElement element bool? enableAutoStop = default; KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = default; IList allowedFqdnList = default; + IList calloutPolicies = default; KustoClusterPublicIPType? publicIPType = default; string virtualClusterGraduationProperties = default; IReadOnlyList privateEndpointConnections = default; MigrationClusterProperties migrationCluster = default; + ZoneStatus? zoneStatus = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -567,6 +584,20 @@ internal static KustoClusterData DeserializeKustoClusterData(JsonElement element allowedFqdnList = array; continue; } + if (property0.NameEquals("calloutPolicies"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(CalloutPolicy.DeserializeCalloutPolicy(item, options)); + } + calloutPolicies = array; + continue; + } if (property0.NameEquals("publicIPType"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -604,6 +635,15 @@ internal static KustoClusterData DeserializeKustoClusterData(JsonElement element migrationCluster = MigrationClusterProperties.DeserializeMigrationClusterProperties(property0.Value, options); continue; } + if (property0.NameEquals("zoneStatus"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + zoneStatus = new ZoneStatus(property0.Value.GetString()); + continue; + } } continue; } @@ -645,10 +685,12 @@ internal static KustoClusterData DeserializeKustoClusterData(JsonElement element enableAutoStop, restrictOutboundNetworkAccess, allowedFqdnList ?? new ChangeTrackingList(), + calloutPolicies ?? new ChangeTrackingList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections ?? new ChangeTrackingList(), migrationCluster, + zoneStatus, serializedAdditionalRawData); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.cs index 07bba444e375..4f2f009502a9 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.cs @@ -65,6 +65,7 @@ public KustoClusterData(AzureLocation location, KustoSku sku) : base(location) AllowedIPRangeList = new ChangeTrackingList(); AcceptedAudiences = new ChangeTrackingList(); AllowedFqdnList = new ChangeTrackingList(); + CalloutPolicies = new ChangeTrackingList(); PrivateEndpointConnections = new ChangeTrackingList(); } @@ -100,12 +101,14 @@ public KustoClusterData(AzureLocation location, KustoSku sku) : base(location) /// 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. + /// List of callout policies 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. + /// Indicates whether the cluster is zonal or non-zonal. /// Keeps track of any properties unknown to the library. - internal KustoClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, IList zones, ManagedServiceIdentity identity, ETag? etag, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri clusterUri, 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, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal KustoClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, IList zones, ManagedServiceIdentity identity, ETag? etag, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri clusterUri, 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, IList calloutPolicies, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IReadOnlyList privateEndpointConnections, MigrationClusterProperties migrationCluster, ZoneStatus? zoneStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Zones = zones; @@ -132,10 +135,12 @@ internal KustoClusterData(ResourceIdentifier id, string name, ResourceType resou IsAutoStopEnabled = isAutoStopEnabled; RestrictOutboundNetworkAccess = restrictOutboundNetworkAccess; AllowedFqdnList = allowedFqdnList; + CalloutPolicies = calloutPolicies; PublicIPType = publicIPType; VirtualClusterGraduationProperties = virtualClusterGraduationProperties; PrivateEndpointConnections = privateEndpointConnections; MigrationCluster = migrationCluster; + ZoneStatus = zoneStatus; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -205,6 +210,8 @@ public IList LanguageExtensionsValue public KustoClusterNetworkAccessFlag? RestrictOutboundNetworkAccess { get; set; } /// List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster. public IList AllowedFqdnList { get; } + /// List of callout policies for egress from Cluster. + public IList CalloutPolicies { get; } /// Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). public KustoClusterPublicIPType? PublicIPType { get; set; } /// Virtual Cluster graduation properties. @@ -213,5 +220,7 @@ public IList LanguageExtensionsValue public IReadOnlyList PrivateEndpointConnections { get; } /// Properties of the peer cluster involved in a migration to/from this cluster. public MigrationClusterProperties MigrationCluster { get; } + /// Indicates whether the cluster is zonal or non-zonal. + public ZoneStatus? ZoneStatus { get; } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterPrincipalAssignmentCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterPrincipalAssignmentCollection.cs index e3eb571124ac..5fb4393f060d 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterPrincipalAssignmentCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterPrincipalAssignmentCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string prin /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string principalAssignment /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string principalAssignmentName, Cancellatio /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterPrincipalAssignmentResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterPrincipalAssignmentResource.cs index 6ededae1b77e..31403b1dd82a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterPrincipalAssignmentResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterPrincipalAssignmentResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs index b1ce1e56f809..2cffcff18bea 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs @@ -136,7 +136,7 @@ public virtual KustoClusterPrincipalAssignmentCollection GetKustoClusterPrincipa /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -205,7 +205,7 @@ public virtual KustoDatabaseCollection GetKustoDatabases() /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -236,7 +236,7 @@ public virtual async Task> GetKustoDatabaseAsync /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual KustoAttachedDatabaseConfigurationCollection GetKustoAttachedData /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -343,7 +343,7 @@ public virtual KustoManagedPrivateEndpointCollection GetKustoManagedPrivateEndpo /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -374,7 +374,7 @@ public virtual async Task> GetKust /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -412,7 +412,7 @@ public virtual SandboxCustomImageCollection GetSandboxCustomImages() /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetSandboxCustom /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -481,7 +481,7 @@ public virtual KustoPrivateEndpointConnectionCollection GetKustoPrivateEndpointC /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -512,7 +512,7 @@ public virtual async Task> GetK /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -550,7 +550,7 @@ public virtual KustoPrivateLinkResourceCollection GetKustoPrivateLinkResources() /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -581,7 +581,7 @@ public virtual async Task> GetKustoPrivateLin /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -612,7 +612,7 @@ public virtual Response GetKustoPrivateLinkResource(st /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -652,7 +652,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -692,7 +692,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -734,7 +734,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -776,7 +776,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -823,7 +823,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -870,7 +870,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Ku /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -912,7 +912,7 @@ public virtual async Task StopAsync(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -954,7 +954,7 @@ public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancella /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -996,7 +996,7 @@ public virtual async Task StartAsync(WaitUntil waitUntil, Cancella /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1038,7 +1038,7 @@ public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1084,7 +1084,7 @@ public virtual async Task MigrateAsync(WaitUntil waitUntil, Cluste /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1117,6 +1117,64 @@ public virtual ArmOperation Migrate(WaitUntil waitUntil, ClusterMigrateContent c } } + /// + /// Returns a list of databases that are owned by this cluster and were followed by another cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases + /// + /// + /// Operation Id + /// Clusters_ListFollowerDatabasesGet + /// + /// + /// Default Api Version + /// 2024-04-13 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetFollowerDatabasesGetAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _kustoClusterClustersRestClient.CreateListFollowerDatabasesGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => FollowerDatabaseDefinitionGet.DeserializeFollowerDatabaseDefinitionGet(e), _kustoClusterClustersClientDiagnostics, Pipeline, "KustoClusterResource.GetFollowerDatabasesGet", "value", null, cancellationToken); + } + + /// + /// Returns a list of databases that are owned by this cluster and were followed by another cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases + /// + /// + /// Operation Id + /// Clusters_ListFollowerDatabasesGet + /// + /// + /// Default Api Version + /// 2024-04-13 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetFollowerDatabasesGet(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _kustoClusterClustersRestClient.CreateListFollowerDatabasesGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => FollowerDatabaseDefinitionGet.DeserializeFollowerDatabaseDefinitionGet(e), _kustoClusterClustersClientDiagnostics, Pipeline, "KustoClusterResource.GetFollowerDatabasesGet", "value", null, cancellationToken); + } + /// /// Returns a list of databases that are owned by this cluster and were followed by another cluster. /// @@ -1130,7 +1188,7 @@ public virtual ArmOperation Migrate(WaitUntil waitUntil, ClusterMigrateContent c /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1159,7 +1217,7 @@ public virtual AsyncPageable GetFollowerDatabas /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1188,7 +1246,7 @@ public virtual Pageable GetFollowerDatabases(Ca /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1234,7 +1292,7 @@ public virtual async Task DetachFollowerDatabasesAsync(WaitUntil w /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1280,7 +1338,7 @@ public virtual ArmOperation DetachFollowerDatabases(WaitUntil waitUntil, KustoFo /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1322,7 +1380,7 @@ public virtual async Task> DiagnoseVi /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1364,7 +1422,7 @@ public virtual ArmOperation DiagnoseVirtualNetwork /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1393,7 +1451,7 @@ public virtual AsyncPageable GetAvailableSkusAsync(Can /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1422,7 +1480,7 @@ public virtual Pageable GetAvailableSkus(CancellationT /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1452,7 +1510,7 @@ public virtual AsyncPageable GetOutboundNet /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1469,6 +1527,248 @@ public virtual Pageable GetOutboundNetworkD return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => OutboundNetworkDependenciesEndpoint.DeserializeOutboundNetworkDependenciesEndpoint(e), _kustoClusterClustersClientDiagnostics, Pipeline, "KustoClusterResource.GetOutboundNetworkDependenciesEndpoints", "value", "nextLink", cancellationToken); } + /// + /// Adds a list of callout policies for engine services. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addCalloutPolicies + /// + /// + /// Operation Id + /// Clusters_AddCalloutPolicies + /// + /// + /// Default Api Version + /// 2024-04-13 + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 callout policies to add. + /// The cancellation token to use. + /// is null. + public virtual async Task AddCalloutPoliciesAsync(WaitUntil waitUntil, CalloutPoliciesList calloutPolicies, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(calloutPolicies, nameof(calloutPolicies)); + + using var scope = _kustoClusterClustersClientDiagnostics.CreateScope("KustoClusterResource.AddCalloutPolicies"); + scope.Start(); + try + { + var response = await _kustoClusterClustersRestClient.AddCalloutPoliciesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, calloutPolicies, cancellationToken).ConfigureAwait(false); + var operation = new KustoArmOperation(_kustoClusterClustersClientDiagnostics, Pipeline, _kustoClusterClustersRestClient.CreateAddCalloutPoliciesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, calloutPolicies).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Adds a list of callout policies for engine services. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addCalloutPolicies + /// + /// + /// Operation Id + /// Clusters_AddCalloutPolicies + /// + /// + /// Default Api Version + /// 2024-04-13 + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 callout policies to add. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation AddCalloutPolicies(WaitUntil waitUntil, CalloutPoliciesList calloutPolicies, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(calloutPolicies, nameof(calloutPolicies)); + + using var scope = _kustoClusterClustersClientDiagnostics.CreateScope("KustoClusterResource.AddCalloutPolicies"); + scope.Start(); + try + { + var response = _kustoClusterClustersRestClient.AddCalloutPolicies(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, calloutPolicies, cancellationToken); + var operation = new KustoArmOperation(_kustoClusterClustersClientDiagnostics, Pipeline, _kustoClusterClustersRestClient.CreateAddCalloutPoliciesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, calloutPolicies).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes callout policy for engine services. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeCalloutPolicy + /// + /// + /// Operation Id + /// Clusters_RemoveCalloutPolicy + /// + /// + /// Default Api Version + /// 2024-04-13 + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 callout policies to remove. + /// The cancellation token to use. + /// is null. + public virtual async Task RemoveCalloutPolicyAsync(WaitUntil waitUntil, CalloutPolicyToRemove calloutPolicy, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(calloutPolicy, nameof(calloutPolicy)); + + using var scope = _kustoClusterClustersClientDiagnostics.CreateScope("KustoClusterResource.RemoveCalloutPolicy"); + scope.Start(); + try + { + var response = await _kustoClusterClustersRestClient.RemoveCalloutPolicyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, calloutPolicy, cancellationToken).ConfigureAwait(false); + var operation = new KustoArmOperation(_kustoClusterClustersClientDiagnostics, Pipeline, _kustoClusterClustersRestClient.CreateRemoveCalloutPolicyRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, calloutPolicy).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes callout policy for engine services. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeCalloutPolicy + /// + /// + /// Operation Id + /// Clusters_RemoveCalloutPolicy + /// + /// + /// Default Api Version + /// 2024-04-13 + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 callout policies to remove. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation RemoveCalloutPolicy(WaitUntil waitUntil, CalloutPolicyToRemove calloutPolicy, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(calloutPolicy, nameof(calloutPolicy)); + + using var scope = _kustoClusterClustersClientDiagnostics.CreateScope("KustoClusterResource.RemoveCalloutPolicy"); + scope.Start(); + try + { + var response = _kustoClusterClustersRestClient.RemoveCalloutPolicy(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, calloutPolicy, cancellationToken); + var operation = new KustoArmOperation(_kustoClusterClustersClientDiagnostics, Pipeline, _kustoClusterClustersRestClient.CreateRemoveCalloutPolicyRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, calloutPolicy).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Returns the allowed callout policies for the specified service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listCalloutPolicies + /// + /// + /// Operation Id + /// Clusters_ListCalloutPolicies + /// + /// + /// Default Api Version + /// 2024-04-13 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetCalloutPoliciesAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _kustoClusterClustersRestClient.CreateListCalloutPoliciesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => CalloutPolicy.DeserializeCalloutPolicy(e), _kustoClusterClustersClientDiagnostics, Pipeline, "KustoClusterResource.GetCalloutPolicies", "value", null, cancellationToken); + } + + /// + /// Returns the allowed callout policies for the specified service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listCalloutPolicies + /// + /// + /// Operation Id + /// Clusters_ListCalloutPolicies + /// + /// + /// Default Api Version + /// 2024-04-13 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetCalloutPolicies(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _kustoClusterClustersRestClient.CreateListCalloutPoliciesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => CalloutPolicy.DeserializeCalloutPolicy(e), _kustoClusterClustersClientDiagnostics, Pipeline, "KustoClusterResource.GetCalloutPolicies", "value", null, cancellationToken); + } + /// /// Returns a list of language extensions that can run within KQL queries. /// @@ -1482,7 +1782,7 @@ public virtual Pageable GetOutboundNetworkD /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1511,7 +1811,7 @@ public virtual AsyncPageable GetLanguageExtensionsAsync( /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1540,7 +1840,7 @@ public virtual Pageable GetLanguageExtensions(Cancellati /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1586,7 +1886,7 @@ public virtual async Task AddLanguageExtensionsAsync(WaitUntil wai /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1632,7 +1932,7 @@ public virtual ArmOperation AddLanguageExtensions(WaitUntil waitUntil, KustoLang /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1678,7 +1978,7 @@ public virtual async Task RemoveLanguageExtensionsAsync(WaitUntil /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1724,7 +2024,7 @@ public virtual ArmOperation RemoveLanguageExtensions(WaitUntil waitUntil, KustoL /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1766,7 +2066,7 @@ public virtual async Task> CheckKustoClust /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1808,7 +2108,7 @@ public virtual Response CheckKustoClusterPrincipalA /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1850,7 +2150,7 @@ public virtual async Task> CheckKustoDatab /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1892,7 +2192,7 @@ public virtual Response CheckKustoDatabaseNameAvail /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1934,7 +2234,7 @@ public virtual async Task> CheckKustoAttac /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1976,7 +2276,7 @@ public virtual Response CheckKustoAttachedDatabaseC /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2018,7 +2318,7 @@ public virtual async Task> CheckKustoManag /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2060,7 +2360,7 @@ public virtual Response CheckKustoManagedPrivateEnd /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2102,7 +2402,7 @@ public virtual async Task> CheckNameAvaila /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2144,7 +2444,7 @@ public virtual Response CheckNameAvailabilitySandbo /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2206,7 +2506,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2268,7 +2568,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2325,7 +2625,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2382,7 +2682,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -2442,7 +2742,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDataConnectionCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDataConnectionCollection.cs index 400a8945416e..ba65d7d42933 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDataConnectionCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDataConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string dataConnectionNa /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string dataConnectionName, /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string dataConnectionName, CancellationToke /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDataConnectionResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDataConnectionResource.cs index 68e5df03cf4a..4e42c7292885 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDataConnectionResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDataConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseCollection.cs index 2debca57ee9c..b2c4c8477445 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -165,7 +165,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(string datab /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string databaseName, Cancella /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual async Task> ExistsAsync(string databaseName, Cance /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual Response Exists(string databaseName, CancellationToken canc /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -386,7 +386,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabasePrincipalAssignmentCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabasePrincipalAssignmentCollection.cs index 12d663b961e9..102fd4f2cc38 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabasePrincipalAssignmentCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabasePrincipalAssignmentCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string pri /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string principalAssignment /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string principalAssignmentName, Cancellatio /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabasePrincipalAssignmentResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabasePrincipalAssignmentResource.cs index f818ac36f3c6..6982d2565d2b 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabasePrincipalAssignmentResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabasePrincipalAssignmentResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseResource.cs index de7dd6937c8e..4275283e6ef7 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseResource.cs @@ -129,7 +129,7 @@ public virtual KustoDatabasePrincipalAssignmentCollection GetKustoDatabasePrinci /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -198,7 +198,7 @@ public virtual KustoScriptCollection GetKustoScripts() /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task> GetKustoScriptAsync(str /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual KustoDataConnectionCollection GetKustoDataConnections() /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual async Task> GetKustoDataCon /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -329,7 +329,7 @@ public virtual Response GetKustoDataConnection(stri /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -369,7 +369,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -587,7 +587,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, K /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -616,7 +616,7 @@ public virtual AsyncPageable GetPrincipalsAsync(Cancella /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -645,7 +645,7 @@ public virtual Pageable GetPrincipals(CancellationToken /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -678,7 +678,7 @@ public virtual AsyncPageable AddPrincipalsAsync(Database /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -711,7 +711,7 @@ public virtual Pageable AddPrincipals(DatabasePrincipalL /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -744,7 +744,7 @@ public virtual AsyncPageable RemovePrincipalsAsync(Datab /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -777,7 +777,7 @@ public virtual Pageable RemovePrincipals(DatabasePrincip /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// @@ -815,7 +815,7 @@ public virtual async Task> InviteFollower /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// @@ -853,7 +853,7 @@ public virtual Response InviteFollowerDatabase(Dat /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -895,7 +895,7 @@ public virtual async Task> CheckKustoDatab /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -937,7 +937,7 @@ public virtual Response CheckKustoDatabasePrincipal /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -979,7 +979,7 @@ public virtual async Task> CheckKustoScrip /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1021,7 +1021,7 @@ public virtual Response CheckKustoScriptNameAvailab /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1067,7 +1067,7 @@ public virtual async Task> Validat /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1113,7 +1113,7 @@ public virtual ArmOperation ValidateDataConnect /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -1155,7 +1155,7 @@ public virtual async Task> CheckKustoDataC /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoManagedPrivateEndpointCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoManagedPrivateEndpointCollection.cs index e281dcbf8f40..8201748e09d8 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoManagedPrivateEndpointCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoManagedPrivateEndpointCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string managedP /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string managedPrivateEndpo /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string managedPrivateEndpointName, Cancella /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoManagedPrivateEndpointResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoManagedPrivateEndpointResource.cs index 78dc8a587b9d..aa235282424e 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoManagedPrivateEndpointResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoManagedPrivateEndpointResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateEndpointConnectionCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateEndpointConnectionCollection.cs index ffed671b1f28..88345b6919cf 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateEndpointConnectionCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpda /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string priva /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsync /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(Cancellat /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateEndpointConnectionResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateEndpointConnectionResource.cs index 3dbbfba126a0..fc879caa088a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateEndpointConnectionResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellation /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateLinkResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateLinkResource.cs index dfed0ab17f6c..9ef6b499af8c 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateLinkResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateLinkResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateLinkResourceCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateLinkResourceCollection.cs index 5280d69a6b11..3f907581d082 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateLinkResourceCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoPrivateLinkResourceCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string pr /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string privateLinkResource /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual async Task> ExistsAsync(string privateLinkResource /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual Response Exists(string privateLinkResourceName, Cancellatio /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -343,7 +343,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptCollection.cs index ca68a26d2629..62d1fe017bda 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string scriptN /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string scriptName, Cancellation /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string scriptName, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string scriptName, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptData.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptData.Serialization.cs index 368c20c0e43a..1971f27ada00 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptData.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptData.Serialization.cs @@ -69,6 +69,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("provisioningState"u8); writer.WriteStringValue(ProvisioningState.Value.ToString()); } + if (Optional.IsDefined(ScriptLevel)) + { + writer.WritePropertyName("scriptLevel"u8); + writer.WriteStringValue(ScriptLevel.Value.ToString()); + } + if (Optional.IsDefined(PrincipalPermissionsAction)) + { + writer.WritePropertyName("principalPermissionsAction"u8); + writer.WriteStringValue(PrincipalPermissionsAction.Value.ToString()); + } writer.WriteEndObject(); } @@ -102,6 +112,8 @@ internal static KustoScriptData DeserializeKustoScriptData(JsonElement element, string forceUpdateTag = default; bool? continueOnErrors = default; KustoProvisioningState? provisioningState = default; + ScriptLevel? scriptLevel = default; + PrincipalPermissionsAction? principalPermissionsAction = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -181,6 +193,24 @@ internal static KustoScriptData DeserializeKustoScriptData(JsonElement element, provisioningState = new KustoProvisioningState(property0.Value.GetString()); continue; } + if (property0.NameEquals("scriptLevel"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + scriptLevel = new ScriptLevel(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("principalPermissionsAction"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + principalPermissionsAction = new PrincipalPermissionsAction(property0.Value.GetString()); + continue; + } } continue; } @@ -201,6 +231,8 @@ internal static KustoScriptData DeserializeKustoScriptData(JsonElement element, forceUpdateTag, continueOnErrors, provisioningState, + scriptLevel, + principalPermissionsAction, serializedAdditionalRawData); } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptData.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptData.cs index 126a5f85316f..721a830362f9 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptData.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptData.cs @@ -67,8 +67,10 @@ public KustoScriptData() /// A unique string. If changed the script will be applied again. /// Flag that indicates whether to continue if one of the command fails. /// The provisioned state of the resource. + /// Differentiates between the type of script commands included - Database or Cluster. The default is Database. + /// Indicates if the permissions for the script caller are kept following completion of the script. /// Keeps track of any properties unknown to the library. - internal KustoScriptData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Uri scriptUri, string scriptUriSasToken, string scriptContent, string forceUpdateTag, bool? shouldContinueOnErrors, KustoProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal KustoScriptData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Uri scriptUri, string scriptUriSasToken, string scriptContent, string forceUpdateTag, bool? shouldContinueOnErrors, KustoProvisioningState? provisioningState, ScriptLevel? scriptLevel, PrincipalPermissionsAction? principalPermissionsAction, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { ScriptUri = scriptUri; ScriptUriSasToken = scriptUriSasToken; @@ -76,6 +78,8 @@ internal KustoScriptData(ResourceIdentifier id, string name, ResourceType resour ForceUpdateTag = forceUpdateTag; ShouldContinueOnErrors = shouldContinueOnErrors; ProvisioningState = provisioningState; + ScriptLevel = scriptLevel; + PrincipalPermissionsAction = principalPermissionsAction; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -91,5 +95,9 @@ internal KustoScriptData(ResourceIdentifier id, string name, ResourceType resour public bool? ShouldContinueOnErrors { get; set; } /// The provisioned state of the resource. public KustoProvisioningState? ProvisioningState { get; } + /// Differentiates between the type of script commands included - Database or Cluster. The default is Database. + public ScriptLevel? ScriptLevel { get; set; } + /// Indicates if the permissions for the script caller are kept following completion of the script. + public PrincipalPermissionsAction? PrincipalPermissionsAction { get; set; } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptResource.cs index 177587929972..7eacc77c7b58 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(WaitUnt /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPoliciesList.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPoliciesList.Serialization.cs new file mode 100644 index 000000000000..daca32ad43b6 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPoliciesList.Serialization.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class CalloutPoliciesList : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CalloutPoliciesList)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CalloutPoliciesList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CalloutPoliciesList)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCalloutPoliciesList(document.RootElement, options); + } + + internal static CalloutPoliciesList DeserializeCalloutPoliciesList(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + 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(CalloutPolicy.DeserializeCalloutPolicy(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CalloutPoliciesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(CalloutPoliciesList)} does not support writing '{options.Format}' format."); + } + } + + CalloutPoliciesList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeCalloutPoliciesList(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CalloutPoliciesList)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPoliciesList.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPoliciesList.cs new file mode 100644 index 000000000000..62607c7aa2e8 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPoliciesList.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// A list of the service's callout policy objects. + public partial class CalloutPoliciesList + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public CalloutPoliciesList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// A list of the service's callout policies. + /// The URL to get the next set of callout policies list results if there are any. + /// Keeps track of any properties unknown to the library. + internal CalloutPoliciesList(IList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A list of the service's callout policies. + public IList Value { get; } + /// The URL to get the next set of callout policies list results if there are any. + public string NextLink { get; set; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicy.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicy.Serialization.cs new file mode 100644 index 000000000000..c12fd76d6fd4 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicy.Serialization.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class CalloutPolicy : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CalloutPolicy)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(CalloutUriRegex)) + { + writer.WritePropertyName("calloutUriRegex"u8); + writer.WriteStringValue(CalloutUriRegex); + } + if (Optional.IsDefined(CalloutType)) + { + writer.WritePropertyName("calloutType"u8); + writer.WriteStringValue(CalloutType.Value.ToString()); + } + if (Optional.IsDefined(OutboundAccess)) + { + writer.WritePropertyName("outboundAccess"u8); + writer.WriteStringValue(OutboundAccess.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(CalloutId)) + { + writer.WritePropertyName("calloutId"u8); + writer.WriteStringValue(CalloutId); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CalloutPolicy IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CalloutPolicy)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCalloutPolicy(document.RootElement, options); + } + + internal static CalloutPolicy DeserializeCalloutPolicy(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string calloutUriRegex = default; + CalloutType? calloutType = default; + OutboundAccess? outboundAccess = default; + string calloutId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("calloutUriRegex"u8)) + { + calloutUriRegex = property.Value.GetString(); + continue; + } + if (property.NameEquals("calloutType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + calloutType = new CalloutType(property.Value.GetString()); + continue; + } + if (property.NameEquals("outboundAccess"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + outboundAccess = new OutboundAccess(property.Value.GetString()); + continue; + } + if (property.NameEquals("calloutId"u8)) + { + calloutId = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CalloutPolicy(calloutUriRegex, calloutType, outboundAccess, calloutId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(CalloutPolicy)} does not support writing '{options.Format}' format."); + } + } + + CalloutPolicy IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeCalloutPolicy(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CalloutPolicy)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicy.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicy.cs new file mode 100644 index 000000000000..7e97bde65de1 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicy.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// Configuration for external callout policies, including URI patterns, access types, and service types. + public partial class CalloutPolicy + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public CalloutPolicy() + { + } + + /// Initializes a new instance of . + /// Regular expression or FQDN pattern for the callout URI. + /// Type of the callout service, specifying the kind of external resource or service being accessed. + /// Indicates whether outbound access is permitted for the specified URI pattern. + /// Unique identifier for the callout configuration. + /// Keeps track of any properties unknown to the library. + internal CalloutPolicy(string calloutUriRegex, CalloutType? calloutType, OutboundAccess? outboundAccess, string calloutId, IDictionary serializedAdditionalRawData) + { + CalloutUriRegex = calloutUriRegex; + CalloutType = calloutType; + OutboundAccess = outboundAccess; + CalloutId = calloutId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Regular expression or FQDN pattern for the callout URI. + public string CalloutUriRegex { get; set; } + /// Type of the callout service, specifying the kind of external resource or service being accessed. + public CalloutType? CalloutType { get; set; } + /// Indicates whether outbound access is permitted for the specified URI pattern. + public OutboundAccess? OutboundAccess { get; set; } + /// Unique identifier for the callout configuration. + public string CalloutId { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicyToRemove.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicyToRemove.Serialization.cs new file mode 100644 index 000000000000..2177acf08296 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicyToRemove.Serialization.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class CalloutPolicyToRemove : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CalloutPolicyToRemove)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(CalloutId)) + { + writer.WritePropertyName("calloutId"u8); + writer.WriteStringValue(CalloutId); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CalloutPolicyToRemove IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CalloutPolicyToRemove)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCalloutPolicyToRemove(document.RootElement, options); + } + + internal static CalloutPolicyToRemove DeserializeCalloutPolicyToRemove(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string calloutId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("calloutId"u8)) + { + calloutId = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CalloutPolicyToRemove(calloutId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(CalloutPolicyToRemove)} does not support writing '{options.Format}' format."); + } + } + + CalloutPolicyToRemove IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeCalloutPolicyToRemove(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CalloutPolicyToRemove)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicyToRemove.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicyToRemove.cs new file mode 100644 index 000000000000..938a6ce016a8 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutPolicyToRemove.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// Configuration for an external callout policy to remove. + public partial class CalloutPolicyToRemove + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public CalloutPolicyToRemove() + { + } + + /// Initializes a new instance of . + /// Unique identifier for the callout configuration. + /// Keeps track of any properties unknown to the library. + internal CalloutPolicyToRemove(string calloutId, IDictionary serializedAdditionalRawData) + { + CalloutId = calloutId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Unique identifier for the callout configuration. + public string CalloutId { get; set; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutType.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutType.cs new file mode 100644 index 000000000000..81cf2cc0fa85 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/CalloutType.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// Type of the callout service, specifying the kind of external resource or service being accessed. + public readonly partial struct CalloutType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CalloutType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string KustoValue = "kusto"; + private const string SqlValue = "sql"; + private const string CosmosdbValue = "cosmosdb"; + private const string ExternalDataValue = "external_data"; + private const string AzureDigitalTwinsValue = "azure_digital_twins"; + private const string SandboxArtifactsValue = "sandbox_artifacts"; + private const string WebapiValue = "webapi"; + private const string MysqlValue = "mysql"; + private const string PostgresqlValue = "postgresql"; + private const string GenevametricsValue = "genevametrics"; + private const string AzureOpenaiValue = "azure_openai"; + + /// kusto. + public static CalloutType Kusto { get; } = new CalloutType(KustoValue); + /// sql. + public static CalloutType Sql { get; } = new CalloutType(SqlValue); + /// cosmosdb. + public static CalloutType Cosmosdb { get; } = new CalloutType(CosmosdbValue); + /// external_data. + public static CalloutType ExternalData { get; } = new CalloutType(ExternalDataValue); + /// azure_digital_twins. + public static CalloutType AzureDigitalTwins { get; } = new CalloutType(AzureDigitalTwinsValue); + /// sandbox_artifacts. + public static CalloutType SandboxArtifacts { get; } = new CalloutType(SandboxArtifactsValue); + /// webapi. + public static CalloutType Webapi { get; } = new CalloutType(WebapiValue); + /// mysql. + public static CalloutType Mysql { get; } = new CalloutType(MysqlValue); + /// postgresql. + public static CalloutType Postgresql { get; } = new CalloutType(PostgresqlValue); + /// genevametrics. + public static CalloutType Genevametrics { get; } = new CalloutType(GenevametricsValue); + /// azure_openai. + public static CalloutType AzureOpenai { get; } = new CalloutType(AzureOpenaiValue); + /// Determines if two values are the same. + public static bool operator ==(CalloutType left, CalloutType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CalloutType left, CalloutType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator CalloutType(string value) => new CalloutType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CalloutType other && Equals(other); + /// + public bool Equals(CalloutType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseDefinitionGet.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseDefinitionGet.Serialization.cs new file mode 100644 index 000000000000..7a5b5668a74f --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseDefinitionGet.Serialization.cs @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class FollowerDatabaseDefinitionGet : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(FollowerDatabaseDefinitionGet)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(ClusterResourceId)) + { + writer.WritePropertyName("clusterResourceId"u8); + writer.WriteStringValue(ClusterResourceId); + } + if (Optional.IsDefined(AttachedDatabaseConfigurationName)) + { + writer.WritePropertyName("attachedDatabaseConfigurationName"u8); + writer.WriteStringValue(AttachedDatabaseConfigurationName); + } + if (options.Format != "W" && Optional.IsDefined(DatabaseName)) + { + writer.WritePropertyName("databaseName"u8); + writer.WriteStringValue(DatabaseName); + } + if (options.Format != "W" && Optional.IsDefined(TableLevelSharingProperties)) + { + writer.WritePropertyName("tableLevelSharingProperties"u8); + writer.WriteObjectValue(TableLevelSharingProperties, options); + } + if (options.Format != "W" && Optional.IsDefined(DatabaseShareOrigin)) + { + writer.WritePropertyName("databaseShareOrigin"u8); + writer.WriteStringValue(DatabaseShareOrigin.Value.ToString()); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + FollowerDatabaseDefinitionGet IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(FollowerDatabaseDefinitionGet)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeFollowerDatabaseDefinitionGet(document.RootElement, options); + } + + internal static FollowerDatabaseDefinitionGet DeserializeFollowerDatabaseDefinitionGet(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string clusterResourceId = default; + string attachedDatabaseConfigurationName = default; + string databaseName = default; + KustoDatabaseTableLevelSharingProperties tableLevelSharingProperties = default; + KustoDatabaseShareOrigin? databaseShareOrigin = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("clusterResourceId"u8)) + { + clusterResourceId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("attachedDatabaseConfigurationName"u8)) + { + attachedDatabaseConfigurationName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("databaseName"u8)) + { + databaseName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("tableLevelSharingProperties"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tableLevelSharingProperties = KustoDatabaseTableLevelSharingProperties.DeserializeKustoDatabaseTableLevelSharingProperties(property0.Value, options); + continue; + } + if (property0.NameEquals("databaseShareOrigin"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + databaseShareOrigin = new KustoDatabaseShareOrigin(property0.Value.GetString()); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new FollowerDatabaseDefinitionGet( + clusterResourceId, + attachedDatabaseConfigurationName, + databaseName, + tableLevelSharingProperties, + databaseShareOrigin, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(FollowerDatabaseDefinitionGet)} does not support writing '{options.Format}' format."); + } + } + + FollowerDatabaseDefinitionGet IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeFollowerDatabaseDefinitionGet(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(FollowerDatabaseDefinitionGet)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseDefinitionGet.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseDefinitionGet.cs new file mode 100644 index 000000000000..447abc55f86c --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseDefinitionGet.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// A class representing follower database object. + public partial class FollowerDatabaseDefinitionGet + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal FollowerDatabaseDefinitionGet() + { + } + + /// Initializes a new instance of . + /// Resource id of the cluster that follows a database owned by this cluster. + /// Resource name of the attached database configuration in the follower cluster. + /// The database name owned by this cluster that was followed. * in case following all databases. + /// Table level sharing specifications. + /// The origin of the following setup. + /// Keeps track of any properties unknown to the library. + internal FollowerDatabaseDefinitionGet(string clusterResourceId, string attachedDatabaseConfigurationName, string databaseName, KustoDatabaseTableLevelSharingProperties tableLevelSharingProperties, KustoDatabaseShareOrigin? databaseShareOrigin, IDictionary serializedAdditionalRawData) + { + ClusterResourceId = clusterResourceId; + AttachedDatabaseConfigurationName = attachedDatabaseConfigurationName; + DatabaseName = databaseName; + TableLevelSharingProperties = tableLevelSharingProperties; + DatabaseShareOrigin = databaseShareOrigin; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Resource id of the cluster that follows a database owned by this cluster. + public string ClusterResourceId { get; } + /// Resource name of the attached database configuration in the follower cluster. + public string AttachedDatabaseConfigurationName { get; } + /// The database name owned by this cluster that was followed. * in case following all databases. + public string DatabaseName { get; } + /// Table level sharing specifications. + public KustoDatabaseTableLevelSharingProperties TableLevelSharingProperties { get; } + /// The origin of the following setup. + public KustoDatabaseShareOrigin? DatabaseShareOrigin { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResultGet.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResultGet.Serialization.cs new file mode 100644 index 000000000000..08a20e55807a --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResultGet.Serialization.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + internal partial class FollowerDatabaseListResultGet : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(FollowerDatabaseListResultGet)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + FollowerDatabaseListResultGet IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(FollowerDatabaseListResultGet)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeFollowerDatabaseListResultGet(document.RootElement, options); + } + + internal static FollowerDatabaseListResultGet DeserializeFollowerDatabaseListResultGet(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + 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(FollowerDatabaseDefinitionGet.DeserializeFollowerDatabaseDefinitionGet(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new FollowerDatabaseListResultGet(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(FollowerDatabaseListResultGet)} does not support writing '{options.Format}' format."); + } + } + + FollowerDatabaseListResultGet IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeFollowerDatabaseListResultGet(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(FollowerDatabaseListResultGet)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResultGet.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResultGet.cs new file mode 100644 index 000000000000..1a6bb4b5ba7b --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResultGet.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The list Kusto database principals operation response. + internal partial class FollowerDatabaseListResultGet + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal FollowerDatabaseListResultGet() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The list of follower database result. + /// The URL to get the next set of follower databases list results if there are any. + /// Keeps track of any properties unknown to the library. + internal FollowerDatabaseListResultGet(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The list of follower database result. + public IReadOnlyList Value { get; } + /// The URL to get the next set of follower databases list results if there are any. + public string NextLink { get; } + } +} 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 61798c7f512b..77e712f4650c 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 @@ -183,6 +183,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsCollectionDefined(CalloutPolicies)) + { + writer.WritePropertyName("calloutPolicies"u8); + writer.WriteStartArray(); + foreach (var item in CalloutPolicies) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(PublicIPType)) { writer.WritePropertyName("publicIPType"u8); @@ -208,6 +218,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("migrationCluster"u8); writer.WriteObjectValue(MigrationCluster, options); } + if (options.Format != "W" && Optional.IsDefined(ZoneStatus)) + { + writer.WritePropertyName("zoneStatus"u8); + writer.WriteStringValue(ZoneStatus.Value.ToString()); + } writer.WriteEndObject(); } @@ -261,10 +276,12 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme bool? enableAutoStop = default; KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = default; IList allowedFqdnList = default; + IList calloutPolicies = default; KustoClusterPublicIPType? publicIPType = default; string virtualClusterGraduationProperties = default; IReadOnlyList privateEndpointConnections = default; MigrationClusterProperties migrationCluster = default; + ZoneStatus? zoneStatus = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -558,6 +575,20 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme allowedFqdnList = array; continue; } + if (property0.NameEquals("calloutPolicies"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(CalloutPolicy.DeserializeCalloutPolicy(item, options)); + } + calloutPolicies = array; + continue; + } if (property0.NameEquals("publicIPType"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -595,6 +626,15 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme migrationCluster = MigrationClusterProperties.DeserializeMigrationClusterProperties(property0.Value, options); continue; } + if (property0.NameEquals("zoneStatus"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + zoneStatus = new ZoneStatus(property0.Value.GetString()); + continue; + } } continue; } @@ -635,10 +675,12 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme enableAutoStop, restrictOutboundNetworkAccess, allowedFqdnList ?? new ChangeTrackingList(), + calloutPolicies ?? new ChangeTrackingList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections ?? new ChangeTrackingList(), migrationCluster, + zoneStatus, serializedAdditionalRawData); } 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 9860daa16a5b..c62dba2d4a0f 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs @@ -56,6 +56,7 @@ public KustoClusterPatch(AzureLocation location) : base(location) AllowedIPRangeList = new ChangeTrackingList(); AcceptedAudiences = new ChangeTrackingList(); AllowedFqdnList = new ChangeTrackingList(); + CalloutPolicies = new ChangeTrackingList(); PrivateEndpointConnections = new ChangeTrackingList(); } @@ -90,12 +91,14 @@ public KustoClusterPatch(AzureLocation location) : base(location) /// 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. + /// List of callout policies 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. + /// Indicates whether the cluster is zonal or non-zonal. /// Keeps track of any properties unknown to the library. - 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, IDictionary serializedAdditionalRawData) : 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, IList calloutPolicies, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IReadOnlyList privateEndpointConnections, MigrationClusterProperties migrationCluster, ZoneStatus? zoneStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Zones = zones; @@ -121,10 +124,12 @@ internal KustoClusterPatch(ResourceIdentifier id, string name, ResourceType reso IsAutoStopEnabled = isAutoStopEnabled; RestrictOutboundNetworkAccess = restrictOutboundNetworkAccess; AllowedFqdnList = allowedFqdnList; + CalloutPolicies = calloutPolicies; PublicIPType = publicIPType; VirtualClusterGraduationProperties = virtualClusterGraduationProperties; PrivateEndpointConnections = privateEndpointConnections; MigrationCluster = migrationCluster; + ZoneStatus = zoneStatus; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -192,6 +197,8 @@ public IList LanguageExtensionsValue public KustoClusterNetworkAccessFlag? RestrictOutboundNetworkAccess { get; set; } /// List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster. public IList AllowedFqdnList { get; } + /// List of callout policies for egress from Cluster. + public IList CalloutPolicies { get; } /// Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). public KustoClusterPublicIPType? PublicIPType { get; set; } /// Virtual Cluster graduation properties. @@ -200,5 +207,7 @@ public IList LanguageExtensionsValue public IReadOnlyList PrivateEndpointConnections { get; } /// Properties of the peer cluster involved in a migration to/from this cluster. public MigrationClusterProperties MigrationCluster { get; } + /// Indicates whether the cluster is zonal or non-zonal. + public ZoneStatus? ZoneStatus { get; } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPrincipalRole.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPrincipalRole.cs index c5dec191583b..f10883fe0bbb 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPrincipalRole.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPrincipalRole.cs @@ -24,11 +24,14 @@ public KustoClusterPrincipalRole(string value) private const string AllDatabasesAdminValue = "AllDatabasesAdmin"; private const string AllDatabasesViewerValue = "AllDatabasesViewer"; + private const string AllDatabasesMonitorValue = "AllDatabasesMonitor"; /// AllDatabasesAdmin. public static KustoClusterPrincipalRole AllDatabasesAdmin { get; } = new KustoClusterPrincipalRole(AllDatabasesAdminValue); /// AllDatabasesViewer. public static KustoClusterPrincipalRole AllDatabasesViewer { get; } = new KustoClusterPrincipalRole(AllDatabasesViewerValue); + /// AllDatabasesMonitor. + public static KustoClusterPrincipalRole AllDatabasesMonitor { get; } = new KustoClusterPrincipalRole(AllDatabasesMonitorValue); /// Determines if two values are the same. public static bool operator ==(KustoClusterPrincipalRole left, KustoClusterPrincipalRole right) => left.Equals(right); /// Determines if two values are not the same. 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 d2aeb8a4853c..cf586c2ccef2 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs @@ -27,6 +27,8 @@ public KustoLanguageExtensionImageName(string value) private const string Python3_10_8Value = "Python3_10_8"; private const string Python3108DLValue = "Python3_10_8_DL"; private const string PythonCustomImageValue = "PythonCustomImage"; + private const string Python3117Value = "Python3_11_7"; + private const string Python3117DLValue = "Python3_11_7_DL"; /// R. public static KustoLanguageExtensionImageName R { get; } = new KustoLanguageExtensionImageName(RValue); @@ -34,6 +36,10 @@ public KustoLanguageExtensionImageName(string value) public static KustoLanguageExtensionImageName Python3108DL { get; } = new KustoLanguageExtensionImageName(Python3108DLValue); /// PythonCustomImage. public static KustoLanguageExtensionImageName PythonCustomImage { get; } = new KustoLanguageExtensionImageName(PythonCustomImageValue); + /// Python3_11_7. + public static KustoLanguageExtensionImageName Python3117 { get; } = new KustoLanguageExtensionImageName(Python3117Value); + /// Python3_11_7_DL. + public static KustoLanguageExtensionImageName Python3117DL { get; } = new KustoLanguageExtensionImageName(Python3117DLValue); /// 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/OutboundAccess.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/OutboundAccess.cs new file mode 100644 index 000000000000..a4e2dc873f69 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/OutboundAccess.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 +{ + /// Indicates whether outbound access is permitted for the specified URI pattern. + public readonly partial struct OutboundAccess : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public OutboundAccess(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllowValue = "Allow"; + private const string DenyValue = "Deny"; + + /// Allow. + public static OutboundAccess Allow { get; } = new OutboundAccess(AllowValue); + /// Deny. + public static OutboundAccess Deny { get; } = new OutboundAccess(DenyValue); + /// Determines if two values are the same. + public static bool operator ==(OutboundAccess left, OutboundAccess right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(OutboundAccess left, OutboundAccess right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator OutboundAccess(string value) => new OutboundAccess(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is OutboundAccess other && Equals(other); + /// + public bool Equals(OutboundAccess other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/PrincipalPermissionsAction.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/PrincipalPermissionsAction.cs new file mode 100644 index 000000000000..04f33e75906f --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/PrincipalPermissionsAction.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 +{ + /// Indicates if the permissions for the script caller are kept following completion of the script. + public readonly partial struct PrincipalPermissionsAction : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PrincipalPermissionsAction(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RetainPermissionOnScriptCompletionValue = "RetainPermissionOnScriptCompletion"; + private const string RemovePermissionOnScriptCompletionValue = "RemovePermissionOnScriptCompletion"; + + /// RetainPermissionOnScriptCompletion. + public static PrincipalPermissionsAction RetainPermissionOnScriptCompletion { get; } = new PrincipalPermissionsAction(RetainPermissionOnScriptCompletionValue); + /// RemovePermissionOnScriptCompletion. + public static PrincipalPermissionsAction RemovePermissionOnScriptCompletion { get; } = new PrincipalPermissionsAction(RemovePermissionOnScriptCompletionValue); + /// Determines if two values are the same. + public static bool operator ==(PrincipalPermissionsAction left, PrincipalPermissionsAction right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PrincipalPermissionsAction left, PrincipalPermissionsAction right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator PrincipalPermissionsAction(string value) => new PrincipalPermissionsAction(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PrincipalPermissionsAction other && Equals(other); + /// + public bool Equals(PrincipalPermissionsAction other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ScriptLevel.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ScriptLevel.cs new file mode 100644 index 000000000000..edf896834fd9 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ScriptLevel.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 +{ + /// Differentiates between the type of script commands included - Database or Cluster. The default is Database. + public readonly partial struct ScriptLevel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScriptLevel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DatabaseValue = "Database"; + private const string ClusterValue = "Cluster"; + + /// Database. + public static ScriptLevel Database { get; } = new ScriptLevel(DatabaseValue); + /// Cluster. + public static ScriptLevel Cluster { get; } = new ScriptLevel(ClusterValue); + /// Determines if two values are the same. + public static bool operator ==(ScriptLevel left, ScriptLevel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScriptLevel left, ScriptLevel right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ScriptLevel(string value) => new ScriptLevel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScriptLevel other && Equals(other); + /// + public bool Equals(ScriptLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ZoneStatus.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ZoneStatus.cs new file mode 100644 index 000000000000..44e849b3c304 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ZoneStatus.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// Indicates whether the cluster is zonal or non-zonal. + public readonly partial struct ZoneStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ZoneStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NonZonalValue = "NonZonal"; + private const string ZonalInconsistencyValue = "ZonalInconsistency"; + private const string ZonalValue = "Zonal"; + + /// NonZonal. + public static ZoneStatus NonZonal { get; } = new ZoneStatus(NonZonalValue); + /// ZonalInconsistency. + public static ZoneStatus ZonalInconsistency { get; } = new ZoneStatus(ZonalInconsistencyValue); + /// Zonal. + public static ZoneStatus Zonal { get; } = new ZoneStatus(ZonalValue); + /// Determines if two values are the same. + public static bool operator ==(ZoneStatus left, ZoneStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ZoneStatus left, ZoneStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ZoneStatus(string value) => new ZoneStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ZoneStatus other && Equals(other); + /// + public bool Equals(ZoneStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs index 308bc0062c82..8615e8542613 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public AttachedDatabaseConfigurationsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 1e6aade2aa01..389a6cbd37b5 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 f96807c5b55f..417be55694e3 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -688,6 +688,100 @@ public Response Migrate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListFollowerDatabasesGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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("/listFollowerDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListFollowerDatabasesGetRequest(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("/listFollowerDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Returns a list of databases that are owned by this cluster and were followed by another 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> ListFollowerDatabasesGetAsync(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 = CreateListFollowerDatabasesGetRequest(subscriptionId, resourceGroupName, clusterName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FollowerDatabaseListResultGet value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FollowerDatabaseListResultGet.DeserializeFollowerDatabaseListResultGet(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Returns a list of databases that are owned by this cluster and were followed by another 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 ListFollowerDatabasesGet(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 = CreateListFollowerDatabasesGetRequest(subscriptionId, resourceGroupName, clusterName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FollowerDatabaseListResultGet value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FollowerDatabaseListResultGet.DeserializeFollowerDatabaseListResultGet(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListFollowerDatabasesRequestUri(string subscriptionId, string resourceGroupName, string clusterName) { var uri = new RawRequestUriBuilder(); @@ -1484,6 +1578,288 @@ public Response ListOutboundNetwo } } + internal RequestUriBuilder CreateAddCalloutPoliciesRequestUri(string subscriptionId, string resourceGroupName, string clusterName, CalloutPoliciesList calloutPolicies) + { + 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("/addCalloutPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateAddCalloutPoliciesRequest(string subscriptionId, string resourceGroupName, string clusterName, CalloutPoliciesList calloutPolicies) + { + 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("/addCalloutPolicies", false); + 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(calloutPolicies, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Adds a list of callout policies for engine services. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The callout policies to add. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task AddCalloutPoliciesAsync(string subscriptionId, string resourceGroupName, string clusterName, CalloutPoliciesList calloutPolicies, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNull(calloutPolicies, nameof(calloutPolicies)); + + using var message = CreateAddCalloutPoliciesRequest(subscriptionId, resourceGroupName, clusterName, calloutPolicies); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Adds a list of callout policies for engine services. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The callout policies to add. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response AddCalloutPolicies(string subscriptionId, string resourceGroupName, string clusterName, CalloutPoliciesList calloutPolicies, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNull(calloutPolicies, nameof(calloutPolicies)); + + using var message = CreateAddCalloutPoliciesRequest(subscriptionId, resourceGroupName, clusterName, calloutPolicies); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateRemoveCalloutPolicyRequestUri(string subscriptionId, string resourceGroupName, string clusterName, CalloutPolicyToRemove calloutPolicy) + { + 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("/removeCalloutPolicy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateRemoveCalloutPolicyRequest(string subscriptionId, string resourceGroupName, string clusterName, CalloutPolicyToRemove calloutPolicy) + { + 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("/removeCalloutPolicy", false); + 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(calloutPolicy, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Removes callout policy for engine services. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The callout policies to remove. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task RemoveCalloutPolicyAsync(string subscriptionId, string resourceGroupName, string clusterName, CalloutPolicyToRemove calloutPolicy, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNull(calloutPolicy, nameof(calloutPolicy)); + + using var message = CreateRemoveCalloutPolicyRequest(subscriptionId, resourceGroupName, clusterName, calloutPolicy); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Removes callout policy for engine services. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The callout policies to remove. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response RemoveCalloutPolicy(string subscriptionId, string resourceGroupName, string clusterName, CalloutPolicyToRemove calloutPolicy, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNull(calloutPolicy, nameof(calloutPolicy)); + + using var message = CreateRemoveCalloutPolicyRequest(subscriptionId, resourceGroupName, clusterName, calloutPolicy); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListCalloutPoliciesRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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("/listCalloutPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListCalloutPoliciesRequest(string subscriptionId, string resourceGroupName, string clusterName) + { + 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("/listCalloutPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Returns the allowed callout policies for the specified service. + /// 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> ListCalloutPoliciesAsync(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 = CreateListCalloutPoliciesRequest(subscriptionId, resourceGroupName, clusterName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CalloutPoliciesList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CalloutPoliciesList.DeserializeCalloutPoliciesList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Returns the allowed callout policies for the specified service. + /// 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 ListCalloutPolicies(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 = CreateListCalloutPoliciesRequest(subscriptionId, resourceGroupName, clusterName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CalloutPoliciesList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CalloutPoliciesList.DeserializeCalloutPoliciesList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListLanguageExtensionsRequestUri(string subscriptionId, string resourceGroupName, string clusterName) { var uri = new RawRequestUriBuilder(); 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 e1efba8ee8a1..8940e8ba1a84 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 66fc7dbb96c6..31d25f0025de 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs @@ -32,7 +32,7 @@ public DatabasePrincipalAssignmentsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 1da1c1010ea5..457d5a576af7 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 726c4c4625d8..40f895c90b4d 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 6efb15f85e4c..068d15037065 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 cb593b3c5735..d9ba74509655 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 de39533e228b..0155d5c06308 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 index b0d35b942a4d..7d75e3d8ff00 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs @@ -32,7 +32,7 @@ public SandboxCustomImagesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 18c2f0f2cc3c..f90c4ed4f04e 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 fb041cb9211f..6305c6e5b68c 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs @@ -32,7 +32,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-08-15"; + _apiVersion = apiVersion ?? "2024-04-13"; _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 index 3a576b8348ce..08e1a4de12c0 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string sandboxCustomImag /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string sandboxCustomImageN /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string sandboxCustomImageName, Cancellation /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.Serialization.cs index 0e97469163b8..0d815aa3b52c 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.Serialization.cs @@ -49,6 +49,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("languageVersion"u8); writer.WriteStringValue(LanguageVersion); } + if (Optional.IsDefined(BaseImageName)) + { + writer.WritePropertyName("baseImageName"u8); + writer.WriteStringValue(BaseImageName); + } if (Optional.IsDefined(RequirementsFileContent)) { writer.WritePropertyName("requirementsFileContent"u8); @@ -88,6 +93,7 @@ internal static SandboxCustomImageData DeserializeSandboxCustomImageData(JsonEle SystemData systemData = default; SandboxCustomImageLanguage? language = default; string languageVersion = default; + string baseImageName = default; string requirementsFileContent = default; KustoProvisioningState? provisioningState = default; IDictionary serializedAdditionalRawData = default; @@ -141,6 +147,11 @@ internal static SandboxCustomImageData DeserializeSandboxCustomImageData(JsonEle languageVersion = property0.Value.GetString(); continue; } + if (property0.NameEquals("baseImageName"u8)) + { + baseImageName = property0.Value.GetString(); + continue; + } if (property0.NameEquals("requirementsFileContent"u8)) { requirementsFileContent = property0.Value.GetString(); @@ -171,6 +182,7 @@ internal static SandboxCustomImageData DeserializeSandboxCustomImageData(JsonEle systemData, language, languageVersion, + baseImageName, requirementsFileContent, provisioningState, serializedAdditionalRawData); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.cs index 7dbd81286265..a1b3f670f225 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageData.cs @@ -62,14 +62,16 @@ public SandboxCustomImageData() /// The resourceType. /// The systemData. /// The language name, for example Python. - /// The version of the language. + /// The version of the language. Either this property or baseImageName should be specified. + /// The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified. /// The requirements file content. /// The provisioned state of the resource. /// Keeps track of any properties unknown to the library. - internal SandboxCustomImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SandboxCustomImageLanguage? language, string languageVersion, string requirementsFileContent, KustoProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal SandboxCustomImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SandboxCustomImageLanguage? language, string languageVersion, string baseImageName, string requirementsFileContent, KustoProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Language = language; LanguageVersion = languageVersion; + BaseImageName = baseImageName; RequirementsFileContent = requirementsFileContent; ProvisioningState = provisioningState; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -77,8 +79,10 @@ internal SandboxCustomImageData(ResourceIdentifier id, string name, ResourceType /// The language name, for example Python. public SandboxCustomImageLanguage? Language { get; set; } - /// The version of the language. + /// The version of the language. Either this property or baseImageName should be specified. public string LanguageVersion { get; set; } + /// The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified. + public string BaseImageName { get; set; } /// The requirements file content. public string RequirementsFileContent { get; set; } /// The provisioned state of the resource. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageResource.cs index e1ebc519c2b4..ca9690403607 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/SandboxCustomImageResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2023-08-15 + /// 2024-04-13 /// /// /// Resource diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md b/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md index 557bc0524c1d..b331e1e23d19 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/c280892951a9e45c059132c05aace25a9c752d48/specification/azure-kusto/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: